/* du-lieu page (inner page). Page-only classes; shared rules (h1/h2 sizes, .split, phone collapse) stay in style.css. */

/* header: Harvey top hero, 72px serif H1 from style.css; one button */
.pg-head { padding-top: var(--space-9); }
.pg-head .label { margin-bottom: 20px; }
.pg-head h1 { max-width: 1040px; }
.pg-head .lead { margin-top: var(--space-5); max-width: 640px; }
.pg-act { margin-top: 40px; }

/* split: shared .split (5fr 7fr) from style.css; only the label offset and the H2 gap are page-specific */
.split-left .label { margin-top: 0; }
.split-left h2 { margin-bottom: var(--space-5); }
.split-p { font-size: 18px; line-height: 1.55; color: #33312C; max-width: 420px; margin: 0; }

/* one continuous dark band: test results + known limits */
.dark-band { background: var(--ink); }
.dark-band .label.on-dark-label { color: var(--grey); }

/* control list on the dark band (Harvey security band, s00): ruled rows, right-aligned links (Harvey "Details") */
#quy-tac { padding: var(--space-10) 0; }
.ctl-sec .label { color: var(--grey); }
.ctl-sec .split-p { color: var(--on-dark); }
.ctl-act { margin: var(--space-6) 0 0; }
.ctl-row { border-top: 1px solid var(--hair-dark); }
.ctl-row:last-of-type { border-bottom: 1px solid var(--hair-dark); }
.ctl-row summary {
  list-style: none; cursor: pointer; display: grid;
  grid-template-columns: 170px 1fr auto; gap: var(--space-5); align-items: baseline; padding: var(--space-5) 0;
  background: none; transition: color 250ms ease;
}
.ctl-row summary:hover .ctl-t { color: #CCCAC6; }
.ctl-row summary:hover .ctl-s, .ctl-row summary:hover .ctl-go { color: #fff; }
.ctl-row summary::-webkit-details-marker { display: none; }
.ctl-row summary:focus-visible, .faq-row summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.ctl-t { font: 500 18px/1.4 var(--sans); color: #fff; }
.ctl-s { font-size: var(--text-base); line-height: 1.5; color: var(--on-dark); }
.ctl-go {
  font: 400 15px/1.4 var(--sans); color: var(--grey); white-space: nowrap; text-align: right;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.ctl-less { display: none; }
.ctl-row[open] .ctl-more { display: none; }
.ctl-row[open] .ctl-less { display: inline; }
.ctl-row[open] .ctl-go { color: #fff; }
.ctl-body { padding: 0 0 28px 194px; }
.ctl-list { list-style: none; margin: 0; padding: 0; }
.ctl-list li { position: relative; padding-left: 20px; font-size: var(--text-base); line-height: 1.6; color: var(--on-dark); margin-bottom: 10px; }
.ctl-list li::before { content: ""; position: absolute; left: 0; top: 12px; width: 8px; height: 1px; background: #fff; }
.ctl-list li:last-child { margin-bottom: 0; }
.ctl-list strong { font-weight: 500; color: #fff; }
.ctl-quote {
  margin: var(--space-3) 0 0; padding: var(--space-1) 0 var(--space-1) var(--space-4); border-left: 1px solid var(--rule-dark);
  font-size: 15px; line-height: 1.6; color: var(--on-dark);
}
.ctl-cite { margin: var(--space-2) 0 0 0; font-size: var(--text-sm); line-height: 1.5; color: var(--grey); }
.ctl-note { margin: var(--space-6) 0 0; font-size: var(--text-base); line-height: 1.6; color: var(--on-dark); max-width: 640px; }

/* results band (dark): score + run table, no row rules */
#kiem-thu { padding: var(--space-10) 0 var(--space-9); }
.score { display: flex; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-top: 40px; }
.score-num {
  font-family: var(--serif); font-size: var(--text-5xl); line-height: 1.15; letter-spacing: -0.5px;
  color: #fff; white-space: nowrap; margin: 0;
}
.score-side { max-width: 640px; padding-bottom: var(--space-3); }
.score-side p { font-size: var(--text-base); line-height: 1.6; color: var(--on-dark); margin: 0; }
.score-side p + p { margin-top: var(--space-2); }
.runs {
  width: 100%; margin-top: 56px;
  border-collapse: collapse; color: #fff; font-size: 18px;
}
.runs th, .runs td { padding: 14px 0; text-align: right; font-weight: 400; font-variant-numeric: tabular-nums; }
.runs thead th { font: 500 var(--text-sm)/1.3 var(--sans); color: var(--grey); padding-bottom: 20px; }
.runs thead th:first-child, .runs tbody th { text-align: left; }
.runs tbody th { font: 500 var(--text-base)/1.4 var(--sans); color: var(--on-dark); }
.runs-note { margin: 20px 0 0; max-width: 760px; font-size: var(--text-sm); line-height: 1.6; color: var(--grey); }

/* known limits (dark, continues): two-column numbered list, no rules */
#gioi-han { padding: 0 0 var(--space-10); }
.lim {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px var(--space-8); margin: var(--space-7) 0 0; padding: 0;
  list-style: none;
}
.lim li { display: grid; grid-template-columns: 44px 1fr; font-size: 18px; line-height: 1.55; color: #F2F0EC; }
.lim .n { font: 500 var(--text-sm)/1.9 var(--sans); color: var(--grey); }

/* FAQ accordion: native details, no script; unruled rows on tinted blocks */
#cau-hoi { padding: var(--space-10) 0; }
.faq-row { background: #F3F2EF; border-radius: 6px; padding: 0 var(--space-5); }
.faq-row + .faq-row { margin-top: var(--space-3); }
.faq-row summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-5); padding: 22px 0; font: 500 18px/1.4 var(--sans); color: var(--ink);
  background: none; transition: color 250ms ease;
}
.faq-row summary:hover { color: var(--grey-ink); }
.faq-row summary::-webkit-details-marker { display: none; }
.faq-chev {
  width: 9px; height: 9px; flex: none; margin-top: -4px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg); transition: transform 250ms ease;
}
.faq-row[open] .faq-chev { transform: rotate(-135deg); margin-top: var(--space-1); }
.faq-a { margin: 0; padding: 0 var(--space-7) var(--space-5) 0; font-size: var(--text-base); line-height: 1.6; color: #33312C; }

@media (prefers-reduced-motion: reduce) { .faq-chev, .faq-row summary, .ctl-row summary { transition: none; } }

/* phone (style.css collapses .split to one column and sets h1 40px at 720px) */
@media (max-width: 720px) {
  .pg-head { padding-top: 56px; }
  .pg-act { margin-top: 28px; }
  .split-left .label { margin-top: 0; }

  #quy-tac { padding: 72px 0 72px; }
  .ctl-act { margin-top: var(--space-5); }
  .ctl-row summary { grid-template-columns: 1fr auto; gap: var(--space-2) var(--space-4); padding: 20px 0; }
  .ctl-t { grid-column: 1; grid-row: 1; }
  .ctl-go { grid-column: 2; grid-row: 1; }
  .ctl-s { grid-column: 1 / -1; grid-row: 2; }
  .ctl-body { padding: 0 0 var(--space-5) 0; }
  .ctl-note { margin-top: var(--space-5); }

  #kiem-thu { padding: 72px 0 56px; }
  .dark-band h2 { font-size: 30px; }
  .score { margin-top: var(--space-6); gap: var(--space-4); }
  .score-num { font-size: 56px; }
  .runs { font-size: var(--text-base); margin-top: 40px; }
  .runs th, .runs td { padding: var(--space-3) 0; }
  .runs thead th { font-size: var(--text-sm); }

  #gioi-han { padding-bottom: 72px; }
  .lim { grid-template-columns: 1fr; gap: var(--space-5); margin-top: 40px; }
  .lim li { font-size: 17px; }

  #cau-hoi { padding: 72px 0; }
  .faq-row summary { font-size: 17px; }
  .faq-a { padding-right: 0; }
}

/* r9 fix: hero had no bottom padding, so the primary button touched the dark band below (VI and EN, desktop and phone fold) */
.pg-head { padding-bottom: var(--space-9); }
@media (max-width: 720px) { .pg-head { padding-bottom: 72px; } }
