/*
Theme Name: Unfiltered Gossip
Description: A fast, responsive editorial theme for an independent news publication.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: unfiltered-gossip
License: GNU General Public License v2 or later
*/
:root {
  --navy: #0c1328;
  --ink: #121725;
  --muted: #535c70;
  --gold: #ffca36;
  --paper: #f6f7fa;
  --line: #dce1eb;
  --headline: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 system-ui, sans-serif; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #2867ce; outline-offset: 4px; }
img { max-width: 100%; height: auto; vertical-align: middle; }
iframe { max-width: 100%; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--headline); line-height: 1.08; }
.shell { width: min(1320px, calc(100% - 64px)); margin-inline: auto; }
.masthead, .site-footer { background: var(--navy); color: white; }
.masthead-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 26px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: clamp(.9rem, 2.5vw, 1.5rem); font-weight: 900; line-height: 1.1; }
.brand strong { color: var(--gold); }
.brand-mark { position: relative; flex: none; display: grid; place-items: center; background: var(--gold); color: var(--navy); width: 38px; height: 28px; border-radius: 12px; letter-spacing: .04em; }
.brand-mark::after { content: ""; position: absolute; left: 6px; bottom: -5px; border-top: 8px solid var(--gold); border-right: 8px solid transparent; }
.custom-logo { max-width: min(220px, 48vw); max-height: 65px; width: auto; object-fit: contain; }
.masthead-tools, .language-menu { display: flex; align-items: center; gap: 12px; }
.language-menu, .menu { margin: 0; padding: 0; list-style: none; }
.language-menu { font-weight: 800; text-transform: uppercase; font-size: .8rem; }
.current-lang a, .current-menu-item > a { color: var(--gold); }
.search { position: relative; }
.search summary { cursor: pointer; font-weight: 700; }
.search form { position: absolute; z-index: 5; inset-inline-end: 0; top: 135%; width: min(290px, 88vw); padding: 16px; background: white; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 8px 20px #0002; }
.search form label { display: block; margin-bottom: 8px; }
input:not([type="checkbox"], [type="radio"]), textarea { max-width: 100%; font: inherit; }
.search input[type="search"] { width: 100%; padding: 7px; }
button, input[type="submit"] { padding: 8px 12px; border: 0; background: var(--gold); color: var(--ink); font-weight: 800; cursor: pointer; }
.navigation { border-top: 1px solid #ffffff22; border-bottom: 4px solid var(--gold); }
.navigation .menu, .footer-inner .menu { display: flex; flex-wrap: wrap; gap: 0 26px; }
.menu a { display: inline-block; padding-block: 10px; text-decoration: none; font-weight: 700; }
.menu a:hover, .story :is(h2,h3) a:hover { text-decoration: underline; text-underline-offset: .18em; }
.navigation li { position: relative; }
.navigation .sub-menu { display: none; position: absolute; z-index: 4; inset-inline-start: 0; top: 100%; min-width: 170px; background: var(--navy); list-style: none; padding: 8px 16px; margin: 0; }
.navigation li:hover > .sub-menu, .navigation li:focus-within > .sub-menu { display: block; }
.navigation .sub-menu .sub-menu { inset-inline-start: 100%; top: 0; }
.home-content, .listing, .article-shell { min-height: 55vh; padding-block: 34px 68px; }
.section-title { width: fit-content; margin: 0 0 20px; padding-inline-start: 13px; border-inline-start: 5px solid var(--gold); font-size: clamp(1.65rem, 3vw, 2.45rem); letter-spacing: -.035em; }
.hero-grid { display: flex; gap: 18px; align-items: stretch; }
.lead { flex: 2 1 0; min-width: 0; background: var(--navy); color: white; }
.hero-side { flex: 1 1 0; min-width: 0; display: grid; gap: 18px; grid-auto-rows: 1fr; }
.story { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: white; }
.story.lead { display: flex; flex-direction: column; background: var(--navy); }
.story-image { display: block; background: #e8ebf2; }
.story-image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.story-body { padding: 18px; }
.lead .story-body { padding: clamp(19px, 3vw, 38px); margin-top: auto; }
.eyebrow { font-size: .72rem; color: #5c4300; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; text-decoration: none; }
.lead .eyebrow { color: var(--gold); }
.story :is(h2,h3) { margin: .35em 0 .45em; font-size: clamp(1.28rem, 2.2vw, 1.8rem); }
.lead h3 { font-size: clamp(2.05rem, 4.1vw, 4rem); letter-spacing: -.045em; }
.story :is(h2,h3) a { text-decoration: none; }
.story time, .byline, figcaption { color: var(--muted); font-size: .84rem; }
.lead time { color: #bec8df; }
.compact .story-image img { aspect-ratio: 2.4; }
.desk { margin-top: 48px; }
.section-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-bar > a { font-weight: 750; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.topics a { display: inline-block; border: 1px solid var(--line); border-radius: 4px; padding: 5px 12px; background: white; text-decoration: none; font-weight: 700; }
.topics a:hover { border-color: var(--ink); }
.welcome { min-height: clamp(370px, 54vw, 590px); display: grid; align-items: end; padding: clamp(24px, 6vw, 76px); background: linear-gradient(0deg,#080e20 3%,#080e2022 95%), var(--navy) url("assets/newsroom.webp") center / cover; color: white; border-radius: 6px; }
.welcome h1, .article-header h1 { margin: 0; font-size: clamp(2.6rem, 6vw, 5.4rem); letter-spacing: -.055em; }
.welcome p { font-size: clamp(1rem, 2vw, 1.35rem); margin-bottom: 0; }
.full-story { max-width: 1040px; margin-inline: auto; }
.article-header { max-width: 860px; margin-inline: auto; }
.article-header h1 { margin-block: 10px 16px; font-size: clamp(2.5rem, 5.5vw, 4.8rem); }
.article-image { margin: 28px 0; }
.article-image img { width: 100%; }
figcaption { padding-top: 6px; }
.prose { max-width: 720px; margin: 28px auto; font-size: clamp(1rem, 2.4vw, 1.18rem); line-height: 1.75; }
.prose .alignwide { width: min(900px, calc(100vw - 32px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.prose .alignleft { float: left; margin: 0 1rem 1rem 0; }
.prose .alignright { float: right; margin: 0 0 1rem 1rem; }
.prose .aligncenter { margin-inline: auto; text-align: center; }
.prose::after { content: ""; display: block; clear: both; }
.wp-caption { max-width: 100%; }
.prose pre { overflow-x: auto; }
.prose table { display: block; overflow-x: auto; }
.pagination, .post-navigation { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 12px; }
.page-numbers { padding: 5px 10px; border: 1px solid var(--line); }
.page-numbers.current { background: var(--navy); color: white; }
.site-footer { border-top: 4px solid var(--gold); }
.footer-inner { flex-wrap: wrap; }
.footer-inner .sub-menu { list-style: none; padding-inline-start: 1rem; }
.skip-link, .screen-reader-text { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip-link:focus { clip-path: none; width: auto; height: auto; z-index: 20; top: 10px; left: 10px; padding: 8px 16px; background: white; }
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .navigation .sub-menu, .navigation .sub-menu .sub-menu { position: static; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .masthead-inner { gap: 8px; padding-block: 18px; }
  .masthead-tools { gap: 8px; font-size: .83rem; }
  .navigation .menu { gap: 0 14px; }
  .navigation .menu a { font-size: .84rem; padding-block: 7px; }
  .hero-grid { display: block; }
  .hero-side { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; gap: 12px; }
  .card-grid { gap: 12px; }
  .story-body { padding: 12px; }
  .desk { margin-top: 34px; }
}
@media (max-width: 360px) {
  .card-grid, .hero-side { grid-template-columns: 1fr; }
  .masthead-inner { flex-wrap: wrap; }
}
@media (min-width: 761px) {
  .story.lead:has(.story-image) { position: relative; min-height: 460px; justify-content: end; }
  .lead .story-image { position: absolute; inset: 0; }
  .lead .story-image img { height: 100%; }
  .lead:has(.story-image) .story-body {
    position: relative;
    background: linear-gradient(0deg, #090f22 7%, #090f22f0 46%, #090f2200);
    padding-top: 68px;
    pointer-events: none;
  }
  .lead .story-body a { pointer-events: auto; }
}
