/* =====================================================================
   THE COUNCIL — page styles (council.html)
   Civic paper, brass, and a conch that isn't plugged into anything.
   ===================================================================== */

:root {
  --paper: #ebe2c8;
  --paper-2: #e2d6b5;
  --paper-ink: #2a2418;
  --paper-ink-2: #5c5240;
  --stamp-red: #b23a2e;
  --stamp-teal: #12796a;
  --stamp-ink: #2f4a8a;
  --lamp: #ffb347;
}

.c-head { max-width: 900px; margin-bottom: clamp(32px, 4vw, 56px); }
.c-head .h-1 { margin-top: 18px; }
.c-head .lede { margin-top: 18px; }

/* ------------------------------------------------------------- hero */
.c-hero { position: relative; padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); }
.c-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.c-hero .h-display { font-size: clamp(2.8rem, 6.6vw, 6.4rem); }
.c-session {
  margin-top: 30px; max-width: 560px; border: 1px solid var(--hair-2); border-radius: 14px;
  background: rgba(4, 16, 25, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 14px 16px; display: grid; gap: 10px;
}
.c-session-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.c-session-top b { color: var(--gold-hi); font-weight: 500; }
.c-session-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; align-items: baseline; border-top: 1px solid var(--hair); padding-top: 10px; }
.c-agenda { color: var(--ink); font-size: .95rem; transition: opacity .35s, transform .35s; }
.c-agenda.swap { opacity: 0; transform: translateY(6px); }

