:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef6ff;
  --text: #143a6e;
  --muted: #4a6285;
  --line: #d9e3f2;
  --blue: #2e9df4;
  --gold: #f6b226;
  --green: #39b96b;
  --sand: #fff4e8;
  --radius: 24px;
  --shadow: 0 20px 50px rgba(34, 84, 148, 0.10);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Nunito', system-ui, sans-serif; color: var(--text); background: linear-gradient(180deg,#f7faff 0%,#f3f6fb 100%); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { background: rgba(255,255,255,.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.nav-row { display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:82px; }
.site-brand { font-size: 28px; font-weight: 800; color: #183d71; }
.site-brand img { height: 42px; width: auto; }
.primary-nav .nav { display:flex; gap:28px; list-style:none; margin:0; padding:0; align-items:center; }
.primary-nav .nav li a { font-weight:700; color:#1d3964; }
.nav-actions { display:flex; align-items:center; gap:18px; }
.nav-link { font-weight:700; color:#1d3964; }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:52px; padding:0 26px; border-radius:999px; font-weight:800; box-shadow: var(--shadow); }
.button.small { min-height: 44px; padding: 0 20px; }
.button-blue { background: var(--blue); color:#fff; }
.button-gold { background: var(--gold); color:#fff; }
.button-green { background: var(--green); color:#fff; }
.button-secondary { background:#fff; color:var(--text); border:1px solid var(--line); box-shadow:none; }
.site-main { padding-bottom: 48px; }
.hero { margin-top: 34px; display:grid; grid-template-columns: 1.1fr .95fr; gap: 36px; background: linear-gradient(135deg,#ffffff 0%,#eaf5ff 100%); border-radius: 36px; padding: 38px; box-shadow: var(--shadow); border:1px solid rgba(255,255,255,.75); }
.eyebrow { display:inline-flex; align-items:center; gap:8px; padding:10px 16px; border-radius:999px; background:#edf5ff; color:#1770c7; font-size:14px; font-weight:800; letter-spacing:.02em; }
.hero h1 { font-size: clamp(48px, 6vw, 74px); line-height: .96; margin: 24px 0 18px; }
.hero p { font-size: 24px; line-height:1.45; color:var(--muted); max-width: 650px; margin:0; }
.hero-actions { display:flex; gap:16px; margin-top: 28px; flex-wrap:wrap; }
.hero-tags { display:flex; gap:12px; flex-wrap:wrap; margin-top: 18px; }
.hero-tags span { padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: #496789; font-weight: 700; }
.hero-art { display:flex; align-items:center; justify-content:center; }
.hero-art-frame { width:100%; background: rgba(255,255,255,.55); border:1px solid rgba(255,255,255,.8); border-radius: 32px; padding: 20px; box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.quick-links { display:grid; grid-template-columns: repeat(3, 1fr); gap:24px; margin-top: 32px; }
.quick-card, .post-card, .archive-hero, .article, .callout-box { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border:1px solid rgba(255,255,255,.7); }
.quick-card { padding: 30px; min-height: 235px; }
.quick-card h3 { font-size: 28px; margin: 0 0 16px; }
.quick-card p { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 320px; }
.quick-blue { background: linear-gradient(180deg,#eef7ff 0%,#e8f3fe 100%); }
.quick-green { background: linear-gradient(180deg,#effae8 0%,#edf6dc 100%); }
.quick-sand { background: linear-gradient(180deg,#fff7ed 0%,#fff0de 100%); }
.section-gap { margin-top: 48px; }
.section-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom: 22px; }
.section-head h2 { font-size: 52px; margin: 0; }
.section-head a { color: #1770c7; font-weight: 800; }
.post-grid { display:grid; gap:24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.post-card { overflow:hidden; }
.post-card-image { aspect-ratio: 16 / 10; overflow:hidden; background:#eaf4ff; display:block; }
.post-card-image img { width:100%; height:100%; object-fit:cover; }
.post-card-content { padding: 20px; }
.post-card h3 { font-size: 28px; line-height:1.15; margin: 14px 0 12px; }
.post-card p { font-size: 18px; color: var(--muted); line-height: 1.55; margin: 0 0 16px; }
.card-meta, .meta-row { display:flex; gap:14px; flex-wrap:wrap; color: var(--muted); font-weight:700; font-size:15px; }
.article { padding: 34px; margin-top: 34px; }
.article-title { font-size: clamp(42px, 5vw, 66px); line-height: 1.02; margin: 18px 0 16px; }
.article-excerpt { font-size: 24px; line-height:1.5; color: var(--muted); max-width: 900px; }
.article-image { margin: 28px 0 8px; border-radius: 28px; overflow: hidden; }
.article-image img { width: 100%; }
.article-image figcaption { padding-top: 10px; color: var(--muted); font-size: 14px; }
.gh-content { max-width: 860px; margin: 0 auto; font-size: 21px; line-height: 1.75; color: #27456e; }
.gh-content h2, .gh-content h3, .gh-content h4 { color: var(--text); line-height:1.15; }
.gh-content img { border-radius: 22px; }
.gh-content blockquote { margin: 28px 0; padding: 18px 22px; border-left: 4px solid var(--blue); background: #eef6ff; border-radius: 16px; }
.author-box { display:flex; gap:18px; align-items:center; padding-top: 30px; margin-top: 30px; border-top:1px solid var(--line); }
.author-avatar { width:72px; height:72px; border-radius:999px; object-fit:cover; }
.comments-wrap { margin-top: 36px; }
.callout-box { margin-top: 28px; padding: 28px; }
.cta-actions { display:flex; gap:12px; flex-wrap:wrap; }
.archive-hero { margin-top: 34px; padding: 38px; }
.archive-hero h1 { font-size: 58px; margin: 18px 0 10px; }
.archive-hero p { font-size: 22px; line-height:1.5; color: var(--muted); margin: 0; max-width: 800px; }
.pagination-wrap { margin-top: 24px; }
.pagination { display:flex; justify-content:center; gap:16px; font-weight:800; }
.site-footer { margin-top: 56px; padding: 40px 0 60px; border-top:1px solid var(--line); }
.footer-grid { display:grid; grid-template-columns: 1.2fr .8fr .9fr; gap:24px; }
.footer-grid h3, .footer-grid h4 { margin-top:0; }
.footer-grid p { color: var(--muted); }
.footer-grid .nav { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.kg-width-wide { width: min(1200px, calc(100vw - 40px)); margin-left: 50%; transform: translateX(-50%); }
.kg-width-full { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.kg-card { margin: 1.5em 0; }
.kg-image-card img { border-radius: 24px; }
.kg-gallery-container { display:flex; flex-direction:column; gap:12px; }
.kg-gallery-row { display:flex; gap:12px; }
.kg-bookmark-card { border:1px solid var(--line); border-radius:20px; overflow:hidden; }
.kg-bookmark-container { display:flex; color: inherit; }
.kg-bookmark-content { padding: 18px; }
.kg-bookmark-title { font-weight:800; }
.kg-bookmark-description, .kg-bookmark-metadata { color:var(--muted); }
@media (max-width: 1100px) {
  .primary-nav { display:none; }
  .hero, .footer-grid, .quick-links, .grid-3 { grid-template-columns:1fr; }
  .section-head h2 { font-size: 40px; }
}
@media (max-width: 700px) {
  .container { width: min(100% - 24px, 1180px); }
  .nav-row { min-height:74px; }
  .site-brand { font-size: 24px; }
  .hero { padding: 22px; margin-top: 20px; }
  .hero p { font-size: 20px; }
  .quick-card { min-height: auto; }
  .article { padding: 22px; }
  .article-title { font-size: 40px; }
  .archive-hero { padding: 24px; }
  .archive-hero h1 { font-size: 42px; }
}

.article-layout { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:32px; align-items:start; }
.td-sidebar { position:sticky; top:110px; }
.ad-box { background:var(--surface); border-radius:var(--radius); box-shadow:var(--shadow); border:1px solid rgba(255,255,255,.7); padding:14px; margin-top:34px; }
.ad-box img { width:100%; border-radius:18px; }
.ad-label { font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:#6c84a5; font-weight:800; margin:0 0 10px; }
.ad-placeholder { min-height:250px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; text-align:center; border:2px dashed var(--line); border-radius:18px; padding:20px; color:var(--muted); background:linear-gradient(180deg,#f8fbff 0%,#eef5ff 100%); }
.ad-placeholder-tall { min-height:600px; }
.ad-placeholder-inline { min-height:180px; }
.inline-ad { margin-top:30px; }
.cookie-banner { position:fixed; left:0; right:0; bottom:18px; z-index:99999; padding:0 14px; }
.cookie-banner.hidden { display:none; }
.cookie-banner__inner { display:flex; align-items:center; justify-content:space-between; gap:20px; background:rgba(20,58,110,.96); color:#fff; border-radius:24px; box-shadow:0 24px 60px rgba(8,28,56,.25); padding:20px 24px; }
.cookie-banner__content strong { display:block; margin-bottom:6px; font-size:18px; }
.cookie-banner__content p { margin:0; color:rgba(255,255,255,.88); line-height:1.5; }
.cookie-banner__content a { color:#fff; text-decoration:underline; }
.cookie-banner__actions { display:flex; gap:12px; flex-wrap:wrap; }
@media (max-width: 1100px) {
  .article-layout { grid-template-columns:1fr; }
  .td-sidebar { position:static; }
}
@media (max-width: 700px) {
  .cookie-banner__inner { padding:18px; border-radius:18px; }
  .cookie-banner__inner, .cookie-banner__actions { display:block; }
  .cookie-banner__actions { margin-top:14px; }
  .cookie-banner__actions .button { width:100%; margin-top:10px; }
}


.homepage-ads-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.homepage-ad-box { margin-top:0; }
.homepage-ad-box .ad-placeholder { min-height: 220px; }
.compact-head { margin-bottom: 16px; }
.compact-head h2 { font-size: 22px; text-transform: uppercase; letter-spacing: .05em; }
.legal-links { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.legal-note { font-size:14px; color: var(--muted); }
@media (max-width: 1100px) {
  .homepage-ads-grid { grid-template-columns:1fr; }
}


.index-side-ads { pointer-events:none; }
.index-side-ad {
  position: fixed;
  top: var(--td-side-ad-top, 150px);
  width: 160px;
  z-index: 20;
  pointer-events:auto;
}
.index-side-ad-left { left: 14px; }
.index-side-ad-right { right: 14px; }
.index-side-ad .ad-box, .index-side-ad .ad-placeholder, .index-side-ad img {}
.index-side-ad img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); }
.ad-placeholder-skyscraper { min-height: 600px; }
@media (max-width: 1540px) {
  .index-side-ad { display:none; }
}
.page-builder-no-header { margin-top: 18px; }
.page-builder-no-header .gh-content > .kg-width-full:first-child,
.page-builder-no-header .gh-content > .kg-width-wide:first-child { margin-top: 0; }


/* Announcement bar handled by Ghost Portal to avoid duplicate messages */

.article-share-head h3 { margin:0 0 8px; font-size: 26px; }
.article-share-head p { margin:0; color: var(--muted); }
.article-share-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:18px; }
.share-copy-feedback { margin:14px 0 0; color:#1770c7; font-weight:800; }

.calendar-card {
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 26px;
  background: linear-gradient(135deg,#ffffff 0%,#eef7ff 100%);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: 28px;
  border:1px solid rgba(255,255,255,.75);
}
.calendar-copy h3 { font-size: 36px; line-height:1.08; margin:18px 0 14px; }
.calendar-copy p { font-size: 19px; line-height:1.6; color: var(--muted); margin:0 0 18px; }
.calendar-embed-wrap { min-height: 520px; }
.calendar-embed {
  width:100%;
  min-height:520px;
  border:0;
  border-radius:22px;
  background:#fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.calendar-placeholder {
  min-height:520px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  border:2px dashed var(--line);
  border-radius:22px;
  color: var(--muted);
  padding:24px;
  background:rgba(255,255,255,.7);
}
@media (max-width: 1100px) {
  .calendar-card { grid-template-columns:1fr; }
}
