/*
Theme Name: WIC Council
Theme URI: https://workforceinfocouncil.org/
Author: Workforce Information Council
Description: Lightweight custom theme for the Workforce Information Council. Light, research-council design with Elementor-compatible page templates.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: wic
*/

/* ================================================================ fonts */
@font-face { font-family: "Literata"; src: url("assets/fonts/literata.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("assets/fonts/literata-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("assets/fonts/publicsans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("assets/fonts/publicsans-italic.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }

/* ================================================================ tokens (stable: see DESIGN.md) */
:root {
	--navy: #0F1F3D;
	--navy-2: #1F3B73;
	--ink: #0F1F3D;
	--ink-2: #3A4A66;
	--ink-3: #5A6782;
	--rust: #B4532A;
	--rust-ink: #9A4521;
	--rust-tint: #FBF1EC;
	--paper: #F3F5F9;
	--paper-2: #E8ECF3;
	--rule: #DCE2EC;
	--rule-2: #C3CCDB;
	--white: #FFFFFF;
	--on-navy: #FFFFFF;
	--on-navy-2: #C9D1E0;
	--on-navy-3: #9AA6BD;
	--rust-on-navy: #E8A27F;

	--font-display: "Literata", Georgia, "Times New Roman", serif;
	--font-read: "Literata", Georgia, "Times New Roman", serif;
	--font-ui: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--fs-d1: 3.25rem;
	--fs-h1: 2.625rem;
	--fs-h2: 1.875rem;
	--fs-h3: 1.375rem;
	--fs-h4: 1.125rem;
	--fs-lead: 1.25rem;
	--fs-body: 1.0625rem;
	--fs-read: 1.1875rem;
	--fs-sm: 0.9375rem;
	--fs-xs: 0.8125rem;
	--lh-tight: 1.15;
	--lh-head: 1.25;
	--lh-body: 1.6;
	--lh-read: 1.7;

	--s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
	--wrap: 1200px;
	--gutter: 24px;
	--measure: 680px;
	--section: 64px;
	--r1: 2px;
	--r2: 4px;
	--shadow-1: 0 1px 2px rgba(15, 31, 61, .06), 0 2px 8px rgba(15, 31, 61, .06);
	--header-h: 80px;
	--wic-sticky-h: 61px;
	--wic-sticky-top: var(--wic-sticky-h); /* alias used by hubs.css */ /* height of the stuck header (compact bar + hairline); use for sticky sub-navs and scroll-margin */
	--ease: cubic-bezier(.2, .6, .2, 1);
}
@media (max-width: 599px) {
	:root {
		--fs-d1: 2.25rem; --fs-h1: 2rem; --fs-h2: 1.5rem; --fs-h3: 1.25rem; --fs-h4: 1.0625rem;
		--fs-lead: 1.125rem; --fs-body: 1rem; --fs-read: 1.0625rem;
		--gutter: 16px; --section: 48px; --header-h: 64px; --wic-sticky-h: 57px;
	}
}
/* Light theme only: the site is deliberately light. Keep colour-scheme explicit so UA widgets stay light. */
:root { color-scheme: light; }

/* ================================================================ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--wic-sticky-h) + 16px); }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-ui);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	font-feature-settings: "kern" 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--navy-2); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--rust-ink); }
:focus-visible { outline: 2px solid var(--navy-2); outline-offset: 2px; border-radius: 1px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: var(--lh-head); letter-spacing: -0.01em; margin: 0 0 var(--s4); color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
h4 { font-size: var(--fs-h4); font-weight: 600; }
p { margin: 0 0 var(--s4); }
ul, ol { padding-left: 1.25em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s6) 0; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }
.screen-reader-text, .sr-only {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus { clip: auto !important; clip-path: none; height: auto; width: auto; z-index: 100000; }
.wic-skip { position: absolute; left: var(--s4); top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: var(--s2) var(--s4); border-radius: var(--r2); text-decoration: none; font-weight: 600; }
.wic-skip:focus { top: var(--s2); color: #fff; }
.wic-num { font-variant-numeric: tabular-nums lining-nums; }
.alignleft { float: left; margin: 0 var(--s5) var(--s4) 0; }
.alignright { float: right; margin: 0 0 var(--s4) var(--s5); }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.45; margin-top: var(--s2); }

/* ================================================================ layout */
.wic-wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wic-section { padding: var(--section) 0 0; }
.wic-section:last-child { padding-bottom: var(--section); }
.wic-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s5); }
.wic-band { padding: var(--section) 0; margin-top: var(--section); }
.wic-band + .wic-band { margin-top: 0; }
.wic-band--paper { background: var(--paper); }
.wic-band--rust { background: var(--rust-tint); }
.wic-band--navy { background: var(--navy); color: var(--on-navy); }
.wic-band + .wic-section { padding-top: var(--section); }
#content:focus { outline: none; }