.c-seal-wrap { position: relative; display: grid; justify-items: center; padding: 10px 0 0; }
.c-seal-wrap .fan { opacity: .4; inset: -10% -10% 10% -10%; }
.c-seal { position: relative; width: min(440px, 100%); height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)) drop-shadow(0 0 40px rgba(230, 192, 105, .08)); }
.c-seal-spin { transform-origin: 0 0; animation: seal-spin 140s linear infinite; }
@keyframes seal-spin { to { transform: rotate(360deg); } }
.c-seal-text { font-family: var(--f-mono); font-size: 14.5px; letter-spacing: .2em; fill: var(--gold-hi); }
.c-seal-small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .32em; fill: var(--gold); }
.c-seal-motto { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .26em; fill: var(--gold-hi); }
.c-seal-l { font-family: var(--f-display); font-size: 34px; fill: #03201b; }
.c-seal-btn { animation: btn-glow 3.2s ease-in-out infinite; }
@keyframes btn-glow { 0%, 100% { filter: drop-shadow(0 0 6px rgba(70, 227, 203, .6)); } 50% { filter: drop-shadow(0 0 18px rgba(70, 227, 203, 1)); } }
.c-seal-cap { margin-top: 14px; text-align: center; max-width: 380px; line-height: 1.6; letter-spacing: .06em; }

.c-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.c-stats .stat { padding: 22px 20px 20px; border-left: 1px solid var(--hair); }
.c-stats .stat:first-child { border-left: 0; padding-left: 0; }
.c-stats .stat .v { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.c-depts { display: flex; flex-wrap: wrap; gap: 8px 6px; align-items: center; margin-top: 22px; }
.c-depts span { margin-right: 8px; }
.c-depts a { font-size: 13px; color: var(--ink-2); padding: 6px 12px; border: 1px solid var(--hair); border-radius: 999px; transition: all .25s; }
.c-depts a:hover { color: var(--gold-hi); border-color: var(--line-2); }

/* ---------------------------------------------------------- notices */
.c-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.c-chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--hair-2);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
  transition: all .25s;
}
.c-chip:hover { color: var(--ink); border-color: var(--line); }
.c-chip[aria-pressed="true"] { color: #1b1305; background: var(--gold); border-color: var(--gold); }
.c-chip .n { opacity: .6; margin-left: 6px; }

.c-board {
  position: relative; border-radius: 22px; padding: clamp(18px, 3vw, 40px);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .03), transparent 40%),
    repeating-radial-gradient(circle at 0 0, rgba(255, 255, 255, .012) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #0b2230, #071925);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 6px rgba(4, 16, 25, .9), inset 0 0 0 7px rgba(230, 192, 105, .35), 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.c-board-plaque {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 auto 26px; max-width: 560px;
  padding: 10px 18px; border-radius: 6px; text-align: center;
  background: linear-gradient(180deg, #f7e3a4, #c99a3e); color: #2a1d08;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.c-board-plaque .dim { color: #5c4518; }
.c-notices { columns: 3 260px; column-gap: 26px; }
.c-notice {
  position: relative; break-inside: avoid; margin: 0 0 30px; padding: 26px 20px 18px;
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--paper-ink); border-radius: 3px;
  transform: rotate(var(--rot, 0deg));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 18px 30px -12px rgba(0, 0, 0, .7), 0 2px 4px rgba(0, 0, 0, .3);
  transition: transform .45s var(--ease-out), box-shadow .45s, opacity .35s;
}
.c-notice::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: 3px; opacity: .5;
  background: radial-gradient(120% 80% at 100% 0%, rgba(120, 90, 40, .18), transparent 50%), radial-gradient(90% 60% at 0% 100%, rgba(120, 90, 40, .14), transparent 60%);
}
.c-notice:hover { transform: rotate(0deg) translateY(-4px) scale(1.015); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 28px 40px -14px rgba(0, 0, 0, .8); z-index: 2; }
.c-notice.hide { display: none; }
.c-notice.pop { animation: notice-pop .5s var(--ease-out) both; }
@keyframes notice-pop { from { opacity: 0; transform: rotate(var(--rot)) translateY(12px) scale(.97); } }
.c-pin {
  position: absolute; top: 9px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6d8, #e6c069 45%, #7a5a1f 100%);
  box-shadow: 0 3px 4px rgba(0, 0, 0, .45);
}
.c-notice header { display: flex; justify-content: space-between; gap: 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-ink-2); border-bottom: 1px solid rgba(42, 36, 24, .25); padding-bottom: 8px; }
.c-notice .cat { margin-top: 10px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--stamp-teal); }
.c-notice .txt { margin-top: 6px; font-family: var(--f-display); font-size: 1.42rem; line-height: 1.12; letter-spacing: -.005em; color: var(--paper-ink); }
.c-notice .note { margin-top: 10px; font-size: .84rem; line-height: 1.45; color: var(--paper-ink-2); font-style: italic; }
.c-notice-foot { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.c-compliance { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-ink-2); }
.c-compliance .bar { height: 5px; border-radius: 3px; background: rgba(42, 36, 24, .14); position: relative; overflow: hidden; }
.c-compliance .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--stamp-red); }
.c-compliance b { color: var(--stamp-red); font-weight: 600; }
.c-stamp {
  position: relative; flex-shrink: 0; padding: 4px 9px; border: 2.5px solid currentColor; border-radius: 4px; white-space: nowrap;
  font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  transform: rotate(var(--srot, -12deg)); opacity: .78; mix-blend-mode: multiply; pointer-events: none;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.7'/%3E%3C/filter%3E%3Crect width='120' height='60' filter='url(%23n)'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.7'/%3E%3C/filter%3E%3Crect width='120' height='60' filter='url(%23n)'/%3E%3C/svg%3E");
}
.c-stamp.red { color: var(--stamp-red); }
.c-stamp.teal { color: var(--stamp-teal); }
.c-stamp.ink { color: var(--stamp-ink); }

