/* Handoff template system (pymander-handoff-update-2): T-Article / T-Answer /
   T-Condition, production translation. System font stack per the comps. */
.hf, .hf body { margin: 0; }
body.hf {
  background: #FFFFFF; color: #1D1D1F;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.hf a { color: #1D1D1F; text-decoration: none; }
.hf * { box-sizing: border-box; }

/* ── header ── */
.hf-head {
  position: sticky; top: 14px; z-index: 50; margin: 14px auto 0; width: max-content; max-width: calc(100% - 24px);
  height: 68px; padding: 0 8px 0 24px; border-radius: 999px; background: #FFF;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.hf-head a.hf-nav { font-size: 17px; height: 44px; padding: 0 14px; border-radius: 999px; display: flex; align-items: center; }
.hf-head a.hf-nav.on { background: #F5F4F0; }
.hf-head a.hf-sign { margin-left: 18px; font-size: 17px; height: 44px; padding: 0 12px; display: flex; align-items: center; }
.hf-head a.hf-cta {
  height: 52px; padding: 0 22px; border-radius: 999px; background: #1D1D1F; color: #FFF;
  font-size: 17px; font-weight: 500; display: flex; align-items: center; gap: 10px;
}
.hf-head a.hf-cta svg { flex: none; }
.hf-mhead { display: none; }
.hf-burger { display: none; }

/* mobile header */
@media (max-width: 900px) {
  .hf-head { display: none; }
  .hf-mhead {
    margin: 12px 12px 0; height: 56px; padding: 0 6px 0 16px; border-radius: 999px;
    background: #FFF; box-shadow: 0 8px 24px rgba(0,0,0,.08);
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 12px; z-index: 50;
  }
  .hf-mhead::before {
    content: ""; position: fixed; top: 0; left: 0; right: 0; height: 88px;
    background: linear-gradient(rgba(245,244,240,.97) 55%, rgba(245,244,240,0));
    pointer-events: none; z-index: -1;
  }
  .hf-mhead .hf-word { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
  .hf-mhead .hf-mrow { display: flex; gap: 6px; align-items: center; }
  .hf-mhead a.hf-cta {
    height: 44px; padding: 0 16px; border-radius: 999px; background: #1D1D1F; color: #FFF;
    font-size: 15px; font-weight: 500; display: flex; align-items: center;
  }
  .hf-burger {
    display: flex; width: 44px; height: 44px; border: 0; background: #F5F4F0; border-radius: 999px;
    align-items: center; justify-content: center; cursor: pointer;
  }
}
.hf-menu {
  position: fixed; inset: 0; z-index: 90; background: rgba(255,255,255,.82);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: none; flex-direction: column; padding: 28px 24px; gap: 6px;
}
.hf-menu.open { display: flex; }
.hf-menu a { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; padding: 14px 8px; }
.hf-menu .hf-menu-x { align-self: flex-end; width: 44px; height: 44px; border: 0; background: #F5F4F0; border-radius: 999px; font-size: 20px; cursor: pointer; }
.hf-menu a.hf-menu-cta { margin-top: 18px; background: #1D1D1F; color: #FFF; border-radius: 999px; text-align: center; font-size: 19px; padding: 18px; }

/* ── hero ── */
.hf-wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.hf-hero { padding: 110px 0 0; display: flex; flex-direction: column; gap: 22px; }
.hf-crumbs { display: flex; gap: 8px; font-size: 15px; color: #6E6E73; flex-wrap: wrap; }
.hf-crumbs a { color: #6E6E73; }
.hf-crumbs .hf-here { color: #1D1D1F; }
.hf-h1 { margin: 0; max-width: 980px; font-size: clamp(34px, 4.4vw, 60px); font-weight: 500; line-height: 1.04; letter-spacing: -0.04em; }
.hf-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hf-chip { height: 32px; padding: 0 14px; border-radius: 999px; background: #F5F4F0; font-size: 14px; color: #3A3A3C; display: inline-flex; align-items: center; }

/* ── layout ── */
.hf-main { padding: 56px 0 0; display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 80px; align-items: start; }
.hf-article { display: flex; flex-direction: column; gap: 44px; min-width: 0; }
.hf-sec { display: flex; flex-direction: column; gap: 16px; }
.hf-h2 { margin: 0; font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.hf-p { margin: 0; font-size: 18px; line-height: 1.65; color: #3A3A3C; }
.hf-ul { margin: 0; padding: 0 0 0 22px; font-size: 18px; line-height: 1.65; color: #3A3A3C; display: flex; flex-direction: column; gap: 8px; }
.hf-ul strong { color: #1D1D1F; }

/* in-short / short-answer cards */
.hf-short { background: #F5F4F0; border-radius: 28px; padding: 36px 38px; display: flex; flex-direction: column; gap: 12px; }
.hf-short .hf-k { font-size: 15px; color: #6E6E73; }
.hf-short .hf-lead { margin: 0; font-size: clamp(21px, 2.2vw, 26px); font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; }
.hf-short .hf-sub { margin: 0; font-size: 17px; line-height: 1.65; color: #6E6E73; }
.hf-short.dark { background: #1D1D1F; color: #FFF; border-radius: 32px; padding: 44px 48px; gap: 14px; }
.hf-short.dark .hf-k { color: #A1A1A6; }
.hf-short.dark .hf-lead { font-size: clamp(23px, 2.6vw, 30px); line-height: 1.28; }
.hf-short.dark .hf-sub { color: #C7C7CC; }

/* numbered cards (answers: what to do) */
.hf-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.hf-numcard { background: #F5F4F0; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 150px; }
.hf-numcard .hf-n { width: 32px; height: 32px; border-radius: 50%; background: #1D1D1F; color: #FFF; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.hf-numcard .hf-t { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.hf-numcard .hf-d { font-size: 16px; line-height: 1.5; color: #6E6E73; }

/* check rows (bold-lead bullets) */
.hf-checks { display: flex; flex-direction: column; gap: 10px; }
.hf-check { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; background: #F5F4F0; border-radius: 20px; }
.hf-check .hf-c { width: 30px; height: 30px; flex: none; border-radius: 50%; background: #AFD6B7; display: flex; align-items: center; justify-content: center; }
.hf-check p { margin: 0; font-size: 17px; line-height: 1.55; color: #3A3A3C; }
.hf-check strong { color: #1D1D1F; font-weight: 600; }

/* emergency card */
.hf-emg { background: #FBEAE8; border-radius: 28px; padding: 34px 36px; display: flex; flex-direction: column; gap: 16px; }
.hf-emg .hf-emg-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hf-emg h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.hf-emg .hf-911 { flex: none; background: #B42318; color: #FFF; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; }
.hf-emg ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 17px; line-height: 1.55; color: #1D1D1F; }
.hf-emg li { display: flex; gap: 12px; align-items: flex-start; }
.hf-emg li::before { content: ""; width: 8px; height: 8px; margin-top: 9px; flex: none; border-radius: 50%; background: #B42318; }
.hf-emg .hf-emg-note { margin: 0; font-size: 16px; line-height: 1.65; color: #3A3A3C; }
.hf-emg a.hf-safety { font-size: 16px; font-weight: 500; }

/* glass photo banner */
.hf-banner { position: relative; border-radius: 32px; overflow: hidden; background: #D8D8D6; min-height: 260px; display: flex; align-items: flex-end; }
.hf-banner img.hf-banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hf-banner .hf-glass {
  position: relative; margin: 24px; background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 22px; padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; max-width: 460px;
}
.hf-banner .hf-glass .hf-t { font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.hf-banner .hf-glass { isolation: isolate; }
.hf-btn { align-self: flex-start; min-height: 48px; padding: 12px 22px; border-radius: 999px; background: #FFF; color: #1D1D1F; -webkit-text-fill-color: #1D1D1F; font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.10); }

/* consult thread */
.hf-conv { background: #F5F4F0; border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.45; }
.hf-bub-ai { align-self: flex-start; max-width: 72%; background: #FFF; padding: 12px 16px; border-radius: 20px; }
.hf-bub-me { align-self: flex-end; max-width: 72%; background: #1D1D1F; color: #FFF; padding: 12px 16px; border-radius: 20px; }
.hf-note { align-self: flex-start; width: 72%; margin-top: 6px; background: #FFF; border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.hf-note .hf-note-tag { display: inline-flex; align-self: flex-start; background: #A9C3E3; color: #1D1D1F; border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 600; }
.hf-note .hf-note-t { font-size: 17px; font-weight: 600; }
.hf-note .hf-note-d { font-size: 14px; line-height: 1.5; color: #6E6E73; }
.hf-note a { font-size: 14px; font-weight: 500; margin-top: 4px; }
.hf-conv .hf-illus { margin-top: 6px; font-size: 13px; color: #6E6E73; }

/* faq accordion */
.hf-faq details { border-bottom: 1px solid #E5E3DD; }
.hf-faq details:first-child { border-top: 1px solid #E5E3DD; }
.hf-faq summary { list-style: none; cursor: pointer; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 19px; }
.hf-faq summary::-webkit-details-marker { display: none; }
.hf-faq summary svg { flex: none; transition: transform .3s ease; }
.hf-faq details[open] summary svg { transform: rotate(45deg); }
.hf-faq details p { margin: 0; padding: 0 48px 22px 0; font-size: 17px; line-height: 1.6; color: #6E6E73; }

/* related rows */
.hf-related { display: flex; flex-direction: column; gap: 8px; }
.hf-related a { min-height: 60px; padding: 14px 22px; border-radius: 18px; background: #F5F4F0; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 17px; }

/* sources + disclaimer */
.hf-sources { display: flex; flex-direction: column; gap: 10px; }
.hf-sources .hf-k { font-size: 13px; font-weight: 600; color: #6E6E73; }
.hf-sources a { font-size: 16px; text-decoration: underline; text-underline-offset: 3px; }
.hf-close { margin: 0; font-size: 13px; line-height: 1.5; color: #6E6E73; }

/* aside */
.hf-aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; }
.hf-toc { display: flex; flex-direction: column; gap: 2px; }
.hf-toc .hf-k { font-size: 13px; font-weight: 600; color: #1D1D1F; padding: 0 14px 8px; }
.hf-toc a { font-size: 15px; padding: 8px 14px; border-radius: 999px; color: #6E6E73; }
.hf-toc a.on, .hf-toc a:hover { background: #F5F4F0; color: #1D1D1F; font-weight: 500; }
.hf-consult { background: #1D1D1F; color: #FFF; border-radius: 28px; padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; }
.hf-consult .hf-t { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.hf-consult .hf-d { font-size: 15px; line-height: 1.5; color: #A1A1A6; }
.hf-consult .hf-btnw { margin-top: 6px; min-height: 50px; border-radius: 999px; background: #FFF; color: #1D1D1F; font-size: 16px; font-weight: 500; display: flex; align-items: center; justify-content: center; }
.hf-consult .hf-f { font-size: 13px; color: #A1A1A6; text-align: center; }
.hf-toc-mobile { display: none; }

/* more grid */
.hf-more { padding: 100px 0 0; display: flex; flex-direction: column; gap: 28px; }
.hf-more h2 { margin: 0; font-size: clamp(28px, 3vw, 36px); font-weight: 500; letter-spacing: -0.025em; }
.hf-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.hf-more-grid a { background: #F5F4F0; border-radius: 24px; padding: 28px; min-height: 140px; display: flex; flex-direction: column; gap: 8px; }
.hf-more-grid .hf-t { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.hf-more-grid .hf-d { font-size: 15px; line-height: 1.5; color: #6E6E73; }

/* footer */
.hf-foot { margin-top: 120px; padding: 0 30px 30px; }
.hf-foot .hf-panel { position: relative; border-radius: 40px; overflow: hidden; background: #D8D8D6; min-height: 600px; display: flex; align-items: flex-end; }
.hf-foot img.hf-panel-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hf-foot .hf-cta-row { position: absolute; top: 72px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding: 0 24px; }
.hf-foot .hf-cta-row h2 { margin: 0; font-size: clamp(32px, 4.4vw, 56px); font-weight: 500; line-height: 1.02; letter-spacing: -0.04em; }
.hf-foot .hf-cta-row .hf-btnw { height: 58px; padding: 0 28px; border-radius: 999px; background: #FFF; font-size: 17px; font-weight: 500; display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.hf-foot .hf-links {
  position: relative; margin: 24px; width: calc(100% - 48px);
  background: rgba(255,255,255,.62); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 28px; padding: 32px 40px; display: flex; flex-direction: column; gap: 24px;
}
.hf-foot .hf-links-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.hf-foot .hf-brand { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.hf-foot .hf-cols { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 40px; flex-grow: 1; max-width: 900px; }
.hf-foot .hf-col { display: flex; flex-direction: column; gap: 9px; }
.hf-foot .hf-col .hf-k { font-size: 13px; font-weight: 600; }
.hf-foot .hf-col a { font-size: 13px; color: #3A3A3C; }
.hf-foot .hf-legal { margin: 0; font-size: 12px; line-height: 1.5; color: #3A3A3C; max-width: 1000px; }
.hf-foot .hf-base { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: #3A3A3C; flex-wrap: wrap; }
.hf-foot .hf-base .hf-r { display: flex; gap: 20px; }
.hf-foot .hf-base a { color: #3A3A3C; }

/* floating consult pill */
.hf-float {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 140%); z-index: 60;
  background: #1D1D1F; color: #FFF; border-radius: 999px; padding: 8px 8px 8px 22px;
  display: flex; align-items: center; gap: 16px; box-shadow: 0 12px 32px rgba(0,0,0,.22);
  transition: transform .5s cubic-bezier(.22,1,.36,1); font-size: 15px;
}
.hf-float.show { transform: translate(-50%, 0); }
.hf-float a { height: 44px; padding: 0 18px; border-radius: 999px; background: #FFF; color: #1D1D1F; font-weight: 600; font-size: 15px; display: flex; align-items: center; white-space: nowrap; }

@media (max-width: 900px) {
  .hf-wrap { padding: 0 18px; }
  .hf-hero { padding-top: 44px; }
  .hf-main { grid-template-columns: 1fr; gap: 44px; padding-top: 36px; }
  .hf-aside { position: static; order: -1; display: contents; }
  .hf-toc { display: none; }
  .hf-toc-mobile { display: block; border: 1px solid #E5E3DD; border-radius: 18px; padding: 4px 18px; }
  .hf-toc-mobile summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 500; cursor: pointer; list-style: none; }
  .hf-toc-mobile summary::-webkit-details-marker { display: none; }
  .hf-toc-mobile a { display: block; padding: 9px 0; font-size: 15px; color: #6E6E73; }
  .hf-consult { margin: 0; }
  .hf-short, .hf-short.dark { padding: 28px 24px; }
  .hf-grid2 { grid-template-columns: 1fr; }
  .hf-conv { padding: 24px 18px; }
  .hf-bub-ai, .hf-bub-me, .hf-note { max-width: 88%; width: 88%; }
  .hf-more-grid { grid-template-columns: 1fr; }
  .hf-foot { padding: 0 12px 12px; margin-top: 80px; }
  .hf-foot .hf-links { padding: 24px 20px; margin: 16px; width: calc(100% - 32px); }
  .hf-foot .hf-cols { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
  .hf-float span.hf-float-t { display: none; }
  .hf-banner { min-height: 300px; }
  .hf-banner .hf-glass { margin: 16px; padding: 22px; max-width: none; }
  .hf-banner .hf-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .hf-float { transition: none; } }

/* mobile-only consult card in the article flow */
.hf-consult-mobile { display: none; }
@media (max-width: 900px) {
  .hf-aside { display: none; }
  .hf-consult-mobile { display: flex; }
}

/* comparison tables (MIGRATION: rounded table in a warm card, Pymander column dark) */
.hf-tablecard { background: #F5F4F0; border-radius: 24px; padding: 10px 12px; margin: 18px 0 4px; overflow-x: auto; }
.hf-tablecard table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; color: #3A3A3C; min-width: 560px; }
.hf-tablecard th, .hf-tablecard td { padding: 13px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #E5E3DD; }
.hf-tablecard thead th { font-size: 13px; font-weight: 600; color: #6E6E73; letter-spacing: 0.02em; }
.hf-tablecard tbody tr:last-child td, .hf-tablecard tbody tr:last-child th { border-bottom: 0; }
.hf-tablecard td.hf-pycol, .hf-tablecard th.hf-pycol { background: #1D1D1F; color: #F5F4F0; }
.hf-tablecard thead th.hf-pycol { color: #C7C7CC; }

/* One call to action per mobile view on SEO answer pages (body.hf-one-cta):
   keep the in-article consult card, drop the stacked header pill, banner CTA and floating pill. */
@media (max-width: 900px) {
  body.hf-one-cta .hf-mhead a.hf-cta,
  body.hf-one-cta .hf-banner,
  body.hf-one-cta .hf-float { display: none !important; }
}

/* Campus and symptom-checker pages (body.hf-img-cta): light answer block and the image CTA banner instead of the dark consult card. */
body.hf-img-cta .hf-short.dark { background: #F5F4F0; color: #1D1D1F; }
body.hf-img-cta .hf-short.dark .hf-k { color: #6E6E73; }
body.hf-img-cta .hf-short.dark .hf-sub { color: #6E6E73; }
body.hf-img-cta .hf-consult { background: #F5F4F0; color: #1D1D1F; }
body.hf-img-cta .hf-consult .hf-d, body.hf-img-cta .hf-consult .hf-f { color: #6E6E73; }
body.hf-img-cta .hf-consult .hf-btnw { background: #1D1D1F; color: #FFF; }
@media (max-width: 900px) {
  body.hf-img-cta .hf-consult-mobile { display: none !important; }
  body.hf-img-cta .hf-banner { display: flex !important; }
}
