/*
Theme Name: Newy News
Theme URI: https://newy.com.au/
Author: Newy
Description: A lean, image-led local news theme for Newcastle and the Hunter.
Version: 0.1.62
Requires at least: 6.6
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: newy-news
*/

@font-face {
  font-family: "Newy Display";
  src: url("assets/fonts/anton-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Newy Text";
  src: url("assets/fonts/roboto-condensed-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --newy-blue: #087fe5;
  --newy-blue-readable: #0675d4;
  --newy-blue-bright: #21a7ff;
  --newy-blue-dark: #0057a8;
  --newy-ink: #101419;
  --newy-ink-soft: #404852;
  --newy-night: #090e14;
  --newy-paper: #f6f5f1;
  --newy-line: #d9dce0;
  --newy-white: #fff;
  --newy-alert: #d92332;
  --newy-focus: #ffbf24;
  --newy-shell: 1320px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--newy-paper);
  color: var(--newy-ink);
  font-family: "Newy Text", "Arial Narrow", Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
}

body.admin-bar .site-header {
  --newy-admin-offset: 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  border-radius: 0;
  color: inherit;
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--newy-ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--newy-focus);
}

.page-shell {
  width: min(var(--newy-shell), calc(100% - 48px));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
  z-index: 100000;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: var(--newy-white);
  color: var(--newy-ink);
  font-weight: 700;
}

/* Header and navigation */
.site-header {
  border-bottom: 1px solid var(--newy-line);
  background: var(--newy-white);
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  min-height: 132px;
  padding-block: 14px;
}

.wordmark {
  display: block;
  width: clamp(220px, 22vw, 280px);
  line-height: 0;
}

.wordmark img {
  width: 100%;
  height: auto;
}

.header-ad-slot {
  display: grid;
  width: clamp(500px, 50vw, 728px);
  min-width: 0;
  min-height: 90px;
  align-content: center;
  place-items: center;
  overflow: hidden;
  line-height: 0;
}

.header-ad-slot .adsbygoogle {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 1px;
  align-self: center;
  margin-block: auto;
  margin-inline: auto;
}

.header-ad-slot:has(.adsbygoogle[data-ad-status="unfilled"]),
.header-ad-slot:has(.adsbygoogle[data-ad-status="unfill-optimized"]) {
  display: none;
  min-height: 0;
  margin-bottom: 0;
}

