:root { --panel-shadow: 0 12px 35px rgba(16,22,51,.05); }
[hidden] { display: none !important; }
html { scroll-padding-top: 1rem; }
body { overflow-wrap: break-word; }
header { position: relative; background: var(--night); }
.nav { min-height: 94px; padding-block: 1rem; }
.brand { letter-spacing: 0; white-space: normal; max-width: 295px; line-height: 1.3; }
.brand span { min-width: 0; }
.nav-right { gap: 1.3rem; }
nav { display: flex; gap: 1.15rem; align-items: center; flex-wrap: wrap; }
nav a { font-size: .9rem; line-height: 1.4; padding: .3rem 0; }
nav a[aria-current="page"] { color: var(--gold); text-decoration: underline; text-underline-offset: .45em; }
.languages { flex-shrink: 0; }
.languages button { min-height: 36px; min-width: 36px; font-size: .875rem; }
.hero { min-height: 555px; }
.hero-grid { padding: 65px 0; grid-template-columns: minmax(0,1.3fr) minmax(270px,.7fr); gap: 3rem; }
.hero h1 { font-size: clamp(3rem,7vw,6.1rem); line-height: 1.12; letter-spacing: -.035em; }
html[lang="ms"] .hero h1 { font-size: clamp(2.6rem,5vw,5rem); }
.hero .orbit-stage { width: min(100%,340px); }
.hero-copy { max-width: 650px; }
.hero-actions { margin-top: 1.6rem; }
.hero-actions .button { font-size: 1rem; }
.explore { padding: 3rem 0 4rem; background: var(--white); }
.explore h2 { font-family: var(--sans); font-size: 1.55rem; letter-spacing: 0; }
.entry-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.25rem; margin-top: 1.7rem; }
.entry-card { display: flex; flex-direction: column; padding: 1.8rem; min-height: 260px; border: 1px solid var(--line); border-top: 3px solid var(--gold-deep); border-radius: .4rem .4rem 1.25rem 1.25rem; text-decoration: none; background: #fff; transition: box-shadow .2s,transform .2s; }
.entry-card:nth-child(2) { border-top-color: #319b9b; }
.entry-card:nth-child(3) { border-top-color: var(--coral); }
.entry-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.entry-number { font-size: .875rem; color: var(--ink-soft); letter-spacing: .1em; }
.entry-card h3 { font-size: 1.3rem; margin: 1.2rem 0 .4rem; line-height: 1.4; }
.entry-card p { margin: 0 0 1.4rem; color: var(--ink-soft); }
.text-link { margin-top: auto; font-weight: 750; text-decoration: underline; text-underline-offset: .3em; }
.section-kicker { font-size: .875rem; }
.field-card h3 { overflow-wrap: normal; }
.field-card p, .field-number, .footer-meta { font-size: .875rem; }
.policy-section { padding: 4rem 0; background: var(--paper); }
.policy-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; }
.policy-section h2 { font-size: 2.2rem; }
.policy-section .notice { margin: 0 0 1rem; }
.closing { padding-top: 4rem; }
.footer-grid { align-items: start; }
.footer-grid>div:first-child { max-width: 730px; }
.footer-grid>div:last-child { flex-shrink: 0; }
.footer-meta { line-height: 1.7; }
.page-intro { padding: 4rem 0 3rem; background: var(--white); border-bottom: 1px solid var(--line); }
.page-intro h1 { font-family: var(--sans); font-size: clamp(2rem,4.8vw,3.55rem); line-height: 1.2; letter-spacing: -.03em; max-width: 980px; }
.page-intro .lead { margin-top: 1rem; max-width: 830px; }
.page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }
.muted { color: var(--ink-soft); font-size: .875rem; }
.workspace { padding: 3rem 0 4.5rem; }
.two-column { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(320px,1fr); gap: 2rem; align-items: start; }
.empty-state { border: 1px solid var(--line); border-radius: 1.25rem; background: var(--white); padding: clamp(1.5rem,4vw,3rem); box-shadow: var(--panel-shadow); }
.empty-state h2 { font-family: var(--sans); font-size: clamp(1.55rem,3vw,2rem); line-height: 1.35; }
.empty-state p { color: var(--ink-soft); max-width: 540px; margin: 1rem 0 1.7rem; }
.button.dark-outline { color: var(--ink); border-color: #9ca4b4; background: transparent; }
.button.dark-outline:hover { background: #e9edf2; border-color: var(--ink); }
.button { font-size: 1rem; font-family: var(--sans); cursor: pointer; line-height: 1.5; text-align: center; }
.notice { border-left: 3px solid #36928f; padding: 1rem 1.25rem; margin: 1.5rem 0; background: #e9f3f1; color: #273f43; line-height: 1.75; }
.notice p { margin: 0; }
.notice strong+p { margin-top: .5rem; }
.side-panel { padding: 1.8rem; background: var(--night); color: var(--white); border-radius: 1.25rem; }
.side-panel h2 { font-family: var(--sans); font-size: 1.35rem; }
.side-panel h3 { font-size: 1.05rem; margin: 2rem 0 .7rem; color: var(--gold); }
.side-panel p { margin: 0; color: #d0d6e7; }
.steps { margin: 1.5rem 0 0; padding-left: 1.5rem; }
.steps li { margin-bottom: 1.15rem; padding-left: .4rem; }
.steps li::marker { color: var(--gold); font-weight: 700; }
.connection-panel { margin-top: 2rem; padding: 2rem; border: 1px solid var(--line); border-radius: 1rem; }
.connection-panel h2 { font-family: var(--sans); font-size: 1.35rem; }
.connection-panel p { margin: 1rem 0 0; color: var(--ink-soft); max-width: 850px; }
.calendar-panel { background: #fff; border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.6rem; }
.calendar-panel h2 { font-family: var(--sans); font-size: 1.35rem; }
.calendar-controls { display: flex; gap: .5rem; justify-content: space-between; align-items: center; margin: 1.6rem 0 .7rem; }
.calendar-controls h3 { font-size: 1rem; margin: 0; text-align: center; }
.calendar-controls button { background: #eef1f5; color: var(--ink); font: inherit; font-size: 1.6rem; border: 0; border-radius: .5rem; width: 40px; min-height: 44px; cursor: pointer; }
.calendar-table { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; text-align: center; }
.calendar-table th { font-size: .875rem; color: var(--ink-soft); padding-bottom: .5rem; font-weight: 500; }
.calendar-table td { height: 42px; padding: .2rem 0; font-size: .95rem; }
.calendar-table [aria-current="date"] { background: var(--night); color: white; border-radius: .5rem; font-weight: 750; }
.calendar-empty { margin: 1.5rem 0 .7rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.metadata { font-size: .875rem; color: var(--ink-soft); }
.text-button { font: inherit; color: var(--ink); background: none; border: 0; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; padding: .6rem 0; }
.resource-list { margin-top: 2rem; border-top: 1px solid var(--line); }
.resource-row { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; gap: 1.6rem; align-items: start; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.resource-number { font-family: var(--serif); font-size: 2rem; color: #8a6a1e; line-height: 1.4; }
.resource-row h2 { font-family: var(--sans); font-size: 1.35rem; letter-spacing: 0; line-height: 1.4; }
.resource-row p:not(.section-kicker) { color: var(--ink-soft); margin: .75rem 0; }
.resource-row .section-kicker { margin-bottom: .4rem; color: #79601d; }
.resource-action { display: flex; flex-direction: column; gap: .6rem; align-items: center; padding-top: .7rem; }
.resource-feedback { margin-top: 2rem; color: var(--ink-soft); }
.resource-feedback a { overflow-wrap: anywhere; }
.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; }
body[data-system] .languages { display: none; }
.form-intro { background: white; padding: 2.5rem 0 1.2rem; }
.form-shell { max-width: 850px; }
.back-link { display: inline-block; margin-bottom: 1.5rem; text-underline-offset: .3em; }
.form-intro h1 { font-family: var(--sans); font-size: clamp(2rem,4vw,3rem); line-height: 1.2; letter-spacing: -.025em; }
.form-intro .lead { margin-top: 1rem; }
.form-section { padding: 2rem 0 4rem; }
fieldset { margin: 1rem 0 2rem; padding: 1.7rem; border: 1px solid #bfc5ce; border-radius: 1rem; background: #fff; min-width: 0; }
legend { padding: 0 .6rem; font-size: 1.15rem; font-weight: 750; color: var(--ink); }
.form-field { margin-bottom: 1.15rem; }
.form-field:last-child { margin-bottom: 0; }
.form-field label, .draft-panel>label { display: block; font-weight: 650; margin-bottom: .4rem; }
.optional { color: var(--ink-soft); font-weight: 400; font-size: .875rem; }
input,select,textarea { font: inherit; color: var(--ink); max-width: 100%; }
.form-field input,.form-field select,.form-field textarea,.draft-panel textarea { width: 100%; min-width: 0; min-height: 46px; border: 1px solid #8c96a8; border-radius: .5rem; background: #fff; padding: .65rem .75rem; line-height: 1.5; }
textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-grid .form-field { margin-bottom: 1.15rem; min-width: 0; }
.field-help { font-size: .875rem; color: var(--ink-soft); line-height: 1.65; margin: .4rem 0 0; }
fieldset>p.field-help { margin-bottom: 1rem; }
.checkbox-label { display: flex; align-items: start; gap: .75rem; margin: 1rem 0; cursor: pointer; }
.checkbox-label input { width: 20px; height: 20px; margin: .2rem 0 0; flex-shrink: 0; accent-color: var(--night); }
.draft-panel { padding: 2rem; border: 2px solid #36928f; border-radius: 1rem; background: white; margin-top: 2rem; }
.draft-panel h2 { font-family: var(--sans); font-size: 1.5rem; line-height: 1.4; }
.draft-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0; }
#form-status,#draft-status { color: #17625b; }
@media(max-width:1100px) {
  .nav { align-items: flex-start; }
  .brand { max-width: 260px; }
  .nav-right { flex-direction: column-reverse; align-items: flex-end; gap: .75rem; }
  .resource-row { grid-template-columns: 40px minmax(0,1fr); }
  .resource-action { grid-column: 2; flex-direction: row; justify-content: start; padding: 0; }
}
@media(max-width:820px) {
  .nav { display: grid; grid-template-columns: 1fr auto; row-gap: .7rem; padding-block: .8rem; }
  .brand { max-width: none; padding-right: .7rem; font-size: 1rem; }
  .nav-right { display: contents; }
  .languages { grid-column: 2; grid-row: 1; align-self: start; }
  nav { display: flex; grid-column: 1 / -1; gap: .5rem 1.1rem; border-top: 1px solid #353d56; padding-top: .65rem; width: 100%; }
  nav a { font-size: .875rem; }
  .hero-grid { grid-template-columns: minmax(0,1fr) minmax(160px,.55fr); gap: 1rem; padding: 3rem 0; }
  .hero { min-height: 0; }
  .hero .orbit-stage { width: 100%; }
  .hero h1 { font-size: clamp(2.4rem,7vw,4.5rem); }
  .promise { margin-top: 1.3rem; font-size: 1.5rem; }
  .hero-en { font-size: 1rem; }
  .entry-grid { grid-template-columns: 1fr; gap: .9rem; }
  .entry-card { min-height: 0; padding: 1.3rem; display: grid; grid-template-columns: 2rem 1fr; column-gap: .7rem; }
  .entry-card h3 { margin: 0 0 .4rem; }
  .entry-card p,.entry-card .text-link { grid-column: 2; }
  .entry-card p { margin-bottom: .9rem; }
  .two-column,.policy-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .calendar-panel { max-width: 500px; width: 100%; }
  .page-intro { padding: 2.5rem 0; }
  .workspace { padding: 2rem 0 3rem; }
  .footer-grid>div:last-child { flex-shrink: 1; }
  .footer-link { overflow-wrap: anywhere; }
}
@media(max-width:500px) {
  .brand span { font-size: .95rem; }
  .brand-mark { width: 30px; height: 30px; }
  .brand { gap: .55rem; }
  .hero-grid { grid-template-columns: 1fr; padding: 2.5rem 0; }
  .hero .orbit-stage { width: 190px; margin: 1rem auto 0; }
  .hero h1,html[lang="ms"] .hero h1 { font-size: clamp(2.65rem,12vw,3.8rem); }
  .hero-en { margin-top: .7rem; }
  .orbit-note { font-size: .875rem; }
  .explore { padding: 2rem 0 2.5rem; }
  .resource-row { grid-template-columns: 28px minmax(0,1fr); gap: .9rem; }
  .resource-number { font-size: 1.4rem; }
  .resource-action { flex-wrap: wrap; }
  .resource-action .button { padding: .6rem .9rem; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  fieldset { padding: 1.1rem; }
  .draft-panel { padding: 1.2rem; }
  .draft-actions { flex-direction: column; align-items: stretch; }
  .side-panel,.calendar-panel { padding: 1.3rem; }
}
