/* Amna Views: base stylesheet shared by every public page and article. */
:root {
  --olive: #3D4A26;
  --olive-2: #4B5320;
  --olive-dark: #2F3A1D;
  --olive-tint: #EEF0E4;
  --ivory: #FAF9F6;
  --white: #FFFFFF;
  --ink: #1E2420;
  --muted: #545B53;
  --line: #E2DFD5;
  --line-2: #CFCBBE;
  --footer: #1A1D1A;
  --footer-text: #B9BDB5;
  --accent: #6B5A2E;
  --danger: #9B2C2C;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--olive); text-underline-offset: 2px; }
a:hover { color: var(--olive-dark); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid #A8B47A; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
[hidden] { display: none !important; }

/* Header */
.site-header { background: var(--olive); color: var(--white); }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand-mark { width: 40px; height: 40px; border: 1.5px solid rgba(255,255,255,.75); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: .04em; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 24px; font-weight: 700; }
.brand-sub { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #E4E8D6; }
.primary-nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.primary-nav a { color: var(--white); text-decoration: none; font-size: 15px; padding: 10px 12px; border-radius: 4px; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: var(--white); }
.primary-nav .nav-admin { border: 1px solid rgba(255,255,255,.45); margin-left: 6px; }
.nav-toggle { display: none; background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.5); border-radius: 4px; padding: 8px 14px; font: inherit; font-size: 15px; cursor: pointer; min-height: 44px; }
.region-nav { background: var(--olive-dark); border-top: 1px solid rgba(255,255,255,.08); }
.region-nav-inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: thin; }
.region-nav a { color: #F2F4EA; text-decoration: none; white-space: nowrap; font-size: 14.5px; padding: 11px 14px; border-bottom: 3px solid transparent; }
.region-nav a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.region-nav a[aria-current="page"] { border-bottom-color: #C9D19F; color: var(--white); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .primary-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .primary-nav.open { display: flex; }
  .primary-nav .nav-admin { margin-left: 0; }
}

/* Generic sections */
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 8px; }
.lede { font-size: 19px; color: var(--muted); max-width: 62ch; }
.intro { background: var(--white); border-bottom: 1px solid var(--line); }
.intro-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end; padding-top: 48px; padding-bottom: 44px; }
.intro h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 12px; }
.search-hero, .search-form { display: flex; gap: 8px; flex-wrap: wrap; }
.search-hero input, .search-form input { flex: 1 1 220px; }
.page-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 40px 0 28px; }
.page-head h1 { font-size: clamp(28px, 3.6vw, 40px); margin: 0 0 10px; }
.page { padding-top: 32px; padding-bottom: 56px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin: 48px 0 20px; }
.section-head h2 { margin: 0; font-size: 26px; }
.section-head h2 a { color: var(--ink); text-decoration: none; }
.section-head h2 a:hover { color: var(--olive); }
.more { font-size: 14.5px; font-weight: 600; }
.col-title { font-size: 22px; margin: 32px 0 16px; padding-bottom: 6px; border-bottom: 1px solid var(--line-2); }
.empty { color: var(--muted); font-style: italic; }

@media (max-width: 860px) { .intro-inner { grid-template-columns: 1fr; gap: 20px; } }

