/* Colour theme follows kannuruniversity.ac.in:
   navy banner #1b3e6f, teal accent #00a193 / #108d6f, charcoal #232323 / #1b2329, orange #f58220, Ubuntu type. */
:root {
  --navy: #1b3e6f;
  --navy-deep: #142f55;
  --teal: #00a193;
  --teal-dark: #108d6f;
  --teal-soft: #e3f4f1;
  --orange: #f58220;
  --orange-dark: #d96a0b;
  --charcoal: #232323;
  --footer: #1b2329;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #222222;
  --muted: #5c6670;
  --line: #e1e5ea;
  --ok: #157347; --ok-bg: #e2f5ea;
  --info: #1b5e9e; --info-bg: #e6f0fa;
  --warn: #8a5300; --warn-bg: #fff3dd;
  --bad: #b02a2a; --bad-bg: #fdeaea;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 32, 56, .06), 0 4px 16px rgba(16, 32, 56, .06);
  --shadow-lg: 0 10px 30px rgba(16, 32, 56, .14);
  font-family: "Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.6; overflow-x: clip; }
a { color: var(--teal-dark); }
a:hover { color: var(--navy); }
h1 { font-size: 1.9rem; line-height: 1.2; margin: .2em 0 .5em; color: var(--navy); font-weight: 700; }
h2 { font-size: 1.2rem; margin: 0 0 .7em; color: var(--navy); font-weight: 700; }
h3 { font-size: 1rem; margin: 1.4em 0 .5em; color: var(--navy); font-weight: 500; }
small, .muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.bar { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ------------------------------------------------------------------ header */
.topstrip { background: var(--charcoal); color: #d6d6d6; font-size: .8rem; }
.topstrip .bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 6px; padding-bottom: 6px; }
header.site { background: linear-gradient(90deg, var(--navy-deep), var(--navy) 60%, #23508c); color: #fff; border-bottom: 4px solid var(--teal); }
header.site .bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; gap: 14px; align-items: center; color: inherit; text-decoration: none; }
.brand:hover { color: inherit; }
.emblem { width: 54px; height: 54px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.15rem; letter-spacing: .04em;
  background: #fff; color: var(--navy); box-shadow: 0 0 0 3px var(--orange), 0 0 0 6px rgba(255,255,255,.25); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.45rem; font-weight: 700; letter-spacing: .01em; }
.brand-text small { color: #cfe0f5; font-size: .9rem; }
.header-right { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.who { font-size: .82rem; color: #e6eef8; background: rgba(255,255,255,.12); border-radius: 999px; padding: 3px 12px; }

.mainnav { background: #fff; box-shadow: 0 2px 8px rgba(16,32,56,.08); position: sticky; top: 0; z-index: 20; }
.mainnav .bar { display: flex; overflow-x: auto; scrollbar-width: none; }
.mainnav a { padding: 14px 16px; color: var(--charcoal); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.mainnav a:hover { color: var(--teal-dark); background: var(--teal-soft); }
.mainnav a.active { color: var(--teal-dark); border-bottom-color: var(--teal); }

main { max-width: 980px; margin: 0 auto; padding: 28px 16px 64px; }
main.wide { max-width: 1200px; }

/* ------------------------------------------------------------------ footer */
footer.site { background: var(--footer); color: #c6ccd2; border-top: 5px solid var(--teal); font-size: .92rem; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-top: 36px; padding-bottom: 28px; }
footer.site h3 { color: #fff; margin: 0 0 10px; font-size: 1.02rem; }
footer.site h3::after { content: ""; display: block; width: 36px; height: 3px; background: var(--teal); margin-top: 8px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin: 6px 0; }
footer.site li::before { content: "›"; color: var(--teal); margin-right: 8px; font-weight: 700; }
footer.site a { color: #e8ecef; text-decoration: none; }
footer.site a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid #3a444c; font-size: .82rem; color: #8f99a3; }
.footer-bottom .bar { padding-top: 14px; padding-bottom: 14px; }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--teal-dark); color: #fff; border: 2px solid var(--teal-dark); border-radius: 8px;
  padding: 10px 20px; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 4px 12px rgba(0,161,147,.3); }
.btn:active { transform: translateY(1px); }
.btn.accent { background: var(--orange); border-color: var(--orange); }
.btn.accent:hover { background: var(--orange-dark); border-color: var(--orange-dark); box-shadow: 0 4px 12px rgba(245,130,32,.35); }
.btn.ghost { background: transparent; color: var(--teal-dark); }
.btn.ghost:hover { background: var(--teal-soft); color: var(--teal-dark); box-shadow: none; }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn.ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; box-shadow: none; }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: #8f1f1f; border-color: #8f1f1f; box-shadow: none; }
.btn.big { padding: 13px 26px; font-size: 1.05rem; }
.btn.small { padding: 6px 14px; font-size: .88rem; }
.btn.tiny { padding: 2px 8px; font-size: .76rem; border-width: 1px; border-radius: 6px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
form.inline { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0; }
.actions.sticky { position: sticky; bottom: 0; background: rgba(244,246,248,.94); backdrop-filter: blur(6px); padding: 14px 0; border-top: 1px solid var(--line); z-index: 5; }

/* ------------------------------------------------------------------ home */
.hero.full { margin: -28px calc(50% - 50vw) 0; padding: 48px 16px 56px; color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(0,161,147,.35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(245,130,32,.18), transparent 40%),
    linear-gradient(135deg, var(--navy-deep), var(--navy) 55%, #1f6f8b); }
.hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 32px; align-items: center; }
.hero h1 { color: #fff; font-size: 2.5rem; margin: .15em 0 .4em; }
.hero .lede { font-size: 1.1rem; color: #dce8f6; max-width: 62ch; }
.hero .lede strong { color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; font-weight: 700; color: var(--teal-dark); margin: 0; }
.eyebrow.light { color: #8fe3d9; }
.hero-card { background: #fff; color: var(--ink); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-lg); border-top: 5px solid var(--orange); }
.hero-card-label { margin: 0 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.hero-points { list-style: none; margin: 14px 0 0; padding: 0; }
.hero-points li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--line); font-size: .93rem; }
.hero-points span { color: var(--muted); }
.hero-points strong { color: var(--navy); text-align: right; }
.window { padding: 10px 14px; border-radius: 8px; background: var(--info-bg); color: var(--info); margin: 0; }
.window.open { background: var(--ok-bg); color: var(--ok); }
.window.closed { background: var(--bad-bg); color: var(--bad); }

.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  margin: -30px 0 28px; position: relative; z-index: 2; overflow: hidden; }
.process div { padding: 18px 16px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); position: relative; }
.process div:last-child { border-right: 0; }
.process strong { color: var(--navy); }
.process small { font-size: .82rem; }
.step-no { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.process div:first-child .step-no { background: var(--orange); }

.page-head { border-left: 5px solid var(--teal); padding: 4px 0 4px 16px; margin-bottom: 20px; }
.page-head h1 { margin: .1em 0 .2em; }
.page-head p { margin: 0; }

/* ------------------------------------------------------------------ cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0 0 22px; box-shadow: var(--shadow); }
.card > h2:first-child { padding-bottom: 10px; border-bottom: 2px solid var(--teal-soft); position: relative; }
.card > h2:first-child::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 48px; height: 2px; background: var(--teal); }
.card.narrow { max-width: 480px; margin: 32px auto; border-top: 5px solid var(--teal); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.grid-side { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 22px; align-items: start; }
@media (max-width: 880px) { .grid-side { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 20px 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); border-left: 4px solid var(--teal); }
.facts span { display: block; font-size: .8rem; color: var(--muted); }
.facts strong { font-size: 1.35rem; color: var(--navy); }

.flash { padding: 12px 16px; border-radius: 8px; margin: 0 0 20px; background: var(--ok-bg); color: var(--ok); border-left: 5px solid currentColor; }
.flash.bad { background: var(--bad-bg); color: var(--bad); }
.flash.warn { background: var(--warn-bg); color: var(--warn); }
.flash ul { margin: .4em 0 0; padding-left: 1.2em; }

.badge { display: inline-block; font-size: .78rem; font-weight: 500; padding: 2px 10px; border-radius: 999px; background: var(--line); color: var(--ink); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.muted { background: #eceff2; color: var(--muted); }
.note { background: var(--teal-soft); padding: 10px 14px; border-radius: 8px; border-left: 4px solid var(--teal); }

/* ------------------------------------------------------------------ forms */
.form label { display: block; font-weight: 500; font-size: .92rem; margin: 0 0 16px; color: #2c3640; }
.form label small { display: block; font-weight: 400; margin-top: 4px; }
.form input:not([type=checkbox]):not([type=radio]):not([type=file]), .form select, .form textarea, table.inputs input, input.mark, .search input, .search select {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; font-weight: 400;
  border: 1.5px solid #cdd4dc; border-radius: 8px; background: #fbfcfd; color: var(--ink); transition: border-color .15s, box-shadow .15s, background .15s; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: #aab5c1; }
.form input:focus, .form select:focus, .form textarea:focus, table.inputs input:focus, input.mark:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(0,161,147,.15); }
.form input[disabled] { background: #eef1f4; color: var(--muted); }
.form label.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.form label.check:hover { border-color: var(--teal); }
.form label.check:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.form label.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--teal-dark); }
.form label.check span small { display: block; font-weight: 400; margin-top: 4px; }
.form .short { max-width: 220px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 22px; }
.radio-group { margin: 6px 0 16px; }
.radio-group p { margin: 0 0 8px; }
.radio-group label.check { margin-bottom: 8px; }

fieldset { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 22px 22px 8px; margin: 0 0 22px; min-width: 0; box-shadow: var(--shadow); }
legend { font-weight: 700; font-size: 1.05rem; padding: 4px 12px 4px 4px; color: var(--navy); background: var(--surface); border-radius: 999px; display: flex; align-items: center; gap: 10px; }
.secno { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--navy); color: #fff; font-size: .9rem; }
.formsec:focus-within { border-color: #9fd8d0; }
.formsec:focus-within .secno { background: var(--teal); }
.hint { color: var(--muted); font-size: .92rem; margin-top: 0; }
.calc { background: var(--teal-soft); padding: 10px 14px; border-radius: 8px; border-left: 4px solid var(--teal); }
.req { color: var(--bad); }

.secnav { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 8px; scrollbar-width: thin; }
.secnav a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: var(--charcoal); text-decoration: none; font-size: .88rem; box-shadow: var(--shadow); }
.secnav a span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-dark); font-weight: 700; font-size: .78rem; }
.secnav a:hover { border-color: var(--teal); color: var(--teal-dark); }

label.file { border: 2px dashed #c4ced8; border-radius: 10px; padding: 14px; background: #fafcfd; transition: border-color .15s, background .15s; }
label.file:hover { border-color: var(--teal); background: var(--teal-soft); }
label.file.has-file { border-style: solid; border-color: var(--teal); background: var(--teal-soft); }
label.file.has-file::before { content: "✓ "; color: var(--teal-dark); font-weight: 700; }
label.file input { margin-top: 8px; font-weight: 400; max-width: 100%; font-size: .88rem; }
label.file input::file-selector-button { font: inherit; padding: 6px 14px; margin-right: 10px; border: 0; border-radius: 6px; background: var(--navy); color: #fff; cursor: pointer; }
label.file input::file-selector-button:hover { background: var(--teal-dark); }

/* ------------------------------------------------------------------ tables */
table { border-collapse: collapse; width: 100%; }
table.data th, table.data td, table.kv th, table.kv td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--navy); font-weight: 500; }
table.data thead th small { color: #cfe0f5; }
table.data tbody tr:nth-child(even) td { background: #f8fafb; }
table.data tbody tr:hover td { background: var(--teal-soft); }
table.data tfoot th { background: #eef2f6; color: var(--navy); }
table.kv th { width: 22%; color: var(--muted); font-weight: 500; font-size: .9rem; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.center { text-align: center !important; }
table.inputs { margin-bottom: 14px; }
table.inputs th { text-align: left; font-size: .8rem; color: var(--muted); padding: 4px; font-weight: 500; }
table.inputs td { padding: 3px 4px; }
table.inputs input { margin-top: 0; }
.scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 22px; box-shadow: var(--shadow); }
.card .scroll, fieldset .scroll { box-shadow: none; }
table.marks input.mark { width: 5.5em; margin: 0 0 0 auto; text-align: right; padding: 6px 8px; }
table.rank tr.selected td, table.rank tr.admitted td { background: #eef9f3 !important; }
table.rank tr.declined td { color: var(--muted); text-decoration: line-through; }
table.rank tr.declined td:last-child, table.rank tr.declined td:nth-last-child(2), table.rank tr.declined td:nth-last-child(3) { text-decoration: none; }
tr.ews td, tr.ews th { font-style: italic; color: #6b5a2e; }
td.big { font-size: 1.5rem; font-weight: 700; letter-spacing: .05em; color: var(--navy); }
sup { font-size: .65em; color: var(--orange-dark); margin-left: 2px; font-weight: 700; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.toolbar .tabs { margin-bottom: 0; }
.tabs a { padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--charcoal); border: 1px solid var(--line); background: var(--surface); font-size: .9rem; }
.tabs a:hover { border-color: var(--teal); color: var(--teal-dark); }
.tabs a.active { background: var(--teal-dark); color: #fff; border-color: var(--teal-dark); }
.search { gap: 8px; }
.search input { width: 260px; margin: 0; }
.search select { width: auto; margin: 0; }

/* ------------------------------------------------------------------ dashboard */
.timeline { list-style: none; padding: 0; margin: 16px 0; }
.timeline li { position: relative; padding: 0 0 18px 34px; border-left: 2px solid var(--line); margin-left: 9px; }
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before { content: ""; position: absolute; left: -10px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid #c4ced8; }
.timeline li.done { border-left-color: var(--teal); }
.timeline li.done::before { content: "✓"; color: #fff; font-size: 11px; display: grid; place-items: center; background: var(--teal); border-color: var(--teal); }
.timeline li strong { display: block; color: var(--navy); }
.timeline li span { color: var(--muted); font-size: .92rem; }
.steps li { margin-bottom: 8px; }
.steps li::marker { color: var(--teal-dark); font-weight: 700; }
.checks { padding-left: 1.2em; }
.checks li.ok { color: var(--ok); }
.checks li.bad { color: var(--bad); font-weight: 500; }
.big-links { list-style: none; padding: 0; display: grid; gap: 12px; }
.big-links a { display: block; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: var(--radius); font-weight: 500; text-decoration: none; box-shadow: var(--shadow); color: var(--navy); }
.big-links a:hover { border-left-color: var(--orange); }
.seat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.seat-grid label small { display: inline; color: var(--muted); font-weight: 400; }

/* ------------------------------------------------------------------ application / admit card */
.app-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 16px; flex-wrap: wrap; }
.app-head h2 { margin: 0 0 4px; font-size: 1.45rem; }
.app-head p { margin: 2px 0; }
.photo { width: 120px; height: 150px; object-fit: cover; border: 3px solid #fff; border-radius: 6px; box-shadow: var(--shadow); }
.sig img { max-width: 220px; max-height: 70px; border-bottom: 1px solid var(--line); }
.docs { columns: 2; padding-left: 1.2em; }
.print-head { text-align: center; border-bottom: 3px double var(--navy); margin-bottom: 18px; padding-bottom: 10px; }
.print-head h1 { margin: .2em 0; font-size: 1.45rem; }
.admit { border-top: 6px solid var(--navy); }
.admit .app-head table { flex: 1; min-width: 260px; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
  .process { grid-template-columns: 1fr 1fr; }
  .process div { border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  .brand-text strong { font-size: 1.15rem; }
  .emblem { width: 44px; height: 44px; font-size: .95rem; }
  .process { grid-template-columns: 1fr; }
  .docs { columns: 1; }
  table.kv th, table.kv td { display: block; width: auto; border: 0; padding: 2px 0; }
  table.kv tr { display: block; padding: 6px 0; border-bottom: 1px solid var(--line); }
  .search input { width: 100%; }
  fieldset { padding: 18px 14px 6px; }
}

@media print {
  .topstrip, header.site, .mainnav, footer.site, .noprint, .flash, .actions, .secnav, .skip { display: none !important; }
  body { background: #fff; }
  main { padding: 0; max-width: none; }
  .card { border: 0; padding: 0; box-shadow: none; }
  .grid-side { display: block; }
  .grid-side aside { display: none; }
  table.data thead th { background: #fff; color: #000; border-bottom: 2px solid #000; }
  a { color: inherit; text-decoration: none; }
}

/* alignment fixes */
.num { white-space: nowrap; }
table.data td { vertical-align: middle; }
.card > .actions:last-child, .card > form:last-child, .card > p:last-child, .card > ul:last-child, .card > ol:last-child { margin-bottom: 0; }
.grid2 { margin-bottom: 22px; }
.grid2 > .card { margin-bottom: 0; display: flex; flex-direction: column; }
.grid2 > .card > .actions:last-child { margin-top: auto; padding-top: 18px; }
.facts strong { display: block; line-height: 1.2; margin-top: 2px; }
table.stats td:first-child { width: 100%; }
@media (max-width: 600px) {
  table.data th, table.data td { padding: 8px 8px; }
  table.stats small { display: block; }
  .card { padding: 18px 16px; }
}

/* ------------------------------------------------------------------ quick tiles, notices, help, FAQ */
.ico { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }
.card h2 .ico { color: var(--teal); margin-right: 4px; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 24px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border-top: 4px solid var(--line); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--ink); border-top-color: var(--teal); }
.tile strong { color: var(--navy); font-size: 1.02rem; }
.tile small { font-size: .84rem; line-height: 1.4; }
.tile-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-dark); margin-bottom: 6px; }
.tile-ico .ico { width: 24px; height: 24px; }
.tile.primary { border-top-color: var(--orange); }
.tile.primary .tile-ico { background: #fff1e4; color: var(--orange-dark); }
.tile.done { border-top-color: var(--teal); }
.tile.off { opacity: .8; }
.tile.off .tile-ico { background: #eef1f4; color: var(--muted); }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .tiles { gap: 10px; } .tile { padding: 14px; } }

.notices { list-style: none; margin: 0; padding: 0; }
.notices li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.notices li:last-child { border-bottom: 0; }
.notices li.pinned { background: linear-gradient(90deg, #fff6ec, transparent); margin: 0 -10px; padding: 12px 10px; border-radius: 8px; }
.notices p { margin: 4px 0; font-size: .92rem; color: #3b4651; white-space: pre-line; }
.notices strong { color: var(--navy); }
.ndate { flex: none; width: 52px; height: 56px; border-radius: 10px; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; line-height: 1.1; }
.ndate b { font-size: 1.35rem; letter-spacing: 0; }
.pinned .ndate { background: var(--orange); }
.badge.new { background: #fff1e4; color: var(--orange-dark); }

.help-card { border-top: 4px solid var(--orange); }
.help-person { margin: 0 0 8px; }
.help-list, .help-colleges { list-style: none; margin: 0; padding: 0; }
.help-list li, .help-colleges li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: .94rem; }
.help-list .ico, .help-colleges .ico { color: var(--teal-dark); margin-top: 3px; }
.help-colleges li { border-top: 1px dashed var(--line); padding: 10px 0; }
.help-card h3 { margin-top: 14px; }

.help-tab { position: fixed; right: 0; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; background: var(--orange); color: #fff;
  padding: 16px 9px; border-radius: 0 10px 10px 0; text-decoration: none; font-weight: 500; font-size: .9rem; letter-spacing: .02em; z-index: 30; box-shadow: var(--shadow-lg); }
.help-tab:hover { background: var(--orange-dark); color: #fff; }
@media (max-width: 600px) { .help-tab { top: auto; bottom: 16px; right: 16px; transform: none; writing-mode: horizontal-tb; border-radius: 999px; padding: 10px 16px; } }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 14px 44px 14px 18px; font-weight: 500; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center; font-weight: 700; }
.faq details[open] summary::after { content: "–"; background: var(--teal); color: #fff; }
.faq details[open] { border-color: #9fd8d0; }
.faq details p { margin: 0; padding: 0 18px 16px; color: #3b4651; }

details.add { margin-bottom: 14px; }
details.add > summary { list-style: none; }
details.add > summary::-webkit-details-marker { display: none; }
details.add[open] > form { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fafcfd; }
details.item { border-top: 1px solid var(--line); }
details.item > summary { cursor: pointer; padding: 12px 4px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
details.item > summary span:first-child { color: var(--muted); font-size: .85rem; min-width: 90px; }
details.item[open] > form { padding: 6px 4px 16px; }
.check-row { display: flex; flex-wrap: wrap; gap: 10px; }
.check-row label.check { margin-bottom: 12px; }
@media print { .help-tab, .tiles { display: none !important; } }
.grid-side > div > .card:last-child, .grid-side > aside > .card:last-child { margin-bottom: 0; }
.grid-side { margin-bottom: 22px; }

/* verification lock */
.lockline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem; color: var(--muted); margin: 0 0 14px; padding: 8px 12px; border-radius: 8px; background: var(--info-bg); }
.lockline.locked { background: var(--ok-bg); color: var(--ok); }
.vline { margin: 2px 0; white-space: nowrap; }
.vline small { display: inline-block; min-width: 34px; color: var(--muted); }
.vsummary { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.vsummary:last-of-type { border-bottom: 0; }
.lockline { display: block; line-height: 1.5; }
.lockline .badge { margin-right: 6px; vertical-align: 1px; }

/* University lock states and nominal roll */
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.nominal .print-head { margin-bottom: 14px; }
.nominal .print-head p { margin: 4px 0; }
.nominal-table td { vertical-align: middle; }
.nominal-table .nr-photo { width: 60px; height: 72px; object-fit: cover; border: 1px solid var(--line); }
.nominal-table .nr-sign { max-width: 130px; max-height: 40px; object-fit: contain; }
.nominal-table .nr-blank { min-width: 170px; }
.nominal-table .nr-pa { white-space: nowrap; text-align: center; color: var(--muted); }
.nr-foot { margin-top: 18px; }
.nr-signs { display: flex; justify-content: space-between; gap: 24px; margin-top: 56px; }
.nr-signs p { border-top: 1px solid #555; padding-top: 6px; min-width: 220px; text-align: center; font-size: .9rem; }
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  .nominal-table th, .nominal-table td { border: 1px solid #000 !important; padding: 6px; }
  .nominal-table tr { page-break-inside: avoid; }
  .nominal .eyebrow { color: #000; }
}

/* wrapper that only exists to disable a block of inputs */
fieldset.plain { border: 0; background: none; padding: 0; margin: 0; box-shadow: none; }
fieldset:disabled input { background: #f3f5f7; color: var(--muted); }

/* fee exemption */
[hidden] { display: none !important; }
.checkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 16px; margin-bottom: 12px; }
.checks li.warn { color: var(--warn); font-weight: 500; }