/* ================================================================ motif */
.wic-mark { display: inline-flex; align-items: flex-end; gap: 2px; width: 18px; height: 16px; flex: none; }
.wic-mark i { display: block; width: 4px; height: 100%; background: var(--navy); }
.wic-mark i:nth-child(2) { height: 60%; background: var(--rust); }
.wic-mark--sm { width: 13px; height: 11px; gap: 1.5px; }
.wic-mark--sm i { width: 3px; }
.wic-mark--lg { width: 30px; height: 26px; gap: 3px; }
.wic-mark--lg i { width: 7px; }
.wic-band--navy .wic-mark i { background: var(--on-navy); }
.wic-band--navy .wic-mark i:nth-child(2) { background: var(--rust); }
.wic-bars { display: inline-flex; align-items: flex-end; gap: 3px; width: 34px; height: 30px; padding: 4px; border: 2px solid var(--navy); flex: none; }
.wic-bars i { flex: 1; height: var(--h, 50%); background: var(--navy); min-height: 3px; }
.wic-bars i.is-accent { background: var(--rust); }

/* ================================================================ type helpers */
.wic-kicker { display: inline-block; font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rust-ink); text-decoration: none; line-height: 1.3; }
a.wic-kicker:hover { color: var(--navy); text-decoration: underline; }
.wic-meta { font-family: var(--font-ui); font-size: var(--fs-sm); color: var(--ink-3); margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s2); font-variant-numeric: tabular-nums; }
.wic-meta a { color: var(--ink-2); text-decoration: none; }
.wic-meta a:hover { text-decoration: underline; }
.wic-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--rule-2); display: inline-block; }
.wic-lead { font-family: var(--font-read); font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); }

/* ================================================================ section head */
.wic-section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s2) var(--s5); padding-bottom: var(--s3); margin-bottom: var(--s5); border-bottom: 1px solid var(--rule); }
.wic-section-head__main { display: flex; align-items: center; gap: var(--s3); }
.wic-section-title { margin: 0; font-size: var(--fs-h2); }
.wic-section-dek { grid-column: 1 / -1; margin: 0; color: var(--ink-2); max-width: 64ch; font-size: var(--fs-sm); }
.wic-more { font-family: var(--font-ui); font-weight: 600; font-size: var(--fs-sm); color: var(--navy); text-decoration: none; white-space: nowrap; }
.wic-more:hover { color: var(--rust-ink); text-decoration: underline; }
.wic-band--navy .wic-section-head { border-color: rgba(255, 255, 255, .18); }
.wic-band--navy .wic-section-title, .wic-band--navy .wic-more { color: var(--on-navy); }

