/* Athena help page (support.html, no/support.html), loaded after styles.css and doc.css.
   The hero asks who the help is for; "Senior" gets big type, a few tap-to-open answers and a
   phone number; "Family and everyone else" gets instant search over every answer. help.js. */

/* ============ HERO: the question and the two choices ============ */
.help-hero { padding-bottom: 116px; }
.help-hero .doc-band-inner { padding-top: 30px; }
.help-sub { margin-top: 10px; font-size: var(--fs-lead); line-height: 1.45; font-weight: 600; color: var(--muted-ink); max-width: 40ch; }
.who { display: grid; gap: 14px; margin-top: 24px; max-width: 980px; }
.who-card {
  position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 18px;
  min-height: 132px; padding: 20px 56px 20px 20px; border-radius: 28px; border: 3px solid transparent;
  background: var(--card); color: var(--ink); text-decoration: none; text-align: left;
  box-shadow: 0 14px 34px rgb(127 169 204 / .3); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.who-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 18px 40px rgb(127 169 204 / .38); }
.who-card[aria-pressed="true"] { border-color: var(--primary); }
.who-art { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; }
.who-card--senior .who-art { background: var(--peach); }
.who-card--family .who-art { background: var(--sky); }
.who-art svg { width: 40px; height: 40px; fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.who-title { display: block; font-size: 30px; line-height: 1.1; font-weight: 800; }
.who-card--family .who-title { font-size: 25px; }
.who-text { display: block; margin-top: 6px; font-size: 17px; line-height: 1.4; font-weight: 600; color: var(--muted-ink); }
.who-card--senior .who-text { font-size: 19px; color: var(--ink); }
.who-tick {
  position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--sky-deep); background: #fff;
}
.who-tick svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.who-card[aria-pressed="true"] .who-tick { border-color: var(--primary); background: var(--primary); }
.who-card[aria-pressed="true"] .who-tick svg { opacity: 1; }
.who-hint { margin-top: 16px; font-size: var(--fs-small); font-weight: 700; color: var(--muted-ink); }
html:not([data-help-for="none"]) .who-hint, html:not(.js) .who-hint { display: none; }
@media (min-width: 600px) {
  .who { grid-template-columns: 1fr 1fr; gap: 20px; }
  .who-card { grid-template-columns: 1fr; align-content: start; row-gap: 14px; min-height: 236px; padding: 26px 64px 26px 26px; }
  .who-art { width: 84px; height: 84px; } .who-art svg { width: 46px; height: 46px; }
  .who-title { font-size: 36px; } .who-card--family .who-title { font-size: 30px; }
}
@media (min-width: 1180px) { .help-hero .doc-band-inner { padding-top: 44px; } .who { margin-top: 32px; } }
@media (prefers-reduced-motion: reduce) { .who-card, .who-card:hover { transition: none; transform: none; } }

/* The bar at the top of each view: what is shown, and the way to the other one */
.view-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: var(--fs-small); font-weight: 700; color: var(--muted-ink); }
.view-bar button { min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-weight: 800; color: var(--ink); text-decoration: underline 2px var(--apricot); text-underline-offset: 5px; cursor: pointer; }
.view-bar button:hover { color: var(--wait-text); }
[data-view-title]:focus { outline: none; }

