/*
Theme Name: Extreme SEO PBN (Malamute News Style)
Theme URI: https://github.com/murilo/portal-pbn-staging
Author: Antigravity AI
Author URI: https://github.com/murilo
Description: Um tema WordPress de altíssimo padrão baseado no layout Malamute News. Totalmente otimizado para PHP 8.3+, mobile-first, com carregamento asíncrono de AdSense, tipografia editorial marcante e design modular premium.
Version: 1.4.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-colors, one-column, responsive-layout, translation-ready, light-mode
Text Domain: extreme-seo-pbn
*/

/* ==========================================================================
   1. Design System & CSS Custom Properties (Wired High-Contrast Style)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Oswald:wght@500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,700;1,6..72,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Wired Premium Palette - Bold High Contrast */
  --bg: #FFFFFF;
  --bg-2: #F3F3F3;
  --surface: #FFFFFF;
  --surface-2: #ECECEC;
  --border: #000000;
  --border-soft: #222222;
  
  --ink: #000000;
  --ink-soft: #1A1A1A;
  --muted: #555555;
  --muted-2: #777777;
  
  --red: #A91D22;     /* Carmim Profundo / Crimson */
  --red-hot: #C72C31;
  --gold: #B48512;    /* Ouro Antigo / Antique Gold */
  --green: #156D4A;   /* Verde Floresta / Forest Green */
  --blue: #0C5A94;    /* Azul Real Ardósia / Royal Blue */
  --purple: #581C87;  /* Roxo Profundo / Dark Violet */

  /* Typography */
  --display: 'Oswald', 'Archivo Narrow', sans-serif;
  --serif: 'Newsreader', Georgia, serif;
  --ui: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing & Layout */
  --container: 1280px;
  --container-wide: 1480px;
  --gap: 24px;
  --gap-lg: 40px;
  --radius: 0px; /* Sharp cuts, no rounded corners */
  --transition: all 0.2s ease-in-out;
}

/* Elegant dark theme available as option */
body.theme-dark {
  --bg: #000000;
  --bg-2: #0A0A0A;
  --surface: #111111;
  --surface-2: #1A1A1A;
  --border: #FFFFFF;
  --border-soft: #CCCCCC;
  
  --ink: #FFFFFF;
  --ink-soft: #E0E0E0;
  --muted: #A0A0A0;
  --muted-2: #666666;
}

/* ==========================================================================
   2. Reset & Core CSS Elements
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  line-height: 1.62;
  font-size: 1.025rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Premium light ambient overlays */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 80% 0%, rgba(229,37,29,0.05), transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 100%, rgba(58,141,222,0.03), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 3px);
  opacity: 0.02; /* Extremely subtle overlay in light theme */
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--red);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.dot {
  width: 3px;
  height: 3px;
  background: var(--muted);
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
}

/* ==========================================================================
   3. Architectural Header (Malamute Light-Contrast Navigation)
   ========================================================================== */