.header-actions {
  grid-column: 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.masthead-date {
  color: #5f6670;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.primary-nav {
  border-top: 1px solid #eceef0;
  background: var(--newy-blue-readable);
  color: var(--newy-white);
}

.primary-nav .page-shell {
  display: flex;
  align-items: stretch;
  min-height: 46px;
}

.primary-menu,
.primary-nav-actions,
.footer-menu {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-menu {
  flex: 1 1 auto;
  align-items: stretch;
}

.primary-menu li,
.primary-nav-actions li {
  display: flex;
  align-items: stretch;
}

.primary-nav a,
.primary-nav button {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 0;
  border-right: 1px solid rgb(255 255 255 / 9%);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"],
.primary-nav .current-menu-item > a,
.primary-nav button:hover {
  background: var(--newy-blue-dark);
}

.primary-nav-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  margin-left: auto;
}

.primary-nav .nav-search-link {
  border-left: 1px solid rgb(255 255 255 / 9%);
}

.mobile-menu {
  position: relative;
  display: none;
}

.mobile-menu > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #cfd4d9;
  border-radius: 2px;
  background: var(--newy-white);
  color: #313840;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1;
  list-style: none;
  text-transform: uppercase;
}

.mobile-menu > summary::-webkit-details-marker {
  display: none;
}

.mobile-menu > summary:hover {
  border-color: var(--newy-blue);
  color: var(--newy-blue-dark);
}

.mobile-menu nav {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  width: min(300px, calc(100vw - 32px));
  padding: 8px;
  border-top: 4px solid var(--newy-blue);
  background: var(--newy-white);
  box-shadow: 0 16px 45px rgb(4 15 25 / 22%);
}

.mobile-menu .primary-menu {
  display: block;
}

.mobile-menu .primary-menu li {
  display: block;
}

.mobile-menu .primary-nav-actions {
  display: block;
  margin-left: 0;
}

.mobile-menu .primary-nav-actions li {
  display: block;
}

.mobile-menu nav a,
.mobile-menu nav button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid #e2e5e7;
  background: transparent;
  color: var(--newy-ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: left;
}

.mobile-menu nav a:hover,
.mobile-menu nav button:hover {
  background: #eef7ff;
  color: var(--newy-blue-dark);
}

/* Search dialog */
.search-popover {
  width: min(720px, calc(100% - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  background: var(--newy-white);
  color: var(--newy-ink);
}

.search-popover::backdrop {
  background: rgb(4 15 25 / 76%);
}

.search-popover-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
  background: var(--newy-blue-readable);
  color: var(--newy-white);
}

.search-popover-heading h2 {
  margin: 0;
  font-family: "Newy Display", Impact, sans-serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
  line-height: 1;
  color: var(--newy-white);
}

.search-popover-close {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgb(255 255 255 / 58%);
  background: transparent;
  color: var(--newy-white);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search-popover-close:hover {
  background: var(--newy-white);
  color: var(--newy-blue-dark);
}

.site-search-form {
  padding: 26px 24px 24px;
}

.site-search-form > label {
  display: block;
  margin-bottom: 9px;
  color: var(--newy-ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.site-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.site-search-controls input[type="search"] {
  min-width: 0;
  min-height: 54px;
  padding: 12px 15px;
  border: 1px solid #65717c;
  background: var(--newy-white);
  color: var(--newy-ink);
  font-size: 1rem;
  font-weight: 400;
}

.site-search-controls input[type="search"]:focus {
  border: 3px solid var(--newy-blue-readable);
  outline: 0;
  background: var(--newy-white);
  box-shadow: none;
}

.site-search-controls input[type="search"]::placeholder {
  color: #626b73;
}

.site-search-controls button {
  min-height: 54px;
  padding: 12px 20px;
  border: 1px solid #0b78d2;
  background: #0b78d2;
  color: var(--newy-white);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.site-search-controls button:hover {
  border-color: var(--newy-blue-dark);
  background: var(--newy-blue-dark);
}

/* Homepage image stories */
.page-content {
  padding-block: 24px 72px;
}

.lead-mosaic {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  height: 600px;
}

.image-story {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #202830;
}

.image-story > a {
  position: relative;
  display: block;
  height: 100%;
}

.image-story > a:focus-visible,
.police-feature:focus-visible {
  z-index: 2;
  outline: 3px solid var(--newy-ink);
  outline-offset: -4px;
  box-shadow: inset 0 0 0 8px var(--newy-focus);
}

.image-story img,
.image-story .story-image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-image-placeholder {
  display: grid;
  place-items: center;
  min-height: 180px;
  background: #1a2733;
  color: var(--newy-blue-bright);
}

.story-image-placeholder > span {
  font-family: "Newy Display", Impact, sans-serif;
  font-size: clamp(2rem, 7vw, 5rem);
  letter-spacing: 0.02em;
  opacity: 0.65;
}

.image-story > a::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(transparent 0% 30%, rgb(0 0 0 / 28%) 48%, rgb(0 0 0 / 82%) 100%);
}

.lead-mosaic .image-story > a::after {
  background: linear-gradient(transparent 0% 34%, rgb(0 0 0 / 32%) 52%, rgb(0 0 0 / 82%) 100%);
}

.lead-primary {
  grid-row: 1 / span 2;
}

.story-copy {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  color: var(--newy-white);
}

.story-category {
  display: inline-block;
  padding: 4px 7px;
  margin-bottom: 9px;
  border-left: 4px solid #83d2ff;
  background: var(--newy-blue-readable);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.085em;
  line-height: 1.1;
  text-transform: uppercase;
}

.story-title {
  max-width: 900px;
  margin: 0;
  font-family: "Newy Display", Impact, sans-serif;
  font-size: 1.40625rem;
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.2;
  color: var(--newy-white);
}

.story-copy time {
  margin-top: 10px;
  color: #d8e0e7;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lead-primary .story-copy {
  padding: clamp(26px, 4vw, 48px);
}

.lead-primary .story-title {
  max-width: 780px;
  font-size: 2.197rem;
  line-height: 1.26;
}

.lead-secondary .story-title {
  font-size: 1.575rem;
  line-height: 1.26;
}

.latest-section {
  margin-top: 10px;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.latest-grid .image-story {
  aspect-ratio: 1.15;
}

.latest-grid .story-copy {
  padding: 20px;
}

.latest-grid .story-title {
  font-size: 1.40625rem;
}

.news-section {
  margin-top: 58px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  min-height: 54px;
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid #bfc4c8;
}

.section-heading h2 {
  position: relative;
  margin: 0;
  font-family: "Newy Display", Impact, sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 0.95;
  text-transform: uppercase;
}

.section-heading h2::after {
  position: absolute;
  bottom: -13px;
  left: 0;
  width: 84px;
  height: 5px;
  background: var(--newy-blue);
  content: "";
}

.section-heading > a {
  color: var(--newy-blue-dark);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ad-slot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 3px;
  min-height: 132px;
  margin: 48px 0 8px;
  text-align: center;
  overflow: hidden;
}

.ad-slot--placeholder {
  border: 1px solid #d5d8da;
  background: repeating-linear-gradient(-45deg, #f9f9f7, #f9f9f7 8px, #f2f2ef 8px 16px);
  color: #626b73;
}

.ad-slot--filled {
  border: 0;
  background: transparent;
  color: inherit;
}

.ad-slot-label {
  color: #626b73;
  text-align: center;
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ad-slot-unit {
  width: 100%;
  min-width: 0;
  min-height: 90px;
}

.ad-slot-unit .adsbygoogle {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.ad-slot strong {
  color: #5d656c;
  font-size: 0.82rem;
}

.ad-slot small {
  font-size: 0.7rem;
}

/* Regional modules */
.regional-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 20px;
}

.region-panel {
  min-width: 0;
  background: var(--newy-white);
}

.region-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: var(--newy-blue-readable);
  color: var(--newy-white);
}

.region-heading:hover {
  background: var(--newy-blue-dark);
}

.region-heading h3 {
  margin: 0;
  color: inherit;
  font-family: "Newy Display", Impact, sans-serif;
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.15;
}

.region-heading > span {
  flex: none;
  color: inherit;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.region-feature {
  aspect-ratio: 1.35;
}

.region-feature .story-copy {
  padding: 18px;
}

.region-feature .story-title {
  font-size: 1.40625rem;
}

.region-briefs {
  padding: 0 15px 8px;
}

.region-briefs a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid #e1e3e5;
}

.region-briefs a:last-child {
  border-bottom: 0;
}

.region-briefs span {
  color: #555d65;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.34;
}

.region-briefs a:hover span {
  color: var(--newy-blue-dark);
}

.region-empty {
  min-height: 170px;
  padding: 22px 15px;
  margin: 0;
  color: #69727a;
}

.weather-radar-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  aspect-ratio: 1.35;
  overflow: hidden;
  background: #bed5e4;
}

.weather-radar-feature img {
  width: 100%;
  height: 100%;
  background: #bed5e4;
  object-fit: contain;
}

.weather-radar-media {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.weather-radar-media img {
  position: relative;
  z-index: 1;
}

.weather-radar-fallback {
  position: absolute;
  inset: 0;
  background: #bed5e4;
  color: var(--newy-blue-dark);
}

.weather-radar-media.is-unavailable img {
  display: none;
}

.weather-radar-copy,
.weather-radar-fallback {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  padding: 18px 14px;
  background: var(--newy-blue-readable);
  color: var(--newy-white);
  text-align: center;
}

.weather-radar-copy strong,
.weather-radar-fallback strong {
  font-family: "Newy Display", Impact, sans-serif;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.03;
}

/* Police and outlook */
.topic-section {
  display: grid;
  grid-template-columns: 1.65fr 0.75fr;
  gap: 18px;
  margin-top: 58px;
}

.police-panel {
  padding: 26px;
  background-color: #07102b;
  background-image: linear-gradient(rgb(7 16 43 / 44%), rgb(7 16 43 / 62%)), url("assets/images/police-lights-background.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--newy-white);
}

.topic-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgb(255 255 255 / 20%);
}

.topic-heading h2 {
  margin: 0;
  font-family: "Newy Display", Impact, sans-serif;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: var(--newy-white);
}

.topic-heading a {
  max-width: 180px;
  color: #9ed8ff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-align: right;
  text-transform: uppercase;
}

.police-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 22px;
}

.police-feature {
  position: relative;
  min-height: 305px;
  overflow: hidden;
}

.police-feature img,
.police-feature .story-image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.police-feature::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 0% 40%, rgb(0 0 0 / 46%) 65% 100%);
  content: "";
  pointer-events: none;
}

.police-feature > span:last-child {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 20px;
  left: 22px;
  font-family: "Newy Display", Impact, sans-serif;
  font-size: 1.40625rem;
  line-height: 1.2;
}

.police-feature--empty {
  background: rgb(4 13 38 / 72%);
}

.police-briefs a {
  display: block;
  padding: 15px 0;
  border-top: 1px solid rgb(255 255 255 / 18%);
  font-family: "Newy Display", Impact, sans-serif;
  font-size: 1.5rem;
  line-height: 1.1;
}

.police-briefs a:first-child {
  padding-top: 0;
  border-top: 0;
}

.police-briefs a::after {
  display: block;
  width: 30px;
  height: 3px;
  margin-top: 12px;
  background: var(--newy-blue);
  content: "";
}

.weather-panel {
  position: relative;
  display: block;
  min-height: 430px;
  padding: 30px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgb(0 87 168 / 88%) 0%, rgb(0 105 192 / 72%) 55%, rgb(9 81 147 / 38%) 100%),
    url("assets/images/newcastle-weather-card.webp") center / cover no-repeat,
    var(--newy-blue);
  color: var(--newy-white);
}

.weather-panel:focus-visible {
  outline: 3px solid var(--newy-ink);
  outline-offset: -4px;
  box-shadow: inset 0 0 0 8px var(--newy-focus);
}

.weather-kicker {
  position: relative;
  z-index: 1;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: none;
}

.weather-panel h2 {
  position: relative;
  z-index: 1;
  max-width: 300px;
  margin: 28px 0 16px;
  font-family: "Newy Display", Impact, sans-serif;
  font-size: clamp(3.2rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--newy-white);
}

.weather-panel p {
  position: relative;
  z-index: 1;
  max-width: 340px;
  margin: 0 0 22px;
  color: #eaf7ff;
  font-size: 0.9rem;
  font-weight: 700;
}

.weather-links {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 28px;
  left: 30px;
  display: flex;
  flex-direction: column;
  padding-top: 16px;
}

.weather-links > span {
  display: block;
  padding: 10px 0;
  border-top: 1px solid rgb(255 255 255 / 42%);
  font-size: 0.71rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.newsletter-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 30px;
  margin-top: 18px;
  border: 1px solid #cdd2d6;
  background: var(--newy-white);
}

.newsletter-band h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
}

.newsletter-band p {
  margin: 5px 0 0;
  color: #596169;
  font-size: 0.95rem;
}

.newsletter-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--newy-blue);
  background: var(--newy-blue-readable);
  color: var(--newy-white);
  font-size: 0.82rem;
  font-weight: 700;
}

