/*
Theme Name: Info Tenis Newsroom
Theme URI: https://infotenisbrasil.com.br/
Author: Info Tenis Brasil
Description: Tema editorial de hard news para cobertura do tenis brasileiro e internacional.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: infotenis-newsroom
*/

:root {
  --itb-ink: #111820;
  --itb-muted: #5a6570;
  --itb-paper: #ffffff;
  --itb-soft: #f2f5f3;
  --itb-line: #d8dedb;
  --itb-green: #126b3a;
  --itb-green-dark: #0a4627;
  --itb-lime: #b6d72a;
  --itb-yellow: #f3c84b;
  --itb-red: #c9252d;
  --itb-blue: #246aa5;
  --itb-max: 1240px;
  --itb-radius: 6px;
  --itb-shadow: 0 12px 30px rgba(17, 24, 32, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--itb-ink);
  background: var(--itb-paper);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.58;
}

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

a:hover,
a:focus-visible {
  color: var(--itb-green);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

.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 {
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  color: var(--itb-ink);
  background: var(--itb-paper);
  border: 2px solid var(--itb-green);
}

.itb-shell {
  width: min(calc(100% - 32px), var(--itb-max));
  margin-inline: auto;
}

.itb-topbar {
  color: #eaf5ee;
  background: var(--itb-green-dark);
  font-size: 13px;
}

.itb-topbar__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.itb-topbar__links,
.itb-footer-menu,
.itb-socials,
.itb-menu,
.itb-ticker__items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.itb-topbar__links,
.itb-socials {
  display: flex;
  align-items: center;
  gap: 18px;
}

.itb-topbar a:hover,
.itb-topbar a:focus-visible {
  color: var(--itb-lime);
}

.itb-header {
  border-bottom: 1px solid var(--itb-line);
  background: var(--itb-paper);
}

.itb-header__brand-row {
  min-height: 98px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.itb-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
}

.itb-brand .custom-logo {
  width: auto;
  max-width: 84px;
  max-height: 66px;
}

.itb-brand__mark {
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--itb-green);
  border-bottom: 7px solid var(--itb-lime);
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
  text-align: center;
}

.itb-brand__title {
  display: block;
  font-size: clamp(25px, 4vw, 42px);
  line-height: 1;
  font-weight: 900;
}

.itb-brand__tagline {
  display: block;
  margin-top: 7px;
  color: var(--itb-muted);
  font-size: 13px;
}

.itb-header__utility {
  display: flex;
  align-items: center;
  gap: 10px;
}

.itb-icon-button,
.itb-menu-toggle {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--itb-ink);
  background: transparent;
  border: 1px solid var(--itb-line);
  border-radius: var(--itb-radius);
  cursor: pointer;
}

.itb-icon-button:hover,
.itb-menu-toggle:hover {
  color: #fff;
  background: var(--itb-green);
  border-color: var(--itb-green);
}

.itb-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.itb-search-panel {
  display: none;
  border-top: 1px solid var(--itb-line);
  padding-block: 16px;
}

.itb-search-panel.is-open {
  display: block;
}

.itb-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.itb-search-form input {
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--itb-line);
  border-radius: var(--itb-radius);
}

.itb-search-form button,
.itb-button {
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  background: var(--itb-green);
  border: 0;
  border-radius: var(--itb-radius);
  font-weight: 800;
  cursor: pointer;
}

.itb-nav {
  border-top: 1px solid var(--itb-line);
  background: var(--itb-paper);
}

.itb-nav__inner {
  min-height: 52px;
  display: flex;
  align-items: center;
}

.itb-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.itb-menu a {
  display: block;
  padding: 15px 13px 13px;
  border-bottom: 3px solid transparent;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.itb-menu .current-menu-item > a,
.itb-menu .current-menu-ancestor > a,
.itb-menu a:hover,
.itb-menu a:focus-visible {
  color: var(--itb-green);
  border-color: var(--itb-lime);
}

.itb-menu-toggle {
  display: none;
}

.itb-ticker {
  color: #fff;
  background: var(--itb-ink);
}

.itb-ticker__inner {
  min-height: 40px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.itb-ticker__label {
  color: var(--itb-ink);
  background: var(--itb-yellow);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.itb-ticker__viewport {
  min-width: 0;
  overflow: hidden;
}

.itb-ticker__items {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.itb-ticker__items li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--itb-lime);
  vertical-align: middle;
}

.itb-main {
  padding-block: 28px 56px;
}

.itb-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 22px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--itb-line);
}

.itb-story {
  min-width: 0;
}

.itb-story__media {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #dce7df;
  border-radius: var(--itb-radius);
}

.itb-story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.itb-story:hover .itb-story__media img {
  transform: scale(1.025);
}

.itb-story__fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--itb-green-dark);
}

