/* help.harlanmd.com: the HarlanMD Knowledgebase.
   The staging homepage's design (theme assets/th.css, round f) carried to a static site: its tokens with their names and
   values, the header and nav, eyebrows, Playfair statements with an italic teal accent, Lexend for everything a reader acts
   on, hairline cards (1px, no plush shadows), 52 px buttons with radius 8, white chips, the navy footer. The tint band
   (#F0F7F7, the homepage's Knowledgebase colour) marks the Knowledgebase under the header. */

/* Fallbacks sized to the web fonts (derm.harlanmd.com's measurements), so lines don't jump when the fonts arrive. */
@font-face { font-family: "Lexend Deca Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Roboto"); font-weight: 100 500; size-adjust: 109%; }
@font-face { font-family: "Lexend Deca Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Roboto Bold"), local("Roboto-Bold"); font-weight: 600 900; size-adjust: 106%; }
@font-face { font-family: "Playfair Display Fallback"; src: local("Georgia Bold"), local("Georgia-Bold"); font-weight: 500 900; size-adjust: 88%; }
@font-face { font-family: "Playfair Display Fallback"; src: local("Georgia Italic"), local("Georgia-Italic"); font-style: italic; font-weight: 400 700; size-adjust: 94.5%; }

:root {
  --th-ground: #F8F7F5;
  --th-surface: #FFFFFF;
  --th-tint: #F0F7F7;        /* the homepage's shop + Knowledgebase band */
  --th-well: #F1F8F6;        /* the consult card's well */
  --th-ink: #1C2331;
  --th-body: #5D6672;
  --th-muted: #66707C;       /* small text: 4.7:1 on ground, 5.0:1 on white */
  --th-line: #E3E5E9;        /* card border */
  --th-chip-line: #D5D9DE;
  --th-divider: #E8E6E2;
  --th-teal: #569A9C;        /* fills, glyphs and large text only */
  --th-teal-press: #46878A;
  --th-teal-text: #3A7A7C;   /* small teal text: 4.9:1 on white */
  --th-teal-tint: #EAF2F2;
  --th-dteal: #305D5E;       /* white on it is 7.4:1 */
  --th-dteal-press: #264B4C;
  --th-navy: #1C2331;
  --th-grad: linear-gradient(135deg, #182A2B 0%, #305D5E 60%, #42787B 100%);
  --th-serif: "Playfair Display", "Playfair Display Fallback", Georgia, "Times New Roman", serif;
  --th-sans: "Lexend Deca", "Lexend Deca Fallback", "Segoe UI", Helvetica, Arial, sans-serif;
  --th-radius: 8px;
  --th-card-radius: 16px;
  --th-photo-radius: 12px;
  --th-wrap: 1200px;
  --th-space: clamp(56px, 6.3vw, 88px);
  --kb-text: #3D4552;        /* long reading: darker than --th-body, 9.6:1 on white */
  --kb-well-line: #CFE3E1;
  color-scheme: only light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--th-surface); color: var(--th-body); font: 400 16px/1.65 var(--th-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--th-teal-text); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--th-ink); outline-offset: 3px; }
