/* Site-wide Style D (FloodEducation colors).
   Appended to sidebar.css (and also shipped as theme-d-site.css). Homepage layout stays in theme.css under body.ir-home. */
@font-face{font-family:"Open Sans";font-style:normal;font-weight:400 700;font-display:swap;
  src:url("/assets/fonts/open-sans-normal.woff2") format("woff2")}
@font-face{font-family:"Open Sans";font-style:italic;font-weight:400;font-display:swap;
  src:url("/assets/fonts/open-sans-italic-400.woff2") format("woff2")}

body.ir-theme{
  --fe-red:#C8102E;--fe-red-dark:#9B0C24;--fe-band:#D8EEF8;--fe-ink:#1A1A1A;--fe-muted:#4A5560;--fe-line:#D5DEE6;--fe-bg:#fff;
  --fe-font:"Open Sans","Helvetica Neue",Arial,sans-serif;
  --ir-teal:var(--fe-red);--ir-teal-aa:var(--fe-red-dark);--ir-navy:var(--fe-ink);
  --ir-page:var(--fe-bg);--ir-ink:var(--fe-ink);--ir-muted:var(--fe-muted);--ir-border:var(--fe-line);
  --ir-band:var(--fe-band);
  --head-font:var(--fe-font);
  background:var(--fe-bg)!important;color:var(--fe-ink);
  font-family:var(--fe-font);font-size:18px;line-height:1.65;
}
body.ir-theme .app{background:var(--fe-bg)!important}
body.ir-theme :is(h1,h2,h3){font-family:var(--fe-font);color:var(--fe-ink);letter-spacing:-.02em}
body.ir-theme a{color:var(--fe-red)}
body.ir-theme a:hover{color:var(--fe-red-dark)}

/* Hide the navy left sidebar site-wide; inner pages use the top bar. Homepage keeps its own header. */
body.ir-theme.ir-side-layout{--ir-side-w:0px}
body.ir-theme.ir-side-layout .ir-sidenav{display:none!important}
body.ir-theme.ir-side-layout .app,
body.ir-theme.ir-side-layout>.ir-footer,
body.ir-theme.ir-side-layout .app>.ir-footer{margin-left:0!important}
body.ir-theme.ir-side-layout .cookie-banner{left:0!important}
body.ir-theme.ir-side-layout .tb-searchpanel{left:0!important;top:auto}

@media (min-width:821px){
  body.ir-theme.ir-side-layout:not(.ir-home) .topbar{
    display:flex!important;position:sticky;top:0;z-index:80;
    background:#fff;color:var(--fe-ink);border:0;border-bottom:1px solid var(--fe-line);
    box-shadow:none;min-height:72px;padding:10px 32px;gap:24px;
  }
}

/* Top bar — Style D (inner pages; homepage uses .ir-fe-top) */
body.ir-theme:not(.ir-home) .topbar .brand{color:var(--fe-ink)}
body.ir-theme:not(.ir-home) .topbar .brand .logo-text,
body.ir-theme:not(.ir-home) .sb-drawer-head .logo-text{color:var(--fe-ink)!important;font-family:var(--fe-font);font-weight:700;font-size:20px}
body.ir-theme:not(.ir-home) .topbar .brand .logo-text span,
body.ir-theme:not(.ir-home) .ir-footer .logo-text span{color:var(--fe-ink)!important}
body.ir-theme:not(.ir-home) .topbar .logo-mark{
  background:var(--fe-red)!important;color:#fff!important;border-radius:4px
}
body.ir-theme:not(.ir-home) .ir-topnav a{
  color:var(--fe-ink)!important;font-family:var(--fe-font);font-size:16px;font-weight:600;
  letter-spacing:0;text-transform:none;border-bottom:3px solid transparent;padding:18px 0 15px
}
body.ir-theme:not(.ir-home) .ir-topnav a:hover{color:var(--fe-red)!important;border-bottom-color:transparent;text-decoration:underline}
body.ir-theme:not(.ir-home) .ir-topnav a[aria-current]{color:var(--fe-red)!important;border-bottom-color:var(--fe-red)}
body.ir-theme:not(.ir-home) .topbar .tb-search{
  background:transparent;color:var(--fe-ink);border:1px solid var(--fe-line);border-radius:2px
}
body.ir-theme:not(.ir-home) .topbar .tb-menu{color:var(--fe-ink)}
body.ir-theme :is(.topbar .brand,.topbar .tb-btn,.ir-topnav a):focus-visible{outline:3px solid var(--fe-red);outline-offset:3px}

