/* The guides (ph/guides_public.py; Claude Design "guides-design": Main, StateGuide, HowTo, Switching). Site tokens
   only (static/app.css), so night mode follows them; the feature-name teal is name-tip.css --term. Phones: every
   grid is auto-fit with a min() floor, so nothing is wider than the screen; 16px side gutters below 600px.
   The guide body styles (.guide ...) are shared with the in-app frame (help/_frame_app.html). */
:root { --term-soft: color-mix(in srgb, var(--term, #0B7C83) 13%, var(--surface)); }

/* ---- the guide body (both frames) ---- */
.guide h2 { margin: 26px 0 8px; }
.guide h2:first-child { margin-top: 0; }
.guide ol, .guide ul { padding-left: 22px; margin: 8px 0 0; }
.guide li + li { margin-top: 6px; }
.guide ol + p, .guide ul + p, .guide .tip + p, .guide .guide-pair + p { margin-top: 12px; }
/* features.css has a small round .tip (an info button) on public pages: undo it for a guide's tip box */
.guide .tip { display: block; position: static; width: auto; height: auto; border: 0; color: inherit; font-size: inherit; font-weight: inherit;
  line-height: inherit; cursor: auto; vertical-align: baseline; background: var(--soft); border-radius: 12px; padding: 12px 16px; margin: 14px 0 0; }
.guide .tip p { margin: 0; }
.guide-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 12px 0 0; }
.guide-pair > div { border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.guide-pair .fix { background: var(--bad-soft); }
.guide-pair .fix b { color: var(--bad); }
.guide-pair .look { background: var(--warn-soft); }
.guide-pair .look b { color: var(--warn); }

/* ---- visual blocks inside a guide body (both frames; one main point each) ----
   g-shot: a picture of the portal on a light frame (day colors, also at night)
   g-flow: a process as connected boxes, left to right, stacking on phones
   g-table: a comparison; on phones each row becomes a card with its column names
   g-card good / warn / note: colored "good to know", warning and tip cards
   g-chip ok / warn / bad / info: status chips in the app's pill colors */
.g-shot { margin: 16px 0 0; background: var(--paper-panel, transparent); border: 1px solid var(--line); border-radius: 14px; padding: 6px; overflow: hidden; }
.g-shot img { display: block; width: 100%; height: auto; border-radius: 9px; background: #F6F8F3; }
.g-shot figcaption { font-size: 14px; color: var(--muted); padding: 8px 6px 2px; line-height: 1.45; }
@media screen and (prefers-color-scheme: dark) { :root:not([data-theme="day"]) .g-shot { background: #F4F6F1; border-color: #F4F6F1; } :root:not([data-theme="day"]) .g-shot figcaption { color: #3E4A3A; } }
:root[data-theme="night"] .g-shot { background: #F4F6F1; border-color: #F4F6F1; }
:root[data-theme="night"] .g-shot figcaption { color: #3E4A3A; }

/* g-flow: a compact stepper. Small numbered dots joined by a line, each step's name under its dot; the last
   step (end-ok / end-bad) gets a check or a cross. Phones: the same as a vertical timeline. (Effie 2026-11-28: the
   old boxes were far too big for one or two words each.) */
ol.g-flow.g-flow.g-flow { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  gap: 0; counter-reset: gflow; font-size: 15px; line-height: 1.35; }
ol.g-flow.g-flow.g-flow > li { counter-increment: gflow; position: relative; margin: 0; padding: 0 6px; min-height: 0; text-align: center;
  background: none; border: 0; border-radius: 0; }
ol.g-flow.g-flow.g-flow > li::before { content: counter(gflow); position: relative; z-index: 1; left: auto; top: auto; display: flex; align-items: center;
  justify-content: center; width: 30px; height: 30px; margin: 0 auto 8px; border-radius: 50%; background: var(--term, #0B7C83);
  color: var(--surface); font-size: 14px; font-weight: 800; box-shadow: 0 0 0 4px var(--surface); }
ol.g-flow.g-flow.g-flow > li.end-ok::before { content: "\2713"; background: var(--ok); }
ol.g-flow.g-flow.g-flow > li.end-bad::before { content: "\2715"; background: var(--bad); }
ol.g-flow.g-flow.g-flow > li:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: calc(50% + 15px); right: calc(-50% + 15px);
  height: 2px; background: color-mix(in srgb, var(--term, #0B7C83) 45%, var(--surface)); transform: none; }
ol.g-flow.g-flow.g-flow > li b { display: block; font-size: 15px; font-weight: 700; }
ol.g-flow.g-flow.g-flow > li span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
@media (max-width: 600px) {
  ol.g-flow.g-flow.g-flow { grid-auto-flow: row; grid-auto-columns: auto; }
  ol.g-flow.g-flow.g-flow > li { text-align: left; padding: 4px 0 20px 42px; min-height: 30px; }
  ol.g-flow.g-flow.g-flow > li:last-child { padding-bottom: 0; }
  ol.g-flow.g-flow.g-flow > li::before { position: absolute; left: 0; top: 0; margin: 0; }
  ol.g-flow.g-flow.g-flow > li:not(:last-child)::after { top: 30px; bottom: -4px; left: 14px; background: color-mix(in srgb, var(--term, #0B7C83) 65%, var(--surface)); right: auto; width: 2px; height: auto; }
  ol.g-flow.g-flow.g-flow > li b, ol.g-flow.g-flow.g-flow > li span { display: inline; }
  ol.g-flow.g-flow.g-flow > li span::before { content: "\00a0\00b7\00a0"; }
}

.g-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0 0; font-size: 15px; line-height: 1.45; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.g-table th, .g-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.g-table thead th { background: var(--soft); font-weight: 700; }
.g-table tbody th { font-weight: 700; }
.g-table tr:last-child > * { border-bottom: 0; }
@media (max-width: 600px) {
  .g-table, .g-table tbody, .g-table tr, .g-table th, .g-table td { display: block; width: auto; }
  .g-table thead { display: none; }
  .g-table tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .g-table tr:last-child { border-bottom: 0; }
  .g-table th, .g-table td { border: 0; padding: 4px 12px; }
  .g-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--muted); }
}

.g-card { border-radius: 14px; padding: 12px 16px; margin: 14px 0 0; border: 1px solid transparent; }
.g-card p { margin: 0; }
.g-card p + p { margin-top: 6px; }
.g-card.good { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.g-card.warn { background: var(--warn-soft); border-color: var(--warn-line); }
.g-card.note { background: var(--info-soft); border-color: var(--info-line); }
.g-card > p:first-child > b:first-child { color: inherit; }

.g-chip { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; vertical-align: 1px; }
.g-chip.ok { background: var(--ok-soft); color: var(--ok); }
.g-chip.warn { background: var(--warn-soft); color: var(--warn); }
.g-chip.bad { background: var(--bad-soft); color: var(--bad); }
.g-chip.info { background: var(--info-soft); color: var(--info); }
.g-chip.plain { background: var(--soft); color: var(--muted); }

/* ---- public pages ---- */
.gd { background: var(--ground); color: var(--ink); }
.gd-main { max-width: 1160px; margin: 0 auto; padding: 48px 24px 80px; display: flex; flex-direction: column; gap: 48px; }
.gd-main.narrow { max-width: 920px; gap: 30px; }
.gd-main h1 { margin: 0; font-size: clamp(32px, 6.5vw, 50px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.gd-main h2 { overflow-wrap: anywhere; }
.gd-hero { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.gd-hero .lead { margin: 0; font-size: clamp(17px, 2.4vw, 19px); line-height: 1.55; color: var(--muted); }
.gd-kicker { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.gd-term { margin: 0; font-size: 14px; font-weight: 700; color: var(--term, #0B7C83); }
.gd-crumbs { margin: 0; font-size: 14px; color: var(--muted); }
.gd-crumbs a { color: var(--muted); }
.gd-checked { margin: 0; display: inline-flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ok); font-weight: 600; }
.gd-checked svg { flex: none; margin-top: 2px; }

.gd-search { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.gd-search input { flex: 1 1 260px; min-width: 0; font: inherit; font-size: 17px; padding: 13px 16px; border: 1px solid var(--field-line);
  border-radius: 12px; background: var(--field); color: var(--ink); }
.gd-search button { flex: 0 0 auto; font: inherit; font-weight: 700; font-size: 16px; padding: 13px 22px; border: 0; border-radius: 12px;
  background: var(--ink); color: var(--surface); cursor: pointer; }
.gd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gd-results { display: flex; flex-direction: column; gap: 8px; }
.gd-results ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gd-results a { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; text-decoration: none; color: var(--ink); }
.gd-results small { color: var(--muted); }

.gd-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.gd-card { text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.gd-card:hover { border-color: var(--accent); }
.gd-card h2 { margin: 0; font-size: 23px; line-height: 1.2; font-weight: 800; }
.gd-card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.gd-card .gd-term { font-size: 13px; }
.gd-card .gd-go { margin-top: auto; font-weight: 700; color: var(--accent); }
.gd-ico { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--term-soft); color: var(--term, #0B7C83); }
.gd-ico.green { background: var(--soft); color: var(--accent); }

.gd-sec { display: flex; flex-direction: column; gap: 16px; }
.gd-sec > h2, .gd-sec-head h2 { margin: 0; font-size: clamp(24px, 4vw, 28px); font-weight: 800; }
.gd-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.gd-sec-head p { margin: 0; color: var(--muted); font-size: 15px; }
/* the hub's state finder, and the plain list on /guides/credentialing */
.gd-find { max-width: 760px; }
.gd-find-row { display: flex; flex-direction: column; gap: 8px; }
.gd-find-row label { font-weight: 700; font-size: 15px; }
.gd-find-row > div { display: flex; flex-wrap: wrap; gap: 10px; }
.gd-find-row select { flex: 1 1 240px; min-width: 0; font: inherit; font-size: 16px; padding: 12px; border: 1px solid var(--field-line); border-radius: 10px;
  background: var(--field); color: var(--ink); }
.gd-find-row .btn { flex: 0 0 auto; }
.gd-states { list-style: none; margin: 0; padding: 0; columns: 4 200px; column-gap: 32px; }
.gd-states li { break-inside: avoid; padding: 5px 0; font-size: 16px; }
.gd-states a { font-weight: 600; }
.gd-states small { color: var(--muted); font-weight: 400; }
.gd-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.gd-list a { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px; text-decoration: none; color: var(--ink); }
.gd-list a:hover { border-color: var(--accent); }
.gd-list b { font-size: 17px; }
.gd-list span { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* the dark band: --deep in both looks, so its colors are fixed light ones */
.gd-band { background: var(--deep); color: #E6ECE2; border-radius: 22px; padding: clamp(24px, 5vw, 40px); display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 20px; }
.gd-band > div { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.gd-band h2 { margin: 0; font-size: clamp(22px, 4vw, 28px); font-weight: 800; color: #FFFFFF; }
.gd-band p { margin: 0; font-size: 17px; line-height: 1.55; color: #C9D3C2; }
.gd-band .ntip .ntip-name, .gd-band .gd-name { color: #7FD6CC; }
.gd-band .ntip-btn { color: #7FD6CC; }
.gd-band-btn, a.gd-band-btn { background: #8FBF7F; color: #0F1A0C; font-weight: 800; padding: 14px 24px; border-radius: 12px; text-decoration: none; text-align: center; }

/* two columns: an article and a side card */
.gd-two { max-width: 1160px; margin: 0 auto; padding: 40px 24px 80px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.gd-article { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.gd-article.howto { max-width: 760px; }
.gd-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(108px + var(--ea-stick, 0px)); }
.gd-side.first { order: -1; flex-basis: 220px; }
.gd-box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.gd-box h2 { margin: 0; font-size: 22px; font-weight: 800; }
.gd-box ol, .gd-box ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.55; }
.gd-side .gd-band { border-radius: 18px; padding: 24px; flex-direction: column; align-items: stretch; }
.gd-side .gd-band h2 { font-size: 20px; }
.gd-side .gd-band p { font-size: 15px; }
.gd-pick { display: flex; flex-direction: column; gap: 10px; }
.gd-pick h2 { font-size: 16px; }
.gd-pick label { font-size: 14px; color: var(--muted); }
.gd-pick select { font: inherit; font-size: 16px; padding: 11px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--field); color: var(--ink); max-width: 100%; }
.gd-pick .btn { align-self: flex-start; }

/* On this page */
.gd-toc { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.gd-toc p { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gd-toc a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; }
.gd-toc a:hover, .gd-toc a[aria-current="true"] { background: var(--soft); color: var(--ink); font-weight: 700; }

/* the feature-name callout */
.gd-callout { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; gap: 16px; align-items: flex-start; }
.gd-callout .gd-ico { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.gd-callout p { margin: 0; font-size: 16px; line-height: 1.6; min-width: 0; }

/* the how-to body on the public page */
.gd .guide { font-size: 17px; line-height: 1.65; }
.gd .guide h2 { font-size: clamp(22px, 3.4vw, 26px); font-weight: 800; margin: 34px 0 10px; scroll-margin-top: calc(96px + var(--ea-stick, 0px)); }
.gd .guide h2:first-child { margin-top: 0; }
.gd .guide h3 { font-size: 19px; margin: 22px 0 6px; }
.gd .guide p { margin: 10px 0 0; }
.gd .guide > ol { list-style: none; padding: 0; counter-reset: gstep; display: flex; flex-direction: column; gap: 12px; }
.gd .guide > ol > li { counter-increment: gstep; position: relative; padding-left: 46px; min-height: 32px; margin: 0; }
.gd .guide > ol > li::before { content: counter(gstep); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; line-height: 1; }
.gd .guide > ol > li ul { margin-top: 8px; }
.gd .guide .tip { background: var(--term-soft); border-radius: 14px; padding: 14px 18px; }
.gd-foot-line { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
.gd-foot-line p { margin: 0; font-size: 15px; color: var(--muted); }

/* state page: insurer groups and steps */
.gd-group { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.gd-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; }
.gd-group h3 { margin: 0; font-size: 18px; font-weight: 800; }
.gd-group-head span { font-size: 14px; color: var(--muted); }
.gd-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gd-pills a { display: inline-block; background: var(--ground); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 15px;
  color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.gd-pills a:hover { border-color: var(--accent); }
.gd-ins { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0; scroll-margin-top: calc(96px + var(--ea-stick, 0px)); }
.gd-ins > summary { cursor: pointer; list-style: none; padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.gd-ins > summary::-webkit-details-marker { display: none; }
.gd-ins > summary::after { content: "+"; margin-left: auto; font-weight: 800; color: var(--accent); }
.gd-ins[open] > summary::after { content: "\2212"; }
.gd-ins > summary b { font-size: 19px; font-weight: 800; overflow-wrap: anywhere; }
.gd-ins > summary small { color: var(--muted); font-size: 14px; }
.gd-ins-body { padding: 0 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.gd-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.gd-steps li { display: flex; gap: 14px; align-items: flex-start; }
.gd-num { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--term-soft); color: var(--term, #0B7C83); font-weight: 800;
  display: flex; align-items: center; justify-content: center; }
.gd-steps li > span:last-child { padding-top: 4px; font-size: 16px; line-height: 1.55; min-width: 0; overflow-wrap: anywhere; }
.gd-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.gd-facts > div { background: var(--ground); border-radius: 12px; padding: 12px 14px; }
.gd-facts dt { font-weight: 700; font-size: 14px; }
.gd-facts dd { margin: 4px 0 0; font-size: 15px; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.gd-facts dd ul { margin: 0; padding-left: 18px; }
.gd-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); }
.gd-pill.plain { background: var(--soft); color: var(--muted); }
.gd-links { margin: 0; font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.gd-note { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; }
.gd-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gd-rules li { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 8px 0; font-size: 15px; }
.gd-rules li:last-child { border-bottom: 0; }
.gd-rules .ok { color: var(--ok); font-weight: 700; }
.gd-rules .no { color: var(--warn); font-weight: 700; }

/* switching */
.gd-step-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.gd-step-cards li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.gd-step-cards .gd-num { width: 36px; height: 36px; background: var(--term, #0B7C83); color: var(--surface); }
.gd-step-cards h2 { margin: 0; font-size: 19px; font-weight: 800; }
.gd-step-cards p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; }
.gd-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.gd-duo > div { border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.gd-duo .comes { background: var(--ok-soft); }
.gd-duo .comes h2 { color: var(--ok); }
.gd-duo .know { background: var(--warn-soft); }
.gd-duo .know h2 { color: var(--warn); }
.gd-duo h2 { margin: 0; font-size: 19px; font-weight: 800; }
.gd-duo ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.5; }
.gd-duo p { margin: 0; font-size: 16px; line-height: 1.55; }

.gd-legal { margin: 0; font-size: 14px; color: var(--muted); }

@media (max-width: 860px) {
  .gd-side { position: static; }
  .gd-side.first { order: 0; }
}
@media (max-width: 600px) {
  .gd-main, .gd-two { padding: 28px 16px 56px; gap: 32px; }
  .gd-card { padding: 22px; }
  .gd-box, .gd-group { padding: 18px; }
  .gd-ins > summary { padding: 16px 18px; }
  .gd-ins-body { padding: 0 18px 18px; }
  .gd-find-row .btn { flex: 1 1 100%; }
  .gd-search button { flex: 1 1 100%; }
}