.kb-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kb-skip { position: absolute; left: 12px; top: -64px; z-index: 100; padding: 10px 16px; background: var(--th-ink); color: #fff; border-radius: var(--th-radius); font-weight: 600; text-decoration: none; }
.kb-skip:focus { top: 12px; }
.kb-wrap { max-width: calc(var(--th-wrap) + 48px); margin: 0 auto; padding: 0 24px; }
.kb-icon { width: 20px; height: 20px; flex: none; }

/* ---------- type ---------- */
.kb-eyebrow { display: block; margin: 0 0 14px; font: 600 13px/1.4 var(--th-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--th-teal-text); }
.kb-eyebrow--light { color: #8EC7C9; }
.kb-h1, .kb-h2 { margin: 0; font-family: var(--th-serif); font-weight: 600; color: var(--th-ink); text-wrap: balance; font-variant-numeric: lining-nums; }
.kb-h1 { font-size: clamp(38px, 3.9vw, 54px); line-height: 1.08; }
.kb-h1 em { display: block; font-style: italic; color: var(--th-teal); }
.kb-h1--page { font-size: clamp(32px, 3.2vw, 44px); line-height: 1.12; }
.kb-h2 { font-size: clamp(30px, 2.9vw, 40px); line-height: 1.15; }
.kb-h3 { margin: 0 0 6px; font: 700 clamp(19px, 1.5vw, 21px)/1.3 var(--th-sans); color: var(--th-ink); }
.kb-lede { max-width: 36em; margin: 16px 0 0; font-size: 17.5px; line-height: 1.65; color: var(--th-body); text-wrap: pretty; }
.kb-meta { margin: 14px 0 0; font-size: 14px; color: var(--th-muted); }

/* ---------- buttons and chips (the homepage's: 52 tall, radius 8; chips are the designer's white pills) ---------- */
.kb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border: 0; border-radius: var(--th-radius);
  background: var(--th-teal); color: #fff; font: 700 18.7px/1.2 var(--th-sans); text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s ease; }
.kb-btn:hover { background: var(--th-teal-press); }
.kb-btn--dark { background: var(--th-dteal); font-size: 16px; font-weight: 600; }
.kb-btn--dark:hover { background: var(--th-dteal-press); }
.kb-btn--white { background: #fff; color: var(--th-dteal); font-size: 16px; font-weight: 600; }
.kb-btn--white:hover { background: #E9F2F2; }
.kb-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; background: #fff; border: 1px solid var(--th-chip-line); border-radius: 999px;
  font: 600 15px/1.2 var(--th-sans); color: var(--th-ink); text-decoration: none; transition: border-color .15s ease, color .15s ease; }
.kb-chip:hover { border-color: var(--th-teal); color: var(--th-teal-text); }
.kb-chip .kb-icon { width: 18px; height: 18px; color: var(--th-teal); }

/* ---------- header (the staging header: logo, centred nav, account + cart) ---------- */
.kb-header { position: relative; z-index: 30; background: var(--th-surface); border-bottom: 1px solid var(--th-line); }
.kb-header__row { display: flex; align-items: center; gap: 16px; min-height: 69px; }
.kb-logo { display: flex; align-items: center; flex: none; padding: 4px 0; }
.kb-logo img { display: block; width: auto; height: 40px; max-width: none; }
.kb-nav { flex: 1; }
.kb-nav ul { display: flex; justify-content: center; list-style: none; margin: 0; padding: 0; }
.kb-nav a { display: block; padding: 10px 12px; font: 400 16px/1.2 var(--th-sans); color: var(--th-body); text-decoration: none; white-space: nowrap; }
.kb-nav a:hover, .kb-nav a[aria-current] { color: var(--th-teal-text); }
.kb-header__icons { display: flex; align-items: center; gap: 14px; flex: none; }
.kb-header__icons a { display: flex; padding: 6px; color: var(--th-ink); }
.kb-header__icons .kb-icon { width: 28px; height: 28px; stroke-width: 1.5; }
.kb-burger { display: none; }
@media (min-width: 992px) and (max-width: 1099px) { .kb-nav a { padding: 10px 8px; font-size: 15px; } .kb-logo img { height: 36px; } }
@media (max-width: 991px) {
  .kb-header__row { flex-wrap: wrap; min-height: 56px; gap: 4px; }
  .kb-burger { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -10px; padding: 0; background: none; border: 0; color: var(--th-ink); cursor: pointer; }
  .kb-burger .kb-icon { width: 26px; height: 26px; }
  .kb-burger__close { display: none; }
  .kb-logo { margin-right: auto; }
  .kb-logo img { height: 32px; }
  .kb-header__icons { gap: 2px; }
  .kb-header__icons .kb-icon { width: 26px; height: 26px; }
  /* Without JavaScript the links sit in a scrolling row under the logo; with it they open from the menu button. */
  .kb-nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .kb-nav ul { justify-content: flex-start; }
  .js .kb-burger[aria-expanded="true"] .kb-burger__open { display: none; }
  .js .kb-burger[aria-expanded="true"] .kb-burger__close { display: block; }
  .js .kb-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; overflow: visible; background: var(--th-surface); border-bottom: 1px solid var(--th-line); box-shadow: 0 14px 28px rgba(28, 35, 49, .08); }
  .js .kb-menu-open .kb-nav { display: block; }
  .js .kb-nav ul { flex-direction: column; padding: 4px 16px 16px; }
  .js .kb-nav a { padding: 15px 4px; font-size: 17px; border-bottom: 1px solid var(--th-divider); }
}
@media (max-width: 359px) { .kb-logo img { height: 28px; } }

/* ---------- the Knowledgebase sub-bar ---------- */
.kb-subbar { background: var(--th-tint); border-bottom: 1px solid #DCE9E9; }
.kb-subbar__row { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 64px; }
.kb-subbar__home { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; font: 600 16px/1.2 var(--th-sans); color: var(--th-dteal); text-decoration: none; }
.kb-subbar__home .kb-icon { width: 22px; height: 22px; color: var(--th-teal); }
.kb-subbar__home:hover span { text-decoration: underline; text-underline-offset: 3px; }
.kb-subbar .kb-search { width: min(440px, 55%); }
@media (max-width: 767px) {
  .kb-subbar__row { flex-wrap: wrap; padding: 6px 0 12px; min-height: 0; }
  .kb-subbar .kb-search { width: 100%; }
}

/* ---------- search ---------- */
.kb-search { position: relative; display: flex; align-items: center; background: #fff; border: 1px solid var(--th-chip-line); border-radius: 12px; transition: border-color .15s ease, box-shadow .15s ease; }
.kb-search:focus-within { border-color: var(--th-teal); box-shadow: 0 0 0 3px rgba(86, 154, 156, .25); }
.kb-search__icon { position: absolute; left: 16px; width: 20px; height: 20px; color: var(--th-muted); pointer-events: none; }
.kb-search__input { flex: 1; min-width: 0; height: 50px; padding: 0 12px 0 48px; border: 0; border-radius: 12px; background: transparent; font: 400 16px/1.2 var(--th-sans); color: var(--th-ink); outline: none; -webkit-appearance: none; appearance: none; }
.kb-search__input::placeholder { color: #737B87; opacity: 1; }
.kb-search__input::-webkit-search-decoration { -webkit-appearance: none; }
.kb-search__btn { flex: none; height: 42px; margin: 4px; padding: 0 20px; border: 0; border-radius: var(--th-radius); background: var(--th-dteal); color: #fff; font: 600 15px/1 var(--th-sans); cursor: pointer; }
.kb-search__btn:hover { background: var(--th-dteal-press); }
.kb-search__btn:focus-visible { outline: 2px solid var(--th-ink); outline-offset: 2px; }
.kb-search--lg .kb-search__input { height: 60px; font-size: 17px; padding-left: 52px; }
.kb-search--lg .kb-search__icon { left: 18px; width: 22px; height: 22px; }
.kb-search--lg .kb-search__btn { height: 50px; margin: 5px; padding: 0 26px; font-size: 16px; }
.kb-search--sm .kb-search__input { height: 44px; padding-left: 42px; font-size: 15px; }
.kb-search--sm .kb-search__icon { left: 14px; width: 18px; height: 18px; }
.kb-search--sm .kb-search__btn { height: 36px; padding: 0 14px; font-size: 14px; }
.kb-search__btn-icon { display: none; }
/* Small phones: the large field's button shrinks to an arrow (its label stays for screen readers), so the hint fits. */
@media (max-width: 479px) {
  .kb-search--lg .kb-search__btn { width: 50px; padding: 0; }
  .kb-search--lg .kb-search__btn-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .kb-search--lg .kb-search__btn-icon { display: block; width: 22px; height: 22px; }
  .kb-search--lg .kb-search__input { padding-left: 46px; font-size: 16px; }
  .kb-search--lg .kb-search__icon { left: 15px; }
}

/* suggestions under a search field (kb.js) */
.kb-suggest { position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); z-index: 40; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--th-line); border-radius: 12px; box-shadow: 0 18px 40px rgba(28, 35, 49, .14); }
.kb-suggest a { display: block; padding: 10px 12px; border-radius: var(--th-radius); color: var(--th-ink); text-decoration: none; }
.kb-suggest__t { display: block; font: 600 15px/1.35 var(--th-sans); }
.kb-suggest__s { display: block; margin-top: 2px; font: 400 13px/1.4 var(--th-sans); color: var(--th-muted); }
.kb-suggest [aria-selected="true"] a, .kb-suggest a:hover { background: var(--th-teal-tint); }
.kb-suggest__all a { display: flex; align-items: center; gap: 6px; font: 600 14px/1.3 var(--th-sans); color: var(--th-teal-text); }
.kb-suggest__empty { padding: 12px; font-size: 14px; color: var(--th-muted); }
.kb-suggest mark, .kb-results mark { padding: 0 2px; border-radius: 3px; background: #FEF3C2; color: inherit; }

/* ---------- home ---------- */
.kb-hero { background: var(--th-ground); border-bottom: 1px solid var(--th-divider); overflow: hidden; }
.kb-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; gap: 32px; }
.kb-hero__copy { padding: 72px 0 64px; }
.kb-hero .kb-search { max-width: 600px; margin-top: 32px; }
.kb-hero__art { display: flex; justify-content: center; align-self: end; }
.kb-hero__art img { display: block; width: 100%; max-width: 520px; height: auto; }
.kb-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; }
.kb-popular__label { font: 600 13px/1 var(--th-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--th-muted); }
.kb-popular ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 1023px) { .kb-hero__grid { grid-template-columns: minmax(0, 1fr); } .kb-hero__art { display: none; } .kb-hero__copy { padding: 52px 0 48px; } }
@media (max-width: 767px) { .kb-hero__copy { padding: 36px 0 36px; } .kb-h1 { font-size: 36px; } }
@media (max-width: 359px) { .kb-h1 { font-size: 32px; } }

.kb-section { padding: var(--th-space) 0; }
.kb-section--tight { padding: 48px 0 var(--th-space); }
.kb-section--ground { background: var(--th-ground); }
.kb-section--tint { background: var(--th-tint); }
.kb-section__title { margin: 64px 0 28px; }
.kb-head { max-width: 760px; margin-bottom: 36px; }

/* "New to SmartLotion?" (the consult card's well and line) */
.kb-start { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 28px; padding: 28px 32px; background: var(--th-well);
  border: 1px solid var(--kb-well-line); border-radius: var(--th-card-radius); color: var(--th-body); text-decoration: none; }
.kb-start__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--th-teal); color: #fff; }
.kb-start__icon .kb-icon { width: 28px; height: 28px; stroke-width: 1.5; }
.kb-start .kb-eyebrow { margin-bottom: 6px; }
.kb-start__title { display: block; font: 700 21px/1.3 var(--th-sans); color: var(--th-ink); }
.kb-start__desc { display: block; margin-top: 4px; }
.kb-start:hover .kb-start__btn { background: var(--th-dteal-press); }
.kb-start:hover .kb-start__title { color: var(--th-dteal); }
@media (max-width: 767px) { .kb-start { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; } .kb-start__icon { display: none; } .kb-start__btn { width: 100%; } }

/* topic cards (the designer's "what you get": 52 px teal circle, thin white icon, Lexend 700 19 px) */
.kb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.kb-cat { display: flex; flex-direction: column; gap: 8px; padding: 28px; background: #fff; border: 1px solid var(--th-line); border-radius: var(--th-card-radius);
  color: var(--th-body); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.kb-cat:hover { border-color: var(--th-teal); box-shadow: 0 6px 20px rgba(28, 35, 49, .07); }
.kb-cat__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 10px; border-radius: 50%; background: var(--th-teal); color: #fff; }
.kb-cat__icon .kb-icon { width: 26px; height: 26px; stroke-width: 1.5; }
.kb-cat__title { font: 700 19px/1.3 var(--th-sans); color: var(--th-ink); }
.kb-cat__desc { flex: 1; font-size: 15.2px; line-height: 1.65; }
.kb-cat__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--th-divider);
  font: 600 14px/1.4 var(--th-sans); color: var(--th-teal-text); }
