/* ==========================================================================
   KPR Office of Admission — Portal design system
   One committed light theme. Brand: KPR blue + green; data-viz palette is
   the validated categorical set (see charts.js).
   ========================================================================== */

:root {
  /* Brand */
  --kpr-blue: #1e4a9c;
  --kpr-blue-deep: #12295c;
  --kpr-blue-ink: #163a7c;
  --kpr-green: #149b51;
  --kpr-green-deep: #0b6b37;

  /* Surfaces & ink (chart chrome tokens follow the dataviz reference) */
  --page: #f4f6fa;
  --surface: #ffffff;
  --ink: #101623;
  --ink-2: #4a5265;
  --muted: #8a91a3;
  --line: #e3e7ef;
  --line-soft: #edf0f6;

  /* Accents */
  --focus: rgba(30, 74, 156, 0.28);
  --danger: #d03b3b;
  --danger-soft: #fdecec;
  --ok: #0ca30c;
  --ok-soft: #e7f6e7;
  --warn-soft: #fff6e0;
  --blue-soft: #e8effc;
  --green-soft: #e3f4ea;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 22, 35, .05), 0 8px 24px -12px rgba(16, 22, 35, .12);
  --shadow-lg: 0 24px 60px -24px rgba(18, 41, 92, .35);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
}
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
p { margin: 0 0 .6em; }
a { color: var(--kpr-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mt-0 { margin-top: 0; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: 600 13.5px/1.2 var(--font);
  color: #fff;
  background: var(--kpr-blue);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, box-shadow .15s ease, transform .05s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--kpr-blue-ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus); }
.btn.green { background: var(--kpr-green); }
.btn.green:hover { background: var(--kpr-green-deep); }
.btn.ghost { background: var(--surface); color: var(--kpr-blue-ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--blue-soft); }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #b02e2e; }
.btn.sm { padding: 6px 11px; font-size: 12.5px; }
.btn.lg { padding: 12px 22px; font-size: 15px; border-radius: 12px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); letter-spacing: .01em; }
.field .req { color: var(--danger); }
.field .hint { font-size: 11.5px; color: var(--muted); }

