/* Tortilla News — B2B trade publication draft
   System: warm neutrals + chili red #ED2224
*/

:root {
  --chili: #ED2224;
  --chili-dark: #6f1212;
  --chili-soft: #f6e8e6;
  --corn: #c9952a;
  --ink: #1c1917;
  --ink-muted: #57534e;
  --paper: #faf7f2;
  --card: #ffffff;
  --line: #e7e0d6;
  --sidebar-bg: #f3eee6;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.06), 0 8px 24px rgba(28, 25, 23, 0.04);
  --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--chili);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--chili-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--corn);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--chili);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.logo:hover {
  opacity: 0.88;
}

.logo-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(240px, 55vw);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  align-items: center;
  justify-content: flex-end;
}

.nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--chili);
  background: var(--chili-soft);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Leaderboard */
.ad-leaderboard-wrap {
  background: #f0ebe3;
  border-bottom: 1px solid var(--line);
}

.ad-leaderboard-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  justify-content: center;
}

.ad-unit {
  text-align: center;
}

.ad-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a8a29e;
  margin-bottom: 0.35rem;
}

.ad-box {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background: repeating-linear-gradient(
    -45deg,
    #efe9df,
    #efe9df 8px,
    #e7e0d6 8px,
    #e7e0d6 16px
  );
  border: 1px dashed #cfc5b8;
  color: var(--ink-muted);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
}

.ad-728x90 {
  width: min(728px, 100%);
  height: 90px;
}

.ad-320x50 {
  display: none;
  width: min(320px, 100%);
  height: 50px;
}

.ad-300x250 {
  width: min(300px, 100%);
  height: 250px;
}

.ad-inarticle {
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--sidebar-bg);
  border-radius: var(--radius);
  border: 1px dashed var(--line);
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.35rem 1.25rem 3rem;
}

.hero {
  margin-bottom: 1.5rem;
  padding: 1.15rem 0 1rem;
  border-bottom: 1px solid var(--line);
}

.hero-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chili);
  margin-bottom: 0.45rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.8vw, 2.2rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  max-width: 44rem;
  color: var(--ink-muted);
  font-size: 1.02rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.75fr);
  gap: 2rem;
  align-items: start;
}

/* Filters */
.feed-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 1.15rem;
}

.feed-toolbar label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-right: 0.2rem;
}

.filter-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--chili);
  color: var(--chili);
}

.filter-btn[aria-pressed="true"] {
  background: var(--chili);
  border-color: var(--chili);
  color: #fff;
}

/* Story cards */
.feed {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.story-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.2rem;
  box-shadow: var(--shadow);
}