.kb-cat__meta .kb-icon { width: 18px; height: 18px; transition: transform .15s ease; }
.kb-cat:hover .kb-cat__meta .kb-icon { transform: translateX(3px); }
@media (max-width: 1023px) { .kb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .kb-cards { grid-template-columns: minmax(0, 1fr); gap: 16px; } .kb-cat { padding: 22px 20px; } }

/* Find your condition: adults across the top in three columns, teens and children side by side */
.kb-az { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.kb-az__group { padding: 28px 32px; background: #fff; border: 1px solid var(--th-line); border-radius: var(--th-card-radius); }
.kb-az__group:first-child { grid-column: 1 / -1; }
.kb-az__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--th-divider); font: 700 19px/1.3 var(--th-sans); }
.kb-az__head a { color: var(--th-ink); text-decoration: none; }
.kb-az__head a:hover { color: var(--th-teal-text); }
.kb-az__count { font: 600 13px/1 var(--th-sans); color: var(--th-muted); }
.kb-az__list { margin: 0; padding: 0; list-style: none; }
.kb-az__group:first-child .kb-az__list { columns: 3; column-gap: 40px; }
.kb-az__list li { break-inside: avoid; }
.kb-az__list a { display: block; padding: 6px 0; font-size: 15.5px; line-height: 1.4; color: var(--th-body); text-decoration: none; }
.kb-az__list a:hover { color: var(--th-teal-text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1023px) { .kb-az__group:first-child .kb-az__list { columns: 2; } }
@media (max-width: 639px) { .kb-az { grid-template-columns: minmax(0, 1fr); gap: 16px; } .kb-az__group { padding: 22px 20px; } .kb-az__group:first-child .kb-az__list { columns: 1; } }

/* ---------- page heads, breadcrumbs, tabs ---------- */
.kb-pagehead { padding: 28px 0 44px; background: var(--th-ground); border-bottom: 1px solid var(--th-divider); }
.kb-pagehead .kb-crumbs { margin-bottom: 28px; }
.kb-pagehead .kb-search { max-width: 640px; margin-top: 28px; }
.kb-pagehead--article .kb-h1 { max-width: 22em; }
.kb-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.kb-crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.kb-crumbs a { color: var(--th-muted); text-decoration: none; }
.kb-crumbs a:hover { color: var(--th-teal-text); text-decoration: underline; text-underline-offset: 3px; }
.kb-crumbs__sep { width: 14px; height: 14px; color: #9AA1AB; }
.kb-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.kb-tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; background: #fff; border: 1px solid var(--th-chip-line); border-radius: 999px; font: 600 15px/1.2 var(--th-sans); color: var(--th-ink); text-decoration: none; }
.kb-tabs a:hover { border-color: var(--th-teal); color: var(--th-teal-text); }
.kb-tabs a[aria-current="page"] { background: var(--th-dteal); border-color: var(--th-dteal); color: #fff; }
@media (max-width: 767px) { .kb-pagehead { padding: 20px 0 32px; } .kb-pagehead .kb-crumbs { margin-bottom: 20px; } }

/* ---------- lists ---------- */
.kb-list { margin: 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--th-line); border-radius: var(--th-card-radius); overflow: hidden; }
.kb-list > li + li { border-top: 1px solid var(--th-divider); }
.kb-row { display: flex; align-items: center; gap: 20px; padding: 20px 24px; color: inherit; text-decoration: none; transition: background-color .15s ease; }
.kb-row:hover { background: var(--th-tint); }
.kb-row:focus-visible { outline-offset: -3px; }
.kb-row__text { flex: 1; min-width: 0; }
.kb-row__title { display: block; font: 600 17px/1.35 var(--th-sans); color: var(--th-ink); }
.kb-row__desc { display: -webkit-box; margin-top: 4px; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15px; line-height: 1.55; color: var(--th-body); }
.kb-row .kb-icon { color: var(--th-teal); }
.kb-list--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; background: none; border: 0; border-radius: 0; overflow: visible; }
.kb-list--grid > li { background: #fff; border: 1px solid var(--th-line) !important; border-radius: 12px; overflow: hidden; }
.kb-list--grid .kb-row { height: 100%; }
@media (max-width: 767px) { .kb-list--grid { grid-template-columns: minmax(0, 1fr); gap: 12px; } .kb-row { padding: 16px 18px; gap: 14px; } }

.kb-group + .kb-group { margin-top: 56px; }
.kb-group__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 18px; }
.kb-group__head .kb-h3 a { color: var(--th-ink); text-decoration: none; }
.kb-group__head .kb-h3 a:hover { color: var(--th-teal-text); }
.kb-group__head p { max-width: 42em; color: var(--th-body); }
.kb-grid-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.kb-grid-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; min-height: 56px; padding: 12px 18px; background: #fff;
  border: 1px solid var(--th-line); border-radius: 12px; font: 600 15.5px/1.35 var(--th-sans); color: var(--th-ink); text-decoration: none; transition: border-color .15s ease; }
