:root {
  --ink: #101828;
  --muted: #667085;
  --paper: #f5f7fb;
  --card: #fff;
  --night: #111827;
  --night-soft: #1f2937;
  --accent: #3157ff;
  --accent-hot: #13a89e;
  --signal: #3157ff;
  --line: #e2e7ef;
  --shadow: 0 18px 50px rgb(15 23 42 / 9%);
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  line-height: 1.6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 20rem; }
a { color: inherit; text-decoration: none; }
.container { width: min(78rem, calc(100% - 2.5rem)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 30; box-shadow: 0 10px 30px rgb(15 23 42 / 5%); }
.topline { background: var(--night); color: #dbe4f0; font-size: 0.67rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.topline-inner { min-height: 1.8rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.masthead { min-height: 5.25rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-header::before { content: ""; position: absolute; inset: 1.8rem 0 0; background: rgb(255 255 255 / 97%); backdrop-filter: blur(16px); z-index: -1; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--ink); }
.brand-mark { width: 2.65rem; aspect-ratio: 1; display: grid; place-items: center; background: var(--accent); color: white; font: 900 1.55rem/1 Georgia, serif; border-radius: 0.2rem 0.75rem 0.2rem 0.2rem; box-shadow: 0 8px 22px rgb(49 87 255 / 23%); }
.brand strong { display: block; font-size: 1.3rem; line-height: 1; letter-spacing: 0.12em; }
.brand small { display: block; margin-top: 0.3rem; color: #7b8798; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.18em; }
.language-switch { border: 1px solid var(--line); border-radius: 99rem; padding: 0.5rem 0.9rem; color: #344054; font-size: 0.76rem; font-weight: 800; }
.language-switch:hover { border-color: var(--accent); color: var(--accent); }

.nav-shell { background: white; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.primary-nav { height: 3.1rem; display: flex; align-items: stretch; gap: 0.15rem; color: var(--ink); }
.home-link, .nav-group > summary { display: flex; align-items: center; height: 100%; padding: 0 1rem; cursor: pointer; color: #475467; font-size: 0.82rem; font-weight: 750; white-space: nowrap; list-style: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: "+"; margin-left: 0.45rem; color: var(--accent-hot); font-size: 0.95rem; }
.nav-group[open] > summary, .nav-group > summary:hover, .home-link:hover { background: #f0f3ff; color: var(--accent); }
.nav-group { position: relative; }
.submenu { position: absolute; top: calc(100% + 0.15rem); left: 0; width: min(44rem, calc(100vw - 2rem)); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem; padding: 1rem; border: 1px solid var(--line); border-radius: 0 0 1rem 1rem; background: white; box-shadow: 0 25px 60px rgb(15 23 42 / 16%); }
.submenu-heading { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 1rem; padding: 0.35rem 0.5rem 0.85rem; border-bottom: 1px solid var(--line); }
.submenu-heading strong { color: var(--ink); font-size: 1.1rem; }
.submenu-heading span { color: var(--muted); font-size: 0.74rem; }
.submenu > a { padding: 0.75rem; border-radius: 0.55rem; }
.submenu > a:hover { background: #f3f5ff; }
.submenu > a strong, .submenu > a span { display: block; }
.submenu > a strong { color: var(--ink); font-size: 0.86rem; }
.submenu > a span { margin-top: 0.15rem; color: var(--muted); font-size: 0.7rem; line-height: 1.35; }

.eyebrow { margin: 0; color: var(--accent); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; }

.portal-content { padding-block: 1.25rem 5rem; }
.lead-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.75fr); gap: 1.25rem; }
.lead-story { position: relative; overflow: hidden; min-height: 27rem; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.5rem, 4vw, 3.5rem); border-radius: 1.25rem; background: #162033; color: white; box-shadow: var(--shadow); }
.lead-story::after { content: ""; position: absolute; width: 24rem; height: 24rem; right: -10rem; top: -11rem; border: 5rem solid rgb(255 255 255 / 4%); border-radius: 50%; }
.lead-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lead-image-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(10 18 33 / 94%) 0%, rgb(10 18 33 / 77%) 55%, rgb(10 18 33 / 28%) 100%); }
.lead-accent { position: absolute; z-index: 2; inset: 0 auto 0 0; width: 0.45rem; background: linear-gradient(var(--accent), var(--accent-hot)); }
.lead-story h2 { position: relative; z-index: 1; max-width: 50rem; margin: 0.7rem 0 0.8rem; font: 750 clamp(2rem, 4vw, 3.7rem)/1.06 Georgia, serif; letter-spacing: -0.035em; }
.lead-story p { position: relative; z-index: 1; max-width: 48rem; margin: 0 0 1.3rem; color: #c8d7e6; font-size: 1.02rem; }
.live-label { border-radius: 0.25rem; padding: 0.18rem 0.45rem; background: #dce3ff; color: #2442c9; font-weight: 900; letter-spacing: 0.08em; }
.briefing-rail { padding: 1.25rem 1.4rem; border-radius: 1.25rem; background: white; box-shadow: var(--shadow); }
.section-kicker { display: flex; align-items: center; gap: 0.55rem; padding-bottom: 0.8rem; border-bottom: 2px solid var(--ink); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.14em; }
.section-kicker span { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0.25rem rgb(255 59 48 / 13%); }
.brief-item { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.brief-item:last-child { border-bottom: 0; }
.brief-item h3 { margin: 0.3rem 0 0; font: 700 1.05rem/1.32 Georgia, serif; }
.brief-item a:hover, .story-card h2 a:hover { color: var(--accent); }

.news-section { padding-top: 3rem; scroll-margin-top: 10rem; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.2rem; padding-bottom: 0.9rem; border-bottom: 3px solid var(--ink); }
.section-header h2 { margin: 0.15rem 0 0; font: 800 clamp(2rem, 4vw, 3.25rem)/1 Georgia, serif; letter-spacing: -0.035em; }
.section-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem; }
.section-links a { border-radius: 99rem; padding: 0.42rem 0.75rem; background: #e8edf3; color: #344054; font-size: 0.72rem; font-weight: 800; }
.section-links a:hover { background: var(--ink); color: white; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.story-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid transparent; border-radius: 1rem; background: var(--card); box-shadow: 0 7px 25px rgb(15 23 42 / 6%); transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.story-card:hover { transform: translateY(-4px); border-color: #ccd5df; box-shadow: var(--shadow); }
.story-card-media { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: #dce3ee; }
.story-card-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 350ms ease; }
.story-card:hover .story-card-media img { transform: scale(1.025); }
.story-card-content { flex: 1; display: flex; flex-direction: column; padding: 1.45rem; }
.story-card h2 { margin: 0.7rem 0; font: 750 1.4rem/1.2 Georgia, serif; letter-spacing: -0.018em; }
.story-card-content > p { display: -webkit-box; overflow: hidden; margin: 0 0 1.3rem; color: var(--muted); font-size: 0.9rem; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.story-meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; color: #8492a6; font-size: 0.67rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.card-footer { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-top: auto; }
.category-list { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.category-list a { border-radius: 0.25rem; padding: 0.22rem 0.4rem; background: rgb(49 87 255 / 9%); color: #2949d3; font-size: 0.65rem; font-weight: 850; text-transform: uppercase; }
.lead-story .category-list a { background: rgb(255 255 255 / 10%); color: white; }
.read-more { flex: 0 0 auto; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; }
.read-more:hover { background: var(--accent); }
.section-empty, .empty-state { display: flex; min-height: 8rem; align-items: center; border: 1px dashed #c7cfd9; border-radius: 0.9rem; padding: 1.25rem; color: var(--muted); background: rgb(255 255 255 / 45%); }
.feature-empty { min-height: 14rem; flex-direction: column; justify-content: center; gap: 0.35rem; }
.feature-empty strong { color: var(--ink); font: 700 1.5rem Georgia, serif; }

.page-shell { padding-bottom: 5rem; }
.page-heading { position: relative; overflow: hidden; margin: 2.25rem 0 1.5rem; padding: clamp(2.5rem, 6vw, 5rem); border: 1px solid #dce2ff; border-radius: 1.25rem; background: linear-gradient(125deg, #eef1ff, #f8f9ff); color: var(--ink); }
.page-heading::after { content: attr(data-code); position: absolute; right: -1rem; bottom: -2rem; color: rgb(49 87 255 / 5%); font-size: 8rem; font-weight: 900; }
.page-heading h1, .article h1 { margin: 0.3rem 0 1rem; font: 800 clamp(2.5rem, 6vw, 5rem)/1.02 Georgia, serif; letter-spacing: -0.045em; }
.page-heading > p:last-child { max-width: 48rem; margin-bottom: 0; color: var(--muted); font-size: 1.05rem; }

.article { max-width: 64rem; padding-block: clamp(2rem, 5vw, 4.5rem); }
.article-meta-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 1rem; padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: 0.8rem; background: rgb(255 255 255 / 80%); }
.article-body { padding: clamp(2rem, 6vw, 5rem); border-radius: 1.2rem; background: white; box-shadow: var(--shadow); font: 1.08rem/1.85 Georgia, serif; }
.article-body > h1:first-child { max-width: 52rem; margin-top: 0; color: var(--night); }
.article-body > blockquote:first-of-type { margin: 1.5rem 0 2.5rem; padding: 1rem 0 1rem 1.25rem; border-left: 4px solid var(--accent-hot); color: #526174; font: 1.15rem/1.65 Inter, sans-serif; }
.article-body img { width: calc(100% + clamp(0rem, 4vw, 3rem)); max-height: 42rem; margin: 1.8rem max(clamp(-1.5rem, -2vw, 0rem), -1.5rem); object-fit: cover; border-radius: 0.85rem; box-shadow: 0 15px 35px rgb(15 23 42 / 12%); }
.article-body h2 { margin-top: 2.7rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--night-soft); }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.15em; }
.article-body li { margin-bottom: 0.35rem; }

.site-footer { margin-top: 2rem; padding: 3.5rem 0; background: var(--night); color: #91a3b8; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.65rem; }
.footer-links a { color: white; font-size: 0.78rem; font-weight: 800; }
.footer-links a:hover { color: #aebfff; }
.footer-links span { color: #53647a; }
.policy-page { max-width: 58rem; }
.policy-page .article-body > h1:first-child { margin-bottom: 2rem; }

@media (max-width: 62rem) {
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-layout { grid-template-columns: 1fr; }
  .briefing-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
  .section-kicker { grid-column: 1 / -1; }
}

@media (max-width: 48rem) {
  .container { width: min(100% - 1.25rem, 78rem); }
  .topline-inner span:last-child { display: none; }
  .masthead { min-height: 4.5rem; }
  .primary-nav { overflow-x: auto; }
  .nav-group { position: static; }
  .submenu { position: fixed; top: 9.4rem; left: 0.65rem; right: 0.65rem; width: auto; max-height: calc(100vh - 10.5rem); overflow-y: auto; grid-template-columns: 1fr; border-radius: 0.8rem; }
  .lead-story { min-height: 23rem; }
  .story-grid, .briefing-rail { grid-template-columns: 1fr; }
  .section-header { align-items: start; flex-direction: column; }
  .section-links { justify-content: flex-start; }
  .news-section { padding-top: 2.5rem; }
  .article-meta-bar { align-items: flex-start; flex-direction: column; }
  .article-body { padding: 1.5rem; }
  .article-body img { width: 100%; margin-inline: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .story-card { transition: none; }
}
