/* Dutt Insights theme. Change the values in :root to restyle the whole site. */
:root {
  --color-primary: #0F4C5C;
  --color-primary-dark: #0A3540;
  --color-band: #0F3D4A;
  --color-button: #C2410C;
  --color-text: #111827;
  --color-muted: #4B5563;
  --color-line: #E5E7EB;
  --color-tint: #F0F6F8;
  --color-soft: #F7F9FA;
  --font-heading: "Space Grotesk", system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
  --width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--color-text); background: #fff; font-size: 17px; line-height: 1.65; }
a { color: var(--color-primary); }
a:hover { color: var(--color-primary-dark); }
h1, h2, h3 { font-family: var(--font-heading); margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--width); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary); }
.muted { color: var(--color-muted); }
.btn { display: inline-block; background: var(--color-primary); color: #fff; text-decoration: none; font-weight: 600; padding: 14px 24px; border-radius: 8px; border: 1px solid var(--color-primary); text-align: center; }
.btn:hover { background: var(--color-primary-dark); color: #fff; }
.btn.outline { background: #fff; color: var(--color-primary); }
.btn.accent { background: var(--color-button); border-color: var(--color-button); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 10px 14px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--color-line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { font-family: var(--font-heading); font-weight: 700; font-size: 22px; color: var(--color-text); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.nav a { color: #374151; text-decoration: none; font-size: 16px; padding: 12px 0; }
.nav a.current { color: var(--color-primary); font-weight: 600; }
.nav a.btn { color: #fff; padding: 12px 22px; }
.menu-toggle { display: none; font: inherit; font-weight: 600; min-height: 44px; padding: 8px 16px; border: 1px solid #9CA3AF; border-radius: 8px; background: #fff; color: var(--color-text); }

/* Home */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 80px; padding-bottom: 72px; }
.hero-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-weight: 700; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -0.02em; }
.hero .lede { font-size: 20px; color: var(--color-muted); max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.latest { background: var(--color-tint); border-radius: 16px; padding: 24px 24px 12px; }
.latest a { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-top: 1px solid #C9DCE2; text-decoration: none; color: var(--color-text); }
.latest a span:first-child { font-size: 13px; color: #374151; }
.latest a span:last-child { font-weight: 600; line-height: 1.3; }
.latest .eyebrow { font-size: 13px; padding-bottom: 10px; }
.topics-box { border: 1px solid var(--color-line); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.topics-box .label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #F3F4F6; border-radius: 999px; padding: 8px 14px; font-size: 15px; font-weight: 500; color: var(--color-text); text-decoration: none; }
a.chip:hover { background: #E5E7EB; color: var(--color-text); }

.band-soft { background: var(--color-soft); border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.band-dark { background: var(--color-band); color: #fff; }
.band-dark .eyebrow { color: #A9D6E2; }
.section { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.section h2 { font-weight: 600; font-size: clamp(27px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -0.01em; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head > div { display: flex; flex-direction: column; gap: 10px; }
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 290px; min-width: 0; max-width: 520px; background: #fff; color: var(--color-text); border: 1px solid var(--color-line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.card-top { height: 130px; background: var(--color-primary); color: #fff; padding: 22px; display: flex; align-items: flex-end; font-family: var(--font-heading); font-weight: 600; font-size: 22px; line-height: 1.2; }
.card:nth-child(3n+2) .card-top { background: #155E75; }
.card:nth-child(3n+3) .card-top { background: #1F2937; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card-body .eyebrow { font-size: 13px; }
.card h3 { font-weight: 600; font-size: 21px; line-height: 1.25; }
.card h3 a { color: inherit; text-decoration: none; }
.card p { font-size: 15px; color: var(--color-muted); }
.card .more { font-weight: 600; font-size: 15px; padding: 8px 0; }
.expertise { display: flex; flex-wrap: wrap; gap: 20px; }
.expertise div { flex: 1 1 190px; min-width: 0; background: #fff; border: 1px solid var(--color-line); border-radius: 12px; padding: 22px; font-family: var(--font-heading); font-weight: 600; font-size: 19px; line-height: 1.25; }
.expertise div span { display: block; margin-top: 8px; font-family: var(--font-body); font-weight: 400; font-size: 15px; color: var(--color-muted); }
.split { display: flex; flex-wrap: wrap; gap: 48px; flex-direction: row; }
.split-intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.split-list { flex: 999 1 480px; min-width: 0; }
.numbered a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; padding: 22px 0; border-top: 1px solid var(--color-line); text-decoration: none; color: var(--color-text); }
.numbered a:last-child { border-bottom: 1px solid var(--color-line); }
.numbered .n { font-family: var(--font-heading); font-weight: 600; font-size: 22px; color: var(--color-primary); flex: 0 0 44px; }
.numbered .t { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.numbered .meta { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--color-muted); }
.numbered .title { font-weight: 600; font-size: 19px; line-height: 1.3; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-top: 64px; padding-bottom: 64px; }
.cta h2 { font-weight: 600; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.15; }
.cta p { color: #D5E3E8; margin-top: 10px; }

/* Page heads */
.page-head { padding-top: 40px; display: flex; flex-direction: column; gap: 18px; }
.page-head h1 { font-weight: 700; font-size: clamp(32px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -0.02em; max-width: 880px; }
.page-head .deck { font-size: 21px; color: var(--color-muted); max-width: 820px; }
.breadcrumb { font-size: 14px; color: var(--color-muted); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--color-muted); padding: 16px 0; border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }
.archived-banner { background: #FEF3C7; border: 1px solid #D97706; border-radius: 10px; padding: 14px 18px; font-size: 16px; color: #111827; }

/* Article */
.article-layout { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 36px; padding-bottom: 72px; }
.article-side { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.toc .label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); padding-bottom: 6px; }
.toc a { display: block; font-size: 15px; padding: 10px 0; text-decoration: none; border-top: 1px solid var(--color-line); }
.toc a:last-child { border-bottom: 1px solid var(--color-line); }
.article-main { flex: 999 1 620px; min-width: 0; }
.key-points { background: var(--color-tint); border-radius: 12px; padding: 24px 26px; margin-bottom: 32px; }
.key-points ul { margin: 10px 0 0; padding-left: 20px; font-size: 16px; }
.key-points li { margin-bottom: 6px; }
.prose > * { margin: 0 0 18px; }
.prose > p, .prose > ul, .prose > ol { max-width: 720px; }
.prose h2 { font-weight: 600; font-size: 28px; line-height: 1.2; margin-top: 44px; scroll-margin-top: 20px; }
.prose h3 { font-weight: 600; font-size: 21px; margin-top: 30px; }
.prose li { margin-bottom: 8px; }
.prose li ul { margin-top: 8px; font-size: 16px; color: #374151; }
.table-wrap { overflow-x: auto; border: 1px solid var(--color-line); border-radius: 10px; margin-bottom: 24px; }
.prose table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.prose th { text-align: left; padding: 11px 14px; font-size: 13px; font-weight: 600; color: #374151; background: #F3F4F6; }
.prose td { padding: 13px 14px; border-top: 1px solid var(--color-line); vertical-align: top; }
.prose td:first-child { font-weight: 600; }
.admonition { border: 1px solid #D1D5DB; border-radius: 12px; padding: 20px 24px; max-width: 720px; font-size: 15px; color: #374151; }
.admonition-title { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.article-foot { border-top: 1px solid var(--color-line); margin-top: 40px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 15px; }

/* Library and listings */
.narrow { max-width: 960px; }
.library { padding-top: 56px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 40px; }
.library h1 { font-weight: 700; font-size: clamp(32px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -0.02em; }
.library h2 { font-weight: 600; font-size: 26px; margin-bottom: 8px; }
.filters { display: flex; flex-direction: column; gap: 16px; }
.filters label { display: block; font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.filters input { font: inherit; font-size: 16px; width: 100%; max-width: 420px; padding: 12px 14px; border: 1px solid #9CA3AF; border-radius: 8px; }
.filter-btn { font: inherit; font-size: 15px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid #9CA3AF; background: #fff; color: var(--color-text); cursor: pointer; }
.filter-btn[aria-pressed="true"] { background: var(--color-primary); border-color: var(--color-primary); color: #fff; font-weight: 600; }
.row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding: 16px 0; border-top: 1px solid var(--color-line); }
.year .row:last-child { border-bottom: 1px solid var(--color-line); }
.row .date { flex: 0 0 90px; font-size: 14px; color: var(--color-muted); }
.row .type { flex: 0 0 170px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-primary); }
.row .title { flex: 1 1 380px; min-width: 0; }
.row .title a { font-weight: 600; text-decoration: none; }
.row .title small { display: block; font-size: 14px; color: var(--color-muted); }
.archive-box { background: var(--color-soft); border: 1px solid var(--color-line); border-radius: 14px; padding: 28px; }
.archive-box .row { border-top-color: #D1D5DB; }
.badge { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #374151; border: 1px solid #6B7280; border-radius: 4px; padding: 2px 8px; }
[hidden] { display: none !important; }

/* Footer */
.site-footer { border-top: 1px solid var(--color-line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--color-muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { padding: 10px 0; }

/* Phones */
@media (max-width: 720px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .menu-toggle { display: inline-block; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .nav.open { display: flex; }
  .nav a { border-top: 1px solid var(--color-line); padding: 14px 0; }
  .nav a.btn { margin-top: 10px; border-top: 0; }
  .hero { padding-top: 48px; padding-bottom: 48px; gap: 36px; }
  .section { padding-top: 52px; padding-bottom: 52px; }
  .actions .btn { flex: 1 1 100%; }
  .row .type { flex-basis: auto; }
}

/* Small print inside table cells */
.prose td small { display: inline-block; margin-top: 4px; font-weight: 400; font-size: 13px; color: var(--color-muted); }
.prose td:first-child { min-width: 220px; }

/* Card labels stay dark even inside the dark band */
.band-dark .card .eyebrow { color: var(--color-primary); }

/* ---- Update r2 ---- */

/* Keyboard focus is always visible */
:focus-visible { outline: 3px solid var(--color-button); outline-offset: 2px; border-radius: 4px; }
.band-dark :focus-visible { outline-color: #fff; }

/* Comfortable small text */
.latest a span:first-child, .numbered .meta { font-size: 14px; }
.latest .eyebrow, .card-body .eyebrow, .topics-box .label, .toc .label { font-size: 14px; }
.meta-row, .breadcrumb, .row .date { font-size: 15px; }
.card p { font-size: 16px; }
.card-meta { font-size: 15px; color: var(--color-muted); }
.row .type { font-size: 14px; }
.prose table { font-size: 15px; }
.prose th { font-size: 14px; }
.text-link { font-weight: 600; padding: 12px 0; align-self: center; }

/* Hero without a side panel uses the full width */
.hero-text h1 { max-width: 820px; }

/* Flagship */
.flagship { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 48px; }
.flagship-text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.flagship-text h2 a { color: #fff; text-decoration: none; }
.flagship-text h2 a:hover { text-decoration: underline; }
.flagship-text p { color: #E3EDF0; font-size: 19px; max-width: 620px; }
.flagship-text .flagship-meta { font-size: 15px; color: #C5D9DF; }
.btn.light { background: #fff; color: var(--color-band); border-color: #fff; }
.btn.light:hover { background: #E3EDF0; color: var(--color-band); }
.flagship-side { flex: 1 1 340px; min-width: 0; }
.flagship-side img { display: block; width: 100%; height: auto; border-radius: 12px; }
.inside { background: #fff; color: var(--color-text); border-radius: 14px; padding: 26px 28px; }
.inside .eyebrow { color: var(--color-primary); font-size: 14px; }
.inside ul { margin: 12px 0 0; padding-left: 20px; font-size: 16px; }
.inside li { margin-bottom: 8px; }

/* Topics covered: an even grid, so no card looks more important than the rest */
.areas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.area { background: #fff; border: 1px solid var(--color-line); border-radius: 12px; padding: 22px; }
.area h3 { font-weight: 600; font-size: 19px; line-height: 1.25; }
.area h3 a { color: var(--color-text); text-decoration: none; }
.area h3 a:hover { color: var(--color-primary); text-decoration: underline; }
.area p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--color-muted); }
.chips-label { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); align-self: center; margin-right: 6px; }
.band-soft .chip { background: #fff; border: 1px solid var(--color-line); }
@media (max-width: 1040px) { .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .areas { grid-template-columns: minmax(0, 1fr); } }

/* Cards: one consistent treatment */
.card-body { padding: 24px; gap: 12px; }
.card-cover { display: block; width: 100%; height: 190px; object-fit: cover; border-bottom: 1px solid var(--color-line); }
.status { font-size: 15px; color: #374151; }
.status .badge, .row small .badge { margin-right: 6px; }

/* Notices near the top of an article */
.notice { border-radius: 10px; padding: 14px 18px; font-size: 16px; color: #111827; }
.update-banner { background: var(--color-tint); border: 1px solid #7FAEBB; }

/* Rule at a glance */
.glance { border: 1px solid #C9DCE2; border-radius: 12px; padding: 22px 26px; margin-bottom: 24px; }
.glance h2.eyebrow { font-family: var(--font-body); font-size: 14px; margin-bottom: 6px; }
.glance dl { margin: 0; }
.glance dl > div { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 12px 0; border-top: 1px solid var(--color-line); }
.glance dl > div:first-child { border-top: 0; }
.glance dt { flex: 0 0 150px; font-size: 15px; font-weight: 600; color: #374151; }
.glance dd { flex: 1 1 320px; min-width: 0; margin: 0; font-size: 16px; }
.glance dd ul { margin: 0; padding-left: 18px; }
.glance dd li { margin-bottom: 4px; }

/* Images inside articles */
.article-cover { display: block; max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--color-line); margin-bottom: 28px; }
.prose img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.prose figure { margin: 0 0 24px; }
.prose figcaption, .prose img + em { display: block; margin-top: 8px; font-size: 15px; color: var(--color-muted); font-style: normal; }
.text-link { align-self: flex-start; }
.actions .text-link { align-self: center; }

/* ---- Update r3: progress and risk blocks for news trackers ---- */
.admonition.progress { background: #ECFDF3; border-color: #15803D; color: #14301F; }
.admonition.progress .admonition-title { color: #166534; }
.admonition.risk { background: #FEF2F2; border-color: #B91C1C; color: #3B1212; }
.admonition.risk .admonition-title { color: #991B1B; }
.admonition p { margin: 0 0 10px; }
.admonition p:last-child { margin-bottom: 0; }
.admonition { font-size: 16px; }
.admonition-title { font-size: 14px; }
.article-main:only-child { flex-basis: 100%; max-width: 860px; }