.kb-grid-list a:hover { border-color: var(--th-teal); color: var(--th-teal-text); }
.kb-grid-list .kb-icon { width: 18px; height: 18px; color: var(--th-teal); }
@media (max-width: 1023px) { .kb-grid-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .kb-grid-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- article ---------- */
/* Desktop: the section nav on the left, the article beside it. The article stays first in the page's order (screen
   readers and keyboards reach it first; phones show it first, the nav under it); only the grid places the nav left.
   The page head lines up with the article column, so the title sits over the text it heads. */
.kb-doc { display: grid; grid-template-columns: 280px minmax(0, 720px); justify-content: start; gap: 64px; padding-top: 48px; padding-bottom: var(--th-space); }
.kb-doc > .kb-article { grid-column: 2; grid-row: 1; min-width: 0; }
.kb-doc > .kb-side { grid-column: 1; grid-row: 1; }
@media (min-width: 1024px) { .kb-pagehead--article .kb-wrap { padding-left: calc(24px + 280px + 64px); } }
@media (max-width: 1023px) {
  .kb-doc { grid-template-columns: minmax(0, 1fr); gap: 56px; padding-top: 36px; }
  .kb-doc > .kb-article, .kb-doc > .kb-side { grid-column: auto; grid-row: auto; }
}

.kb-prose { font-size: 17px; line-height: 1.75; color: var(--kb-text); }
.kb-prose > :first-child { margin-top: 0; }
.kb-prose p { margin: 0 0 1.1em; }
.kb-prose h2 { margin: 2.1em 0 .6em; font: 700 23px/1.3 var(--th-sans); color: var(--th-ink); }
.kb-prose h2::before { content: ""; display: block; width: 32px; height: 3px; margin-bottom: 14px; border-radius: 2px; background: var(--th-teal); }
.kb-prose h3 { margin: 1.7em 0 .5em; font: 700 19px/1.35 var(--th-sans); color: var(--th-ink); }
.kb-prose h4 { margin: 1.5em 0 .4em; font: 600 17px/1.4 var(--th-sans); color: var(--th-ink); }
.kb-prose strong { font-weight: 600; color: var(--th-ink); }
.kb-prose a { color: var(--th-teal-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.kb-prose a:hover { color: var(--th-dteal); text-decoration-thickness: 2px; }
.kb-prose ul, .kb-prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.kb-prose li { margin: .45em 0; padding-left: .2em; }
.kb-prose li::marker { color: var(--th-teal); }
.kb-prose ol > li::marker { font-weight: 600; }
.kb-figure { margin: 1.8em 0; }
.kb-figure img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid var(--th-line); border-radius: var(--th-photo-radius); }
.kb-note { margin: 1.6em 0; padding: 16px 20px; background: var(--th-teal-tint); border: 1px solid #D3E5E5; border-radius: 12px; color: var(--th-ink); font-size: 16px; }
.kb-note p { margin: 0; }
@media (max-width: 767px) { .kb-prose { font-size: 16.5px; } .kb-prose h2 { font-size: 21px; } }

/* "Before you start": the protocols' standard first steps (the consult card's well) */
.kb-before { margin: 0 0 40px; padding: 24px 28px; background: var(--th-well); border: 1px solid var(--kb-well-line); border-radius: var(--th-card-radius); }
.kb-before__title { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 700 17px/1.3 var(--th-sans); color: var(--th-ink); }
.kb-before__title .kb-icon { width: 22px; height: 22px; color: var(--th-teal); }
.kb-before ul { margin: 0; padding: 0; list-style: none; }
.kb-before li { position: relative; margin: 8px 0 0; padding-left: 26px; font-size: 15.5px; line-height: 1.6; color: var(--kb-text); }
.kb-before li::before { content: ""; position: absolute; left: 5px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--th-teal); }
.kb-before a { color: var(--th-teal-text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) { .kb-before { padding: 20px; } }

/* related blog reading */
.kb-related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--th-divider); }
.kb-related ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.kb-related a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; background: #fff; border: 1px solid var(--th-line); border-radius: 12px;
  font: 600 16px/1.4 var(--th-sans); color: var(--th-ink); text-decoration: none; transition: border-color .15s ease; }