.newsletter-action:hover {
  border-color: var(--newy-blue-dark);
  background: var(--newy-blue-dark);
}

/* Category and search archives */
.category-page {
  padding-block: 22px 72px;
}

.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #626b73;
  font-size: 0.72rem;
  font-weight: 400;
}

.article-breadcrumbs a {
  color: var(--newy-blue-dark);
  font-weight: 700;
}

.category-title-band {
  padding: 28px 32px 30px;
  margin-bottom: 22px;
  background: var(--newy-blue-readable);
  color: var(--newy-white);
}

.category-title-band > span {
  display: block;
  margin-bottom: 7px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-title-band h1 {
  margin: 0;
  font-family: "Newy Display", Impact, sans-serif;
  font-size: clamp(3.4rem, 7vw, 6.7rem);
  font-weight: 400;
  line-height: 0.95;
  color: var(--newy-white);
}

.category-description {
  max-width: 720px;
  margin-top: 16px;
  color: var(--newy-white);
  font-size: 1rem;
}

.category-description > :first-child,
.category-description > :last-child {
  margin-block: 0;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.archive-card {
  min-width: 0;
  border: 1px solid #d7dce0;
  background: var(--newy-white);
}

.archive-card > a {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

.archive-card img,
.archive-card .story-image-placeholder {
  width: 100%;
  aspect-ratio: 1.42;
  object-fit: cover;
}

.archive-card > a > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
}

.archive-card > a > div > span {
  display: inline-block;
  padding: 4px 7px;
  margin-bottom: 9px;
  background: var(--newy-blue-readable);
  color: var(--newy-white);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.archive-card h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.14;
}

.archive-card p {
  margin: 12px 0 0;
  color: #555d65;
  font-size: 0.93rem;
}

.archive-card time {
  padding-top: 18px;
  margin-top: auto;
  color: #626b73;
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: uppercase;
}

.archive-card > a:hover h2 {
  color: var(--newy-blue-dark);
}

.archive-featured {
  grid-area: span 2 / span 2;
}

.archive-featured img,
.archive-featured .story-image-placeholder {
  aspect-ratio: 1.68;
}

.archive-featured h2 {
  max-width: 860px;
  font-family: "Newy Display", Impact, sans-serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 400;
  line-height: 1.06;
}

.archive-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 34px;
}

.archive-pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 10px;
  border: 1px solid #cbd1d6;
  background: var(--newy-white);
  color: var(--newy-blue-dark);
  font-size: 0.75rem;
  font-weight: 800;
}

.archive-pagination .current,
.archive-pagination a:hover {
  border-color: var(--newy-blue-dark);
  background: var(--newy-blue-dark);
  color: var(--newy-white);
}

