/*
Theme Name: FFID News
Theme URI: https://ffidnews.com
Author: FFID News
Author URI: https://ffidnews.com
Description: Aggressive, high-contrast, black-and-white, mobile-first editorial theme for Fork Found In Drawer News. Pure monochrome. Full menu always visible. Serious newcomer energy.
Version: 6.3.1
Requires at least: 6.0
Tested up to: 6.7
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: ffid-news
Tags: black, white, one-column, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, editorial, news
*/

/* =========================================================
   0. TOKENS
   Pure black and white. Nothing else.
   ========================================================= */
:root {
  --ink: #000;
  --paper: #fff;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --rule: 2px;
  --rule-heavy: 4px;
  --gutter: 16px;
  --measure: 70ch;
  --link: var(--ink);
  --hdr-bg: var(--ink);
  --hdr-fg: var(--paper);
  --logo-bg: var(--paper);
  --logo-fg: var(--ink);
  --nav-bg: var(--ink);
  --nav-fg: var(--paper);
  --nav-active-bg: var(--paper);
  --nav-active-fg: var(--ink);
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --ftr-bg: var(--ink);
  --ftr-fg: var(--paper);
  --base-size: 1.0625rem;
  --title-scale: 1;
  --nav-ls: 0.14em;
}

/* =========================================================
   1. RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--base-size);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
  display: block;
}

figure { margin: 0; }

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover, a:focus { background: var(--ink); color: var(--paper); text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

hr {
  border: 0;
  border-top: var(--rule) solid var(--ink);
  margin: 2rem 0;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 0; top: 0;
  z-index: 9999;
  background: var(--paper);
  color: var(--ink);
  padding: 0.75rem 1rem;
  font-family: var(--sans);
  font-weight: 800;
  text-transform: uppercase;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* =========================================================
   2. TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sans);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
h1 { font-size: calc(clamp(2.25rem, 8vw, 4.5rem) * var(--title-scale)); }
h2 { font-size: calc(clamp(1.75rem, 6vw, 3rem) * var(--title-scale)); }
h3 { font-size: clamp(1.4rem, 4.5vw, 2rem); }
h4 { font-size: 1.25rem; letter-spacing: -0.01em; }
h5, h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }

p { margin: 0 0 1.25em; }

blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.25rem;
  border-left: var(--rule-heavy) solid var(--ink);
  font-size: 1.25em;
  font-style: italic;
  line-height: 1.4;
}
blockquote p:last-child { margin-bottom: 0; }
blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

code, kbd, pre, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}
pre {
  background: var(--ink);
  color: var(--paper);
  padding: 1rem;
  overflow-x: auto;
  line-height: 1.5;
}
code { background: var(--ink); color: var(--paper); padding: 0.1em 0.35em; }
pre code { background: none; padding: 0; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-family: var(--sans);
  font-size: 0.95rem;
}
th, td { border: var(--rule) solid var(--ink); padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; }
th { background: var(--ink); color: var(--paper); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; }

ul, ol { padding-left: 1.4em; margin: 0 0 1.25em; }
li { margin-bottom: 0.35em; }

/* Labels / kickers / meta */
.kicker, .entry-meta, .widget-title, .page-label, .nav-links a, .more-link {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

/* =========================================================
   3. LAYOUT
   ========================================================= */
.site-container { min-height: 100vh; display: flex; flex-direction: column; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.site-content {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.content-area { min-width: 0; }

/* =========================================================
   4. HEADER / MASTHEAD
   Also force-styled inline in header.php. These rules use
   !important deliberately so no plugin/default can wash it out.
   ========================================================= */
.site-header {
  background: var(--hdr-bg) !important;
  color: var(--hdr-fg) !important;
  border-bottom: var(--rule-heavy) solid var(--hdr-bg);
}

.site-header a { color: var(--hdr-fg) !important; text-decoration: none; }
.site-header a:hover, .site-header a:focus { background: var(--hdr-fg) !important; color: var(--hdr-bg) !important; }

.header-ticker {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.5rem var(--gutter);
  border-bottom: 1px solid var(--hdr-fg);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  white-space: nowrap;
  overflow: hidden;
}
.header-ticker span:first-child { flex: 0 0 auto; }
.header-ticker span:last-child { opacity: 0.75; min-width: 0; text-align: right; }
.header-ticker .ticker-date-long { display: none; }
.header-ticker .ticker-date-short { display: inline; }

.masthead {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1.25rem var(--gutter) 1rem;
}

.site-header .site-logo,
.site-header a.site-logo {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  background: var(--logo-bg) !important;
  color: var(--logo-fg) !important;
  font-family: var(--sans);
  font-weight: 900;
  font-size: 1.75rem;
  letter-spacing: -0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}
.site-header a.site-logo:hover, .site-header a.site-logo:focus { background: var(--logo-bg) !important; color: var(--logo-fg) !important; }
.site-logo img { width: 100%; height: 100%; object-fit: cover; }
.site-logo svg { width: 100%; height: 100%; display: block; --logo-bg: var(--logo-bg); }

.site-branding { min-width: 0; }

.site-title {
  margin: 0;
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(1.5rem, 7.2vw, 3.25rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--hdr-fg) !important;
}
.site-title a { color: var(--hdr-fg) !important; }
.site-title a:hover, .site-title a:focus { background: var(--hdr-fg) !important; color: var(--hdr-bg) !important; }

.site-description {
  margin: 0.4rem 0 0;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--hdr-fg) !important;
}

/* Navigation — always visible. No hamburger. Ever. */
.main-navigation {
  background: var(--nav-bg);
  border-top: 1px solid var(--hdr-fg);
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 1px 0 0 1px;
  display: flex !important;
  flex-wrap: wrap;
}

/* Every cell carries all four borders; -1px margins collapse the doubles.
   Works for any wrap or alignment, so every box is always fully enclosed. */
.main-navigation li {
  margin: -1px 0 0 -1px;
  flex: 1 1 auto;
  border: 1px solid var(--nav-fg);
}

.main-navigation a {
  display: block;
  min-height: 48px;
  padding: 0.9rem 1rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--nav-ls);
  text-align: center;
  color: var(--nav-fg) !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation a:hover,
.main-navigation a:focus {
  background: var(--nav-active-bg) !important;
  color: var(--nav-active-fg) !important;
}

/* Sub-menus: render inline, never hidden. */
.main-navigation ul ul {
  display: flex !important;
  flex-wrap: wrap;
  width: 100%;
  border-top: 1px solid var(--nav-fg);
}
.main-navigation ul ul { padding: 1px 0 0 1px; border-top: 0; }
.main-navigation ul ul li { flex: 1 1 auto; }
.main-navigation ul ul a { font-size: 0.7rem; letter-spacing: 0.1em; padding: 0.75rem 0.9rem; }
.main-navigation li.menu-item-has-children { display: flex; flex-wrap: wrap; }
.main-navigation li.menu-item-has-children > a { flex: 1 1 100%; }

/* Breaking bar */
.breaking-bar {
  display: flex;
  align-items: stretch;
  background: var(--hdr-fg);
  color: var(--hdr-bg);
  font-family: var(--sans);
  border-top: var(--rule) solid var(--hdr-bg);
}
.breaking-label {
  flex: 0 0 auto;
  background: var(--hdr-bg);
  color: var(--hdr-fg);
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  animation: ffid-blink 1.6s steps(2, start) infinite;
}
@keyframes ffid-blink { to { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .breaking-label { animation: none; } }
.breaking-text {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.75rem var(--gutter);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--hdr-bg) !important;
  text-decoration: none;
}
a.breaking-text:hover, a.breaking-text:focus { text-decoration: underline; background: transparent !important; }

/* =========================================================
   5. POSTS / ARTICLES
   ========================================================= */
.page-label {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-fg);
  padding: 0.35rem 0.6rem;
  font-size: 0.65rem;
  margin-bottom: 0.75rem;
}

.archive-header { margin-bottom: 2rem; border-bottom: var(--rule-heavy) solid var(--ink); padding-bottom: 1rem; }
.archive-header h1 { margin-bottom: 0.25rem; }
.archive-description { font-family: var(--sans); font-size: 0.95rem; }
.archive-description p:last-child { margin-bottom: 0; }

.post-list { display: grid; gap: 0; }

.entry {
  padding: 2rem 0;
  border-bottom: var(--rule) solid var(--ink);
}
.post-list .entry:first-child { padding-top: 0; }
.post-list .entry:last-child { border-bottom: 0; }

/* Lead story: heaviest treatment, but capped so it never becomes a billboard */
.post-list .entry.is-lead { border-bottom: var(--rule-heavy) solid var(--ink); }
.post-list .entry.is-lead .entry-title { font-size: calc(clamp(1.9rem, 7vw, 3.25rem) * var(--title-scale)); }
.post-list .entry.is-lead .entry-thumb { margin-bottom: 1rem; }

/* Grid of story cards after the lead */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.post-grid .entry.is-card { padding: 1.5rem 0; border-bottom: var(--rule) solid var(--ink); }
.post-grid .entry.is-card .entry-thumb { margin-bottom: 0.9rem; }
.post-grid .entry.is-card .entry-title { font-size: calc(clamp(1.25rem, 4.5vw, 1.6rem) * var(--title-scale)); line-height: 1.08; margin-bottom: 0.4rem; }
.post-grid .entry.is-card .entry-meta { margin-bottom: 0; }
.post-grid .entry.is-card .kicker { margin-bottom: 0.4rem; }

.entry-thumb { display: block; margin-bottom: 1.25rem; border: var(--rule) solid var(--ink); line-height: 0; }
.entry-thumb img { width: 100%; filter: grayscale(100%) contrast(1.15); }

.kicker {
  display: block;
  font-size: 0.65rem;
  margin-bottom: 0.6rem;
}
.kicker a { text-decoration: none; border-bottom: 2px solid var(--ink); }

.entry-title {
  font-size: calc(clamp(1.75rem, 7vw, 3rem) * var(--title-scale));
  margin-bottom: 0.5rem;
}
.entry-title a { text-decoration: none; }
.entry-title a:hover, .entry-title a:focus { background: var(--ink); color: var(--paper); box-shadow: 0 0 0 4px var(--ink); }

.entry-meta {
  font-size: 0.65rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}
.entry-meta a { text-decoration: none; border-bottom: 1px solid var(--ink); }
.entry-meta .byline-name { font-weight: 900; }

.entry-summary, .entry-content { max-width: var(--measure); }
.entry-summary { font-size: 1.1rem; line-height: 1.5; }

.more-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.7rem;
  text-decoration: none;
  min-height: 44px;
  line-height: 1.8;
}
.more-link:hover, .more-link:focus { background: var(--btn-fg); color: var(--btn-bg); box-shadow: inset 0 0 0 2px var(--btn-bg); }