/* ================================================================ cards */
.wic-card { position: relative; display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.wic-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r1); background: var(--paper); }
.wic-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s var(--ease); }
.wic-card:hover .wic-card__media img { transform: scale(1.02); }
.wic-card__body { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.wic-card__title { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600; line-height: 1.3; margin: 0; letter-spacing: -0.005em; }
.wic-card__title a { color: var(--ink); text-decoration: none; }
.wic-card__title a:hover { color: var(--navy-2); text-decoration: underline; text-decoration-thickness: 1px; }
.wic-card__dek { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.55; }
.wic-card__meta { font-size: var(--fs-xs); }
.wic-card--lead .wic-card__title { font-size: var(--fs-h2); font-weight: 700; line-height: 1.2; }
.wic-card--lead .wic-card__dek { font-family: var(--font-read); font-size: 1.0625rem; }
.wic-card--row { flex-direction: row; align-items: flex-start; gap: var(--s4); padding: var(--s4) 0; border-top: 1px solid var(--rule); }
.wic-card--row .wic-card__body { flex: 1; }
.wic-card--row .wic-card__media { flex: none; width: 112px; aspect-ratio: 1 / 1; }
.wic-card--row .wic-card__title { font-size: 1.0625rem; }
.wic-card--text { padding: var(--s4) 0; border-top: 1px solid var(--rule); gap: var(--s2); }
.wic-card--text .wic-card__title { font-size: 1.0625rem; }
.wic-card--num { flex-direction: row; padding: var(--s4) 0; border-top: 1px solid var(--rule); }
.wic-card--num .wic-card__body { display: grid; grid-template-columns: 40px 1fr; column-gap: var(--s3); row-gap: var(--s1); }
.wic-card--num .wic-card__num { grid-row: 1 / span 3; font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--rust); line-height: 1; }
.wic-card--num .wic-card__title { font-size: 1.0625rem; }
.wic-card--noimg.wic-card--lead { padding: var(--s6); background: var(--paper); border-top: 3px solid var(--navy); }

/* ================================================================ topic card */
.wic-topic { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5); border: 1px solid var(--rule-2); border-radius: var(--r2); background: var(--white); position: relative; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.wic-topic:hover, .wic-topic:focus-within { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.wic-topic__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.wic-topic__name { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 700; margin: 0; line-height: 1.2; }
.wic-topic__name a { color: var(--ink); text-decoration: none; }
.wic-topic__name a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.wic-topic__purpose { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.5; }
.wic-topic__count { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.wic-topic__list { list-style: none; margin: var(--s2) 0 0; padding: 0; border-top: 1px solid var(--rule); position: relative; z-index: 1; }
.wic-topic__list li { padding: var(--s2) 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-sm); line-height: 1.4; }
.wic-topic__list a { color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wic-topic__list a:hover { color: var(--navy-2); text-decoration: underline; }
.wic-topic__go { margin-top: auto; font-weight: 600; font-size: var(--fs-sm); color: var(--navy); position: relative; z-index: 1; text-decoration: none; }
.wic-topic__go:hover { color: var(--rust-ink); text-decoration: underline; }

/* ================================================================ explainer card */
.wic-explainer { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5); background: var(--paper); border-radius: var(--r2); border-top: 3px solid var(--navy); position: relative; min-width: 0; }
.wic-explainer__label { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rust-ink); }
.wic-explainer__title { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 600; line-height: 1.3; margin: 0; }
.wic-explainer__title a { color: var(--ink); text-decoration: none; }
.wic-explainer__title a::after { content: ""; position: absolute; inset: 0; }
.wic-explainer__title a:hover { text-decoration: underline; }
.wic-explainer__dek { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.55; }
.wic-explainer__go { margin-top: auto; font-size: var(--fs-sm); font-weight: 600; color: var(--navy); }
.wic-explainer:hover { background: var(--paper-2); }