.input, select.input, textarea.input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: 500 14px/1.4 var(--font);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.input::placeholder { color: #aab0bf; }
.input:focus { outline: none; border-color: var(--kpr-blue); box-shadow: 0 0 0 3px var(--focus); }
.input.err { border-color: var(--danger); }
textarea.input { resize: vertical; min-height: 72px; }
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%234a5265' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.field-error { font-size: 12px; color: var(--danger); font-weight: 600; }

/* Yes/No and option pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pill span {
  display: inline-flex;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
  transition: all .12s ease;
}
.pill input:checked + span { background: var(--kpr-blue); border-color: var(--kpr-blue); color: #fff; }
.pill input:focus-visible + span { box-shadow: 0 0 0 3px var(--focus); }
.pill.green input:checked + span { background: var(--kpr-green); border-color: var(--kpr-green); }

/* Ranked choice chips */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.choice-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  user-select: none;
  transition: all .12s ease;
}
.choice-chip:hover { border-color: var(--kpr-blue); }
.choice-chip .rank {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-size: 11.5px; font-weight: 800;
  background: var(--line-soft); color: var(--muted);
}
.choice-chip .cc-name { font-size: 12.5px; font-weight: 600; color: var(--ink-2); line-height: 1.25; }
.choice-chip .cc-deg { font-size: 10.5px; color: var(--muted); }
.choice-chip.on { border-color: var(--kpr-blue); background: var(--blue-soft); }
.choice-chip.on .rank { background: var(--kpr-blue); color: #fff; }

/* Segmented control (Booked / Confirmed etc.) */
.seg { display: inline-flex; padding: 3px; background: var(--line-soft); border-radius: 10px; gap: 2px; }
.seg a, .seg button {
  padding: 6px 14px;
  border: 0; border-radius: 8px;
  font: 600 12.5px var(--font);
  color: var(--ink-2);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}
.seg a:hover { text-decoration: none; color: var(--ink); }
.seg .on { background: var(--surface); color: var(--kpr-blue-ink); box-shadow: 0 1px 3px rgba(16,22,35,.12); }

/* --------------------------------------------------------------------------
   Cards, badges, alerts
   -------------------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.card-h h3 { font-size: 15px; font-weight: 800; }
.card-h .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.card-b { padding: 20px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .02em;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.badge-neutral { background: var(--line-soft); color: var(--ink-2); }
.badge-blue { background: var(--blue-soft); color: var(--kpr-blue-ink); }
.badge-green { background: var(--green-soft); color: var(--kpr-green-deep); }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.badge-gray { background: #ececee; color: #6b6f7b; }
.badge-amber { background: var(--warn-soft); color: #93650a; }

.alert {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600;
  margin-bottom: 16px;
}
.alert.ok { background: var(--ok-soft); color: #0b6b0b; border: 1px solid #bfe5bf; }
.alert.err { background: var(--danger-soft); color: #9c2727; border: 1px solid #f2c6c6; }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.tbl-wrap { overflow-x: auto; border-radius: 0 0 var(--radius) var(--radius); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  text-align: left;
  font-size: 11.5px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #fafbfd;
  white-space: nowrap;
}
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tbody tr:hover { background: #f7f9fd; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .r, .tbl td.r, .tbl th.r { text-align: right; }
.tbl .c, .tbl td.c, .tbl th.c { text-align: center; }

/* Dense numeric matrix (workbook-style reports) */
table.matrix { border-collapse: collapse; font-size: 12.5px; width: 100%; }
.matrix th, .matrix td { border: 1px solid var(--line); padding: 6px 9px; text-align: center; font-variant-numeric: tabular-nums; }
.matrix thead th { background: var(--blue-soft); color: var(--kpr-blue-ink); font-weight: 800; font-size: 11.5px; }
.matrix tbody th { background: #fafbfd; font-weight: 700; text-align: left; white-space: nowrap; }
.matrix .tot { background: var(--green-soft); font-weight: 800; }
.matrix td.zero { color: #c3c7d2; }
.matrix tr:hover td { background: #f4f8ff; }
.matrix .sec td, .matrix .sec th { background: #eef1f7; font-weight: 800; text-align: left; letter-spacing: .04em; font-size: 11px; text-transform: uppercase; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Public application shell
   -------------------------------------------------------------------------- */
.pub-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, 470px) 1fr; }
.pub-hero {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 44px 42px;
  color: #fff;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(20, 155, 81, .38) 0%, rgba(20, 155, 81, 0) 55%),
    radial-gradient(140% 110% at 100% 100%, rgba(9, 20, 45, .55) 0%, rgba(9, 20, 45, 0) 60%),
    linear-gradient(155deg, #1e4a9c 0%, #16376f 55%, #0f2450 100%);
  overflow: hidden;
}
.pub-hero.with-photo { background-size: cover; background-position: center; }
.pub-hero.with-photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(18, 41, 92, .88), rgba(10, 24, 56, .72));
}
.pub-hero > * { position: relative; }
.pub-hero .brand { display: flex; align-items: center; gap: 14px; }
.pub-hero .brand img { width: 52px; height: 52px; }
.pub-hero .brand .b-name { font-size: 17px; font-weight: 800; line-height: 1.25; }
.pub-hero .brand .b-sub { font-size: 11.5px; opacity: .82; margin-top: 2px; }
.pub-hero h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.01em; margin: 18px 0 10px; }
.pub-hero .lead { font-size: 14.5px; opacity: .88; max-width: 40ch; }
.pub-hero .points { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.pub-hero .point { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; }
.pub-hero .point b { display: block; font-size: 14px; }
.pub-hero .point .ico {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .14);
  font-size: 16px;
}
.pub-hero .foot { font-size: 12px; opacity: .75; line-height: 1.6; }
.pub-main { padding: 40px clamp(20px, 4vw, 64px) 64px; }
.pub-main .pm-head { max-width: 880px; margin: 0 auto 22px; }
.pub-main .pm-head .yr { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--kpr-green-deep); text-transform: uppercase; }
.pub-main .pm-head h2 { font-size: 24px; font-weight: 800; margin-top: 4px; }
.pub-card { max-width: 880px; margin: 0 auto; }

