/**
 * Bushwick Daily: the site chrome's shared rules (2026-11-05). wp_head() precedes each template's own <style>, so a template's
 * rule still wins over this file. Moving the templates' copies of these rules here is debt 1 step 5 of
 * docs/debt/2026-11-04-site-chrome-and-publish-door-debts.md, in progress: this file carries what every page now needs.
 * Loaded from 600 px up (bd_hl_scope_legacy_css); the phone design has its own chrome.
 */
:root {
  --bg-primary: #0a0a0a; --bg-secondary: #141414; --bg-tertiary: #1a1a1a;
  --text-primary: #ffffff; --text-secondary: #a0a0a0; --text-muted: #8a8a8a;
  --accent: #ffe135; --accent-hover: #ffd700; --border: #2a2a2a;
  --font-headline: 'Satoshi', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Search and sign-in in the header (E3, E4). Below 1024 px the menu button and the search icon do this job. */
.bd-hdr-tools { display: none; }
@media (min-width: 1024px) {
  .bd-hdr-tools { display: flex; align-items: center; gap: 0.875rem; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); z-index: 2; }
  .bd-hdr-find { display: flex; align-items: center; border-bottom: 1px solid var(--border); margin: 0; }
  .bd-hdr-find input { width: 7rem; padding: 0.35rem 0; border: 0; background: transparent; color: var(--text-primary); font: 400 0.8125rem/1.3 var(--font-sans); outline: 0; -webkit-appearance: none; }
  .bd-hdr-find input::placeholder { color: var(--text-muted); }
  .bd-hdr-find input:focus { width: 7rem; }
  .bd-hdr-find:focus-within { border-bottom-color: var(--accent); }
  .bd-hdr-find button { display: flex; align-items: center; padding: 0.25rem; border: 0; background: none; color: var(--text-secondary); cursor: pointer; }
  .bd-hdr-find button:hover { color: var(--accent); }
  .bd-hdr-signin { color: var(--text-secondary); font: 500 0.8125rem/1 var(--font-sans); text-decoration: none; white-space: nowrap; }
  .bd-hdr-signin:hover { color: var(--accent); }
}
@media (min-width: 1024px) and (max-width: 1239px) { .bd-hdr-signin { display: none; } }
html.bd-is-member .bd-hdr-signin, html.bd-is-member .footer-signin { display: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* The footer's parts, on the templates that did not print them before (E28). */
.footer-subscribe { text-align: center; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.footer-subscribe-text { font-family: var(--font-sans); font-size: 0.875rem; color: var(--text-secondary); margin: 0 0 1rem; }
.footer-subscribe-btn { display: inline-block; padding: 0.75rem 2rem; background: var(--accent); color: var(--bg-primary); font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; border-radius: 2px; }
.footer-subscribe-btn:hover { background: var(--accent-hover); }
.bd-social-links { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.bd-social-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); color: var(--text-secondary); }
.bd-social-links a:hover { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }
.bd-social-links svg { width: 19px; height: 19px; display: block; }
.footer-social { justify-content: center; margin: 0.25rem 0 1rem; }
.footer-links { flex-wrap: wrap; }

/* Chrome copied from category.php so the templates with no copy of their own (policy, authors) match the rest. */
.header-main {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 1.25rem 1.5rem;
      position: relative;
    }
.logo {
      width: 100%;
      max-width: 642px;
      height: auto;
    }
.logo svg {
      width: 100%;
      height: auto;
      display: block;
    }
.header-nav-toggle {
      display: flex;
      flex-direction: column;
      gap: 5px;
      background: none;
      border: none;
      color: var(--text-primary);
      cursor: pointer;
      padding: 0.5rem;
      position: absolute;
      right: 1.5rem;
      top: 50%;
      transform: translateY(-50%);
    }
.header-nav-toggle span {
      display: block;
      width: 22px;
      height: 2px;
      background: var(--text-primary);
    }
.header-nav-toggle {
        display: none;
      }
.category-nav {
      display: none;
      background: var(--bg-primary);
      border-bottom: 1px solid var(--border);
    }
.category-nav {
        display: block;
      }
.category-nav-inner {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 2rem;
      padding: 0.875rem 1.5rem;
      flex-wrap: wrap;
    }
.category-nav a {
      font-family: var(--font-sans);
      font-size: 0.7rem;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--text-secondary);
      text-decoration: none;
      white-space: nowrap;
      transition: color 0.2s ease;
      position: relative;
      padding-bottom: 0.875rem;
      margin-bottom: -0.875rem;
    }
.category-nav a::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 2px;
      background: var(--accent);
      opacity: 0;
      transition: opacity 0.2s ease;
    }
.category-nav a:hover::after,
    .category-nav a.active::after {
      opacity: 1;
    }
.category-nav a.active {
      color: var(--text-primary);
    }
.footer-subscribe {
      margin-bottom: 2rem;
      padding-bottom: 2rem;
      border-bottom: 1px solid var(--border);
    }
.footer-subscribe-text {
      font-family: var(--font-headline);
      font-size: 1.1rem;
      color: var(--text-secondary);
      margin-bottom: 1rem;
    }
.footer-subscribe-btn {
      display: inline-block;
      background: var(--accent);
      color: var(--bg-primary);
      border: none;
      padding: 0.75rem 1.5rem;
      font-family: var(--font-sans);
      font-size: 0.8rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      cursor: pointer;
      transition: background 0.2s ease;
    }
