/*
Theme Name: EVnews
Description: Australian EV and hybrid editorial theme.
Version: 1.1.0
Requires PHP: 8.1
Text Domain: evnews
*/
:root {
  color-scheme: light;
  --ink: #14221b;
  --muted: #52645b;
  --accent: #00e676;
  --dark: #080c0a;
  --line: #dce7e0;
  --paper: #f6f8f5;
  --deep: #102b25;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #075d68; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #003f48; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #ec9800;
  outline-offset: 3px;
}
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 100; top: -100px; left: 16px; padding: 9px; background: white; }
.skip-link:focus { top: 8px; }
.site-header { background: var(--dark); color: white; border-top: 4px solid var(--accent); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; }
.brand img { display: block; max-width: 100%; height: auto; }
.tagline { font-size: 0.84rem; color: #bdcec5; letter-spacing: 0.025em; }
.primary-nav { border-top: 1px solid #253a33; background: #12231e; }
.nav-inner { display: flex; align-items: center; gap: 30px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.primary-nav a {
  display: inline-block;
  flex: none;
  padding: 12px 0 13px;
  border-bottom: 2px solid transparent;
  color: #e7eee9;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
}
.primary-nav a:hover, .primary-nav a:focus-visible { color: white; border-bottom-color: var(--accent); }
.eyebrow { font-size: 0.73rem; letter-spacing: 0.11em; text-transform: uppercase; font-weight: 800; color: #28636a; }
.eyebrow a { color: inherit; }
.home-main { padding-block: 58px 90px; }
.section-heading { border-bottom: 1px solid var(--line); margin-bottom: 25px; padding-bottom: 28px; }
.section-heading .eyebrow { margin: 0 0 8px; }
.section-heading h1 { margin: 0; font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 1.05; letter-spacing: -0.055em; }
.section-dek { max-width: 670px; margin: 13px 0 0; color: var(--muted); font-size: 1.15rem; }
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.story { display: flex; flex-direction: column; min-width: 0; background: white; border: 1px solid var(--line); }
.story--no-thumb { grid-template-columns: 1fr; }
.story:not(.story--lead) { border-top: 3px solid var(--deep); }
.story-media { display: block; overflow: hidden; }
.story-media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 220ms ease; }
.story-media:hover img { transform: scale(1.025); }
.story-body { display: flex; flex: 1; flex-direction: column; padding: 26px; }
.story-body .eyebrow { margin: 0 0 13px; }
.story h2 { font-size: clamp(1.28rem, 2vw, 1.58rem); line-height: 1.2; letter-spacing: -0.025em; margin: 0; }
.story h2 a { color: var(--ink); text-decoration: none; }
.story h2 a:hover { color: #075d68; text-decoration: underline; }
.story-body > p:not(.eyebrow) { color: var(--muted); margin: 13px 0 20px; line-height: 1.6; }
.read-more { display: inline-block; align-self: flex-start; margin-top: auto; font-weight: 800; font-size: 0.88rem; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 3px; }
.read-more:hover { border-bottom-color: currentColor; }
.story--lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  min-height: 390px;
  background: var(--deep);
  border: 0;
  color: white;
  overflow: hidden;
}
.story--lead .story-body { grid-column: 1; grid-row: 1; justify-content: center; padding: clamp(30px, 5vw, 66px); position: relative; z-index: 1; }
.story--lead .story-media, .story--lead .story-visual { grid-column: 2; grid-row: 1; }
.story--lead .eyebrow { color: #a6e7cd; }
.story--lead .eyebrow a { color: inherit; }
.story--lead h2 { font-size: clamp(2rem, 3.5vw, 3.3rem); letter-spacing: -0.045em; line-height: 1.1; }
.story--lead h2 a, .story--lead h2 a:hover { color: white; }
.story--lead .story-body > p:not(.eyebrow) { color: #c6dbcf; font-size: 1.04rem; margin-block: 18px 27px; }
.story--lead .read-more { color: var(--accent); }
.story--lead .story-media img { height: 100%; aspect-ratio: auto; object-fit: cover; }
.story-visual {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 42px;
  background: radial-gradient(circle at 70% 24%, #25473b 0%, #142b24 39%, #0b1c17 80%);
  overflow: hidden;
  position: relative;
}
.story-visual::before, .story-visual::after { content: ""; position: absolute; border: 1px solid #4aa87b; opacity: 0.3; border-radius: 50%; }
.story-visual::before { width: 420px; height: 420px; top: -250px; right: -150px; }
.story-visual::after { width: 500px; height: 500px; top: -285px; right: -225px; }
.visual-mark { color: var(--accent); font-size: clamp(3.5rem, 6.5vw, 7rem); font-weight: 900; letter-spacing: -0.085em; line-height: 1; }
.visual-mark span { color: white; font-weight: 500; letter-spacing: -0.075em; }
.visual-line { width: 100%; height: 1px; background: #54836b; margin: 20px 0 13px; }
.visual-label { color: #c3d8c9; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.explore-panel { margin-top: 34px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 55px; padding: 34px 40px; background: #eaf1ea; border-top: 3px solid var(--accent); }
.explore-panel .eyebrow { margin: 0; }
.explore-panel h2 { font-size: 1.6rem; letter-spacing: -0.035em; margin: 4px 0 0; }
.explore-panel h3 { font-size: 0.9rem; margin: 0 0 13px; }
.explore-panel p { color: var(--muted); margin: 8px 0 16px; }
.topic-list ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.topic-list a { display: inline-block; background: white; border: 1px solid #cbdcd1; border-radius: 3px; padding: 6px 12px; text-decoration: none; font-size: 0.84rem; font-weight: 700; }
.search-form label { display: block; font-weight: 700; font-size: 0.83rem; margin-bottom: 5px; }
.search-row { display: flex; max-width: 440px; }
.search-row input { min-width: 0; width: 100%; border: 1px solid #80988a; border-radius: 3px 0 0 3px; padding: 10px 12px; font: inherit; background: white; }
.search-row button { border: 0; background: var(--dark); color: white; padding: 0 18px; font-weight: 700; cursor: pointer; }
.search-row button:hover { background: #284238; }
.navigation.pagination { margin-top: 30px; }
.page-numbers { display: inline-block; padding: 5px 10px; }
.page-numbers.current { background: var(--deep); color: white; }
.prelaunch-tagline { font-size: 1.5rem; font-weight: 800; }
.article-wrap { max-width: 804px; padding-block: 46px 100px; }
.back-link { display: inline-block; color: var(--muted); font-size: 0.87rem; text-decoration: none; font-weight: 700; margin-bottom: 34px; }
.back-link:hover { color: var(--ink); text-decoration: underline; }
.article-header { padding-bottom: 30px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.article-header .eyebrow { margin: 0 0 12px; }
.article h1 { font-size: clamp(2.55rem, 5.2vw, 4.5rem); line-height: 1.07; letter-spacing: -0.05em; margin: 0; }
.standfirst { font-size: clamp(1.1rem, 2vw, 1.32rem); line-height: 1.55; color: var(--muted); margin: 22px 0 0; }
.article-content { font-size: 1.08rem; line-height: 1.78; }
.article-content p { margin: 0 0 1.35em; }
.article-content h2 { font-size: clamp(1.5rem, 2.5vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.25; margin: 2em 0 0.65em; }
.article-content h3 { font-size: 1.25rem; line-height: 1.3; margin-top: 1.7em; }
.article-content img { max-width: 100%; height: auto; }
.article-content blockquote { border-left: 3px solid var(--accent); margin: 30px 0; padding: 4px 22px; background: #edf5ed; }
.article-content :is(ul, ol) { padding-left: 1.5em; }
.article-content li { margin-bottom: 0.5em; }
.evnews-inline-image { margin: 30px 0; }
.evnews-inline-image img { display: block; width: 100%; }
.evnews-inline-image figcaption { font-size: 0.8rem; line-height: 1.5; color: var(--muted); padding-top: 8px; }
.hero-image figcaption { font-size: 0.8rem; line-height: 1.5; color: var(--muted); padding-top: 8px; }
.image-credit { display: block; }
.hero-image { margin: 0 0 34px; }
.hero-image img { display: block; width: 100%; height: auto; }
.source { border-top: 1px solid var(--line); padding: 20px 0; margin-top: 55px; font-size: 0.92rem; }
.site-footer { background: var(--dark); color: white; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; padding-block: 30px; font-size: 0.81rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: white; text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }
/* Static pages continue to use the same restrained reading measure. */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 55px; padding-block: 55px 90px; }
.layout .content h1 { font-size: clamp(2.3rem, 4vw, 3.6rem); line-height: 1.1; letter-spacing: -0.04em; }
.sidebar { border-top: 3px solid var(--accent); padding-top: 12px; }
.sidebar h2 { font-size: 1.2rem; }
.sidebar p { color: var(--muted); }
.sidebar ul { list-style: none; padding: 0; }
.sidebar li { border-top: 1px solid var(--line); padding: 9px 0; }
.nav-links { display: flex; gap: 16px; margin-top: 24px; }
@media (max-width: 900px) {
  .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story--lead { grid-column: 1 / -1; }
  .layout { gap: 30px; }
}
@media (max-width: 650px) {
  .wrap { width: min(100% - 32px, 1180px); }
  .masthead { padding-block: 16px; }
  .brand img { width: 174px; }
  .tagline { display: none; }
  .nav-inner { flex-wrap: wrap; gap: 0 17px; overflow: visible; white-space: normal; padding-block: 3px; }
  .primary-nav a { font-size: 0.78rem; padding-block: 6px; }
  .home-main { padding-block: 36px 65px; }
  .section-heading { padding-bottom: 22px; margin-bottom: 18px; }
  .section-heading h1 { font-size: 2.8rem; }
  .section-dek { font-size: 1rem; }
  .stories { grid-template-columns: 1fr; gap: 15px; }
  .story { grid-column: 1; }
  .story-body { padding: 23px; }
  .story--lead { min-height: 0; display: block; }
  .story--lead .story-body { padding: 30px 25px; }
  .story--lead h2 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  .story--lead .story-visual { display: none; }
  .story--lead .story-media img { max-height: 240px; }
  .explore-panel { grid-template-columns: 1fr; padding: 26px 24px; gap: 25px; }
  .layout { display: block; padding-block: 35px 70px; }
  .sidebar { margin-top: 40px; }
  .article-wrap { padding-block: 35px 70px; }
  .article h1 { font-size: clamp(2.3rem, 10vw, 3.2rem); }
  .article-content { font-size: 1.02rem; }
  .footer-inner { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .story-media img { transition: none; }
}