/* Sticky badge */
.sticky-badge {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.3rem 0.5rem;
  margin: 0 0.5rem 0.6rem 0;
  vertical-align: middle;
}

/* Share */
.share-links {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: var(--rule) solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
}
.share-label { font-size: 0.65rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.16em; margin-right: 0.5rem; }
.share-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share-links li { margin: 0; }
.share-links a, .share-links .copy-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
}
.share-links a:hover, .share-links a:focus, .share-links .copy-link:hover, .share-links .copy-link:focus { background: var(--ink); color: var(--paper); }

/* Related */
.related-posts { margin-top: 3rem; border-top: var(--rule-heavy) solid var(--ink); padding-top: 1.25rem; }
.related-title { font-size: 0.7rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 1.25rem; display: inline-block; background: var(--btn-bg); color: var(--btn-fg); padding: 0.4rem 0.6rem; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.related-item { padding: 1rem 0; border-bottom: 1px solid var(--ink); }
.related-item:last-child { border-bottom: 0; }
.related-thumb { display: block; margin-bottom: 0.75rem; border: var(--rule) solid var(--ink); }
.related-thumb img { filter: grayscale(100%) contrast(1.15); width: 100%; }
.related-item-title { font-size: 1.25rem; margin-bottom: 0.3rem; letter-spacing: -0.02em; }
.related-item-title a { text-decoration: none; }
.related-item-title a:hover, .related-item-title a:focus { background: var(--ink); color: var(--paper); box-shadow: 0 0 0 3px var(--ink); }
.related-date { font-family: var(--sans); font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }

/* Social */
.social-links { margin-top: 1.25rem; }
.social-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.social-links li { margin: 0; }
.social-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.75rem;
  border: 1px solid var(--ftr-fg);
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
}