.footer-subscribe-btn:hover {
      background: var(--accent-hover);
    }
.footer-logo {
      width: 180px;
      margin: 0 auto 1.5rem;
    }
.footer-logo svg {
      width: 100%;
      height: auto;
      opacity: 0.6;
    }
.footer-text {
      font-size: 0.8rem;
      color: var(--text-muted);
    }
.footer-links {
      display: flex;
      flex-wrap: wrap;      /* on phones the seven links are wider than the screen: until 2026-11-04 the first and last
                               (Become a Member, Privacy) sat off screen, hidden by the old sheet's page clipping */
      justify-content: center;
      gap: 0 2rem;
      margin-top: 1.5rem;
    }
.footer-links a {
      font-size: 0.8rem;
      color: var(--text-secondary);
      text-decoration: none;
      transition: color 0.2s ease;
    }
.footer-links a:hover {
      color: var(--accent);
    }

/* The pages built on homepage.css's tokens (/authors/, /editorial-policy/, /corrections/, long-form): the brand's yellow and faces (E13). */
html body.bd-redesign {
  --bd-gold: #ffe135; --bd-gold-light: #ffd700; --bd-gold-pale: #ffe135; --bd-gold-dark: #ffd700;
  --bd-font-display: 'Satoshi', system-ui, -apple-system, sans-serif;
  --bd-font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --bd-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --bd-text-secondary: #a0a0a0; --bd-text-muted: #8a8a8a;
}
body.bd-redesign .logo { display: block; }

/* Paid posts carry a tag that cannot be mistaken for a section (E12). */
.article-card__category[href*="/sponsored"], .article__category[href*="/sponsored"], a.kicker[href*="/sponsored"] {
  background: var(--accent); color: #0a0a0a !important; padding: 0.1em 0.45em; border-bottom: 0; text-decoration: none;
}

/* E24: a story's section is marked visibly in the section bar, on every template. */
.category-nav a.active { color: var(--text-primary); }
.category-nav a.active::after { transform: scaleX(1); }

/* E21: the rest of a borough's neighborhoods, behind "More". */
.section-nav__more { display: contents; }
.section-nav__more summary { cursor: pointer; font-family: var(--font-sans); font-size: 0.8rem; color: var(--text-secondary); padding: 0.4rem 0.75rem; list-style: none; border: 1px solid var(--border); border-radius: 999px; }
.section-nav__more summary::-webkit-details-marker { display: none; }
.section-nav__more[open] summary { display: none; }

/* /advertise/: the direct line and the rate card (B1-B3, 2026-11-05). The phone design's copy is in hl.css. */
.bd-adv__lede { font-size: 1.2rem; line-height: 1.5; }
.bd-adv__direct { margin: 1.5rem 0; padding: 1.25rem 1.5rem; border: 1px solid var(--accent); border-radius: 4px; }
.bd-adv__direct p { margin: 0 0 0.5rem; }
.bd-adv__direct p:last-child { margin-bottom: 0; color: var(--text-secondary); font-size: 0.95rem; }
.bd-adv__direct-title { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.bd-adv__stats { list-style: none; margin: 1.5rem 0; padding: 0 !important; }
.bd-adv__stats li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.bd-adv__stats li::before { content: none; }
.bd-adv__stats b { color: var(--accent); }
.bd-rates { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-family: var(--font-sans); font-size: 0.95rem; }
.bd-rates th { padding: 1.5rem 0.5rem 0.5rem 0; text-align: left; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.bd-rates td { padding: 0.65rem 0.5rem 0.65rem 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.bd-rates td:nth-child(2) { white-space: nowrap; font-weight: 600; }
.bd-rates td:last-child { text-align: right; white-space: nowrap; padding-right: 0; }
a.bd-buy { text-decoration: none !important; display: inline-block; padding: 0.45rem 0.8rem; background: var(--accent); color: #0a0a0a !important; font-weight: 700; font-size: 0.8125rem; border-radius: 2px; text-decoration: none; }
a.bd-buy:hover { background: var(--accent-hover); }
a.bd-ask { font-size: 0.8125rem; color: var(--text-primary); }
.bd-contact__button { font-family: var(--font-sans) !important; }

/* Contents list on the long legal pages (E15). */
.bd-toc { margin: 1.5rem 0 2rem; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: 4px; font-family: var(--font-sans); font-size: 0.9rem; }
.bd-toc__title { margin: 0 0 0.5rem; font-weight: 700; }
.bd-toc ol { margin: 0; padding-left: 1.25rem; columns: 2; column-gap: 2rem; }
.bd-toc li { margin: 0 0 0.3rem; break-inside: avoid; }
.bd-policy-h { scroll-margin-top: 1rem; }

/* The section bar on the pages built on homepage.css, which resets its padding and colours. */
body.bd-redesign .header { border-bottom: 1px solid var(--border); }
body.bd-redesign .category-nav { border-bottom: 1px solid var(--border); }
body.bd-redesign .category-nav-inner { padding-top: 0.5rem; padding-bottom: 0.5rem; align-items: center; }
body.bd-redesign .category-nav a { color: var(--text-secondary); }
body.bd-redesign .category-nav a:hover, body.bd-redesign .category-nav a.active { color: var(--text-primary); }
body.bd-redesign .category-nav a.bd-nav-support { color: var(--accent); }
