/* manual.css — the Entertainment Wire's reader manual, manual.html (AQ-407).
 *
 * Adapted from the DFC Wire's assets/manual/manual.css. The house palette below
 * is legal.css's, value for value (:root dark, [data-theme="light"] light, the
 * same convention as every stylesheet on this site); the manual's own tokens
 * are named from it in the block after. public.css reads the house tokens for
 * the header's menu panel; footer.css and wire-header.css carry their own.
 */
:root {
  --bg:        #0A2032;
  --bg2:       #081B2B;
  --panel:     #0E2A3D;
  --panel2:    #13314A;
  --field:     #163952;
  --grid:      #1B374F;
  --grid-soft: #163045;
  --text:      #E9F1F8;
  --text-dim:  #A9BDCD;
  --faint:     #7A93A6;
  --brand:     #4D9BE0;
  --brand-l:   #5BA6E8;
  --brand-d:   #1D6BB4;
  --cont:      #D8944A;
  --up:        #1f9d6b;
  --up-l:      #3ec78f;
  --footer:    #071521;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", "AXIOM Symbols", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
}
[data-theme="light"] {
  --bg:        #FFFFFF;
  --bg2:       #F2F5F8;
  --panel:     #F2F5F8;
  --panel2:    #E6F1FB;
  --field:     #FFFFFF;
  --grid:      #D8E0E8;
  --grid-soft: #E9EEF3;
  --text:      #0A2032;
  --text-dim:  #5B6B7A;
  --faint:     #547392;
  --brand:     #2F6FAE;
  --brand-l:   #2F6FAE;
  --brand-d:   #1D6BB4;
  --cont:      #B06A1E;
  --up:        #1f9d6b;
  --up-l:      #178a5d;
  --footer:    #F2F5F8;
}

/* ---- the manual's names for the house tokens ------------------------------ */
:root { --paper: var(--bg); --card: var(--panel); --ink: var(--text); --muted: var(--text-dim); --line: var(--grid); --blue: var(--brand-l); --blue-soft: var(--panel2); --accent: var(--brand-l); --tap: 44px; color-scheme: dark; }
[data-theme="light"] { --accent: var(--brand-d); color-scheme: light; }

/* ---- base ------------------------------------------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.65 var(--sans); overflow-wrap: break-word; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, summary { font: inherit; }
button, a, summary, input { touch-action: manipulation; }
button { cursor: pointer; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 9px 14px; min-height: var(--tap); }
button:hover { background: var(--blue-soft); }
:is(button, a, input, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 300; padding: 10px 18px; background: var(--card); color: var(--ink); }
.skip:focus { top: 10px; }
a[href^="mailto:"] { overflow-wrap: anywhere; }

/* ---- layout: contents beside the guide ------------------------------------- */
.guide-layout { display: grid; grid-template-columns: 256px minmax(0, 1fr); max-width: 1600px; margin: auto; }
.guide-sidebar { position: sticky; top: var(--wire-header-height, 122px); height: calc(100dvh - var(--wire-header-height, 122px)); overflow: auto; padding: 32px 22px; border-right: 1px solid var(--line); background: var(--card); font-size: 13px; }
.sidebar-label { display: flex; justify-content: space-between; gap: 8px; font: 600 10px/1.5 var(--mono); letter-spacing: .09em; margin-bottom: 28px; color: var(--blue); }
.sidebar-label span { color: var(--muted); }
.guide-search > span { display: block; font-weight: 650; margin-bottom: 8px; }
.guide-search input { width: 100%; min-width: 0; min-height: var(--tap); padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font-size: 14px; }
#search-status { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 10px 0 20px; min-height: 36px; }
.guide-contents summary { display: none; }
.guide-contents nav { display: grid; gap: 2px; }
.guide-contents a { display: flex; align-items: center; gap: 11px; min-height: var(--tap); padding: 6px 10px; border-radius: 3px; text-decoration: none; color: var(--muted); line-height: 1.35; }
.guide-contents a span { font: 11px/1.6 var(--mono); opacity: .75; }
.guide-contents a:hover, .guide-contents a[aria-current] { background: var(--blue-soft); color: var(--blue); }
.guide-contents a[aria-current] { box-shadow: inset 2px 0 var(--blue); }
.sidebar-bottom { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 25px; font-size: 12px; color: var(--muted); }
.sidebar-bottom button { width: 100%; font-size: 12px; }
main { min-width: 0; padding: 30px clamp(24px, 3vw, 48px) 32px; max-width: 1220px; }

