/* WeGoTalk News: main stylesheet. Mobile-first. Tokens first, then base, layout, components. */

:root {
	--wgt-ink: #121a21;
	--wgt-ink-soft: #36434d;
	--wgt-muted: #596671;
	--wgt-paper: #ffffff;
	--wgt-mist: #f0f4f2;
	--wgt-line: #d5ddd9;
	--wgt-accent: #026941;
	--wgt-accent-dark: #014c2f;
	--wgt-red: #dc0000;
	--wgt-flag: #f2b632;
	--wgt-flag-ink: #261a00;

	--wgt-font-head: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wgt-font-body: Charter, "Bitstream Charter", "Iowan Old Style", "Noto Serif", Georgia, serif;
	--wgt-font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--wgt-s1: .25rem; --wgt-s2: .5rem; --wgt-s3: .75rem; --wgt-s4: 1rem; --wgt-s5: 1.5rem; --wgt-s6: 2rem; --wgt-s7: 3rem;
	--wgt-r-img: 6px;
	--wgt-r-ctl: 4px;
	--wgt-max: 1280px;
	--wgt-measure: 44rem;
	--wgt-nav-h: 3rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
body {
	margin: 0; background: var(--wgt-paper); color: var(--wgt-ink);
	font-family: var(--wgt-font-ui); font-size: 1rem; line-height: 1.55;
	overflow-wrap: break-word; text-rendering: optimizeLegibility;
}
img, video, iframe, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--wgt-accent); text-underline-offset: .15em; }
a:hover { color: var(--wgt-accent-dark); }
h1, h2, h3, h4 { font-family: var(--wgt-font-head); line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }

/* Accessibility */
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus {
	position: fixed !important; z-index: 100000; top: .5rem; left: .5rem; width: auto; height: auto; margin: 0; padding: .75rem 1rem;
	clip: auto; clip-path: none; background: var(--wgt-ink); color: #fff; border-radius: var(--wgt-r-ctl); text-decoration: none;
}
:focus-visible { outline: 3px solid var(--wgt-accent); outline-offset: 2px; }
.wgt-utility :focus-visible, .wgt-footer :focus-visible { outline-color: var(--wgt-flag); }
[hidden] { display: none !important; }

/* Layout */
.wgt-wrap { width: 100%; max-width: var(--wgt-max); margin-inline: auto; padding-inline: clamp(1rem, 3vw, 2rem); }
.wgt-main { display: block; padding-bottom: var(--wgt-s6); }
.wgt-section-title {
	font-size: 1.35rem; font-weight: 800; margin-bottom: var(--wgt-s4); padding-top: var(--wgt-s3);
	border-top: 4px solid var(--wgt-accent); display: inline-block; padding-right: var(--wgt-s5);
}