/* Single article */
.single .entry, .page .entry { border-bottom: 0; padding-top: 0; }

.entry-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: var(--rule-heavy) solid var(--ink); }
.single .entry-title { font-size: calc(clamp(2.25rem, 9vw, 4.5rem) * var(--title-scale)); }

.entry-content { font-size: 1.125rem; line-height: 1.65; }
.single-post .entry-content > p:first-of-type::first-letter {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 4.2em;
  line-height: 0.8;
  float: left;
  margin: 0.08em 0.12em 0 0;
}
/* Article structure: every H2 is a section break with a heavy rule above it. */
.entry-content h2 {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: var(--rule-heavy) solid var(--ink);
  font-size: clamp(1.5rem, 5vw, 2.25rem);
}
.entry-content h3 {
  margin-top: 2rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 900;
}
.entry-content h3::before { content: "— "; }
.entry-content h4 { margin-top: 1.5rem; }

/* Deck / standfirst under the headline */
.entry-deck {
  font-family: var(--sans);
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: var(--measure);
  margin: 0 0 1.25rem;
}

/* Article images: full column width, monochrome, ruled, captioned. */
.entry-content img { border: var(--rule) solid var(--ink); }
.entry-content .wp-caption, .entry-content figure { max-width: 100%; margin: 2.5rem 0; }
.entry-content .wp-block-image:not(.alignleft):not(.alignright) img,
.entry-content figure:not(.alignleft):not(.alignright) > img,
.entry-content > p > img:only-child {
  width: 100%;
  height: auto;
  display: block;
}
.entry-content img:not(.emoji) { filter: grayscale(100%) contrast(1.12); }
.entry-content .wp-block-image.alignleft, .entry-content .wp-block-image.alignright { max-width: 45%; margin-top: 0.5rem; }
.entry-content figcaption, .wp-caption-text {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.5;
  padding: 0.6rem 0 0.5rem;
  margin: 0;
  border-bottom: var(--rule) solid var(--ink);
  text-align: left;
}
.entry-content figcaption em, .wp-caption-text em { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; }
.entry-content .wp-block-image { display: block; }