.archive-search-form {
  max-width: 780px;
  margin: -6px 0 24px;
  background: var(--newy-white);
}

.empty-state {
  max-width: 780px;
  padding: clamp(28px, 6vw, 58px);
  margin: 24px auto;
  border-top: 7px solid var(--newy-blue);
  background: var(--newy-white);
}

.empty-state h1,
.empty-state h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
}

.empty-state p {
  color: var(--newy-ink-soft);
  font-size: 1.05rem;
}

.error-page {
  padding-block: 54px 80px;
}

.error-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(110px, 26vw, 230px);
  align-items: center;
  gap: clamp(14px, 4vw, 36px);
}

.error-heading h1 {
  margin-bottom: 0;
}

.error-code {
  display: block;
  color: var(--newy-blue);
  font-family: "Newy Display", Impact, sans-serif;
  font-size: 5rem;
  line-height: 0.9;
}

.error-illustration {
  margin: 0;
}

.error-illustration img {
  display: block;
  width: 100%;
  height: auto;
}

.error-intro + p {
  margin-top: 24px;
}

.text-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 16px;
  margin-top: 18px;
  background: var(--newy-blue-readable);
  color: var(--newy-white);
  font-weight: 700;
}

/* Article */
.article-page {
  padding-block: 22px 72px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(290px, 0.78fr);
  align-items: start;
  gap: 38px;
}

.article-column,
.article-main {
  min-width: 0;
}

.article-main {
  padding: 36px;
  border-top: 7px solid var(--newy-blue);
  background: var(--newy-white);
}

.article-title-block {
  max-width: 920px;
}

.article-category {
  display: inline-block;
  padding: 6px 10px;
  margin-bottom: 15px;
  background: var(--newy-blue-readable);
  color: var(--newy-white);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.article-categories .article-category {
  margin-bottom: 0;
}

.article-title-block h1 {
  max-width: 960px;
  margin: 0;
  font-size: clamp(3rem, 5.2vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}

.article-title-block h1 + .article-byline {
  margin-top: 18px;
}

.article-standfirst {
  max-width: 850px;
  margin: 22px 0 20px;
  color: var(--newy-ink-soft);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.45;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding-block: 14px;
  border-top: 1px solid var(--newy-line);
  color: #5c6570;
  font-size: 0.74rem;
}

.article-byline > * + * {
  padding-left: 18px;
  border-left: 1px solid #cfd4d8;
}

.article-byline strong,
.article-byline a {
  color: var(--newy-blue-dark);
  font-weight: 800;
}

.article-hero {
  margin: 28px -36px 36px;
}

.article-hero img {
  width: 100%;
  height: auto;
}

.article-hero figcaption {
  padding: 9px 36px 0;
  color: #626b73;
  font-size: 0.72rem;
}

.article-body,
.entry-content {
  overflow-wrap: break-word;
}

.article-body {
  max-width: 800px;
  margin-inline: auto;
  color: #252b31;
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.72;
}

.entry-content > :first-child {
  margin-top: 0;
}

.entry-content p {
  margin: 0 0 1.42em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 1.6em 0 0.55em;
  line-height: 1.16;
}

.entry-content h2 { font-size: 1.8em; }
.entry-content h3 { font-size: 1.45em; }
.entry-content h4 { font-size: 1.2em; }

.entry-content a {
  color: var(--newy-blue-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.entry-content .newy-related-story,
body#tinymce.mce-content-body .newy-related-story {
  margin: 2.2em 0;
  border-top: 6px solid var(--newy-blue);
  background: #07102b;
}

.entry-content .newy-related-story__link,
body#tinymce.mce-content-body .newy-related-story__link {
  display: grid;
  grid-template-columns: minmax(230px, 42%) minmax(0, 1fr);
  min-height: 270px;
  border: 1px solid #07102b;
  border-top: 0;
  background: #07102b;
  color: var(--newy-white);
  text-decoration: none;
}

.entry-content .newy-related-story--no-image .newy-related-story__link,
body#tinymce.mce-content-body .newy-related-story--no-image .newy-related-story__link {
  grid-template-columns: 1fr;
  min-height: 0;
}

body#tinymce.mce-content-body .newy-related-story {
  width: calc(100% - 32px);
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
}

.newy-related-story__media {
  display: block;
  min-width: 0;
  min-height: 270px;
  overflow: hidden;
  background: var(--newy-blue-dark);
}

.newy-related-story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newy-related-story__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px 26px;
}

.newy-related-story__eyebrow {
  color: #75c9ff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.newy-related-story__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 8px;
  color: #aebdca;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.newy-related-story__title {
  display: block;
  margin-top: 14px;
  font-family: "Newy Display", Impact, sans-serif;
  font-size: clamp(1.75rem, 3.2vw, 2.3rem);
  font-weight: 400;
  line-height: 1.04;
  color: var(--newy-white);
}

.newy-related-story__excerpt {
  display: block;
  margin-top: 12px;
  color: #dce7f0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.newy-related-story__cta {
  display: block;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid rgb(255 255 255 / 18%);
  color: #9ed8ff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.entry-content .newy-related-story__link:hover .newy-related-story__title,
body#tinymce.mce-content-body .newy-related-story__link:hover .newy-related-story__title {
  color: #9ed8ff;
}

.entry-content .newy-related-story__link:focus-visible,
body#tinymce.mce-content-body .newy-related-story__link:focus-visible {
  outline: 3px solid var(--newy-blue);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--newy-focus);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
  margin: 0 0 1.42em;
}

.entry-content blockquote {
  padding: 0 0 0 22px;
  margin: 2em 0;
  border-left: 6px solid var(--newy-blue);
  color: var(--newy-ink-soft);
  font-size: 1.15em;
}

.entry-content figure,
.entry-content .wp-block-image,
.entry-content .wp-block-gallery {
  margin-block: 38px;
}

.entry-content figcaption,
.wp-caption-text,
.gallery-caption {
  padding-top: 9px;
  border-bottom: 1px solid var(--newy-line);
  color: #626b73;
  font-size: 0.72rem;
  font-weight: 300;
  line-height: 1.4;
}