/* ---- the opening ------------------------------------------------------------ */
.eyebrow { font: 600 11px/1.4 var(--mono); letter-spacing: .15em; color: var(--blue); margin: 0 0 20px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; }
h1 { font: 600 clamp(32px, 3.4vw, 48px)/1.1 var(--serif); letter-spacing: -.03em; margin: 0 0 22px; }
.hero-lede { font-size: 16px; line-height: 1.6; max-width: 680px; color: var(--muted); margin: 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 21px; padding: 18px 0; font: 11px/1.5 var(--mono); color: var(--muted); }
.hero-meta span::before { content: "•"; color: var(--accent); margin-right: 7px; }
.quick-start { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 18px; }
.quick-start a { display: grid; grid-template-columns: 28px 1fr; gap: 4px 12px; padding: 19px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); }
.quick-start a > span { grid-row: span 2; font: 12px/2 var(--mono); color: var(--blue); }
.quick-start strong { font: 600 12px/1.5 var(--mono); }
.quick-start small { font-size: 12px; color: var(--muted); }
.quick-start a:hover { border-color: var(--blue); }
.guide-caption { font-size: 12px; color: var(--muted); line-height: 1.65; }
.intro-caption { max-width: 780px; margin-bottom: 28px; }
#guide-no-results { padding: 30px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 30px; }

/* ---- a topic ------------------------------------------------------------------ */
.guide-section { padding: 28px 0 30px; border-top: 1px solid var(--line); }
.guide-section:target > h2 { color: var(--blue); }
.section-kicker { font: 11px/1.4 var(--mono); letter-spacing: .11em; color: var(--blue); text-transform: uppercase; margin: 0 0 20px; padding: 9px 12px; border-bottom: 1px solid var(--line); border-left: 3px solid var(--blue); background: var(--card); }
.guide-section h2 { font: 600 26px/1.2 var(--serif); margin: 0 0 14px; }
.guide-section > p:first-of-type:not(.section-kicker) { color: var(--muted); }
.guide-section h3 { font-size: 18px; margin: 28px 0 11px; }
.guide-section p { margin: 0 0 16px; }
.guide-section li { margin: 7px 0; }
.guide-section ul, .guide-section ol { padding-left: 23px; }
.guide-section strong { font-weight: 650; }
.walkthrough { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin: 24px 0; padding: 0 !important; list-style: none; counter-reset: step; }
.walkthrough li { padding: 20px 17px; margin: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--card); font-size: 13px; line-height: 1.65; counter-increment: step; }
.walkthrough li::before { content: counter(step, decimal-leading-zero); display: block; color: var(--blue); font: 500 12px/1 var(--mono); margin-bottom: 15px; }
.walkthrough strong { display: block; font-size: 15px; margin-bottom: 6px; }
.note { border-left: 3px solid var(--accent); background: var(--blue-soft); padding: 17px 20px; margin: 22px 0; font-size: 14px; }
.note p:last-child { margin-bottom: 0; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mini-card { padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.mini-card h3 { margin: 0 0 10px; font-size: 17px; }
.mini-card p:last-child { margin-bottom: 0; }

/* the control path: an accessible diagram of where to press, in order */
.path-diagram { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; padding: 24px; background: var(--blue-soft); border: 1px solid var(--line); border-radius: 9px; margin: 24px 0; list-style: none; }
.guide-section .path-diagram { padding-left: 24px; }
.path-diagram li { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; }
.path-diagram li + li::before { content: "→"; font-size: 20px; color: var(--blue); }
.path-diagram li span { display: block; background: var(--card); border: 1px solid var(--line); padding: 10px 14px; border-radius: 6px; }
.path-diagram small { display: block; color: var(--muted); font-size: 11px; }

.table-wrap { overflow-x: auto; max-width: 100%; margin: 20px 0; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; background: var(--card); }
th, td { padding: 13px 15px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--blue-soft); font-weight: 600; color: var(--blue); }
tr:last-child td, tr:last-child th { border-bottom: 0; }
caption { text-align: left; padding: 12px 15px; font-weight: 650; }
td:first-child { min-width: 140px; }
kbd { display: inline-block; min-width: 25px; text-align: center; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 4px; background: var(--card); color: var(--ink); padding: 1px 6px; font: 12px/1.8 var(--mono); }
.key-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 24px 0; }
.key-grid div { padding: 18px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; text-align: center; font-size: 12px; }
.key-grid kbd { margin: 0 2px 10px; font-size: 18px; }