/* =========================================================
   AD SLOTS — framed like everything else, labelled, height reserved
   ========================================================= */
.ad-slot {
  margin: 2.5rem 0;
  border-top: var(--rule) solid var(--ink);
  border-bottom: var(--rule) solid var(--ink);
  padding: 0.75rem 0 1rem;
  text-align: center;
}
.ad-slot__label {
  display: block;
  font-family: var(--sans);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  opacity: 0.7;
}
.ad-slot__inner { display: flex; justify-content: center; align-items: center; }
.ad-slot__inner > * { max-width: 100%; }
.ad-slot--leaderboard .ad-slot__inner { min-height: 100px; }
.ad-slot--inline .ad-slot__inner { min-height: 250px; }
.ad-slot--rectangle .ad-slot__inner { min-height: 250px; }
.ad-slot.is-empty .ad-slot__inner { border: 2px dashed var(--ink); opacity: 0.5; }
.ad-slot__empty { font-family: var(--sans); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; padding: 1rem; }
.ad-band { padding-top: 1.5rem; }
.ad-band .ad-slot { margin: 0; }
.widget-area .ad-slot { margin: 0 0 1.5rem; border-top: 0; padding-top: 0; }
.entry-content .ad-slot { clear: both; }
@media (min-width: 960px) {
  .ad-slot--leaderboard .ad-slot__inner { min-height: 90px; }
  .ad-slot--inline .ad-slot__inner { min-height: 280px; }
}

/* Editor image placeholders (from the master prompt). Obvious in preview; replace with an Image block. */
.entry-content .ffid-image-placeholder {
  border: 3px dashed var(--ink);
  padding: 1rem 1.25rem;
  margin: 2.5rem 0;
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.5;
}
.entry-content .ffid-image-placeholder p { margin: 0 0 0.35rem; }
.entry-content .ffid-image-placeholder p:first-child { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.6rem; }

/* Pull quotes (use the Pullquote block for the big ones) */
.entry-content .wp-block-pullquote {
  border-top: var(--rule-heavy) solid var(--ink);
  border-bottom: var(--rule-heavy) solid var(--ink);
  padding: 1.5rem 0;
  margin: 2.5rem 0;
  text-align: left;
}
.entry-content .wp-block-pullquote p { font-family: var(--sans); font-weight: 900; font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 0.75rem; }
.entry-content .wp-block-pullquote cite { font-family: var(--sans); font-style: normal; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }

/* Lists and tables inside articles get the sans treatment for contrast with body serif */
.entry-content ul li::marker { font-weight: 900; }
.entry-content ul, .entry-content ol { font-size: 1.05rem; }
.entry-content .wp-block-separator { border: 0; border-top: var(--rule) solid var(--ink); margin: 2.5rem 0; width: 100%; }

