/*
Theme Name: Tres de Dos Fanzine
Theme URI: https://www.tresdedos.website/
Author: Factoría Digital / Maya Comunicación
Description: Tema editorial tipo fanzine callejero para Tres de Dos. Portada de alto impacto, arquitectura basada únicamente en categorías existentes y diseño responsivo.
Version: 1.1.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: tres-de-dos
*/

:root {
  --ink: #11100f;
  --paper: #f3edda;
  --paper-2: #fff9e8;
  --red: #e52b1f;
  --blue: #2548e8;
  --yellow: #f4e900;
  --acid: #bbf233;
  --muted: #6b665a;
  --line: 3px solid var(--ink);
  --shadow: 7px 7px 0 var(--ink);
  --container: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(17,16,15,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,16,15,.02) 1px, transparent 1px),
    var(--paper);
  background-size: 23px 23px;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.55;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  z-index: 9999;
  background-image: radial-gradient(circle at 20% 10%, #000 0 .5px, transparent .7px), radial-gradient(circle at 70% 40%, #000 0 .45px, transparent .65px);
  background-size: 11px 13px, 17px 19px;
  mix-blend-mode: multiply;
}
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { 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; }

.tdd-wrap { width: min(calc(100% - 28px), var(--container)); margin-inline: auto; }
.tdd-skip { position: absolute; left: -9999px; top: 0; }
.tdd-skip:focus { left: 12px; top: 12px; z-index: 10000; background: var(--yellow); border: var(--line); padding: 10px 14px; }

/* Cabecera */
.site-header { padding: 18px 0 8px; }
.tdd-topline {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-top: var(--line); border-bottom: var(--line); padding: 7px 10px;
  font: 800 12px/1.2 Arial, Helvetica, sans-serif; text-transform: uppercase; letter-spacing: .08em;
  background: var(--paper-2);
}
.tdd-masthead {
  position: relative; margin: 18px 0 14px; min-height: 235px; overflow: hidden;
  border: 5px solid var(--ink); background: var(--yellow); box-shadow: 12px 12px 0 var(--red);
}
.tdd-masthead::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(-8deg, transparent 0 21px, rgba(0,0,0,.05) 22px 24px);
}
.tdd-masthead::after {
  content: 'NO LO TIRES'; position: absolute; right: -24px; top: 26px;
  padding: 8px 46px; background: var(--blue); color: white; border: var(--line);
  transform: rotate(8deg); font: 900 18px/1 Impact, 'Arial Black', sans-serif; letter-spacing: .08em;
}
.tdd-brand {
  position: relative; z-index: 2; display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 10px;
  min-height: 225px; padding: 20px 28px;
}
.tdd-hand { width: 150px; transform: rotate(-5deg); filter: drop-shadow(5px 5px 0 rgba(0,0,0,.18)); }
.tdd-brand-copy { transform: rotate(-1.2deg); }
.tdd-brand-name {
  display: block; margin: 0; font: 950 clamp(54px, 9vw, 132px)/.73 Impact, 'Arial Black', Arial, sans-serif;
  letter-spacing: -.055em; text-transform: uppercase; text-shadow: 4px 4px 0 var(--paper-2);
}
.tdd-brand-name .de { color: var(--red); -webkit-text-stroke: 2px var(--ink); text-stroke: 2px var(--ink); }
.tdd-brand-name .dos { color: var(--blue); -webkit-text-stroke: 2px var(--ink); text-stroke: 2px var(--ink); }
.tdd-brand-tagline {
  display: inline-block; margin-top: 18px; padding: 7px 12px; background: var(--ink); color: var(--paper-2);
  font: 800 14px/1.1 'Courier New', monospace; text-transform: uppercase; letter-spacing: .13em;
  transform: rotate(.8deg);
}