/* ---- questions -------------------------------------------------------------------- */
.faq-group { margin-top: 25px; }
.faq-group details { background: var(--card); border: 1px solid var(--line); border-radius: 6px; margin: 9px 0; overflow: hidden; }
.faq-group summary { padding: 15px 19px; min-height: var(--tap); cursor: pointer; font-weight: 600; font-size: 14px; line-height: 1.5; }
.faq-group details[open] summary { border-bottom: 1px solid var(--line); background: var(--blue-soft); }
.faq-answer { padding: 19px; font-size: 14px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-path { font: 11px/1.6 var(--mono); color: var(--blue); border-left: 3px solid var(--accent); padding: 8px 12px; background: var(--blue-soft); margin: 0 0 14px; }

@media (min-width: 1400px) {
  .quick-start { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick-start a { display: flex; flex-direction: column; }
  .quick-start a > span { margin-bottom: 5px; }
}
@media (max-width: 980px) {
  .guide-layout { grid-template-columns: 216px minmax(0, 1fr); }
  .guide-sidebar { padding: 25px 15px; }
  main { padding: 36px 25px; }
  .walkthrough, .two-col { grid-template-columns: 1fr; }
  .walkthrough li::before { float: left; margin: 7px 13px 18px 0; }
}
/* A phone: one column, 16px gutters, contents folded under the search. */
@media (max-width: 720px) {
  .guide-layout { display: block; }
  .guide-sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 16px; }
  .sidebar-label, .sidebar-bottom { display: none; }
  #search-status { margin: 8px 0 12px; min-height: 0; }
  .guide-contents summary { display: flex; align-items: center; min-height: var(--tap); font-weight: 650; font-size: 13px; cursor: pointer; }
  .guide-contents nav { grid-template-columns: 1fr 1fr; padding-top: 8px; }
  .guide-contents:not([open]) nav { display: none; }
  main { padding: 30px 16px; }
  h1 { font-size: 34px; }
  .hero-lede { font-size: 15px; }
  .hero-meta { font-size: 10px; gap: 8px; }
  .quick-start { gap: 8px; }
  .quick-start a { padding: 14px 12px; grid-template-columns: 1fr; gap: 3px; }
  .quick-start a > span { display: none; }
  .intro-caption { font-size: 11px; }
  .guide-section { padding: 30px 0; }
  .guide-section h2 { font-size: 25px; }
  .guide-section p { font-size: 15px; }
  .path-diagram, .guide-section .path-diagram { padding: 14px; gap: 7px; }
  .path-diagram li { font-size: 12px; }
  .path-diagram li span { padding: 8px; }
  .key-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-group summary, .faq-answer { padding: 15px; }
}
@media (max-width: 400px) {
  .guide-contents nav { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print {
  :root, [data-theme="light"], [data-theme="dark"] { --paper: #fff; --card: #fff; --ink: #111; --muted: #444; --line: #bbb; --blue: #204d80; --blue-soft: #f2f5f8; --accent: #204d80; color-scheme: light; }
  body { font-size: 10pt; }
  #publicWireHeader, .guide-sidebar, .quick-start, .hero-meta, .intro-caption, .ftr, #guide-no-results, .skip { display: none !important; }
  .guide-layout { display: block; }
  main { max-width: none; padding: 0; }
  h1 { font-size: 32pt; }
  .guide-section, .guide-section[hidden], .faq-group[hidden], .faq-group details[hidden] { display: block !important; padding: 22px 0; }
  .guide-section h2, .guide-section h3 { break-after: avoid; }
  .mini-card, .walkthrough li { break-inside: avoid; }
  .walkthrough { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .table-wrap { overflow: visible; }
  details > summary { list-style: none; }
  .faq-answer { display: block !important; }
  button { display: none !important; }
  @page { margin: 16mm; }
}
