/* Cuti sekolah 2027 pages (/cuti-sekolah-2027/, /cuti-umum-2027/, /rancang-cuti-2027/). Phone first.
   Nothing animates: only what the user does changes. No solid offset shadows: flat white cards, thin borders, one soft float shadow.
   Contrast (WCAG): navy on paper 12:1, muted on paper 6.8:1, white on cobalt 8.2:1, navy on orange 6:1, navy on #CFDAF6 9:1. */
:root {
  --paper: #FAF6EF; --navy: #172A6E; --cobalt: #1F44B8; --cobalt-d: #17359A; --muted: #4A5578;
  --line: #E8E1D3; --line-2: #D8CFBD; --line-3: #F1EBDF; --orange: #F46A36; --on-orange: #101A4A;
  --tint: #E6EBFA; --tint-2: #D3DBF3; --school: #CFDAF6; --weekend: #F3EFE6;
  --display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --text: Lexend, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body.cs-page { margin: 0; background: var(--paper); color: var(--navy); font-family: var(--text); font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
.cs-main :where(h1, h2, h3, p, ul) { margin: 0; padding: 0; }
.cs-main a { color: var(--cobalt); text-underline-offset: 3px; }
.cs-main a:hover { color: var(--cobalt-d); }
.cs-main :focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 8px; }

.cs-main { max-width: 1120px; margin: 0 auto; padding: 18px 16px 56px; display: flex; flex-direction: column; gap: 40px; }
.cs-intro { display: flex; flex-direction: column; gap: 12px; }
.cs-crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.cs-main .cs-crumbs a { color: var(--muted); }
.cs-intro h1 { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; max-width: 820px; }
.cs-lead { font-size: 17px; line-height: 1.55; max-width: 760px; }
.cs-meta { font-size: 14px; color: var(--muted); }
.cs-sec { display: flex; flex-direction: column; gap: 16px; }
.cs-sec h2 { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; }
.cs-sec > p, .cs-note { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 760px; }
.cs-fine { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 820px; }
.cs-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.cs-go { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; font-weight: 600; text-decoration: none; }
.cs-main a.cs-go:hover { text-decoration: underline; }

/* selects */
.cs-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.cs-field { display: flex; flex-direction: column; gap: 8px; }
.cs-field label { font-size: 16px; font-weight: 700; }
.cs-field select { width: 100%; height: 56px; padding: 0 14px; font-family: inherit; font-size: 18px; font-weight: 600; color: var(--navy); background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 14px rgba(23, 42, 110, 0.06); }
.cs-sub { font-size: 15px; color: var(--muted); }
.cs-selwrap { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }

/* legend */
.cs-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.cs-legend span { display: flex; align-items: center; gap: 8px; }
.cs-k { flex: none; width: 20px; height: 20px; border-radius: 6px; display: block; }

/* day cells (cards and calendars share the colours) */
.cs-d { display: flex; align-items: center; justify-content: center; border-radius: 8px; font-family: inherit; font-size: 16px; padding: 0; margin: 0; border: 0; color: var(--navy); background: transparent; }
.cs-a { background: var(--cobalt); color: #FFFFFF; }
.cs-u { background: var(--orange); color: var(--on-orange); }
.cs-s { background: var(--tint); color: var(--navy); }
.cs-k.cs-s { border: 1px solid var(--tint-2); }
.cs-b { background: var(--school); color: var(--navy); }
.cs-w { background: var(--weekend); color: var(--muted); }
.cs-e { background: transparent; }

/* cards */
.cs-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.cs-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 8px 24px rgba(23, 42, 110, 0.08); }
.cs-ct { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.15; letter-spacing: -0.01em; }
.cs-cs { font-size: 16px; line-height: 1.4; font-weight: 500; color: var(--muted); margin-top: 4px; }
.cs-cf { font-size: 18px; line-height: 1.4; font-weight: 700; }
.cs-cl { font-size: 14px; line-height: 1.45; color: var(--muted); }
.cs-mini { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.cs-dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.cs-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cs-grid .cs-d { height: 36px; font-weight: 700; }

/* year calendar */
.cs-months { display: grid; grid-template-columns: 1fr; gap: 40px; }
.cs-month { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cs-month h3 { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.25; }
.cs-dow3 { gap: 3px; }
.cs-grid3 { gap: 3px; }
.cs-grid3 .cs-d { height: 44px; min-height: 44px; font-weight: 500; width: 100%; }
.cs-grid3 .cs-b { font-weight: 600; }
.cs-grid3 .cs-u { font-weight: 800; }
.cs-grid3 button.cs-d { cursor: pointer; }
.cs-grid3 button.cs-d[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--navy), inset 0 0 0 4px #FFFFFF; }
.cs-grid3 button.cs-d:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 1px; }
.cs-minfo { font-size: 15px; line-height: 1.5; padding-top: 4px; color: var(--muted); }
.cs-minfo.cs-on { color: var(--navy); font-weight: 700; }

/* lists and tables */
.cs-rows { list-style: none; display: flex; flex-direction: column; max-width: 720px; }
.cs-rv small { white-space: nowrap; }
.cs-rows li { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); font-size: 17px; padding: 8px 0; }
.cs-rn { font-weight: 700; }
.cs-rv { text-align: right; }
.cs-rows li:target { background: var(--tint); }
.cs-tw { background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; }
.cs-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cs-table th, .cs-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--line-3); }
.cs-table thead th { border-top: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.cs-table tbody th { font-weight: 700; }
.cs-table small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.cs-table tr:target { background: var(--tint); }
.cs-two { display: grid; grid-template-columns: 1fr; gap: 16px; }
.cs-box { background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.cs-box h3 { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.25; }
.cs-box p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.cs-box:target { border-color: var(--cobalt); }

/* public holidays */
.cs-hl { list-style: none; display: flex; flex-direction: column; max-width: 860px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 4px 16px; }
.cs-hl li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-3); }
.cs-hl li:first-child { border-top: 0; }
.cs-hd { font-family: var(--display); font-weight: 800; font-size: 17px; line-height: 1.25; }
.cs-hd small { display: block; font-family: var(--text); font-weight: 400; font-size: 13px; color: var(--muted); }
.cs-hn { font-size: 16px; font-weight: 600; line-height: 1.4; }
.cs-hs { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 2px; }
.cs-chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--tint); color: var(--cobalt); margin-left: 6px; vertical-align: 2px; white-space: nowrap; }
.cs-states { display: flex; flex-direction: column; gap: 10px; }
.cs-states details { background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; }
.cs-states summary { min-height: 56px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-family: var(--display); font-weight: 800; font-size: 19px; list-style: none; }
.cs-states summary::-webkit-details-marker { display: none; }
.cs-states summary span { font-family: var(--text); font-weight: 400; font-size: 14px; color: var(--muted); }
.cs-states summary::after { content: '+'; font-size: 22px; font-weight: 600; margin-left: 8px; }
.cs-states details[open] summary::after { content: '–'; }
.cs-states .cs-hl { border: 0; border-top: 1px solid var(--line-3); border-radius: 0 0 16px 16px; }
.cs-states .cs-dlink { padding: 4px 18px 16px; }