.kb-related a:hover { border-color: var(--th-teal); color: var(--th-teal-text); }
.kb-related .kb-icon { color: var(--th-teal); transition: transform .15s ease; }
.kb-related a:hover .kb-icon { transform: translateX(3px); }

/* the consult card (telehealth on): the homepage's dark close */
.kb-consult { margin-top: 48px; padding: 36px 40px; border-radius: var(--th-card-radius); background: var(--th-grad); color: #C9D3D3; }
.kb-closers .kb-consult { margin-top: 0; }
.kb-consult__title { margin: 0 0 12px; font-family: var(--th-serif); font-weight: 600; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.15; color: #fff; text-wrap: balance; }
.kb-consult p { max-width: 34em; }
.kb-consult__actions { margin-top: 24px !important; }
.kb-consult__fine { max-width: none !important; margin-top: 12px !important; font-size: 14px; color: #C2D0D0; }
.kb-consult .kb-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 767px) { .kb-consult { padding: 28px 22px; } .kb-consult .kb-btn { width: 100%; } }

/* previous / next */
.kb-prevnext { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.kb-prevnext__link { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: #fff; border: 1px solid var(--th-line); border-radius: 12px; text-decoration: none; transition: border-color .15s ease; }
.kb-prevnext__link--next { align-items: flex-end; text-align: right; }
.kb-prevnext__dir { display: inline-flex; align-items: center; gap: 4px; font: 600 12px/1.4 var(--th-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--th-muted); }
.kb-prevnext__dir .kb-icon { width: 16px; height: 16px; }
.kb-prevnext__title { font: 600 16px/1.4 var(--th-sans); color: var(--th-ink); }
.kb-prevnext__link:hover { border-color: var(--th-teal); }
.kb-prevnext__link:hover .kb-prevnext__title { color: var(--th-teal-text); }
@media (max-width: 639px) { .kb-prevnext { grid-template-columns: minmax(0, 1fr); } .kb-prevnext > span { display: none; } }

/* the section list beside an article */
.kb-side__inner { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; overscroll-behavior: contain; padding: 2px 12px 2px 2px;
  scrollbar-width: thin; scrollbar-color: var(--th-chip-line) transparent; }   /* a long section scrolls inside a hairline-weight bar */
.kb-side__head { margin: 0 0 10px; font: 600 13px/1.4 var(--th-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--th-muted); }
.kb-side__head a { color: inherit; text-decoration: none; }
.kb-side__head a:hover { color: var(--th-teal-text); }
.kb-side__head--topics { margin-top: 32px; }
.kb-side__list { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--th-divider); }
.kb-side__list a { display: block; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 2px solid transparent; font-size: 15px; line-height: 1.4; color: var(--th-body); text-decoration: none; }
.kb-side__list a:hover { color: var(--th-teal-text); }
.kb-side__list a[aria-current="page"] { border-left-color: var(--th-teal); background: linear-gradient(90deg, var(--th-teal-tint), rgba(234, 242, 242, 0)); color: var(--th-dteal); font-weight: 600; }
@media (max-width: 1023px) { .kb-side { padding-top: 40px; border-top: 1px solid var(--th-divider); } .kb-side__inner { position: static; max-height: none; overflow: visible; } }

/* ---------- the closing band: support, and the consult card beside it ---------- */
.kb-closers-band { padding: 48px 0; }
.kb-closers { display: grid; gap: 24px; }
.kb-closers--two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.kb-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 28px 32px; background: #fff; border: 1px solid var(--th-line); border-radius: var(--th-card-radius); }
.kb-closers--two .kb-help { flex-direction: column; align-items: flex-start; justify-content: center; }
.kb-help__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 1023px) { .kb-closers--two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .kb-help { padding: 22px 20px; } .kb-help__actions { flex-direction: column; width: 100%; } .kb-help__actions .kb-chip { width: 100%; justify-content: flex-start; } }

/* ---------- search results ---------- */
.kb-results-wrap { max-width: 820px; }
.kb-results__status { margin: 0 0 20px; font-size: 15px; color: var(--th-muted); }
.kb-results { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.kb-results a { display: block; padding: 20px 24px; background: #fff; border: 1px solid var(--th-line); border-radius: 12px; text-decoration: none; transition: border-color .15s ease; }
.kb-results a:hover { border-color: var(--th-teal); }
.kb-results__title { display: block; font: 600 18px/1.35 var(--th-sans); color: var(--th-ink); }
.kb-results__path { display: block; margin-top: 4px; font: 600 13px/1.4 var(--th-sans); color: var(--th-teal-text); }
.kb-results__snip { display: block; margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--th-body); }

/* ---------- footer (the staging footer, without the email signup) ---------- */
.kb-footer { padding: 64px 0 32px; background: var(--th-navy); color: #C6CCD5; }
.kb-footer__top { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid #2E3441; }
.kb-footer__top--5 { grid-template-columns: 1.3fr repeat(4, 1fr); }
.kb-footer__brand img { display: block; width: auto; height: 30px; margin-bottom: 16px; }
.kb-footer__brand p { margin-bottom: 14px; font-size: 14px; line-height: 1.6; text-wrap: pretty; }
.kb-footer__brand a { display: inline-block; margin: 0 14px 6px 0; font-size: 14px; color: #fff; text-decoration: none; }
.kb-footer__head { margin-bottom: 14px; font: 600 12px/1.4 var(--th-sans); letter-spacing: .12em; text-transform: uppercase; color: #8A929F; }
.kb-footer ul { margin: 0; padding: 0; list-style: none; }
.kb-footer li a { display: inline-block; padding: 5px 0; font-size: 15px; color: #C6CCD5; text-decoration: none; }
.kb-footer li a:hover, .kb-footer__brand a:hover { color: #fff; text-decoration: underline; }
.kb-footer :is(a, button):focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.kb-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; font-size: 13px; }
.kb-footer__legal ul { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.kb-footer__legal li a { padding: 2px 0; font-size: 13px; }
@media (max-width: 1023px) { .kb-footer__top, .kb-footer__top--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kb-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 767px) {
  .kb-wrap { padding: 0 16px; }
  .kb-footer { padding: 40px 0 28px; }
  .kb-footer__top, .kb-footer__top--5 { gap: 24px 16px; padding-bottom: 28px; }
  .kb-footer li a { padding: 4px 0; font-size: 14px; }
  .kb-footer__legal { gap: 8px 16px; }
  .kb-footer__legal ul { gap: 4px 12px; }
}

/* ---------- print: a protocol on paper, nothing else ---------- */
@media print {
  .kb-header, .kb-subbar, .kb-footer, .kb-side, .kb-closers-band, .kb-consult, .kb-prevnext, .kb-related, .kb-skip, .kb-search { display: none !important; }
  .kb-pagehead { padding: 0 0 12pt; background: none; border: 0; }
  .kb-doc { display: block; padding: 0; }
  .kb-prose { font-size: 11.5pt; color: #000; }
  .kb-prose a { color: #000; }
  .kb-prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .kb-before { border: 1px solid #999; background: none; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