.site-wrapper {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* White theme navigation background with soft saturation */
.site-header {
  background-color: rgba(250, 250, 247, 0.92);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-brand-row {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-title {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.logo-kicker {
  font-family: var(--ui);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.32em;
  margin-left: 8px;
  color: var(--muted);
  text-transform: uppercase;
  vertical-align: middle;
}

/* Clean search bar in white theme */
.header-search-form {
  flex: 0 0 360px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 14px;
  color: var(--muted);
  transition: var(--transition);
}

.header-search-form:focus-within {
  border-color: var(--red);
  color: var(--ink);
}

.header-search-form input[type="search"] {
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 14px;
  flex: 1;
}

/* Menu de categorias do cabeçalho */
.header-menu-row {
  border-top: 1px solid var(--border-soft);
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 6px;
  justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: none;
}

.header-menu-row::-webkit-scrollbar {
  display: none;
}

.header-menu-row ul {
  display: flex;
  list-style: none;
  align-items: center;
}

.header-menu-row a {
  display: block;
  padding: 14px 14px;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.header-menu-row a:hover, 
.header-menu-row .current-menu-item a {
  color: var(--red);
}

.header-menu-row .current-menu-item a {
  border-bottom-color: var(--red);
}

/* 4. Breaking News Ticker (Contrast Black Ticker in White Page) */
.ticker {
  display: flex;
  align-items: stretch;
  background: #0A0A0A; /* Black ticker for high-end newspaper contrast */
  color: #fff;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.ticker__label {
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  letter-spacing: 0.08em;
  font-size: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  position: relative;
  z-index: 5;
}

.ticker__label::after {
  content: '';
  position: absolute;
  right: -12px; top: 0;
  width: 0; height: 0;
  border: 18px solid transparent;
  border-left-color: var(--red);
  border-right: 0;
}

.ticker__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.ticker__viewport {
  flex: 1;
  overflow: hidden;
  padding-left: 20px;
  position: relative;
}

.ticker__viewport::before { left: 0; background: linear-gradient(to right, #0A0A0A, transparent); }
.ticker__viewport::after { right: 0; background: linear-gradient(to left, #0A0A0A, transparent); }

.ticker__track {
  display: inline-flex;
  gap: 48px;
  white-space: nowrap;
  animation: tickerSlide 45s linear infinite;
  padding: 10px 0;
}

@keyframes tickerSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker__item {
  color: #E8E6E0;
}
.ticker__item:first-letter {
  color: var(--red);
}

.ticker__time {
  padding: 10px 16px;
  color: #999;
  font-family: var(--mono);
  font-size: 12px;
  border-left: 1px solid #1f1f1f;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

/* Content Area */
.site-main {
  flex-grow: 1;
}

.band {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px;
}

.band--alt {
  background: var(--bg-2);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.band--alt > * {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.band__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 992px) {
  .band__split {
    grid-template-columns: 1fr 320px;
  }
}

/* Eyebrows */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.eyebrow__bar {
  width: 32px;
  height: 4px;
  background: var(--red);
}

.eyebrow__label {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.eyebrow__rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ==========================================================================
   5. Grids and Card layouts
   ========================================================================== */
.grid--hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 24px;
}

@media (min-width: 992px) {
  .grid--hero {
    grid-template-columns: 1fr 380px;
  }
}

.grid--3up { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .grid--3up { grid-template-columns: repeat(3, 1fr); } }

.grid--2up { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .grid--2up { grid-template-columns: repeat(2, 1fr); } }

.grid--4up { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 768px) { .grid--4up { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--4up { grid-template-columns: repeat(4, 1fr); } }

.grid--list {
  display: grid;
  gap: 24px;
}

.grid__rail > * + * {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}

/* Article Cards */
.card {
  display: block;
  color: inherit;
  cursor: pointer;
}

.card:hover .card__title {
  color: var(--red);
}

.card__media {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--surface-2);
  overflow: hidden;
  margin-bottom: 14px;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card:hover .card__media img {
  transform: scale(1.02);
}

.card__kicker {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 8px;
  color: var(--red);
  border-bottom: 2px solid var(--border);
  padding-bottom: 2px;
}

.card__title {
  font-family: var(--display);
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--ink);
  text-transform: uppercase;
  transition: color 0.15s;
}

.card__title--xxl { font-size: 36px; }
@media (min-width: 768px) { .card__title--xxl { font-size: 56px; } }
.card__title--lg { font-size: 32px; }
.card__title--md { font-size: 22px; }
.card__title--sm { font-size: 18px; }

.card__dek {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 8px 0 12px;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* Hero card styling */
.card--hero .card__media {
  aspect-ratio: 16/9;
  margin-bottom: 24px;
}
.card--hero .card__title--xxl {
  line-height: 0.95;
}

/* Wide / Horizontal cards */
.card--wide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .card--wide {
    grid-template-columns: 280px 1fr;
  }
}

.card--wide .card__media {
  aspect-ratio: 4/3;
  margin-bottom: 0;
}

/* List Card */
.card--list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--border-soft);
}

@media (min-width: 768px) {
  .card--list {
    grid-template-columns: 220px 1fr;
  }
}

.card--list:last-child {
  border-bottom: 1px solid var(--border-soft);
}

.card--list .card__media {
  aspect-ratio: 4/3;
  margin-bottom: 0;
}

/* Minimal Card */
.card--minimal {
  padding: 16px 0;
}
.card--minimal .card__title--sm {
  font-size: 16px;
}

/* Urgent / Breaking badge */
.badge-breaking {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  z-index: 2;
  animation: blink 2s infinite;
}

@keyframes blink {
  50% { background: var(--red-hot); }
}

/* ==========================================================================
   6. Reading view & Single Post Otimizado
   ========================================================================== */
.article__progress {
  position: sticky;
  top: 124px; /* below sticky header */
  left: 0; right: 0;
  height: 3px;
  background: var(--border-soft);
  z-index: 40;
}

.article__progress-bar {
  height: 100%;
  background: var(--red);
  width: 0%;
}

.article__head {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.article__crumbs {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}

.article__crumbs a:hover {
  color: var(--red);
}

.article__kicker {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 16px;
  color: var(--red);
}

.article__title {
  font-family: var(--display);
  font-size: 36px;
  line-height: 1.0;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}

@media (min-width: 768px) {
  .article__title {
    font-size: 56px;
  }
}

.article__dek {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0 0 32px;
}

.article__byline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .article__byline {
    grid-template-columns: auto 1fr auto;
  }
}

.byline-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.byline-author__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  color: #000;
  font-size: 14px;
  letter-spacing: 0.05em;
  background: var(--gold);
}

.byline-author__avatar--lg {
  width: 72px; height: 72px;
  font-size: 22px;
}

.byline-author strong {
  display: block;
  font-family: var(--display);
  font-size: 14px;
}

.byline-author__role {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.article__byline-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
}

.article__share {
  display: flex;
  gap: 8px;
}

.share-btn {
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.15s;
}

.share-btn:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.article__hero {
  max-width: var(--container);
  margin: 0 auto 48px;
  padding: 0 24px;
}

.article__hero img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.article__hero figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  font-style: italic;
}

.article__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 48px;
}

@media (min-width: 992px) {
  .article__layout {
    grid-template-columns: 1fr 320px;
  }
}

.article-body {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 700px;
}

.article-body p {
  margin: 0 0 28px; /* Mais espaço entre parágrafos */
  font-size: 19px;
  line-height: 1.75;
}

.article-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  font-weight: 600;
  transition: color 0.15s ease-in-out;
}

.article-body a:hover {
  color: var(--red);
  text-decoration-color: var(--red);
}

.article-body h2 {
  margin: 56px 0 20px; /* Margem generosa em cima, limpa em baixo */
  font-size: 32px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--ink);
}

.article-body h3 {
  margin: 44px 0 16px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink);
}

.article-body h4 {
  margin: 36px 0 12px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
}

/* Espaçamento garantido quando há títulos seguidos (evita encavalar) */
.article-body h2 + h3,
.article-body h2 + h4,
.article-body h3 + h4 {
  margin-top: 28px !important;
}

.article-body p.lead {
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 32px;
}

.article-body > p:first-of-type::first-letter {
  font-family: var(--display);
  font-size: 64px;
  line-height: 0.85;
  float: left;
  color: var(--red);
  padding: 6px 10px 0 0;
  margin-right: 4px;
}

/* Pullquote in white version */
.pullquote {
  margin: 36px -24px;
  padding: 24px;
  border-top: 4px solid var(--red);
  border-bottom: 1px solid var(--border);
  font-family: var(--display);
  font-size: 32px;
  line-height: 1.15;
  color: var(--ink);
  position: relative;
}

@media (min-width: 768px) {
  .pullquote {
    margin: 36px -32px;
    padding: 24px 32px;
  }
}

.pullquote__mark {
  position: absolute;
  top: -2px; left: -8px;
  font-family: var(--display);
  font-size: 100px;
  color: var(--red);
  line-height: 1;
  pointer-events: none;
}

.pullquote p {
  margin: 0 0 12px;
}

.pullquote cite {
  font-family: var(--ui);
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.article__tags {
  margin: 32px 0;
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center;
  font-family: var(--ui);
  font-size: 12px;
}

.article__tags > span {
  color: var(--muted);
  margin-right: 8px;
}

.article__tags a {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 10px;
  color: var(--ink-soft);
}

.article__tags a:hover {
  border-color: var(--red);
  color: var(--red);
}

.article__bio {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 24px;
  background: var(--surface-2); /* elegant soft cream bio box */
  border-left: 4px solid var(--red);
  margin-top: 32px;
}

.article__bio strong {
  font-family: var(--display);
  font-size: 16px;
}

.article__bio span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.article__bio p {
  font-family: var(--serif);
  font-size: 15px;
  margin: 12px 0;
}

.btn-ghost {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 8px 14px;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.btn-ghost:hover {
  background: var(--red);
  color: #fff;
}

.article__rail {
  position: relative;
}

.article__sticky {
  position: sticky;
  top: 150px;
}

.article__sticky > * + * {
  margin-top: 24px;
}

/* ==========================================================================
   7. Archive, Category and Search Headers
   ========================================================================== */
.category-head {
  border-bottom: 6px solid var(--border);
  background: var(--bg);
  padding: 48px 0 24px;
}

.category-head__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-head__eyebrow {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
}

.category-head h1 {
  font-family: var(--display);
  font-size: 64px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.85;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

@media (min-width: 768px) {
  .category-head h1 {
    font-size: 110px;
  }
}

.category-head p {
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 700px;
  margin: 8px 0 0;
}

/* Wired Grid Layout */
.wired-top-grid {
  border-bottom: 2px solid var(--border);
  padding: 48px 0;
  background: var(--bg);
}

.wired-grid-border {
  border: 1px solid var(--border);
}

.wired-grid-border > * {
  border-bottom: 1px solid var(--border);
  padding: 24px;
}

@media (min-width: 768px) {
  .wired-grid-border {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .wired-grid-border > * {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
  .wired-grid-border > *:last-child {
    border-right: none;
  }
}

.card--wired-featured .card__media {
  aspect-ratio: 16/10;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.card--wired-featured .card__title {
  font-size: 24px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.card--wired-featured .card__dek {
  font-family: var(--ui);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 16px;
}

/* Horizontal List Cards */
.card--wired-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-soft);
}

@media (min-width: 768px) {
  .card--wired-list {
    grid-template-columns: 280px 1fr;
  }
}

.card--wired-list .card__media {
  aspect-ratio: 16/10;
  margin-bottom: 0;
  border: 1px solid var(--border);
}

.card--wired-list .card__title--lg {
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.card--wired-list .card__dek {
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 16px;
}

/* Search results screen layout */
.search-head {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 24px;
}

.search-head__form {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: 3px solid var(--red);
}

.search-head__form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.01em;
}

.search-head__form input::placeholder {
  color: var(--muted-2);
}

.search-head__form button {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.search-head__stats {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.search-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px 48px;
}

@media (min-width: 992px) {
  .search-body {
    grid-template-columns: 240px 1fr 280px;
  }
}

.search-filters h4 {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 32px 0 12px;
}

.search-filters h4:first-child {
  margin-top: 0;
}

.chip-row {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  padding: 10px 14px;
  font-family: var(--ui);
  font-size: 13px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.chip-row span:last-child {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.chip-row:hover, .chip-row.is-on {
  background: #FFF;
  border-color: var(--red);
  color: var(--red);
}

.search-results__head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 24px;
}

.search-results__head select {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 6px 8px;
  font-family: var(--ui);
  font-size: 12px;
}

.result {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-soft);
}

@media (min-width: 768px) {
  .result {
    grid-template-columns: 200px 1fr;
  }
}

.result__media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--surface);
}

.result__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result__url {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue);
  margin-bottom: 6px;
  display: block;
}

.result h3 {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--ink);
}

.result:hover h3 {
  color: var(--red);
}

.result p {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.result__meta {
  display: flex; gap: 10px; align-items: center;
  font-size: 12px; color: var(--muted);
}

.search-empty {
  padding: 64px 0;
  text-align: center;
}

.search-empty h3 {
  font-family: var(--display);
  font-size: 28px;
}

.search-empty p {
  color: var(--muted);
}

/* Most Read list styles */
.widget {
  background: var(--surface);
  padding: 24px;
  border: 1px solid var(--border);
}

.most-read {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: m;
}

.most-read li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: start;
}

.most-read li:last-child {
  border-bottom: 0;
}

.most-read__num {
  font-family: var(--display);
  font-size: 32px;
  line-height: 0.9;
  color: var(--red);
}

.most-read li a {
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.2;
  color: var(--ink);
}

.most-read li a:hover {
  color: var(--red);
}

/* ==========================================================================
   8. Monetização (Google AdSense Mockup styling)
   ========================================================================== */
.adsense-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.02) 0 12px, transparent 12px 24px),
    var(--surface);
  border: 1px dashed var(--border);
  border-color: #CFC9BC;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px auto;
  max-width: 100%;
}

.adsense-placeholder::before {
  content: 'PUBLICIDADE · Google AdSense';
  position: absolute;
  top: 4px; left: 4px;
  background: rgba(255,255,255,0.85);
  color: var(--muted);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  padding: 3px 6px;
  text-transform: uppercase;
}

.adsense-placeholder-inner {
  text-align: center;
  padding: 12px;
}

.adsense-placeholder-label {
  font-family: var(--display);
  font-size: 14px;
  color: var(--ink-soft);
  display: block;
  letter-spacing: 0.04em;
}

.adsense-placeholder-hint {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.adsense-placeholder--sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  margin: 0;
  background: #fff;
  border: none;
  border-top: 1px solid var(--border);
}

/* In-feed native ad card — looks like content, marked PUBLI */
.adcard {
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.adcard::before {
  content: 'PUBLI · AdSense';
  position: absolute;
  top: 0; right: 0;
  background: var(--gold);
  color: #000;
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  z-index: 2;
}
.adcard__media {
  aspect-ratio: 16/10;
  background:
    repeating-linear-gradient(135deg, rgba(241,178,58,0.12) 0 14px, transparent 14px 28px),
    var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}
.adcard__body { padding: 16px; }
.adcard__kicker {
  font-family: var(--display); font-size: 10px;
  letter-spacing: 0.1em; color: var(--gold);
  text-transform: uppercase;
}
.adcard__title {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.15;
  margin: 6px 0 8px;
  color: var(--ink);
}
.adcard__brand { font-size: 11px; color: var(--muted); }

/* Minimalist Pager */
.posts-pagination {
  display: flex; gap: 6px; justify-content: center;
  margin: 32px 0;
}

.posts-pagination a, .posts-pagination span {
  display: inline-block;
  background: var(--surface);
  color: var(--ink-soft);
  border: 1px solid var(--border);
  padding: 8px 14px;
  font-family: var(--display);
  font-size: 12px;
  transition: var(--transition);
}

.posts-pagination span.current, .posts-pagination a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ==========================================================================
   9. Premium Malamute Newsprint Footer (Contrasting Dark Footer)
   ========================================================================== */
.site-footer {
  background: #0A0A0A; /* Always deep black footer in white theme for premium contrast */
  color: #fff;
  border-top: 4px solid var(--red);
  margin-top: 64px;
}

.footer__top {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}

@media (min-width: 992px) {
  .footer__top {
    grid-template-columns: 320px 1fr;
  }
}

.footer__partners {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.footer__partners a {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--gold);
}

.footer__partners a:hover {
  background: rgba(229,37,29,0.1);
  border-left-color: var(--red);
}

.footer__partner-label {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer__partner-url {
  font-family: var(--mono);
  font-size: 13px;
  color: #E8E6E0;
  margin-top: 4px;
}

.footer__partners a:hover .footer__partner-url {
  color: #fff;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (min-width: 768px) {
  .footer__cols {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer__cols > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__cols h4 {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--gold);
}

.footer__cols a {
  font-size: 13px;
  color: #C8C5BD;
  padding: 2px 0;
}

.footer__cols a:hover {
  color: var(--red);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  max-width: var(--container);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