/* ================================================================ info components */
.wic-keyfacts { border-top: 3px solid var(--navy); background: var(--white); padding: var(--s4) 0 var(--s2); margin: var(--s6) 0; }
.wic-keyfacts__title, .wic-glance__title { font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin: 0 0 var(--s3); display: flex; align-items: center; gap: var(--s2); }
.wic-keyfacts ul { list-style: none; padding: 0; margin: 0; }
.wic-keyfacts li { position: relative; padding: var(--s2) 0 var(--s2) 22px; border-bottom: 1px solid var(--rule); font-family: var(--font-ui); font-size: 1rem; line-height: 1.5; }
.wic-keyfacts li::before { content: ""; position: absolute; left: 0; top: .85em; width: 8px; height: 8px; background: var(--rust); }
.wic-callout { position: relative; border: 2px solid var(--navy); padding: var(--s5) var(--s5) var(--s5) calc(var(--s5) + 6px); margin: var(--s6) 0; background: var(--white); }
.wic-callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--rust); }
.wic-callout__num { display: block; font-family: var(--font-display); font-size: 2.75rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--navy); font-variant-numeric: tabular-nums lining-nums; }
.wic-callout__label { display: block; margin-top: var(--s2); font-size: 1rem; color: var(--ink); line-height: 1.45; }
.wic-callout__src { display: block; margin-top: var(--s3); font-size: var(--fs-xs); color: var(--ink-3); }
.wic-glance { background: var(--paper); border-radius: var(--r2); padding: var(--s5); margin: var(--s6) 0; }
.wic-glance ul, .wic-glance dl { margin: 0; padding-left: 1.1em; }
.wic-glance li { margin-bottom: var(--s2); }
.wic-glance dt { font-weight: 700; }
.wic-glance dd { margin: 0 0 var(--s3); color: var(--ink-2); }
.wic-timeline { list-style: none; margin: var(--s6) 0; padding: 0 0 0 26px; position: relative; }
.wic-timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--rule-2); }
.wic-timeline li { position: relative; padding-bottom: var(--s5); }
.wic-timeline li::before { content: ""; position: absolute; left: -26px; top: 6px; width: 12px; height: 12px; background: var(--rust); }
.wic-timeline__date { display: block; font-family: var(--font-ui); font-weight: 700; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; color: var(--navy); }
.wic-faq { margin: var(--s6) 0; border-top: 1px solid var(--rule-2); }
.wic-faq__item { border-bottom: 1px solid var(--rule-2); }
.wic-faq__item > summary { list-style: none; cursor: pointer; padding: var(--s4) 40px var(--s4) 0; position: relative; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; line-height: 1.35; color: var(--ink); }
.wic-faq__item > summary::-webkit-details-marker { display: none; }
.wic-faq__item > summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-family: var(--font-ui); font-weight: 400; font-size: 1.5rem; color: var(--rust); line-height: 1; }
.wic-faq__item[open] > summary::after { content: "\2212"; }
.wic-faq__item > summary:hover { color: var(--navy-2); }
.wic-faq__body { padding: 0 0 var(--s4); color: var(--ink-2); }
.wic-note { background: var(--rust-tint); border-left: 3px solid var(--rust); padding: var(--s4) var(--s5); margin: var(--s5) 0; font-size: var(--fs-sm); color: var(--ink); border-radius: 0 var(--r2) var(--r2) 0; }
.wic-note p:last-child { margin-bottom: 0; }

