/* =====================================================================
   help.css: the help-only pieces, layered AFTER the BallDrop v2 stylesheets (v2/elevate.css, v2/flt.css, v2/shell.css, v2/read.css).
   It adds nothing to the v2 look: every colour, font and radius is a v2 token (--night, --night-2, --night-3, --hair, --soft, --muted, --gold,
   --coral, --cyan, --display, --sans, --wrap). Sections are numbered so NOTES.md can map each one to the part of the page it serves.
   ===================================================================== */

/* 0. utilities */
.hc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hc-skip { position: absolute; left: 8px; top: -64px; z-index: 300; background: #fff; color: #17141f !important; padding: 10px 14px; border-radius: 8px; font: 700 14px/1 var(--sans); text-decoration: none !important; }
.hc-skip:focus { top: 8px; }
.hc-only-phone { display: none !important; }

/* 1. header chip on phones: the rule elevate.js injected next to the markup */
.bd-chip-m { display: none; }
@media (max-width: 980px) { .bd-chip-m { display: inline-flex; } .hc-only-phone { display: block !important; } }

/* 2. search pill (the v2 pill from read.css/home2.css, made a real form) */
.search-pill { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; height: 52px; padding: 0 8px 0 18px; border-radius: 999px;
  border: 1px solid var(--hair); background: rgba(255,255,255,.05); color: var(--soft); margin: 0; }
.search-pill i { color: var(--gold); font-size: 19px; flex: 0 0 auto; }
.search-pill input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: #fff; font: 400 16px/1 var(--sans); }
.search-pill input::placeholder { color: var(--muted); opacity: 1; }
.search-pill input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-pill:focus-within { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(33,182,232,.55); }
.search-pill button { flex: 0 0 auto; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #fff; font: 600 13px/1 var(--sans); cursor: pointer; }
.search-pill button:hover { background: rgba(255,255,255,.16); }
.rd-card .search-pill { padding-right: 16px; }
/* hero version: lifted from home2.css `.bd-hero .search-pill`, scoped to the reading hero and the filter hero */
.rd-hero .search-pill, .fh .search-pill { margin-top: 26px; max-width: 620px; height: 58px; border-color: rgba(255,255,255,.28); background: rgba(23,20,31,.62); backdrop-filter: blur(8px); font-size: 17px; }
.rd-hero .search-pill input, .fh .search-pill input { font-size: 17px; }
.hc-page-search { margin: 0 0 26px; }

/* 3. article hero: help titles are sentences, not 3-word headlines, so the v2 H1 steps down one size (same font, same case) */
.hc-hero-article h1, .hc-home-c .rd-hero h1 { max-width: 20ch; }
.hc-hero-article h1 { font-size: clamp(34px, 4.1vw, 56px) !important; max-width: 24ch; }
.rd-hero .sub:empty { display: none; }

/* 4. topic chips (v2 .chip) used as a jump row */
.rd-body .chip { color: var(--soft) !important; text-decoration: none; }
.rd-body .chip:hover { color: #fff !important; }
.hc-browse-m { display: none; }
@media (max-width: 980px) { .hc-browse-m { display: block; } }

/* 5. grouped sections on the help home */
.hc-sec { margin-top: 44px; }
.hc-sec:first-of-type { margin-top: 30px; }
.rd-body .hc-sec h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 14px !important; padding: 0 0 12px !important; border-bottom: 1px solid var(--hair) !important; font-size: 28px !important; }
.hc-all { color: var(--gold) !important; font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none !important; white-space: nowrap; }
.hc-all:hover { text-decoration: underline !important; text-underline-offset: 3px; }
.rd-body h3.hc-sub { margin: 28px 0 8px !important; color: var(--soft) !important; font: 700 17px/1.2 var(--display) !important; letter-spacing: .06em; }
.hc-subdesc { margin: -4px 0 14px !important; color: var(--soft) !important; font: 400 16px/1.5 var(--sans) !important; }
.hc-sec .rd-faq details:first-child { border-top: 0; }
.rd-faq .a p { margin: 0 0 10px !important; font-size: 17px !important; }
.hc-read { display: inline-flex; align-items: center; gap: 8px; color: var(--gold) !important; font: 700 15px/1.2 var(--sans); text-decoration: none !important; }
.hc-read:hover { text-decoration: underline !important; text-underline-offset: 3px; }
.rd-faq summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

/* 6. question rows: the FAQ accordion row (v2 .rd-faq) with an arrow where the + is, the whole row one link */
.hc-index { margin: 0; }
.rd-body a.hc-q { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--hair); color: #fff !important; text-decoration: none !important; }
.hc-index > .hc-q:first-child { border-top: 1px solid var(--hair); }
.hc-sec .hc-index > .hc-q:first-child { border-top: 0; }
.hc-q .t { min-width: 0; }
.hc-q .t b { display: block; color: #fff; font: 600 19px/1.35 var(--sans); }
.hc-q .t small { display: block; margin-top: 5px; color: var(--soft); font: 400 15px/1.5 var(--sans); }
.hc-q > i { flex: 0 0 auto; color: var(--gold); font-size: 20px; transition: transform .2s ease; }
.hc-q:hover > i { transform: translateX(4px); }
.hc-q:hover .t b { text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 4px; }
.hc-q:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .hc-q > i { transition: none; } }

/* 7. callouts (HelpDocs note / tip / warning) in the v2 palette: night-2 card, tinted hairline ring, one icon colour each */
.hc-callout { display: flex; gap: 14px; align-items: flex-start; margin: 1.5em 0; padding: 16px 18px; border: 1px solid var(--hair); border-radius: 12px; background: var(--night-2); }
.hc-callout > i { flex: 0 0 auto; font-size: 22px; margin-top: 2px; }
.hc-callout > div { min-width: 0; }
.hc-callout-label { display: block; margin-bottom: 4px; color: #fff; font: 700 14px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.hc-callout p { margin: 0 !important; font-size: 17px !important; line-height: 1.65 !important; }
.hc-callout p + p { margin-top: .6em !important; }
.hc-callout.note { border-color: rgba(33,182,232,.45); background: rgba(33,182,232,.07); } .hc-callout.note > i { color: var(--cyan); }
.hc-callout.tip { border-color: rgba(233,193,52,.45); background: rgba(233,193,52,.07); } .hc-callout.tip > i { color: var(--gold); }
.hc-callout.warn { border-color: rgba(208,32,93,.6); background: rgba(208,32,93,.1); } .hc-callout.warn > i { color: #ff6f98; }

/* 8. the Times Square barricades table: a real table on desktop, one card per venue on phones */
.hc-tablewrap { margin: 22px 0 8px; scroll-margin-top: 90px; }
.hc-filter { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 14px; margin: 0 0 14px; }
.hc-filter label { color: #fff; font: 700 14px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.hc-filter .search-pill { height: 46px; }
.hc-count { color: var(--muted); font: 600 13px/1 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hc-table { width: 100%; border-collapse: collapse; border: 0; margin: 0; background: none; }
.hc-table thead th { position: sticky; top: 68px; z-index: 2; padding: 12px 14px 12px 0; background: var(--night); border: 0; border-bottom: 1px solid var(--hair); color: var(--muted); font: 700 12px/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-align: left; }
.hc-table tbody th, .hc-table tbody td { padding: 14px 14px 14px 0; border: 0; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; background: none; }
.hc-table tbody th { color: #fff; font: 600 16px/1.35 var(--sans); width: 38%; }
.hc-table tbody td { color: #e4dfee; font: 400 16px/1.4 var(--sans); width: 31%; }
.hc-table tbody tr:hover { background: rgba(255,255,255,.035); }
.hc-table tbody tr[hidden] { display: none; }
.hc-empty { margin: 18px 0 0 !important; color: var(--soft) !important; font-size: 16px !important; }
/* no JavaScript: a readable table that scrolls sideways inside its own box (the page itself never does) */
@media (max-width: 700px) {
  .hc-tablewrap:not(.hc-js) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .hc-tablewrap:not(.hc-js) .hc-table { min-width: 520px; }
}
/* JavaScript on: one card per row, label above each value */
@media (max-width: 700px) {
  .hc-filter { grid-template-columns: minmax(0, 1fr) auto; }
  .hc-filter label { grid-column: 1 / -1; }
  .hc-js .hc-table, .hc-js .hc-table tbody { display: block; }
  .hc-js .hc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hc-js .hc-table tbody tr { display: block; padding: 14px 0 12px; border-bottom: 1px solid var(--hair); }
  .hc-js .hc-table tbody th { display: block; width: auto; padding: 0 0 6px; border: 0; font-size: 17px; }
  .hc-js .hc-table tbody td { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; width: auto; padding: 3px 0; border: 0; font-size: 15.5px; }
  .hc-js .hc-table tbody td::before { content: attr(data-label); color: var(--muted); font: 700 11px/1.5 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding-top: 2px; }
  .hc-js .hc-table tbody tr.same td:first-of-type::before { content: attr(data-label-same); }
  .hc-js .hc-table tbody tr.same td:last-of-type { display: none; }
  .hc-js .hc-table tbody tr:hover { background: none; }
}

/* 9. embeds shown as labelled boxes (the v2 contact snapshot's .mk-embed) */
.hc-embed { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 497px; width: 100%; box-sizing: border-box; padding: 24px; text-align: center;
  border: 1px dashed rgba(170,163,187,.5); border-radius: 12px; color: var(--muted); font: 600 14px/1.4 var(--sans); background: rgba(255,255,255,.03); margin: 18px 0; }
.hc-embed small { max-width: 44ch; font-weight: 400; font-size: 13px; }
.hc-embed.map { min-height: 300px; }
.hc-embed i { margin-right: 8px; color: var(--gold); }
.hc-quick { margin: 0 0 8px; }
.hc-quick ul { margin: 0; }

/* 10. article furniture */
.hc-toc-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0 0 26px; padding: 14px 18px; border: 1px solid var(--hair); border-radius: 12px; background: var(--night-2); }
.hc-toc-inline b { flex: 0 0 100%; color: var(--muted); font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.rd-body .hc-toc-inline a { color: var(--gold) !important; font: 600 15px/1.8 var(--sans); }
.hc-short { margin: 0 0 26px; padding: 16px 20px 6px; border: 1px solid rgba(233,193,52,.45); border-radius: 12px; background: var(--night-2); }
.hc-short b { display: block; margin-bottom: 8px; color: var(--gold); font: 700 14px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.rd-body .hc-short p { color: #fff !important; font-size: 19px !important; line-height: 1.55 !important; }
.hc-related { margin-top: 48px; }
.rd-body .hc-related h2 { margin: 0 0 8px !important; font-size: 24px !important; }
.hc-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 44px 0 0; }
.rd-body .hc-pn a { display: block; padding: 16px 18px; border: 1px solid var(--hair); border-radius: 12px; background: var(--night-2); color: #fff !important; text-decoration: none !important; min-width: 0; }
.rd-body .hc-pn a:hover { border-color: rgba(233,193,52,.6); }
.hc-pn small { display: block; margin-bottom: 6px; color: var(--muted); font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.hc-pn b { display: block; font: 700 16px/1.3 var(--sans); }
.hc-pn .next { text-align: right; grid-column: 2; }
.hc-still { margin-top: 40px; }
.hc-still h3 { margin-bottom: 8px !important; }
.hc-still p { margin: 0 0 16px; }
.rd-card .links a[aria-current="page"] { color: #fff !important; }
.rd-card .links a[aria-current="page"] i { color: var(--gold); }
.rd-card .links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: 10px; }
.hc-toc-card { display: block; }
@media (max-width: 980px) { .hc-toc-card { display: none; } .rd-body > .hc-toc-inline + p { font-size: 19px !important; } }
.rd-body > .hc-toc-inline + p, .rd-body > .hc-short + p { font-size: 19px !important; }

/* 12. help home C: the "Most asked" strip, led by the barricades article */
.hc-most { max-width: var(--wrap); margin: 8px auto 40px; padding: 0 24px; box-sizing: border-box; }
.hc-most h2 { margin: 0 0 16px !important; color: #fff !important; font: 700 30px/1 var(--display) !important; text-transform: uppercase; }
.hc-most .grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-auto-rows: 1fr; gap: 12px; }
.hc-most-card.lead { grid-row: 1 / span 3; }
.hc-most-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 12px; border: 1px solid var(--hair); background: var(--night-2); color: #fff !important; text-decoration: none !important; min-width: 0; }
.hc-most-card:hover { border-color: rgba(233,193,52,.6); }
.hc-most-card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.hc-most-card .ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: var(--gold); background: rgba(233,193,52,.1); }
.hc-most-card .t { min-width: 0; flex: 1; }
.hc-most-card b { display: block; font: 700 17px/1.15 var(--display); text-transform: uppercase; }
.hc-most-card small { margin-top: 6px; color: var(--soft); font: 400 14px/1.45 var(--sans); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hc-most-card > i { flex: 0 0 auto; color: var(--gold); font-size: 18px; }
.hc-most-card.lead { padding: 28px; align-items: flex-start; border-color: rgba(233,193,52,.45); flex-direction: column; gap: 18px; }
.hc-most-card.lead .ic { width: 52px; height: 52px; font-size: 26px; }
.hc-most-card.lead b { font-size: 34px; line-height: 1; }
.hc-most-card.lead small { font-size: 17px; -webkit-line-clamp: 5; }
.hc-most-card.lead > i { align-self: flex-end; margin-top: auto; }
.hc-home-c .rd { padding-top: 0; }

/* 13. search results + empty state */
.hc-res-count { margin: 0 0 6px !important; color: var(--muted) !important; font: 600 14px/1.4 var(--sans) !important; }
.hc-result .crumb { display: block; margin-bottom: 6px; color: var(--gold); font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.hc-result mark, .hc-sub-q mark { background: rgba(233,193,52,.2); color: var(--gold); border-radius: 3px; padding: 0 2px; }
.hc-result .t small { max-width: 64ch; }
.hc-none { padding: 8px 0 0; }
.hc-none .big { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: rgba(233,193,52,.1); color: var(--gold); font-size: 28px; margin-bottom: 14px; }
.rd-body .hc-none h2 { margin: 0 0 8px !important; font-size: 28px !important; }
.hc-none ul { margin: 0 0 8px; }
.hc-none h3 { margin: 32px 0 6px !important; font-size: 22px !important; }

/* 14. instant search dialog: article rows */
.sd-row .ci { flex: 0 0 auto; }
.sd-row .t b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 15. phones */
@media (max-width: 980px) {
  .rd-hero .search-pill, .fh .search-pill { height: 52px; margin-top: 20px; }
  .rd-hero .search-pill button, .fh .search-pill button { display: none; }
  .hc-hero-article h1 { font-size: 34px !important; }
  .hc-most { padding: 0 16px; margin-top: 4px; }
  .hc-most .grid { grid-template-columns: 1fr; gap: 8px; grid-auto-rows: auto; }
  .hc-most-card.lead { grid-row: auto; padding: 20px; }
  .hc-most h2 { font-size: 24px !important; }
  .hc-most-card.lead b { font-size: 26px; }
  .hc-most-card.lead small { font-size: 15.5px; }
  .rd-body a.hc-q { padding: 16px 0; }
  .hc-q .t b { font-size: 17px; }
  .hc-q .t small { font-size: 14.5px; }
  .rd-body .hc-sec h2 { font-size: 24px !important; }
  .hc-pn { grid-template-columns: 1fr; }
  .hc-pn .next { grid-column: auto; text-align: left; }
  .hc-embed { min-height: 360px; }
  .hc-callout { padding: 14px; gap: 12px; }
}

/* 16. lists inside article bodies (the legacy stylesheet strips markers; the v2 reading column never restored them) */
.rd-body ul { list-style: disc; padding-left: 24px; }
.rd-body ol { list-style: decimal; padding-left: 26px; }
.rd-body li { margin: 0 0 .6em; }
.rd-body li::marker { color: var(--gold); }
.rd-body .hc-quick ul { margin-bottom: 0; }

/* 17. link colour inside the "popular articles" list (legacy a colour is orange) */
.piers-list b a { color: #fff !important; text-decoration: none !important; }
.piers-list b a:hover { text-decoration: underline !important; text-underline-offset: 3px; }
.piers-list li i { align-self: start; }
.rd-card .search-pill:last-child { margin-bottom: 0 !important; }

/* 18. phone refinements */
.hc-browse-m { margin-bottom: 22px; }
@media (max-width: 980px) {
  .hc-most-card.lead { gap: 12px; }
}
.rd-body a.bd-cta { color: #fff !important; text-decoration: none !important; }
/* read.css puts a white card behind every form in the reading column (the Jotform); the help search form is not that */
.bd-read .rd-body form.search-pill { background: rgba(255,255,255,.05) !important; border-radius: 999px !important; }
.rd-body ul > li { list-style: disc; }
.rd-body ol > li { list-style: decimal; }

/* 19. build additions (not in the mockup file: the mockup had no scrolling page, dialog lock or stray-data states) */
html.hc-noscroll { overflow: hidden; }
.hc-sec, .rd-body h2[id], .rd-body h3[id], .hc-tablewrap { scroll-margin-top: 84px; }
.hc-subcat { margin-top: 36px; }
.hc-subcat:first-child { margin-top: 0; }
.hc-none p.hc-none { padding: 0; }
.sd-row mark { background: none; color: var(--gold); padding: 0; }
.rd-body .hc-callout a { color: var(--gold); }
.hc-unavailable .rd-body .hc-still { margin-top: 28px; }
.hc-filter[hidden], .hc-empty[hidden] { display: none !important; }