/* -------------------------------------------------------- tube mail */
.c-tube-grid { align-items: stretch; }
.c-tube-form { display: flex; flex-direction: column; gap: 18px; }
.c-address { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.c-address > div { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.c-address b { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; line-height: 1.1; color: var(--gold-hi); }
.c-field { display: flex; flex-direction: column; gap: 8px; }
.c-field input, .c-field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--hair-2);
  background: rgba(2, 10, 17, .55); color: var(--ink); font-size: 15px; line-height: 1.5; resize: vertical;
  transition: border-color .25s, box-shadow .25s;
}
.c-field input::placeholder, .c-field textarea::placeholder { color: var(--ink-4); }
.c-field input:focus, .c-field textarea:focus { outline: none; border-color: var(--line-2); box-shadow: 0 0 0 4px rgba(230, 192, 105, .1); }
.c-form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.c-form-foot .tiny { flex: 1; min-width: 200px; line-height: 1.5; }

.c-shaft-card { display: flex; flex-direction: column; gap: 16px; }
.c-shaft { position: relative; flex: 1; min-height: 380px; display: grid; justify-items: center; }
.c-shaft-glass {
  position: relative; width: 96px; height: 100%; min-height: 380px; border-radius: 48px;
  background: linear-gradient(90deg, rgba(160, 205, 220, .05), rgba(160, 205, 220, .14) 30%, rgba(160, 205, 220, .03) 60%, rgba(160, 205, 220, .1));
  border: 1px solid var(--hair-2);
  box-shadow: inset 0 0 30px rgba(70, 227, 203, .06);
}
.c-shaft-glass::before, .c-shaft-glass::after {
  content: ''; position: absolute; left: -8px; right: -8px; height: 14px; border-radius: 4px;
  background: linear-gradient(180deg, #f7e3a4, #9c7a33); box-shadow: 0 4px 10px rgba(0, 0, 0, .5);
}
.c-shaft-glass::before { top: -7px; } .c-shaft-glass::after { bottom: -7px; }
.c-shaft-marks span {
  position: absolute; left: calc(100% + 16px); transform: translateY(-50%); font-family: var(--f-mono); font-size: 10px; color: var(--ink-4); white-space: nowrap;
}
.c-shaft-marks span::before { content: ''; position: absolute; right: calc(100% + 6px); top: 50%; width: 10px; height: 1px; background: var(--ink-4); }
.c-capsule { position: absolute; left: 50%; top: 10px; width: 52px; margin-left: -26px; transition: transform 3.4s cubic-bezier(.55, .05, .35, 1); will-change: transform; filter: drop-shadow(0 0 14px rgba(230, 192, 105, .35)); }
.c-capsule.loading { animation: capsule-load .7s var(--ease-out); }
@keyframes capsule-load { 0% { transform: translateY(-40px) scale(.9); opacity: 0; } 100% { transform: none; opacity: 1; } }
.c-capsule.gone { opacity: 0; transition: opacity .4s; }
.c-bubbles { position: absolute; inset: 0; overflow: hidden; border-radius: 48px; pointer-events: none; }
.c-bubbles i { position: absolute; bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%; border: 1px solid rgba(200, 235, 245, .55); animation: bubble var(--t) ease-in forwards; }
@keyframes bubble { to { transform: translate(var(--dx), -480px); opacity: 0; } }

.c-transit { margin-top: clamp(28px, 4vw, 44px); }
.c-transit-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.c-transit-list { display: grid; gap: 10px; margin-top: 14px; }
.c-tube {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) 210px auto; gap: 18px; align-items: center;
  padding: 16px 18px; border: 1px solid var(--hair); border-radius: 14px; background: rgba(9, 27, 40, .5);
  animation: notice-pop .5s var(--ease-out) both;
}
.c-tube .trk { font-family: var(--f-mono); font-size: 11px; color: var(--gold-hi); letter-spacing: .08em; }
.c-tube .trk small { display: block; color: var(--ink-4); font-size: 10px; margin-top: 3px; letter-spacing: .04em; }
.c-tube .msg { font-family: var(--f-display); font-size: 1.15rem; line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.c-tube .msg small { display: block; font-family: var(--f-sans); font-size: .8rem; color: var(--ink-3); margin-top: 4px; }
.c-tube .status { font-size: .82rem; color: var(--ink-2); line-height: 1.4; }
.c-tube .prog { height: 4px; border-radius: 2px; background: var(--hair); margin-top: 8px; overflow: hidden; }
.c-tube .prog i { display: block; height: 100%; min-width: 3px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-hi)); }
.c-tube .eta { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-3); margin-top: 6px; }
.c-empty { padding: 26px; text-align: center; border: 1px dashed var(--hair-2); border-radius: 14px; color: var(--ink-3); font-size: .92rem; }