.fsec { padding: 22px 24px; border-bottom: 1px solid var(--line-soft); }
.fsec:last-child { border-bottom: 0; }
.fsec-t { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.fsec-t .n {
  width: 26px; height: 26px; flex: none;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--blue-soft); color: var(--kpr-blue-ink);
  font-size: 12.5px; font-weight: 800;
}
.fsec-t h3 { font-size: 15px; font-weight: 800; }
.fsec-t .sub { font-size: 12px; color: var(--muted); }
.fgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px 16px; }
.fgrid .c12 { grid-column: span 12; }
.fgrid .c8 { grid-column: span 8; }
.fgrid .c6 { grid-column: span 6; }
.fgrid .c4 { grid-column: span 4; }
.fgrid .c3 { grid-column: span 3; }

.cutoff-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(120deg, var(--blue-soft), var(--green-soft));
  border: 1px solid #d3e2f4;
  min-width: 0; overflow: hidden;
}
.cutoff-tile .t { font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.cutoff-tile .v { font-size: 25px; line-height: 1.15; font-weight: 800; color: var(--kpr-blue-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cutoff-tile .v small { font-size: 13px; color: var(--muted); font-weight: 700; }

/* --------------------------------------------------------------------------
   Admin shell
   -------------------------------------------------------------------------- */
.shell { display: grid; grid-template-columns: 258px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #17356f 0%, #122a5a 60%, #0e2148 100%);
  color: #e8edf8;
  overflow-y: auto;
}
.side-brand { display: flex; align-items: center; gap: 11px; padding: 20px 18px 16px; }
.side-brand img { width: 38px; height: 38px; }
.side-brand .b-name { font-size: 13.5px; font-weight: 800; line-height: 1.2; color: #fff; }
.side-brand .b-sub { font-size: 10.5px; opacity: .7; }
.side-sec { padding: 14px 14px 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #93a7d3; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  margin: 1px 10px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13.5px; font-weight: 600;
  color: #c8d4ee;
  text-decoration: none;
  transition: background .12s ease, color .12s ease;
}
.nav-item:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.nav-item.on { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 3px 0 0 var(--kpr-green); }
.nav-item .ni { width: 20px; text-align: center; flex: none; opacity: .9; }
.side-foot { margin-top: auto; padding: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.side-foot .u { display: flex; align-items: center; gap: 10px; }
.side-foot .av {
  width: 34px; height: 34px; flex: none;
  border-radius: 999px;
  display: grid; place-items: center;
  background: var(--kpr-green); color: #fff;
  font-weight: 800; font-size: 13px;
}
.side-foot .un { font-size: 13px; font-weight: 700; color: #fff; }
.side-foot .ur { font-size: 11px; color: #9db0d8; }
.side-foot a.lo { margin-left: auto; color: #9db0d8; font-size: 12px; font-weight: 700; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 14px clamp(16px, 3vw, 32px);
  background: rgba(244, 246, 250, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.topbar .crumb { font-size: 12px; color: var(--muted); font-weight: 600; }
.topbar .spacer { flex: 1; }
.chip-year {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 12px; font-weight: 700; color: var(--ink-2);
}
.chip-year::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--kpr-green); }
.content { padding: clamp(16px, 3vw, 32px); display: flex; flex-direction: column; gap: 20px; }

.menu-btn { display: none; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi { padding: 18px 20px; }
.kpi .k-l { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }
.kpi .k-v { font-size: 30px; font-weight: 800; margin-top: 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .k-s { font-size: 12px; color: var(--ink-2); margin-top: 4px; font-weight: 600; }
.kpi .k-s .up { color: #006300; }
.kpi.tone-blue { border-top: 3px solid var(--kpr-blue); }
.kpi.tone-green { border-top: 3px solid var(--kpr-green); }
.kpi.tone-slate { border-top: 3px solid #6f7890; }
.kpi.tone-gold { border-top: 3px solid #c98500; }

/* Dashboard grid */
.dash-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.dash-grid .g8 { grid-column: span 8; }
.dash-grid .g6 { grid-column: span 6; }
.dash-grid .g4 { grid-column: span 4; }
.dash-grid .g12 { grid-column: span 12; }

/* Meter (fill %) */
.meter { display: flex; align-items: center; gap: 10px; min-width: 130px; }
.meter .track { flex: 1; height: 7px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.meter .fill { height: 100%; border-radius: 99px; background: var(--kpr-blue); }
.meter .fill.hi { background: var(--kpr-green); }
.meter .pv { font-size: 12px; font-weight: 800; color: var(--ink-2); min-width: 42px; text-align: right; }

/* Filter bar */
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.filterbar .field { min-width: 140px; }
.filterbar .grow { flex: 1 1 200px; }

/* Charts */
.viz { position: relative; }
.viz svg { display: block; width: 100%; height: auto; }
.viz-tip {
  position: fixed; z-index: 80;
  pointer-events: none;
  background: #101623; color: #fff;
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 12px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity .1s ease;
  max-width: 260px;
}
.viz-tip .tl { color: #aab3c7; font-size: 11px; font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; }
.legend .li { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* Submitted-application summary (success page) */
.ack-sec {
  font-size: 11.5px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--kpr-blue-ink);
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 6px;
  margin: 18px 0 12px;
}
.ack-sec:first-child { margin-top: 0; }
.ack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 22px; }
.ack-grid > div { min-width: 0; }
.ack-grid .l { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ack-grid .v { display: block; font-size: 13.5px; font-weight: 700; margin-top: 2px; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .ack-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Login */
.login-wrap {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 24px;
  background:
    radial-gradient(90% 70% at 10% 0%, rgba(20, 155, 81, .25) 0%, transparent 55%),
    radial-gradient(120% 90% at 100% 100%, rgba(14, 33, 72, .6) 0%, transparent 60%),
    linear-gradient(150deg, #1e4a9c, #122a5a 70%, #0e2148);
  background-size: cover; background-position: center;
}
.login-wrap.with-photo::before { content: ""; position: fixed; inset: 0; background: linear-gradient(160deg, rgba(18, 41, 92, .88), rgba(10, 24, 56, .78)); }
.login-card { position: relative; width: 100%; max-width: 400px; padding: 34px 32px; border-radius: 18px; }
.login-card .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.login-card .brand img { width: 44px; height: 44px; }
.login-card .brand .b-name { font-weight: 800; font-size: 14.5px; line-height: 1.25; }
.login-card .brand .b-sub { font-size: 11px; color: var(--muted); }
.login-card h1 { font-size: 20px; font-weight: 800; margin-bottom: 2px; }
.login-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }

/* Modal (details/summary based) */
.modal-toggle summary { list-style: none; cursor: pointer; }
.modal-toggle summary::-webkit-details-marker { display: none; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(16, 22, 35, .5);
  display: grid; place-items: center;
  padding: 20px;
}
.modal-card { width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; border-radius: 16px; }

/* Print */
.print-only { display: none; }
@media print {
  body { background: #fff; font-size: 12px; }
  .no-print, .side, .topbar, .btn, .filterbar, .seg { display: none !important; }
  .shell { display: block; }
  .content { padding: 0; }
  .card { border: 0; box-shadow: none; }
  .print-only { display: block; }
  .matrix th, .matrix td { padding: 4px 6px; }
}

/* Responsive */
@media (max-width: 1100px) {
  .dash-grid .g8, .dash-grid .g6, .dash-grid .g4 { grid-column: span 12; }
}
@media (max-width: 980px) {
  .pub-shell { grid-template-columns: 1fr; }
  .pub-hero { position: relative; height: auto; padding: 28px 24px; }
  .pub-hero .points, .pub-hero .foot { display: none; }
  .shell { grid-template-columns: 1fr; }
  .side {
    position: fixed; z-index: 100; left: 0; top: 0; bottom: 0;
    width: 264px; height: 100dvh;
    transform: translateX(-100%);
    transition: transform .2s ease;
  }
  body.nav-open .side { transform: none; box-shadow: var(--shadow-lg); }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid var(--line); border-radius: 9px;
    background: var(--surface); cursor: pointer; font-size: 17px; color: var(--ink-2);
  }
}
@media (max-width: 720px) {
  .fgrid .c8, .fgrid .c6, .fgrid .c4, .fgrid .c3 { grid-column: span 12; }
  .fgrid .c6.keep, .fgrid .c4.keep { grid-column: span 6; }
}