.story-card-sponsored {
  border-color: #d4a017;
  background: linear-gradient(180deg, #fffdf5 0%, #fff 40%);
  box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.25), var(--shadow);
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.story-date {
  font-weight: 600;
  color: var(--ink);
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.18rem 0.48rem;
  border-radius: 4px;
  background: var(--sidebar-bg);
  color: var(--ink-muted);
}

.tag-sponsored {
  background: #1c1917;
  color: #fbbf24;
  letter-spacing: 0.06em;
}

.tag-plants-people { background: #f6e8e6; color: var(--chili-dark); }
.tag-ma { background: #efe8f6; color: #5b3a7a; }
.tag-products { background: #eef6e8; color: #3d5c2a; }
.tag-ingredients { background: #fff4e0; color: #8a5a10; }
.tag-equipment-packaging { background: #e8f0f6; color: #2a4a5c; }
.tag-regulation { background: #fde8e8; color: #8b1e1e; }
.tag-shows { background: #e8f6f2; color: #1f5c4d; }

.story-card h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0 0 0.45rem;
  letter-spacing: -0.015em;
}

.story-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.story-card h2 a:hover {
  color: var(--chili);
}

.story-summary {
  margin: 0 0 0.8rem;
  color: var(--ink-muted);
  font-size: 0.96rem;
}

.story-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.story-source {
  color: var(--ink-muted);
}

.story-source strong {
  color: var(--ink);
  font-weight: 600;
}

.story-companies {
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.read-link {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.read-link::after {
  content: " →";
}

.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--ink-muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel {
  background: var(--sidebar-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem;
}

.panel-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--corn);
  margin-bottom: 0.4rem;
}

.panel h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin: 0 0 0.4rem;
}

.panel p {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.panel p:last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  background: var(--chili);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--chili-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--chili) !important;
  border: 1px solid var(--chili);
}

.btn-ghost:hover {
  background: var(--chili-soft);
}

.panel-placeholder {
  border-style: dashed;
  background: repeating-linear-gradient(
    -45deg,
    var(--sidebar-bg),
    var(--sidebar-bg) 8px,
    #efe9df 8px,
    #efe9df 16px
  );
}

.placeholder-note {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-style: italic;
}

.sponsor-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.sponsor-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 64px;
  padding: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-muted);
  background: var(--card);
  border: 1px dashed #cfc5b8;
  border-radius: 6px;
  text-decoration: none;
}

.sponsor-tile:hover {
  border-color: var(--chili);
  color: var(--chili);
}

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

.show-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.show-list li:last-child {
  border-bottom: none;
}

.show-list .show-date {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.newsletter-mini .form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.newsletter-mini input[type="email"] {
  width: 100%;
  font: inherit;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

/* This week 3-up */
.this-week {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.this-week h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.week-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  display: block;
}

.week-card:hover {
  border-color: #d4c8b8;
}

.week-card:hover h3 {
  color: var(--chili);
}

.week-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chili);
  margin-bottom: 0.4rem;
}

.week-card h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin: 0 0 0.4rem;
  line-height: 1.3;
  color: var(--ink);
}

.week-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* Page content */
.page-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}

.page-header p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 42rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 1.6rem 0 0.55rem;
}

.prose p,
.prose li {
  color: var(--ink-muted);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose strong {
  color: var(--ink);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  align-items: start;
}

/* Article */
.article-layout {
  max-width: 760px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.breadcrumb a {
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb-current {
  color: var(--ink);
}

.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  line-height: 1.2;
  margin: 0.5rem 0 0.65rem;
  letter-spacing: -0.02em;
}

.article-kickers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.article-byline {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin: 0 0 0.75rem;
}

.article-dek {
  font-size: 1.08rem;
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
  max-width: 40rem;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0.9rem 1rem;
  background: var(--sidebar-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.fact-strip dt {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--corn);
  margin: 0 0 0.2rem;
}

.fact-strip dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.92rem;
}

.why-box {
  background: #fff;
  border-left: 4px solid var(--chili);
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-left-color: var(--chili);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}

.why-box h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--chili-dark);
}

.why-box ul {
  margin: 0;
  padding-left: 1.1rem;
}

.why-box li {
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.article-body {
  max-width: none;
}

.article-body p {
  font-size: 1.02rem;
  margin: 0 0 1rem;
}

.company-chips,
.article-tags {
  margin: 1.25rem 0;
}

.meta-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-right: 0.5rem;
}

.chip {
  display: inline-block;
  background: var(--sidebar-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0.15rem 0.2rem 0.15rem 0;
}

.related {
  margin: 2rem 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.related h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.85rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.related-card {
  display: block;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
  color: var(--ink);
}

.related-card:hover strong {
  color: var(--chili);
}

.related-date {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.soft-cta,
.newsletter-inline {
  margin-bottom: 1rem;
}

/* Guide */
.guide-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.65rem;
  margin: 1.25rem 0 2rem;
}

.guide-cat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink);
}

.guide-cat:hover {
  border-color: var(--chili);
  color: var(--chili);
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.listing-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.listing-card .sample-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #fff4e0;
  color: #8a5a10;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.listing-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.listing-card .listing-cat {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--chili);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.listing-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Rate card */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0.75rem 0 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.rate-table th {
  background: var(--sidebar-bg);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.rate-table tr:last-child td {
  border-bottom: none;
}

.estimate-note {
  background: var(--chili-soft);
  border: 1px solid #e8cfc9;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--chili-dark);
  margin: 0 0 1.5rem;
}

/* Forms */
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  max-width: 32rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.checkbox-row {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.checkbox-row input {
  margin-top: 0.2rem;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 0 0 1rem;
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  background: var(--chili-soft);
  color: var(--chili-dark);
  font-size: 0.92rem;
  border: 1px solid #e8cfc9;
}

.form-status.is-visible {
  display: block;
}

/* Sticky mobile ad */
.sticky-mobile-ad {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(28, 25, 23, 0.92);
  padding: 0.5rem 0.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.sticky-mobile-ad .ad-box {
  background: #44403c;
  border-color: #57534e;
  color: #d6d3d1;
}

.sticky-dismiss {
  appearance: none;
  border: none;
  background: transparent;
  color: #e7e5e4;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
}

/* Footer */
.site-footer {
  background: #1c1917;
  color: #d6d3d1;
  margin-top: 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer a {
  color: #e7e5e4;
}

.site-footer a:hover {
  color: #fff;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.footer-col h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a8a29e;
  margin: 0 0 0.65rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.coming-soon {
  font-size: 0.75rem;
  color: var(--corn);
  font-weight: 600;
  margin-left: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid #44403c;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem 1.5rem;
  font-size: 0.85rem;
  color: #a8a29e;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

/* Responsive */
@media (max-width: 980px) {
  .nav {
    display: none;
    position: absolute;
    right: 1rem;
    left: 1rem;
    top: calc(100% + 0.25rem);
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
    max-height: min(70vh, 480px);
    overflow-y: auto;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    font-size: 0.95rem;
    padding: 0.65rem 0.85rem;
    white-space: normal;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-header,
  .header-inner {
    position: relative;
  }

  .layout,
  .content-grid,
  .footer-inner,
  .week-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .ad-728x90 {
    display: none;
  }

  .ad-320x50 {
    display: flex;
  }

  .sticky-mobile-ad:not([hidden]) {
    display: flex;
  }

  body {
    padding-bottom: 64px;
  }
}

@media (max-width: 860px) {
  .sidebar {
    order: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