/* Forms and buttons */
input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="url"], input:not([type]), select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1px solid var(--line-2); border-radius: 4px; padding: 10px 12px; min-height: 44px; width: 100%;
}
textarea { min-height: 120px; resize: vertical; }
.search-hero select, .search-form select { width: auto; flex: 0 1 200px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 4px; font: inherit; font-size: 15.5px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--olive); color: var(--white); }
.btn-primary:hover { background: var(--olive-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--olive); border-color: var(--olive); }
.btn-ghost:hover { background: var(--olive-tint); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-small { min-height: 34px; padding: 5px 12px; font-size: 14px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field.check { display: flex; gap: 10px; align-items: flex-start; }
.field.check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; flex-shrink: 0; }
.field.check label { font-weight: 400; }
.hint { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.hp { position: absolute; left: -9999px; }
.flash { padding: 12px 16px; border-radius: 4px; margin: 0 0 16px; border: 1px solid; }
.flash-ok { background: #EEF2E4; border-color: #B5C29A; }
.flash-error { background: #FBEAEA; border-color: #D9A3A3; }
.flash-warn { background: #FBF4E2; border-color: #DCC68A; }

/* Tags, meta */
.meta { margin: 0 0 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); border: 1px solid #D8CFB4; background: #FBF8EE; padding: 2px 8px; border-radius: 3px; text-decoration: none; }
.tag-region { color: var(--olive); border-color: #C8CFAE; background: var(--olive-tint); }
.meta-line { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.news-meta { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* Featured */
.featured { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--olive); border-radius: var(--radius); padding: 32px; margin: 36px 0 0; }
.featured-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.featured h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 0 0 12px; }
.featured h2 a { color: var(--ink); text-decoration: none; }
.featured h2 a:hover { color: var(--olive); }
.featured-summary { font-size: 18px; color: var(--muted); }
.featured .btn { margin-top: 16px; }
@media (max-width: 860px) { .featured-grid { grid-template-columns: 1fr; } .featured { padding: 22px; } }

.keypoints { background: var(--olive-tint); border-radius: var(--radius); padding: 18px 22px; }
.keypoints h2, .keypoints h3 { font-size: 16px; font-family: var(--sans); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; color: var(--olive-dark); }
.keypoints ul { margin: 0; padding-left: 20px; }
.keypoints li { margin: 6px 0; }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs button, .tabs a { font: inherit; font-size: 14px; background: var(--white); color: var(--ink); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; min-height: 36px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.tabs button[aria-selected="true"], .tabs a[aria-current="page"] { background: var(--olive); color: var(--white); border-color: var(--olive); }
.tabs-links { margin: 28px 0 8px; }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.card h3 { font-size: 20px; margin: 4px 0 8px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--olive); text-decoration: underline; }
.card-summary { color: var(--muted); font-size: 15.5px; margin: 0 0 8px; flex: 1; }
.result-list { display: flex; flex-direction: column; gap: 14px; }

.region-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 24px; }
.region-main .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.region-side { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.side-label { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 6px; }
.side-title { font-family: var(--serif); font-size: 18px; margin: 0 0 18px; }
.region-desc { color: var(--muted); }
@media (max-width: 860px) { .region-grid { grid-template-columns: 1fr; } .region-main .grid-3 { grid-template-columns: 1fr; } }

.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.news-list li:last-child { border-bottom: 0; }
.news-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.news-list a:hover { color: var(--olive); text-decoration: underline; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }

.two-col { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; padding-bottom: 56px; }
.sidebar { padding-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.side-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.side-box h2 { font-size: 18px; margin: 0 0 10px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } .sidebar { padding-top: 0; } }

.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 28px 0; font-size: 15px; }

/* Article view */
.article-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 44px 0 28px; }
.article-head h1 { font-size: clamp(30px, 4.4vw, 46px); margin: 6px 0 14px; }
.standfirst { font-size: 20px; color: var(--muted); font-family: var(--serif); margin: 0 0 22px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14.5px; }
.article-meta dt { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }
.article-meta dd { margin: 0; font-weight: 600; }
.article-body-wrap { padding-top: 32px; padding-bottom: 48px; }
.article-body-wrap .keypoints { margin-bottom: 28px; }
.prose { font-size: 18px; line-height: 1.7; }
.prose h2 { font-size: 26px; margin: 36px 0 12px; }
.prose h3 { font-size: 21px; margin: 28px 0 10px; }
.prose blockquote { margin: 24px 0; padding: 4px 20px; border-left: 3px solid var(--olive-2); color: var(--muted); font-family: var(--serif); }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose table, .legal table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td, .legal th, .legal td { border: 1px solid var(--line-2); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th, .legal th { background: var(--olive-tint); }
.table-wrap { overflow-x: auto; margin: 12px 0 20px; }
.method-note { margin-top: 36px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: var(--radius); }
.method-note h2, .sources h2 { font-size: 18px; margin: 0 0 8px; }
.method-note p { margin: 0; font-size: 15.5px; color: var(--muted); }
.sources { margin-top: 28px; }
.sources ol { padding-left: 22px; font-size: 15.5px; }
.sources li { margin: 6px 0; }
.disclosure { margin-top: 28px; font-size: 14.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.related { padding-bottom: 56px; }
.related h2 { font-size: 24px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.preview-bar { background: #FBF4E2; border-bottom: 1px solid #DCC68A; text-align: center; padding: 10px; font-size: 15px; }

/* About */
.focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 12px 0 8px; }
.focus-card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--olive); border-radius: var(--radius); padding: 16px; }
.focus-card h3 { font-size: 18px; margin: 0 0 6px; }
.focus-card p { margin: 0; font-size: 15.5px; color: var(--muted); }
@media (max-width: 760px) { .focus-grid { grid-template-columns: 1fr; } }
.legal h2 { font-size: 23px; margin-top: 32px; }

/* Footer */
.site-footer { background: var(--footer); color: var(--footer-text); padding: 48px 0 24px; margin-top: 24px; font-size: 15px; }
.site-footer a, .site-footer .linklike { color: #D7DBD2; text-decoration: none; }
.site-footer a:hover, .site-footer .linklike:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid h2 { font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #9EA499; margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 0 0 8px; }
.footer-brand { font-family: var(--serif); font-size: 22px; color: var(--white); margin: 0 0 8px; }
.footer-base { border-top: 1px solid #333833; margin-top: 32px; padding-top: 18px; font-size: 13.5px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Cookie banner and modal */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--white); border-top: 3px solid var(--olive); box-shadow: 0 -6px 24px rgba(0,0,0,.08); }
.cookie-banner-inner { max-width: var(--wrap); margin: 0 auto; padding: 18px 24px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookie-banner p { margin: 0; flex: 1 1 420px; font-size: 15px; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(20,24,20,.55); display: grid; place-items: center; padding: 16px; }
.modal-box { background: var(--white); border-radius: 8px; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 26px; }
.modal-box h2 { margin: 0 0 8px; }
.consent-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; border-top: 1px solid var(--line); padding: 14px 0; }
.consent-row p { margin: 4px 0 0; font-size: 14.5px; color: var(--muted); }
.always-on { font-size: 13px; font-weight: 600; color: var(--olive); white-space: nowrap; }
.switch { appearance: none; -webkit-appearance: none; width: 48px !important; min-width: 48px; height: 28px; min-height: 28px !important; padding: 0 !important; border-radius: 999px; background: #C9C6BA; position: relative; cursor: pointer; border: 0 !important; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); transition: left .15s; }
.switch:checked { background: var(--olive); }
.switch:checked::after { left: 23px; }

@media print {
  .site-header, .site-footer, .cookie-banner, .related, .preview-bar { display: none; }
  body { background: #fff; }
}

/* Citations and briefing lists inside articles */
.prose sup { line-height: 0; }
.prose sup a { text-decoration: none; font-size: .78em; font-family: var(--sans); }
.prose .briefing-list li, .prose ul li strong { color: var(--ink); }
.sources li:target { background: #FBF4E2; }
