:root {
  --blog-ink: #0a3150;
  --blog-muted: #526b80;
  --blog-link: #006987;
  --blog-accent: #0f766e;
  --blog-line: #cddbe6;
  --blog-surface: #ffffff;
  --blog-soft: #f3f8fb;
  --blog-focus: #ffbf47;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--blog-ink);
  background: var(--blog-soft);
  line-height: 1.65;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; }
a { color: var(--blog-link); text-underline-offset: 0.2em; }
a:hover { color: var(--blog-ink); }
:focus-visible { outline: 3px solid var(--blog-focus); outline-offset: 3px; }
.skip { position: fixed; left: 1rem; top: -6rem; z-index: 100; padding: 0.75rem 1rem; background: #fff; border-radius: 0.5rem; }
.skip:focus { top: 1rem; }

.site-header { position: relative; z-index: 40; background: rgba(247, 250, 252, 0.98); border-bottom: 1px solid var(--blog-line); }
.blog-nav { width: min(100% - 2rem, 1180px); min-height: 4.5rem; margin-inline: auto; display: flex; align-items: center; gap: 0.25rem; }
.blog-nav__desktop { display: flex; align-items: center; gap: 0.25rem; }
.blog-mobile-nav { display: none; }
.blog-nav > a, .blog-nav summary { min-height: 2.75rem; display: inline-flex; align-items: center; padding: 0.55rem 0.72rem; color: var(--blog-ink); font-weight: 700; text-decoration: none; border-radius: 0.45rem; }
.brand { margin-right: auto; font-size: 1.28rem; font-weight: 850; letter-spacing: -0.03em; }
.brand span { color: #007aa2; }
.menu { position: relative; }
.menu > summary { cursor: pointer; list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: ""; width: 0.45rem; height: 0.45rem; margin-left: 0.5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-0.12rem); }
.menu[open] > summary, .menu > summary:hover, .blog-nav > a:hover { background: #e4f1f6; }
.menu[open] > summary::after { transform: rotate(225deg) translate(-0.08rem, -0.08rem); }
.menu-panel { position: absolute; z-index: 50; top: calc(100% + 0.45rem); left: 0; min-width: 18rem; max-height: min(70vh, 38rem); overflow: auto; padding: 0.75rem; background: #fff; border: 1px solid var(--blog-line); border-radius: 0.8rem; box-shadow: 0 1rem 2.5rem rgba(8, 42, 68, 0.18); }
.menu--wide .menu-panel { width: min(46rem, calc(100vw - 2rem)); }
.menu-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.12rem 0.75rem; }
.menu-panel a { display: flex; min-height: 2.75rem; align-items: center; padding: 0.55rem 0.7rem; color: var(--blog-ink); text-decoration: none; border-radius: 0.45rem; }
.menu-panel a:hover, .menu-panel a:focus-visible { background: #e9f5f7; }
.menu-all { border-bottom: 1px solid var(--blog-line); font-weight: 800; }
.start { min-height: 2.75rem; margin-left: 0.35rem; padding: 0.55rem 0.9rem; color: #5b6f81; background: #e7edf2; border: 1px solid #ccd8e2; border-radius: 0.55rem; font-weight: 750; cursor: not-allowed; }

.crumbs, .shell, .article-layout { width: min(100% - 2rem, 1180px); margin-inline: auto; }
.crumbs { padding-block: 1.15rem 0.2rem; color: var(--blog-muted); font-size: 0.95rem; }
.shell { padding-block: clamp(2.4rem, 6vw, 6rem); }
.article-layout { display: grid; grid-template-columns: minmax(0, 48rem) minmax(16rem, 1fr); gap: clamp(1.5rem, 5vw, 4rem); padding-block: 1.5rem clamp(3rem, 7vw, 7rem); align-items: start; }
.article { min-width: 0; padding: clamp(1.25rem, 4vw, 3.25rem); background: var(--blog-surface); border: 1px solid var(--blog-line); border-radius: 1rem; box-shadow: 0 1rem 3rem rgba(8, 42, 68, 0.06); overflow-wrap: anywhere; }
.article > * { max-width: 70ch; }
.article h1, .article h2, .article h3 { color: var(--blog-ink); line-height: 1.15; text-wrap: balance; }
.article h1 { max-width: 19ch; margin: 0.45rem 0 1rem; font-size: clamp(2.15rem, 6vw, 4.35rem); letter-spacing: -0.045em; }
.article h2 { margin-top: 2.6rem; font-size: clamp(1.55rem, 3vw, 2.2rem); }
.article h3 { margin-top: 1.8rem; font-size: clamp(1.2rem, 2vw, 1.45rem); }
.article p, .article li { color: #284a64; font-size: clamp(1rem, 1.4vw, 1.1rem); }
.article img { max-width: 100%; height: auto; border-radius: 0.75rem; }
.dek { margin-bottom: 1.65rem; color: #365b73; font-size: clamp(1.12rem, 2vw, 1.3rem); }
.meta { color: var(--blog-accent); font-weight: 800; }
.contributor { margin: 1.25rem 0 2rem; padding: 0.9rem 1rem; background: var(--blog-soft); border-left: 4px solid var(--blog-accent); border-radius: 0 0.55rem 0.55rem 0; color: var(--blog-muted); }
.featured-media { margin: 1.5rem 0 2rem; }
.sidebar { position: sticky; top: 1rem; min-width: 0; }
.card { margin-bottom: 1rem; padding: 1.25rem; background: #e9f5f7; border: 1px solid #b8d9df; border-radius: 0.85rem; }
.card h2 { margin-top: 0; font-size: 1.25rem; }
.cta { display: inline-flex; min-height: 2.75rem; align-items: center; padding: 0.65rem 1rem; color: #fff; background: var(--blog-link); border-radius: 0.55rem; font-weight: 800; text-decoration: none; }

.hero { max-width: 54rem; }
.hero h1 { margin: 0.5rem 0 1.25rem; font-size: clamp(2.5rem, 7vw, 5.25rem); line-height: 1; letter-spacing: -0.055em; text-wrap: balance; }
.hero > p:last-child { max-width: 66ch; color: var(--blog-muted); font-size: 1.18rem; }
.eyebrow { color: var(--blog-accent); font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
.section-heading { margin-top: clamp(3rem, 7vw, 6rem); font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.035em; }
.topics, .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; padding: 0; }
.topics { list-style: none; }
.topics li, .cards article { min-width: 0; padding: 1.25rem; background: #fff; border: 1px solid var(--blog-line); border-radius: 0.8rem; }
.topics a, .cards h2 a { font-weight: 800; }
.topics span { display: block; margin-top: 0.35rem; color: var(--blog-muted); }
.cards h2 { margin: 0.25rem 0 0.6rem; font-size: 1.25rem; line-height: 1.25; }
.cards p { color: var(--blog-muted); }

.footer { padding: 3rem max(1rem, calc((100% - 1180px) / 2)); color: #dce8f0; background: #082a44; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer h2 { color: #fff; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer a { color: #fff; }
.footer ul { padding: 0; list-style: none; }
.footer li + li { margin-top: 0.45rem; }
.footer-bottom { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.2); }

@media (max-width: 58rem) {
  .blog-nav { padding-block: 0.65rem; }
  .brand { flex: 1 1 auto; }
  .blog-nav__desktop { display: none; }
  .blog-mobile-nav { position: relative; display: block; }
  .blog-mobile-nav > summary { cursor: pointer; list-style: none; border: 1px solid var(--blog-line); background: #fff; }
  .blog-mobile-nav > summary::-webkit-details-marker { display: none; }
  .blog-mobile-nav > summary::after { content: ""; width: 0.45rem; height: 0.45rem; margin-left: 0.5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-0.12rem); }
  .blog-mobile-nav[open] > summary { background: #e4f1f6; }
  .blog-mobile-nav[open] > summary::after { transform: rotate(225deg) translate(-0.08rem, -0.08rem); }
  .blog-mobile-nav__panel { position: absolute; z-index: 60; top: calc(100% + 0.45rem); right: 0; width: min(23rem, calc(100vw - 1.25rem)); max-height: calc(100vh - 5.5rem); overflow: auto; padding: 0.75rem; background: #fff; border: 1px solid var(--blog-line); border-radius: 0.8rem; box-shadow: 0 1rem 2.5rem rgba(8, 42, 68, 0.18); }
  .blog-mobile-nav__panel > a { display: flex; min-height: 2.75rem; align-items: center; padding: 0.55rem 0.7rem; color: var(--blog-ink); font-weight: 750; text-decoration: none; border-radius: 0.45rem; }
  .blog-mobile-nav__panel > a:hover, .blog-mobile-nav__panel > a:focus-visible { background: #e9f5f7; }
  .blog-mobile-nav .menu { width: 100%; }
  .menu-panel, .menu--wide .menu-panel { position: static; width: 100%; max-height: none; margin-top: 0.25rem; box-shadow: none; }
  .menu-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start { margin-left: 0; white-space: nowrap; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 40rem) {
  .blog-nav, .crumbs, .shell, .article-layout { width: min(100% - 1.25rem, 1180px); }
  .menu-links, .footer-grid { grid-template-columns: 1fr; }
  .article { padding: 1.1rem; border-radius: 0.75rem; }
  .footer { padding-inline: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