.itb-story__fallback::before,
.itb-story__fallback::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.36);
}

.itb-story__fallback::before {
  inset: 12%;
}

.itb-story__fallback::after {
  top: 12%;
  bottom: 12%;
  left: 50%;
  border-width: 0 0 0 2px;
}

.itb-story__fallback span {
  z-index: 1;
  padding: 8px 10px;
  background: var(--itb-green-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.itb-kicker {
  display: inline-flex;
  margin: 14px 0 8px;
  color: var(--itb-green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.itb-story__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.13;
  font-weight: 900;
}

.itb-story--lead .itb-story__title {
  font-size: clamp(30px, 4.2vw, 52px);
  max-width: 19ch;
}

.itb-story__dek {
  margin: 12px 0 0;
  color: var(--itb-muted);
  font-size: 17px;
}

.itb-story__meta,
.itb-article__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 14px;
  color: var(--itb-muted);
  font-size: 12px;
}

.itb-story__meta span + span::before,
.itb-article__meta span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  display: inline-block;
  margin-right: 14px;
  border-radius: 50%;
  background: #9ba49f;
  vertical-align: middle;
}

.itb-hero-side {
  display: grid;
  gap: 18px;
}

.itb-hero-side .itb-story + .itb-story {
  padding-top: 18px;
  border-top: 1px solid var(--itb-line);
}

.itb-hero-side .itb-story__title {
  font-size: 21px;
}

.itb-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 36px;
  margin-top: 34px;
}

.itb-section + .itb-section {
  margin-top: 42px;
}

.itb-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 9px;
  border-bottom: 3px solid var(--itb-ink);
}

.itb-section__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
}

.itb-section__more {
  color: var(--itb-green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.itb-feed {
  display: grid;
}

.itb-feed .itb-story {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding-block: 18px;
  border-bottom: 1px solid var(--itb-line);
}

.itb-feed .itb-story:first-child {
  padding-top: 0;
}

.itb-feed .itb-story__media {
  aspect-ratio: 4 / 3;
}

.itb-feed .itb-kicker {
  margin-top: 0;
}

.itb-feed .itb-story__title {
  font-size: 23px;
}

.itb-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 18px;
}

.itb-card-grid .itb-story__title {
  font-size: 21px;
}

.itb-sidebar {
  min-width: 0;
}

.itb-sidebar__block {
  padding: 18px;
  background: var(--itb-soft);
  border-top: 4px solid var(--itb-green);
}

.itb-sidebar__block + .itb-sidebar__block {
  margin-top: 24px;
}

.itb-sidebar__title {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
}

.itb-compact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.itb-compact-list li {
  padding-block: 12px;
  border-top: 1px solid var(--itb-line);
}

.itb-compact-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.itb-compact-list a {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.28;
}

.itb-compact-list time {
  display: block;
  margin-top: 5px;
  color: var(--itb-muted);
  font-size: 11px;
}

.itb-rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rank;
}

.itb-rank-list li {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding-block: 10px;
  border-top: 1px solid var(--itb-line);
  font-size: 14px;
  font-weight: 800;
}

.itb-rank-list li::before {
  content: counter(rank);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--itb-green);
  border-radius: 50%;
  font-size: 12px;
}

.itb-archive-head {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 4px solid var(--itb-ink);
}

.itb-archive-head__eyebrow {
  color: var(--itb-green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.itb-archive-head h1 {
  margin: 4px 0 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  font-weight: 900;
}

.itb-archive-head p {
  max-width: 70ch;
  margin: 10px 0 0;
  color: var(--itb-muted);
}

.itb-pagination {
  margin-top: 32px;
}

.itb-pagination .nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.itb-pagination .page-numbers {
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding-inline: 10px;
  border: 1px solid var(--itb-line);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
}

.itb-pagination .current,
.itb-pagination a:hover {
  color: #fff;
  background: var(--itb-green);
  border-color: var(--itb-green);
}

.itb-article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 780px) 300px;
  gap: 56px;
  align-items: start;
}