@media (max-width:820px){
  body.ir-theme:not(.ir-home) .topbar{
    display:flex!important;background:#fff;color:var(--fe-ink);border-bottom:1px solid var(--fe-line);
    box-shadow:none;min-height:64px
  }
  body.ir-theme:not(.ir-home) .topbar .tb-menu{display:inline-flex!important;color:var(--fe-ink)!important}
  body.ir-theme:not(.ir-home) .topbar .tb-search{background:transparent;color:var(--fe-ink);width:44px;padding:0;justify-content:center;border:0}
  body.ir-theme:not(.ir-home) .ir-topnav{display:none}
}

/* Mobile drawer — light, so it matches the restyle */
body.ir-theme .sidebar,body.ir-theme .sidebar.sidebar{
  background:#fff!important;color:var(--fe-ink)
}
body.ir-theme .sb-drawer-head{background:#fff;color:var(--fe-ink);border-bottom:1px solid var(--fe-line)}
body.ir-theme .sb-drawer-head .logo-text{color:var(--fe-ink)!important}
body.ir-theme .sb-drawer-head .logo-mark{background:var(--fe-red)!important;color:#fff!important;border-radius:4px}
body.ir-theme .sidebar .nav-item,body.ir-theme .sidebar a.nav-item{
  color:var(--fe-ink)!important
}
body.ir-theme .sidebar .nav-item:hover,body.ir-theme .sidebar a.nav-item:hover{background:#F3FAFD}
body.ir-theme .sidebar .nav-item.active,body.ir-theme .sidebar a.nav-item.active,
body.ir-theme .sidebar a.nav-item[aria-current]{color:var(--fe-red)!important;background:#FDECEE}
body.ir-theme .sidebar .nav-group-label{color:var(--fe-muted)!important}
body.ir-theme .sidebar .icon,body.ir-theme .sidebar svg{color:inherit}
body.ir-theme .sb-close{color:var(--fe-ink)}

/* Hero band — light blue, dark text */
body.ir-theme main.ir-main>.ir-band{
  background:var(--fe-band)!important;color:var(--fe-ink);overflow:visible
}
body.ir-theme .ir-band h1{color:var(--fe-ink)!important;font-family:var(--fe-font);font-weight:700}
body.ir-theme .ir-band h1::after{background:var(--fe-red)!important}
body.ir-theme .ir-band :is(p,.lede,.cl-lede,.rs-lead,.sp-sum){color:var(--fe-ink)!important}
body.ir-theme .ir-band .crumbs{color:var(--fe-muted)!important;background:none}
body.ir-theme .ir-band .crumbs a{color:var(--fe-red)!important;text-decoration-color:rgba(200,16,46,.4)}
body.ir-theme .ir-band .crumbs a:hover{text-decoration-color:var(--fe-red)}
body.ir-theme .ir-band .crumbs .sep,body.ir-theme .ir-band .crumbs .here{color:var(--fe-muted)!important}
body.ir-theme .ir-band .crumbs svg{color:var(--fe-red)!important}
body.ir-theme .ir-band :is(.rs-kicker,.pr-kicker,.kicker,.eyebrow){color:var(--fe-red)!important}
body.ir-theme .ir-band :is(.rs-kicker,.pr-kicker) svg{color:var(--fe-red)!important}
body.ir-theme .ir-band a:not(.btn):not(.ir-btn){color:var(--fe-red)!important}
body.ir-theme .ir-band :is(.rs-verify,.sp-disc){
  color:var(--fe-ink)!important;background:#fff;border:1px solid var(--fe-line)
}
body.ir-theme .ir-band :is(.rs-verify,.sp-disc) strong{color:var(--fe-ink)!important}
body.ir-theme .ir-band :is(.rs-verify,.sp-disc) svg{color:var(--fe-red)!important}
body.ir-theme .ir-band .btn{background:var(--fe-red);color:#fff}
body.ir-theme .ir-kicker{color:var(--fe-red)!important}

/* Buttons, focus, teal leftovers */
body.ir-theme .ir-btn-teal,body.ir-theme .btn.primary,body.ir-theme .ir-form button[type=submit]{
  background:var(--fe-red)!important;color:#fff!important
}
body.ir-theme .ir-btn,body.ir-theme main .btn:not(.ir-band .btn){font-family:var(--fe-font)}

/* Footer — light, keep columns on inner pages */
body.ir-theme .ir-footer{background:#fff!important;color:var(--fe-muted);border-top:1px solid var(--fe-line)}
body.ir-theme .ir-footer a,body.ir-theme .ir-footer-legal a{color:var(--fe-red)!important}
body.ir-theme .ir-footer .ir-fh,body.ir-theme .ir-footer .logo-text{color:var(--fe-ink)!important;font-family:var(--fe-font)}
body.ir-theme .ir-footer-logo{color:var(--fe-ink)}
body.ir-theme .ir-footer .logo-mark{background:var(--fe-red)!important;color:#fff!important;border-radius:4px}
body.ir-theme .ir-footer .footer-affiliate{color:var(--fe-ink)}
body.ir-theme .ir-footer .footer-legal{color:var(--fe-muted)}
body.ir-theme .report-bar{background:#fff;border-top:1px solid var(--fe-line);color:var(--fe-ink)}
body.ir-theme .report-bar a{color:var(--fe-red)}

/* Content panels, QA, tables */
body.ir-theme .qa{border-top-color:var(--fe-red)}
body.ir-theme .art-ex{background:#FDECEE;border-color:#F5B7BE;border-left-color:var(--fe-red)}
body.ir-theme .art-ex strong{color:var(--fe-red-dark)}
body.ir-theme .art-table thead th{background:var(--fe-ink);color:#fff}
body.ir-theme .art-tw:focus{outline-color:var(--fe-red)}
body.ir-theme .ir-table thead th{color:var(--fe-ink);border-bottom-color:var(--fe-ink)}

/* Sponsored / house ads — keep one card, adapt navy/teal accents to the red theme */
body.ir-theme .ad-headline{color:var(--fe-ink)}
body.ir-theme .ad-cta{background:var(--fe-red)!important;color:#fff!important}
body.ir-theme .ad-advertise{color:var(--fe-red)!important}
body.ir-theme .ad-unit{font-family:var(--fe-font)}

/* On this page (injected on inner pages with 2+ headings) */
.ir-fe-toc-box{background:#fff;border:1px solid var(--fe-line);border-radius:2px;padding:16px 18px;margin:0 auto 28px;max-width:var(--ir-max,1180px)}
.ir-fe-toc-box h2{margin:0 0 10px;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--fe-muted);font-weight:700}
.ir-fe-toc-box ol{list-style:none;margin:0;padding:0;border-left:2px solid var(--fe-line)}
.ir-fe-toc-box li{margin:0}
.ir-fe-toc-box a{display:block;padding:5px 0 5px 14px;color:var(--fe-ink)!important;text-decoration:none;font-size:15px;border-left:3px solid transparent;margin-left:-2px}
.ir-fe-toc-box a:hover{color:var(--fe-red)!important}
.ir-fe-toc-box li.active a{border-left-color:var(--fe-red);color:var(--fe-red)!important;font-weight:700}
@media (min-width:1000px){
  main.ir-main.ir-fe-has-toc{display:grid;grid-template-columns:230px minmax(0,1fr);gap:32px 48px;align-items:start}
  main.ir-main.ir-fe-has-toc>.ir-band{grid-column:1/-1;margin-left:0;margin-right:0}
  main.ir-main.ir-fe-has-toc>.ir-fe-toc-box{grid-column:1;grid-row:2;position:sticky;top:88px;margin:0;align-self:start}
  main.ir-main.ir-fe-has-toc>.report-bar{grid-column:1/-1}
}
@media (max-width:820px){
  body.ir-theme{font-size:17px}
  .ir-fe-toc-box ol{display:flex;flex-wrap:wrap;border:0;gap:0 6px}
  .ir-fe-toc-box a{border-left:0;border-bottom:3px solid transparent;margin:0;padding:6px 8px}
  .ir-fe-toc-box li.active a{border-left-color:transparent;border-bottom-color:var(--fe-red)}
}


/* IR red wordmark: real text on .ir-fe-mark, CSS fallback on leftover shield marks (e.g. contractor pages) */
body.ir-theme .logo-mark.ir-fe-mark,
body.ir-theme span.ir-fe-mark,
body.ir-theme .ir-fe-mark{
  display:inline-flex;align-items:center;justify-content:center;
  width:42px;height:42px;border-radius:4px;
  background:var(--fe-red)!important;color:#fff!important;
  font-family:var(--fe-font);font-weight:700;font-size:16px;letter-spacing:.02em;
  line-height:1;flex:0 0 auto
}
body.ir-theme .logo-mark.ir-fe-mark svg{display:none}
body.ir-theme .logo-mark:not(.ir-fe-mark){
  background:var(--fe-red)!important;color:#fff!important;border-radius:4px;
  width:42px;height:42px;position:relative;overflow:hidden
}
body.ir-theme .logo-mark:not(.ir-fe-mark) svg{display:none}
body.ir-theme .logo-mark:not(.ir-fe-mark)::after{
  content:"IR";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  color:#fff;font-family:var(--fe-font);font-weight:700;font-size:16px;letter-spacing:.02em
}
body.ir-theme .ir-footer-logo .logo-mark{background:var(--fe-red)!important;color:#fff!important;border-radius:4px}

/* Report-bar buttons — red / theme-matched */
body.ir-theme .report-bar .rb-q{color:var(--fe-ink)!important;font-family:var(--fe-font)}
body.ir-theme .report-bar .rb-btn,
body.ir-theme .report-bar button.btn.rb-btn{
  background:var(--fe-red)!important;color:#fff!important;border-color:var(--fe-red)!important;
  text-transform:none;font-family:var(--fe-font);border-radius:2px
}
body.ir-theme .report-bar .rb-btn.rb-suggest,
body.ir-theme .report-bar button.btn.rb-suggest{
  background:#fff!important;color:var(--fe-red)!important;border-color:var(--fe-red)!important
}

/* License badge and older card accents */
body.ir-theme .agd-tag{background:#E8F4FA;color:var(--fe-ink)}
body.ir-theme .agd-tag.agd-lic{background:var(--fe-band);color:var(--fe-ink)}
body.ir-theme .agd-tag.agd-paid{background:#F4F4F4;color:var(--fe-muted)}
body.ir-theme .agd-tag.agd-feat{background:var(--fe-red);color:#fff}
body.ir-theme .card,body.ir-theme .ir-panel,body.ir-theme .qa,body.ir-theme .st-card{
  border-color:var(--fe-line)
}

/* Long URLs in body copy (e.g. alerts sources) should not overflow on phones */
body.ir-theme main a,body.ir-theme main p,body.ir-theme main li{overflow-wrap:anywhere;word-break:break-word}


/* Desktop widen (1024px+). Outer chrome ~1320px; prose stays ~800px.
   Below 1024px the previous widths are unchanged.
   Selectors are more specific than theme.css `body.ir-theme main.ir-main`. */
@media (min-width:1024px){
  body.ir-theme,
  body.ir-theme.ir-side-layout{
    --ir-max:1320px;
    --ir-read:800px;
  }

  /* Homepage chrome was hardcoded at 1180px. */
  body.ir-home .ir-fe-top,
  body.ir-home .ir-fe-band-in,
  body.ir-home .ir-fe-search .ir-hero-search,
  body.ir-home .ir-fe-layout,
  body.ir-home .ir-footer-in,
  body.ir-home .report-bar{
    max-width:1320px;
    width:100%;
    box-sizing:border-box;
  }
  body.ir-home .ir-fe-layout{
    grid-template-columns:240px minmax(0,1fr);
    gap:40px 48px;
  }
  body.ir-home .ir-fe-search .ir-hs-box{max-width:800px;width:100%}

  /* Inner-page top bar and footer align with the 1320 frame */
  body.ir-theme:not(.ir-home) .topbar{
    padding-left:max(32px,calc((100% - 1320px)/2));
    padding-right:max(32px,calc((100% - 1320px)/2));
  }
  body.ir-theme .ir-footer-in{
    max-width:1320px;
  }

  /* "On this page" left rail. display:grid must beat theme.css display:block. */
  body.ir-theme main.ir-main.ir-fe-has-toc{
    display:grid!important;
    grid-template-columns:240px minmax(0,1fr);
    column-gap:48px;
    row-gap:32px;
    align-items:start;
    box-sizing:border-box;
    max-width:1320px;
    width:100%;
    margin-left:auto;
    margin-right:auto;
    padding-left:0!important;
    padding-right:0!important;
    padding-bottom:72px!important;
  }
  body.ir-theme main.ir-main.ir-fe-has-toc>.ir-band{
    grid-column:1/-1;
    /* Full-bleed light-blue band, content aligned to the 1320 frame */
    width:auto;
    margin-left:calc(50% - 50vw);
    margin-right:calc(50% - 50vw);
    padding-left:max(32px,calc((100vw - 1320px)/2));
    padding-right:max(32px,calc((100vw - 1320px)/2));
    box-sizing:border-box;
  }
  body.ir-theme main.ir-main.ir-fe-has-toc>.ir-band .ir-band-in{
    max-width:1320px;
    width:100%;
    margin:0 auto;
    box-sizing:border-box;
  }
  body.ir-theme main.ir-main.ir-fe-has-toc>.ir-fe-toc-box{
    grid-column:1;
    grid-row:2/span 80;
    position:sticky;
    top:88px;
    margin:0!important;
    align-self:start;
    height:max-content;
    max-width:none!important;
    width:auto;
    z-index:2;
  }
  body.ir-theme main.ir-main.ir-fe-has-toc>.report-bar,
  body.ir-theme main.ir-main.ir-fe-has-toc>.ir-ad,
  body.ir-theme main.ir-main.ir-fe-has-toc>.rs-foot-space{
    grid-column:1/-1;
    max-width:none;
    width:auto;
    margin-left:0;
    margin-right:0;
  }
  body.ir-theme main.ir-main.ir-fe-has-toc>:not(.ir-band):not(.ir-fe-toc-box):not(.report-bar):not(.ir-ad):not(.rs-foot-space){
    grid-column:2;
    width:auto;
    margin-left:0!important;
    margin-right:0!important;
  }
  body.ir-theme main.ir-main.ir-fe-has-toc>.report-bar,
  body.ir-theme main.ir-main.ir-fe-has-toc>.ir-ad,
  body.ir-theme main.ir-main.ir-fe-has-toc>.rs-foot-space{
    z-index:3;
    background:#fff;
  }

  /* Long prose stays readable; directory cards/tables can use the full column */
  body.ir-theme main.ir-main .ir-prose{max-width:800px!important}
  body.ir-theme main.ir-main>.st-meta,
  body.ir-theme main.ir-main>.lh-caveat,
  body.ir-theme main.ir-main.ir-fe-has-toc>.ir-panel,
  body.ir-theme main.ir-main.ir-fe-has-toc>.qa,
  body.ir-theme main.ir-main.ir-fe-has-toc>.st-meta,
  body.ir-theme main.ir-main.ir-fe-has-toc>.lh-caveat,
  body.ir-theme main.ir-main.ir-fe-has-toc>.st-disc{
    max-width:800px!important;
  }
  body.ir-theme main.ir-main.ir-fe-has-toc>.cd,
  body.ir-theme main.ir-main.ir-fe-has-toc>.cl{
    max-width:none!important;
  }
}

/* Featured guide cards (homepage). 1 col phone, 2 tablet, 3 desktop. */
.ir-fe-featured{margin:8px 0 0}
.ir-fe-featured h2{margin:0 0 18px;font-size:28px;line-height:1.25;font-weight:700;color:var(--fe-ink)}
.ir-fe-featured-lead{margin:0 0 28px;max-width:800px}
.ir-fe-feature-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:20px}
body.ir-home a.ir-fe-feature-card,body.ir-home a.ir-fe-feature-card:hover{
  display:flex;flex-direction:column;height:100%;background:#fff;border:1px solid var(--fe-line);border-radius:2px;
  text-decoration:none!important;color:var(--fe-ink)!important;overflow:hidden
}
body.ir-home a.ir-fe-feature-card img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;display:block;background:var(--fe-band)}
body.ir-home a.ir-fe-feature-card h3{margin:14px 16px 8px;font-size:18px;line-height:1.3;font-weight:700;color:var(--fe-ink)!important;text-decoration:none!important}
body.ir-home a.ir-fe-feature-card p{margin:0 16px 16px;font-size:15px;line-height:1.5;color:var(--fe-muted)!important;text-decoration:none!important;flex:1}
body.ir-home a.ir-fe-feature-card:hover h3{color:var(--fe-red)!important}
@media (min-width:700px){
  .ir-fe-feature-grid{grid-template-columns:1fr 1fr}
}
@media (min-width:1024px){
  .ir-fe-feature-grid{grid-template-columns:1fr 1fr 1fr;gap:22px}
}

/* Guide article photograph (staged real-photo thumbnails). */
figure.ir-guide-photo{margin:0 0 1.25rem;max-width:600px}
figure.ir-guide-photo img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;display:block;border-radius:2px}
figure.ir-guide-photo figcaption{margin:8px 0 0;font-size:13px;line-height:1.4;color:#444}

/* ===== Mobile chrome fix (2026-11-30) =====
   Homepage Style D rules also live in theme.css, but that file has a 7-day
   cache and no query string. Repeating the typography/layout here (in the
   later-loading sidebar.css / theme-d-site.css) keeps the header, nav and
   categories from rendering unstyled when theme.css is stale.

   Desktop (821px+) is unchanged: .ir-fe-top stays the header, the navy
   topbar stays hidden, and the 1320px frame is left to the rules above.
   Do not set max-width here — that would override the 1024px+ 1320px rules. */

/* Defensive homepage chrome (same look as theme.css, no width changes). */
body.ir-theme.ir-home .ir-fe-top{
  display:flex;align-items:flex-start;justify-content:space-between;gap:24px;
  padding:18px 40px 16px;margin:0 auto;background:var(--fe-bg);
  box-sizing:border-box
}
body.ir-theme.ir-home .ir-fe-logo{
  display:flex;align-items:flex-start;gap:12px;text-decoration:none;color:var(--fe-ink)!important
}
body.ir-theme.ir-home .ir-fe-logo:hover{color:var(--fe-ink)!important;text-decoration:none}
body.ir-theme.ir-home .ir-fe-name-wrap{display:flex;flex-direction:column;min-width:0}
body.ir-theme.ir-home .ir-fe-name{display:block;font-weight:700;font-size:20px;line-height:1.2;color:var(--fe-ink)}
body.ir-theme.ir-home .ir-fe-tag{display:block;margin-top:2px;font-size:13px;line-height:1.3;color:var(--fe-muted);font-weight:400}
body.ir-theme.ir-home .ir-fe-nav{display:flex;flex-wrap:wrap;gap:8px 22px;padding-top:8px;justify-content:flex-end}
body.ir-theme.ir-home .ir-fe-nav a{
  color:var(--fe-ink)!important;text-decoration:none;font-size:16px;font-weight:600
}
body.ir-theme.ir-home .ir-fe-nav a:hover{color:var(--fe-red)!important;text-decoration:underline}
body.ir-theme.ir-home .ir-fe-band-copy h1{
  margin:0 0 10px;font-size:clamp(34px,4.6vw,52px);line-height:1.12;font-weight:700;
  color:var(--fe-ink);max-width:none
}
body.ir-theme.ir-home .ir-fe-band-copy h1::after{display:none!important}
body.ir-theme.ir-home .ir-fe-toc ol,
body.ir-theme.ir-home .ir-fe-toc ul{
  list-style:none!important;margin:0;padding:0;border-left:2px solid var(--fe-line)
}
body.ir-theme.ir-home .ir-fe-toc li{margin:0;list-style:none!important}
body.ir-theme.ir-home .ir-fe-toc a{
  display:block;padding:6px 0 6px 14px;color:var(--fe-ink)!important;text-decoration:none;
  font-size:15px;line-height:1.4;border-left:3px solid transparent;margin-left:-2px
}
body.ir-theme.ir-home .ir-fe-toc a:hover{color:var(--fe-red)!important}
body.ir-theme.ir-home .ir-fe-toc li.active a{border-left-color:var(--fe-red);color:var(--fe-red)!important;font-weight:700}

@media (max-width:820px){
  /* One sticky header only: hamburger, logo, search — same as inner pages. */
  body.ir-theme.ir-home.ir-side-layout .topbar,
  body.ir-theme.ir-home .topbar{
    display:flex!important;
    position:sticky!important;
    top:0;left:0;right:0;
    z-index:80;
    background:#fff!important;
    color:var(--fe-ink);
    border:0;
    border-bottom:1px solid var(--fe-line);
    box-shadow:none;
    min-height:64px;
    height:auto;
    width:100%!important;
    max-width:none;
    padding:0 12px 0 8px!important;
    gap:8px;
    align-items:center;
    box-sizing:border-box
  }
  body.ir-theme.ir-home .topbar .brand{
    display:flex!important;
    align-items:center;
    margin-right:auto;
    min-width:0;
    color:var(--fe-ink)!important;
    text-decoration:none
  }
  body.ir-theme.ir-home .topbar .brand .logo-text,
  body.ir-theme.ir-home .topbar .brand .logo-text span{
    color:var(--fe-ink)!important;
    font-family:var(--fe-font);
    font-weight:700;
    font-size:17px;
    letter-spacing:-.02em;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis
  }
  body.ir-theme.ir-home .topbar .ir-topnav{display:none!important}
  body.ir-theme.ir-home .topbar .tb-menu,
  body.ir-theme.ir-home .topbar .tb-search{
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    color:var(--fe-ink)!important;
    width:44px!important;
    height:44px!important;
    min-width:44px;
    min-height:44px;
    padding:0!important;
    background:transparent!important;
    border:0;
    flex:0 0 44px
  }
  body.ir-theme.ir-home .topbar .tb-search .tb-search-txt{display:none}

  /* Hide the duplicate Style D brand + text-nav block on phones and tablets. */
  body.ir-theme.ir-home .ir-fe-top{display:none!important}

  /* "← Home" is wrong on the homepage. Desktop keeps it so the 1440 layout does not shift. */
  body.ir-theme.ir-home .ir-fe-back{display:none!important}

  /* Tighter H1; body line-height 1.65 was leaking through when theme.css was stale. */
  body.ir-theme.ir-home .ir-fe-band-copy h1{
    font-size:28px!important;
    line-height:1.2!important;
    letter-spacing:-.02em;
    margin:0 0 8px
  }

  /* Search field and button on one row. */
  body.ir-theme.ir-home .ir-hs-box{
    flex-direction:row!important;
    max-width:none;
    align-items:stretch;
    gap:8px
  }
  body.ir-theme.ir-home .ir-fe-search button[type=submit]{
    width:auto!important;
    flex:0 0 auto;
    white-space:nowrap;
    min-width:44px;
    min-height:48px
  }

  /* Categories: tappable rows, no numbers. 1 col on phones, 2 col on tablets. */
  body.ir-theme.ir-home .ir-fe-toc{
    position:static;
    padding-bottom:16px;
    border-bottom:1px solid var(--fe-line)
  }
  body.ir-theme.ir-home .ir-fe-toc ol,
  body.ir-theme.ir-home .ir-fe-toc ul{
    list-style:none!important;
    display:grid!important;
    grid-template-columns:1fr;
    gap:8px;
    border:0!important;
    margin:0!important;
    padding:0!important
  }
  body.ir-theme.ir-home .ir-fe-toc li{
    margin:0;
    padding:0;
    list-style:none!important
  }
  body.ir-theme.ir-home .ir-fe-toc li::marker,
  body.ir-theme.ir-home .ir-fe-toc li::before{
    content:none!important;
    display:none!important
  }
  body.ir-theme.ir-home .ir-fe-toc a{
    display:flex!important;
    align-items:center;
    min-height:44px;
    padding:10px 12px!important;
    margin:0!important;
    box-sizing:border-box;
    background:#fff;
    border:1px solid var(--fe-line)!important;
    border-radius:4px;
    color:var(--fe-ink)!important;
    text-decoration:none;
    font-size:14px;
    line-height:1.3;
    font-weight:600
  }
  body.ir-theme.ir-home .ir-fe-toc a:hover,
  body.ir-theme.ir-home .ir-fe-toc li.active a{
    color:var(--fe-red)!important;
    border-color:var(--fe-red)!important;
    font-weight:700
  }

  /* Inner-page "On this page" chips: 44px tap targets. */
  body.ir-theme .ir-fe-toc-box a{
    min-height:44px;
    display:inline-flex;
    align-items:center;
    padding:10px 10px;
    box-sizing:border-box
  }

  /* styles.css sets .tb-btn to flex-basis 40px, which was beating width:44px. */
  body.ir-theme .topbar .tb-menu,
  body.ir-theme .topbar .tb-search,
  body.ir-theme .topbar .tb-btn{
    width:44px!important;
    height:44px!important;
    min-width:44px;
    min-height:44px;
    flex:0 0 44px!important;
    box-sizing:border-box
  }
  /* Growing the buttons to 44px overflowed inner-page headers by ~4px at 390px
     because the wordmark would not shrink. Let the brand ellipsize. */
  body.ir-theme .topbar{
    box-sizing:border-box;
    max-width:100%;
    padding:0 8px 0 4px!important;
    gap:6px
  }
  body.ir-theme .topbar .brand{
    min-width:0;
    overflow:hidden;
    flex:1 1 auto
  }
  body.ir-theme .topbar .brand .logo-mark,
  body.ir-theme .topbar .brand .ir-fe-mark{
    flex:0 0 42px;
    min-width:42px
  }
  body.ir-theme .topbar .brand > div:not(.logo-mark){
    min-width:0;
    overflow:hidden;
    flex:1 1 auto
  }
  body.ir-theme .topbar .brand .logo-text,
  body.ir-theme:not(.ir-home) .topbar .brand .logo-text,
  body.ir-theme:not(.ir-home) .sb-drawer-head .logo-text{
    font-size:17px!important;
    font-weight:700;
    letter-spacing:-.02em;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis
  }
  body.ir-theme .topbar .brand .logo-text span{
    font-size:inherit;
    letter-spacing:inherit;
    white-space:nowrap
  }
}

@media (min-width:700px) and (max-width:820px){
  body.ir-theme.ir-home .ir-fe-toc ol,
  body.ir-theme.ir-home .ir-fe-toc ul{
    grid-template-columns:1fr 1fr
  }
  body.ir-theme.ir-home .ir-fe-band-copy h1{font-size:32px!important;line-height:1.2!important}
}

@media (max-width:500px){
  body.ir-theme.ir-home .ir-hs-box input{font-size:16px}
  body.ir-theme.ir-home .ir-fe-search button[type=submit]{padding-left:16px;padding-right:16px}
}
