/* The page width and chrome come from shared.css, the contents box from
   statistics.css. Keep this page aligned with the other statistics pages. */
.guide-page [hidden] { display: none !important; }
.guide-page p, .guide-page li, .guide-page label, .guide-page td, .guide-page th { color: #fff; }
.guide-kicker { margin-bottom: 8px; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; }
.guide-intro .guide-notice { padding: 14px 18px; }
.guide-jumps { margin-bottom: clamp(18px, 3vw, 28px); text-align: left; }
.guide-jumps .stats-toc__list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.guide-jumps > summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.guide-jumps[open] > summary { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 3px solid #7d2128; }
.guide-data { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 3vw, 28px); min-width: 0; text-align: left; }
.guide-section { padding: clamp(18px, 3vw, 28px); min-width: 0; scroll-margin-top: 20px; }
.guide-section > p { margin: 0 0 18px; max-width: 85ch; line-height: 1.65; }
.guide-section > h2 { margin: 0 0 14px; padding: 0 0 10px; border-bottom: 3px solid #7d2128; font-size: clamp(1.1rem, 2.4vw, 1.35rem); letter-spacing: .3px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); margin-top: 22px; }
.guide-card { margin: 0; padding: clamp(18px, 2vw, 26px); min-width: 0; overflow-wrap: anywhere; }
.guide-card--wide { grid-column: 1 / -1; }
.guide-observation { padding: 12px 16px; border-left: 3px solid #3498db; background: rgba(52, 152, 219, .1); }
.guide-example { padding: 12px 16px; border-left: 3px solid #e2850b; background: rgba(226, 133, 11, .08); }
.guide-sequence { display: flex; list-style: none; gap: 24px; padding: 0; margin: 18px 0; }
.guide-sequence li { flex: 1; position: relative; padding: 12px; border-top: 2px solid #7d2128; background: rgba(4, 5, 5, .6); }
.guide-sequence li:not(:last-child)::after { content: "→"; position: absolute; right: -20px; top: 10px; color: #fff; }
.guide-line-figure { margin: 22px 0; min-width: 0; }
.guide-line-figure figcaption { margin-bottom: 14px; font-weight: 700; }
.guide-line-area { position: relative; width: 100%; min-width: 0; height: clamp(280px, 30vw, 360px); overflow: hidden; }
.guide-line-area canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.guide-plot-data { margin-top: 14px; }
.guide-plot-data > summary { cursor: pointer; font-weight: 600; }
.guide-card h3 { color: #fff; margin: 15px 0 12px; padding-bottom: 8px; border-bottom: 3px solid #7d2128; font-size: clamp(1.05rem, 2vw, 1.2rem); }
.guide-card p { margin: 12px 0; line-height: 1.6; }
.guide-card > .guide-badge { margin-bottom: 4px; }
.guide-card > h4 { margin: 18px 0 8px; }
.guide-card .guide-action { font-size: 1.05rem; }
.guide-card .guide-evidence { font-size: 1.12rem; font-weight: 700; }
.guide-interval { display: block; margin-top: 5px; font-size: .85rem; font-weight: 400; }
.guide-badge { display: inline-block; padding: 5px 9px; border: 1px solid rgba(125, 33, 40, .65); background: rgba(125, 33, 40, .18); font-size: .78rem; color: #fff; }
.guide-badge--repeated { border-color: #2ecc71; background: rgba(17, 128, 106, .18); }
.guide-badge--small_sample, .guide-badge--mixed { border-color: #f1c40f; background: rgba(241, 196, 15, .08); }
.guide-proof { margin-top: 18px; border-top: 1px solid rgba(125, 33, 40, .5); padding-top: 14px; }
.guide-proof summary, .guide-context summary, .guide-audit summary { cursor: pointer; color: #fff; line-height: 1.5; font-weight: 600; }
.guide-math { margin-top: 18px; padding: 12px 14px; border: 1px solid rgba(125, 33, 40, .5); background: rgba(4, 5, 5, .65); }
.guide-math > summary { cursor: pointer; font-weight: 600; }
.guide-proof h4, .guide-numeric-proof h4 { margin: 16px 0 8px; }
.guide-numeric-proof + .guide-numeric-proof { margin-top: 24px; padding-top: 12px; border-top: 2px solid #7d2128; }
.guide-conclusion { margin: 16px 0; padding: 12px 16px; border-left: 3px solid #7d2128; background: rgba(125, 33, 40, .12); }
.guide-conclusion p { margin: 0; }
.guide-training { margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(125, 33, 40, .45); }
.guide-training h4 { font-size: .95rem; margin: 0 0 8px; }
.guide-source { display: inline-block; margin-top: 10px; color: #fff; text-underline-offset: 4px; }
.guide-context, .guide-audit { padding: 16px 18px; margin: 14px 0 0; min-width: 0; border: 1px solid rgba(125, 33, 40, .5); background: rgba(4, 5, 5, .55); }
.guide-context[open], .guide-audit[open] { border-color: #7d2128; }
.guide-context > p { margin-top: 14px; }
.guide-table-wrap { overflow-x: auto; max-width: 100%; margin: 18px 0; scrollbar-width: thin; }
.guide-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.guide-table th, .guide-table td { padding: 10px 12px; border: 1px solid rgba(125, 33, 40, .35); text-align: left; vertical-align: top; }
.guide-table th { background: rgba(125, 33, 40, .4); white-space: nowrap; }
.guide-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .03); }
.guide-table tbody tr:hover { background: rgba(125, 33, 40, .16); }
.guide-table td:first-child { min-width: 175px; }
.guide-table details p { min-width: 220px; max-width: 400px; margin: 12px 0; }
.guide-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.guide-select { max-width: 100%; background: #111; color: #fff; border: 1px solid rgba(125, 33, 40, .65); padding: 9px 12px; font: inherit; }
.guide-notice { margin: 0; padding: 18px 22px; border-left: 4px solid #7d2128; background: rgba(4, 5, 5, .75); line-height: 1.7; }
.guide-checklist { padding-left: 22px; line-height: 1.8; }
.guide-checklist li { margin: 9px 0; padding-left: 6px; }
.guide-page :focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.guide-download { cursor: pointer; padding: 10px 16px; border: 1px solid #7d2128; background: #7d2128; color: #fff; font: inherit; font-weight: 700; }
.guide-download:hover { background: #9b2932; }
.guide-goals { display: flex; flex-wrap: wrap; gap: 12px; }
.guide-goals a { padding: 10px 18px; color: #fff; text-decoration: none; border: 2px solid #7d2128; font-weight: 700; }
.guide-goals a:first-child, .guide-goals a:hover { background: #7d2128; }
.guide-takeaways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 22px 0 28px; }
.guide-takeaway { padding: 18px 22px; border-left: 4px solid #11806a; background: rgba(17, 128, 106, .1); }
.guide-takeaway--dont { border-color: #e2850b; background: rgba(226, 133, 11, .08); }
.guide-takeaway h3 { margin: 0 0 12px; font-size: 1.15rem; }
.guide-takeaway ul { padding-left: 20px; }
.guide-takeaway li { margin: 10px 0; line-height: 1.6; }
.guide-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 0; margin-top: 26px; list-style: none; counter-reset: guide-step; }
.guide-flow li { position: relative; min-width: 0; padding: 18px; border-top: 3px solid #7d2128; background: rgba(4, 5, 5, .55); counter-increment: guide-step; }
.guide-flow li::before { content: "0" counter(guide-step); display: block; margin-bottom: 10px; font-weight: 800; font-size: 1.4rem; color: #fff; }
.guide-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -20px; top: 24px; color: #fff; font-size: 1.3rem; }
.guide-flow h3 { font-size: 1rem; margin: 0 0 8px; }
.guide-flow p { font-size: .9rem; }
.guide-chart { margin: 20px 0; min-width: 0; }
.guide-chart figcaption { font-weight: 700; font-size: .95rem; margin-bottom: 14px; }
.guide-bar-row { display: grid; grid-template-columns: minmax(120px, 1.15fr) minmax(0, 1.5fr) 44px; align-items: center; gap: 10px; margin: 12px 0; }
.guide-bar-label { min-width: 0; font-size: .9rem; line-height: 1.4; overflow-wrap: anywhere; }
.guide-bar-sample { display: block; margin-top: 3px; color: #fff; font-size: .76rem; }
.guide-bar-track { min-width: 0; height: 12px; background: rgba(255, 255, 255, .09); }
.guide-bar-fill { display: block; height: 100%; background: #7d2128; }
.guide-chart--rating .guide-bar-fill { background: #3498db; }
.guide-chart--signup .guide-bar-fill { background: #e2850b; }
.guide-bar-value { font-size: .95rem; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.guide-page .guide-chart-note { margin: 12px 0; font-size: .85rem; line-height: 1.55; }
.guide-theme-grid { display: grid; gap: 12px; margin: 20px 0; }
.guide-theme-row { display: grid; grid-template-columns: 70px repeat(2, minmax(0, 1fr)); align-items: center; gap: 22px; padding: 14px 18px; border: 1px solid rgba(125, 33, 40, .45); background: rgba(4, 5, 5, .55); }
.guide-theme-row h4 { overflow-wrap: anywhere; }
.guide-theme-row .guide-chart { margin: 0; }
.guide-theme-row .guide-bar-row { grid-template-columns: 85px minmax(0, 1fr) 46px; margin-bottom: 0; }
#guide-planning { margin-top: 28px; }
@media (max-width: 1100px) {
  .guide-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .guide-flow li::after { display: none; }
  .guide-theme-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-theme-row > h4 { grid-column: 1 / -1; }
  .guide-theme-row .guide-bar-row { grid-template-columns: minmax(0, 1fr) 44px; }
  .guide-theme-row .guide-bar-label { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .guide-grid, .guide-takeaways { grid-template-columns: minmax(0, 1fr); }
  .guide-card { padding: 18px; }
  .guide-context, .guide-audit { padding: 12px; }
  .guide-theme-row { gap: 14px; padding: 14px; }
  .guide-theme-row .guide-bar-row { grid-template-columns: minmax(0, 1fr); }
  .guide-theme-row .guide-bar-value { text-align: left; }
}
@media (max-width: 440px) {
  .guide-sequence { flex-direction: column; }
  .guide-sequence li:not(:last-child)::after { content: "↓"; top: auto; bottom: -26px; right: 50%; }
  .guide-flow { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .guide-flow li:not(:last-child)::after { display: block; content: "↓"; top: auto; bottom: -26px; right: 50%; }
  .guide-bar-row { grid-template-columns: minmax(0, 1fr) 44px; }
  .guide-bar-label { grid-column: 1 / -1; }
  .guide-goals a { flex: 1 1 160px; text-align: center; }
}