/* state pills */
.cs-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.cs-pills a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #FFFFFF; color: var(--navy); font-size: 15px; text-decoration: none; }
.cs-main .cs-pills a { color: var(--navy); }
.cs-pills a:hover { border-color: var(--cobalt); }
.cs-pills a[aria-current="page"] { background: var(--cobalt); border-color: var(--cobalt); color: #FFFFFF; font-weight: 600; }
.cs-main .cs-pills a[aria-current="page"] { color: #FFFFFF; }

.cs-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 12px; background: var(--orange); color: var(--on-orange); font-weight: 600; font-size: 16px; text-decoration: none; align-self: flex-start; }
.cs-main a.cs-btn { color: var(--on-orange); }
.cs-main a.cs-btn:hover { background: #FF7D4F; color: var(--on-orange); }

/* exams */
.cs-exams { display: grid; grid-template-columns: 1fr; gap: 16px; }
.cs-exams div { display: flex; flex-direction: column; gap: 2px; }
.cs-exams b { font-size: 17px; }
.cs-exams span { font-size: 16px; color: var(--muted); }

/* faq */
.cs-faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.cs-faq h2 { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.2; }
.cs-q { background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.cs-q h3 { font-size: 17px; font-weight: 600; line-height: 1.4; }
.cs-q p { font-size: 15px; line-height: 1.55; color: var(--muted); }

@media (min-width: 768px) {
  .cs-main { padding: 28px 24px 64px; gap: 48px; }
  .cs-intro h1 { font-size: 44px; }
  .cs-lead { font-size: 19px; }
  .cs-sec h2, .cs-faq h2 { font-size: 30px; }
  .cs-cards { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
  .cs-ct { font-size: 30px; }
  .cs-months { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px 40px; }
  .cs-two { grid-template-columns: 1fr 1fr; gap: 20px; }
  .cs-exams { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px 32px; }
  .cs-hl { padding: 6px 24px; }
  .cs-hl li { grid-template-columns: 120px minmax(0, 1fr); gap: 20px; }
  .cs-table th, .cs-table td { padding: 14px 18px; font-size: 16px; }
}
