@layer reset, base, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, ul, ol, figure { margin: 0; }
  img { display: block; max-width: 100%; }
  button, input { font: inherit; }
}

@layer base {
  :root {
    --ink: #2a2423;
    --ink-soft: #584c49;
    --navy: #c64c48;
    --navy-2: #a83b38;
    --mint: #fde7e4;
    --mint-strong: var(--navy);
    --brand-soft: #fff0ee;
    --paper: #ffffff;
    --line: #e3ded9;
    --line-strong: #d2c9c4;
    --muted: #776c68;
    --amber: #f1c65b;
    --shadow-sm: 0 8px 24px rgba(84, 52, 48, .07);
    --shadow: 0 16px 42px rgba(84, 52, 48, .11);
    --shadow-hover: 0 18px 42px rgba(84, 52, 48, .14);
    --radius-control: .72rem;
    --radius-sm: .75rem;
    --radius: 1rem;
    --radius-lg: 1.35rem;
    --motion: .18s ease;
    --layout-wide: 1180px;
    --reading-max: 800px;
    --feature-max: var(--layout-wide);
    --shell: min(var(--layout-wide), calc(100% - 2rem));
    --prose: min(var(--reading-max), calc(100% - 2rem));
    --space-section: clamp(2.5rem, 5vw, 4rem);
    --space-section-compact: clamp(2.15rem, 4vw, 3rem);
    --space-transition: clamp(1rem, 1.6vw, 1.4rem);
    --space-article: clamp(2.35rem, 4vw, 3.6rem);
    --space-article-stack: 2.15rem;
    --text-section: clamp(1.55rem, 2.8vw, 2.25rem);
    --text-section-article: clamp(1.48rem, 2.55vw, 2rem);
    --text-subsection: 1.12rem;
  }
  body {
    min-width: 320px;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.68;
    text-rendering: optimizeLegibility;
  }
  a { color: inherit; text-underline-offset: .22em; }
  a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 3px;
  }
  h1, h2, h3 { color: var(--ink); font-weight: 750; line-height: 1.08; letter-spacing: -.035em; overflow-wrap: anywhere; text-wrap: balance; }
  h1 { font-size: clamp(2.35rem, 6vw, 4.9rem); max-width: 15ch; }
  h2 { font-size: var(--text-section); }
  h3 { font-size: var(--text-subsection); letter-spacing: -.02em; }
  p, li { color: var(--ink-soft); }
  strong { color: var(--ink); }
}