.tdd-nav-shell { position: sticky; top: 0; z-index: 1000; background: var(--paper); border-block: var(--line); }
.tdd-nav-row { display: flex; align-items: stretch; min-height: 52px; }
.tdd-menu-toggle { display: none; border: 0; border-right: var(--line); background: var(--red); color: white; padding: 0 18px; font: 900 14px/1 Arial, sans-serif; text-transform: uppercase; }
.tdd-nav { flex: 1; overflow-x: auto; scrollbar-width: thin; }
.tdd-nav ul { list-style: none; margin: 0; padding: 0; display: flex; min-width: max-content; }
.tdd-nav a { display: block; padding: 15px 14px 13px; border-right: 2px solid var(--ink); font: 900 13px/1.2 Arial, sans-serif; text-transform: uppercase; text-decoration: none; }
.tdd-nav a:hover, .tdd-nav .current-menu-item > a, .tdd-nav .current-cat > a { background: var(--ink); color: var(--yellow); }
.tdd-search-button { min-width: 54px; border: 0; border-left: var(--line); background: var(--blue); color: white; font-size: 22px; cursor: pointer; }
.tdd-search-panel { display: none; padding: 12px; background: var(--ink); }
.tdd-search-panel.is-open { display: block; }
.tdd-search-panel form { display: flex; gap: 8px; }
.tdd-search-panel input[type='search'] { flex: 1; min-width: 0; padding: 12px; border: 3px solid white; background: var(--paper-2); }
.tdd-search-panel button { border: 3px solid white; background: var(--red); color: white; padding: 10px 18px; font-weight: 900; text-transform: uppercase; }

/* Utilidades editoriales */
.tdd-kicker { font: 900 12px/1.2 Arial, sans-serif; text-transform: uppercase; letter-spacing: .12em; }
.tdd-stamp { display: inline-block; padding: 5px 8px 4px; border: 2px solid currentColor; font: 900 11px/1 Arial, sans-serif; text-transform: uppercase; letter-spacing: .08em; transform: rotate(-1deg); }
.tdd-section-block {
  position: relative;
  clear: both;
  display: flow-root;
  margin-top: 54px;
}
.tdd-section-block:first-of-type { margin-top: 0; }
.tdd-section-title {
  position: relative;
  z-index: 3;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 18px;
  border-bottom: 7px solid var(--ink); padding-bottom: 9px;
}

.tdd-section-title h2, .tdd-section-title h1 { margin: 0; font: 950 clamp(34px, 4.2vw, 58px)/.96 Impact, 'Arial Black', sans-serif; text-transform: uppercase; letter-spacing: -.025em; overflow-wrap: anywhere; }
.tdd-section-title a { font: 900 12px/1 Arial, sans-serif; text-transform: uppercase; white-space: nowrap; }
.tdd-section-title .num { color: var(--red); }
.tdd-subcats { display: flex; flex-wrap: wrap; gap: 7px; margin-top: -9px; margin-bottom: 17px; }
.tdd-subcats a { border: 2px solid var(--ink); background: var(--paper-2); padding: 5px 8px; font: 800 11px/1.1 Arial, sans-serif; text-transform: uppercase; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); }
.tdd-subcats a:hover { background: var(--yellow); color: var(--ink); transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--ink); }