.entry-content table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
}

.entry-content table:focus-visible {
  outline: 3px solid var(--newy-ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--newy-focus);
}

.entry-content th,
.entry-content td {
  padding: 10px;
  border: 1px solid var(--newy-line);
  text-align: left;
  vertical-align: top;
}

.entry-content iframe,
.entry-content video,
.wp-block-embed {
  max-width: 100%;
}

.entry-content video {
  height: auto;
}

.entry-content iframe.newy-responsive-embed {
  width: min(100%, var(--newy-embed-width));
  height: auto;
  aspect-ratio: var(--newy-embed-ratio);
}

.newy-legacy-video {
  width: 100%;
  margin: 2em 0;
}

.newy-legacy-video-frame {
  position: relative;
  overflow: hidden;
  background: var(--newy-night);
  aspect-ratio: 16 / 9;
}

.newy-legacy-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.newy-legacy-video figcaption {
  margin: 0;
}

.entry-content .newy-legacy-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  margin: 0 8px 1.42em 0;
  background: var(--newy-blue-readable);
  color: var(--newy-white);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.entry-content .newy-legacy-button--large {
  min-height: 48px;
  padding-inline: 22px;
  font-size: 0.9rem;
}

.entry-content .newy-legacy-button:hover,
.entry-content .newy-legacy-button:focus-visible {
  background: var(--newy-ink);
  color: var(--newy-white);
}

.newy-legacy-media-notice,
.newy-fire-danger-note {
  padding: 16px 18px;
  margin: 1.7em 0;
  border-left: 5px solid var(--newy-blue);
  background: #e9f4fd;
}

.newy-fire-danger-note {
  display: grid;
  gap: 5px;
}

.newy-fire-danger-note strong {
  font-family: var(--newy-display);
  font-size: 1.35rem;
  line-height: 1.1;
}

.newy-fire-danger-note span {
  color: var(--newy-ink-soft);
}

.newy-fire-danger-note a {
  justify-self: start;
  font-weight: 700;
}

.newy-legacy-weather-summary {
  display: grid;
  gap: 5px;
  padding: 18px 18px 8px;
  background: #e9f4fd;
}