/* ================================================================ crumbs, pager, buttons, tags, forms, tables */
.wic-crumbs { font-family: var(--font-ui); font-size: var(--fs-sm); color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 0 var(--s2); align-items: center; line-height: 1.5; margin: 0 0 var(--s4); }
.wic-crumbs a { color: var(--ink-2); text-decoration: none; }
.wic-crumbs a:hover { color: var(--navy-2); text-decoration: underline; }
.wic-crumbs__sep, .wic-crumbs .separator { color: var(--rule-2); }
.wic-crumbs [aria-current], .wic-crumbs .breadcrumb_last { color: var(--ink-3); }
@media (max-width: 599px) {
	.wic-crumbs { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
	.wic-crumbs > span:last-child, .wic-crumbs [aria-current], .wic-crumbs .breadcrumb_last { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
	.wic-crumbs > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
.wic-pager { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; justify-content: center; margin: var(--s7) 0 0; font-family: var(--font-ui); font-variant-numeric: tabular-nums; }
.wic-pager .page-numbers { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 var(--s3); border: 1px solid var(--rule-2); border-radius: var(--r2); color: var(--navy); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.wic-pager a.page-numbers:hover { border-color: var(--navy); background: var(--paper); }
.wic-pager .current { background: var(--navy); border-color: var(--navy); color: #fff; }
.wic-pager .dots { border: 0; min-width: 20px; }
.wic-pager .prev, .wic-pager .next { border: 0; }
.wic-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s5); border-radius: var(--r2); border: 1.5px solid var(--navy); background: var(--navy); color: #fff; font-family: var(--font-ui); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease); line-height: 1.2; }
.wic-btn:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.wic-btn--ghost { background: transparent; color: var(--navy); }
.wic-btn--ghost:hover { background: var(--paper); color: var(--navy); border-color: var(--navy); }
.wic-btn--link { background: none; border: 0; padding: 0; min-height: 0; color: var(--navy); }
.wic-btn--link:hover { background: none; color: var(--rust-ink); text-decoration: underline; }
.wic-tag { display: inline-block; padding: 3px 10px; background: var(--paper); border-radius: var(--r1); font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: 500; color: var(--ink-2); text-decoration: none; line-height: 1.5; }
.wic-tag:hover { background: var(--paper-2); color: var(--navy-2); text-decoration: underline; }
input[type="text"], input[type="search"], input[type="email"], input[type="url"], input[type="tel"], input[type="number"], select, textarea {
	min-height: 44px; padding: 10px 12px; border: 1px solid var(--rule-2); border-radius: var(--r2); background: #fff; color: var(--ink); width: 100%; font-size: 1rem;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--navy-2); outline-offset: 1px; border-color: var(--navy-2); }
.wic-table, .entry-content table { width: 100%; border-top: 2px solid var(--navy); font-family: var(--font-ui); font-size: var(--fs-sm); font-variant-numeric: tabular-nums lining-nums; }
.wic-table th, .entry-content table th { text-align: left; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); padding: var(--s3) var(--s3); border-bottom: 1px solid var(--rule-2); }
.wic-table td, .entry-content table td { padding: var(--s3); border-bottom: 1px solid var(--rule); vertical-align: top; }
.wic-table tbody tr:nth-child(even), .entry-content table tbody tr:nth-child(even) { background: var(--paper); }

/* ================================================================ header */
.wic-header { position: sticky; top: -37px; z-index: 50; background: var(--white); }
.admin-bar .wic-header { top: -5px; }
@media (max-width: 782px) { .admin-bar .wic-header { top: 0; } }
.wic-utility { background: var(--paper); border-bottom: 1px solid var(--rule); font-size: var(--fs-xs); color: var(--ink-2); transition: margin-top .2s var(--ease); }
.wic-utility__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 36px; }
.wic-utility__note { margin: 0; display: flex; align-items: center; gap: var(--s2); }
.wic-utility__menu { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s5); }
.wic-utility__menu a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.wic-utility__menu a:hover, .wic-utility__menu .current-menu-item a { color: var(--navy); text-decoration: underline; }
.wic-mainbar { border-bottom: 1px solid var(--rule); background: var(--white); }
.wic-mainbar__in { display: flex; align-items: center; gap: var(--s6); height: var(--header-h); transition: height .2s var(--ease); }
.wic-logo { display: block; flex: none; line-height: 0; }
.wic-logo img { height: 52px; width: auto; transition: height .2s var(--ease); }
.wic-nav { flex: 1; min-width: 0; display: flex; justify-content: flex-end; }
.wic-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--s1); }
.wic-nav__list a { position: relative; display: flex; align-items: center; height: var(--header-h); padding: 0 var(--s3); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96875rem; letter-spacing: .005em; white-space: nowrap; transition: height .2s var(--ease); }
.wic-nav__list a::after { content: ""; position: absolute; left: var(--s3); right: var(--s3); bottom: -1px; height: 3px; background: var(--rust); transform: scaleX(0); transform-origin: left; transition: transform .18s var(--ease); }
.wic-nav__list a:hover { color: var(--navy-2); }
.wic-nav__list a:hover::after, .wic-nav__list .current-menu-item > a::after, .wic-nav__list .current-menu-parent > a::after, .wic-nav__list .current-category-ancestor > a::after, .wic-nav__list .current-post-ancestor > a::after, .wic-nav__list a[aria-current]::after { transform: scaleX(1); }
.wic-tools { display: flex; align-items: center; gap: var(--s2); flex: none; }
.wic-iconbtn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-width: 44px; height: 44px; padding: 0 var(--s3); border: 1px solid var(--rule-2); background: var(--white); color: var(--navy); border-radius: var(--r2); cursor: pointer; font-weight: 600; font-size: var(--fs-sm); text-decoration: none; }
.wic-iconbtn:hover { border-color: var(--navy); background: var(--paper); color: var(--navy); }
.wic-iconbtn svg { width: 18px; height: 18px; flex: none; }
.wic-menubtn { display: none; }
.wic-header.is-stuck { --header-h: 60px; box-shadow: 0 1px 0 var(--rule), 0 4px 16px rgba(15, 31, 61, .05); }
.wic-header.is-stuck .wic-logo img { height: 38px; }
/* search panel */
.wic-searchpanel { border-bottom: 1px solid var(--rule); background: var(--paper); }
.wic-searchpanel[hidden] { display: none; }
.wic-searchpanel__in { padding: var(--s5) var(--gutter); max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; }
.wic-searchform { display: flex; gap: var(--s2); max-width: 760px; }
.wic-searchform input[type="search"] { flex: 1; min-width: 0; font-size: 1.0625rem; }
.wic-searchform button { flex: none; }
@media (max-width: 1099px) {
	.wic-nav { display: none; }
	.wic-menubtn { display: inline-flex; }
	.wic-mainbar__in { justify-content: space-between; gap: var(--s4); }
	.wic-utility__note { display: none; }
	.wic-utility__in { justify-content: flex-end; }
}
@media (max-width: 599px) {
	.wic-utility { display: none; }
	.wic-header { top: 0; }
	.wic-mainbar__in { gap: var(--s3); }
	.wic-logo { min-width: 0; flex: 0 1 auto; }
	.wic-logo img { height: auto; width: min(254px, calc(100vw - 150px)); }
	.wic-header.is-stuck .wic-logo img { height: auto; width: min(220px, calc(100vw - 150px)); }
	.wic-tools { gap: var(--s1); }
	.wic-header.is-stuck { --header-h: 56px; }
	.wic-iconbtn .wic-iconbtn__label { display: none; }
	.wic-iconbtn { padding: 0; }
}