/* ============ SENIOR: big type, one column, one answer open at a time ============ */
.help-senior { padding-block: 28px var(--sp); font-size: 21px; line-height: 1.5; }
.help-senior .wrap { max-width: 820px; }
.help-senior h2 { margin-top: 10px; font-size: min(40px, 9vw); line-height: 1.1; }
.s-lead { margin-top: 10px; font-size: 21px; font-weight: 600; color: var(--muted-ink); }
.s-list { display: grid; gap: 14px; margin-top: 26px; }
.s-item { border-radius: 26px; background: var(--card); box-shadow: 0 10px 28px rgb(127 169 204 / .26); }
.s-item > summary {
  display: grid; grid-template-columns: 56px 1fr 28px; align-items: center; gap: 16px;
  min-height: 88px; padding: 14px 18px; cursor: pointer; list-style: none;
  font-size: 23px; line-height: 1.25; font-weight: 800; border-radius: 26px;
}
.s-item > summary::-webkit-details-marker { display: none; }
.s-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--peach); }
.s-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s-item:nth-child(3n+2) .s-icon { background: var(--mint); }
.s-item:nth-child(3n) .s-icon { background: var(--sky); }
.s-item .chev { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.s-item[open] > summary .chev { transform: rotate(180deg); }
.s-item[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.s-body { display: grid; gap: 18px; padding: 4px 22px 24px; }
.s-body > p { max-width: 36ch; }
.s-steps { counter-reset: s; display: grid; gap: 16px; list-style: none; padding: 0; max-width: 36ch; }
.s-steps li { counter-increment: s; position: relative; min-height: 44px; padding-left: 60px; }
.s-steps li::before {
  content: counter(s); position: absolute; left: 0; top: -4px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 22px;
}
.s-tip { padding: 14px 18px; border-radius: 20px; background: var(--mint); font-size: 19px; }
.s-more { font-size: 19px; font-weight: 700; color: var(--muted-ink); }
.s-more a { color: var(--ink); }
.s-shot { --w: min(220px, 56vw); margin: 4px 0 8px; }
@media (min-width: 760px) {
  .s-body--shot { grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; align-items: start; }
  .s-body--shot > .s-shot { grid-column: 2; grid-row: 1 / span 6; --w: 210px; }
}
@media (min-width: 600px) { .help-senior { font-size: 22px; } .s-item > summary { font-size: 25px; min-height: 96px; padding-inline: 24px; } .s-body { padding-inline: 96px 32px; } }
@media (prefers-reduced-motion: reduce) { .s-item .chev { transition: none; } }

/* The phone card: green and big; the number is the button */
.call-card { margin-top: 34px; padding: 26px 22px; border-radius: 30px; background: var(--primary); color: #fff; }
.call-card h2 { color: #fff; margin-top: 0; }
.call-card p { margin-top: 12px; max-width: 40ch; }
.call-card a:not(.call-number):not(.btn) { color: #fff; text-decoration-color: rgb(255 255 255 / .6); }
.call-number {
  display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; max-width: 460px; min-height: 84px; margin-top: 20px;
  padding: 10px 24px; border-radius: 24px; background: #fff; color: var(--primary); text-decoration: none;
  font-size: 34px; font-weight: 900; letter-spacing: .01em; font-variant-numeric: tabular-nums;
}
.call-number:hover { color: var(--primary-hover); background: var(--cream); }
.call-number svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.call-card .call-small { font-size: 18px; color: rgb(255 255 255 / .9); }
.call-soon, .call-live { display: none; }
[data-call="soon"] .call-soon, [data-call="live"] .call-live { display: block; }
.call-card .btn--light { margin-top: 18px; background: #fff; color: var(--primary); font-size: 19px; height: auto; min-height: 60px; white-space: normal; text-align: center; padding: 12px 22px; }
.call-card .btn--light:hover { background: var(--cream); color: var(--primary-hover); }
.s-emergency { display: flex; gap: 14px; align-items: flex-start; margin-top: 20px; padding: 18px 20px; border-radius: 24px; background: var(--peach); font-size: 19px; line-height: 1.45; }
.s-emergency svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--wait-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 22px; }
.s-actions button, .share-row button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border: 2px solid var(--sky-deep); border-radius: 18px;
  background: var(--card); font: 700 18px/1 var(--ff); color: var(--ink); cursor: pointer;
}
.s-actions button:hover, .share-row button:hover { background: var(--sky); }
.s-actions svg, .share-row svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 600px) { .call-card { padding: 34px 36px; } }

/* ============ FAMILY: search over every answer ============ */
.help-family { padding-top: 8px; }
.help-family .doc-layout { padding-top: 24px; }
.search { position: relative; margin-top: 18px; }
.search label { display: block; font-size: 26px; font-weight: 800; line-height: 1.15; margin-bottom: 12px; }
.search-box { position: relative; }
.search-box > svg { position: absolute; left: 18px; top: 50%; width: 24px; height: 24px; translate: 0 -50%; fill: none; stroke: var(--muted-ink); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.search input {
  width: 100%; height: 62px; padding: 0 56px 0 54px; border: 2px solid var(--sky-deep); border-radius: 22px; background: var(--card);
  font: 600 19px var(--ff); color: var(--ink); box-shadow: 0 10px 26px rgb(127 169 204 / .22); -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: #7A8794; }
.search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgb(46 125 82 / .18), 0 10px 26px rgb(127 169 204 / .22); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { position: absolute; right: 8px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.search-clear:hover { background: var(--sky); }
.search-clear svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.search-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; font-size: 15px; font-weight: 700; color: var(--muted-ink); }
.search-meta .chip { min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--sky); font: 700 15px var(--ff); color: var(--ink); cursor: pointer; }
.search-meta .chip:hover { background: var(--sky-deep); }
.search-status { min-height: 1.4em; margin-top: 10px; font-size: 15px; font-weight: 800; color: var(--up-text); }
.search-key { display: none; }
@media (hover: hover) and (pointer: fine) {
  .search-key { display: inline-grid; place-items: center; position: absolute; right: 18px; top: 50%; translate: 0 -50%; min-width: 26px; height: 26px; border-radius: 7px; border: 1.5px solid var(--sky-deep); font-size: 14px; font-weight: 800; color: var(--muted-ink); pointer-events: none; }
  html[data-searching] .search-key, .search input:focus ~ .search-key { display: none; }
}
html:not(.js) .search, html:not(.js) .search-status { display: none; }
.search-empty { margin-top: 20px; padding: 22px 24px; border-radius: 24px; background: var(--peach); }
.search-empty h2 { margin-top: 0; font-size: 24px; }
.search-empty p { margin-top: 8px; }
mark { background: #FFE08A; color: inherit; border-radius: 4px; padding: 0 1px; }
html[data-searching] .doc-cards { margin-top: 20px; }

/* Share the senior help with someone */
.doc-card--share { background: var(--mint); }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 14px; }
.share-row [data-share-note] { font-size: 15px; font-weight: 800; color: var(--up-text); }
.contact-lines { display: grid; gap: 12px; margin-top: 12px; }
.contact-lines .btn { justify-self: start; }

/* ============ PRINT: the senior answers, all open, on paper ============ */
@media print {
  .site-header, .site-footer, .skip-link, .help-hero, #family, .s-actions, .view-bar, .s-shot { display: none !important; }
  #senior { display: block !important; padding: 0; font-size: 16pt; }
  .s-item { box-shadow: none; border: 1.5pt solid #ccc; break-inside: avoid; }
  .s-item .chev { display: none; }
  .call-card { background: none; color: #000; border: 2pt solid #000; }
  .call-card h2, .call-card a:not(.call-number):not(.btn) { color: #000; }
  .call-number { border: 2pt solid #000; }
  body { background: #fff; }
}

/* Search and the view switch hide with [hidden]; nothing here may override it */
[hidden] { display: none !important; }
.linkish { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink); text-decoration: underline 2px var(--apricot); text-underline-offset: 4px; cursor: pointer; }
.linkish:hover { color: var(--wait-text); }
.contact-call { font-size: 16px; }

/* Once a choice is made (or remembered), the two cards shrink to a compact switch so the answers start higher */
html[data-help-for="senior"] .help-sub, html[data-help-for="family"] .help-sub,
html[data-help-for="senior"] .who-text, html[data-help-for="family"] .who-text { display: none; }
html[data-help-for="senior"] .help-hero, html[data-help-for="family"] .help-hero { min-height: 0; padding-bottom: 96px; }
html[data-help-for="senior"] .who-card, html[data-help-for="family"] .who-card {
  grid-template-columns: auto 1fr; min-height: 0; padding: 12px 52px 12px 12px; row-gap: 0; column-gap: 14px; border-radius: 22px;
}
html[data-help-for="senior"] .who-art, html[data-help-for="family"] .who-art { width: 52px; height: 52px; }
html[data-help-for="senior"] .who-art svg, html[data-help-for="family"] .who-art svg { width: 30px; height: 30px; }
html[data-help-for="senior"] .who-title, html[data-help-for="family"] .who-title { font-size: 22px; }
html[data-help-for="senior"] .who-tick, html[data-help-for="family"] .who-tick { top: 50%; translate: 0 -50%; }
html[data-help-for="senior"] .who, html[data-help-for="family"] .who { margin-top: 18px; gap: 10px; }
@media (max-width: 599px) {
  html[data-help-for="senior"] .who, html[data-help-for="family"] .who { grid-template-columns: 1fr 1fr; }
  html[data-help-for="senior"] .who-card, html[data-help-for="family"] .who-card { grid-template-columns: 1fr; justify-items: start; row-gap: 8px; padding: 12px 12px 14px; }
  html[data-help-for="senior"] .who-art, html[data-help-for="family"] .who-art { width: 44px; height: 44px; }
  html[data-help-for="senior"] .who-title, html[data-help-for="family"] .who-title { font-size: 19px; }
  html[data-help-for="senior"] .who-tick, html[data-help-for="family"] .who-tick { top: 12px; right: 12px; translate: none; }
}
#senior, #family { scroll-margin-top: calc(var(--hh) + 8px); }
.s-item, .doc-faq details { scroll-margin-top: calc(var(--hh) + 16px); }

/* ============ ASK: type a question, get the best prepared answers ============ */
.ask { margin-top: 26px; padding: 22px 20px; border-radius: 28px; background: var(--card); box-shadow: 0 12px 32px rgb(127 169 204 / .28); }
.ask label { display: block; font-size: 26px; font-weight: 800; line-height: 1.15; margin-bottom: 14px; }
.ask-row { display: grid; gap: 12px; }
.ask textarea {
  width: 100%; min-height: 96px; padding: 16px 18px; border: 2px solid var(--sky-deep); border-radius: 20px; resize: vertical;
  background: #fff; font: 600 21px/1.4 var(--ff); color: var(--ink);
}
.ask textarea::placeholder { color: #7A8794; }
.ask textarea:focus, .ask textarea:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgb(46 125 82 / .18); }
.ask-go { min-height: 60px; font-size: 20px; }
.ask--senior .ask-go { width: 100%; }
@media (min-width: 600px) { .ask { padding: 28px; } .ask--senior .ask-go { width: auto; justify-self: start; padding-inline: 34px; } }
.s-or { margin-top: 26px; font-size: 19px; font-weight: 700; color: var(--muted-ink); }
.s-or + .s-list { margin-top: 14px; }
html:not(.js) .ask, html:not(.js) .s-or, html:not(.js) .ask-go--family { display: none; }
.ask-go--family { margin-top: 12px; height: 52px; min-height: 0; font-size: 17px; }

.ask-out:empty { display: none; }
.ask-out { display: grid; gap: 14px; margin-top: 18px; }
.ask-out--family { margin-top: 8px; }
.ask-wait { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--muted-ink); }
.ask-wait::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--sky-deep); border-top-color: var(--primary); animation: ask-spin .8s linear infinite; }
@keyframes ask-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ask-wait::before { animation: none; } }
.ask-card { padding: 18px 20px; border-radius: 22px; background: var(--mint); }
.ask-card--best { background: var(--mint); box-shadow: inset 0 0 0 2px var(--sage); }
details.ask-card { background: var(--warm); padding-block: 4px; }
.ask-card h3, .ask-card summary { font-size: 1.1em; font-weight: 800; line-height: 1.3; }
.ask-card summary { display: flex; align-items: center; min-height: 52px; cursor: pointer; }
.ask-kicker { font-size: 15px; font-weight: 800; color: var(--up-text); text-transform: none; }
.ask-kicker--more { margin-top: 6px; color: var(--muted-ink); }
.ask-card .ask-kicker { margin-bottom: 4px; }
.ask-a { margin-top: 10px; display: grid; gap: 10px; }
details.ask-card .ask-a { padding-bottom: 14px; }
.ask-a ol, .ask-a ul { padding-left: 24px; display: grid; gap: 8px; }
.ask-a ol { list-style: decimal; } .ask-a ul { list-style: disc; }
.ask-open { justify-self: start; }
.ask-none { font-weight: 700; }
.ask-contact { display: grid; gap: 12px; justify-items: start; padding: 18px 20px; border-radius: 22px; background: var(--peach); }
.ask-contact .btn { height: auto; min-height: 52px; white-space: normal; }
.ask-small { font-size: .9em; color: var(--muted-ink); }
.help-senior .ask-out { font-size: 21px; }
@media print { .ask, .s-or { display: none !important; } }
html[data-asked] [data-search-empty], html[data-asked] .search-status { display: none !important; }