.alignleft { float: left; margin: 0.25rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.25rem 0 1rem 1.5rem; }
.aligncenter { margin: 1.5rem auto; }
.alignwide, .alignfull { max-width: none; width: 100%; }

.entry-footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: var(--rule) solid var(--ink);
  font-family: var(--sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.entry-footer a { text-decoration: none; display: inline-block; padding: 0.3rem 0.5rem; border: 2px solid var(--ink); margin: 0 0.35rem 0.35rem 0; }

.page-links { font-family: var(--sans); font-weight: 700; margin: 1.5rem 0; }

/* Post navigation */
.post-navigation {
  margin-top: 3rem;
  border-top: var(--rule-heavy) solid var(--ink);
  border-bottom: var(--rule) solid var(--ink);
  display: grid;
  grid-template-columns: 1fr;
}
.post-navigation a {
  display: block;
  padding: 1rem 0;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.post-navigation a:hover, .post-navigation a:focus { background: var(--ink); color: var(--paper); padding-left: 0.5rem; padding-right: 0.5rem; }
.post-navigation .nav-label {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.3rem;
}
.post-navigation .nav-previous { border-bottom: 1px solid var(--ink); }

/* Pagination */
.pagination, .posts-navigation {
  margin-top: 3rem;
  border-top: var(--rule-heavy) solid var(--ink);
  padding-top: 1rem;
}
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pagination .page-numbers {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  border: 2px solid var(--ink);
  text-decoration: none;
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover, .pagination a.page-numbers:focus { background: var(--ink); color: var(--paper); }
.posts-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; }
.posts-navigation a { text-decoration: none; padding: 0.6rem 0.9rem; border: 2px solid var(--ink); font-size: 0.75rem; min-height: 44px; display: inline-flex; align-items: center; }
.posts-navigation a:hover, .posts-navigation a:focus { background: var(--ink); color: var(--paper); }

body.no-drop-cap .single-post .entry-content > p:first-of-type::first-letter { float: none; font: inherit; margin: 0; }

/* =========================================================
   6. SIDEBAR / WIDGETS
   ========================================================= */
.widget-area { border-top: var(--rule-heavy) solid var(--ink); padding-top: 0; }

.widget { padding: 1.5rem 0; border-bottom: var(--rule) solid var(--ink); }
.widget:last-child { border-bottom: 0; }

.widget-title {
  font-size: 0.7rem;
  margin: 0 0 1rem;
  padding: 0.4rem 0.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  display: inline-block;
}

.widget ul { list-style: none; padding: 0; margin: 0; font-family: var(--sans); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; }
.widget li { margin: 0; padding: 0.6rem 0; border-bottom: 1px solid var(--ink); }
.widget li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; display: inline-block; min-height: 32px; }
.widget a:hover, .widget a:focus { background: var(--ink); color: var(--paper); }
.widget .post-date { display: block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.2rem; }
.widget select { width: 100%; }

/* =========================================================
   7. FORMS / BUTTONS
   ========================================================= */
input, textarea, select, button {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
}

input[type="text"], input[type="email"], input[type="url"], input[type="search"],
input[type="password"], input[type="number"], input[type="tel"], textarea, select {
  width: 100%;
  background: var(--paper);
  border: var(--rule) solid var(--ink);
  border-radius: 0;
  padding: 0.75rem 0.9rem;
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, textarea:focus, select:focus { outline: 3px solid var(--ink); outline-offset: 0; }

button, input[type="submit"], input[type="button"], .button, .wp-block-button__link, .wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: var(--rule) solid var(--btn-bg);
  border-radius: 0;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
}
button:hover, button:focus, input[type="submit"]:hover, input[type="submit"]:focus, .button:hover, .wp-block-button__link:hover {
  background: var(--btn-fg);
  color: var(--btn-bg);
}

.search-form { display: flex; gap: 0; }
.search-form label { flex: 1 1 auto; min-width: 0; }
.search-form .search-field { border-right: 0; }
.search-form .search-submit { flex: 0 0 auto; }

/* =========================================================
   8. COMMENTS
   ========================================================= */
.comments-area { margin-top: 3rem; border-top: var(--rule-heavy) solid var(--ink); padding-top: 1.5rem; }
.comments-title, .comment-reply-title { font-size: clamp(1.25rem, 5vw, 1.75rem); }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 1rem; border-left: var(--rule) solid var(--ink); padding-left: 1rem; }
.comment { padding: 1.25rem 0; border-bottom: 1px solid var(--ink); }
.comment-meta { font-family: var(--sans); margin-bottom: 0.5rem; }
.comment-author { font-weight: 800; }
.comment-author .avatar { display: inline-block; vertical-align: middle; margin-right: 0.5rem; filter: grayscale(100%); border: 1px solid var(--ink); }
.comment-metadata { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.comment-metadata a { text-decoration: none; }
.comment-content { max-width: var(--measure); }
.reply a { font-family: var(--sans); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; text-decoration: none; border: 2px solid var(--ink); padding: 0.35rem 0.6rem; display: inline-block; }
.bypostauthor > .comment-body .comment-author::after { content: " — STAFF"; font-size: 0.6rem; letter-spacing: 0.12em; }
.comment-form label { display: block; font-family: var(--sans); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.35rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 0.5rem; }
.comment-form-cookies-consent label { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 0.85rem; }
.comment-notes, .logged-in-as { font-family: var(--sans); font-size: 0.85rem; }
.no-comments { font-family: var(--sans); font-weight: 700; }

/* =========================================================
   9. 404 / SEARCH / EMPTY
   ========================================================= */
.error-404 .entry-title, .no-results .entry-title { font-size: clamp(3rem, 20vw, 9rem); line-height: 0.85; letter-spacing: -0.06em; }
.error-404 .entry-content, .no-results .entry-content { font-family: var(--sans); font-size: 1.1rem; }
.search-results .entry-title { font-size: clamp(1.5rem, 6vw, 2.5rem); }

/* Section tiles (empty front page) */
.section-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: var(--rule) solid var(--ink);
  margin: 1.5rem 0 0;
}
.section-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1rem;
  min-height: 96px;
  border-right: var(--rule) solid var(--ink);
  border-bottom: var(--rule) solid var(--ink);
  text-decoration: none;
  font-family: var(--sans);
}
.section-tile:nth-child(2n) { border-right: 0; }
.section-tile:hover, .section-tile:focus { background: var(--ink); color: var(--paper); }
.section-tile-name { font-weight: 900; font-size: 1.1rem; letter-spacing: -0.02em; text-transform: uppercase; }
.section-tile-desc { font-size: 0.75rem; line-height: 1.35; font-weight: 500; }
.empty-search { margin-top: 1.5rem; max-width: 520px; }
body.sidebar-right .no-results, body.sidebar-left .no-results { max-width: none; }