/* ------------------------------------------------------------ conch */
.c-conch-grid { align-items: stretch; }
.c-conch-stage { display: flex; flex-direction: column; gap: 10px; }
.c-conch-btn { display: block; width: 100%; padding: 10px 0 0; border-radius: 16px; }
.c-conch { width: 100%; height: auto; overflow: visible; }
.c-handset { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .6s var(--ease-out); }
.c-ringlines { opacity: 0; }
.c-conch-stage.ringing .c-shell { animation: shell-shake .18s linear infinite; transform-origin: 280px 260px; transform-box: view-box; }
.c-conch-stage.ringing .c-handset { animation: handset-jiggle .12s linear infinite; }
.c-conch-stage.ringing .c-ringlines { animation: ringlines .8s ease-out infinite; }
.c-conch-stage.answered .c-handset { transform: translate(-30px, -46px) rotate(-14deg); }
@keyframes shell-shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(.7deg); } 75% { transform: rotate(-.7deg); } }
@keyframes handset-jiggle { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(1.5deg); } }
@keyframes ringlines { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 0; } }
.c-conch-side { display: flex; flex-direction: column; gap: clamp(16px, 2.2vw, 28px); }
.c-line { min-height: 230px; }
.c-line-caller { margin-top: 18px; letter-spacing: .2em; }
.c-line-text { margin-top: 10px; font-size: clamp(1.35rem, 2.1vw, 1.75rem); line-height: 1.2; color: var(--ink); min-height: 3.6em; }
.c-line-text .caret { display: inline-block; width: 2px; height: 1em; background: var(--gold); vertical-align: -0.12em; margin-left: 3px; animation: pulse 1s infinite; }
.c-log { flex: 1; }
.c-log-list { list-style: none; margin-top: 12px; display: grid; gap: 8px; max-height: 220px; overflow: auto; }
.c-log-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; font-size: .86rem; color: var(--ink-2); padding-bottom: 8px; border-bottom: 1px solid var(--hair); }
.c-log-list li.empty { display: block; color: var(--ink-3); }
.c-log-list li .t { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }
.c-log-list li .r { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-3); text-align: right; }
.c-log-list li.missed .r { color: var(--coral); }
.btn[disabled] { opacity: .35; pointer-events: none; }
#conch-state.ring { color: var(--bio); border-color: rgba(70, 227, 203, .5); animation: pulse 1s infinite; }
#conch-state.live { color: var(--gold-hi); border-color: var(--line-2); }