/* Portada */
.tdd-breaking { margin: 18px 0; display: grid; grid-template-columns: auto 1fr; border: var(--line); background: var(--paper-2); box-shadow: 5px 5px 0 var(--ink); }
.tdd-breaking-label { background: var(--red); color: white; padding: 10px 14px; font: 950 13px/1.2 Arial, sans-serif; text-transform: uppercase; }
.tdd-breaking-track { overflow: hidden; padding: 10px 14px; font: 800 13px/1.2 'Courier New', monospace; white-space: nowrap; text-overflow: ellipsis; }
.tdd-hero { display: grid; grid-template-columns: 1.55fr .85fr; gap: 20px; margin: 26px 0 42px; }
.tdd-lead { position: relative; border: 5px solid var(--ink); background: var(--paper-2); box-shadow: 10px 10px 0 var(--ink); }
.tdd-lead-media { aspect-ratio: 16/9; overflow: hidden; border-bottom: 5px solid var(--ink); background: #d7d0bd; }
.tdd-lead-media img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05) saturate(.9); transition: .25s ease; }
.tdd-lead:hover img { transform: scale(1.02); }
.tdd-lead-body { padding: clamp(18px, 3vw, 32px); }
.tdd-lead h1 { margin: 10px 0 12px; font: 950 clamp(38px, 5.1vw, 77px)/.91 Impact, 'Arial Black', sans-serif; letter-spacing: -.028em; }
.tdd-lead h1 a { text-decoration: none; }
.tdd-lead p { margin: 0; max-width: 74ch; font-size: 18px; }
.tdd-lead .tdd-post-meta { margin-top: 16px; }
.tdd-side-stack { display: grid; gap: 18px; align-content: start; }
.tdd-side-card { border: var(--line); background: var(--paper-2); box-shadow: 6px 6px 0 var(--red); transform: rotate(.35deg); }
.tdd-side-card:nth-child(even) { transform: rotate(-.45deg); box-shadow: 6px 6px 0 var(--blue); }
.tdd-side-card .media { aspect-ratio: 16/9; overflow: hidden; border-bottom: var(--line); }
.tdd-side-card img { width: 100%; height: 100%; object-fit: cover; }
.tdd-side-card .body { padding: 14px; }
.tdd-side-card h2 { margin: 7px 0 0; font: 900 clamp(22px, 2.5vw, 34px)/1 Impact, 'Arial Black', sans-serif; }
.tdd-side-card h2 a { text-decoration: none; }


/* Blindaje de la portada principal frente a estilos heredados de WordPress,
   plugins o CSS adicional. El cuerpo y el titular del hero siempre participan
   en el flujo normal para que la siguiente sección comience después de ellos. */
.home .tdd-hero {
  position: relative !important;
  float: none !important;
  grid-auto-rows: auto !important;
  align-items: start !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  contain: none !important;
}
.home .tdd-lead {
  position: relative !important;
  float: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-self: start !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  contain: none !important;
}
.home .tdd-lead-media {
  position: relative !important;
  inset: auto !important;
  float: none !important;
  display: block !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  transform: none !important;
}
.home .tdd-lead-body {
  position: static !important;
  inset: auto !important;
  float: none !important;
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  clear: both !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  padding: clamp(18px, 3vw, 32px) !important;
  transform: none !important;
}
.home .tdd-lead h1 {
  position: static !important;
  inset: auto !important;
  float: none !important;
  display: block !important;
  clear: both !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 10px 0 12px !important;
  padding: 0 !important;
  overflow: visible !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  line-height: .96 !important;
  transform: none !important;
}
.home .tdd-lead h1 a {
  position: static !important;
  inset: auto !important;
  display: inline !important;
  height: auto !important;
  line-height: inherit !important;
  white-space: normal !important;
}
.home .tdd-lead-body > p,
.home .tdd-lead .tdd-post-meta {
  position: static !important;
  inset: auto !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  transform: none !important;
}
.home .tdd-hero + .tdd-section-block {
  position: relative !important;
  clear: both !important;
  margin-top: 54px !important;
}