/* drawer */
.wic-drawer { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: flex-end; }
.wic-drawer[hidden] { display: none; }
.wic-drawer__scrim { position: absolute; inset: 0; background: rgba(15, 31, 61, .45); border: 0; padding: 0; cursor: pointer; }
.wic-drawer__panel { position: relative; width: min(400px, 100%); height: 100%; overflow-y: auto; background: var(--white); padding: var(--s4) var(--s5) var(--s7); display: flex; flex-direction: column; gap: var(--s5); animation: wic-in .2s var(--ease); }
@keyframes wic-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.wic-drawer__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.wic-drawer__top img { height: 34px; width: auto; }
.wic-drawer__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 var(--s2); display: flex; align-items: center; gap: var(--s2); }
.wic-drawer__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.wic-drawer__list li { border-bottom: 1px solid var(--rule); }
.wic-drawer__list a { display: flex; align-items: center; min-height: 48px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.0625rem; }
.wic-drawer__list--small a { font-size: var(--fs-sm); min-height: 44px; font-weight: 500; color: var(--ink-2); }
.wic-drawer__list a:hover { color: var(--navy-2); }
.wic-drawer__note { font-size: var(--fs-xs); color: var(--ink-3); margin: 0; }
html.wic-locked { overflow: hidden; }

/* ================================================================ footer */
.wic-footer { background: var(--navy); color: var(--on-navy-2); margin-top: var(--section); font-size: var(--fs-sm); }
.wic-footer a { color: var(--on-navy); text-decoration: none; }
.wic-footer a:hover { color: var(--rust-on-navy); text-decoration: underline; }
.wic-footer__rule { height: 4px; background: linear-gradient(90deg, var(--rust) 0 64px, transparent 64px); }
.wic-footer__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: var(--s7); padding: var(--s8) 0 var(--s7); }
.wic-footer__logo img { height: 56px; width: auto; }
.wic-footer__about { margin: var(--s5) 0 0; max-width: 46ch; line-height: 1.6; }
.wic-footer__h { font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-navy-3); margin: 0 0 var(--s4); display: flex; align-items: center; gap: var(--s2); }
.wic-footer__h .wic-mark i { background: var(--on-navy-2); }
.wic-footer__h .wic-mark i:nth-child(2) { background: var(--rust); }
.wic-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.wic-footer__list a { font-weight: 500; }
.wic-footer__legal { border-top: 1px solid rgba(255, 255, 255, .14); padding: var(--s5) 0 var(--s6); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s6); font-size: var(--fs-xs); color: var(--on-navy-3); }
.wic-footer__legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.wic-footer__legal a { color: var(--on-navy-2); }
.wic-footer__independent { margin: var(--s5) 0 0; font-size: var(--fs-xs); color: var(--on-navy-3); max-width: 60ch; line-height: 1.55; }
@media (max-width: 899px) {
	.wic-footer__top { grid-template-columns: 1fr 1fr; gap: var(--s6); padding-top: var(--s7); }
	.wic-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 459px) { .wic-footer__logo img { height: 46px; } }