/* Utility bar */
.wgt-utility { background: var(--wgt-ink); color: #e8eeeb; font-size: .8125rem; }
.wgt-utility__row { display: flex; align-items: center; justify-content: space-between; gap: var(--wgt-s4); min-height: 2.25rem; }
.wgt-utility__date { white-space: nowrap; }
.wgt-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.wgt-social a { color: inherit; text-decoration: none; padding: .35rem 0; display: inline-block; }
.wgt-social a:hover { text-decoration: underline; color: #fff; }
.wgt-social--utility { display: none; }

/* Masthead */
.wgt-masthead { background: var(--wgt-paper); border-bottom: 4px solid var(--wgt-red); position: sticky; top: 0; z-index: 50; }
.wgt-masthead__row { display: flex; align-items: center; justify-content: space-between; gap: var(--wgt-s4); padding-block: .5rem; }
.wgt-masthead .wgt-utility { display: none; }
.wgt-brand { margin: 0; font-size: 1.5rem; line-height: 1; font-weight: 900; }
.wgt-brand a { color: var(--wgt-ink); text-decoration: none; }
.wgt-brand .custom-logo-link, .wgt-brand__logo { display: block; }
.wgt-brand__logo img { width: auto; height: 44px; }
.wgt-brand .custom-logo { width: auto; height: auto; max-height: 44px; max-width: min(60vw, 280px); }
.wgt-tagline { display: none; margin: .25rem 0 0; color: var(--wgt-muted); font-size: .875rem; }
.wgt-masthead__actions { display: flex; gap: .25rem; }
.wgt-iconbtn {
	display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; min-width: 44px; justify-content: center;
	padding: 0 .65rem; background: transparent; border: 1px solid transparent; border-radius: var(--wgt-r-ctl); cursor: pointer; font-weight: 600; font-size: .9rem;
}
.wgt-iconbtn:hover { background: var(--wgt-mist); }
.wgt-iconbtn[aria-expanded="true"] { background: var(--wgt-mist); border-color: var(--wgt-line); }
.wgt-iconbtn__label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wgt-search-panel { border-top: 1px solid var(--wgt-line); padding-block: .75rem; background: var(--wgt-mist); }
.js .wgt-search-panel { display: none; }
.js .wgt-search-panel.is-open { display: block; }
.wgt-searchform { display: flex; gap: .5rem; max-width: 40rem; }
.wgt-searchform__input { flex: 1; min-width: 0; min-height: 44px; padding: .5rem .75rem; border: 1px solid #8b9aa3; border-radius: var(--wgt-r-ctl); background: #fff; }
.wgt-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1.1rem; border: 0; border-radius: var(--wgt-r-ctl);
	background: var(--wgt-accent); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer;
}
.wgt-btn:hover { background: var(--wgt-accent-dark); color: #fff; }

/* Primary nav: no-JS shows a simple wrapped list; JS turns it into a drawer on small screens. */
.wgt-navbar { background: var(--wgt-accent); border-bottom: 4px solid var(--wgt-red); }
.wgt-navbar :focus-visible { outline-color: #fff; outline-offset: -3px; }
.wgt-nav { padding-block: 0; }
.wgt-menu, .wgt-menu ul { list-style: none; margin: 0; padding: 0; }
.wgt-menu { display: flex; flex-wrap: wrap; }
.wgt-menu a { display: block; color: #fff; text-decoration: none; padding: .8rem .85rem; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.wgt-menu a:hover { background: rgba(255,255,255,.16); color: #fff; }
.wgt-menu .current-menu-item > a, .wgt-menu .current-menu-ancestor > a, .wgt-menu a[aria-current="page"] { box-shadow: inset 0 -4px 0 #fff; }
.wgt-menu li { position: relative; }
.wgt-sub-toggle { display: none; }

.js .wgt-navbar { display: none; position: fixed; inset: var(--wgt-nav-top, 3.5rem) 0 0 0; z-index: 49; overflow-y: auto; background: var(--wgt-accent); }
.js .wgt-navbar.is-open { display: block; }
.js .wgt-menu { display: block; padding-block: .5rem 2rem; }
.js .wgt-menu > li { border-bottom: 1px solid rgba(255,255,255,.22); display: flex; flex-wrap: wrap; align-items: stretch; }
.js .wgt-menu > li > a { flex: 1; padding: 1rem .25rem; font-size: 1.05rem; white-space: normal; }
.js .wgt-sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; background: transparent; border: 0; color: #fff; cursor: pointer; }
.js .wgt-sub-toggle svg { transition: transform .15s; }
.js .wgt-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.js .wgt-menu .sub-menu { display: none; flex-basis: 100%; padding: 0 0 .5rem .75rem; }
.js .wgt-menu .sub-menu.is-open { display: block; }
.js .wgt-menu .sub-menu a { padding: .7rem .25rem; font-weight: 500; }
body.wgt-nav-open { overflow: hidden; }

/* Breaking strip */
.wgt-breaking { background: var(--wgt-mist); color: var(--wgt-ink); border-bottom: 1px solid var(--wgt-line); }
.wgt-breaking__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .9rem; padding-block: .55rem; }
.wgt-breaking__label { font-family: var(--wgt-font-head); font-weight: 900; background: var(--wgt-red); color: #fff; padding: .1rem .55rem; border-radius: 3px; text-transform: uppercase; font-size: .8rem; letter-spacing: .04em; }
.wgt-breaking__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.wgt-breaking a { color: inherit; font-weight: 700; }
.wgt-breaking a:hover { color: inherit; text-decoration-thickness: 2px; }
.wgt-breaking :focus-visible { outline-color: var(--wgt-accent); }

/* Cards */
.wgt-card { display: flex; flex-direction: column; gap: var(--wgt-s3); min-width: 0; }
.wgt-media { display: block; position: relative; background: var(--wgt-mist); border-radius: var(--wgt-r-img); overflow: hidden; aspect-ratio: 16 / 9; }
.wgt-media img { width: 100%; height: 100%; object-fit: cover; }
.wgt-media__empty { position: absolute; inset: 0; background: linear-gradient(135deg, var(--wgt-mist), #e1e9e5); }
.wgt-card__kicker { margin: 0; font-family: var(--wgt-font-ui); font-size: .8125rem; font-weight: 700; color: var(--wgt-accent); min-height: 1px; }
.wgt-card__kicker:empty { display: none; }
.wgt-kicker { color: var(--wgt-accent); text-decoration: none; }
.wgt-kicker:hover { text-decoration: underline; }
.wgt-badge { display: inline-block; padding: .05rem .45rem; background: var(--wgt-ink); color: #fff; border-radius: 3px; font-size: .75rem; margin-right: .35rem; }
.wgt-card__title { font-size: 1.1rem; font-weight: 750; line-height: 1.25; }
.wgt-card__title a { color: var(--wgt-ink); text-decoration: none; }
.wgt-card__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--wgt-accent); }
.wgt-card__excerpt { margin: 0; color: var(--wgt-ink-soft); font-family: var(--wgt-font-body); font-size: 1rem; line-height: 1.5; }
.wgt-card__meta { margin: 0; color: var(--wgt-muted); font-size: .8125rem; display: flex; flex-wrap: wrap; gap: .1rem .75rem; }
.wgt-byline { font-weight: 600; color: var(--wgt-ink-soft); }
.wgt-card__body { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }

.wgt-card--lead .wgt-card__title { font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem); font-weight: 850; line-height: 1.1; letter-spacing: -.02em; }
.wgt-card--lead .wgt-card__excerpt { font-size: 1.1rem; }
.wgt-card--feature .wgt-card__title { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); font-weight: 850; }

.wgt-card--compact { flex-direction: row; gap: var(--wgt-s3); align-items: flex-start; }
.wgt-card--compact .wgt-media { flex: 0 0 38%; max-width: 128px; aspect-ratio: 4 / 3; }
.wgt-card--compact .wgt-card__title { font-size: 1rem; }

.wgt-card--row { flex-direction: row; gap: var(--wgt-s4); align-items: flex-start; padding-block: var(--wgt-s4); border-bottom: 1px solid var(--wgt-line); }
.wgt-card--row .wgt-media { flex: 0 0 36%; max-width: 260px; aspect-ratio: 3 / 2; }
.wgt-card--row .wgt-card__excerpt { display: none; }

/* Homepage hero */
.wgt-hero { padding-block: var(--wgt-s4) var(--wgt-s5); }
.wgt-hero__grid { display: grid; gap: var(--wgt-s5); grid-template-columns: minmax(0, 1fr); }
.wgt-hero__support { display: grid; gap: var(--wgt-s4); align-content: start; grid-template-columns: minmax(0, 1fr); }
.wgt-hero__support .wgt-card--compact { padding-bottom: var(--wgt-s4); border-bottom: 1px solid var(--wgt-line); }
.wgt-hero__support .wgt-card--compact:last-child { border-bottom: 0; }

/* Trending */
.wgt-trending { background: var(--wgt-mist); padding-block: var(--wgt-s5); margin-bottom: var(--wgt-s5); }
.wgt-trending__grid { display: grid; gap: var(--wgt-s4); grid-template-columns: minmax(0, 1fr); }
.wgt-trending .wgt-card--compact .wgt-media { max-width: 112px; }

/* Modules */
.wgt-module, .wgt-latest, .wgt-mostread { padding-block: var(--wgt-s4) var(--wgt-s5); }
.wgt-module__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--wgt-s4); flex-wrap: wrap; margin-bottom: var(--wgt-s2); }
.wgt-module__head .wgt-section-title { margin-bottom: var(--wgt-s3); }
.wgt-module__all { font-weight: 700; font-size: .9rem; }
.wgt-grid { display: grid; gap: var(--wgt-s5) var(--wgt-s4); grid-template-columns: minmax(0, 1fr); }
.wgt-split { display: grid; gap: var(--wgt-s5); grid-template-columns: minmax(0, 1fr); }
.wgt-split__rest { display: grid; gap: var(--wgt-s4); align-content: start; grid-template-columns: minmax(0, 1fr); }
.wgt-module--lead-list .wgt-split__rest .wgt-card--compact { padding-bottom: var(--wgt-s4); border-bottom: 1px solid var(--wgt-line); }
.wgt-module--list .wgt-card--compact { padding-bottom: var(--wgt-s3); border-bottom: 1px solid var(--wgt-line); }
.wgt-module--feature { background: var(--wgt-mist); }
.wgt-module--feature .wgt-media { background: #dfe8e4; }
.wgt-split__lead .wgt-card--lead .wgt-card__title { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); }
.wgt-split__lead .wgt-card--lead .wgt-card__excerpt { font-size: 1rem; }
.wgt-latest__list { max-width: 56rem; }

.wgt-mostread__list { list-style: none; padding: 0; margin: 0; max-width: 44rem; counter-reset: wgt-rank; }
.wgt-mostread__list li { padding: .85rem 0; border-bottom: 1px solid var(--wgt-line); display: flex; flex-wrap: wrap; gap: .1rem .75rem; align-items: baseline; }
.wgt-mostread__list a { font-family: var(--wgt-font-head); font-weight: 700; color: var(--wgt-ink); text-decoration: none; flex: 1 1 16rem; }
.wgt-mostread__list a:hover { text-decoration: underline; }
.wgt-mostread__list .wgt-time { color: var(--wgt-muted); font-size: .8125rem; }
.wgt-mostread__list.is-ranked li::before { counter-increment: wgt-rank; content: counter(wgt-rank); font-family: var(--wgt-font-head); font-weight: 900; color: var(--wgt-accent); min-width: 1.5rem; }

/* Pagination */
.wgt-pagination { margin-top: var(--wgt-s5); }
.wgt-pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.wgt-pagination a, .wgt-pagination span.page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .8rem;
	border: 1px solid var(--wgt-line); border-radius: var(--wgt-r-ctl); text-decoration: none; color: var(--wgt-ink); font-weight: 700;
}
.wgt-pagination a:hover { background: var(--wgt-mist); }
.wgt-pagination .page-numbers.current { background: var(--wgt-ink); color: #fff; border-color: var(--wgt-ink); }
.wgt-pagination .page-numbers.dots { border-color: transparent; min-width: 0; padding: 0 .2rem; }

/* Archives */
.wgt-archive { padding-top: var(--wgt-s4); }
.wgt-archive__head { margin-block: var(--wgt-s3) var(--wgt-s4); }
.wgt-archive__title { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); font-weight: 850; }
.wgt-archive__desc { color: var(--wgt-ink-soft); max-width: 44rem; margin-top: var(--wgt-s2); font-family: var(--wgt-font-body); }
.wgt-archive__list { max-width: 56rem; }
.wgt-archive__list > .wgt-card--lead { padding-bottom: var(--wgt-s5); border-bottom: 1px solid var(--wgt-line); }
.wgt-authorhead { display: flex; gap: var(--wgt-s4); align-items: center; }
.wgt-avatar { border-radius: 50%; }
.wgt-chips { list-style: none; margin: var(--wgt-s3) 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.wgt-chips a { display: inline-block; padding: .4rem .8rem; border: 1px solid var(--wgt-line); border-radius: 99px; text-decoration: none; color: var(--wgt-ink); font-size: .9rem; font-weight: 600; }
.wgt-chips a:hover { background: var(--wgt-mist); }
.wgt-empty { max-width: 40rem; }
.wgt-breadcrumbs ol { list-style: none; margin: 0 0 var(--wgt-s3); padding: 0; display: flex; flex-wrap: wrap; gap: .2rem .5rem; font-size: .8125rem; color: var(--wgt-muted); }
.wgt-breadcrumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--wgt-line); }
.wgt-breadcrumbs a { color: var(--wgt-muted); }
.wgt-breadcrumbs [aria-current] { color: var(--wgt-ink-soft); }

/* Article */
.wgt-article-layout { display: grid; gap: var(--wgt-s6); padding-top: var(--wgt-s4); grid-template-columns: minmax(0, 1fr); }
.wgt-article { min-width: 0; max-width: 100%; }
.wgt-article__title { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3rem); font-weight: 850; line-height: 1.1; letter-spacing: -.02em; margin-block: .35rem var(--wgt-s3); max-width: 24em; }
.wgt-article__standfirst { font-family: var(--wgt-font-body); font-size: 1.2rem; line-height: 1.45; color: var(--wgt-ink-soft); max-width: var(--wgt-measure); }
.wgt-article__meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; color: var(--wgt-muted); font-size: .875rem; margin-bottom: var(--wgt-s4); }
.wgt-article__figure { margin: 0 0 var(--wgt-s4); }
.wgt-article__figure img { width: 100%; border-radius: var(--wgt-r-img); }
.wgt-article__figure figcaption, .wp-caption-text, .wp-element-caption, figcaption { font-size: .8125rem; color: var(--wgt-muted); margin-top: .4rem; line-height: 1.4; }
.wgt-prose { font-family: var(--wgt-font-body); font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.7; max-width: var(--wgt-measure); }
.wgt-prose > * { max-width: 100%; }
.wgt-prose h2, .wgt-prose h3, .wgt-prose h4 { font-family: var(--wgt-font-head); margin: 1.8em 0 .6em; scroll-margin-top: 5rem; }
.wgt-prose h2 { font-size: 1.5rem; } .wgt-prose h3 { font-size: 1.25rem; }
.wgt-prose blockquote { margin: 1.5em 0; padding: .25em 0 .25em 1.1em; border-left: 4px solid var(--wgt-accent); font-size: 1.1em; }
.wgt-prose blockquote p:last-child { margin-bottom: 0; }
.wgt-prose figure { margin: 1.5em 0; }
.wgt-prose img { border-radius: var(--wgt-r-img); }
.wgt-prose table { display: block; overflow-x: auto; width: 100%; font-family: var(--wgt-font-ui); font-size: .95rem; }
.wgt-prose th, .wgt-prose td { border: 1px solid var(--wgt-line); padding: .5rem .7rem; text-align: left; }
.wgt-prose iframe { max-width: 100%; }
.wgt-prose .alignwide, .wgt-prose .alignfull { max-width: 100%; }
.wgt-prose .alignleft { float: left; margin: .25rem 1rem .5rem 0; }
.wgt-prose .alignright { float: right; margin: .25rem 0 .5rem 1rem; }
.wgt-prose .aligncenter { margin-inline: auto; }
.wgt-prose::after { content: ""; display: table; clear: both; }
.wgt-pagelinks { font-family: var(--wgt-font-ui); margin-block: var(--wgt-s4); display: flex; gap: .5rem; flex-wrap: wrap; }
.wgt-pagelinks > a, .wgt-pagelinks > span { padding: .4rem .8rem; border: 1px solid var(--wgt-line); border-radius: var(--wgt-r-ctl); text-decoration: none; }