/* =========================================================
   10. FOOTER
   ========================================================= */
.site-footer {
  background: var(--ftr-bg) !important;
  color: var(--ftr-fg) !important;
  margin-top: auto;
  border-top: var(--rule-heavy) solid var(--ftr-bg);
}
.site-footer a { color: var(--ftr-fg) !important; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { background: var(--ftr-fg) !important; color: var(--ftr-bg) !important; }

.footer-main {
  padding: 2.5rem var(--gutter) 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  border-bottom: 1px solid var(--ftr-fg);
}

.footer-brand .footer-title {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(1.5rem, 6vw, 2.25rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: var(--ftr-fg);
}
.footer-brand .footer-tagline {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 0;
}

.footer-navigation ul { list-style: none; margin: 0; padding: 1px 0 0 1px; display: flex; flex-wrap: wrap; gap: 0; }
.footer-navigation li { margin: -1px 0 0 -1px; flex: 1 1 auto; border: 1px solid var(--ftr-fg); }
.footer-navigation a {
  display: block;
  min-height: 44px;
  padding: 0.7rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
}

.footer-widgets .widget { border-bottom-color: var(--ftr-fg); }
.footer-widgets .widget-title { background: var(--ftr-fg); color: var(--ftr-bg); }
.footer-widgets .widget li { border-bottom-color: var(--ftr-fg); }
.footer-widgets .widget a:hover { background: var(--ftr-fg); color: var(--ftr-bg); }

.footer-disclaimer {
  padding: 1.5rem var(--gutter);
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--ftr-fg);
}
.footer-disclaimer strong { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 900; }
.footer-disclaimer p { margin: 0; max-width: 80ch; }

.footer-bottom {
  padding: 1rem var(--gutter);
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

/* =========================================================
   11. DESKTOP ENHANCEMENTS
   Nothing is hidden here. Only re-arranged.
   ========================================================= */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .masthead { gap: 20px; padding: 1.75rem var(--gutter) 1.25rem; }
  .site-logo { width: 84px; height: 84px; font-size: 2.4rem; }
  .main-navigation li { flex: 0 1 auto; }
  .main-navigation a { padding: 1rem 1.5rem; font-size: 0.85rem; }
  .post-navigation { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .post-grid .entry.is-card { padding: 1.75rem 0; }
  .related-grid { grid-template-columns: 1fr 1fr; gap: 0 2rem; }
  .section-tiles { grid-template-columns: repeat(4, 1fr); }
  .section-tile:nth-child(2n) { border-right: var(--rule) solid var(--ink); }
  .section-tile:nth-child(4n) { border-right: 0; }
  .post-navigation .nav-previous { border-bottom: 0; border-right: 1px solid var(--ink); padding-right: 1rem; }
  .post-navigation .nav-next { padding-left: 1rem; text-align: right; }
  .footer-main { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (min-width: 960px) {
  :root { --gutter: 40px; }
  .site-content {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 4rem;
    padding-top: 3rem;
  }
  .widget-area { border-top: 0; border-left: var(--rule) solid var(--ink); padding-left: 2rem; }
  body.sidebar-left .site-content { grid-template-columns: 320px minmax(0, 1fr); }
  body.sidebar-left .content-area { order: 2; }
  body.sidebar-left .widget-area { order: 1; border-left: 0; border-right: var(--rule) solid var(--ink); padding-left: 0; padding-right: 2rem; }
  body.sidebar-none .site-content { grid-template-columns: minmax(0, 1fr); }
  /* Lead story on a full-width front page: image left, words right */
  body.sidebar-none .post-list.is-grid .entry.is-lead.has-thumb { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: center; }
  body.sidebar-none .post-list.is-grid .entry.is-lead.has-thumb .entry-thumb { margin: 0; }
  body.sidebar-none .post-list.is-grid .entry.is-lead .entry-title { font-size: calc(clamp(2rem, 3.6vw, 3rem) * var(--title-scale)); }
  /* No photo: let the headline run wide, with a measure cap so lines stay readable */
  body.sidebar-none .post-list.is-grid .entry.is-lead.no-thumb .entry-body { max-width: 62rem; }
  body.sidebar-none .post-list.is-grid .entry.is-lead.no-thumb .entry-title { font-size: calc(clamp(2.25rem, 4.6vw, 3.75rem) * var(--title-scale)); }
  body.sidebar-none .post-list.is-grid .entry.is-lead.no-thumb .entry-summary { max-width: 46rem; font-size: 1.2rem; }
  body.sidebar-none .post-grid { grid-template-columns: repeat(3, 1fr); column-gap: 2.5rem; }
  body.sidebar-none .entry-content, body.sidebar-none .entry-summary { max-width: 76ch; }
  .widget:first-child { padding-top: 0; }
  .masthead { gap: 28px; padding: 2.25rem var(--gutter) 1.5rem; max-width: 1200px; margin: 0 auto; }
  .site-logo { width: 104px; height: 104px; font-size: 3rem; }
  .site-title { font-size: clamp(3rem, 5.5vw, 4.5rem); }
  .site-description { font-size: 0.8rem; margin-top: 0.6rem; }
  .main-navigation ul { max-width: 1200px; margin: 0 auto; padding: 1px 0 0 1px; }
  .main-navigation { padding: 0 var(--gutter); }
  .main-navigation a { font-size: 0.85rem; padding: 1.1rem 1.6rem; }
  .header-ticker { padding-left: var(--gutter); padding-right: var(--gutter); }
  .header-ticker .ticker-date-long { display: inline; }
  .header-ticker .ticker-date-short { display: none; }
  .entry-title { font-size: calc(clamp(2rem, 4vw, 3rem) * var(--title-scale)); }
  .post-list .entry.is-lead .entry-title { font-size: calc(clamp(3rem, 6vw, 4.5rem) * var(--title-scale)); }
  .footer-main { grid-template-columns: 2fr 1fr 1fr; }
}

/* Print: still black and white, obviously. */
@media print {
  .site-header, .site-footer { background: var(--ink) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .widget-area, .comments-area, .post-navigation { display: none; }
}
