:root {
  --ink: #0F1B2D;
  --accent: #0B6770;
  --accent-hover: #09565D;
  --accent-soft: #E2F3F4;
  --muted: #4B5869;
  --muted-2: #5B6878;
  --text-2: #34404F;
  --surface-2: #F5F8F9;
  --pill: #F1F4F6;
  --field: #F8FAFB;
  --border: #E3E9EC;
  --field-border: #DCE3E7;
  --error: #B42318;
  --shadow-sm: 0 1px 3px rgba(15,27,45,.12);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
h1, h2, h3, p { margin: 0; }
input, select, textarea, button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: 1320px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 10px 16px; border-radius: 12px; }

/* Header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 22px; padding-bottom: 22px; }
.site-header .logo img { height: 42px; width: auto; }
.nav-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 15px; font-weight: 600; background: var(--pill); padding: 6px; border-radius: 999px; }
.nav-pills a, .nav-pills button { padding: 11px 20px; border: 0; border-radius: 999px; background: none; color: var(--ink); font-weight: 600; text-decoration: none; cursor: pointer; }
.nav-pills a[aria-current="page"], .nav-pills button[aria-current="page"] { background: #fff; box-shadow: var(--shadow-sm); }
.header-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1D2C44; color: #fff; }
.btn-soft { background: var(--pill); color: var(--ink); font-weight: 600; }
.btn-soft:hover { background: #E6EBEE; color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); font-weight: 600; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn-sm { min-height: 48px; padding: 0 24px; font-weight: 600; }
.btn-lg { min-height: 54px; padding: 0 34px; font-size: 16px; }
.btn-block { width: 100%; min-height: 56px; font-size: 16px; }

/* Shared type */
.tag { align-self: flex-start; padding: 7px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--accent); }
.h2 { font-size: 44px; font-weight: 800; line-height: 1.1; letter-spacing: -.035em; }
.lead { font-size: 17px; line-height: 1.65; color: var(--muted); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.section-head > div { display: flex; flex-direction: column; gap: 8px; }
.section-head .more { font-size: 15px; font-weight: 700; padding: 12px 0; text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.icon-well { width: 50px; height: 50px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(15,27,45,.1); flex: none; }

/* Hero */
.hero { padding-top: 8px; }
.hero-frame { position: relative; border-radius: 36px; overflow: hidden; min-height: 680px; display: flex; align-items: flex-end; background: #DCE7EA; }
.hero-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 24%; }
.hero-card { position: relative; margin: 24px; background: #fff; border-radius: 28px; padding: 40px; max-width: 600px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 30px 60px rgba(15,27,45,.18); }
.hero-card h1 { font-size: clamp(40px, 5.4vw, 72px); font-weight: 800; line-height: 1; letter-spacing: -.04em; }

/* Stats */
.stats { padding-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.stat { border-radius: 24px; background: var(--surface-2); padding: 26px 28px; display: flex; flex-direction: column; gap: 6px; }
.stat b { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.stat span { font-size: 14px; font-weight: 500; color: var(--muted-2); }

/* Notices */
.notices-sec { padding-top: 88px; padding-bottom: 40px; }
.notices { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.notice { border-radius: 26px; border: 1px solid var(--border); padding: 28px; display: flex; flex-direction: column; gap: 14px; background: #fff; }
.notice-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.notice-tag { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #E2F3F4; color: #0B6770; }
.notice-tag[data-tag="Event"] { background: #FDEBDD; color: #9A3D0B; }
.notice-tag[data-tag="Committee"] { background: #E8EBF5; color: #2B3A78; }
.notice time { font-size: 13px; color: var(--muted-2); }
.notice h3 { font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.notice p { font-size: 15px; line-height: 1.6; color: var(--muted-2); white-space: pre-line; }
.notices-status { grid-column: 1 / -1; border-radius: 26px; background: var(--surface-2); padding: 28px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Facilities */
.facilities-sec { padding-top: 48px; padding-bottom: 88px; }
.facilities { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.photo-tile { grid-row: span 2; position: relative; min-height: 380px; border-radius: 28px; overflow: hidden; display: flex; align-items: flex-end; background: var(--ink); }
.photo-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-caption { position: relative; margin: 16px; padding: 18px 20px; border-radius: 20px; background: rgba(255,255,255,.92); display: flex; flex-direction: column; gap: 4px; }
.photo-caption strong { font-size: 17px; }
.photo-caption span { font-size: 14px; color: var(--muted); }
.amenity { border-radius: 28px; background: var(--surface-2); padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.amenity div:last-child { display: flex; flex-direction: column; gap: 4px; }
.amenity strong { font-size: 17px; }
.amenity span { font-size: 14px; line-height: 1.5; color: var(--muted-2); }

/* CTA band */
.cta-sec { padding-bottom: 72px; }
.cta { border-radius: 36px; background: var(--ink); color: #fff; padding: 60px 56px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta h2 { flex: 1 1 460px; font-size: 42px; font-weight: 800; line-height: 1.08; letter-spacing: -.035em; }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 44px; font-size: 14px; color: var(--muted-2); border-top: 1px solid var(--border); }
.site-footer img { height: 32px; width: auto; }
.site-footer nav { display: flex; gap: 22px; font-weight: 600; }
.site-footer nav a { padding: 10px 0; text-decoration: none; }

/* Contact */
.contact { padding-top: 40px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.contact-left { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.intro { display: flex; flex-direction: column; gap: 16px; padding: 12px 0 8px; }
.intro h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.intro .lead { max-width: 460px; }
.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.detail { border-radius: 24px; background: var(--surface-2); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.detail .icon-well { width: 44px; height: 44px; border-radius: 14px; }
.detail div:last-child { display: flex; flex-direction: column; gap: 4px; }
.detail span { font-size: 13px; font-weight: 600; color: var(--muted-2); }
.detail strong { font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.river { position: relative; flex: 1; min-height: 240px; border-radius: 28px; overflow: hidden; background: #DCE7EA; }
.river > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chip { position: absolute; left: 16px; bottom: 16px; padding: 14px 18px; border-radius: 18px; background: rgba(255,255,255,.94); display: flex; flex-direction: column; gap: 2px; }
.chip strong { font-size: 15px; }
.chip span { font-size: 13px; color: var(--muted); }
.form-card { flex: 1 1 520px; min-width: 0; border-radius: 32px; border: 1px solid var(--border); padding: 40px; background: #fff; box-shadow: 0 30px 60px rgba(15,27,45,.08); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 20px; }
.form h2 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: 14px; font-weight: 700; margin-bottom: 10px; padding: 0; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; background: var(--pill); color: var(--ink); border: 1px solid var(--pill); }
.topic[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; }
.field .opt { font-weight: 500; color: var(--muted-2); }
.input { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--field-border); border-radius: 16px; font-size: 15px; font-weight: 400; color: var(--ink); background: var(--field); }
select.input { padding: 0 14px; }
textarea.input { padding: 14px 16px; resize: vertical; }
.input:focus, .pw:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.hint { font-size: 13px; color: var(--muted-2); }
.error { font-size: 14px; font-weight: 600; color: var(--error); }
.error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 48px 0; }
.sent .badge { width: 64px; height: 64px; border-radius: 20px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.sent h2 { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.sent p { font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 420px; }

/* Login */
.login-body { background: var(--surface-2); }
.login-page { min-height: 100vh; padding: 20px; display: flex; }
.login-grid { flex: 1; max-width: 1400px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 20px; }
.login-photo { flex: 1 1 520px; min-width: 0; min-height: 420px; position: relative; border-radius: 32px; overflow: hidden; background: #DCE7EA; display: flex; flex-direction: column; justify-content: space-between; }
.login-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 26%; }
.logo-chip { position: relative; align-self: flex-start; margin: 20px; padding: 12px 18px; border-radius: 18px; background: rgba(255,255,255,.94); display: flex; }
.logo-chip img { height: 34px; width: auto; }
.perks { position: relative; margin: 20px; padding: 24px 26px; border-radius: 24px; background: rgba(255,255,255,.94); display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.perks strong { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.perks ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.perks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.login-panel { flex: 1 1 460px; min-width: 0; border-radius: 32px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.login-inner { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 26px; }
.back { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--muted-2); text-decoration: none; padding: 10px 0; }
.login-inner h1 { font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.login-inner .form { gap: 16px; }
.login-inner .intro { padding: 0; gap: 10px; }
.login-inner .lead { font-size: 16px; }
.pw { display: flex; align-items: center; border: 1px solid var(--field-border); border-radius: 16px; background: var(--field); padding-right: 6px; }
.pw input { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border: 0; border-radius: 16px; font-size: 15px; font-weight: 400; color: var(--ink); background: transparent; outline: none; }
.pw button { min-width: 64px; min-height: 42px; border: 0; border-radius: 12px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-sm); }
.row-between { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; font-size: 14px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text-2); font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.link-accent { font-weight: 700; padding: 10px 0; color: var(--accent); }
.newbox { border-radius: 22px; background: var(--surface-2); padding: 20px 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.newbox div { display: flex; flex-direction: column; gap: 2px; }
.newbox strong { font-size: 15px; }
.newbox span { font-size: 13px; color: var(--muted-2); }
.newbox .btn { min-height: 46px; padding: 0 20px; font-size: 14px; }

/* Portal */
.portal { padding-top: 40px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 56px; }

/* Admin */
.stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.admin { padding-top: 16px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 24px; }
.admin h1 { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.panel { border: 1px solid var(--border); border-radius: 24px; padding: 28px; background: #fff; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.panel h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.panel-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.cols { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 24px; align-items: start; }
.list { display: flex; flex-direction: column; gap: 10px; }
.item { border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.item-top { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.item h3 { font-size: 16px; font-weight: 700; }
.item p { font-size: 14px; line-height: 1.6; color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.meta { font-size: 13px; color: var(--muted-2); }
.item-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-xs { min-height: 38px; padding: 0 14px; font-size: 13px; font-weight: 600; }
.btn-danger { background: #FDECEA; color: var(--error); }
.btn-danger:hover { background: #F9D7D2; color: var(--error); }
.pill { display: inline-block; white-space: nowrap; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--pill); color: var(--ink); }
.pill[data-tone="good"] { background: var(--accent-soft); color: var(--accent); }
.pill[data-tone="warn"] { background: #FDEBDD; color: #9A3D0B; }
.pill[data-tone="bad"] { background: #FDECEA; color: var(--error); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { border-radius: 18px; background: var(--surface-2); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.tile b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.tile span { font-size: 13px; color: var(--muted-2); }
.banner { border-radius: 16px; padding: 12px 16px; font-size: 14px; line-height: 1.5; font-weight: 600; background: #FFF4E5; color: #8A4B00; border: 1px solid #F5C77E; }
.note { font-size: 13px; line-height: 1.55; color: var(--muted-2); }
.ok { font-size: 14px; font-weight: 600; color: var(--accent); }
.ok:empty { display: none; }
.preview-frame { width: 100%; min-height: 620px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface-2); }
.table-wrap { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; font-size: 14px; }
.data th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted-2); padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; }
.code { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline > .field { flex: 1 1 200px; }
.inline > .input { flex: 1 1 180px; width: auto; }
.panel-head > .inline { flex: 0 1 480px; }
.pick { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pick legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.picker { display: flex; flex-direction: column; gap: 16px; }
.picker .pick legend { font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.topic-sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
.range { display: flex; align-items: center; gap: 10px; max-width: 320px; }
.range .input { flex: 1; min-width: 0; }
.range span { font-size: 14px; color: var(--muted-2); }
.unit-rows { display: flex; flex-direction: column; gap: 10px; }
.unit-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); gap: 8px; align-items: center; padding: 10px; border-radius: 18px; background: var(--surface-2); }
.unit-row .input { min-height: 44px; padding: 0 12px; font-size: 14px; border-radius: 12px; background: #fff; }
.unit-row .use { grid-column: span 2; }
.filter summary { cursor: pointer; font-size: 14px; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.filter[open] { display: flex; flex-direction: column; gap: 14px; padding-bottom: 6px; }
.who ul { margin: 0; padding: 14px 16px; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; max-height: 320px; overflow: auto; border-radius: 16px; background: var(--surface-2); }
.who .meta { margin-left: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.block { display: block; }
.denied { padding: 48px 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  .hero-frame { min-height: 560px; border-radius: 28px; }
  .hero-card { margin: 12px; padding: 28px 24px; }
  .h2 { font-size: 34px; }
  .cta { padding: 40px 28px; border-radius: 28px; }
  .cta h2 { font-size: 32px; }
  .form-card { padding: 28px 20px; }
  .login-page { padding: 12px; }
  .login-photo { min-height: 360px; }
}
