@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,600&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --paper: #f4f0e7;
  --paper-dark: #e8e0ce;
  --ink: #243732;
  --ink-soft: #63706a;
  --green: #24745f;
  --green-dark: #155342;
  --orange: #dd6536;
  --gold: #e7aa12;
  --red: #b64638;
  --line: rgba(36, 55, 50, .16);
  --white: #fffdf8;
  --shadow: 0 8px 22px rgba(35, 55, 49, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(36,55,50,.055) 1px, transparent 0);
  background-size: 18px 18px;
  font-family: "DM Sans", sans-serif;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

h1, h2, h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.05;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--white); }
h2 { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.32rem; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hint {
  max-width: 55ch;
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.55;
}

.hall-header {
  color: var(--white);
  background: var(--green);
  border-bottom: 6px solid var(--green-dark);
}

.hall-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px;
}

.seal {
  display: grid;
  flex: 0 0 62px;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
}

.tagline { margin: 8px 0 0; color: rgba(255,253,248,.8); }

.header-note {
  display: grid;
  gap: 5px;
  max-width: 215px;
  margin-left: auto;
  padding-left: 22px;
  border-left: 1px solid rgba(255,255,255,.25);
  color: rgba(255,253,248,.76);
  font-size: .8rem;
  line-height: 1.45;
}

.header-note strong { color: var(--gold); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }

.tabs {
  display: flex;
  gap: 5px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px 0;
}

.tab {
  position: relative;
  top: 1px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  color: var(--ink-soft);
  background: rgba(232,224,206,.76);
  font-weight: 700;
  transition: .2s ease;
}

.tab:hover { color: var(--ink); background: var(--paper-dark); }
.tab--active { color: var(--ink); background: var(--white); box-shadow: 0 -2px 0 var(--gold); }
.tab:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.desk { max-width: 1120px; margin: 0 auto; padding: 0 24px 70px; }

.panel {
  min-height: 620px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 0 5px 5px 5px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.panel[hidden] { display: none; }
.section-intro { margin-bottom: 30px; }
.panel__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 34px; align-items: start; }

.counter-form {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.counter-form h3 { margin-bottom: 8px; }
.counter-form label { display: block; margin: 16px 0 7px; font-size: .83rem; font-weight: 700; }
.counter-form label span[aria-hidden] { color: var(--red); }

.counter-form input, .counter-form select, .counter-form textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--paper);
}

.counter-form textarea { resize: vertical; }
.checkbox-label { display: flex !important; align-items: center; gap: 9px; font-weight: 500 !important; }
.checkbox-label input { width: auto; accent-color: var(--green); }

.btn {
  margin-top: 24px;
  padding: 13px 19px;
  border: 0;
  border-radius: 7px;
  color: white;
  font-weight: 700;
  box-shadow: 0 3px 0 rgba(0,0,0,.16);
  transition: transform .15s ease, filter .15s ease;
}

.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn--green { background: var(--green); }
.btn--red { background: var(--red); }

.stub-area { min-height: 330px; }
.stub-placeholder {
  display: grid;
  min-height: 330px;
  place-items: center;
  padding: 32px;
  border: 2px dashed rgba(36,55,50,.25);
  border-radius: 12px;
  color: var(--ink-soft);
  text-align: center;
}

.stub {
  padding: 24px;
  border-radius: 12px;
  color: var(--ink);
  background: var(--gold);
  animation: rise .3s ease both;
}

.stub__eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.stub__doc { margin: 6px 0 18px; font-family: "Fraunces", serif; font-size: 1.45rem; }
.stub__row { display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; border-top: 1px solid rgba(36,55,50,.18); font-size: .84rem; }
.stub__tracking, .mini-stub__meta, .slip__meta { font-family: "IBM Plex Mono", monospace; }

.request-list, .reports-list { margin-top: 38px; }
.list-heading { display: flex; justify-content: space-between; align-items: end; }
.stub-stack, .slip-stack { display: grid; gap: 10px; margin-top: 15px; }
.mini-stub, .slip { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.mini-stub__info, .slip__info { display: grid; gap: 4px; }
.mini-stub__doc, .slip__type { font-weight: 700; }
.mini-stub__meta, .slip__meta { color: var(--ink-soft); font-size: .73rem; }

.status-badge { padding: 7px 12px; border: 0; border-radius: 999px; color: white; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.status-Pending, .status-Received { background: var(--orange); }
.status-Ready, .status-In-Progress { color: var(--ink); background: #e9be42; }
.status-Claimed, .status-Resolved { background: var(--green); }

.id-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 18px 0 42px; }
.id-card { padding: 18px; border: 1px solid var(--line); border-top: 5px solid var(--green); border-radius: 8px; background: linear-gradient(180deg, #fff, var(--paper)); }
.id-card__role { color: var(--green-dark); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.id-card__name { margin: 7px 0; font-weight: 700; }
.id-card__contact { color: var(--ink-soft); font-family: "IBM Plex Mono", monospace; font-size: .78rem; }
.notices-heading { margin-top: 8px; }
.corkboard { display: grid; gap: 14px; margin-top: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-dark); }
.notice { padding: 16px 18px; border-radius: 4px; color: white; box-shadow: 2px 3px 0 rgba(0,0,0,.15); transform: rotate(-.5deg); }
.notice:nth-child(2n) { transform: rotate(.6deg); }
.notice--orange { background: var(--orange); }
.notice--green { background: var(--green); }
.notice--gold { color: var(--ink); background: var(--gold); }
.notice__title { margin-bottom: 5px; font-family: "Fraunces", serif; font-size: 1.1rem; }
.notice__body { font-size: .87rem; line-height: 1.45; }
.notice__date { display: block; margin-top: 10px; font-family: "IBM Plex Mono", monospace; font-size: .7rem; opacity: .82; }

.hall-footer { display: grid; gap: 4px; padding: 25px 24px 45px; color: var(--ink-soft); text-align: center; font-size: .8rem; }
.hall-footer p { margin: 0; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .hall-header__inner { align-items: flex-start; padding: 25px 18px; }
  .header-note { display: none; }
  .tabs { overflow-x: auto; padding: 12px 14px 0; }
  .tab { flex: 1 0 auto; padding: 12px 14px; font-size: .82rem; }
  .desk { padding: 0 14px 50px; }
  .panel { padding: 28px 18px; border-radius: 0 0 5px 5px; }
  .panel__grid { grid-template-columns: 1fr; gap: 22px; }
  .counter-form { padding: 21px; }
  .mini-stub, .slip { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stub { animation: none; }
}