/* ================================================================ homepage */
.wic-hero { padding: var(--s8) 0 var(--s7); border-bottom: 1px solid var(--rule); }
.wic-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s8); align-items: center; }
.wic-hero__eyebrow { display: inline-flex; align-items: center; gap: var(--s3); margin-bottom: var(--s5); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.wic-hero__title { font-size: var(--fs-d1); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 var(--s5); max-width: 18ch; }
.wic-hero__lead { font-family: var(--font-read); font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); max-width: 54ch; margin: 0 0 var(--s6); }
.wic-hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.wic-hero__note { margin: var(--s5) 0 0; font-size: var(--fs-xs); color: var(--ink-3); max-width: 60ch; }
.wic-glancebox { border: 2px solid var(--navy); padding: var(--s5) var(--s5) var(--s4); position: relative; background: var(--white); }
.wic-glancebox__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.wic-glancebox__unit { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; }
.wic-glancebox__title { display: flex; align-items: center; gap: var(--s2); margin: 0; font-family: var(--font-ui); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.wic-glancebox__total { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums lining-nums; }
.wic-glancebox__totallabel { display: block; font-size: var(--fs-xs); color: var(--ink-3); margin-top: var(--s1); }
.wic-chart { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.wic-chart li { display: grid; grid-template-columns: 13.5em 1fr 3em; align-items: center; gap: var(--s3); font-size: var(--fs-sm); }
.wic-chart a { color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.3; }
.wic-chart a:hover { color: var(--navy-2); text-decoration: underline; }
.wic-chart__bar { height: 14px; background: var(--paper-2); position: relative; }
.wic-chart__bar span { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); background: var(--navy); }
.wic-chart li:first-child .wic-chart__bar span { background: var(--rust); }
.wic-chart__val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 600; }
.wic-glancebox__foot { margin: var(--s4) 0 0; padding-top: var(--s3); border-top: 1px solid var(--rule); font-size: var(--fs-xs); color: var(--ink-3); }
.wic-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.wic-latest { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6); }
.wic-latest__side { display: flex; flex-direction: column; }
.wic-latest__side > .wic-card:first-child { border-top: 0; padding-top: 0; }
.wic-latest__more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--rule); }
.wic-explainers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.wic-rights { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: var(--s6); align-items: start; }
.wic-rights__intro p { color: var(--ink-2); }
.wic-rights__intro .wic-note { background: var(--white); }
.wic-rights__intro .wic-lead { margin-bottom: var(--s5); }
.wic-rights__list > .wic-card:first-child { border-top: 0; padding-top: 0; }
.wic-duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); }
.wic-duo__col .wic-card--stack, .wic-duo__col > .wic-card:first-of-type { margin-bottom: var(--s3); }
.wic-mostread { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--s7); }
.wic-mostread__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s6); }
.wic-principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); counter-reset: p; }
.wic-principle { border-top: 2px solid var(--on-navy); padding-top: var(--s4); }
.wic-principle__k { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rust-on-navy); margin: 0 0 var(--s2); }
.wic-principle__t { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--on-navy); margin: 0 0 var(--s2); line-height: 1.3; }
.wic-principle p { color: var(--on-navy-2); font-size: var(--fs-sm); margin: 0; line-height: 1.6; }
.wic-band--navy a { color: var(--on-navy); }
.wic-band--navy .wic-btn--ghost { color: var(--on-navy); border-color: var(--on-navy-2); }
.wic-band--navy .wic-btn--ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.wic-band--navy .wic-section-dek { color: var(--on-navy-2); }
.wic-principles__foot { margin-top: var(--s6); display: flex; gap: var(--s3); flex-wrap: wrap; }
@media (max-width: 1099px) {
	.wic-hero__grid { grid-template-columns: 1fr; gap: var(--s6); }
	.wic-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wic-latest { grid-template-columns: 1fr; }
	.wic-latest__more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wic-rights { grid-template-columns: 1fr 1fr; }
	.wic-rights__intro { grid-column: 1 / -1; }
	.wic-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wic-mostread { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
	.wic-explainers { grid-template-columns: 1fr 1fr; }
	.wic-duo { grid-template-columns: 1fr; gap: var(--s7); }
}
@media (max-width: 599px) {
	.wic-hero { padding: var(--s6) 0 var(--s6); }
	.wic-topics, .wic-explainers, .wic-rights, .wic-principles, .wic-latest__more, .wic-mostread__list { grid-template-columns: 1fr; }
	.wic-chart li { grid-template-columns: 10.5em 1fr 2.5em; }
	.wic-card--lead .wic-card__title { font-size: 1.5rem; }
	.wic-latest__more .wic-card { padding-top: var(--s4); border-top: 1px solid var(--rule); }
	.wic-latest__more .wic-card:first-child { border-top: 0; padding-top: 0; }
	.wic-latest__more .wic-card__media { display: none; }
	.wic-hero__actions .wic-btn { flex: 1 1 auto; }
}

/* ================================================================ generic page fallback (index.php) */
.wic-page-head { padding: var(--s7) 0 var(--s5); border-bottom: 1px solid var(--rule); margin-bottom: var(--s6); }
.wic-page-head h1 { margin: 0; }
.wic-list { display: grid; gap: 0; }

/* ================================================================ motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ================================================================ print */
@media print {
	.wic-utility, .wic-mainbar .wic-nav, .wic-tools, .wic-footer, .wic-drawer, .wic-searchpanel { display: none !important; }
	.wic-header { position: static; }
	body { font-size: 11pt; }
	a { color: inherit; }
}
.wic-footer__copy { margin: 0; }
