/* Local fallback and site-specific styles. Shared primitives come from Cultstent UI. */
* { box-sizing:border-box; }
body { margin:0; font:1rem/1.65 system-ui,sans-serif; color:#162c42; background:#f5f8fb; }
.cs-page { min-height:100vh; display:flex; flex-direction:column; }
.cs-page > main { flex:1; }
.cs-container { width:min(1180px,calc(100% - 32px)); margin-inline:auto; }
.cs-section { padding-block:clamp(40px,7vw,88px); }
.cs-heading { font-size:clamp(2rem,5vw,4rem); line-height:1.12; margin:0 0 1rem; }
.site-header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:16px; background:white; border-bottom:1px solid #dce5ed; }
.site-header nav { display:flex; flex-wrap:wrap; gap:16px; }
.site-header a, footer a { color:#205676; }
.brand { font-weight:750; }
footer[data-csui-fallback] { background:#fff; border-top:1px solid #dce5ed; padding:24px 0; }
footer[data-csui-fallback] nav { display:flex; flex-wrap:wrap; gap:12px 24px; }
.skip-link { position:absolute; left:8px; top:-200px; z-index:1300; background:white; padding:12px; }
.skip-link:focus { top:8px; }
a:focus-visible { outline:2px solid #205676; outline-offset:3px; }
.csui-header-active .cs-page > main { padding-top:4.5rem; }
@media(max-width:900px) { .csui-header-active .cs-page > main { padding-top:3.75rem; } }

/* Resource-specific presentation. Corporate tokens and shell come from UI. */
.site-header .brand img { display:block; width:156px; max-width:100%; height:40px; object-fit:contain; }
.site-header .brand { min-width:0; display:flex; flex-direction:column; align-items:flex-start; text-decoration:none; }
.site-header .brand-subtitle { margin-inline-start:42px; color:#52687d; font-size:10px; line-height:1.3; font-weight:600; letter-spacing:.02em; }
@media(max-width:900px) {
  .site-header .brand img { width:126px; height:32px; }
  .site-header .brand-subtitle { margin-inline-start:34px; font-size:9px; }
}
@media(max-width:400px) {
  .site-header .brand img { width:110px; }
  .site-header .brand-subtitle { margin-inline-start:29px; font-size:8px; }
}
.resource-intro { max-width:50rem; margin-bottom:2rem; }
.resource-kicker { color:var(--cs-color-primary,#205676); font-weight:750; text-transform:uppercase; letter-spacing:.08em; font-size:.8rem; }
.resource-intro p, .resource-muted { color:var(--cs-color-text-muted,#52687d); }
.resource-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap:clamp(16px,2.5vw,24px); }
.resource-card { display:flex; flex-direction:column; gap:12px; min-width:0; }
.resource-card h2, .resource-card p { margin:0; }
.resource-card .cs-button { margin-top:auto; }
.resource-status { color:var(--cs-color-text-muted,#52687d); font-size:.85rem; font-weight:650; }
.resource-article { max-width:54rem; }
.resource-article section { margin-block:2rem; }
.resource-article h2 { line-height:1.25; font-size:clamp(1.25rem,2.8vw,1.7rem); }
.resource-article li + li { margin-top:.4rem; }
.resource-article ul { padding-inline-start:1.4rem; }
.resource-index { display:grid; gap:.4rem; padding-inline-start:1.4rem; }
.resource-breadcrumb { margin-bottom:1.5rem; }
.resource-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:1.5rem; }
.resource-note { border-inline-start:3px solid var(--cs-color-primary,#205676); padding:12px 16px; background:var(--cs-color-surface,#fff); }
.resource-faq { display:grid; gap:12px; }
.resource-faq details { padding:16px; }
.resource-faq summary { cursor:pointer; font-weight:700; }
/* Offline equivalents; shared design enhances these when available. */
.cs-card { border:1px solid var(--cs-color-border,#dce5ed); background:var(--cs-color-surface,#fff); border-radius:var(--cs-radius-lg,20px); padding:clamp(16px,3vw,28px); }
.cs-button { display:inline-flex; justify-content:center; align-items:center; min-height:48px; padding:10px 20px; font-weight:700; text-align:center; text-decoration:none; color:#fff; background:var(--cs-color-primary,#205676); border:1px solid transparent; border-radius:var(--cs-radius-md,12px); }
.cs-button:hover { background:var(--cs-color-primary-hover,#19455d); }
.cs-button--secondary { color:var(--cs-color-primary,#205676); background:#fff; border-color:currentColor; }
.cs-button--secondary:hover { background:var(--cs-color-soft,#eaf4f1); }
.resource-article a:not(.cs-button), .resource-faq a { color:var(--cs-color-primary,#205676); overflow-wrap:anywhere; }
@media(max-width:480px) { .resource-actions > a { width:100%; } }
.resource-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