.tdd-post-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr));
  grid-auto-rows: auto !important;
  align-items: stretch;
  gap: 24px 20px;
  min-width: 0;
}
.tdd-card {
  position: relative !important;
  float: none !important;
  display: flex !important;
  flex-direction: column;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  overflow: visible !important;
  border: var(--line); background: var(--paper-2); box-shadow: 6px 6px 0 var(--ink); transition: transform .15s ease, box-shadow .15s ease;
}
.tdd-card:hover { transform: translate(-2px,-2px) rotate(-.15deg); box-shadow: 9px 9px 0 var(--ink); }
.tdd-card-media { display: block !important; flex: 0 0 auto; width: 100%; aspect-ratio: 16/10; overflow: hidden; border-bottom: var(--line); background: #ddd4c0; }
.tdd-card-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.04); }
.tdd-card-body {
  position: static !important;
  float: none !important;
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 16px;
}
.tdd-card h3 {
  position: static !important;
  float: none !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 9px 0 10px !important;
  padding: 0 !important;
  overflow: visible !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
  transform: none !important;
  font: 900 clamp(23px, 1.75vw, 32px)/1.08 Impact, 'Arial Black', sans-serif !important;
  letter-spacing: -.012em;
}
.tdd-card h3 a { position: static !important; display: inline !important; text-decoration: none; line-height: inherit !important; }
.tdd-card p {
  position: static !important;
  margin: 0;
  font-size: 15px;
  line-height: 1.42 !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.tdd-card .tdd-post-meta { position: static !important; margin-top: auto; padding-top: 13px; }
.tdd-card-index { position: absolute; top: 8px; right: 8px; z-index: 2; min-width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid var(--ink); background: var(--yellow); font: 900 17px/1 Impact, sans-serif; transform: rotate(3deg); }

.tdd-poster-band { margin: 52px 0; border: 5px solid var(--ink); background: var(--blue); color: white; box-shadow: 12px 12px 0 var(--yellow); padding: clamp(22px, 4vw, 50px); transform: rotate(-.25deg); }
.tdd-poster-band h2 { margin: 0 0 12px; font: 950 clamp(44px, 8vw, 105px)/.83 Impact, 'Arial Black', sans-serif; text-transform: uppercase; letter-spacing: -.04em; }
.tdd-poster-band p { margin: 0; max-width: 70ch; font: 700 17px/1.5 'Courier New', monospace; }

.tdd-list-strip { display: grid !important; grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: auto !important; align-items: stretch; border-top: 5px solid var(--ink); border-left: 5px solid var(--ink); }
.tdd-list-item { position: relative !important; float: none !important; display: grid !important; grid-template-columns: 72px minmax(0,1fr); align-items: start; gap: 12px; width: auto !important; height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; padding: 16px; border-right: 5px solid var(--ink); border-bottom: 5px solid var(--ink); background: var(--paper-2); }
.tdd-list-item .n { font: 950 46px/.9 Impact, sans-serif; color: var(--red); }
.tdd-list-item h3 { position: static !important; float: none !important; display: block !important; width: auto !important; height: auto !important; min-height: 0 !important; max-height: none !important; margin: 2px 0 0 !important; overflow: visible !important; white-space: normal !important; overflow-wrap: anywhere; transform: none !important; font: 900 clamp(21px, 1.45vw, 25px)/1.09 Impact, 'Arial Black', sans-serif !important; }
.tdd-list-item h3 a { position: static !important; display: inline !important; text-decoration: none; line-height: inherit !important; }

.tdd-ad { margin: 34px 0; min-height: 110px; display: grid; place-items: center; text-align: center; border: 3px dashed var(--ink); background: repeating-linear-gradient(135deg, rgba(0,0,0,.035) 0 12px, transparent 12px 24px), var(--paper-2); padding: 20px; }
.tdd-ad strong { display: block; font: 950 28px/1 Impact, sans-serif; text-transform: uppercase; }
.tdd-ad span { font: 700 12px/1.4 Arial, sans-serif; text-transform: uppercase; letter-spacing: .08em; }


/* Blindaje contra estilos heredados de plugins o CSS adicional */
.tdd-fanzine .tdd-section-block article,
.tdd-fanzine .tdd-section-block article > div,
.tdd-fanzine .tdd-section-block article h2,
.tdd-fanzine .tdd-section-block article h3,
.tdd-fanzine .tdd-section-block article p,
.tdd-fanzine .tdd-section-block article .tdd-post-meta {
  box-sizing: border-box;
}
.home .tdd-post-grid .tdd-card-body > p {
  -webkit-line-clamp: 2;
}

/* Archivo y contenido */
.tdd-content-shell { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 34px; margin: 34px auto 60px; }
.tdd-content-shell.no-sidebar { grid-template-columns: 1fr; max-width: 980px; }
.tdd-archive-intro { margin-bottom: 24px; padding: 16px 18px; border-left: 10px solid var(--red); background: var(--paper-2); }
.tdd-archive-intro p { margin: 0; }
.tdd-article { border: 4px solid var(--ink); background: var(--paper-2); box-shadow: 10px 10px 0 var(--ink); padding: clamp(20px, 4vw, 52px); }
.tdd-article-header { margin-bottom: 24px; }
.tdd-article-title { margin: 9px 0 16px; font: 950 clamp(44px, 7vw, 92px)/.91 Impact, 'Arial Black', sans-serif; letter-spacing: -.03em; }
.tdd-post-meta { display: flex; flex-wrap: wrap; gap: 9px 16px; color: var(--muted); font: 800 12px/1.25 Arial, sans-serif; text-transform: uppercase; letter-spacing: .05em; }
.tdd-featured { margin: 24px -18px 30px; border-block: 5px solid var(--ink); }
.tdd-featured img { width: 100%; max-height: 680px; object-fit: cover; }
.tdd-entry { font-size: clamp(17px, 1.6vw, 20px); }
.tdd-entry > * { max-width: 780px; margin-left: auto; margin-right: auto; }
.tdd-entry h2, .tdd-entry h3 { font-family: Impact, 'Arial Black', sans-serif; line-height: 1; }
.tdd-entry h2 { margin-top: 2em; font-size: clamp(34px, 4vw, 55px); }
.tdd-entry h3 { margin-top: 1.7em; font-size: clamp(27px, 3vw, 39px); }
.tdd-entry blockquote { border: 4px solid var(--ink); background: var(--yellow); box-shadow: 6px 6px 0 var(--ink); padding: 22px; font: 900 24px/1.25 Georgia, serif; transform: rotate(-.25deg); }
.tdd-entry figure { max-width: 100%; }
.tdd-entry img { border: 3px solid var(--ink); }
.tdd-entry a { color: var(--blue); font-weight: 700; }
.tdd-entry table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tdd-entry th, .tdd-entry td { border: 2px solid var(--ink); padding: 9px; }
.tdd-entry th { background: var(--yellow); }
.tdd-tags { margin-top: 34px; display: flex; gap: 8px; flex-wrap: wrap; }
.tdd-tags a { border: 2px solid var(--ink); padding: 6px 9px; background: var(--paper); font: 800 11px/1 Arial, sans-serif; text-transform: uppercase; text-decoration: none; }
.tdd-author-box { margin-top: 38px; border: 4px solid var(--ink); background: var(--yellow); padding: 20px; box-shadow: 6px 6px 0 var(--red); }
.tdd-author-box h3 { margin: 0 0 7px; font: 900 30px/1 Impact, sans-serif; }

.tdd-sidebar { align-self: start; position: sticky; top: 78px; }
.tdd-widget { margin-bottom: 24px; border: var(--line); background: var(--paper-2); box-shadow: 6px 6px 0 var(--ink); padding: 17px; }
.tdd-widget-title { margin: -17px -17px 15px; padding: 10px 13px; background: var(--ink); color: var(--yellow); font: 900 22px/1 Impact, sans-serif; text-transform: uppercase; }
.tdd-widget ul { list-style: none; margin: 0; padding: 0; }
.tdd-widget li { padding: 9px 0; border-bottom: 2px solid var(--ink); font-weight: 700; }
.tdd-widget li:last-child { border-bottom: 0; }

.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0; }
.page-numbers { min-width: 42px; min-height: 42px; display: grid; place-items: center; border: 2px solid var(--ink); background: var(--paper-2); box-shadow: 3px 3px 0 var(--ink); font: 900 14px/1 Arial, sans-serif; text-decoration: none; }
.page-numbers.current, .page-numbers:hover { background: var(--red); color: white; }

