/*
Theme Name: GiroF1 5.6
Theme URI: https://girof1.com/
Author: GiroF1
Description: Tema editorial claro, responsivo e exclusivo para Fórmula 1.
Version: 2.6.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: girof1
*/

:root {
  --giro-red: #e10600;
  --giro-red-dark: #b40400;
  --giro-ink: #111318;
  --giro-text: #3f454d;
  --giro-muted: #737a84;
  --giro-line: #e7e9ec;
  --giro-soft: #f5f6f7;
  --giro-soft-2: #fafafa;
  --giro-white: #ffffff;
  --giro-max: 1240px;
  --giro-radius: 12px;
  --giro-shadow: 0 10px 30px rgba(17, 19, 24, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--giro-white);
  color: var(--giro-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--giro-red); }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }

.site-shell { display: block; }
.site-main { display: block; }
.container { width: min(calc(100% - 40px), var(--giro-max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.98);
  border-top: 4px solid var(--giro-red);
  border-bottom: 1px solid var(--giro-line);
  backdrop-filter: blur(12px);
}
.header-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: 190px minmax(0,1fr) 90px;
  align-items: center;
  gap: 28px;
}
.site-branding { display: flex; align-items: center; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo-link img { max-height: 44px; width: auto; max-width: 180px; object-fit: contain; }
.brand-text {
  display: inline-flex;
  align-items: baseline;
  font-size: 38px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -3px;
}
.brand-text span { color: var(--giro-red); }
.primary-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.primary-nav a {
  position: relative;
  display: block;
  padding: 29px 0 27px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: -.08px;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  background: var(--giro-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.primary-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #dfe2e6;
  border-radius: 999px;
  background: #fff;
  color: var(--giro-ink);
  cursor: pointer;
  transition: .18s ease;
}
.icon-button:hover { border-color: #c9cdd3; background: var(--giro-soft); }
.mobile-toggle { display: none; }
.search-panel {
  display: none;
  border-top: 1px solid var(--giro-line);
  padding: 14px 0;
  background: #fff;
}
.search-panel.is-open { display: block; }
.search-form { display: flex; gap: 10px; }
.search-field {
  flex: 1;
  min-width: 0;
  border: 1px solid #d6d9de;
  border-radius: 9px;
  padding: 12px 14px;
  outline: none;
}
.search-field:focus { border-color: var(--giro-red); box-shadow: 0 0 0 3px rgba(225,6,0,.08); }
.search-submit, .button-red {
  border: 0;
  border-radius: 9px;
  background: var(--giro-red);
  color: #fff;
  padding: 12px 18px;
  font-weight: 850;
  cursor: pointer;
}
.search-submit:hover, .button-red:hover { background: var(--giro-red-dark); color: #fff; }

/* Ads: only shown when a widget/ad is actually configured */
.ad-slot-active { margin-top: 24px; margin-bottom: 6px; }
.ad-slot-active .widget { margin: 0; }

/* Home common */
.home-section { padding: 34px 0; }
.hero-section { padding-top: 30px; }
.section-head { margin-bottom: 18px; }
.section-head-strong {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 18px;
}
.section-head-inline,
.season-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--giro-red);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .13em;
}
.section-title {
  margin: 0;
  color: var(--giro-ink);
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -1.25px;
}
.section-rule { height: 1px; background: var(--giro-line); margin-bottom: 4px; }
.section-link {
  flex: 0 0 auto;
  color: var(--giro-red);
  font-size: 12px;
  font-weight: 900;
}
.section-link span { margin-left: 3px; }
.post-kicker {
  display: inline-flex;
  align-items: center;
  color: var(--giro-red);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 9px;
  font-weight: 950;
}
.post-meta { color: var(--giro-muted); font-size: 11px; font-weight: 700; }

/* Hero */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.82fr) minmax(300px, .82fr);
  gap: 14px;
}
.hero-main,
.hero-small {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #e9ebed;
  color: #fff;
  isolation: isolate;
}
.hero-main { min-height: 460px; }
.hero-side { display: grid; grid-template-rows: repeat(2, 1fr); gap: 14px; }
.hero-small { min-height: 223px; }
.hero-image { position: absolute; inset: 0; z-index: 0; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.hero-main:hover .hero-image img,
.hero-small:hover .hero-image img { transform: scale(1.025); }
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,12,15,.02) 10%, rgba(10,12,15,.16) 48%, rgba(10,12,15,.91) 100%);
}
.hero-content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 30px; }
.hero-small .hero-content { padding: 18px; }
.hero-main .post-kicker,
.hero-small .post-kicker { color: #ff5b56; }
.hero-title {
  margin: 8px 0 0;
  max-width: 870px;
  font-size: clamp(36px, 4vw, 54px);
  line-height: .98;
  font-weight: 950;
  letter-spacing: -2.2px;
}
.hero-small .hero-title { font-size: 20px; line-height: 1.07; letter-spacing: -.55px; }
.hero-title a:hover { color: #fff; opacity: .9; }
.hero-meta { margin-top: 11px; color: rgba(255,255,255,.72); font-size: 11px; font-weight: 650; }

/* News feed */
.news-list { border-top: 1px solid var(--giro-line); }
.news-row {
  display: grid;
  grid-template-columns: 270px minmax(0,1fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--giro-line);
}
.news-thumb {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 9px;
  background: var(--giro-soft);
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.news-row:hover .news-thumb img,
.news-card:hover .news-thumb img { transform: scale(1.025); }
.news-content { align-self: center; min-width: 0; }
.news-title {
  margin: 6px 0 7px;
  font-size: clamp(21px, 2.1vw, 28px);
  line-height: 1.09;
  letter-spacing: -.75px;
  font-weight: 920;
}
.news-excerpt { max-width: 760px; margin: 0 0 9px; color: var(--giro-text); font-size: 14px; line-height: 1.55; }

/* Season */
.season-section { padding-top: 38px; }
.season-intro { max-width: 430px; margin: 0; color: var(--giro-muted); font-size: 13px; text-align: right; }
.f1-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.f1-card {
  position: relative;
  min-height: 190px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--giro-line);
  border-top: 4px solid var(--giro-red);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(17,19,24,.045);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.f1-card:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: var(--giro-shadow);
  border-color: #d9dce1;
  border-top-color: var(--giro-red);
}
.f1-index {
  margin-top: -2px;
  color: #d6d9de;
  font-size: 29px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -1.4px;
}
.f1-card-body strong { display: block; margin-top: 9px; font-size: 22px; line-height: 1.08; letter-spacing: -.65px; }
.f1-card-body p { margin: 8px 0 0; color: var(--giro-text); font-size: 13px; line-height: 1.5; }
.f1-arrow {
  align-self: end;
  justify-self: end;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--giro-soft);
  color: var(--giro-red);
  font-weight: 950;
  transition: .18s ease;
}
.f1-card:hover .f1-arrow { background: var(--giro-red); color: #fff; }

/* More cards */
.more-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.news-card { overflow: hidden; border: 1px solid var(--giro-line); border-radius: 10px; background: #fff; }
.news-card .news-thumb { border-radius: 0; }
.news-card-content { padding: 16px; }
.news-card .news-title { font-size: 19px; line-height: 1.12; margin-bottom: 8px; }

/* Empty state */
.empty-card {
  padding: 34px 28px;
  border: 1px solid var(--giro-line);
  border-radius: 10px;
  background: var(--giro-soft-2);
  text-align: center;
}
.empty-card h2 { margin: 10px 0 8px; font-size: 25px; letter-spacing: -.8px; }
.empty-card p { margin: 0; color: var(--giro-muted); }
.empty-mark { display: inline-flex; font-size: 28px; font-weight: 950; letter-spacing: -2px; }
.empty-mark span { color: var(--giro-red); }

/* Footer — intentionally light to keep the full template bright */
.site-footer {
  margin-top: 38px;
  border-top: 1px solid var(--giro-line);
  background: #f5f6f7;
  color: var(--giro-ink);
}
.footer-main {
  padding: 36px 0 28px;
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 36px;
}
.footer-brand .brand-text { font-size: 30px; }
.footer-brand p { max-width: 390px; margin: 13px 0 0; color: var(--giro-text); font-size: 13px; }
.footer-title { margin: 0 0 13px; color: var(--giro-muted); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .11em; }
.footer-menu { display: grid; gap: 7px; list-style: none; padding: 0; margin: 0; color: #2f343a; font-size: 12px; }
.footer-bottom { border-top: 1px solid #dfe2e5; padding: 14px 0; color: var(--giro-muted); font-size: 11px; }

/* Internal pages */
.content-wrap { padding: 40px 0; }
.content-grid { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 38px; }
.article-header { margin-bottom: 24px; }
.article-title { margin: 8px 0 12px; font-size: clamp(34px,5vw,58px); line-height: 1.03; letter-spacing: -1.8px; }
.article-excerpt { margin: 0 0 14px; color: var(--giro-text); font-size: 20px; }
.article-featured { overflow: hidden; margin: 24px 0 28px; border-radius: 12px; }
.entry-content { color: #252a30; font-size: 18px; }
.entry-content p { margin: 0 0 1.3em; }
.entry-content h2, .entry-content h3 { color: var(--giro-ink); line-height: 1.15; }
.sidebar-box { margin-bottom: 20px; padding: 18px; border: 1px solid var(--giro-line); border-radius: 10px; }
.archive-header { margin-bottom: 26px; }
.pagination { margin-top: 28px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { padding: 8px 12px; border: 1px solid var(--giro-line); border-radius: 8px; }
.page-numbers.current { border-color: var(--giro-red); background: var(--giro-red); color: #fff; }
.button-outline { display: inline-flex; padding: 11px 18px; border: 1px solid #cfd3d8; border-radius: 9px; background: #fff; font-weight: 850; }
.button-outline:hover { border-color: var(--giro-red); }

@media (max-width: 980px) {
  .header-row { min-height: 72px; grid-template-columns: auto 1fr auto; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 76px; padding: 12px 18px 18px; border-bottom: 1px solid var(--giro-line); background: #fff; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-nav a { padding: 11px 4px; }
  .primary-nav a::after { display: none; }
  .mobile-toggle { display: inline-grid; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { min-height: 430px; }
  .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .hero-small { min-height: 220px; }
  .f1-grid { grid-template-columns: 1fr; }
  .more-grid { grid-template-columns: repeat(2,1fr); }
  .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 24px), var(--giro-max)); }
  .site-header { border-top-width: 3px; }
  .header-row { min-height: 62px; gap: 10px; }
  .custom-logo-link img { max-height: 34px; max-width: 145px; }
  .brand-text { font-size: 30px; letter-spacing: -2.4px; }
  .primary-nav { top: 65px; }
  .icon-button { width: 38px; height: 38px; }
  .home-section { padding: 26px 0; }
  .hero-section { padding-top: 23px; }
  .section-head-strong { gap: 12px; }
  .section-head-inline,
  .season-heading { align-items: flex-start; }
  .season-intro { display: none; }
  .section-title { font-size: 26px; }
  .hero-main { min-height: 370px; }
  .hero-side { grid-template-columns: 1fr; }
  .hero-small { min-height: 205px; }
  .hero-content { padding: 21px; }
  .hero-title { font-size: 32px; letter-spacing: -1.35px; }
  .hero-small .hero-title { font-size: 20px; }
  .hero-meta { display: none; }
  .news-row { grid-template-columns: 118px minmax(0,1fr); gap: 13px; padding: 15px 0; }
  .news-title { margin-top: 4px; font-size: 17px; line-height: 1.1; }
  .news-excerpt { display: none; }
  .f1-card { min-height: 155px; grid-template-columns: auto 1fr; }
  .f1-arrow { position: absolute; right: 16px; bottom: 16px; }
  .more-grid, .footer-main { grid-template-columns: 1fr; }
  .footer-main { gap: 24px; }
  .article-title { font-size: 38px; }
  .article-excerpt { font-size: 18px; }
}

/* GiroF1 4.5 — refined professional article experience */
.article-shell { padding: 30px 0 8px; }
.article-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--giro-muted);
  font-size: 12px;
  font-weight: 700;
}
.article-breadcrumb a:hover { color: var(--giro-red); }
.article-breadcrumb strong { color: var(--giro-ink); }
.article-hero-header { max-width: 1030px; margin-bottom: 28px; }
.article-hero-header .post-kicker { font-size: 10px; }
.article-hero-header .article-title {
  max-width: 1020px;
  margin: 10px 0 15px;
  font-size: clamp(42px, 5.7vw, 72px);
  line-height: .98;
  letter-spacing: -3px;
  font-weight: 950;
}
.article-hero-header .article-excerpt {
  max-width: 900px;
  margin: 0 0 23px;
  color: #555c66;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.42;
}
.article-byline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 17px;
  border-top: 1px solid var(--giro-line);
}
.article-byline { display: flex; align-items: center; gap: 11px; }
.article-author-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--giro-ink);
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: -.5px;
}
.article-byline strong { display: block; font-size: 13px; }
.article-byline span:not(.article-author-mark) { display: block; margin-top: 2px; color: var(--giro-muted); font-size: 11px; }
.article-share { display: flex; align-items: center; gap: 7px; }
.article-share a,
.article-share button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe2e6;
  border-radius: 50%;
  background: #fff;
  color: var(--giro-ink);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.article-share a:hover,
.article-share button:hover { border-color: var(--giro-red); color: var(--giro-red); }
.article-featured {
  overflow: hidden;
  margin: 0 0 34px;
  border-radius: 12px;
  background: var(--giro-soft);
}
.article-featured img { width: 100%; max-height: 720px; object-fit: cover; }
.article-featured figcaption { padding: 9px 3px 0; color: var(--giro-muted); font-size: 11px; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 790px) minmax(260px, 330px);
  justify-content: space-between;
  gap: 54px;
}
.article-body { min-width: 0; }
.article-ai-disclosure {
  margin: 0 0 18px;
  padding: 10px 12px;
  border-left: 3px solid var(--giro-red);
  background: var(--giro-soft);
  color: var(--giro-muted);
  font-size: 12px;
}
.entry-content {
  color: #272c33;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.74;
}
.entry-content > p:first-child::first-letter {
  float: left;
  margin: 7px 8px 0 0;
  color: var(--giro-red);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 56px;
  line-height: .78;
  font-weight: 950;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 1.6em;
  margin-bottom: .55em;
  color: var(--giro-ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 950;
  letter-spacing: -.8px;
}
.entry-content h2 { font-size: 30px; }
.entry-content h3 { font-size: 24px; }
.entry-content blockquote {
  margin: 30px 0;
  padding: 8px 0 8px 22px;
  border-left: 4px solid var(--giro-red);
  color: var(--giro-ink);
  font-size: 22px;
  line-height: 1.5;
  font-style: italic;
}
.entry-content a { color: var(--giro-red); text-decoration: underline; text-underline-offset: 2px; }
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--giro-line); }
.article-tags > span { color: var(--giro-muted); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.article-tags a { padding: 7px 10px; border-radius: 999px; background: var(--giro-soft); font-size: 11px; font-weight: 800; }
.article-tags a:hover { background: var(--giro-red); color: #fff; }
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.article-nav > div:last-child { text-align: right; }
.article-nav a { display: block; padding: 16px; border: 1px solid var(--giro-line); border-radius: 9px; }
.article-nav a:hover { border-color: #cfd3d8; color: inherit; }
.article-nav span { display: block; margin-bottom: 5px; color: var(--giro-red); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.article-nav strong { display: block; font-size: 13px; line-height: 1.25; }
.article-aside { min-width: 0; }
.sidebar-brand-box { margin: 0 0 24px; padding: 22px; border-top: 4px solid var(--giro-red); background: var(--giro-soft-2); }
.sidebar-brand-box h3 { margin: 7px 0 8px; font-size: 22px; line-height: 1.05; letter-spacing: -.65px; }
.sidebar-brand-box p { margin: 0; color: var(--giro-text); font-size: 12px; line-height: 1.5; }
.sidebar-latest { border-top: 1px solid var(--giro-line); }
.sidebar-heading { margin-bottom: 4px; padding: 14px 0 10px; font-size: 16px; font-weight: 950; }
.sidebar-heading span { display: inline-block; padding-bottom: 7px; border-bottom: 3px solid var(--giro-red); }
.sidebar-story { display: grid; grid-template-columns: 102px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--giro-line); }
.sidebar-story-thumb { overflow: hidden; aspect-ratio: 16/10; border-radius: 7px; background: var(--giro-soft); }
.sidebar-story-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-story h4 { margin: 4px 0 0; font-size: 13px; line-height: 1.15; letter-spacing: -.2px; }
.article-ad-widgets { margin-top: 24px; }
.article-ad-widgets .widget { margin-bottom: 18px; }

@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; gap: 34px; }
  .article-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .sidebar-brand-box { margin-bottom: 0; }
}

@media (max-width: 720px) {
  .article-shell { padding-top: 20px; }
  .article-breadcrumb { margin-bottom: 24px; }
  .article-hero-header .article-title { font-size: 40px; letter-spacing: -1.7px; }
  .article-hero-header .article-excerpt { font-size: 18px; }
  .article-byline-row { align-items: flex-start; flex-direction: column; gap: 14px; }
  .article-featured { border-radius: 8px; }
  .entry-content { font-size: 18px; line-height: 1.68; }
  .entry-content > p:first-child::first-letter { font-size: 50px; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav > div:last-child { text-align: left; }
  .article-aside { grid-template-columns: 1fr; }
}


/* GiroF1 4.5 refinements */
.article-hero-header { max-width: 1100px; }
.article-hero-header .article-title { max-width: 1080px; }
.article-featured {
  position: relative;
  aspect-ratio: 16 / 8.8;
  min-height: 360px;
  background: #eef0f2;
  box-shadow: inset 0 0 0 1px rgba(17,19,24,.035);
}
.article-featured img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}
.article-featured figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  width: fit-content;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(17,19,24,.80);
  color: rgba(255,255,255,.86);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  backdrop-filter: blur(6px);
}
.article-layout {
  grid-template-columns: minmax(0, 820px) minmax(285px, 340px);
  gap: 60px;
}
.entry-content {
  color: #30353c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.78;
}
.entry-content p { margin: 0 0 1.5em; }
.entry-content > p:first-child::first-letter { display: none; float: none; margin: 0; font-size: inherit; }
.entry-content h2 {
  margin-top: 1.7em;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -1.1px;
}
.entry-content h3 { font-size: 25px; }
.entry-content figure,
.entry-content .wp-block-image { margin: 30px 0; }
.entry-content figure img,
.entry-content .wp-block-image img {
  width: 100%;
  border-radius: 10px;
  background: var(--giro-soft);
}
.entry-content figcaption,
.entry-content .wp-element-caption {
  margin-top: 8px;
  color: var(--giro-muted);
  font-size: 11px;
  line-height: 1.45;
}
.article-aside {
  align-self: start;
  position: sticky;
  top: 104px;
}
.sidebar-brand-box {
  border: 1px solid var(--giro-line);
  border-top: 4px solid var(--giro-red);
  box-shadow: 0 10px 28px rgba(17,19,24,.045);
}
.sidebar-latest {
  padding-top: 4px;
  border-top: 0;
}
.sidebar-heading {
  margin-bottom: 0;
  border-top: 1px solid var(--giro-line);
}
.sidebar-story { grid-template-columns: 116px 1fr; gap: 13px; }
.sidebar-story h4 { font-size: 14px; line-height: 1.18; }
.article-share a,
.article-share button { transition: .16s ease; }
.article-share a:hover,
.article-share button:hover { transform: translateY(-1px); }

@media (max-width: 980px) {
  .article-aside { position: static; top: auto; }
  .article-featured { min-height: 300px; }
}

@media (max-width: 720px) {
  .article-featured { min-height: 220px; aspect-ratio: 16 / 10; }
  .entry-content { font-size: 17px; line-height: 1.72; }
  .entry-content h2 { font-size: 27px; }
}


/* GiroF1 4.6 — limpeza de mídia quebrada no corpo das matérias */
.entry-content img.giro-content-image-broken {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.entry-content .giro-broken-media {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.entry-content .wp-block-spacer {
  height: 28px !important;
  min-height: 0 !important;
}
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }

/* Um pouco mais de ritmo editorial entre títulos e texto */
.entry-content h2 + p,
.entry-content h3 + p { margin-top: 0; }
.entry-content p + h2,
.entry-content p + h3 { margin-top: 2.05em; }

@media (max-width: 720px) {
  .entry-content .wp-block-spacer { height: 20px !important; }
}

/* GiroF1 4.7 — hub da temporada 2026 */
.f1-page { padding: 56px 0 76px; }
.f1-page-hero { max-width: 900px; margin: 0 0 42px; }
.f1-page-hero.compact { margin-bottom: 34px; }
.f1-page-hero h1 { margin: 6px 0 12px; font-size: clamp(42px, 6vw, 72px); line-height: .96; letter-spacing: -3px; font-weight: 950; }
.f1-page-hero p { max-width: 760px; margin: 0; color: var(--giro-text); font-size: 18px; line-height: 1.6; }
.f1-data-note { margin: 30px 0 0; padding-top: 16px; border-top: 1px solid var(--giro-line); color: var(--giro-muted); font-size: 11px; line-height: 1.55; }

.next-race-banner { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 28px; margin-bottom: 30px; padding: 28px 30px; border-radius: 14px; background: var(--giro-ink); color: #fff; overflow: hidden; position: relative; }
.next-race-banner::after { content:""; position:absolute; right:-70px; top:-120px; width:300px; height:300px; background:var(--giro-red); transform:rotate(24deg); opacity:.28; }
.next-race-banner > * { position: relative; z-index:1; }
.next-race-round { color: #aeb3bb; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.next-race-round strong { display:block; margin-top:5px; color:#fff; font-size:36px; line-height:1; }
.next-race-main { display:flex; gap:16px; align-items:center; }
.race-flag { font-size: 34px; }
.next-race-country { color:#ff6965; font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:.08em; }
.next-race-main h2 { margin:3px 0 4px; font-size:28px; line-height:1.05; letter-spacing:-.8px; }
.next-race-main p { margin:0; color:#c7cbd1; font-size:12px; }
.next-race-date { min-width:140px; text-align:right; font-size:27px; font-weight:950; letter-spacing:-1px; }
.next-race-date small { display:block; color:#aeb3bb; font-size:10px; letter-spacing:.08em; }

.calendar-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.race-card { position:relative; min-height:255px; padding:20px; border:1px solid var(--giro-line); border-radius:12px; background:#fff; transition:.18s ease; }
.race-card:hover { transform:translateY(-2px); border-color:#cfd3d8; box-shadow:var(--giro-shadow); }
.race-next { border-color:var(--giro-red); box-shadow:0 12px 34px rgba(225,6,0,.08); }
.race-card-top { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.race-round { color:var(--giro-muted); font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:.08em; }
.race-status { padding:5px 7px; border-radius:999px; background:var(--giro-soft); color:var(--giro-muted); font-size:9px; font-weight:900; text-transform:uppercase; }
.race-status-next { background:var(--giro-red); color:#fff; }
.race-card-country { display:flex; align-items:center; gap:8px; margin-top:24px; color:var(--giro-red); font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:.06em; }
.race-card-country span { font-size:19px; }
.race-card h2 { margin:7px 0 7px; font-size:22px; line-height:1.05; letter-spacing:-.65px; }
.race-venue { margin:0; color:var(--giro-muted); font-size:12px; line-height:1.45; }
.race-card-bottom { position:absolute; left:20px; right:20px; bottom:18px; display:flex; align-items:flex-end; justify-content:space-between; gap:10px; padding-top:13px; border-top:1px solid var(--giro-line); }
.race-card-bottom strong { font-size:13px; }
.race-card-bottom span { color:var(--giro-muted); font-size:9px; text-align:right; }

.standings-jump { display:flex; gap:8px; margin-top:22px; }
.standings-jump a { padding:9px 13px; border:1px solid var(--giro-line); border-radius:999px; font-size:11px; font-weight:900; }
.standings-jump a:hover { border-color:var(--giro-red); background:var(--giro-red); color:#fff; }
.standings-block { scroll-margin-top:110px; margin-top:52px; }
.f1-section-title { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; margin-bottom:18px; padding-bottom:13px; border-bottom:2px solid var(--giro-ink); }
.f1-section-title h2 { margin:2px 0 0; font-size:34px; line-height:1; letter-spacing:-1.3px; }
.f1-section-title > span { color:var(--giro-muted); font-size:10px; font-weight:800; text-transform:uppercase; }
.podium-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:18px; }
.podium-card { position:relative; min-height:210px; padding:22px; border:1px solid var(--giro-line); border-radius:12px; background:linear-gradient(145deg,#fff 58%,#f5f6f7 58%); overflow:hidden; }
.podium-card::after { content:""; position:absolute; right:-36px; bottom:-45px; width:120px; height:120px; border:18px solid rgba(225,6,0,.06); transform:rotate(25deg); }
.podium-pos { position:absolute; top:18px; right:18px; color:#d9dce0; font-size:34px; font-weight:950; }
.podium-code { display:inline-block; margin-bottom:28px; padding-bottom:5px; border-bottom:3px solid var(--giro-red); font-size:12px; font-weight:950; letter-spacing:.08em; }
.podium-card h3 { margin:0 0 3px; font-size:24px; line-height:1.04; letter-spacing:-.7px; }
.podium-card p { margin:0 0 18px; color:var(--giro-muted); font-size:11px; }
.podium-card > strong { font-size:25px; }
.podium-card > strong small { font-size:9px; letter-spacing:.08em; }
.standings-table-wrap { overflow-x:auto; border:1px solid var(--giro-line); border-radius:12px; }
.standings-table { width:100%; border-collapse:collapse; background:#fff; font-size:13px; }
.standings-table th { padding:12px 16px; background:var(--giro-soft); color:var(--giro-muted); font-size:9px; text-align:left; text-transform:uppercase; letter-spacing:.08em; }
.standings-table td { padding:14px 16px; border-top:1px solid var(--giro-line); vertical-align:middle; }
.standings-table tbody tr:hover { background:#fcfcfc; }
.standings-table td:nth-child(1), .standings-table th:nth-child(1) { width:60px; }
.standings-table td:last-child, .standings-table th:last-child { text-align:right; }
.standings-table td strong { display:inline-block; margin-right:8px; }
.standings-table td small { color:var(--giro-red); font-weight:900; }
.standings-pos { font-weight:950; }
.standings-flag { margin-right:7px; }
.standings-points { font-size:16px; font-weight:950; }
.constructors-block { margin-top:62px; }
.constructors-list { border-top:1px solid var(--giro-line); }
.constructor-row { display:grid; grid-template-columns:58px 70px 1fr auto; gap:18px; align-items:center; padding:18px 4px; border-bottom:1px solid var(--giro-line); }
.constructor-pos { color:#c8ccd1; font-size:28px; font-weight:950; }
.constructor-code { color:var(--giro-red); font-size:11px; font-weight:950; }
.constructor-row h3 { margin:0 0 3px; font-size:19px; }
.constructor-row p { margin:0; color:var(--giro-muted); font-size:11px; }
.constructor-row > strong { font-size:22px; }
.constructor-row > strong small { color:var(--giro-muted); font-size:9px; }

.drivers-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.driver-card { min-height:270px; padding:18px; border:1px solid var(--giro-line); border-radius:12px; background:#fff; overflow:hidden; position:relative; }
.driver-card-top { border-top:3px solid var(--giro-red); }
.driver-card-head { display:flex; align-items:center; justify-content:space-between; }
.driver-position { color:#cfd2d6; font-size:28px; font-weight:950; }
.driver-flag { font-size:21px; }
.driver-monogram { margin:22px 0 18px; color:var(--giro-red); font-size:42px; font-weight:950; letter-spacing:-2px; }
.driver-team { color:var(--giro-muted); font-size:9px; font-weight:900; text-transform:uppercase; letter-spacing:.08em; }
.driver-card h2 { margin:5px 0 4px; font-size:21px; line-height:1.04; letter-spacing:-.55px; }
.driver-card p { margin:0; color:var(--giro-muted); font-size:11px; }
.driver-points { position:absolute; left:18px; right:18px; bottom:16px; display:flex; align-items:baseline; gap:5px; padding-top:11px; border-top:1px solid var(--giro-line); }
.driver-points strong { font-size:21px; }
.driver-points span { color:var(--giro-muted); font-size:9px; text-transform:uppercase; }

.teams-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.team-card { min-height:250px; padding:20px; border:1px solid var(--giro-line); border-top:3px solid var(--giro-red); border-radius:12px; background:#fff; position:relative; }
.team-card-top { display:flex; justify-content:space-between; color:var(--giro-muted); font-size:10px; font-weight:900; text-transform:uppercase; }
.team-code { color:var(--giro-red); }
.team-card h2 { margin:24px 0 16px; font-size:27px; line-height:1; letter-spacing:-1px; }
.team-drivers { display:flex; flex-wrap:wrap; gap:6px; }
.team-drivers span { padding:6px 8px; border-radius:6px; background:var(--giro-soft); color:var(--giro-text); font-size:10px; font-weight:750; }
.team-card-bottom { position:absolute; left:20px; right:20px; bottom:17px; display:flex; align-items:end; justify-content:space-between; padding-top:12px; border-top:1px solid var(--giro-line); }
.team-card-bottom > span { color:var(--giro-muted); font-size:9px; text-transform:uppercase; }
.team-card-bottom strong { font-size:21px; }
.team-card-bottom small { font-size:9px; }

.archive-news-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:26px 18px; }
.archive-news-image { display:block; aspect-ratio:16/9; margin-bottom:13px; overflow:hidden; border-radius:10px; background:var(--giro-soft); }
.archive-news-image img { width:100%; height:100%; object-fit:cover; }
.archive-news-card h2 { margin:7px 0 8px; font-size:21px; line-height:1.08; letter-spacing:-.6px; }
.archive-news-card p { margin:0 0 10px; color:var(--giro-text); font-size:12px; line-height:1.55; }
.pagination-wrap { margin-top:40px; }
.pagination-wrap ul { display:flex; gap:6px; list-style:none; padding:0; }
.pagination-wrap a,.pagination-wrap .current { display:grid; place-items:center; min-width:34px; height:34px; padding:0 8px; border:1px solid var(--giro-line); border-radius:7px; font-size:11px; font-weight:850; }
.pagination-wrap .current { border-color:var(--giro-red); background:var(--giro-red); color:#fff; }

/* Home dashboard 2026 */
.season-live { padding-top: 52px; }
.season-dashboard { display:grid; grid-template-columns:1.35fr .85fr; gap:14px; }
.season-feature-card { min-height:280px; padding:25px; border-radius:13px; background:var(--giro-ink); color:#fff; position:relative; overflow:hidden; }
.season-feature-card::after { content:""; position:absolute; right:-70px; top:-50px; width:270px; height:270px; background:linear-gradient(145deg,var(--giro-red),#670000); transform:rotate(32deg); opacity:.85; }
.season-feature-card > * { position:relative; z-index:1; }
.season-feature-label { display:flex; justify-content:space-between; color:#aeb3bb; font-size:9px; font-weight:900; text-transform:uppercase; letter-spacing:.08em; }
.season-feature-country { display:flex; gap:8px; align-items:center; margin-top:50px; color:#ff6b67; font-size:11px; font-weight:900; text-transform:uppercase; }
.season-feature-country span { font-size:22px; }
.season-feature-card h3 { max-width:520px; margin:7px 0 5px; font-size:36px; line-height:1; letter-spacing:-1.5px; }
.season-feature-card p { margin:0; color:#c7cbd1; font-size:11px; }
.season-feature-date { position:absolute; left:25px; right:25px; bottom:23px; display:flex; justify-content:space-between; padding-top:12px; border-top:1px solid rgba(255,255,255,.16); font-size:13px; font-weight:900; }
.season-mini-stack { display:grid; grid-template-rows:1fr 1fr; gap:14px; }
.season-mini-card { padding:22px; border:1px solid var(--giro-line); border-top:3px solid var(--giro-red); border-radius:12px; background:#fff; }
.season-mini-card > div { display:flex; justify-content:space-between; gap:15px; margin:16px 0 5px; }
.season-mini-card strong { font-size:21px; line-height:1.05; }
.season-mini-card b { white-space:nowrap; font-size:18px; }
.season-mini-card p { margin:0; color:var(--giro-muted); font-size:10px; }
.season-quick-links { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-top:10px; }
.season-quick-links a { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; padding:12px 14px; border:1px solid var(--giro-line); border-radius:9px; font-size:10px; }
.season-quick-links span { color:#c9cdd2; font-weight:950; }
.season-quick-links strong { font-size:11px; }

@media (max-width: 980px) {
  .calendar-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .drivers-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .teams-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .archive-news-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .season-dashboard { grid-template-columns:1fr; }
  .season-mini-stack { grid-template-columns:1fr 1fr; grid-template-rows:auto; }
  .season-quick-links { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 720px) {
  .f1-page { padding:34px 0 52px; }
  .f1-page-hero { margin-bottom:30px; }
  .f1-page-hero h1 { font-size:42px; letter-spacing:-1.8px; }
  .f1-page-hero p { font-size:15px; }
  .next-race-banner { grid-template-columns:1fr; gap:16px; padding:22px; }
  .next-race-round { display:flex; justify-content:space-between; align-items:center; }
  .next-race-round strong { margin:0; font-size:24px; }
  .next-race-date { text-align:left; font-size:22px; }
  .calendar-grid,.podium-grid,.drivers-grid,.teams-grid,.archive-news-grid { grid-template-columns:1fr; }
  .race-card { min-height:235px; }
  .standings-table th:nth-child(4),.standings-table td:nth-child(4) { display:none; }
  .constructor-row { grid-template-columns:42px 1fr auto; gap:10px; }
  .constructor-code { display:none; }
  .constructor-row p { max-width:210px; }
  .season-mini-stack { grid-template-columns:1fr; }
  .season-quick-links { grid-template-columns:1fr 1fr; }
  .season-feature-card h3 { font-size:30px; }
}


/* =========================================================
   GiroF1 4.8 — experiência mobile focada em leitura
   ========================================================= */
@media (max-width: 720px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { overflow-x: hidden; line-height: 1.6; }

  /* Mais respiro lateral e mais área útil de leitura */
  .container { width: calc(100% - 32px); max-width: none; }

  /* Cabeçalho compacto e sem ocupar a tela durante a leitura */
  .site-header { position: relative; }
  .header-row { min-height: 64px; grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
  .site-branding { min-width: 0; }
  .brand-text { font-size: 31px; letter-spacing: -2.2px; }
  .custom-logo-link img { max-height: 34px; max-width: 150px; }
  .header-actions { gap: 7px; }
  .icon-button { width: 42px; height: 42px; }
  .primary-nav {
    top: 67px;
    padding: 8px 16px 16px;
    box-shadow: 0 16px 28px rgba(17,19,24,.08);
  }
  .primary-nav a { padding: 14px 4px; font-size: 16px; }
  .search-panel { padding: 12px 0 15px; }
  .search-form { gap: 8px; }
  .search-field { min-height: 46px; font-size: 16px; }
  .search-submit { min-height: 46px; padding-inline: 15px; }

  /* Home: títulos e cards maiores, sem microtexto */
  .home-section { padding: 28px 0; }
  .hero-section { padding-top: 22px; }
  .section-head { margin-bottom: 16px; }
  .section-eyebrow { font-size: 11px; }
  .section-title { font-size: 29px; line-height: 1.05; letter-spacing: -.9px; }
  .section-link { font-size: 13px; }
  .hero-main { min-height: 390px; }
  .hero-small { min-height: 218px; }
  .hero-content { padding: 22px; }
  .hero-small .hero-content { padding: 18px; }
  .hero-title { font-size: clamp(29px, 8.7vw, 35px); line-height: 1.03; letter-spacing: -1.15px; }
  .hero-small .hero-title { font-size: 21px; line-height: 1.1; }
  .post-kicker { font-size: 10px; }
  .post-meta { font-size: 12px; }

  .news-row {
    grid-template-columns: 118px minmax(0,1fr);
    gap: 14px;
    padding: 18px 0;
  }
  .news-thumb { border-radius: 8px; }
  .news-title { margin: 5px 0 7px; font-size: 18px; line-height: 1.18; letter-spacing: -.3px; }
  .news-excerpt { display: none; }

  .news-card-content { padding: 17px; }
  .news-card .news-title { font-size: 20px; line-height: 1.16; }

  /* Home F1 2026: informações legíveis e links em uma coluna */
  .season-live { padding-top: 34px; }
  .season-dashboard { gap: 12px; }
  .season-feature-card { min-height: 275px; padding: 21px; }
  .season-feature-label { font-size: 10px; }
  .season-feature-country { margin-top: 42px; font-size: 12px; }
  .season-feature-card h3 { font-size: 31px; line-height: 1.04; letter-spacing: -1px; }
  .season-feature-card p { font-size: 13px; line-height: 1.45; }
  .season-feature-date { left: 21px; right: 21px; bottom: 19px; font-size: 14px; }
  .season-mini-card { padding: 19px; }
  .season-mini-card > div { align-items: end; margin: 13px 0 6px; }
  .season-mini-card strong { font-size: 21px; }
  .season-mini-card b { font-size: 18px; }
  .season-mini-card p { font-size: 12px; }
  .season-quick-links { grid-template-columns: 1fr; gap: 8px; }
  .season-quick-links a { min-height: 50px; padding: 13px 15px; font-size: 12px; }
  .season-quick-links strong { font-size: 14px; }

  /* Matéria: largura, título e corpo pensados primeiro para celular */
  .article-shell { padding: 18px 0 6px; }
  .article-breadcrumb { display: none; }
  .article-hero-header { margin-bottom: 20px; }
  .article-hero-header .post-kicker { font-size: 11px; }
  .article-hero-header .article-title {
    margin: 8px 0 13px;
    font-size: clamp(32px, 9.4vw, 39px);
    line-height: 1.03;
    letter-spacing: -1.25px;
    overflow-wrap: anywhere;
  }
  .article-hero-header .article-excerpt {
    margin-bottom: 18px;
    font-size: 18px;
    line-height: 1.5;
  }
  .article-byline-row { gap: 13px; padding-top: 14px; }
  .article-author-mark { width: 38px; height: 38px; }
  .article-byline strong { font-size: 14px; }
  .article-byline span:not(.article-author-mark) { font-size: 12px; line-height: 1.45; }
  .article-share { gap: 9px; }
  .article-share a,
  .article-share button { width: 42px; height: 42px; font-size: 12px; }

  .article-featured {
    min-height: 0;
    aspect-ratio: 16 / 10;
    margin-bottom: 26px;
    border-radius: 9px;
  }
  .article-featured figcaption { left: 9px; right: 9px; bottom: 9px; max-width: calc(100% - 18px); font-size: 11px; }
  .article-layout { gap: 28px; }
  .entry-content {
    color: #252a30;
    font-size: 18px;
    line-height: 1.78;
    letter-spacing: 0;
    overflow-wrap: break-word;
  }
  .entry-content p { margin-bottom: 1.35em; }
  .entry-content h2 {
    margin-top: 1.65em;
    margin-bottom: .55em;
    font-size: 27px;
    line-height: 1.15;
    letter-spacing: -.65px;
  }
  .entry-content h3 { font-size: 23px; line-height: 1.18; }
  .entry-content h4 { font-size: 20px; line-height: 1.2; }
  .entry-content ul,
  .entry-content ol { padding-left: 22px; }
  .entry-content li { margin-bottom: .55em; }
  .entry-content blockquote { margin: 25px 0; padding-left: 17px; font-size: 19px; line-height: 1.55; }
  .entry-content figure,
  .entry-content .wp-block-image { margin: 23px 0; }
  .entry-content figure img,
  .entry-content .wp-block-image img { border-radius: 8px; }
  .entry-content figcaption,
  .entry-content .wp-element-caption { font-size: 12px; }
  .entry-content .wp-block-spacer { height: 16px !important; }

  .article-nav { gap: 9px; margin-top: 24px; }
  .article-nav a { padding: 15px; }
  .article-nav span { font-size: 11px; }
  .article-nav strong { font-size: 15px; line-height: 1.3; }

  /* No celular, a caixa institucional sai do caminho e o 'Leia também' fica maior */
  .sidebar-brand-box { display: none; }
  .article-aside { display: block; }
  .sidebar-heading { padding-top: 8px; font-size: 20px; }
  .sidebar-story { grid-template-columns: 118px 1fr; gap: 13px; padding: 14px 0; }
  .sidebar-story h4 { font-size: 16px; line-height: 1.22; }

  /* Páginas da temporada */
  .f1-page { padding: 34px 0 54px; }
  .f1-page-hero { margin-bottom: 30px; }
  .f1-page-hero h1 { font-size: clamp(36px, 10.5vw, 44px); line-height: 1; letter-spacing: -1.5px; }
  .f1-page-hero p { font-size: 17px; line-height: 1.55; }
  .f1-data-note { font-size: 12px; line-height: 1.55; }
  .f1-section-title { align-items: flex-start; gap: 10px; }
  .f1-section-title h2 { font-size: 30px; }
  .f1-section-title > span { padding-top: 3px; font-size: 10px; }

  .next-race-banner { padding: 20px; }
  .next-race-main { align-items: flex-start; }
  .next-race-main h2 { font-size: 25px; line-height: 1.08; }
  .next-race-main p { font-size: 13px; line-height: 1.45; }
  .next-race-country { font-size: 11px; }
  .next-race-date { font-size: 23px; }

  .race-card { min-height: 245px; padding: 19px; }
  .race-card-country { margin-top: 21px; font-size: 12px; }
  .race-card h2 { font-size: 24px; }
  .race-venue { font-size: 13px; }
  .race-card-bottom { left: 19px; right: 19px; }
  .race-card-bottom strong { font-size: 14px; }
  .race-card-bottom span { font-size: 10px; }

  .podium-card { min-height: 190px; padding: 20px; }
  .podium-code { margin-bottom: 22px; }
  .podium-card h3 { font-size: 24px; }
  .podium-card p { font-size: 12px; }

  /* Tabela vira lista de leitura, sem rolagem horizontal */
  .standings-table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .standings-table { display: block; background: transparent; }
  .standings-table thead { display: none; }
  .standings-table tbody { display: grid; gap: 8px; }
  .standings-table tr {
    display: grid;
    grid-template-columns: 38px minmax(0,1fr) auto;
    grid-template-areas:
      "pos driver points"
      "pos team points";
    gap: 2px 10px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid var(--giro-line);
    border-radius: 10px;
    background: #fff;
  }
  .standings-table td { display: block; width: auto !important; padding: 0; border: 0; }
  .standings-table td:nth-child(1) { grid-area: pos; font-size: 18px; }
  .standings-table td:nth-child(2) { grid-area: driver; }
  .standings-table td:nth-child(2) strong { display: block; margin: 0; font-size: 15px; line-height: 1.2; }
  .standings-table td:nth-child(2) small { display: inline-block; margin-top: 3px; font-size: 10px; }
  .standings-table td:nth-child(3) { grid-area: team; color: var(--giro-muted); font-size: 12px; }
  .standings-table td:nth-child(4) { display: none; }
  .standings-table td:nth-child(5) { grid-area: points; font-size: 18px; }

  .constructor-row {
    grid-template-columns: 38px minmax(0,1fr) auto;
    gap: 10px;
    padding: 17px 0;
  }
  .constructor-pos { font-size: 24px; }
  .constructor-row h3 { font-size: 18px; }
  .constructor-row p { max-width: none; font-size: 12px; line-height: 1.4; }
  .constructor-row > strong { font-size: 20px; }

  .driver-card { min-height: 250px; padding: 19px; }
  .driver-team { font-size: 10px; }
  .driver-card h2 { font-size: 23px; }
  .driver-card p { font-size: 12px; }

  .team-card { min-height: 235px; padding: 19px; }
  .team-card h2 { font-size: 25px; }
  .team-drivers span { font-size: 11px; }

  .archive-news-grid { gap: 28px; }
  .archive-news-card h2 { font-size: 23px; line-height: 1.14; }
  .archive-news-card p { font-size: 14px; line-height: 1.58; }

  /* Rodapé menos apertado */
  .site-footer { margin-top: 28px; }
  .footer-main { padding: 30px 0 24px; gap: 27px; }
  .footer-brand p { font-size: 14px; line-height: 1.55; }
  .footer-title { font-size: 11px; }
  .footer-menu { gap: 9px; font-size: 14px; }
  .footer-bottom { padding: 16px 0; font-size: 12px; }
}

@media (max-width: 430px) {
  .container { width: calc(100% - 28px); }
  .brand-text { font-size: 29px; }
  .header-actions .icon-button { width: 40px; height: 40px; }
  .search-form { flex-direction: column; }
  .search-submit { width: 100%; }

  .hero-main { min-height: 365px; }
  .hero-title { font-size: 31px; }
  .hero-small { min-height: 205px; }

  .news-row { grid-template-columns: 108px minmax(0,1fr); gap: 12px; }
  .news-title { font-size: 17px; }

  .article-hero-header .article-title { font-size: 34px; }
  .article-hero-header .article-excerpt { font-size: 17px; }
  .entry-content { font-size: 18px; line-height: 1.76; }
  .entry-content h2 { font-size: 26px; }
  .entry-content h3 { font-size: 22px; }
  .sidebar-story { grid-template-columns: 106px 1fr; }

  .season-feature-card h3 { font-size: 28px; }
  .season-feature-date { font-size: 13px; }
  .f1-page-hero h1 { font-size: 38px; }
}


/* =========================================================
   GiroF1 4.9 — correção definitiva do artigo no mobile
   O layout desktop de 2 colunas da v4.5 estava sobrescrevendo
   o breakpoint mobile, comprimindo o texto em uma coluna estreita.
   ========================================================= */
@media (max-width: 980px) {
  .article-layout {
    display: block !important;
    width: 100%;
    max-width: 100%;
  }

  .article-body,
  .article-aside {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .article-aside {
    position: static !important;
    top: auto !important;
    margin-top: 40px;
  }

  .sidebar-latest,
  .sidebar-story,
  .sidebar-story > div,
  .sidebar-story-thumb {
    min-width: 0;
  }

  .sidebar-story h4,
  .article-nav strong,
  .entry-content,
  .entry-content h2,
  .entry-content h3,
  .entry-content h4 {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
  }
}

@media (max-width: 720px) {
  .article-layout {
    display: block !important;
  }

  .article-body {
    width: 100% !important;
  }

  .article-aside {
    width: 100% !important;
    margin-top: 34px;
    padding-top: 4px;
  }

  .sidebar-heading {
    width: 100%;
    margin: 0 0 10px;
    padding: 0 0 10px;
    font-size: 25px;
    line-height: 1.1;
  }

  .sidebar-heading span {
    padding-bottom: 9px;
  }

  .sidebar-story {
    width: 100%;
    grid-template-columns: 124px minmax(0, 1fr) !important;
    gap: 14px;
    align-items: center;
    padding: 15px 0;
  }

  .sidebar-story-thumb {
    width: 124px;
    max-width: 124px;
  }

  .sidebar-story h4 {
    margin-top: 5px;
    font-size: 17px;
    line-height: 1.23;
    letter-spacing: -.25px;
  }

  .article-nav {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .article-nav > div,
  .article-nav a {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 430px) {
  .sidebar-story {
    grid-template-columns: 108px minmax(0, 1fr) !important;
    gap: 12px;
  }

  .sidebar-story-thumb {
    width: 108px;
    max-width: 108px;
  }

  .sidebar-story h4 {
    font-size: 16px;
    line-height: 1.24;
  }
}


/* =========================================================
   GiroF1 5.0 — leitura mobile reconstruída
   Margens determinísticas, tipografia editorial e alinhamento
   sem herdar formatações antigas do conteúdo do WordPress.
   ========================================================= */
@media (max-width: 720px) {
  html,
  body,
  .site-shell,
  .site-main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* O artigo usa padding, não cálculo de largura. Isso evita
     deslocamento lateral em navegadores móveis e zoom do sistema. */
  .article-shell > .container,
  .article-shell > .container.article-layout {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .article-hero-header,
  .article-featured,
  .article-layout,
  .article-body,
  .entry-content,
  .article-aside {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .article-layout {
    display: block !important;
  }

  /* Título principal: forte, mas sem dominar a tela. */
  .article-hero-header .article-title {
    margin: 8px 0 14px !important;
    font-size: clamp(30px, 8.2vw, 36px) !important;
    line-height: 1.06 !important;
    letter-spacing: -1px !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
    text-align: left !important;
  }

  .article-hero-header .article-excerpt {
    font-size: 17px !important;
    line-height: 1.55 !important;
    text-align: left !important;
  }

  /* Corpo editorial: tamanho próximo aos grandes portais.
     Sobrescreve alinhamentos/medidas colados do editor antigo. */
  .entry-content {
    font-size: 17px !important;
    line-height: 1.68 !important;
    letter-spacing: 0 !important;
    word-spacing: normal !important;
    text-align: left !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
  }

  .entry-content p,
  .entry-content li {
    width: auto !important;
    max-width: 100% !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-align: left !important;
    text-indent: 0 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
  }

  .entry-content p { margin-bottom: 1.2em !important; }

  /* Alguns textos importados trazem tamanho/alinhamento em spans. */
  .entry-content p span,
  .entry-content li span {
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    word-spacing: normal !important;
    text-align: inherit !important;
  }

  .entry-content h2,
  .entry-content h3,
  .entry-content h4 {
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
  }

  .entry-content h2 {
    margin-top: 1.55em !important;
    margin-bottom: .55em !important;
    font-size: 25px !important;
    line-height: 1.16 !important;
    letter-spacing: -.55px !important;
  }

  .entry-content h3 {
    margin-top: 1.45em !important;
    font-size: 22px !important;
    line-height: 1.18 !important;
    letter-spacing: -.35px !important;
  }

  .entry-content h4 {
    font-size: 19px !important;
    line-height: 1.22 !important;
  }

  .entry-content ul,
  .entry-content ol {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 22px !important;
  }

  .entry-content img,
  .entry-content figure,
  .entry-content .wp-block-image,
  .entry-content iframe,
  .entry-content video,
  .entry-content table {
    max-width: 100% !important;
  }

  /* Relacionadas sempre abaixo, nunca disputando largura com o texto. */
  .article-aside {
    position: static !important;
    margin-top: 34px !important;
  }

  .sidebar-heading {
    font-size: 24px !important;
    line-height: 1.1 !important;
  }
}

@media (max-width: 430px) {
  .article-shell > .container,
  .article-shell > .container.article-layout {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .article-hero-header .article-title {
    font-size: 31px !important;
  }

  .entry-content {
    font-size: 16.5px !important;
    line-height: 1.66 !important;
  }

  .entry-content h2 { font-size: 24px !important; }
  .entry-content h3 { font-size: 21px !important; }
}

/* === GiroF1 5.1 · SEO / entidades / breadcrumbs === */
.giro-breadcrumb { margin: 18px 0 22px; font-size: 13px; color: var(--giro-muted); }
.giro-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin: 0; padding: 0; list-style: none; }
.giro-breadcrumb li { display: inline-flex; align-items: center; min-width: 0; }
.giro-breadcrumb li + li::before { content: '›'; margin-right: 7px; color: #a5abb3; }
.giro-breadcrumb a:hover { color: var(--giro-red); }
.giro-breadcrumb span[aria-current="page"] { color: var(--giro-ink); font-weight: 700; max-width: 52ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.article-topics, .entity-related-list { margin: 34px 0; padding: 22px 0; border-top: 1px solid var(--giro-line); border-bottom: 1px solid var(--giro-line); }
.article-topics-label { display: block; margin-bottom: 12px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--giro-muted); }
.article-topics-links { display: flex; flex-wrap: wrap; gap: 9px; }
.article-topics-links a { display: inline-flex; gap: 7px; align-items: center; padding: 9px 12px; border: 1px solid var(--giro-line); border-radius: 999px; background: #fff; font-weight: 750; font-size: 13px; }
.article-topics-links a:hover { border-color: var(--giro-red); color: var(--giro-red); }
.article-topics-links small { color: var(--giro-red); font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }

.entity-page { padding-top: 0; }
.entity-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding: 38px 0 28px; border-bottom: 2px solid var(--giro-ink); }
.entity-hero h1 { margin: 5px 0 8px; font-size: clamp(38px, 6vw, 78px); line-height: .95; letter-spacing: -.045em; }
.entity-hero p { margin: 0; color: var(--giro-muted); font-size: 16px; }
.entity-score { min-width: 150px; display: grid; justify-items: end; }
.entity-score > span { font-size: 14px; font-weight: 900; color: var(--giro-red); }
.entity-score > strong { font-size: 58px; line-height: 1; letter-spacing: -.04em; }
.entity-score > small { color: var(--giro-muted); text-transform: uppercase; font-weight: 800; letter-spacing: .06em; }
.entity-score.entity-date strong { font-size: 24px; }
.entity-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--giro-line); border: 1px solid var(--giro-line); border-radius: var(--giro-radius); overflow: hidden; margin: 24px 0 42px; }
.entity-facts > div { min-width: 0; padding: 20px; background: #fff; }
.entity-facts span { display: block; margin-bottom: 5px; color: var(--giro-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; }
.entity-facts strong, .entity-facts a { font-size: 15px; font-weight: 850; }
.entity-facts a { color: var(--giro-red); }
.entity-news { margin: 48px 0 70px; }
.entity-news .archive-news-card h3 { margin: 6px 0 8px; font-size: 20px; line-height: 1.12; }
.driver-card, .team-card, .race-card { color: inherit; }
.driver-card:hover, .team-card:hover, .race-card:hover { color: inherit; border-color: #d5d8dd; box-shadow: var(--giro-shadow); transform: translateY(-2px); }

@media (max-width: 760px) {
  .giro-breadcrumb { margin: 12px 0 16px; font-size: 11px; }
  .giro-breadcrumb span[aria-current="page"] { max-width: 30ch; }
  .article-topics { margin: 26px 0; }
  .article-topics-links { gap: 7px; }
  .article-topics-links a { width: 100%; justify-content: flex-start; border-radius: 9px; }
  .entity-hero { grid-template-columns: 1fr; gap: 18px; padding: 24px 0 20px; }
  .entity-hero h1 { font-size: 42px; }
  .entity-score { justify-items: start; min-width: 0; }
  .entity-score > strong { font-size: 46px; }
  .entity-facts { grid-template-columns: 1fr 1fr; margin-bottom: 28px; }
  .entity-facts > div { padding: 15px; }
  .entity-news { margin: 34px 0 48px; }
}
