/* ==========================================================================
   WordPress additions — built only from the existing design tokens and
   components in style.css. Nothing here changes how migrated pages look.
   ========================================================================== */

/* Admin bar: keep the sticky header below it when logged in */
.admin-bar .site-header{top:32px}
@media (max-width:782px){.admin-bar .site-header{top:46px}}
@media (max-width:600px){.admin-bar .site-header{top:0}}

/* Core accessibility + media helpers */
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;word-wrap:normal!important}
.screen-reader-text:focus{clip:auto;width:auto;height:auto;margin:0;left:15px;top:15px;background:#fff;color:var(--navy);padding:12px 18px;z-index:9999;border-radius:5px;font-weight:800}
.alignleft{float:left;margin:6px 22px 12px 0}.alignright{float:right;margin:6px 0 12px 22px}.aligncenter{display:block;margin-left:auto;margin-right:auto}
.wp-caption,.wp-block-image{max-width:100%}
.wp-caption-text,.wp-element-caption,.wp-block-image figcaption{font-size:14px;color:var(--muted);margin-top:6px}

/* Article body (block editor content inside the existing .legacy-content styles) */
.article-body{max-width:860px}
.article-body figure{margin:22px 0}
.article-body figure img{margin:0}
.article-body h4{color:var(--navy);margin:26px 0 8px}
.article-body ol{padding-left:22px}
.article-body blockquote{margin:24px 0;border-left:6px solid var(--gold2);padding:6px 0 6px 22px;color:var(--navy);font-weight:600}
.article-body table{width:100%;border-collapse:collapse;margin:22px 0;font-size:15px}
.article-body th,.article-body td{border:1px solid var(--line);padding:10px 12px;text-align:left;vertical-align:top}
.article-body th{background:var(--cream);color:var(--navy)}
.article-body .wp-block-button__link{background:var(--gold2);color:var(--navy2);border-radius:5px;font-weight:850;text-decoration:none;padding:14px 24px}
.article-body .wp-block-buttons{margin:22px 0}
.article-tags{margin-top:30px}.article-tags .tag{text-decoration:none;margin-right:6px}

/* Article hero meta + featured image (same treatment as region page images) */
.article-meta{font-size:14px!important;color:#cfe0f2!important;margin-top:4px}
.article-feature-wrap{padding-top:0;padding-bottom:0}
.article-feature{width:100%;height:auto;border-radius:12px;box-shadow:0 18px 48px rgba(4,27,50,.16);margin-top:-40px;position:relative;z-index:2}

/* Article cards */
.article-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.article-card{display:flex;flex-direction:column}
.article-card h3 a{text-decoration:none;color:inherit}
.article-card h3 a:hover{text-decoration:underline}
.article-card .tag{align-self:flex-start}
.article-card-media{display:block;margin:-26px -26px 18px;border-radius:11px 11px 0 0;overflow:hidden}
.article-card-media img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.article-card-date{margin-top:auto;margin-bottom:0}

/* Topic links */
.topic-nav{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 28px}
.topic-pill{border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 16px;font-weight:800;font-size:14px;text-decoration:none;color:var(--navy)}
.topic-pill:hover,.topic-pill[aria-current="page"]{border-color:var(--gold);background:#fff7d6}
.topic-count{color:var(--muted);font-weight:700}

/* Breadcrumbs separators (component already styled in style.css) */
.breadcrumbs span{margin:0 4px;color:#93a3b3}

/* Pagination */
.mbn-pagination{margin-top:34px}
.mbn-pagination .nav-links{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.mbn-pagination .page-numbers{display:inline-flex;min-width:44px;min-height:44px;align-items:center;justify-content:center;padding:0 14px;border:1px solid var(--line);border-radius:5px;text-decoration:none;font-weight:800;color:var(--navy);background:#fff}
.mbn-pagination .page-numbers.current{background:var(--navy);border-color:var(--navy);color:var(--gold)}
.mbn-pagination a.page-numbers:hover{border-color:var(--gold)}

/* Regional connections (per-article, chosen by the editor) */
.regional-connections .region-art{height:180px}
.regional-inline{margin:26px 0}
.regional-inline ul{margin:8px 0 0;padding-left:20px}

/* Responsive */
@media(max-width:1080px){.article-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:850px){.article-body table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.article-body th,.article-body td{min-width:120px}.article-grid{grid-template-columns:1fr}.regional-connections .region-art{height:200px}}

/* Safety: dark components placed inside a content area keep their light text */
.legacy-content .cta h2,.legacy-content .authority h2,.legacy-content .hero h1,.legacy-content .gateway-card h2,.legacy-content .border-band h2{color:#fff}
.legacy-content .border-band .border-wrap h2{color:var(--gold2)}
.legacy-content .gateway-card h2,.legacy-content .hero h1{margin-top:0}