/* ---------------------------------------------------------- customs */
.c-customs-grid { align-items: center; }
.c-idcard {
  position: relative; max-width: 440px; margin: 0 auto; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, #11324a, #061825 70%);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .5s var(--ease-out);
}
.c-idcard::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background: repeating-conic-gradient(from 180deg at 100% 0%, rgba(230, 192, 105, .18) 0deg 1deg, transparent 1deg 7deg);
  mask-image: radial-gradient(circle at 100% 0%, #000, transparent 70%);
}
.c-id-top { display: flex; justify-content: space-between; padding: 14px 20px; background: linear-gradient(180deg, #f7e3a4, #c99a3e); color: #2a1d08; font-family: var(--f-mono); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; }
.c-id-body { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 22px 20px; }
.c-id-photo { position: relative; border: 1.5px solid var(--gold); border-radius: 6px; overflow: hidden; align-self: start; }
.c-id-photo svg { width: 100%; height: auto; filter: sepia(.25); }
.c-id-photo-note { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px; font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .08em; text-align: center; background: rgba(2, 10, 17, .75); color: var(--gold-hi); }
.c-id-fields { display: grid; gap: 7px; }
.c-id-fields div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; font-size: .88rem; border-bottom: 1px dotted rgba(230, 192, 105, .2); padding-bottom: 5px; }
.c-id-fields dt { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }
.c-id-fields dd { color: var(--ink); }
.c-id-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px 18px; color: var(--ink-3); }
.c-barcode { height: 30px; flex: 1; max-width: 170px; background: repeating-linear-gradient(90deg, var(--gold-hi) 0 2px, transparent 2px 4px, var(--gold-hi) 4px 5px, transparent 5px 9px, var(--gold-hi) 9px 12px, transparent 12px 13px); opacity: .8; }