.wgt-notice { margin: 0 0 var(--wgt-s4); padding: var(--wgt-s3) var(--wgt-s4); background: #fff8e1; border-left: 5px solid var(--wgt-flag); max-width: var(--wgt-measure); font-size: .975rem; }
.wgt-toc { font-family: var(--wgt-font-ui); font-size: .95rem; margin: 0 0 var(--wgt-s5); padding: var(--wgt-s3) var(--wgt-s4); background: var(--wgt-mist); border-radius: var(--wgt-r-img); }
.wgt-toc summary { cursor: pointer; font-weight: 800; }
.wgt-toc ol { margin: .6rem 0 0; padding-left: 1.25rem; }
.wgt-toc li { margin: .3rem 0; line-height: 1.35; }
.wgt-toc__l3 { margin-left: 1rem; list-style-type: circle; }

.wgt-share { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin: 0 0 var(--wgt-s4); padding-block: .6rem; border-block: 1px solid var(--wgt-line); font-family: var(--wgt-font-ui); font-size: .9rem; }
.wgt-share__label { font-weight: 800; }
.wgt-share ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.wgt-share a, .wgt-copy { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem; border: 1px solid var(--wgt-line); border-radius: var(--wgt-r-ctl); background: #fff; color: var(--wgt-ink); text-decoration: none; font-weight: 600; cursor: pointer; }
.wgt-share a:hover, .wgt-copy:hover { background: var(--wgt-mist); }

.wgt-article__tags { margin-top: var(--wgt-s5); }
.wgt-authorbox { display: flex; gap: var(--wgt-s4); margin-block: var(--wgt-s5); padding: var(--wgt-s4); background: var(--wgt-mist); border-radius: var(--wgt-r-img); max-width: var(--wgt-measure); font-size: .95rem; }
.wgt-authorbox p { margin: 0 0 .4rem; }
.wgt-authorbox__name { font-weight: 800; font-family: var(--wgt-font-head); }
.post-navigation .nav-links { display: grid; gap: var(--wgt-s3); margin-block: var(--wgt-s5); grid-template-columns: minmax(0, 1fr); }
.post-navigation a { display: block; padding: var(--wgt-s3) var(--wgt-s4); border: 1px solid var(--wgt-line); border-radius: var(--wgt-r-img); text-decoration: none; color: var(--wgt-ink); font-weight: 700; }
.post-navigation a:hover { background: var(--wgt-mist); }
.wgt-related { margin-top: var(--wgt-s6); }
.wgt-sidebar { min-width: 0; }
.widget { margin-bottom: var(--wgt-s5); }
.widget-title { font-size: 1.1rem; margin-bottom: var(--wgt-s3); padding-top: var(--wgt-s2); border-top: 4px solid var(--wgt-accent); }
.widget ul { padding-left: 1.1rem; }

/* Pages */
.wgt-pagewrap { padding-top: var(--wgt-s4); }
.wgt-page__title { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); font-weight: 850; margin-bottom: var(--wgt-s4); }

/* Comments */
.wgt-comments { margin-top: var(--wgt-s6); max-width: var(--wgt-measure); }
.wgt-comments__list { list-style: none; padding: 0; }
.wgt-comments__list .comment-body { padding: var(--wgt-s3) 0; border-bottom: 1px solid var(--wgt-line); }
.wgt-comments__list .children { list-style: none; padding-left: 1rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: .6rem .75rem; border: 1px solid #8b9aa3; border-radius: var(--wgt-r-ctl); }
.comment-form .submit { background: var(--wgt-accent); color: #fff; border: 0; border-radius: var(--wgt-r-ctl); min-height: 44px; padding: 0 1.2rem; font-weight: 700; cursor: pointer; }

/* Newsletter */
.wgt-newsletter { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--wgt-s4); max-width: var(--wgt-max); margin: var(--wgt-s6) auto; padding: var(--wgt-s5); background: var(--wgt-accent); color: #fff; border-radius: var(--wgt-r-img); }
.wgt-home .wgt-newsletter { width: calc(100% - 2 * clamp(1rem, 3vw, 2rem)); }
.wgt-newsletter h2 { font-size: 1.4rem; }
.wgt-newsletter a:not(.wgt-btn) { color: #fff; }
.wgt-newsletter .wgt-btn { background: #fff; color: var(--wgt-accent-dark); }
.wgt-newsletter .wgt-btn:hover { background: var(--wgt-mist); color: var(--wgt-accent-dark); }
.wgt-newsletter__privacy { font-size: .85rem; margin: 0; }
.wgt-newsletter input[type="email"], .wgt-newsletter input[type="text"] { min-height: 44px; padding: .5rem .75rem; border: 0; border-radius: var(--wgt-r-ctl); max-width: 100%; }

/* Ads: space is reserved so ads never shift the text */
.wgt-ad { margin: var(--wgt-s5) auto; max-width: 100%; text-align: center; }
.wgt-ad::before { content: attr(aria-label); display: block; font-size: .7rem; color: var(--wgt-muted); margin-bottom: .25rem; }
.wgt-ad__inner { min-height: var(--wgt-ad-h, 0); display: flex; align-items: center; justify-content: center; overflow: hidden; max-width: 100%; }
.wgt-ad--home_top, .wgt-ad--home_mid, .wgt-ad--footer { width: min(100% - 2rem, var(--wgt-max)); }

/* Header banner (728x90): hidden until there is room; the ad itself is only inserted by JavaScript on wide screens. */
.wgt-headerad { display: none; }
@media (min-width: 1180px) {
	.wgt-headerad { display: block; position: relative; flex: 0 0 728px; width: 728px; height: 90px; margin-top: .9rem; }
	.wgt-headerad::before { content: attr(aria-label); position: absolute; top: -1rem; left: 0; font-size: .65rem; color: var(--wgt-muted); letter-spacing: .03em; }
	.wgt-headerad__slot { width: 728px; height: 90px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--wgt-mist); }
	.wgt-masthead__brand { flex: 0 1 auto; min-width: 0; }
	.wgt-masthead__brand .wgt-tagline { max-width: 15rem; }
}

/* Footer */
.wgt-footer { background: var(--wgt-ink); color: #dfe7e3; margin-top: var(--wgt-s6); border-top: 4px solid var(--wgt-red); }
.wgt-footer a { color: #fff; }
.wgt-footer__grid { display: grid; gap: var(--wgt-s5); padding-block: var(--wgt-s6) var(--wgt-s5); grid-template-columns: minmax(0, 1fr); }
.wgt-footer .wgt-brand a { color: #fff; }
.wgt-footer .wgt-brand__logo, .wgt-footer .custom-logo-link { display: inline-block; background: #fff; padding: .6rem .9rem; border-radius: var(--wgt-r-img); }
.wgt-footer .custom-logo { filter: none; max-height: 48px; }
.wgt-footer h2 { font-size: 1rem; margin-bottom: var(--wgt-s3); color: #fff; }
.wgt-footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.wgt-footer-list a { display: inline-block; padding: .4rem 0; text-decoration: none; }
.wgt-footer-list a:hover { text-decoration: underline; }
.wgt-footer .wgt-social { margin-top: var(--wgt-s3); }
.wgt-footer__base { border-top: 1px solid rgba(255,255,255,.18); padding-block: var(--wgt-s4); font-size: .875rem; }
.wgt-footer__base p { margin: 0; }

/* Breakpoints (min-width) */
@media (min-width: 480px) {
	.wgt-grid { grid-template-columns: repeat(2, minmax(0, 1fr) ); }
	.wgt-iconbtn__label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; white-space: normal; }
	.wgt-card--compact .wgt-media { flex-basis: 120px; }
}
@media (min-width: 768px) {
	:root { --wgt-nav-h: 3.25rem; }
	.wgt-card__title { font-size: 1.15rem; }
	.wgt-card--row .wgt-card__excerpt { display: block; font-size: .95rem; }
	.wgt-trending__grid { grid-template-columns: repeat(2, minmax(0, 1fr) ); }
	.wgt-split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
	.wgt-module--lead-grid .wgt-split__rest { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.wgt-module--lead-grid .wgt-split__rest .wgt-card--standard .wgt-card__title { font-size: 1rem; }
	.wgt-newsletter { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
	.wgt-footer__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
	.post-navigation .nav-links { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.post-navigation .nav-next { text-align: right; }
	.wgt-social--utility { display: flex; }
}
@media (min-width: 1024px) {
	/* Desktop: utility bar + masthead scroll away, navigation bar stays. */
	.wgt-masthead { position: static; border-bottom: 1px solid var(--wgt-line); }
	.wgt-masthead .wgt-utility { display: block; }
	.wgt-masthead__row { padding-block: 1.1rem; }
	.wgt-brand { font-size: 2.25rem; }
	.wgt-brand .custom-logo { max-height: 64px; }
	.wgt-brand__logo img { height: 64px; }
	.wgt-tagline { display: block; }
	.wgt-menu-toggle { display: none !important; }
	.js .wgt-navbar, .js .wgt-navbar.is-open { display: block; position: static; overflow: visible; inset: auto; }
	.has-sticky-nav .wgt-navbar { position: sticky; top: 0; z-index: 50; }
	.has-sticky-nav.admin-bar .wgt-navbar { top: 32px; }
	.js .wgt-menu { display: flex; padding-block: 0; }
	.js .wgt-menu > li { display: block; border-bottom: 0; }
	.js .wgt-menu > li > a { padding: .8rem .85rem; font-size: .95rem; white-space: nowrap; }
	.js .wgt-menu > li.menu-item-has-children > a { padding-right: .2rem; }
	.js .wgt-menu > li.menu-item-has-children { display: flex; align-items: stretch; }
	.js .menu-item-has-children > .wgt-sub-toggle { position: static; display: inline-flex; width: 28px; height: auto; align-self: stretch; }
	.js .wgt-menu .sub-menu {
		position: absolute; top: 100%; left: 0; min-width: 230px; padding: .35rem 0; background: var(--wgt-accent-dark); border-top: 3px solid var(--wgt-red); z-index: 60;
		box-shadow: 0 12px 24px rgba(0,0,0,.25);
	}
	.js .wgt-menu li:hover > .sub-menu, .js .wgt-menu li:focus-within > .sub-menu { display: block; }
	.js .wgt-menu li.is-dismissed:hover > .sub-menu, .js .wgt-menu li.is-dismissed:focus-within > .sub-menu { display: none; }
	.js .wgt-menu .sub-menu a { padding: .65rem 1rem; white-space: normal; }
	.wgt-search-panel { padding-block: 1rem; }
	.wgt-hero__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--wgt-s6); }
	.wgt-hero__support { gap: var(--wgt-s4); }
	.wgt-hero__support .wgt-card--compact .wgt-media { flex-basis: 120px; }
	.wgt-trending__grid { grid-template-columns: repeat(5, minmax(0, 1fr) ); gap: var(--wgt-s4); }
	.wgt-trending .wgt-card--compact { flex-direction: column; }
	.wgt-trending .wgt-card--compact .wgt-media { max-width: none; flex-basis: auto; width: 100%; aspect-ratio: 16 / 9; }
	.wgt-trending .wgt-card--compact .wgt-card__title { font-size: .95rem; }
	.wgt-grid { grid-template-columns: repeat(4, minmax(0, 1fr) ); }
	.wgt-module--cards .wgt-grid, .wgt-module--cards-small .wgt-grid { grid-template-columns: repeat(4, minmax(0, 1fr) ); }
	.wgt-grid--list { grid-template-columns: repeat(2, minmax(0, 1fr) ); gap: var(--wgt-s4) var(--wgt-s6); }
	.wgt-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr) ); }
	.wgt-article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--wgt-s7); }
	.wgt-article-layout .wgt-sidebar { position: sticky; top: 4.5rem; align-self: start; }
	.wgt-footer__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 1100px) {
	.wgt-grid--related { grid-template-columns: repeat(2, minmax(0, 1fr) ); }
}
@media (min-width: 1440px) {
	:root { --wgt-max: 1360px; }
}
@media (min-width: 1900px) {
	html { font-size: 106.25%; }
}

/* Print */
@media print {
	.wgt-masthead, .wgt-navbar, .wgt-breaking, .wgt-share, .wgt-footer, .wgt-ad, .wgt-sidebar, .wgt-related, .wgt-newsletter, .comment-respond { display: none !important; }
	.wgt-prose { font-size: 12pt; max-width: none; }
}

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

.wgt-latest__more { margin-top: var(--wgt-s4); }