@layer components {
  .shell { width: var(--shell); margin-inline: auto; }
  .prose-shell { width: var(--prose); margin-inline: auto; }
  .skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; padding: .7rem 1rem; background: var(--mint); color: var(--ink); transform: translateY(-160%); border-radius: var(--radius-control); font-weight: 700; }
  .skip-link:focus { transform: translateY(0); }
  .site-header { position: sticky; z-index: 20; top: 0; background: rgba(255, 255, 255, .97); border-bottom: 3px solid var(--navy); box-shadow: 0 6px 18px rgba(84, 52, 48, .06); }
  .header-inner { min-height: 76px; display: flex; align-items: center; gap: 1.25rem; }
  .brand { min-height: 44px; display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-size: .94rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
  .brand-mark { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border: 2px solid #a83b38; border-radius: 50%; background: var(--navy); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .18); }
  .brand-mark::after { content: ""; width: .34rem; height: .34rem; border-radius: 50%; background: white; box-shadow: 0 0 0 .18rem rgba(255, 255, 255, .16); }
  .brand-mark i { position: absolute; width: .65rem; height: 2px; left: 50%; top: 50%; transform-origin: left; background: white; }
  .brand-mark i:first-child { transform: rotate(-90deg); }
  .brand-mark i:last-child { transform: rotate(-25deg); }
  .desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
  .desktop-nav a { position: relative; min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-soft); text-decoration: none; font-size: .78rem; font-weight: 700; }
  .desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--ink); }
  .desktop-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.55rem; height: 2px; background: var(--navy); }
  .nav-cta { min-height: 44px; padding: .66rem .95rem; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-control); background: var(--navy); color: white; font-size: .76rem; font-weight: 800; text-decoration: none; box-shadow: 0 7px 18px rgba(201, 79, 75, .2); transition: background var(--motion), transform var(--motion), box-shadow var(--motion); }
  .nav-cta:hover { background: var(--navy-2); box-shadow: 0 10px 24px rgba(168, 59, 56, .24); transform: translateY(-1px); }
  .mobile-menu { display: none; margin-left: auto; }
  .mobile-menu summary { min-height: 44px; padding: .55rem .8rem; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; list-style: none; color: white; background: var(--navy); border: 1px solid var(--navy); border-radius: var(--radius-control); font-size: .84rem; font-weight: 800; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu:not([open]) nav { display: none; }
  .mobile-menu nav { position: absolute; top: 76px; left: 1rem; right: 1rem; padding: .65rem; display: grid; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
  .mobile-menu nav a { min-height: 44px; padding: .72rem .8rem; display: flex; align-items: center; text-decoration: none; border-radius: var(--radius-control); font-weight: 700; }
  .mobile-menu nav a:hover { background: var(--brand-soft); }
  .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
  .home-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 545px; padding: clamp(2.75rem, 5vw, 4rem) 0 2.5rem; display: grid; place-items: center; background: #f7e3ad url("hero-logistics.jpg") center center / cover no-repeat; }
  .home-hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(255, 252, 247, .96) 0%, rgba(255, 248, 231, .88) 50%, rgba(251, 223, 164, .58) 100%), linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(249, 213, 137, .46)); }
  .hero-content { position: relative; text-align: left; }
  .hero-kicker { color: var(--navy-2); font-size: .76rem; line-height: 1.25; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
  .hero-content h1 { max-width: 820px; margin: .8rem 0 0; color: var(--ink); font-size: clamp(2.15rem, 3.6vw, 3.25rem); text-shadow: none; }
  .hero-lead { max-width: 730px; margin: .8rem 0 0; color: var(--ink-soft); font-size: clamp(1rem, 1.8vw, 1.16rem); line-height: 1.6; }
  .hero-search { width: min(100%, var(--feature-max)); margin: 1.5rem 0 0; }
  .hero-search-box { position: relative; min-height: 76px; padding-left: 4rem; display: flex; align-items: stretch; overflow: hidden; background: white; border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 18px 42px rgba(85, 52, 47, .18); }
  .search-glyph { position: absolute; left: 1.7rem; top: 50%; width: 1.35rem; height: 1.35rem; border: 3px solid var(--navy); border-radius: 50%; transform: translateY(-58%); }
  .search-glyph::after { content: ""; position: absolute; width: .65rem; height: 3px; right: -.52rem; bottom: -.27rem; background: var(--navy); border-radius: 999px; transform: rotate(45deg); }
  .hero-search input { min-width: 0; flex: 1; padding: 1rem 1.25rem; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: clamp(1rem, 1.8vw, 1.2rem); }
  .hero-search input::placeholder { color: #6d7779; opacity: 1; }
  .hero-search button { flex: 0 0 200px; margin: -1px; border: 0; border-radius: 0 var(--radius) var(--radius) 0; background: var(--navy); color: white; cursor: pointer; font-size: 1.05rem; font-weight: 900; transition: background var(--motion), transform var(--motion); }
  .hero-search button:hover { background: var(--navy-2); }
  .hero-search button:active { transform: scale(.985); }
  .hero-handoff { max-width: 720px; margin: .7rem 0 0; color: var(--muted); font-size: .78rem; }
  .hero-process { position: relative; width: min(100%, var(--feature-max)); margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; }
  .hero-process::before { content: ""; position: absolute; left: 16.66%; right: 16.66%; top: .47rem; height: 2px; background: rgba(201, 79, 75, .38); }
  .hero-process li { position: relative; display: grid; justify-items: center; }
  .process-node { position: relative; z-index: 1; width: 1rem; height: 1rem; border: 3px solid white; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 4px rgba(201, 79, 75, .13); }
  .hero-process strong { margin-top: .75rem; color: var(--ink); font-size: .92rem; }
  .hero-process small { margin-top: .25rem; color: var(--muted); font-size: .76rem; line-height: 1.45; }
  .hero-footer-row { width: min(100%, var(--feature-max)); margin: 1.05rem 0 0; padding-top: .7rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-top: 1px solid rgba(168, 59, 56, .25); text-align: left; }
  .hero-footer-row > p { max-width: 690px; color: var(--muted); font-size: .7rem; line-height: 1.5; }
  .hero-footer-row nav { flex: 0 0 auto; display: flex; gap: .85rem; }
  .hero-footer-row a { min-height: 44px; display: inline-flex; align-items: center; color: var(--navy-2); font-size: .76rem; font-weight: 850; }
  .eyebrow, .mini-label, .panel-tag { color: var(--navy-2); font-size: .75rem; line-height: 1.2; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
  .signal-dot { display: inline-block; width: .48rem; height: .48rem; margin-right: .4rem; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 .3rem rgba(201, 79, 75, .15); }
  .lead { margin-top: 1.05rem; max-width: 66ch; font-size: clamp(1.08rem, 2vw, 1.28rem); line-height: 1.6; }
  .article-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1.2rem; }
  .button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .75rem 1rem; border: 1px solid transparent; border-radius: var(--radius-control); text-decoration: none; font-size: .86rem; font-weight: 800; line-height: 1.25; transition: transform var(--motion), background var(--motion), border-color var(--motion), box-shadow var(--motion); }
  .button:hover { transform: translateY(-2px); }
  .button-primary { background: var(--navy); color: white; box-shadow: 0 8px 20px rgba(201, 79, 75, .18); }
  .button-primary:hover { background: var(--navy-2); }
  .button-secondary { background: var(--paper); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
  .button-secondary:hover { background: var(--brand-soft); border-color: #d99b96; }
  .external-note { margin-top: .85rem; color: var(--muted); font-size: .78rem; }
  .search-panel { padding: clamp(1.25rem, 3vw, 1.8rem); background: linear-gradient(145deg, var(--navy), var(--navy-2)); border: 1px solid var(--navy-2); border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(101, 44, 40, .2); }
  .search-panel h2, .search-panel p, .search-panel label, .search-panel strong, .search-panel small { color: white; }
  .search-panel h2 { margin-top: .65rem; font-size: 1.5rem; }
  .search-panel > p:not(.panel-tag):not(.external-note) { margin-top: .65rem; color: white; font-size: .9rem; }
  .panel-tag { color: white; }
  .search-panel form { margin-top: 1.2rem; }
  .search-panel label { display: block; margin-bottom: .4rem; font-size: .76rem; font-weight: 750; }
  .search-control { padding: .34rem; display: flex; gap: .4rem; background: white; border-radius: var(--radius); }
  .search-control input { min-width: 0; flex: 1; padding: .7rem .65rem; color: var(--ink); border: 0; background: transparent; outline: 0; }
  .search-control button { flex: 0 0 auto; padding: .7rem .8rem; border: 0; border-radius: var(--radius-control); background: #f3c85f; color: var(--ink); cursor: pointer; font-size: .76rem; font-weight: 850; }
  .quick-answer { position: relative; z-index: 2; width: var(--shell); margin-top: -1.25rem; padding: 1.35rem 1.45rem; display: grid; grid-template-columns: minmax(180px, .34fr) minmax(0, 1fr); grid-template-areas: "label copy" "title copy"; gap: .2rem 2rem; align-items: start; background: var(--paper); border: 1px solid #e8c66c; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
  .quick-answer h2 { grid-area: title; margin-top: .35rem; font-size: 1.14rem; }
  .quick-answer p:last-child { grid-area: copy; margin-top: 0; color: #51442d; }
  .quick-answer .mini-label { grid-area: label; color: #9a5733; }
  .section { padding-block: var(--space-section); background: var(--paper); }
  .section + .section { padding-top: 0; }
  .section-heading { max-width: var(--reading-max); margin-bottom: 1.5rem; }
  .section-heading h2 { margin-top: .6rem; }
  .section-heading > p:last-child { margin-top: .85rem; }
  .split-heading { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); gap: 1.5rem; align-items: end; }
  .directory-section { position: relative; padding-bottom: var(--space-transition); }
  .directory-heading { margin-inline: auto; text-align: center; }
  .directory-heading h2 { max-width: 22ch; margin-inline: auto; }
  .directory-heading > p:last-child { max-width: 700px; margin-inline: auto; }
  .directory-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .9rem; }
  .directory-card { min-height: 205px; padding: 1.15rem .75rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); text-align: center; text-decoration: none; transition: transform var(--motion), border-color var(--motion), box-shadow var(--motion), background var(--motion); }
  .directory-card:hover { transform: translateY(-3px); background: white; border-color: #d58b86; box-shadow: var(--shadow-hover); }
  .directory-icon { position: relative; width: 92px; height: 92px; display: grid; place-items: center; overflow: hidden; color: var(--navy); background: linear-gradient(145deg, #fff, #fff1ef); border: 1px solid #e6a39f; border-radius: 50%; box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .72), 0 8px 22px rgba(201, 79, 75, .08); }
  .directory-icon::after { content: ""; position: absolute; inset: auto -1.3rem -1.45rem auto; width: 3.9rem; height: 3.9rem; border-radius: 50%; background: rgba(241, 198, 91, .18); }
  .directory-icon img { position: relative; z-index: 1; width: 52px; height: 52px; }
  .directory-name { font-size: .98rem; font-weight: 850; letter-spacing: -.02em; }
  .directory-name span { color: var(--navy); font-size: .78rem; }
  .directory-card-more .directory-icon { background: linear-gradient(145deg, #fffdf4, #fff0bd); border-color: #e2bf5f; }
  .directory-note { max-width: var(--reading-max); margin: 1rem auto 0; color: var(--muted); font-size: .8rem; text-align: center; }
  .category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
  .category-card { display: flex; flex-direction: column; min-height: 300px; padding: 1.35rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform var(--motion), border-color var(--motion), box-shadow var(--motion); }
  .category-card:hover { transform: translateY(-3px); border-color: #d99b96; box-shadow: var(--shadow-hover); }
  .category-top { display: flex; align-items: center; gap: .8rem; }
  .category-mark { flex: 0 0 auto; display: grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid #e6aaa6; border-radius: 50%; background: #fff1ef; }
  .category-mark img { width: 1.65rem; height: 1.65rem; }
  .category-card p { margin-top: .9rem; font-size: .88rem; line-height: 1.6; }
  .category-card a { min-height: 44px; margin-top: auto; padding-top: 1.1rem; display: inline-flex; align-items: flex-end; color: var(--navy-2); font-size: .83rem; font-weight: 850; }
  .section-end { margin-top: 1.15rem; display: flex; justify-content: center; }
  .section-dark { padding: var(--space-section) 0 var(--space-transition); background: var(--paper); border-block: 1px solid var(--line); }
  .section + .section.section-dark { padding-top: var(--space-transition); }
  .section-dark + .section { padding-top: var(--space-transition); }
  .section-dark h2, .section-dark h3 { color: var(--ink); }
  .section-dark p { color: var(--ink-soft); }
  .section-dark .eyebrow { color: var(--navy-2); }
  .section-dark .split-heading > p { color: var(--ink-soft); }
  .numbered-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; list-style: none; padding: 0; }
  .numbered-flow li { min-height: 210px; padding: 1.35rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
  .numbered-flow li > span { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #f3c85f; color: var(--ink); font-weight: 900; }
  .numbered-flow h3 { margin-top: 1.35rem; }
  .numbered-flow p { margin-top: .65rem; color: var(--ink-soft); }
  .evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
  .evidence-grid article { padding: 1.2rem 0; border-top: 1px solid #aebbb6; }
  .evidence-grid span, .principle-grid span { color: var(--navy-2); font-family: ui-monospace, SFMono-Regular, monospace; font-size: .74rem; font-weight: 850; }
  .evidence-grid h3 { margin-top: 1.1rem; }
  .evidence-grid p { margin-top: .5rem; font-size: .9rem; }
  .search-ideas-block { padding: clamp(1.4rem, 4vw, 2.5rem); display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.5rem 2.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
  .search-ideas-block h2 { margin-top: .6rem; }
  .search-ideas-block > div:first-child > p:last-child { margin-top: .8rem; }
  .search-notes { display: grid; gap: .75rem; }
  .search-notes p { padding-bottom: .75rem; border-bottom: 1px solid var(--line); font-size: .91rem; }
  .search-ideas-block > .button { justify-self: start; }
  .link-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; }
  .link-card { position: relative; min-height: 190px; padding: 1.25rem 1.15rem 1.15rem; display: flex; flex-direction: column; overflow: hidden; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform var(--motion), border-color var(--motion), box-shadow var(--motion); }
  .link-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--navy), var(--amber)); }
  .link-card:hover { transform: translateY(-3px); border-color: #d68d88; box-shadow: var(--shadow-hover); }
  .link-card > span { font-size: 1.05rem; font-weight: 800; }
  .link-card p { margin-top: .55rem; font-size: .85rem; }
  .link-card b { margin-top: auto; color: var(--navy-2); font-size: .77rem; }
  .closing-cta { padding-block: var(--space-section-compact); background: var(--paper); border-top: 1px solid var(--line); }
  .closing-grid { display: grid; grid-template-columns: 1fr .72fr; gap: 1.5rem; align-items: center; }
  .closing-grid h2 { margin-top: .5rem; }
  .closing-grid > div:last-child { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .7rem; }
  .page-hero { padding: clamp(2.25rem, 5vw, 3.75rem) 0 1.85rem; background: var(--paper); border-bottom: 1px solid var(--line); }
  .breadcrumbs { margin-bottom: 1.1rem; display: flex; gap: .55rem; color: var(--muted); font-size: .78rem; }
  .breadcrumbs a { color: var(--navy-2); }
  .page-hero h1 { margin-top: .7rem; max-width: 20ch; font-size: clamp(1.85rem, 3.5vw, 3rem); }
  .page-note { margin-top: .8rem; padding-left: 1rem; border-left: 3px solid var(--mint-strong); font-size: .88rem; }
  .review-date { margin-top: .8rem; color: var(--muted); font-size: .75rem; }
  .review-date a { color: var(--navy-2); font-weight: 750; }
  .page-index { margin-top: .8rem; padding: .75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
  .page-index strong { padding-inline: .45rem; font-size: .76rem; }
  .page-index a { min-height: 44px; padding: .55rem .7rem; display: inline-flex; align-items: center; color: var(--navy-2); background: var(--brand-soft); border-radius: var(--radius-control); font-size: .78rem; font-weight: 750; text-decoration: none; }
  .page-index a:hover { background: var(--mint); text-decoration: underline; }
  .article-body { padding-block: var(--space-article); background: var(--paper); }
  .article-body.shell > .prose-shell { width: 100%; max-width: var(--reading-max); }
  .article-body > section { margin-top: var(--space-article-stack); }
  .article-body > section:first-child { margin-top: 0; }
  .article-body h2 { margin-bottom: .85rem; font-size: var(--text-section-article); }
  .article-body > section > h2 { padding-left: .85rem; border-left: 3px solid var(--navy); }
  .article-body h3 { margin-top: 1.25rem; margin-bottom: .45rem; }
  .article-body p + p { margin-top: .8rem; }
  .article-body ul:not(.interactive-checklist):not(.check-list):not(.red-flag-list), .article-body ol { padding-left: 1.25rem; }
  .article-body li + li { margin-top: .6rem; }
  .callout { margin-top: 1.1rem; padding: 1.1rem 1.2rem; background: var(--paper); border: 1px solid #e6aaa6; border-left: 4px solid var(--navy); border-radius: var(--radius-sm); color: var(--ink-soft); box-shadow: var(--shadow-sm); }
  .inline-cta { margin-top: 1rem; display: inline-flex; font-weight: 800; color: var(--navy-2); }
  .table-wrap { margin-top: 1.15rem; overflow-x: auto; scrollbar-gutter: stable; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); }
  .table-wrap:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
  table { width: 100%; min-width: 650px; border-collapse: collapse; font-size: .87rem; }
  caption { padding: 1rem; text-align: left; color: var(--ink); font-weight: 800; }
  th, td { padding: .9rem 1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
  th { color: var(--ink); background: var(--paper); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; box-shadow: inset 0 -2px 0 var(--brand-soft); }
  td:first-child { color: var(--ink); font-weight: 750; }
  .comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .comparison > div, .example-card { padding: 1.35rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
  .comparison h3 { margin-top: .65rem; }
  .comparison-good, .example-good { background: var(--paper); border-left: 4px solid #4aae79 !important; }
  .comparison-weak, .example-weak { background: var(--paper); border-left: 4px solid #d58a73 !important; }
  .decision-list { margin-top: 1.1rem; display: grid; gap: .7rem; }
  .decision-list > div { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); box-shadow: var(--shadow-sm); }
  .decision-list span { color: var(--navy-2); font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }
  .decision-list h3 { margin-top: .3rem; }
  .decision-list p { margin-top: .4rem; }
  .check-panel { padding: 1.6rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
  .check-list, .interactive-checklist, .red-flag-list { padding: 0; list-style: none; }
  .check-list { display: grid; gap: .7rem; }
  .check-list li { position: relative; padding-left: 1.75rem; }
  .check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #287553; font-weight: 900; }
  .search-builder { margin-top: 1.15rem; padding: 1.25rem; background: linear-gradient(145deg, var(--navy-2), #85302e); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
  .search-builder p { color: white; }
  .search-builder p:nth-child(2) { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
  .search-builder p span { padding: .4rem .65rem; background: #ad4743; border-radius: var(--radius-control); }
  .search-builder small { display: block; margin-top: .75rem; color: #ffe7e4; }
  .in-article { margin-top: var(--space-article-stack); }
  .interactive-checklist { margin-top: 1.05rem; display: grid; gap: .7rem; }
  .interactive-checklist li { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
  .interactive-checklist li span { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; margin-top: .18rem; border: 2px solid #79a18f; border-radius: .25rem; }
  .score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
  .score-grid > div { min-height: 170px; padding: 1rem; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); }
  .score-grid b { font-size: 2rem; }
  .score-grid span { margin-top: .3rem; font-weight: 800; }
  .score-grid p { margin-top: auto; font-size: .8rem; }
  .score-strong { border-top: 4px solid #4aae79 !important; }
  .score-remove { border-top: 4px solid #d27870 !important; }
  .example-card .mini-label { margin-bottom: .65rem; }
  .save-rule { padding: 1.6rem; background: var(--paper); border: 1px solid #e8c66c; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
  .save-rule h2 { margin-top: .65rem; font-size: clamp(1.32rem, 2.35vw, 1.82rem); }
  .weight-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .weight-grid article { padding: 1.15rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
  .weight-grid span { color: #3a795f; font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
  .weight-grid h3 { margin-top: .5rem; }
  .weight-grid p { margin-top: .5rem; }
  .red-flag-list { display: grid; gap: .65rem; }
  .red-flag-list li { padding: .9rem 1rem; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid #d58a73; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
  .faq-list { display: grid; gap: .65rem; }
  .faq-list details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
  .faq-list details[open] { border-color: #d99b96; }
  .faq-list summary { padding: 1rem 3rem 1rem 1rem; cursor: pointer; color: var(--ink); font-weight: 800; line-height: 1.4; }
  .faq-list details p { padding: 0 1rem 1.1rem; }
  .principle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .principle-grid > div { padding: 1.15rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
  .principle-grid h3 { margin-top: .65rem; }
  .principle-grid p { margin-top: .45rem; }
  .contact-card { padding: clamp(1.4rem, 4vw, 2.1rem); background: var(--paper); border: 1px solid #e8c66c; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
  .contact-card h2 { margin-top: .7rem; }
  .contact-card p:last-child { margin-top: .8rem; }
  .legal-copy section { padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
  .not-found { min-height: 70vh; display: grid; place-items: center; padding-block: 3.25rem; background: var(--paper); }
  .error-code { color: var(--navy); font-family: ui-monospace, SFMono-Regular, monospace; font-size: clamp(5rem, 18vw, 11rem); font-weight: 900; line-height: .8; letter-spacing: -.1em; }
  .not-found h1 { margin-top: .8rem; font-size: clamp(1.85rem, 3.5vw, 3rem); }
  .site-footer { padding-top: 2.5rem; background: var(--paper); border-top: 3px solid var(--navy); }
  .footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 1.5rem; }
  .footer-brand { color: var(--ink); }
  .footer-about p { margin-top: 1rem; max-width: 37ch; color: var(--ink-soft); font-size: .86rem; }
  .footer-grid nav { display: grid; align-content: start; gap: .4rem; }
  .footer-grid nav h2 { margin-bottom: .55rem; color: var(--navy-2); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
  .footer-grid nav a { min-height: 44px; display: flex; align-items: center; color: var(--ink-soft); text-decoration: none; font-size: .83rem; }
  .footer-grid nav a:hover { color: var(--navy-2); text-decoration: underline; }
  .footer-bottom { margin-top: 1.8rem; padding-block: .9rem; display: flex; justify-content: space-between; gap: 1.5rem; border-top: 1px solid var(--line); }
  .footer-bottom p { max-width: 72ch; color: var(--muted); font-size: .72rem; }
  .footer-bottom p:last-child { text-align: right; }
  .whatsapp-float { position: fixed; z-index: 2147483000; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; color: white; background: #25d366; border: 0; border-radius: 50%; box-shadow: 0 12px 30px rgba(9, 46, 28, .3); text-decoration: none; transition: transform var(--motion), box-shadow var(--motion); }
  .whatsapp-float:hover, .whatsapp-float:focus-visible { color: white; outline: 3px solid var(--ink); outline-offset: 3px; transform: translateY(-2px) scale(1.04); box-shadow: 0 16px 36px rgba(9, 46, 28, .38); }
  .whatsapp-float img { display: block; width: 32px; height: 32px; }
  .whatsapp-float-label { position: absolute; top: 50%; right: 68px; width: max-content; max-width: 210px; padding: .55rem .7rem; color: white; background: #17231d; border-radius: 9px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); font-size: .8125rem; font-weight: 600; line-height: 1.2; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-50%); transition: opacity var(--motion), visibility var(--motion); }
  .whatsapp-float:hover .whatsapp-float-label, .whatsapp-float:focus-visible .whatsapp-float-label { opacity: 1; visibility: visible; }
}

@layer utilities {
  @media (max-width: 1040px) {
    .desktop-nav, .nav-cta { display: none; }
    .mobile-menu { display: block; }
    .directory-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .link-card-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); }
  }
  @media (max-width: 760px) {
    .header-inner { min-height: 64px; }
    .mobile-menu nav { top: 64px; }
    .home-hero { min-height: auto; padding: 2.35rem 0 2.1rem; background-position: 38% center; }
    .hero-content h1 { font-size: clamp(1.95rem, 8vw, 2.55rem); }
    .hero-search-box { min-height: 68px; padding-left: 3.35rem; }
    .search-glyph { left: 1.35rem; }
    .hero-search button { flex-basis: 175px; font-size: .92rem; }
    .hero-process { gap: .75rem; }
    .hero-process strong { font-size: .82rem; }
    .hero-process small { font-size: .69rem; }
    .hero-footer-row { display: grid; gap: .8rem; text-align: center; }
    .hero-footer-row > p { margin-inline: auto; }
    .hero-footer-row nav { justify-content: center; }
    .quick-answer { display: block; }
    .quick-answer p:last-child { margin-top: .55rem; }
    h1 { font-size: clamp(1.85rem, 7.5vw, 1.9rem); }
    .directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .directory-card { min-height: 175px; }
    .directory-icon { width: 78px; height: 78px; }
    .directory-icon img { width: 44px; height: 44px; }
    .split-heading, .closing-grid, .search-ideas-block { grid-template-columns: 1fr; }
    .category-grid, .numbered-flow, .evidence-grid, .comparison, .weight-grid, .principle-grid { grid-template-columns: 1fr; }
    .category-card { min-height: auto; }
    .category-card a { margin-top: 1rem; }
    .article-body > section:not(:first-child), .in-article { margin-top: 1.9rem; }
    .score-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; }
    .footer-bottom p:last-child { text-align: left; }
  }
  @media (max-width: 500px) {
    :root { --shell: min(100% - 1.1rem, var(--layout-wide)); --prose: min(100% - 1.1rem, var(--reading-max)); }
    .brand { font-size: .82rem; }
    .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
    .directory-card { min-height: 150px; padding: .85rem .55rem; gap: .75rem; border-radius: var(--radius); }
    .directory-icon { width: 68px; height: 68px; border-radius: 50%; }
    .directory-icon img { width: 38px; height: 38px; }
    .directory-name { font-size: .88rem; }
    .hero-kicker { font-size: .65rem; }
    .hero-lead { font-size: .92rem; }
    .hero-search-box { min-height: 0; padding: .35rem; display: grid; grid-template-columns: 2.5rem 1fr; border-radius: var(--radius); }
    .search-glyph { position: relative; left: .7rem; top: 1.4rem; grid-column: 1; grid-row: 1; }
    .hero-search input { grid-column: 2; grid-row: 1; padding: .9rem .65rem; font-size: .93rem; }
    .hero-search button { grid-column: 1 / -1; min-height: 48px; margin: .15rem 0 0; border-radius: var(--radius-control); }
    .hero-process { grid-template-columns: 1fr; gap: 1rem; text-align: left; }
    .hero-process::before { left: .47rem; right: auto; top: .5rem; bottom: .5rem; width: 2px; height: auto; }
    .hero-process li { grid-template-columns: 1rem 1fr; justify-items: start; gap: 0 .75rem; }
    .hero-process strong { margin-top: -.05rem; }
    .hero-process small { grid-column: 2; }
    .search-control { display: grid; }
    .search-control button { min-height: 44px; }
    .article-actions .button { width: 100%; }
    .page-index { display: grid; grid-template-columns: 1fr 1fr; }
    .page-index strong { grid-column: 1 / -1; }
    .link-card-grid, .score-grid { grid-template-columns: 1fr; }
    .link-card { min-height: 155px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-about { grid-column: auto; }
  }
  @media (max-width: 600px) {
    .whatsapp-float { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); width: 54px; height: 54px; }
    .whatsapp-float-label { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
  }
  @media print {
    .whatsapp-float { display: none !important; }
  }
}