/* Footer */
.site-footer { margin-top: 70px; border-top: 8px solid var(--ink); background: var(--ink); color: var(--paper-2); }
.tdd-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding: 44px 0; }
.tdd-footer-brand { font: 950 clamp(48px, 6vw, 82px)/.78 Impact, 'Arial Black', sans-serif; text-transform: uppercase; color: var(--yellow); }
.tdd-footer-brand span { color: var(--red); }
.tdd-footer-title { margin: 0 0 12px; color: var(--yellow); font: 900 24px/1 Impact, sans-serif; text-transform: uppercase; }
.tdd-footer-links { list-style: none; padding: 0; margin: 0; }
.tdd-footer-links li { margin: 7px 0; }
.tdd-footer-links a { color: white; }
.tdd-copyright { border-top: 2px solid #555; padding: 14px 0 22px; color: #cfc8b7; font: 700 11px/1.4 Arial, sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.tdd-backtop { position: fixed; right: 18px; bottom: 18px; width: 48px; height: 48px; border: 3px solid var(--ink); background: var(--yellow); box-shadow: 4px 4px 0 var(--ink); font-size: 24px; cursor: pointer; display: none; z-index: 900; }
.tdd-backtop.is-visible { display: block; }

@media (max-width: 1120px) {
  .tdd-post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tdd-card h3 { font-size: clamp(24px, 2.7vw, 31px) !important; }
}

@media (max-width: 980px) {
  .tdd-brand { grid-template-columns: 110px 1fr; }
  .tdd-hand { width: 105px; }
  .tdd-masthead { min-height: 190px; }
  .tdd-brand { min-height: 180px; }
  .tdd-hero { grid-template-columns: 1fr; }
  .tdd-side-stack { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tdd-post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tdd-content-shell { grid-template-columns: 1fr; }
  .tdd-sidebar { position: static; }
  .tdd-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .tdd-wrap { width: min(calc(100% - 18px), var(--container)); }
  .tdd-topline { align-items: flex-start; flex-direction: column; gap: 5px; }
  .tdd-masthead { margin-top: 10px; min-height: 175px; box-shadow: 7px 7px 0 var(--red); }
  .tdd-masthead::after { top: 9px; right: -43px; font-size: 13px; }
  .tdd-brand { grid-template-columns: 75px 1fr; gap: 3px; min-height: 165px; padding: 18px 12px 12px; }
  .tdd-hand { width: 74px; }
  .tdd-brand-name { font-size: clamp(44px, 18vw, 72px); line-height: .75; }
  .tdd-brand-tagline { font-size: 9px; margin-top: 11px; letter-spacing: .08em; }
  .tdd-menu-toggle { display: block; }
  .tdd-nav { display: none; position: absolute; inset: 52px 0 auto 0; background: var(--paper); border-bottom: 4px solid var(--ink); max-height: 72vh; overflow: auto; }
  .tdd-nav.is-open { display: block; }
  .tdd-nav ul { display: block; min-width: 0; }
  .tdd-nav a { border-right: 0; border-bottom: 2px solid var(--ink); }
  .tdd-breaking { grid-template-columns: 1fr; }
  .tdd-hero { margin-top: 18px; }
  .tdd-lead { box-shadow: 7px 7px 0 var(--ink); }
  .tdd-lead h1 { font-size: clamp(36px, 10.5vw, 54px) !important; line-height: .98 !important; }
  .tdd-side-stack, .tdd-post-grid, .tdd-list-strip { grid-template-columns: 1fr; }
  .tdd-card h3 { font-size: clamp(25px, 8vw, 34px) !important; line-height: 1.08 !important; }
  .tdd-section-title { align-items: flex-end; }
  .tdd-section-title h2, .tdd-section-title h1 { font-size: 42px; }
  .tdd-list-item { grid-template-columns: 54px 1fr; }
  .tdd-article { border-width: 3px; box-shadow: 6px 6px 0 var(--ink); padding: 18px; }
  .tdd-article-title { font-size: clamp(45px, 14vw, 70px); }
  .tdd-featured { margin-inline: -18px; }
  .tdd-footer-grid { grid-template-columns: 1fr; }
}

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