/* Long Châu · programme timeline — Newing CI
   navy #122757 · gold #FFD46C → #FFF6E4 (thin rules only) · white · Arial */

:root {
  --navy: #122757;
  --navy-deep: #0b1b3d;
  --navy-soft: #2a4376;
  --ink: #1b2438;
  --muted: #5b6478;
  --gold: #ffd46c;
  --gold-pale: #fff6e4;
  --rule: #dfe4ee;
  --rule-soft: #edf0f6;
  --tint: #f7f8fb;
  --tet: #fff8ea;
  --op: #a9b1c4;
  --paper: #fff;
  --font: Arial, "Liberation Sans", "Helvetica Neue", Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.45;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 8px; top: -48px;
  z-index: 50;
  padding: 8px 14px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  border-radius: 2px;
}
.skip:focus { top: 8px; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1560px;
  margin: 0 auto;
  padding: 26px 32px 14px;
}

.brand-name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--navy);
}

.brand-sub {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.actions-note {
  font-size: 11px;
  color: var(--muted);
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: #fff; color: var(--navy); }

.gold-rule {
  height: 2px;
  max-width: 1496px;
  margin: 0 auto;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 18%, var(--gold-pale) 55%, #fff 100%);
}

/* ---------- title ---------- */

.titleblock {
  max-width: 1560px;
  margin: 0 auto;
  padding: 20px 32px 18px;
}

h1 {
  margin: 0;
  max-width: 34ch;
  font-size: clamp(21px, 2.35vw, 31px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.005em;
  color: var(--navy);
}

.sub {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ink);
}

.meta {
  margin: 5px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.meta i { font-style: italic; }

/* ---------- board ---------- */

main {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 32px 40px;
}

.board { margin-top: 4px; }

.scroll {
  overflow-x: auto;
  overflow-y: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.gantt {
  width: 100%;
  min-width: 1200px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

col.col-num { width: 2.4%; }
col.col-content { width: 21.5%; }
col.col-pic { width: 6.8%; }
col.col-form { width: 8.2%; }
col.col-dur { width: 5.2%; }
col.col-date { width: 9.2%; }
col.col-wk { width: 1.868%; }

.gantt thead th {
  font-weight: 400;
  text-align: left;
}

.month-row th {
  padding: 8px 6px 6px;
  background: var(--tint);
  border-bottom: 1px solid var(--rule);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  letter-spacing: .03em;
}
.month-row th.corner {
  padding-left: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-align: left;
}

.week-row th {
  padding: 6px 2px 8px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--rule);
  color: var(--navy);
  text-align: center;
  vertical-align: bottom;
}
.week-row th.c-num,
.week-row th.c-content,
.week-row th.c-pic,
.week-row th.c-form,
.week-row th.c-dur,
.week-row th.c-date {
  padding: 6px 8px 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: left;
  vertical-align: bottom;
}

.w-n {
  display: block;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.w-d {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Tết banner */
.tet-row td { border-bottom: 1px solid var(--gold); }
.tet-key {
  padding: 4px 8px;
  background: var(--tet);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}
.tet-band {
  background: var(--tet);
  color: var(--navy);
  text-align: center;
  padding: 3px 2px;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.15;
}
.tet-band small {
  display: block;
  font-size: 8px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

/* On-Point lane */
.lane-row th,
.lane-row td {
  height: 18px;
  background: #fcfcfe;
  border-bottom: 1px solid var(--rule);
}
.lane-key {
  padding: 3px 8px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
}
.lane-cell { padding: 0; }
.lane-track {
  position: relative;
  display: block;
  height: 16px;
}
.op {
  position: absolute;
  top: 50%;
  height: 5px;
  transform: translateY(-50%);
  background: var(--op);
  border-radius: 1px;
  opacity: .9;
}

/* task rows */
.task > td,
.task > th {
  padding: 5px 8px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: middle;
  text-align: left;
  font-weight: 400;
}

.task:hover > td,
.task:hover > th { background: #f8fafd; }

.c-num {
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.c-content { font-size: 12px; line-height: 1.35; color: var(--ink); }

.clamp {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}
.clamp-wrap.expanded .clamp {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.more {
  display: none;
  margin: 3px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.clamp-wrap.is-overflowing .more { display: inline-block; }

.c-pic { font-size: 11.5px; }
.pic { display: block; line-height: 1.3; }

.c-form { font-size: 11px; color: var(--ink); }
.c-dur { font-size: 11px; color: var(--ink); }

.c-date { font-size: 11.5px; line-height: 1.3; }
.d-main {
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.d-time { font-variant-numeric: tabular-nums; }
.d-sub {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
}

.nil { color: #a3aab9; }

.moved,
.warn {
  display: inline-block;
  margin-top: 3px;
  padding: 0 5px;
  border: 1px solid var(--gold);
  background: var(--gold-pale);
  color: var(--navy);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.5;
  border-radius: 2px;
}

.warn {
  border-color: #c2410c;
  background: #fff1e6;
  color: #8a2c0a;
}

.wk {
  padding: 0 !important;
  border-left: 1px solid #f3f5f9;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: middle;
}
.wk.tet { background: var(--tet); }
.wk.tail { border-left: 1px dashed #c9d1e2; }
.week-row th.tail .w-n { color: var(--muted); }
.bar {
  display: block;
  height: 9px;
  background: var(--navy);
}
.wk.first .bar { border-radius: 3px 0 0 3px; }
.wk.last .bar { border-radius: 0 3px 3px 0; }
.wk.solo .bar { border-radius: 3px; }

/* bands */
.band-row td {
  padding: 8px 10px;
  background: #eff2f8;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.band-row.super td {
  background: var(--navy);
  border-color: var(--navy);
  padding: 9px 10px;
}
.band-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--navy);
}
.band-row.super .band-label {
  color: #fff;
  font-size: 11.5px;
  letter-spacing: .08em;
}
.band-desc {
  display: block;
  margin-top: 4px;
  max-width: 108ch;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.band-desc .clamp { -webkit-line-clamp: 1; }
.band-desc .more { font-size: 10px; }

/* ---------- legend ---------- */

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  padding: 14px 0 4px;
  font-size: 11px;
  color: var(--muted);
}
.lg { display: inline-flex; align-items: center; gap: 7px; }
.lg-note { flex-basis: 100%; color: var(--ink); }
.sw { display: inline-block; flex: none; }
.bar-sw { width: 20px; height: 8px; background: var(--navy); border-radius: 2px; }
.tet-sw { width: 20px; height: 8px; background: var(--tet); border: 1px solid var(--gold); }
.op-sw { width: 3px; height: 11px; background: var(--op); }
.moved-sw {
  width: 18px; height: 10px;
  border: 1px solid var(--gold);
  background: var(--gold-pale);
  border-radius: 2px;
}
.warn-sw {
  width: 18px; height: 10px;
  border: 1px solid #c2410c;
  background: #fff1e6;
  border-radius: 2px;
}

/* ---------- decisions ---------- */

.decisions {
  position: relative;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 2px solid var(--navy);
}
.decisions::before {
  content: "";
  position: absolute;
  top: -2px; left: 0;
  width: 132px; height: 2px;
  background: var(--gold);
}
.decisions h2 {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.005em;
  color: var(--navy);
}
.decisions ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 44px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: decision;
}
.decisions li {
  position: relative;
  counter-increment: decision;
  padding-left: 42px;
}
.decisions li::before {
  content: counter(decision);
  position: absolute;
  left: 0; top: 0;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.d-lead {
  margin: 2px 0 8px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
}
.decisions p:not(.d-lead) {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink);
}
.decisions ul {
  margin: 0;
  padding-left: 16px;
  font-size: 12.5px;
}
.decisions li.wide { grid-column: 1 / -1; }
.decisions li li { padding-left: 0; counter-increment: none; }
.decisions li li::before { content: none; }
.decisions ul li { margin-bottom: 4px; }

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 1560px;
  margin: 0 auto;
  padding: 18px 32px 28px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 11px;
}
.credit {
  color: var(--muted);
  text-decoration: none;
}
.credit:hover { color: var(--navy); text-decoration: underline; }

/* ---------- mobile cards ---------- */

.mobile-list {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.m-card {
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--rule-soft);
}

.m-band {
  margin-top: 18px;
  padding: 9px 11px;
  background: #eff2f8;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.35;
}
.m-band.super {
  background: var(--navy);
  color: #fff;
}

.m-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10.5px;
}
.m-row { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.m-weeks { letter-spacing: .01em; }

.m-card .clamp { font-size: 13px; }
.m-card .more { font-size: 11px; }

.m-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  margin: 9px 0 0;
  font-size: 11.5px;
}
.m-meta div { min-width: 0; }
.m-meta dt {
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.m-meta dd { margin: 1px 0 0; line-height: 1.35; }
.m-sub { color: var(--muted); }

.m-strip {
  display: grid;
  grid-template-columns: repeat(25, 1fr);
  gap: 1px;
  height: 10px;
  margin-top: 11px;
  background: #f4f6fa;
}
.m-strip i { display: block; background: #e9edf5; }
.m-strip i.on { background: var(--navy); }
.m-strip i.tet { background: #ffe9b8; }

.m-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

@media screen and (max-width: 860px) {
  .masthead { padding: 20px 18px 12px; }
  .brand-name { font-size: 15px; }
  .brand-sub { font-size: 10px; }
  .actions-note { display: none; }
  .titleblock { padding: 16px 18px 14px; }
  h1 { font-size: 21px; max-width: none; }
  .sub { font-size: 12px; }
  main { padding: 0 18px 32px; }
  .board { display: none; }
  .mobile-list { display: block; }
  .legend { gap: 7px 18px; font-size: 10.5px; padding-top: 12px; }
  .decisions { margin-top: 32px; }
  .decisions ol { grid-template-columns: 1fr; gap: 22px; }
  .decisions li { padding-left: 36px; }
  /* keep the platform badge's fixed corner (88x156) clear of the last text */
  .site-footer { padding: 16px 18px 168px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* ---------- A4 landscape, exactly one page ---------- */

/* @page must sit at the top level: Chrome ignores it nested in @media print. */
@page { size: A4 landscape; margin: 5mm 7mm; }

@media print {
  html, body {
    background: #fff !important;
    font-size: 4.8pt;
    line-height: 1.2;
  }

  .skip, .actions, .more, .mobile-list, .scroll::-webkit-scrollbar { display: none !important; }

  .masthead {
    max-width: none;
    padding: 0 0 .6mm;
    align-items: center;
  }
  .brand-name { font-size: 7.4pt; letter-spacing: .16em; }
  .brand-sub { font-size: 4.2pt; margin-top: .2mm; }
  .gold-rule { max-width: none; height: .5mm; }

  .titleblock { max-width: none; padding: .9mm 0 1mm; }
  h1 {
    max-width: none;
    font-size: 9pt;
    line-height: 1.12;
    letter-spacing: 0;
  }
  .sub { margin-top: .5mm; font-size: 5pt; }
  .meta { margin-top: .2mm; font-size: 4pt; }

  main { max-width: none; padding: 0; }

  .board { display: block !important; margin: 0; }
  .scroll {
    overflow: visible !important;
    border-top: .3mm solid #dfe4ee;
    border-bottom: .3mm solid #dfe4ee;
  }

  .gantt {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
    font-size: 4.7pt;
  }

  col.col-num { width: 2%; }
  col.col-content { width: 20.4%; }
  col.col-pic { width: 7.9%; }
  col.col-form { width: 8%; }
  col.col-dur { width: 5.4%; }
  col.col-date { width: 11.3%; }
  col.col-wk { width: 1.8%; }

  thead { display: table-header-group; }

  .month-row th { padding: .5mm .5mm .3mm; font-size: 4.4pt; }
  .month-row th.corner { font-size: 4.2pt; padding-left: 1mm; }
  .week-row th { padding: .3mm .2mm .5mm; }
  .week-row th.c-num,
  .week-row th.c-content,
  .week-row th.c-pic,
  .week-row th.c-form,
  .week-row th.c-dur,
  .week-row th.c-date { padding: .3mm 1mm .5mm; font-size: 4.2pt; }
  .w-n { font-size: 4.2pt; }
  .w-d { font-size: 3.6pt; margin-top: .1mm; }

  .tet-key { padding: .35mm 1mm; font-size: 4pt; }
  .tet-band { padding: .2mm .2mm; font-size: 3.9pt; }
  .tet-band small { font-size: 3.3pt; }

  .lane-row th, .lane-row td { height: 2.6mm; }
  .lane-key { padding: .3mm 1mm; font-size: 3.7pt; }
  .lane-track { height: 2.4mm; }
  .op { height: 1mm; border-radius: .3mm; }

  .task > td, .task > th {
    padding: .33mm 1mm;
    vertical-align: middle;
  }
  .c-num { font-size: 4pt; }
  .c-content { font-size: 4.7pt; line-height: 1.18; }
  .clamp { -webkit-line-clamp: 1; }
  .c-pic, .c-date { font-size: 4.5pt; }
  .c-form, .c-dur { font-size: 4.3pt; }
  .pic { display: inline; }
  .pic + .pic::before { content: " · "; }
  .d-sub { display: none; }
  .d-main { font-weight: 700; }
  .moved, .warn {
    margin: 0 0 0 .6mm;
    padding: 0 .5mm;
    font-size: 3.6pt;
    line-height: 1.2;
    border-width: .2mm;
  }
  .bar { height: 1.5mm; }
  .wk.first .bar { border-radius: .4mm 0 0 .4mm; }
  .wk.last .bar { border-radius: 0 .4mm .4mm 0; }
  .wk.solo .bar { border-radius: .4mm; }

  .band-row td { padding: .34mm 1mm; }
  .band-row.super td { padding: .38mm 1mm; }
  .band-label { font-size: 4.5pt; letter-spacing: .04em; }
  .band-row.super .band-label { font-size: 4.7pt; }
  .band-desc { display: none; }

  .legend {
    gap: .3mm 3mm;
    padding: .5mm 0 .2mm;
    font-size: 3.9pt;
  }
  .lg { gap: 1mm; }
  .lg-note { flex-basis: auto; }
  .sw { display: none; }

  .decisions {
    margin-top: 1.1mm;
    padding-top: 1mm;
    border-top-width: .4mm;
  }
  .decisions::before { width: 30mm; height: .4mm; top: -.4mm; }
  .decisions h2 { margin: 0 0 .8mm; font-size: 5.8pt; }
  .decisions ol { gap: .8mm 6mm; }
  .decisions li { padding-left: 5.6mm; }
  .decisions li::before {
    width: 3.8mm; height: 3.8mm;
    font-size: 4.2pt;
  }
  .d-lead { margin: 0 0 .5mm; font-size: 4.3pt; }
  .decisions p:not(.d-lead), .decisions ul { font-size: 4pt; }
  .decisions ul { padding-left: 3mm; }
  .decisions ul li { margin-bottom: .3mm; }

  .site-footer {
    max-width: none;
    padding: .4mm 0 0;
    margin-top: .3mm;
    font-size: 3.9pt;
  }

  .task, .band-row, .tet-row, .lane-row { break-inside: avoid; }
}
