:root {
  --navy: #2d4174;
  --navy-dark: #20335f;
  --cyan: #00b9d3;
  --blue: #284fa5;
  --ink: #25345d;
  --text: #313a4e;
  --muted: #798195;
  --line: #dbe0e9;
  --line-soft: #edf0f4;
  --surface-soft: #f6f8fb;
  --white: #fff;
  --success: #25885b;
  --error: #b64141;
  --warning: #9d6b17;
  --content: 1440px;
  --radius: 4px;
  --shadow: 0 14px 38px rgba(37, 52, 93, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--white);
  font: 15px/1.55 "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--cyan); }
button, input, select { font: inherit; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Header — proportions and color follow the current Clever IP website. */
.site-header { background: var(--navy); color: var(--white); }
.site-header__inner {
  width: min(100%, var(--content)); min-height: 106px; margin: 0 auto; padding: 22px 60px;
  display: flex; align-items: center; gap: 42px;
}
.brand { display: block; width: 168px; flex: 0 0 168px; }
.brand img { display: block; width: 100%; height: auto; }
.primary-menu { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 33px; }
.primary-menu a {
  position: relative; color: rgba(255,255,255,.94); font-size: 14px; font-weight: 500;
  line-height: 1.3; text-align: center; transition: color .2s ease;
}
.primary-menu a:hover { color: #fff; }
.primary-menu a.is-current::after {
  content: ""; position: absolute; height: 2px; left: 0; right: 0; bottom: -10px; background: var(--cyan);
}
.menu-toggle { display: none; margin-left: auto; padding: 8px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle > span:not(.sr-only) { display: block; width: 26px; height: 2px; margin: 5px 0; background: #fff; }
.section-nav { border-top: 1px solid rgba(255,255,255,.12); background: var(--navy-dark); }
.section-nav__inner {
  width: min(100%, var(--content)); height: 48px; margin: 0 auto; padding: 0 60px;
  display: flex; align-items: stretch; gap: 34px;
}
.section-nav a {
  display: flex; align-items: center; position: relative; color: rgba(255,255,255,.72);
  font-size: 13px; font-weight: 600;
}
.section-nav a:hover, .section-nav a.is-current { color: #fff; }
.section-nav a.is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--cyan); }

/* Page shell and headings. */
.page-shell { width: min(100%, var(--content)); min-height: 560px; margin: 0 auto; padding: 66px 60px 100px; }
.page-intro { margin: 0 auto 48px; text-align: center; }
.page-intro--detail { max-width: 1120px; margin-bottom: 36px; }
.eyebrow { display: block; margin-bottom: 14px; color: var(--cyan); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.page-title {
  margin: 0; color: var(--ink); font-size: clamp(34px, 3.55vw, 56px); font-weight: 500;
  line-height: 1.18; letter-spacing: -.035em;
}
.page-intro--detail .page-title { font-size: clamp(30px, 3vw, 49px); }
.page-sub { max-width: 720px; margin: 20px auto 0; color: var(--muted); font-size: 16px; }
.back-link { display: inline-flex; margin: -26px 0 36px; color: var(--blue); font-size: 13px; font-weight: 600; }
.intro-actions { margin-top: 22px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 34px; color: var(--muted); }
.text-link { font-weight: 600; }
.person-photo { width: 96px; height: 96px; margin-bottom: 18px; border-radius: 50%; object-fit: cover; }

/* Topic tiles from the supplied schedule mockup. */
.topic-tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 42px; }
.topic-tabs a {
  min-height: 116px; padding: 24px; display: flex; align-items: center; justify-content: center;
  color: #fff; background: var(--navy); border-right: 1px solid rgba(255,255,255,.22);
  font-size: clamp(17px, 1.5vw, 23px); font-weight: 500; text-align: center; transition: background .18s ease;
}
.topic-tabs a:last-child { border-right: 0; }
.topic-tabs a:hover, .topic-tabs a.is-active { color: #fff; background: var(--cyan); }

/* Collapsible filters. */
.filter-panel { margin: 0 0 42px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-panel summary {
  min-height: 62px; padding: 0 4px; display: flex; align-items: center; gap: 16px; cursor: pointer;
  color: var(--ink); list-style: none;
}
.filter-panel summary::-webkit-details-marker { display: none; }
.filter-panel summary::after { content: "+"; margin-left: auto; color: var(--blue); font-size: 25px; font-weight: 400; }
.filter-panel[open] summary::after { content: "−"; }
.filter-panel__label { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.filter-panel__label svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.filter-panel__hint { color: var(--muted); font-size: 13px; }
.filters { padding: 24px 4px 30px; border-top: 1px solid var(--line-soft); }
.filters__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--wide { grid-column: span 2; }
.field--search { grid-column: span 2; }
.field > span { color: var(--ink); font-size: 12px; font-weight: 600; }
input[type="date"], input[type="text"], input[type="email"], input[type="search"], select {
  width: 100%; min-height: 44px; padding: 10px 12px; color: var(--text); background: #fff;
  border: 1px solid #cfd5df; border-radius: var(--radius); outline: none; transition: border .15s, box-shadow .15s;
}
input::placeholder { color: #a1a8b5; }
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40,79,165,.1); }
.filters__foot { margin-top: 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.checkbox { margin-left: 4px; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; cursor: pointer; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--navy); }

/* Buttons. */
.btn {
  min-height: 44px; padding: 10px 22px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: var(--navy); border: 1px solid var(--navy); border-radius: var(--radius);
  font-weight: 600; cursor: pointer; transition: background .15s, border .15s, color .15s;
}
.btn:hover { color: #fff; background: var(--cyan); border-color: var(--cyan); }
.btn--ghost { color: var(--navy); background: transparent; border-color: #c9d0dc; }
.btn--ghost:hover { color: var(--blue); background: var(--surface-soft); border-color: var(--blue); }
.btn--sm { min-height: 36px; padding: 7px 14px; font-size: 12px; }

/* Tables. */
.results-head, .section-heading {
  margin: 0 0 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
}
.results-head h2, .section-heading h2, .access-card h2 { margin: 0; color: var(--ink); font-size: 21px; font-weight: 600; }
.results-head > span { color: var(--muted); font-size: 13px; }
.section-heading > a { font-size: 13px; font-weight: 600; }
.table-wrap { width: 100%; overflow-x: auto; border-top: 1px solid var(--ink); }
.table-wrap--plain { border-top-color: var(--line); }
table.data { width: 100%; min-width: 1080px; border-collapse: collapse; table-layout: auto; font-size: 12px; }
table.data th {
  padding: 15px 12px; color: var(--ink); background: #fff; border-bottom: 1px solid var(--line);
  font-size: 11px; font-weight: 700; line-height: 1.35; text-align: left; vertical-align: bottom;
}
table.data td { padding: 19px 12px; border-bottom: 1px solid var(--line); line-height: 1.5; vertical-align: top; }
table.data tbody tr { transition: background .15s ease; }
table.data tbody tr:hover { background: #f8fafc; }
table.data a { color: var(--blue); font-weight: 500; }
table.data a:hover { color: var(--cyan); }
.meetings-table th:first-child, .meetings-table td:first-child { padding-left: 8px; }
.meetings-table th:last-child, .meetings-table td:last-child { padding-right: 8px; }
.th-date { display: inline-flex; align-items: center; gap: 7px; }
.th-date svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.date-cell { color: var(--ink); font-weight: 600; white-space: nowrap; }
.object-link small { margin-left: 3px; padding: 2px 5px; color: var(--muted); background: var(--surface-soft); border-radius: 3px; font-size: 9px; }
.reg { margin-left: 4px; }
.ois-thumb-link { display: inline-flex; padding: 5px; background: #fff; border: 1px solid var(--line-soft); }
.ois-thumb {
  display: block; width: auto; height: auto; max-width: 104px; max-height: 72px;
  object-fit: contain;
}
.ois-mark {
  width: max-content; max-width: 100%; margin-top: 24px; padding: 14px; display: block;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(37,52,93,.06);
}
.ois-mark img { display: block; width: auto; height: auto; max-width: min(420px, 100%); max-height: 300px; object-fit: contain; }
.ppc { border-bottom: 1px dotted var(--muted); cursor: help; }
.muted { color: var(--muted); }
.status-badge { display: block; width: max-content; margin-top: 4px; color: var(--warning); font-size: 10px; text-transform: uppercase; }
.data--compact { min-width: 600px !important; }
.data--compact th, .data--compact td { padding-left: 18px !important; padding-right: 18px !important; }
.previous-decisions { max-width: 820px; margin: 0 auto 36px; }
.object-type { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.document-link { display: block; margin-top: 5px; }
.pdf-status { display: inline-flex; padding: 3px 7px; border-radius: 3px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.pdf-status--saved { color: var(--success); background: #e9f6ef; }
.pdf-status--remote { color: var(--warning); background: #fbf3e3; }
.pdf-status--missing { color: var(--error); background: #fbecec; }

/* Empty state and pagination. */
.empty-state { padding: 62px 20px 70px; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty-state__icon {
  width: 45px; height: 45px; margin: 0 auto 17px; display: grid; place-items: center; color: var(--navy);
  border: 1px solid var(--navy); border-radius: 50%; font-size: 14px; font-weight: 700;
}
.empty-state h2 { margin: 0; color: var(--ink); font-size: 22px; font-weight: 600; }
.empty-state p { margin: 8px 0 17px; color: var(--muted); }
.empty-state a { font-weight: 600; }
.pager { margin-top: 28px; display: flex; justify-content: center; align-items: center; gap: 18px; }
.pager > span { color: var(--muted); font-size: 12px; }

/* Subscription calls to action. */
.subscribe, .access-card {
  margin: 42px 0; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  color: var(--text); background: var(--surface-soft); border-left: 4px solid var(--cyan);
}
.subscribe--compact { max-width: 980px; margin: 0 auto 42px; }
.subscribe--person { margin-top: 0; }
.subscribe__title, .access-card h2 { color: var(--ink); font-size: 18px; font-weight: 700; }
.subscribe p, .access-card p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.subscribe form, .access-card form { min-width: 420px; display: flex; align-items: center; gap: 10px; }
.subscribe input[type="email"], .access-card input[type="email"] { min-width: 240px; }
.subscribe__forms { display: flex; flex-direction: column; gap: 10px; }
.subscribe__forms form { margin: 0; }

/* Archive stats and messages. */
.stats-row { margin: -16px 0 42px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-row > div { padding: 20px 24px; border-right: 1px solid var(--line); }
.stats-row > div:last-child { border-right: 0; }
.stats-row strong { display: block; color: var(--ink); font-size: 22px; font-weight: 600; }
.stats-row span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.stats-row .stat-error strong { color: var(--error); }
.messages { margin: -28px 0 34px; padding: 0; list-style: none; }
.messages li { margin-bottom: 8px; padding: 13px 16px; border-left: 3px solid currentColor; background: var(--surface-soft); }
.messages li.success { color: var(--success); }
.messages li.error { color: var(--error); }
.messages li.warning { color: var(--warning); }

/* Compatibility for confirmation / unsubscribe cards. */
.card.detail-head { max-width: 760px; margin: 30px auto 90px; padding: 42px; text-align: center; background: var(--surface-soft); }
.card.detail-head .page-title { font-size: 34px; }
.detail-actions { margin-top: 22px; display: flex; justify-content: center; gap: 10px; }

/* Footer. */
.site-footer { color: rgba(255,255,255,.76); background: var(--navy); }
.site-footer__inner {
  width: min(100%, var(--content)); margin: 0 auto; padding: 50px 60px;
  display: grid; grid-template-columns: .9fr 1.15fr 1.2fr; gap: 56px; align-items: start;
}
.footer-brand img { display: block; width: 155px; margin-bottom: 25px; }
.footer-brand span, .footer-source { font-size: 11px; line-height: 1.7; }
.footer-meta { display: grid; gap: 12px; font-size: 13px; }
.footer-meta a { color: #fff; font-size: 17px; font-weight: 600; }
.freshness { margin-top: 8px; color: rgba(255,255,255,.52); }
.freshness--error { color: #ffb4b4; }

@media (max-width: 1180px) {
  .site-header__inner, .section-nav__inner, .page-shell, .site-footer__inner { padding-left: 32px; padding-right: 32px; }
  .primary-menu { gap: 20px; }
  .primary-menu a { font-size: 12px; }
  .filters__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .topic-tabs a { min-height: 96px; }
}

@media (max-width: 900px) {
  .site-header__inner { min-height: 86px; }
  .menu-toggle { display: block; }
  .primary-menu {
    display: none; position: absolute; z-index: 20; top: 86px; left: 0; right: 0; margin: 0;
    padding: 22px 32px 28px; flex-direction: column; align-items: flex-start; gap: 18px; background: var(--navy-dark);
    box-shadow: var(--shadow);
  }
  .primary-menu.is-open { display: flex; }
  .primary-menu a { font-size: 15px; text-align: left; }
  .primary-menu a.is-current::after { bottom: -5px; }
  .section-nav__inner { overflow-x: auto; }
  .section-nav a { white-space: nowrap; }
  .topic-tabs { grid-template-columns: repeat(2, 1fr); }
  .topic-tabs a:nth-child(2) { border-right: 0; }
  .topic-tabs a:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.22); }
  .filters__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--search { grid-column: span 2; }
  .subscribe, .access-card { align-items: flex-start; flex-direction: column; }
  .subscribe form, .access-card form { min-width: 0; width: 100%; }
  .subscribe__forms { width: 100%; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stats-row > div:nth-child(2) { border-right: 0; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .footer-source { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .site-header__inner, .section-nav__inner, .page-shell, .site-footer__inner { padding-left: 18px; padding-right: 18px; }
  .site-header__inner { min-height: 78px; }
  .brand { width: 142px; flex-basis: 142px; }
  .primary-menu { top: 78px; padding-left: 18px; padding-right: 18px; }
  .section-nav__inner { height: 46px; gap: 24px; }
  .page-shell { padding-top: 44px; padding-bottom: 68px; }
  .page-intro { margin-bottom: 34px; }
  .page-title, .page-intro--detail .page-title { font-size: 31px; }
  .page-title br { display: none; }
  .page-sub { margin-top: 14px; font-size: 14px; }
  .back-link { margin-top: -16px; margin-bottom: 28px; }
  .topic-tabs { margin-left: -18px; margin-right: -18px; margin-bottom: 28px; }
  .topic-tabs a { min-height: 78px; padding: 15px 10px; font-size: 15px; }
  .filter-panel { margin-bottom: 30px; }
  .filter-panel__hint { display: none; }
  .filters__grid { grid-template-columns: 1fr; }
  .field--wide, .field--search { grid-column: auto; }
  .results-head { margin-top: 0; }
  .results-head h2 { font-size: 18px; }
  .meetings-table, .decisions-table, .subscriptions-table, .table-wrap--plain { overflow: visible; border-top: 0; }
  table.data { min-width: 0; }
  table.data thead { display: none; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr { margin-bottom: 16px; padding: 8px 16px; border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(37,52,93,.05); }
  table.data td, .data--compact td { min-height: 43px; padding: 11px 0 !important; display: grid; grid-template-columns: 122px 1fr; gap: 14px; border-bottom: 1px solid var(--line-soft); }
  table.data td:last-child { border-bottom: 0; }
  table.data td::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.45; text-transform: uppercase; }
  table.data tbody tr:hover { background: #fff; }
  .nowrap { white-space: normal; }
  .date-cell { white-space: normal; }
  .previous-decisions { max-width: none; }
  .subscribe, .access-card { margin: 30px 0; padding: 24px 20px; }
  .subscribe form, .access-card form, .subscribe__forms form { flex-direction: column; align-items: stretch; }
  .subscribe input[type="email"], .access-card input[type="email"] { min-width: 0; }
  .subscribe .btn, .access-card .btn { width: 100%; }
  .stats-row { margin-top: -5px; }
  .stats-row > div { padding: 16px 12px; }
  .stats-row strong { font-size: 18px; }
  .pager { flex-wrap: wrap; gap: 10px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-source { grid-column: auto; }
  .card.detail-head { padding: 28px 20px; }
  .card.detail-head .page-title { font-size: 28px; }
}
