/*
Theme Name: Tech × Society Perspectives
Description: A reading-first theme for a student-run publication of op-eds on technology and policy. Lead story, featured row, latest grid, topics, recent list and newsletter band on the homepage; a single narrow column for articles; the same card on every index page. Topics, Types and Series are editor-controlled.
Version: 3.3.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techxsociety
Tags: blog, news, full-site-editing, one-column, three-columns
*/

/* Layout: white header with logo and nav; wide grids on index pages (max 1240px); a single 720px column on articles; deep-blue newsletter band; ink footer */
:root {
	--txs-paper: var(--wp--preset--color--paper, #F7F9FC);
	--txs-surface: var(--wp--preset--color--surface, #FFFFFF);
	--txs-ink: var(--wp--preset--color--ink, #232428);
	--txs-muted: var(--wp--preset--color--muted, #59616F);
	--txs-rule: var(--wp--preset--color--rule, #DCE3EE);
	--txs-accent: var(--wp--preset--color--accent, #2C5E9E);
	--txs-brand: var(--wp--preset--color--brand, #94BAEB);
	--txs-brand-pale: var(--wp--preset--color--brand-pale, #C8D6E7);
	--txs-wash: var(--wp--preset--color--wash, #EDF2F9);
	--txs-band: #1F3B66;
	--txs-footer-ink: var(--wp--preset--color--footer-ink, #E9EEF6);
	--txs-footer-muted: var(--wp--preset--color--footer-muted, #9FAAC0);
	--txs-display: var(--wp--preset--font-family--display, Archivo, "Helvetica Neue", Arial, sans-serif);
	--txs-body: var(--wp--preset--font-family--body, "Source Serif 4", Georgia, serif);
	--txs-measure: 720px;
}

/* ---------- base ---------- */
body { background: var(--txs-surface); color: var(--txs-ink); }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block: 0; }
h1, h2, h3, h4 { text-wrap: balance; font-stretch: 106%; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--txs-accent); outline-offset: 3px; border-radius: 3px; }
:where(.txs-main, .txs-mast, .txs-footer) a:not(.wp-element-button) { text-decoration: none; }
.txs-body a, .txs-prose a, .txs-lede a, .txs-caption a { color: var(--txs-accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.txs-wrap { max-width: var(--txs-max, 1240px); margin-inline: auto !important; padding-inline: var(--txs-gut, 20px); box-sizing: border-box; width: 100%; }
.txs-main { padding-block: 0 72px; }
.txs-main:has(> .txs-newsletter-band:last-child) { padding-bottom: 0; }
.txs-main > * { margin-block: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The small uppercase label, set like "PERSPECTIVES" in the logo */
.txs-label, .txs-type-label, .txs-section-link, .txs-foot-h {
	font-family: var(--txs-display); font-stretch: 125%; font-weight: 600; font-size: 0.68rem; line-height: 1.3;
	text-transform: uppercase; letter-spacing: 0.14em; color: var(--txs-muted); margin: 0;
}
.txs-type-label { color: var(--txs-accent); }
.txs-type-label a { color: inherit; }
.txs-type-label .wp-block-post-terms__separator { display: none; }
.txs-type-label a + a { display: none; }
.txs-meta { gap: 0 !important; font-family: var(--txs-display); font-size: 0.82rem; color: var(--txs-muted); margin: 0; }
.txs-meta > * { margin: 0 !important; }
.txs-meta .wp-block-post-author-name a { color: var(--txs-ink); font-weight: 600; }
.txs-meta .wp-block-post-author-name a:hover { color: var(--txs-accent); }
.txs-meta .wp-block-post-date::before { content: "\00a0/\00a0"; color: var(--txs-rule); }
.txs-meta-date { font-family: var(--txs-display); font-size: 0.82rem; color: var(--txs-muted); margin: 0; }

/* ---------- header ---------- */
.txs-mast { background: var(--txs-surface); border-bottom: 1px solid var(--txs-rule); position: relative; z-index: 20; }
.txs-mast-top { padding-block: 16px; gap: 24px; align-items: center; }
.txs-mast-right { gap: 8px; align-items: center; }
.txs-brand { display: block; line-height: 0; flex: none; }
.txs-logo { height: 60px; width: auto; display: block; }
.txs-nav { gap: 2px !important; }
.txs-nav .wp-block-navigation-item__content {
	font-family: var(--txs-display); font-stretch: 125%; font-weight: 600; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.13em;
	padding: 10px 11px !important; color: var(--txs-ink); border-radius: 3px;
}
.txs-nav .wp-block-navigation-item__content:hover { color: var(--txs-accent); }
.txs-nav .wp-block-navigation-item__content[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--txs-brand); border-radius: 0; }
.txs-nav .wp-block-navigation__submenu-icon { margin-left: -6px; color: var(--txs-muted); }
.txs-nav .wp-block-navigation__submenu-container {
	background: var(--txs-surface) !important; border: 1px solid var(--txs-rule) !important; border-radius: 6px; padding: 8px !important;
	box-shadow: 0 12px 32px rgba(20, 30, 50, 0.12); min-width: 300px !important; top: calc(100% + 4px);
}
.txs-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-stretch: 100%; text-transform: none; letter-spacing: 0; font-size: 0.92rem; font-weight: 500; padding: 8px 10px !important; border-radius: 4px; color: var(--txs-ink);
}
.txs-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--txs-wash); color: var(--txs-accent); }
.txs-nav .txs-nav-cta { margin-left: 8px; }
.txs-nav .txs-nav-cta .wp-block-navigation-item__content { background: var(--txs-accent); color: #fff; padding: 10px 16px !important; border-radius: 4px; }
.txs-nav .txs-nav-cta .wp-block-navigation-item__content:hover { background: var(--txs-band); color: #fff; }
.txs-nav .txs-nav-cta .wp-block-navigation-item__content[aria-current="page"] { box-shadow: none; border-radius: 4px; }
.txs-search { margin: 0 !important; }
.txs-search .wp-block-search__button { background: transparent; color: var(--txs-ink); border: 1px solid var(--txs-rule); border-radius: 4px; padding: 8px; margin: 0; }
.txs-search .wp-block-search__button:hover { border-color: var(--txs-accent); color: var(--txs-accent); }
.txs-search .wp-block-search__input { border: 1px solid var(--txs-rule); border-radius: 4px; font-family: var(--txs-display); font-size: 0.9rem; padding: 8px 10px; }
.txs-search.wp-block-search__searchfield-hidden .wp-block-search__input { border: 0; padding: 0; }
.wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1rem !important; }

/* ---------- homepage ---------- */
.txs-home { padding-top: 40px; }
.txs-home > * + * { margin-top: 56px !important; }
.txs-lead-wrap { border-bottom: 1px solid var(--txs-rule); padding-bottom: 40px; }
.txs-lead-list, .txs-text-grid, .txs-grid, .txs-row-list { list-style: none; margin: 0; padding: 0; }
.txs-lead-list > li { display: grid; gap: 16px; max-width: 900px; }
.txs-lead-list > li, .txs-text-grid > li, .txs-grid > li, .txs-row-list > li { margin: 0 !important; }
.txs-lead-list > li > *, .txs-text-grid > li > *, .txs-grid > li > *, .txs-row-list > li > * { margin: 0 !important; }
.txs-lead-title { font-size: clamp(2.2rem, 5.2vw, 4rem); line-height: 1.02; font-weight: 750; letter-spacing: -0.02em; margin: 0; }
.txs-lead-title a:hover, .txs-card-title a:hover { color: var(--txs-accent); }
.txs-lead-dek p { margin: 0; font-size: 1.25rem; line-height: 1.5; color: var(--txs-muted); max-width: 46ch; }

.txs-row-label { margin-bottom: 14px !important; }
.txs-text-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.txs-text-grid > li { display: grid; gap: 8px; align-content: start; border-top: 3px solid var(--txs-ink); padding-top: 14px; }
.txs-text-grid .txs-card-title { font-size: 1.15rem; }

.txs-section-head { border-bottom: 1px solid var(--txs-ink); padding-bottom: 10px; margin: 0 0 24px !important; gap: 12px; }
.txs-section-head h2 { margin: 0; font-size: 1.5rem; }
.txs-section-link a { color: var(--txs-accent); }
.txs-section-link a:hover { text-decoration: underline; }

.txs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.txs-grid > li { display: grid; gap: 10px; align-content: start; }
.txs-card-title { font-size: 1.18rem; line-height: 1.22; margin: 0; }
.txs-thumb { margin-bottom: 4px !important; }

.txs-row-list > li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; padding-block: 18px; border-bottom: 1px solid var(--txs-rule); }
.txs-row-list > li:first-child { padding-top: 0; }
.txs-row-text { display: grid; gap: 8px; }
.txs-row-text > * { margin: 0 !important; }

.txs-topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.txs-topic-grid.is-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.txs-topic-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 18px; background: var(--txs-paper); border: 1px solid var(--txs-rule); border-radius: 4px; color: var(--txs-ink); text-decoration: none !important; transition: border-color 0.15s, background 0.15s; }
.txs-topic-card:hover { border-color: var(--txs-brand); background: var(--txs-wash); }
.txs-topic-n { font-family: var(--txs-display); font-stretch: 125%; font-weight: 700; font-size: 1.05rem; color: var(--txs-brand); font-variant-numeric: tabular-nums; }
.txs-topic-body { display: grid; gap: 4px; align-content: start; }
.txs-topic-name { font-family: var(--txs-display); font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.is-compact .txs-topic-name { font-size: 0.95rem; }
.txs-topic-desc { color: var(--txs-muted); font-size: 0.93rem; line-height: 1.45; }
.txs-count { margin-top: 6px; }

/* newsletter band */
.txs-newsletter-band { background: var(--txs-band); color: #fff; margin-top: 72px !important; position: relative; overflow: hidden; }
.txs-newsletter-band::after {
	content: ""; position: absolute; right: -10px; top: 50%; width: 200px; height: 260px; transform: translateY(-50%); opacity: 0.16; pointer-events: none;
	background: url("assets/icon-512.png") center / contain no-repeat; image-rendering: pixelated;
}
.txs-band-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 52px; position: relative; z-index: 1; }
.txs-band-inner > * { margin: 0 !important; }
.txs-band-text { display: grid; gap: 10px; }
.txs-band-text > * { margin: 0 !important; }
.txs-newsletter-band .txs-label { color: var(--txs-brand); }
.txs-band-title { font-size: clamp(1.5rem, 2.8vw, 2.1rem); color: #fff; margin: 0; }
.txs-band-pitch { color: var(--txs-brand-pale); margin: 0; font-size: 1.05rem; }

/* subscribe form (fallback and Jetpack) */
.txs-subscribe-form { display: flex; gap: 8px; flex-wrap: wrap; }
.txs-subscribe-form input[type="email"], .txs-subscribe input[type="email"] {
	flex: 1 1 220px; min-width: 0; font-family: var(--txs-display); font-size: 1rem; padding: 12px 14px; border: 1px solid var(--txs-rule); border-radius: 4px; background: #fff; color: var(--txs-ink);
}
.txs-subscribe-note { margin: 8px 0 0; font-family: var(--txs-display); font-size: 0.85rem; min-height: 1.2em; }
.txs-newsletter-band .txs-subscribe-note { color: var(--txs-brand-pale); }
.txs-newsletter-band .txs-btn-primary { background: var(--txs-brand); color: var(--txs-band); border-color: var(--txs-brand); }
.txs-newsletter-band .txs-btn-primary:hover { background: #fff; border-color: #fff; }
.txs-subscribe .wp-block-jetpack-subscriptions { margin: 0; }

/* ---------- buttons and chips ---------- */
.txs-btn { display: inline-block; font-family: var(--txs-display); font-weight: 600; font-size: 0.9rem; border: 1px solid var(--txs-rule); background: var(--txs-surface); color: var(--txs-ink); padding: 11px 18px; border-radius: 4px; cursor: pointer; text-decoration: none !important; }
.txs-btn:hover { border-color: var(--txs-ink); }
.txs-btn-primary { background: var(--txs-accent); color: #fff !important; border-color: var(--txs-accent); }
.txs-btn-primary:hover { background: var(--txs-band); border-color: var(--txs-band); }
.txs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.txs-chip { font-family: var(--txs-display); font-size: 0.85rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--txs-brand-pale); background: var(--txs-wash); color: var(--txs-ink); }
.txs-chip:hover { border-color: var(--txs-accent); color: var(--txs-accent); }
.txs-chip-series { background: var(--txs-surface); border-style: dashed; }

/* ---------- images ---------- */
.txs-thumb, .txs-hero-img, .txs-fallback { margin: 0; border-radius: 3px; overflow: hidden; background: var(--txs-wash); max-width: 100%; }
.txs-thumb img, .txs-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.txs-fallback a { display: block; height: 100%; }
.txs-fallback canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }

/* ---------- article ---------- */
.txs-article { max-width: calc(var(--txs-measure) + 2 * var(--txs-gut, 20px)); padding-top: 48px; display: grid; gap: 0; }
.txs-article > * { margin: 0 !important; }
.txs-article-head { display: grid; gap: 16px; margin-bottom: 28px !important; }
.txs-article-head > * { margin: 0 !important; }
.txs-article-title { font-size: clamp(2.1rem, 4.6vw, 3.2rem); line-height: 1.06; font-weight: 750; letter-spacing: -0.02em; }
.txs-dek p { margin: 0; font-size: 1.22rem; line-height: 1.5; color: var(--txs-muted); }
.txs-article-byline { font-family: var(--txs-display); font-size: 0.9rem; color: var(--txs-muted); margin: 0; }
.txs-article-byline a { color: var(--txs-ink); font-weight: 600; }
.txs-article-byline a:hover { color: var(--txs-accent); text-decoration: underline; }
.txs-article-byline span { color: var(--txs-rule); margin-inline: 2px; }
.txs-hero-img { border-radius: 3px; }
.txs-caption { font-family: var(--txs-body); font-style: italic; font-size: 0.9rem; color: var(--txs-muted); margin: 10px 0 0; line-height: 1.45; }
.txs-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 16px; margin: 18px 0 30px !important; border-block: 1px solid var(--txs-rule); }
.txs-share .txs-label { margin-right: 6px; }
.txs-share-btn { font-family: var(--txs-display); font-size: 0.82rem; font-weight: 600; padding: 7px 12px; border: 1px solid var(--txs-rule); border-radius: 999px; background: var(--txs-surface); color: var(--txs-ink); cursor: pointer; text-decoration: none !important; }
.txs-share-btn:hover { border-color: var(--txs-accent); color: var(--txs-accent); }
.txs-body { font-size: 1.14rem; line-height: 1.75; }
.txs-body > * { margin-block: 0 1.25em; }
.txs-body h2 { font-size: 1.45rem; margin-top: 1.7em; line-height: 1.2; }
.txs-body h3 { font-size: 1.2rem; margin-top: 1.5em; }
.txs-body figure { margin-block: 1.6em; }
.txs-body figcaption { font-style: italic; font-size: 0.9rem; color: var(--txs-muted); }

.txs-inline-signup { margin: 2em 0 !important; padding: 22px 24px; border: 1px solid var(--txs-brand-pale); border-left: 4px solid var(--txs-brand); border-radius: 4px; background: var(--txs-wash); display: grid; gap: 10px; }
.txs-inline-signup > * { margin: 0 !important; }
.txs-inline-signup-title { font-family: var(--txs-display); font-weight: 700; font-size: 1.1rem; line-height: 1.3; }

.txs-write-box { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; align-items: start; padding: 26px; margin-top: 20px !important; background: var(--txs-band); color: #fff; border-radius: 6px; }
.txs-write-box img { width: 72px; height: 72px; image-rendering: pixelated; }
.txs-write-box p { margin: 0 0 14px; color: var(--txs-brand-pale); font-size: 1rem; }
.txs-write-title { font-family: var(--txs-display); font-weight: 700; font-size: 1.25rem; color: #fff !important; margin-bottom: 6px !important; }
.txs-write-box .txs-btn-primary { background: var(--txs-brand); color: var(--txs-band) !important; border-color: var(--txs-brand); }
.txs-write-box .txs-btn-primary:hover { background: #fff; border-color: #fff; }

.txs-author-box { margin-top: 40px !important; padding-top: 22px; border-top: 1px solid var(--txs-rule); display: grid; gap: 18px; }
.txs-author { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: start; }
.txs-author .txs-avatar { width: 72px; height: 72px; }
.txs-author p { margin: 0; }
.txs-author-name { font-family: var(--txs-display); font-weight: 700; font-size: 1.1rem; }
.txs-author-name a:hover { color: var(--txs-accent); }
.txs-author-year { font-weight: 500; font-size: 0.9rem; color: var(--txs-muted); margin-left: 4px; }
.txs-author-bio { color: var(--txs-muted); margin-top: 4px !important; font-size: 1rem; }
.txs-author-more { margin-top: 6px !important; font-family: var(--txs-display); font-size: 0.85rem; }
.txs-author-more a { color: var(--txs-accent); }
.txs-post-topics { margin-top: 30px !important; padding-top: 22px; border-top: 1px solid var(--txs-rule); display: grid; gap: 12px; }
.txs-related-wrap { margin-top: 64px !important; }

/* ---------- archives and pages ---------- */
.txs-page-intro { display: grid; gap: 12px; padding-top: 44px; margin-bottom: 28px !important; max-width: 70ch; }
.txs-page-intro > * { margin: 0 !important; }
.txs-page-intro h1, .txs-page-intro .wp-block-query-title { font-size: clamp(2rem, 4.2vw, 3rem); }
.txs-lede, .txs-page-intro .wp-block-term-description p { margin: 0; color: var(--txs-muted); font-size: 1.15rem; line-height: 1.55; }
.txs-small { font-size: 0.9rem; color: var(--txs-muted); }
.txs-filter-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 28px; }
.txs-filter-row button { font-family: var(--txs-display); font-stretch: 125%; font-weight: 600; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em; border: 1px solid var(--txs-rule); background: var(--txs-surface); color: var(--txs-muted); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.txs-filter-row button[aria-pressed="true"] { background: var(--txs-ink); color: #fff; border-color: var(--txs-ink); }
.txs-empty { border: 2px dashed var(--txs-rule); border-radius: 6px; padding: 36px 24px; text-align: center; color: var(--txs-muted); font-family: var(--txs-display); font-size: 0.9rem; margin: 0; }
.txs-pagination { margin-top: 44px !important; font-family: var(--txs-display); }
.txs-pagination .page-numbers { padding: 4px 9px; }
.txs-pagination .current { color: #fff; background: var(--txs-accent); border-radius: 3px; }
.txs-search-page { max-width: 520px; }
.txs-search-page .wp-block-search__input { font-family: var(--txs-display); padding: 10px 12px; border: 1px solid var(--txs-rule); border-radius: 4px; }
.txs-search-page .wp-block-search__button { background: var(--txs-accent); color: #fff; border: 0; border-radius: 4px; font-family: var(--txs-display); font-weight: 600; }

.txs-page { padding-top: 44px; }
.txs-page > * { margin-top: 0; }
.txs-narrow { max-width: var(--txs-measure); margin-inline: auto !important; }
.txs-page-title { margin: 0 0 18px; font-size: clamp(2rem, 4.2vw, 3rem); }
.txs-prose { font-size: 1.1rem; line-height: 1.7; }
.txs-prose > * { margin-block: 0 1em; }
.txs-prose h2 { font-size: 1.4rem; margin-top: 1.7em; }
.txs-prose h3 { font-size: 1.15rem; margin-top: 1.4em; }
.txs-prose li { margin-bottom: 0.4em; }
.txs-prose .txs-subscribe { margin-block: 1.4em; }
.txs-wide .txs-lede { max-width: 70ch; margin-bottom: 28px; }

.txs-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.txs-narrow .txs-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.txs-person { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 16px; background: var(--txs-paper); border: 1px solid var(--txs-rule); border-radius: 4px; align-items: center; color: var(--txs-ink); text-decoration: none !important; }
.txs-person:hover { border-color: var(--txs-brand); background: var(--txs-wash); }
.txs-avatar { border-radius: 50%; display: block; flex: none; }
.txs-person .txs-avatar { width: 56px; height: 56px; }
.txs-person > span { display: grid; gap: 2px; }
.txs-person-name { font-family: var(--txs-display); font-weight: 700; font-size: 1.02rem; }
.txs-person-meta { color: var(--txs-muted); font-size: 0.88rem; font-family: var(--txs-display); }
.txs-person { align-items: start; }
.txs-person-bio { color: var(--txs-ink); font-size: 0.92rem; line-height: 1.45; margin-top: 6px; }
.txs-member-bio { color: var(--txs-muted); font-size: 0.92rem; line-height: 1.45; margin: 4px 0 0 !important; }

.txs-team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; }
.txs-member { display: grid; gap: 4px; align-content: start; }
.txs-member .txs-avatar { width: 100%; height: auto; aspect-ratio: 1; border-radius: 4px; object-fit: cover; margin-bottom: 8px; background: var(--txs-wash); }
.txs-member p { margin: 0; }
.txs-member-name { font-family: var(--txs-display); font-weight: 700; font-size: 1.02rem; }
.txs-member-name a { color: var(--txs-ink) !important; text-decoration: none !important; }
.txs-member-name a:hover { color: var(--txs-accent) !important; }
.txs-member-role { color: var(--txs-accent); }
.txs-member-year { color: var(--txs-muted); font-size: 0.88rem; font-family: var(--txs-display); }

.txs-back { margin: 0; padding-top: 32px; font-family: var(--txs-display); font-size: 0.88rem; }
.txs-back a { color: var(--txs-accent); }
.txs-profile { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 26px; align-items: center; padding-block: 22px 30px; margin-bottom: 30px; border-bottom: 1px solid var(--txs-rule); }
.txs-profile .txs-avatar { width: 120px; height: 120px; }
.txs-profile-name { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 6px 0 0; }
.txs-profile-meta { margin: 6px 0 0; font-family: var(--txs-display); color: var(--txs-accent); font-weight: 600; font-size: 0.95rem; }
.txs-profile-bio { margin: 10px 0 0; color: var(--txs-muted); max-width: 62ch; font-size: 1.08rem; }
.txs-count-inline { font-weight: 500; color: var(--txs-muted); font-size: 1rem; margin-left: 6px; }

/* ---------- footer ---------- */
.txs-footer { background: var(--txs-ink); color: var(--txs-footer-ink); }
.txs-footer > * { margin-block: 0 !important; }
.txs-foot { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px; padding-block: 52px 32px; }
.txs-foot > * { margin: 0 !important; }
.txs-foot-about { display: grid; gap: 14px; align-content: start; }
.txs-foot-about > * { margin: 0 !important; }
.txs-brand-light .txs-logo { height: 54px; }
.txs-mission { color: var(--txs-footer-muted); max-width: 36ch; font-size: 1rem; }
.txs-social:empty { display: none; }
.txs-social .wp-social-link { color: var(--txs-footer-ink); }
.txs-foot-h { color: var(--txs-footer-muted); margin-bottom: 14px !important; }
.txs-foot-nav { gap: 9px !important; }
.txs-foot-nav a, .txs-foot-list a { color: var(--txs-footer-ink); font-family: var(--txs-display); font-size: 0.93rem; }
.txs-foot-nav a:hover, .txs-foot-list a:hover { text-decoration: underline !important; }
.txs-foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; word-break: break-word; }
.txs-legal { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 18px; font-family: var(--txs-display); font-size: 0.78rem; color: var(--txs-footer-muted); display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }

.txs-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--txs-ink); color: #fff; font-family: var(--txs-display); font-size: 0.9rem; padding: 10px 16px; border-radius: 4px; z-index: 100; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
	.txs-topic-grid.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.txs-foot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.txs-foot > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
	.txs-grid, .txs-people, .txs-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.txs-text-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.txs-band-inner { grid-template-columns: minmax(0, 1fr); padding-block: 40px; }
	.txs-logo { height: 50px; }
}
@media (max-width: 600px) {
	.txs-grid, .txs-people, .txs-narrow .txs-people, .txs-topic-grid, .txs-topic-grid.is-compact { grid-template-columns: minmax(0, 1fr); }
	.txs-row-list > li { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
	.txs-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.txs-logo { height: 42px; }
	.txs-mast-top { gap: 12px; }
	.txs-profile { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; }
	.txs-profile .txs-avatar { width: 76px; height: 76px; }
	.txs-write-box { grid-template-columns: minmax(0, 1fr); }
	.txs-write-box img { width: 48px; height: 48px; }
	.txs-author { grid-template-columns: 56px minmax(0, 1fr); }
	.txs-author .txs-avatar { width: 56px; height: 56px; }
	.txs-newsletter-band::after { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
	.txs-topic-card, .txs-person { transition: border-color 0.15s, background 0.15s; }
}
.txs-prose a.txs-person, .txs-prose a.txs-topic-card { color: var(--txs-ink); text-decoration: none; }

/* =========================================================================
   Homepage (3.0): modeled on the Tech Policy Press homepage
   ========================================================================= */
:root { --txs-analysis: #2F6B5E; --txs-perspectives: #2C5E9E; --txs-newsletter: #8A6A1F; --txs-inset: 24px; }
.txs-home2 { padding-bottom: 0 !important; }
.txs-home2 > * { margin-block: 0 !important; }
.txs-h-sec { margin-top: 64px !important; }
.txs-wrap.txs-h-sec, .txs-h-sec.txs-wrap { max-width: 1240px; }

/* type labels */
.txs-tl { font-family: var(--txs-display); font-stretch: 125%; font-weight: 700; font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none !important; color: var(--txs-accent); }
.txs-tl-analysis { color: var(--txs-analysis); } .txs-tl-perspectives { color: var(--txs-perspectives); } .txs-tl-newsletter { color: var(--txs-newsletter); }
.txs-pill { display: inline-block; font-family: var(--txs-display); font-stretch: 125%; font-weight: 700; font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 9px; border-radius: 3px; color: #fff !important; background: var(--txs-accent); text-decoration: none !important; line-height: 1.2; }
.txs-pill-analysis { background: var(--txs-analysis); } .txs-pill-perspectives { background: var(--txs-perspectives); } .txs-pill-newsletter { background: var(--txs-newsletter); }
.txs-hdate { display: block; font-family: var(--txs-display); font-stretch: 112%; font-weight: 600; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: #8A93A3; }
.txs-ht { font-family: var(--txs-display); font-weight: 700; font-stretch: 100%; font-size: 1.08rem; line-height: 1.28; letter-spacing: -0.005em; margin: 0; }
.txs-ht a { color: inherit; text-decoration: none; }
.txs-ht a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.txs-ht-lg { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.15; }

/* section heads and View more */
.txs-h-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.txs-h-title { font-family: var(--txs-display); font-weight: 700; font-size: clamp(1.45rem, 2.2vw, 1.75rem); margin: 0; letter-spacing: -0.01em; }
.txs-h-title a { color: inherit; text-decoration: none; }
.txs-more { display: inline-block; font-family: var(--txs-display); font-weight: 600; font-size: 0.9rem; color: var(--txs-ink) !important; text-decoration: none !important; border: 1.5px solid var(--txs-ink); border-radius: 999px; padding: 5px 16px; white-space: nowrap; }
.txs-more:hover { background: var(--txs-ink); color: #fff !important; }
.txs-h-head-dark .txs-h-title, .txs-h-head-dark .txs-h-title a { color: #fff; }
.txs-h-head-dark .txs-more { color: #fff !important; border-color: #fff; }
.txs-h-head-dark .txs-more:hover { background: #fff; color: var(--txs-ink) !important; }

/* images */
.txs-himg { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--txs-wash); }
.txs-himg-art canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.txs-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.txs-bg-plain { background: linear-gradient(135deg, #1F3B66, #14243F); }

/* cards */
.txs-c { display: grid; gap: 8px; align-content: start; min-width: 0; }
.txs-c > * { margin: 0; }
.txs-c-thumb { display: block; line-height: 0; overflow: hidden; }
.txs-c-thumb img, .txs-c-thumb .txs-himg { transition: transform 0.3s ease; }
.txs-c:hover .txs-c-thumb .txs-himg { transform: scale(1.03); }
.txs-c-top .txs-c-thumb { margin-bottom: 6px; }
.txs-c-row { grid-template-columns: 168px minmax(0, 1fr); gap: 18px; padding-block: 20px; border-bottom: 1px solid var(--txs-rule); }
.txs-c-row .txs-c-body { display: grid; gap: 7px; align-content: start; }
.txs-c-text { padding-block: 16px; border-top: 1px solid var(--txs-rule); }
.txs-c-dark { grid-template-columns: 160px minmax(0, 1fr); gap: 16px; color: #fff; }
.txs-c-dark .txs-c-body { display: grid; gap: 8px; align-content: start; justify-items: start; }
.txs-c-dark .txs-ht { color: #fff; font-size: 1rem; }
.txs-c-dark .txs-hdate { color: #B7C0CE; }
.txs-c-panel { padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, 0.16); justify-items: start; gap: 10px; }
.txs-c-panel .txs-ht { color: #fff; font-size: 1rem; }
.txs-c-panel .txs-hdate { color: #B7C0CE; }
.txs-c-overlay { position: relative; overflow: hidden; color: #fff; aspect-ratio: 16 / 9; display: block; }
.txs-c-overlay > .txs-himg, .txs-c-overlay > img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.txs-c-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 15, 25, 0) 35%, rgba(10, 15, 25, 0.88) 100%); }
.txs-c-overlay .txs-c-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 9% 7%; display: grid; gap: 10px; justify-items: start; z-index: 2; }
.txs-c-overlay .txs-ht { color: #fff; }
.txs-c-overlay .txs-hdate { color: #D5DCE7; }
.txs-c-cover { position: absolute; inset: 0; z-index: 1; }

/* hero */
.txs-hero { position: relative; margin: 0 var(--txs-inset) !important; min-height: 680px; overflow: hidden; background: #14243F; color: #fff; }
.txs-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 12, 20, 0.78) 0%, rgba(8, 12, 20, 0.35) 55%, rgba(8, 12, 20, 0.15) 100%), linear-gradient(0deg, rgba(8, 12, 20, 0.9) 0%, rgba(8, 12, 20, 0) 60%); }
.txs-hero-grid { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 64px 36px 70px; min-height: 680px; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 48px; align-items: end; }
.txs-hero-lead { display: grid; gap: 16px; justify-items: start; max-width: 720px; }
.txs-hero-lead > * { margin: 0; }
.txs-hero-title { font-family: var(--txs-display); font-weight: 750; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -0.015em; color: #fff; }
.txs-hero-title a { color: #fff; text-decoration: none; }
.txs-hero-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.txs-hero-dek { font-size: 1.1rem; line-height: 1.5; color: #E3E8F0; max-width: 60ch; }
.txs-hero-meta { font-family: var(--txs-display); font-size: 0.85rem; font-weight: 600; color: #C8D0DC; display: flex; gap: 6px; align-items: baseline; }
.txs-hero-meta .txs-hdate { display: inline; color: #C8D0DC; }
.txs-hero-panel { align-self: start; background: rgba(28, 31, 38, 0.93); padding: 22px 24px 8px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25); }
.txs-panel-title { font-family: var(--txs-display); font-weight: 700; font-size: 1.6rem; color: #fff; margin: 0 0 16px; padding-bottom: 14px; }

/* latest */
.txs-latest-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.txs-latest-2 .txs-c-row:nth-last-child(-n + 2) { border-bottom: 0; }

/* spotlight and series */
.txs-spot { margin: 72px var(--txs-inset) 0 !important; background: #000; color: #fff; }
.txs-spot-top { position: relative; overflow: hidden; min-height: 300px; display: grid; place-items: center; text-align: center; }
.txs-spot-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.6) 60%, #000 100%); }
.txs-spot-text { position: relative; z-index: 2; max-width: 680px; padding: 40px 24px 28px; display: grid; gap: 8px; justify-items: center; }
.txs-spot-text > * { margin: 0; }
.txs-spot-eye { font-family: var(--txs-display); font-weight: 700; font-size: 1rem; color: var(--txs-brand); }
.txs-spot-title { font-family: var(--txs-display); font-weight: 750; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; }
.txs-spot-title a { color: #fff; text-decoration: none; }
.txs-spot-desc { font-size: 0.98rem; line-height: 1.5; color: #DDE3EC; }
.txs-spot-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 8px 20px 40px; max-width: 1240px; margin: 0 auto; box-sizing: border-box; }

/* topic feature */
.txs-topicfeat { max-width: 940px; margin-inline: auto !important; padding-inline: 20px; box-sizing: content-box; }
.txs-topicfeat .txs-c-overlay { margin-bottom: 28px; }
.txs-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* dark band */
.txs-band { position: relative; overflow: hidden; margin: 72px var(--txs-inset) 0 !important; background: #0E1626; }
.txs-band-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 30, 0.82), rgba(10, 16, 30, 0.95)); }
.txs-band-in { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 44px 36px 52px; box-sizing: border-box; }
.txs-band-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

/* recent */
.txs-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 28px; row-gap: 8px; }
.txs-grid4 .txs-c-top { padding-bottom: 18px; }

/* newsletter band */
.txs-nl { margin: 80px var(--txs-inset) 0 !important; background: var(--txs-band); color: #fff; position: relative; overflow: hidden; }
.txs-nl::after { content: ""; position: absolute; right: 38%; bottom: -30px; width: 160px; height: 210px; opacity: 0.12; background: url("assets/icon-512.png") center / contain no-repeat; image-rendering: pixelated; pointer-events: none; }
.txs-nl-in { max-width: 1240px; margin: 0 auto; padding: 56px 36px; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; align-items: center; position: relative; z-index: 1; }
.txs-nl-text { display: grid; gap: 12px; }
.txs-nl-text > * { margin: 0; }
.txs-nl-title { font-family: var(--txs-display); font-weight: 750; font-size: clamp(1.5rem, 2.6vw, 2rem); color: #fff; }
.txs-nl-pitch { color: var(--txs-brand-pale); }
.txs-nl-alt { font-family: var(--txs-display); font-size: 0.85rem; color: var(--txs-brand-pale); }
.txs-nl-alt a { color: #fff; }
.txs-nl .txs-subscribe { margin-top: 6px; }
.txs-nl .txs-btn-primary { background: var(--txs-brand); color: var(--txs-band) !important; border-color: var(--txs-brand); text-transform: uppercase; letter-spacing: 0.08em; font-stretch: 112%; }
.txs-nl .txs-btn-primary:hover { background: #fff; border-color: #fff; }
.txs-nl .txs-subscribe-note { color: var(--txs-brand-pale); }
.txs-nl-card .txs-c-overlay { aspect-ratio: 2 / 1; }
.txs-nl-card .txs-ht-lg { font-size: 1.15rem; }
.txs-nl-card .txs-c-overlay .txs-c-body { padding: 0 24px 20px; }

/* three columns */
.txs-cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.txs-col { display: grid; align-content: start; gap: 0; }
.txs-col > .txs-h-title { margin-bottom: 20px; }
.txs-col .txs-c-top { padding-bottom: 16px; }
.txs-col .txs-more { justify-self: start; margin-top: 12px; }

/* footer in brand blue, like the reference */
.txs-footer { background: #24508A !important; margin-top: 80px; }
.txs-footer .txs-mission, .txs-footer .txs-foot-h, .txs-footer .txs-legal { color: #D5E1F2; }
.txs-footer .txs-legal { border-top-color: rgba(255, 255, 255, 0.2); }

/* responsive */
@media (max-width: 1100px) {
	.txs-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	:root { --txs-inset: 0px; }
	.txs-hero-grid { grid-template-columns: minmax(0, 1fr); padding: 220px 20px 32px; min-height: 0; gap: 28px; }
	.txs-hero { min-height: 0; }
	.txs-hero-panel { align-self: stretch; }
	.txs-latest-2 { grid-template-columns: minmax(0, 1fr); }
	.txs-latest-2 .txs-c-row:nth-last-child(2) { border-bottom: 1px solid var(--txs-rule); }
	.txs-spot-strip, .txs-band-row, .txs-cols3 { grid-template-columns: minmax(0, 1fr); }
	.txs-nl-in { grid-template-columns: minmax(0, 1fr); padding: 40px 20px; }
	.txs-band-in { padding: 36px 20px; }
}
@media (max-width: 600px) {
	.txs-grid3, .txs-grid4 { grid-template-columns: minmax(0, 1fr); }
	.txs-c-row { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
	.txs-c-dark { grid-template-columns: 112px minmax(0, 1fr); }
	.txs-topicfeat .txs-c-overlay { aspect-ratio: 4 / 5; }
	.txs-hero-grid { padding-top: 180px; }
	.txs-h-sec { margin-top: 48px !important; }
}

/* =========================================================================
   Layout system (3.2): one width, one gutter, one section rhythm.
   Every section's content lines up on the same left and right edges as the
   header and footer, colored bands run edge to edge, and every homepage
   section is the same distance from the next.
   ========================================================================= */
:root { --txs-max: 1240px; --txs-gut: 32px; --txs-sec: 72px; --txs-inset: 0px; }
@media (max-width: 960px) { :root { --txs-gut: 24px; --txs-sec: 56px; } }
@media (max-width: 600px) { :root { --txs-gut: 16px; --txs-sec: 44px; } }


/* sections */
.txs-home2 > * { margin-top: var(--txs-sec) !important; margin-bottom: 0 !important; }
.txs-home2 > :first-child { margin-top: 0 !important; }
.txs-home2 > .txs-hero, .txs-home2 > .txs-spot, .txs-home2 > .txs-band, .txs-home2 > .txs-nl { margin-inline: 0 !important; }
.txs-h-sec, .txs-topicfeat { max-width: var(--txs-max) !important; padding-inline: var(--txs-gut) !important; box-sizing: border-box !important; margin-inline: auto !important; width: 100%; }

/* content inside the edge-to-edge bands sits on the same edges */
.txs-hero-grid, .txs-band-in, .txs-nl-in, .txs-spot-strip { max-width: var(--txs-max); padding-inline: var(--txs-gut); box-sizing: border-box; }
.txs-band-in, .txs-nl-in { padding-block: 56px; }
.txs-spot-strip { padding-bottom: 48px; }
.txs-footer { margin-top: var(--txs-sec) !important; }

/* consistent spacing inside sections */
.txs-h-head { margin-bottom: 24px; }
.txs-topicfeat .txs-c-overlay { margin-bottom: 32px; }
.txs-grid3, .txs-spot-strip, .txs-band-row { gap: 32px; }
.txs-grid4 { column-gap: 32px; }
.txs-latest-2 { column-gap: 64px; }
.txs-cols3 { gap: 48px; }
@media (min-width: 601px) {
	.txs-topicfeat .txs-c-overlay { aspect-ratio: 21 / 9; }
	.txs-topicfeat .txs-c-overlay .txs-c-body { padding: 0 40px 36px; max-width: 760px; }
}
@media (max-width: 960px) {
	.txs-band-in, .txs-nl-in { padding-block: 40px; }
	.txs-grid3, .txs-spot-strip, .txs-band-row, .txs-cols3 { gap: 24px; }
	.txs-latest-2 { column-gap: 0; }
}