.c-desk { display: flex; flex-direction: column; gap: 20px; }
.c-airlock {
  position: relative; height: 150px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(60% 90% at 50% 100%, rgba(70, 227, 203, .1), transparent 70%), linear-gradient(180deg, #0a2232, #051520);
  border: 1px solid var(--hair-2);
}
.c-portal { position: absolute; left: 50%; right: 5%; top: 14px; bottom: 14px; border-radius: 10px; overflow: hidden; border: 2px solid var(--gold-deep); box-shadow: inset 0 0 0 1px rgba(230, 192, 105, .2), 0 0 30px rgba(0, 0, 0, .5); }
.c-portal-in { position: absolute; inset: 0; background: radial-gradient(80% 80% at 50% 50%, rgba(70, 227, 203, .28), #020a10 75%); }
.c-airlock-door { position: absolute; left: 0; right: 0; height: 50%; z-index: 2; transition: transform 1s var(--ease-out);
  background: repeating-linear-gradient(90deg, #12354b 0 16px, #0c2636 16px 18px); }
.c-airlock-door.t { top: 0; border-bottom: 2px solid var(--gold); }
.c-airlock-door.b { bottom: 0; border-top: 2px solid var(--gold); }
.c-airlock.open .c-airlock-door.t { transform: translateY(-100%); }
.c-airlock.open .c-airlock-door.b { transform: translateY(100%); }
.c-crate { position: absolute; left: 9%; bottom: 20px; width: min(110px, 26%); z-index: 3; transition: transform 1.6s cubic-bezier(.5, 0, .3, 1) .55s, opacity .5s 1.8s; }
.c-airlock.open .c-crate { transform: translateX(calc(var(--aw, 600px) * .52)) scale(.7); opacity: 0; }
.c-airlock-label { position: absolute; left: 12px; top: 10px; max-width: 44%; z-index: 3; color: var(--gold-hi); letter-spacing: .18em; text-shadow: 0 1px 6px #000; }
.c-airlock.shake { animation: shell-shake .14s linear 4; }
.c-customs-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.c-officer { border-left: 2px solid var(--gold); padding: 4px 0 4px 16px; }
.c-officer p { margin-top: 6px; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; color: var(--ink); }
.c-officer.ok { border-color: var(--bio); }
.c-officer.no { border-color: var(--coral); }

/* ------------------------------------------------- census + doctor */
.c-pair { align-items: stretch; }
.c-census, .c-doctor { display: flex; flex-direction: column; }
.c-census-stage { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 22px; min-height: 260px; }
.c-cable { position: absolute; left: 74px; top: -60px; width: 2px; height: 80px; background: linear-gradient(180deg, transparent, #6f8f99); transition: height 1.4s var(--ease-out); }
.c-ball { position: relative; width: 150px; animation: bob 4.5s ease-in-out infinite; transition: transform 1.6s cubic-bezier(.6, 0, .3, 1), opacity 1.2s; }
.c-ball.up { transform: translateY(-140%); opacity: 0; animation: none; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 8px; } }
.c-hat { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .5s var(--ease-out); }
.c-ball.tip .c-hat { transform: translateY(-8px) rotate(-18deg); }
.c-clipboard {
  position: relative; padding: 30px 18px 16px; border-radius: 6px; background: linear-gradient(180deg, var(--paper), var(--paper-2)); color: var(--paper-ink);
  box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .7); transform: rotate(1.2deg);
}
.c-clip { position: absolute; top: -10px; left: 50%; width: 70px; height: 22px; margin-left: -35px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #d9e4ea, #7c8f9a); box-shadow: 0 3px 6px rgba(0, 0, 0, .4); }
.c-clipboard .mono { color: var(--paper-ink-2); letter-spacing: .16em; }
.c-q { font-size: 1.5rem; line-height: 1.1; margin-top: 6px; }
.c-tally { list-style: none; margin-top: 12px; display: grid; gap: 4px; font-family: var(--f-mono); font-size: 11px; color: var(--paper-ink-2); }
.c-tally li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted rgba(42, 36, 24, .3); padding-bottom: 3px; }
.c-tally li b { color: var(--paper-ink); font-weight: 600; }
.c-tally li.new { animation: notice-pop .6s var(--ease-out) both; }
.c-tally li.new b { color: var(--stamp-ink); }

.c-frame {
  margin-top: 22px; padding: 16px; border-radius: 6px;
  background: linear-gradient(135deg, #f7e3a4, #9c7a33 30%, #e6c069 55%, #7a5a1f 80%, #f7e3a4);
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .3);
}
.c-note { position: relative; padding: 22px 22px 18px; background: linear-gradient(180deg, var(--paper), var(--paper-2)); color: var(--paper-ink); box-shadow: inset 0 0 0 1px rgba(42, 36, 24, .25), inset 0 0 30px rgba(120, 90, 40, .18); }
.c-note-head { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--paper-ink-2); border-bottom: 1px solid rgba(42, 36, 24, .3); padding-bottom: 8px; margin-bottom: 12px; }
.c-note dl { display: grid; gap: 6px; }
.c-note dl div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.c-note dt { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-ink-2); }
.c-note dd { font-family: var(--f-display); font-style: italic; font-size: 1.22rem; line-height: 1.15; }
.c-sign { margin-top: 14px; text-align: right; font-family: var(--f-display); font-style: italic; font-size: 1.3rem; color: var(--stamp-ink); }
.c-doc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.c-doc-stats .stat .v { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.c-doc-count { font-size: clamp(1.15rem, 2vw, 1.5rem) !important; letter-spacing: -.01em !important; }

/* --------------------------------------------------------- porthole */
.c-port-grid { align-items: center; }
.c-lamp-read { margin-top: 26px; }
.c-lamp-now { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.c-lamp-now i { width: 22px; height: 22px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 18px var(--lamp); transition: background 1.2s, box-shadow 1.2s; }
.c-lamp-now b { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; line-height: 1; }
.c-lamp-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; }
.c-lamp-log { list-style: none; margin-top: 12px; display: grid; gap: 4px; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); max-height: 120px; overflow: hidden; }
.c-lamp-log li { display: flex; gap: 10px; align-items: center; }
.c-lamp-log li i { width: 8px; height: 8px; border-radius: 50%; }

.c-porthole { position: relative; width: min(560px, 100%); aspect-ratio: 1; margin: 0 auto; }
.c-port-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 210deg, #7a5a1f, #f7e3a4, #c99a3e, #6b4e1a, #e6c069, #9c7a33, #f7e3a4, #7a5a1f);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), inset 0 0 0 2px rgba(255, 255, 255, .15), 0 0 80px color-mix(in oklab, var(--lamp) 14%, transparent);
  transition: box-shadow 1.5s;
}
.c-port-ring span { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6d8, #c99a3e 50%, #5e4415); box-shadow: 0 2px 3px rgba(0, 0, 0, .5); }
.c-port-glass { position: absolute; inset: 7.5%; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 0 6px #04121d, inset 0 0 50px rgba(0, 0, 0, .8); }
.c-port-glass::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(60% 40% at 30% 20%, rgba(255, 255, 255, .12), transparent 60%); pointer-events: none; }
.c-port-scene { width: 100%; height: 100%; }
.lamp-stop { stop-color: var(--lamp); transition: stop-color 1.5s; }
.c-lampdot { fill: var(--lamp); transition: fill 1.5s; }
.c-lampglow { animation: lamp-breathe 5s ease-in-out infinite; transform-origin: 200px 215px; transform-box: view-box; }
@keyframes lamp-breathe { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
#port-snow circle { animation: port-snow linear infinite; }
@keyframes port-snow { from { transform: translateY(-30px); } to { transform: translateY(430px); } }

/* -------------------------------------------------------------- HOA */
.c-minutes { display: grid; gap: 12px; max-width: 980px; }
.c-minutes details { border: 1px solid var(--hair); border-radius: 16px; background: rgba(9, 27, 40, .5); overflow: hidden; transition: border-color .3s, background .3s; }
.c-minutes details[open] { border-color: var(--line); background: rgba(14, 38, 54, .6); }
.c-minutes summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 22px; }
.c-minutes summary::-webkit-details-marker { display: none; }
.c-minutes summary .no { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; }
.c-minutes summary .ttl { font-family: var(--f-display); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.15; }
.c-minutes summary .plus { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--hair-2); display: grid; place-items: center; color: var(--gold); transition: transform .35s var(--ease-out); }
.c-minutes details[open] summary .plus { transform: rotate(45deg); }
.c-min-body { padding: 0 22px 22px calc(22px + 120px + 18px); color: var(--ink-2); }
.c-min-body ol { display: grid; gap: 8px; padding-left: 1.2em; }
.c-min-body li::marker { color: var(--gold); font-family: var(--f-mono); font-size: .8em; }
.c-min-body .meta { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--ink-4); margin-bottom: 12px; text-transform: uppercase; }
.c-min-body .res { margin-top: 12px; font-style: italic; color: var(--ink-3); }
.c-adjourn { margin-top: 28px; letter-spacing: .12em; text-transform: uppercase; }

/* ------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .c-tube { grid-template-columns: 130px minmax(0, 1fr); }
  .c-tube .status-col { grid-column: 1 / -1; }
  .c-tube .recall { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 920px) {
  .c-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .c-seal-wrap { order: -1; }
  .c-seal { width: min(320px, 78vw); }
  .c-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-stats .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .c-stats .stat:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .c-min-body { padding-left: 22px; }
}
@media (max-width: 720px) {
  .c-address { grid-template-columns: 1fr; }
  .c-shaft, .c-shaft-glass { min-height: 300px; }
  .c-session-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .c-tube { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .c-customs-form { grid-template-columns: minmax(0, 1fr); }
  .c-census-stage { grid-template-columns: 100px minmax(0, 1fr); gap: 14px; }
  .c-ball { width: 100px; }
  .c-cable { left: 49px; }
  .c-id-body { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 18px 16px; }
  .c-id-fields div { grid-template-columns: 78px minmax(0, 1fr); }
  .c-doc-stats { grid-template-columns: 1fr; }
  .c-minutes summary { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 16px; }
  .c-minutes summary .no { grid-column: 1 / -1; }
  .c-min-body { padding: 0 16px 18px; }
  .c-note dl div { grid-template-columns: 74px minmax(0, 1fr); }
  .c-notice .txt { font-size: 1.3rem; }
}
@media (max-width: 420px) {
  .c-stats .stat { padding: 16px 12px 14px; }
  .c-stats .stat .v { font-size: 1.6rem; }
}
.c-census-stage { flex: 1; align-items: center; }
