:root {
  --blp-green-950: #0b302d;
  --blp-green-900: #103f3a;
  --blp-green-800: #145d55;
  --blp-green-700: #23776c;
  --blp-green-100: #dceee9;
  --blp-green-50: #eff7f4;
  --blp-blue: #2563eb;
  --blp-paper: #fffdfa;
  --blp-bg: #f2f5f2;
  --blp-line: #d7e0dc;
  --blp-muted: #63746f;
  --blp-shadow: 0 18px 50px rgba(11, 48, 45, .12);
  --blp-gutter: clamp(18px, 2.6vw, 54px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: #172c29; background: var(--blp-bg); font-family: Inter, Montserrat, "Segoe UI", Arial, sans-serif; line-height: 1.48; }
button, input { font: inherit; }
button { cursor: pointer; }
.is-hidden { display: none !important; }
.eyebrow { margin: 0; color: var(--blp-green-700); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }

.access-screen { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top, #e7f2ee, #d8e5e1 44%, #cbd9d5); }
.access-card { width: min(100%, 450px); padding: 38px; border: 1px solid rgba(255,255,255,.8); border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: 0 28px 80px rgba(10,50,45,.22); }
.access-card img { width: 58px; height: 58px; object-fit: contain; }
.access-card h1 { margin: 12px 0 0; color: var(--blp-green-950); font-family: Georgia, serif; font-size: 2rem; }
.access-intro { margin: 5px 0 24px; color: var(--blp-muted); }
.access-card label { display: block; margin: 14px 0 7px; font-size: .84rem; font-weight: 800; }
.access-card input { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid #b9c8c3; border-radius: 9px; background: #fff; }
.access-card input:focus { outline: 3px solid rgba(37,99,235,.15); border-color: var(--blp-blue); }
.button { min-height: 46px; margin-top: 12px; padding: 10px 16px; border: 0; border-radius: 9px; font-weight: 850; }
.button.primary { color: #fff; background: var(--blp-green-800); }
.button.link { color: var(--blp-green-800); background: transparent; }
.button.full { width: 100%; }
.form-feedback { margin: 9px 0 0; font-size: .84rem; font-weight: 750; }
.form-feedback.error { color: #b42318; }
.form-feedback.success { color: #19734f; }

.app-shell { min-height: 100vh; }
.app-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 68px; padding: 8px var(--blp-gutter); border-bottom: 1px solid var(--blp-line); background: rgba(255,255,255,.95); backdrop-filter: blur(14px); }
.back-link { color: var(--blp-green-800); font-size: .85rem; font-weight: 850; text-decoration: none; }
.brand-title { display: flex; align-items: center; gap: 10px; }
.brand-title img { width: 38px; height: 38px; object-fit: contain; }
.brand-title div { display: grid; }
.brand-title strong { color: var(--blp-green-950); font-size: .84rem; letter-spacing: .08em; }
.brand-title span { color: var(--blp-muted); font-size: .72rem; }
.icon-button { justify-self: end; padding: 9px 13px; border: 1px solid var(--blp-line); border-radius: 9px; color: var(--blp-green-800); background: #fff; font-weight: 800; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; padding: 50px var(--blp-gutter) 54px; color: #fff; background: linear-gradient(118deg, var(--blp-green-950), #17675e 72%, #2b8074); }
.hero h1 { margin: 8px 0 10px; font-size: clamp(2rem, 3.7vw, 3.45rem); line-height: 1.05; }
.hero > div > p:last-child { max-width: 800px; margin: 0; color: #d9ebe6; }
.hero .eyebrow { color: #9ed1c7; }
.hero-summary { display: grid; min-width: 260px; padding: 20px 23px; border: 1px solid rgba(255,255,255,.28); border-radius: 15px; background: rgba(255,255,255,.09); }
.hero-summary span, .hero-summary small { color: #cce2dc; }
.hero-summary strong { margin: 3px 0; font-family: Georgia, serif; font-size: 1.8rem; }

.content-shell { width: 100%; padding: 42px var(--blp-gutter) 78px; }
.section-heading, .detail-title-row, .panel-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.section-heading { margin-bottom: 22px; }
.section-heading h2, .detail-heading h2 { margin: 4px 0 0; color: var(--blp-green-950); font-family: Georgia, serif; font-size: clamp(1.65rem, 3vw, 2.45rem); font-weight: 500; }
.result-count, .panel-badge { padding: 7px 12px; border-radius: 999px; color: var(--blp-green-800); background: var(--blp-green-100); font-size: .76rem; font-weight: 900; white-space: nowrap; }

.meeting-list { display: grid; gap: 13px; }
.meeting-card { display: grid; grid-template-columns: 130px minmax(280px, 1fr) auto auto; gap: 22px; align-items: center; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--blp-line); border-radius: 16px; color: inherit; background: var(--blp-paper); box-shadow: 0 8px 28px rgba(15,59,55,.05); text-align: left; transition: border-color .2s, box-shadow .2s, transform .2s; }
.meeting-card:hover { transform: translateY(-2px); border-color: #9dbab3; box-shadow: var(--blp-shadow); }
.meeting-card:focus-visible { outline: 3px solid rgba(37,99,235,.25); outline-offset: 3px; }
.meeting-card[aria-expanded="true"] { border-color: var(--blp-blue); background: #eff6ff; box-shadow: 0 0 0 3px rgba(37,99,235,.13), 0 14px 34px rgba(30,64,175,.12); }
.meeting-card[aria-expanded="true"] .meeting-date { background: linear-gradient(145deg, #1d4ed8, #3b82f6); }
.meeting-card[aria-expanded="true"] .meeting-kicker, .meeting-card[aria-expanded="true"] .meeting-open-text { color: #1d4ed8; }
.meeting-card[aria-expanded="true"] .meeting-open-text b { transform: rotate(90deg); }
.meeting-date { display: grid; place-items: center; align-content: center; min-height: 116px; color: #fff; background: var(--blp-green-800); }
.meeting-date.is-latest { background: linear-gradient(145deg, #0b4a43, #2a8a7d); }
.meeting-date.is-upcoming { background: linear-gradient(145deg, #8a5b00, #c48a18); }
.meeting-date b { font-family: Georgia, serif; font-size: 2.45rem; line-height: 1; }
.meeting-date small { margin-top: 5px; font-weight: 700; }
.meeting-main { display: grid; gap: 3px; }
.meeting-main strong { color: var(--blp-green-950); font-family: Georgia, serif; font-size: 1.3rem; }
.meeting-main small { color: var(--blp-muted); }
.meeting-kicker { color: var(--blp-green-700); font-size: .71rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.meeting-status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; color: #176b50; background: #e0f3ea; font-size: .8rem; font-weight: 800; }
.meeting-status i { width: 8px; height: 8px; border-radius: 50%; background: #21966f; }
.meeting-status.is-planned { color: #7a5000; background: #fff0c7; }
.meeting-status.is-planned i { background: #d89512; }
.meeting-open-text { display: flex; align-items: center; gap: 9px; padding-right: 25px; color: var(--blp-green-800); font-weight: 800; }
.meeting-open-text b { font-size: 1.55rem; transition: transform .2s ease; }

.meeting-detail { grid-column: 1 / -1; margin: 2px 0 18px; scroll-margin-top: 88px; }
.detail-heading { padding: 26px 28px; border: 1px solid var(--blp-line); border-radius: 16px 16px 0 0; background: #fff; }
.back-to-list { padding: 0; border: 0; color: var(--blp-green-800); background: transparent; font-weight: 850; }
.detail-title-row { margin-top: 20px; }
.detail-title-row p:not(.eyebrow) { margin: 5px 0 0; color: var(--blp-muted); }
.detail-meta { display: grid; min-width: 245px; padding: 13px 15px; border-left: 4px solid var(--blp-green-700); background: var(--blp-green-50); }
.detail-meta span { color: var(--blp-muted); font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.detail-meta strong { color: var(--blp-green-950); }
.detail-tabs { display: grid; grid-template-columns: repeat(2, 1fr); border-right: 1px solid var(--blp-line); border-left: 1px solid var(--blp-line); background: #fff; }
.detail-tab { min-height: 61px; padding: 12px 18px; border: 0; border-right: 1px solid var(--blp-line); color: #4b5b56; background: #fff; font-weight: 850; }
.detail-tab:last-child { border-right: 0; }
.detail-tab span { margin-right: 7px; color: #8a9793; font-size: .74rem; }
.detail-tab.is-active { color: #fff; background: var(--blp-green-800); }
.detail-tab.is-active span { color: #cfe7e1; }
.detail-panel { padding: 30px 28px 34px; border: 1px solid var(--blp-line); border-radius: 0 0 16px 16px; background: #fff; box-shadow: var(--blp-shadow); }
.panel-heading { margin-bottom: 18px; }
.panel-heading h3 { margin: 4px 0 0; color: var(--blp-green-950); font-family: Georgia, serif; font-size: clamp(1.4rem, 2.3vw, 1.95rem); font-weight: 500; }
.table-wrap { overflow: auto; border: 1px solid var(--blp-line); border-radius: 11px; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .83rem; }
.data-table th, .data-table td { padding: 12px 13px; border-right: 1px solid #d8e0dd; border-bottom: 1px solid #d8e0dd; vertical-align: top; text-align: left; }
.data-table th:last-child, .data-table td:last-child { border-right: 0; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table thead th { position: sticky; top: 0; z-index: 2; color: #fff; background: var(--blp-green-900); font-size: .71rem; letter-spacing: .02em; }
.data-table tbody tr:nth-child(even) td { background: #fbfaf7; }
.data-table tbody tr:hover td { background: #f1f7f5; }
.protocol-table { width: 100%; min-width: 1180px; table-layout: fixed; }
.protocol-table th:first-child, .protocol-table td:first-child { width: 54px; text-align: center; }
.protocol-table th:nth-child(2) { min-width: 190px; }
.protocol-table th:nth-child(3) { min-width: 310px; }
.protocol-table th:nth-child(4) { min-width: 190px; }
.protocol-table th:nth-child(5) { min-width: 125px; }
.protocol-table th:nth-child(6) { min-width: 260px; }
.participant-table th:first-child, .participant-table td:first-child { width: 70px; text-align: center; }
.empty-state { display: flex; align-items: center; gap: 16px; min-height: 120px; padding: 24px; border: 1px dashed #b8cac4; border-radius: 12px; color: var(--blp-muted); background: var(--blp-green-50); }
.empty-state > span { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; color: var(--blp-green-800); background: #fff; font-size: 1.5rem; }
.empty-state strong { color: var(--blp-green-950); }
.empty-state p { margin: 3px 0 0; }

@media (min-width: 1200px) {
  .meeting-list { gap: 15px; }
  .meeting-card { grid-template-columns: 142px minmax(420px, 1fr) auto 190px; }
  .meeting-main { padding: 3px 0; }
  .meeting-open-text { justify-content: flex-end; }
  .detail-panel { padding: 32px; }
  .protocol-table { min-width: 0; }
  .protocol-table th:nth-child(1) { width: 4%; }
  .protocol-table th:nth-child(2) { width: 15%; min-width: 0; }
  .protocol-table th:nth-child(3) { width: 25%; min-width: 0; }
  .protocol-table th:nth-child(4) { width: 15%; min-width: 0; }
  .protocol-table th:nth-child(5) { width: 10%; min-width: 0; }
  .protocol-table th:nth-child(6) { width: 21%; min-width: 0; }
  .protocol-table th:nth-child(7) { width: 10%; }
  .protocol-table th, .protocol-table td { overflow-wrap: anywhere; hyphens: auto; }
}

@media (max-width: 980px) {
  .meeting-card { grid-template-columns: 95px 1fr auto; gap: 14px; }
  .meeting-open-text { grid-column: 2 / -1; padding: 0 18px 13px 0; }
  .meeting-date { grid-row: 1 / span 2; min-height: 125px; }
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-summary { min-width: 0; }
}

@media (max-width: 680px) {
  .app-header { grid-template-columns: auto 1fr auto; padding: 8px 12px; }
  .brand-title div { display: none; }
  .hero { padding: 38px 18px; }
  .content-shell { width: 100%; padding: 28px 12px 60px; }
  .section-heading, .detail-title-row, .panel-heading { align-items: stretch; flex-direction: column; }
  .meeting-card { grid-template-columns: 78px 1fr; }
  .meeting-date { grid-row: 1 / span 3; min-height: 142px; }
  .meeting-date b { font-size: 2rem; }
  .meeting-status { justify-self: start; }
  .meeting-open-text { grid-column: 2; }
  .detail-heading, .detail-panel { padding: 21px 15px; }
  .detail-meta { min-width: 0; }
  .detail-tabs { grid-template-columns: 1fr; }
  .detail-tab { border-right: 0; border-bottom: 1px solid var(--blp-line); text-align: left; }
  .detail-tab:last-child { border-bottom: 0; }
}

@media print {
  body { background: #fff; }
  .no-print, .access-screen, .hero, .meeting-card, .section-heading { display: none !important; }
  .content-shell { width: 100%; padding: 0; }
  .meeting-detail { display: block !important; margin: 0 0 24px; break-after: page; }
  .detail-heading, .detail-panel { padding: 12px 0; border: 0; box-shadow: none; }
  .detail-panel[hidden] { display: none !important; }
  .table-wrap { overflow: visible; }
  .data-table, .protocol-table { min-width: 0; font-size: 8pt; }
  .data-table thead th { position: static; color: #000; background: #ddd !important; }
  .data-table th, .data-table td { padding: 5px; border-color: #777; }
}