.newy-legacy-weather-summary span {
  color: var(--newy-blue-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.newy-legacy-weather-summary strong {
  font-size: 1.05rem;
  line-height: 1.25;
}

.newy-legacy-weather-links {
  display: grid;
  gap: 2px;
  padding: 8px 18px 18px;
  background: #e9f4fd;
}

.entry-content .newy-legacy-weather-links a,
.newy-legacy-weather-links a {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-top: 1px solid #b9d9f1;
  color: var(--newy-blue-dark);
  font-weight: 700;
}

.entry-content .wp-caption {
  max-width: 100%;
}

.entry-content .gallery {
  --newy-gallery-columns: 2;
  display: grid;
  grid-template-columns: repeat(var(--newy-gallery-columns), minmax(0, 1fr));
  gap: 18px;
  margin-block: 32px;
}

.entry-content .gallery-item {
  min-width: 0;
  margin: 0;
}

.entry-content .gallery-item img {
  width: 100%;
  height: auto;
}

.entry-content .gallery-columns-1 { --newy-gallery-columns: 1; }
.entry-content .gallery-columns-2 { --newy-gallery-columns: 2; }
.entry-content .gallery-columns-3 { --newy-gallery-columns: 3; }
.entry-content .gallery-columns-4 { --newy-gallery-columns: 4; }
.entry-content .gallery-columns-5 { --newy-gallery-columns: 5; }
.entry-content .gallery-columns-6 { --newy-gallery-columns: 6; }
.entry-content .gallery-columns-7 { --newy-gallery-columns: 7; }
.entry-content .gallery-columns-8 { --newy-gallery-columns: 8; }
.entry-content .gallery-columns-9 { --newy-gallery-columns: 9; }

.alignwide {
  width: min(1000px, calc(100vw - 48px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.alignfull {
  width: calc(100vw - 48px);
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.article-layout .entry-content .alignwide,
.article-layout .entry-content .alignfull {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  transform: none;
}

.article-discussion-row {
  max-width: 800px;
  margin: 42px auto 0;
}

.article-discussion {
  display: inline-block;
  padding: 12px 15px;
  background: var(--newy-blue-readable);
  color: var(--newy-white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-discussion:hover {
  background: var(--newy-blue-dark);
}

.article-end {
  max-width: 800px;
  padding-top: 22px;
  margin: 22px auto 0;
  border-top: 2px solid var(--newy-ink);
}

.article-end > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.article-end span {
  margin-right: 4px;
  color: #69727a;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.article-end a {
  padding: 5px 9px;
  background: #eaf5ff;
  color: var(--newy-blue-dark);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.comments-area {
  max-width: 800px;
  padding-top: 30px;
  margin: 38px auto 0;
  border-top: 2px solid var(--newy-ink);
}

.comments-title,
.comment-reply-title {
  margin: 0 0 18px;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.15;
}

.comment-list {
  padding: 0;
  margin: 0 0 30px;
  list-style: none;
}

.comment-list .comment {
  padding: 18px 0;
  border-top: 1px solid var(--newy-line);
}

.comment-list .children {
  padding-left: 28px;
  list-style: none;
}

.comment-meta {
  margin-bottom: 10px;
  color: #626b73;
  font-size: 0.78rem;
}

.comment-meta a,
.comment-reply-link {
  color: var(--newy-blue-dark);
  font-weight: 700;
}

.comment-content {
  font-size: 1rem;
  line-height: 1.6;
}

.comment-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.comment-form input:not([type="checkbox"]),
.comment-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #aeb5bb;
  background: var(--newy-white);
}

.comment-form textarea {
  min-height: 160px;
}

.comment-form input.submit {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  background: var(--newy-blue-readable);
  color: var(--newy-white);
  cursor: pointer;
  font-weight: 700;
}

.article-recent {
  padding: 28px 30px 32px;
  margin-top: 24px;
  background: var(--newy-white);
}

.article-recent > h2 {
  padding-bottom: 10px;
  margin: 0 0 18px;
  border-bottom: 2px solid var(--newy-ink);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.15;
}

.article-recent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.article-recent-grid a {
  display: block;
}

.article-recent-grid img,
.article-recent-grid .story-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-recent-grid h3 {
  margin: 10px 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.article-recent-grid a:hover h3 {
  color: var(--newy-blue-dark);
}

.article-recent-grid time {
  color: #626b73;
  font-size: 0.72rem;
}

/* Article sidebar and widgets */
.article-sidebar {
  display: grid;
  gap: 22px;
}

.sidebar-widget {
  border: 1px solid #d6dbe0;
  background: var(--newy-white);
}

.sidebar-widget > h2,
.sidebar-widget > .wp-block-heading:first-child,
.sidebar-widget .wp-block-group > .wp-block-heading:first-child {
  padding: 13px 15px;
  margin: 0;
  background: var(--newy-blue);
  color: var(--newy-white);
  font-family: "Newy Display", Impact, sans-serif;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
}

.sidebar-widget .wp-block-group > .wp-block-heading:first-child {
  margin-inline: -1px;
  margin-top: -1px;
}

.widget_search {
  padding: 14px;
}

.widget_search .wp-block-search__label {
  display: block;
  margin-bottom: 7px;
  color: var(--newy-ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.widget_search .wp-block-search__inside-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.widget_search .wp-block-search__input {
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #aeb5bb;
  background: var(--newy-white);
}

.widget_search .wp-block-search__button {
  min-height: 44px;
  padding: 8px 13px;
  margin: 0;
  border: 0;
  background: var(--newy-ink);
  color: var(--newy-white);
  cursor: pointer;
}

.sidebar-widget .wp-block-latest-posts,
.sidebar-widget .wp-block-latest-comments {
  padding: 0 14px 8px;
  margin: 0;
  list-style: none;
}

.sidebar-widget .wp-block-latest-posts li,
.sidebar-widget .wp-block-latest-comments li {
  padding: 11px 0;
  margin: 0;
  border-bottom: 1px solid var(--newy-line);
  font-size: 0.86rem;
  line-height: 1.3;
}

.sidebar-widget ul:not(.wp-block-latest-posts__list) {
  padding: 14px 28px;
}

.sidebar-widget.widget_recent_entries > ul {
  padding: 0 14px 8px;
  margin: 0;
  list-style: none;
}

.sidebar-widget.widget_recent_entries > ul > li {
  padding: 11px 0;
  margin: 0;
  border-bottom: 1px solid var(--newy-line);
  font-size: 0.86rem;
  line-height: 1.3;
}

.sidebar-widget.widget_recent_entries > ul > li:last-child {
  border-bottom: 0;
}

.sidebar-widget.widget_recent_entries a {
  display: block;
  font-weight: 700;
}

.sidebar-widget.widget_recent_entries .post-date {
  display: block;
  margin-top: 4px;
  color: var(--newy-ink-soft);
  font-size: 0.75rem;
}

.sidebar-story-list a {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 13px;
  border-bottom: 1px solid var(--newy-line);
}

.sidebar-story-list a:last-child {
  border-bottom: 0;
}

.sidebar-story-list img,
.sidebar-story-list .story-image-placeholder {
  width: 105px;
  aspect-ratio: 1.25;
  object-fit: cover;
}

.sidebar-story-list .story-image-placeholder > span {
  font-size: 1rem;
}

.sidebar-story-list > a > span:last-child {
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.25;
}

.sidebar-story-list a:hover > span:last-child {
  color: var(--newy-blue-dark);
}

.article-ad {
  display: grid;
  place-content: center;
  min-height: 250px;
  border: 1px solid #d2d7db;
  background: #eeefed;
  color: #626b73;
  text-align: center;
}

.article-ad span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-ad strong {
  margin-top: 5px;
  font-size: 0.86rem;
  font-weight: 300;
}

.weather-sidebar-widget > div {
  padding: 24px 18px;
  background: #eaf5ff;
}

.weather-sidebar-widget span {
  display: block;
  color: var(--newy-blue-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.weather-sidebar-widget strong {
  display: block;
  margin: 8px 0 18px;
  font-family: "Newy Display", Impact, sans-serif;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.12;
}

.weather-sidebar-widget a {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 3px solid var(--newy-blue);
  color: var(--newy-blue-dark);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sidebar-regions nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.sidebar-regions nav a {
  min-height: 44px;
  padding: 11px 13px;
  border-right: 1px solid var(--newy-line);
  border-bottom: 1px solid var(--newy-line);
  font-size: 0.78rem;
  font-weight: 400;
}

.sidebar-regions nav a:hover {
  background: #eaf5ff;
  color: var(--newy-blue-dark);
}

/* Ordinary/contact pages */
.simple-page {
  padding-block: 48px 76px;
}

.page-article,
.contact-simple {
  max-width: 860px;
  margin-inline: auto;
}

.page-title-block h1 {
  margin: 0 0 28px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.12;
}

.page-article > .entry-content {
  max-width: 800px;
  color: var(--newy-ink-soft);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.65;
}

.full-width-page .page-article,
.full-width-page .page-article > .entry-content {
  width: 100%;
  max-width: none;
}

.contact-page .page-title-block h1 {
  margin-bottom: 0;
}

.contact-intro {
  max-width: 700px;
  margin: 14px 0 34px;
  color: var(--newy-ink-soft);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.58;
}

.contact-page .contact-form-content {
  max-width: 760px;
  color: var(--newy-ink);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
}

.contact-page .contact-form-content .wpcf7,
.contact-page .contact-form-content form {
  width: 100%;
  max-width: 760px;
}

.contact-page .contact-form-content form {
  display: grid;
}

.contact-page .contact-form-content form > p {
  margin: 0;
}

.contact-page .contact-form-content form > p + p {
  margin-top: 21px;
}

.contact-page .contact-form-content form > p:empty {
  display: none;
}

.contact-page .contact-form-content label {
  display: block;
  margin: 0;
  color: var(--newy-ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.contact-page .contact-form-content label > br {
  display: none;
}

.contact-page .contact-form-content label > span:not(.wpcf7-form-control-wrap) {
  color: #70777f;
  font-weight: 400;
}

.contact-page .contact-form-content .contact-form > label {
  margin-bottom: 7px;
}

.contact-page .contact-form-content .contact-form > label:not(:first-of-type) {
  margin-top: 21px;
}

.contact-page .contact-form-content .wpcf7-form-control-wrap {
  display: block;
  margin-top: 7px;
}

.contact-page .contact-form-content label > input:not([type="hidden"]),
.contact-page .contact-form-content label > textarea,
.contact-page .contact-form-content label > select {
  display: block;
  margin-top: 7px;
}

.contact-page .contact-form-content input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
.contact-page .contact-form-content textarea,
.contact-page .contact-form-content select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #bfc6cc;
  background: #fcfcfb;
  color: var(--newy-ink);
  font: inherit;
  font-weight: 300;
  line-height: 1.5;
}

.contact-page .contact-form-content input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):focus,
.contact-page .contact-form-content textarea:focus,
.contact-page .contact-form-content select:focus {
  border: 3px solid var(--newy-blue-readable);
  outline: 0;
  background: var(--newy-white);
  box-shadow: none;
}

.contact-page .contact-form-content textarea {
  height: 242px;
  min-height: 190px;
  padding: 12px;
  resize: vertical;
}

.contact-page .contact-form-content input[type="submit"],
.contact-page .contact-form-content button[type="submit"],
.contact-page .contact-form-content .contact-form button {
  justify-self: start;
  width: auto;
  margin-top: 3px;
  padding: 11px 20px;
  border: 0;
  background: var(--newy-blue);
  color: var(--newy-white);
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.contact-page .contact-form-content .contact-form > button {
  margin-top: 24px;
}

.contact-page .contact-form-content input[type="submit"]:hover,
.contact-page .contact-form-content button[type="submit"]:hover,
.contact-page .contact-form-content .contact-form button:hover {
  background: var(--newy-blue-dark);
}

.contact-page .contact-form-content .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: #a52323;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-page .contact-form-content .wpcf7-spinner {
  align-self: center;
  margin: 3px 0 0 12px;
}

.contact-page .contact-form-content .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 12px 14px;
  border-width: 1px;
  color: var(--newy-ink);
}

/* The cloned page currently starts with a legacy orphaned first-field label. */
.contact-page .contact-form-content--legacy > p:first-child {
  margin: 0 0 7px;
  color: var(--newy-ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.contact-page .contact-form-content--legacy > p:first-child + form > label:first-child > input {
  margin-top: 0;
}

/* Footer */
.site-footer {
  padding-top: 46px;
  background: var(--newy-night);
  color: #dce2e7;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 42px;
  padding-bottom: 40px;
}

.footer-wordmark {
  display: block;
  width: 230px;
  line-height: 0;
}

.footer-wordmark-flat {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 416 / 137;
}

.footer-wordmark-flat::before,
.footer-wordmark-flat::after {
  position: absolute;
  inset: 0;
  content: "";
  mask: url("assets/images/newy-original-logo.png") center / contain no-repeat;
  -webkit-mask: url("assets/images/newy-original-logo.png") center / contain no-repeat;
}

.footer-wordmark-flat::before {
  background: var(--newy-blue);
}

.footer-wordmark-flat::after {
  background: var(--newy-blue-bright);
  clip-path: inset(0 0 0 88%);
}

.footer-grid p {
  max-width: 530px;
  margin: 0;
  color: #9da7af;
  font-size: 0.82rem;
}

.footer-grid nav,
.footer-menu {
  display: flex;
  gap: 22px;
}

.footer-menu {
  flex-wrap: wrap;
}

.footer-grid nav a {
  color: #e9edf0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-block: 15px;
  color: #7f8a92;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

@media (min-width: 781px) {
  .police-panel {
    display: flex;
    flex-direction: column;
    background-color: #07102b;
    background-image: linear-gradient(rgb(7 16 43 / 52%), rgb(7 16 43 / 68%)), url("assets/images/police-lights-background.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  .topic-heading {
    margin-bottom: 0;
  }

  .police-layout {
    align-items: center;
    width: 100%;
    margin-block: auto;
  }

  .police-feature {
    height: 300px;
    min-height: 0;
  }

  .police-briefs {
    padding: 12px 18px;
    background: linear-gradient(90deg, rgb(4 13 38 / 82%), rgb(4 13 38 / 68%));
  }

  .weather-panel {
    display: flex;
    flex-direction: column;
    min-height: 410px;
  }

  .weather-links {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: auto;
  }
}

@media (min-width: 781px) and (max-width: 1199px) {
  .story-title,
  .latest-grid .story-title,
  .region-feature .story-title,
  .police-feature > span:last-child {
    font-size: 1.35rem;
    line-height: 1.2;
  }

  .lead-primary .story-title {
    font-size: 1.944rem;
    line-height: 1.2;
  }

  .lead-secondary .story-title {
    font-size: 1rem;
    line-height: 1.2;
  }
}

@media (max-width: 1160px) {
  .masthead {
    grid-template-columns: 1fr auto;
    padding: 14px 0 6px;
  }

  .header-ad-slot {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    width: min(100%, 728px);
    margin-bottom: 8px;
  }

  .header-actions {
    grid-column: 2;
  }
}

@media (max-width: 1050px) {
  .primary-nav a,
  .primary-nav button {
    padding-inline: 10px;
    font-size: 0.68rem;
  }

  .lead-mosaic {
    grid-template-columns: 1.5fr 1fr;
    height: 540px;
  }

  .regional-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-section {
    grid-template-columns: 1fr;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 24px;
  }

  .article-main {
    padding: 28px;
  }

  .article-hero {
    margin-inline: -28px;
  }

  .archive-card h2 {
    font-size: 1.2rem;
  }

  .weather-panel {
    min-height: 360px;
  }
}

@media (max-width: 780px) {
  .entry-content .newy-related-story__link,
  body#tinymce.mce-content-body .newy-related-story__link {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .newy-related-story__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .newy-related-story__body {
    padding: 21px 20px 22px;
  }

  .newy-related-story__title {
    font-size: clamp(1.7rem, 8vw, 2.15rem);
  }

  .newy-related-story__cta {
    margin-top: 18px;
  }

  body.admin-bar .site-header {
    --newy-admin-offset: 46px;
  }

  .page-shell {
    width: min(calc(100% - 28px), 680px);
  }

  .masthead {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 100px;
    padding: 10px 0 4px;
    column-gap: 6px;
    row-gap: 12px;
  }

  .header-ad-slot {
    margin-bottom: 4px;
  }

  .wordmark {
    grid-column: 1;
    grid-row: 1;
    width: min(46vw, 175px);
  }

  .header-actions {
    display: contents;
  }

  .masthead-date {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    font-size: 0.62rem;
    text-align: center;
  }

  .mobile-menu {
    display: block;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .primary-nav {
    display: none;
  }

  .search-popover-heading {
    align-items: center;
    padding: 18px;
  }

  .site-search-form {
    padding: 20px 18px;
  }

  .site-search-controls {
    grid-template-columns: 1fr;
  }

  .page-content {
    padding-block: 14px 50px;
  }

  .lead-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    min-height: 0;
  }

  .lead-primary,
  .lead-secondary {
    grid-area: auto;
    aspect-ratio: 0.82;
  }

  .lead-primary .story-title {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .lead-secondary .story-copy {
    padding: 22px;
  }

  .lead-secondary .story-title {
    font-size: 1.335rem;
    line-height: 1.2;
  }

  .latest-grid {
    grid-template-columns: 1fr;
  }

  .latest-grid .image-story,
  .region-feature {
    min-height: 0;
    aspect-ratio: 0.82;
  }

  .latest-grid .story-copy {
    padding: 22px;
  }

  .latest-grid .story-title,
  .region-feature .story-title,
  .police-feature > span:last-child {
    font-size: 1.1875rem;
  }

  .lead-mosaic .story-copy,
  .latest-grid .story-copy,
  .region-feature .story-copy {
    padding-bottom: 38px;
  }

  .regional-grid {
    grid-template-columns: 1fr;
  }

  .weather-radar-feature {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    aspect-ratio: 0.82;
  }

  .weather-radar-copy {
    min-height: 92px;
    padding: 14px 18px;
  }

  .topic-section {
    margin-top: 46px;
  }

  .newsletter-band {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .category-page,
  .article-page {
    padding-block: 18px 48px;
  }

  .category-title-band {
    padding: 22px;
  }

  .category-title-band h1 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }

  .archive-featured {
    grid-area: auto;
  }

  .archive-card img,
  .archive-card .story-image-placeholder,
  .archive-featured img,
  .archive-featured .story-image-placeholder {
    aspect-ratio: 1.08;
  }

  .archive-card > a > div {
    padding: 17px;
  }

  .archive-card h2,
  .archive-featured h2 {
    font-family: "Newy Text", "Arial Narrow", Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.18;
  }

  .article-breadcrumbs {
    overflow: hidden;
    white-space: nowrap;
  }

  .article-breadcrumbs span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-main,
  .article-recent {
    padding: 22px;
  }

  .article-title-block h1 {
    font-size: clamp(2.6rem, 12vw, 4.2rem);
    line-height: 1.02;
  }

  .article-byline > * + * {
    padding-left: 0;
    border-left: 0;
  }

  .article-hero {
    margin: 24px -22px 30px;
  }

  .article-hero figcaption {
    padding-inline: 22px;
  }

  .article-body {
    font-size: 1.04rem;
    line-height: 1.68;
  }

  .entry-content table {
    display: block;
    overflow-x: auto;
  }

  .entry-content .gallery[class*="gallery-columns-"] {
    --newy-gallery-columns: 2;
  }

  .entry-content .gallery-columns-1 {
    --newy-gallery-columns: 1;
  }

  .alignwide,
  .alignfull {
    width: calc(100vw - 28px);
  }

  .article-recent-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .article-recent-grid h3 {
    font-size: 1.15rem;
  }

  .article-sidebar {
    max-width: 680px;
  }

  .sidebar-story-list a {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .simple-page {
    padding-block: 34px 50px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 540px) {
  .wordmark {
    width: min(46vw, 175px);
  }

  .header-actions {
    gap: 4px;
  }

  .lead-primary {
    aspect-ratio: 0.78;
  }

  .lead-secondary {
    aspect-ratio: 0.82;
  }

  .lead-primary .story-copy {
    padding: 20px 20px 38px;
  }

  .story-category {
    border-left-width: 3px;
  }

  .section-heading {
    align-items: center;
  }

  .section-heading h2 {
    font-size: 2.5rem;
  }

  .section-heading > a {
    max-width: 88px;
    text-align: right;
  }

  .ad-slot small {
    max-width: 230px;
  }

  .police-panel {
    padding: 20px;
  }

  .topic-heading {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .topic-heading h2 {
    font-size: 2.45rem;
  }

  .topic-heading a {
    max-width: none;
    text-align: left;
  }

  .police-layout {
    grid-template-columns: 1fr;
  }

  .police-feature {
    min-height: 290px;
  }

  .weather-panel {
    min-height: 400px;
    padding: 24px;
  }

  .weather-links {
    right: 24px;
    bottom: 22px;
    left: 24px;
  }

  .newsletter-band {
    padding: 22px;
  }

  .footer-bottom {
    align-items: flex-start;
    gap: 8px;
  }

  .footer-bottom span:last-child {
    margin-inline-start: auto;
    text-align: right;
  }
}

@media (max-width: 370px) {
  .masthead {
    grid-template-columns: 1fr auto;
    column-gap: 10px;
  }

  .wordmark {
    grid-column: 1;
    grid-row: 2;
    width: min(48vw, 165px);
  }

  .masthead-date {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: end;
    font-size: 0.58rem;
    letter-spacing: 0.035em;
  }

  .mobile-menu {
    grid-column: 2;
    grid-row: 2;
  }

  .header-ad-slot {
    grid-row: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