.itb-article__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.itb-article__categories a {
  padding: 4px 8px;
  color: #fff;
  background: var(--itb-green);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.itb-article__title {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  font-weight: 900;
}

.itb-article__subtitle {
  margin: 18px 0 0;
  color: var(--itb-muted);
  font-size: 21px;
  line-height: 1.42;
}

.itb-article__featured {
  margin: 28px 0 0;
}

.itb-article__featured img {
  width: 100%;
  border-radius: var(--itb-radius);
}

.itb-article__caption {
  margin-top: 6px;
  color: var(--itb-muted);
  font-size: 11px;
}

.itb-article__content {
  margin-top: 30px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.76;
}

.itb-article__content > * {
  max-width: 720px;
}

.itb-article__content h2,
.itb-article__content h3 {
  font-family: Inter, "Segoe UI", sans-serif;
  line-height: 1.15;
}

.itb-article__content h2 {
  margin: 38px 0 12px;
  font-size: 30px;
}

.itb-article__content h3 {
  margin: 30px 0 10px;
  font-size: 23px;
}

.itb-article__content blockquote {
  margin: 28px 0;
  padding: 8px 0 8px 22px;
  border-left: 5px solid var(--itb-lime);
  font-size: 24px;
  line-height: 1.45;
}

.itb-article__content a {
  color: var(--itb-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.itb-article__content figure,
.itb-article__content img {
  max-width: 100%;
}

.itb-share {
  position: sticky;
  top: 18px;
  padding-top: 4px;
}

.itb-share__title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.itb-share__links {
  display: grid;
  gap: 8px;
}

.itb-share__links a {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--itb-line);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
}

.itb-share__links a:hover {
  color: #fff;
  background: var(--itb-green);
  border-color: var(--itb-green);
}

.itb-related {
  margin-top: 50px;
  padding-top: 28px;
  border-top: 4px solid var(--itb-ink);
}

.itb-empty {
  padding: 44px 24px;
  text-align: center;
  background: var(--itb-soft);
  border: 1px solid var(--itb-line);
}

.itb-empty h1,
.itb-empty h2 {
  margin-top: 0;
}

.itb-footer {
  color: #dce5e0;
  background: var(--itb-ink);
}

.itb-footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 48px;
  padding-block: 44px;
}

.itb-footer__brand {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.itb-footer__text {
  max-width: 42ch;
  margin: 12px 0 0;
  color: #aebbb4;
  font-size: 14px;
}

.itb-footer__title {
  margin: 0 0 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.itb-footer-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  font-size: 13px;
}

.itb-footer__bottom {
  padding-block: 16px;
  border-top: 1px solid #334039;
  color: #96a29c;
  font-size: 12px;
}

@media (max-width: 960px) {
  .itb-content-grid,
  .itb-article-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .itb-article-wrap {
    gap: 30px;
  }

  .itb-share {
    position: static;
  }

  .itb-share__links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .itb-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .itb-footer__grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .itb-shell {
    width: min(calc(100% - 24px), var(--itb-max));
  }

  .itb-topbar__links {
    display: none;
  }

  .itb-topbar__inner {
    justify-content: center;
  }

  .itb-header__brand-row {
    min-height: 80px;
  }

  .itb-brand__tagline {
    display: none;
  }

  .itb-nav__inner {
    min-height: 48px;
    justify-content: space-between;
  }

  .itb-menu-toggle {
    display: inline-grid;
  }

  .itb-menu-wrap {
    display: none;
    width: 100%;
    padding-block: 8px 14px;
  }

  .itb-menu-wrap.is-open {
    display: block;
  }

  .itb-nav__inner {
    flex-wrap: wrap;
  }

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

  .itb-menu a {
    padding: 10px 8px;
    border-bottom: 1px solid var(--itb-line);
  }

  .itb-ticker__items li:nth-child(n + 2) {
    display: none;
  }

  .itb-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .itb-story--lead .itb-story__title {
    font-size: 36px;
  }

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

  .itb-hero-side .itb-story + .itb-story {
    padding-top: 0;
    padding-left: 16px;
    border-top: 0;
    border-left: 1px solid var(--itb-line);
  }

  .itb-feed .itb-story {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 14px;
  }

  .itb-feed .itb-story__title {
    font-size: 19px;
  }

  .itb-feed .itb-story__dek {
    display: none;
  }

  .itb-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .itb-article__title {
    font-size: 42px;
  }

  .itb-footer__grid,
  .itb-footer-menu {
    grid-template-columns: minmax(0, 1fr);
  }

  .itb-footer__grid > :first-child {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .itb-brand__mark {
    width: 48px;
  }

  .itb-brand__title {
    font-size: 25px;
  }

  .itb-hero-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .itb-hero-side .itb-story + .itb-story {
    padding-top: 16px;
    padding-left: 0;
    border-top: 1px solid var(--itb-line);
    border-left: 0;
  }

  .itb-feed .itb-story {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .itb-feed .itb-story__title {
    font-size: 17px;
  }

  .itb-story__meta {
    display: none;
  }

  .itb-article__title {
    font-size: 36px;
  }

  .itb-article__subtitle {
    font-size: 18px;
  }

  .itb-share__links {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}



/* Fontes consultadas: referência editorial discreta e legível. */
.fontes-consultadas { margin: 1.6rem 0 0; padding-top: .75rem; border-top: 1px solid var(--itb-line); color: #66737a; font-size: .82rem; line-height: 1.55; }
.fontes-consultadas strong { color: #425159; font-weight: 600; }
.fontes-consultadas a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
