/*
Theme Name: Jute Journal
Theme URI: 
Author: Jute Journal
Description: Custom news theme for The Jute Journal
Version: 1.1
*/

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

body {
  font-family: Garamond, "Adobe Garamond Pro", "EB Garamond", serif;
  background: #f6f6f6;
  color: #111;
  margin: 0;
  padding: 0;
}

/* =========================================
   Issue banner (dismissable marquee) — FULL CSS
   X is on the RIGHT, after the text
   Mobile speed is faster than desktop
   ========================================= */

.issue-banner {
  background: #fff;
  color: #111;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  width: 100%;
}

.issue-banner--in-header {
  position: relative;
}

.issue-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.55rem 2rem;
  overflow: hidden;

  /* one row: text area then X on the right */
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* text area should take remaining width and hide overflow */
.issue-banner__track {
  flex: 1;
  min-width: 0;

  display: inline-flex;
  gap: 3rem;
  white-space: nowrap;
  will-change: transform;

  /* Desktop/default speed */
  animation: issueMarquee 30s linear infinite;
}

.issue-banner__text {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* Close button lives AFTER the text, on the far right */
.issue-banner__close {
  flex: 0 0 auto;
  margin-left: auto; /* pushes it fully to the right */

  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 22px;
  line-height: 32px;
  padding: 0;
  opacity: 0.7;
}

.issue-banner__close:hover,
.issue-banner__close:focus {
  opacity: 1;
}

.issue-banner__close:focus {
  outline: 2px solid #111;
  outline-offset: 2px;
}

@keyframes issueMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .issue-banner__inner { overflow: visible; }

  .issue-banner__track {
    animation: none;
    display: block;
    white-space: normal;
  }

  .issue-banner__text[aria-hidden="true"] { display: none; }

  .issue-banner__text {
    display: block;
    letter-spacing: normal;
  }
}

@media screen and (max-width: 767px) {
  .issue-banner__inner {
    padding: 0.55rem 1rem;
    gap: 0.5rem;
  }

  /* Mobile speed (faster) */
  .issue-banner__track {
    animation-duration: 14s;
  }
}

/* Rest of header */

.site-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 1.25rem 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  position: relative;
}

.header-logo a { text-decoration: none; color: #111; }

.header-logo-img { max-height: 200px; width: auto; }

.header-logo-text {
  font-family: Avenir, "Avenir Next", "Avenir Next LT Pro", system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
}

.header-logo-img + .header-logo-text { display: none; }

/* ── Desktop nav — ALWAYS visible unless overridden by mobile query ── */
.desktop-nav { border-top: 1px solid #e0e0e0; }

.desktop-nav .nav-link {
  font-family: Avenir, "Avenir Next", "Avenir Next LT Pro", system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #333;
  padding: 0.6rem 0.9rem;
  transition: color 0.15s ease;
  display: inline-block;
  text-decoration: none;
}

.desktop-nav .nav-link:hover,
.desktop-nav .nav-link.active-cat {
  color: #111;
  border-bottom: 2px solid #111;
}

/* Category-specific colors (desktop only) */
@media screen and (min-width: 768px) {
  /* University */
  .nav-link[href*="/category/university/"],
  .nav-link[href*="/university/"] {
    color: #000;
  }
  
  .nav-link[href*="/category/university/"]:hover,
  .nav-link[href*="/category/university/"].active-cat,
  .nav-link[href*="/university/"]:hover,
  .nav-link[href*="/university/"].active-cat {
    color: #000;
    border-bottom-color: #000;
  }
  
  /* Local */
  .nav-link[href*="/category/local/"],
  .nav-link[href*="/local/"] {
    color: #000;
  }
  
  .nav-link[href*="/category/local/"]:hover,
  .nav-link[href*="/category/local/"].active-cat,
  .nav-link[href*="/local/"]:hover,
  .nav-link[href*="/local/"].active-cat {
    color: #000;
    border-bottom-color: #000;
  }
  
  /* Commentary */
  .nav-link[href*="/category/commentary/"],
  .nav-link[href*="/commentary/"] {
    color: #000;
  }
  
  .nav-link[href*="/category/commentary/"]:hover,
  .nav-link[href*="/category/commentary/"].active-cat,
  .nav-link[href*="/commentary/"]:hover,
  .nav-link[href*="/commentary/"].active-cat {
    color: #000;
    border-bottom-color: #000;
  }
}

/* ── Burger — hidden on desktop ── */
.burger-btn {
  display: none !important;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile drawer — hidden on desktop ── */
.mobile-nav {
  display: none !important;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  border-top: 1px solid #e0e0e0;
}

.mobile-nav-link {
  font-family: Avenir, "Avenir Next", "Avenir Next LT Pro", system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #111;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}

.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover { background: #f6f6f6; }
.mobile-nav-link.active-cat { background: #f0f0f0; }

/* ── Category heading ── */
.category-heading {
  background: #fff;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem 0.5rem;
  border-bottom: 3px solid #111;
}

.category-heading h1 {
  font-family: Avenir, "Avenir Next", "Avenir Next LT Pro", system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #111;
  margin: 0;
}

.category-heading .post-count {
  font-size: 0.78rem;
  color: #888;
  margin-top: 4px;
}

.site-footer {
  background: #0a0a0a;
  color: #bbb;
  padding: 2rem 2rem;
  font-size: 0.8rem;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-footer__brand strong {
  color: #fff;
  font-family: Avenir, "Avenir Next", "Avenir Next LT Pro", system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: 0.02em;
}

.site-footer__tagline {
  margin-top: 0.35rem;
  color: #888;
}

.site-footer__nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer__nav a {
  color: #ddd;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 2px;
}

.site-footer__nav a:hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.45);
}

.site-footer__meta {
  color: #777;
}

/* ════════════════════════════════════
   LAYOUT / CONTAINER
════════════════════════════════════ */
.container-fluid {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

/* ═════════════════════════════════════
   CARDS — SHARED
════════════════════════════════════ */
.news-card {
  background: #fff;
  border: none;
  border-radius: 0;
  font-family: Garamond, "Adobe Garamond Pro", "EB Garamond", serif;
}

.news-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.news-card-link:hover .card-title { text-decoration: underline; }

.card-category {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 0.3rem;
}

.card-title {
  font-family: Avenir, "Avenir Next", "Avenir Next LT Pro", system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #111;
  margin-bottom: 0.4rem;
}

.card-text {
  font-size: 0.8rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 0.5rem;
}

.card-meta { font-size: 0.7rem; color: #999; }
.card-meta .author { font-weight: 600; color: #555; }

/* ── Hero card ── */
.hero-card { border: none; border-radius: 0; }
.hero-card .card-img-top { border-radius: 0; object-fit: cover; width: 100%; }
.hero-card .card-body { padding: 0.75rem 0 0; }
.hero-card .card-title { font-size: 1.4rem; }
.hero-card .card-text { font-size: 0.875rem; }

/* ── Side cards ── */
.side-card {
  display: block;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
}

.side-card:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.side-card-img-top {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  margin-bottom: 0.5rem;
}

.side-card-body { padding: 0; }
.side-card .card-title { font-size: 0.85rem; }

/* ── Text-only cards ── */
.text-card { padding-bottom: 0.9rem; }
.text-card .card-title { font-size: 0.95rem; }
.text-card .card-text { font-size: 0.78rem; }

/* ── Dividers ── */
.col-divider-right { border-right: 1px solid #ddd; }
.top-section { background: #fff; }
.bottom-section { background: #fff; }

/* ── No post placeholder ── */
.no-post { color: #bbb; font-style: italic; font-size: 0.85rem; padding: 1rem 0; }

/* ════════════════════════════════════
   CATEGORY LIST LAYOUT
════════════════════════════════════ */
.cat-grid {
  background: #fff;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem 2rem;
}

.cat-post-list {
  display: flex;
  flex-direction: column;
}

.cat-post-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid #e8e8e8;
  text-decoration: none;
  color: inherit;
}

.cat-post-item:last-child { border-bottom: none; }
.cat-post-item:hover .card-title { text-decoration: underline; }

.cat-post-img {
  width: 160px;
  height: 110px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 2px;
}

.cat-post-body { flex: 1; min-width: 0; }
.cat-post-body .card-title { font-size: 1.05rem; margin-bottom: 0.4rem; }
.cat-post-body .card-text { font-size: 0.82rem; margin-bottom: 0.4rem; }

/* ════════════════════════════════════
   PRINT EDITIONS
════════════════════════════════════ */
.editions-section {
  background: #fff;
  max-width: 1200px;
  margin: 0 auto;
}

.editions-header { margin-bottom: 1.25rem; }

.editions-title {
  font-family: Avenir, "Avenir Next", "Avenir Next LT Pro", system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.2rem;
}

.editions-subtitle { font-size: 0.78rem; color: #888; margin: 0; }

.editions-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
}

.latest-editions-col {
  width: 220px;
  flex-shrink: 0;
  padding-right: 20px;
  border-right: 1px solid #ddd;
}

.older-editions-col {
  flex: 1;
  padding-left: 20px;
  min-width: 0;
}

.latest-editions-label,
.older-editions-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  margin-bottom: 0.85rem;
  display: block;
}

.older-editions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.edition-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100px;
  transition: transform 0.15s ease;
}

.edition-card:hover { transform: translateY(-3px); }

.edition-cover {
  position: relative;
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  background: #fafafa;
  padding: 8px;
  margin-bottom: 0.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.edition-card:hover .edition-cover {
  border-color: #aaa;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.edition-icon { width: 100%; height: auto; display: block; }

.edition-open-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(17,17,17,0.82);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  text-align: center;
  padding: 4px;
  border-radius: 0 0 2px 2px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.edition-card:hover .edition-open-label { opacity: 1; }
.edition-info { text-align: center; width: 100%; }
.edition-issue { font-size: 0.8rem; font-weight: 700; color: #111; line-height: 1.2; }
.edition-date { font-size: 0.7rem; color: #888; }

.latest-edition-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease;
}

.latest-edition-card:hover { transform: translateY(-3px); }

.latest-edition-cover {
  position: relative;
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  background: #fafafa;
  padding: 12px;
  margin-bottom: 0.6rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.latest-edition-cover svg { width: 100%; height: auto; display: block; }

.latest-edition-card:hover .latest-edition-cover {
  border-color: #aaa;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.latest-edition-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(17,17,17,0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  padding: 7px;
  border-radius: 0 0 2px 2px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.latest-edition-card:hover .latest-edition-overlay { opacity: 1; }
.latest-edition-info { text-align: center; width: 100%; }

/* ════════════════════════════════════
   NEWSLETTER
════════════════════════════════════ */
.newsletter-section {
  background: #111;
  padding: 3rem 2rem;
  margin: 0;
}

.newsletter-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.newsletter-text { flex: 1; min-width: 200px; }

.newsletter-title {
  font-family: Avenir, "Avenir Next", "Avenir Next LT Pro", system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
  margin-top: 0;
}

.newsletter-body { font-size: 0.85rem; color: #aaa; margin: 0; line-height: 1.6; }

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.newsletter-input {
  font-family: Avenir, "Avenir Next", "Avenir Next LT Pro", system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
  border: 1px solid #444;
  border-radius: 2px;
  background: #1e1e1e;
  color: #fff;
  width: 240px;
  outline: none;
  transition: border-color 0.15s;
}

.newsletter-input::placeholder { color: #666; }
.newsletter-input:focus { border-color: #888; }

.newsletter-btn {
  font-family: Avenir, "Avenir Next", "Avenir Next LT Pro", system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.65rem 1.4rem;
  background: #fff;
  color: #111;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.newsletter-btn:hover { background: #e0e0e0; }

/* ════════════════════════════════════
   ARTICLE PAGE
════════════════════════════════════ */
.article-page { background: #f6f6f6; padding: 2rem 1rem 4rem; }

.article-container {
  max-width: 740px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem 2.5rem 3rem;
}

.article-category {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 0.6rem;
  display: block;
}

.article-title {
  font-family: Avenir, "Avenir Next", "Avenir Next LT Pro", system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  color: #111;
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.article-meta {
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.article-meta .author { font-weight: 600; color: #444; }
.article-meta .sep { color: #ccc; }

.article-hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  margin-bottom: 2rem;
}

.article-body {
  font-family: Garamond, "Adobe Garamond Pro", "EB Garamond", serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #222;
}

.article-body h2 {
  font-family: Avenir, "Avenir Next", "Avenir Next LT Pro", system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.3rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.6rem;
  color: #111; border-bottom: 1px solid #eee; padding-bottom: 0.3rem;
}

.article-body h3 {
  font-family: Avenir, "Avenir Next", "Avenir Next LT Pro", system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.1rem; font-weight: 700; margin-top: 1.5rem; margin-bottom: 0.5rem;
}
.article-body p { margin-bottom: 1.2rem; }

.article-body blockquote {
  border-left: 3px solid #ccc; margin: 1.5rem 0;
  padding: 0.5rem 1.25rem; color: #555; font-style: italic;
}

.article-body img { width: 100%; height: auto; display: block; margin: 1.5rem 0 0.4rem; }
.article-body em { font-style: italic; }
.article-body a { color: #111; text-decoration: underline; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body hr { border: none; border-top: 1px solid #e0e0e0; margin: 2rem 0; }
.article-body strong { font-weight: 700; color: #111; }

/* ════════════════════════════════════
   MOBILE FEED — hidden on desktop
════════════════════════════════════ */
.mobile-feed { display: none; background: #fff; padding-bottom: 2rem; }
.mobile-divider { border: none; border-top: 1px solid #e0e0e0; margin: 0 1rem; }

.mobile-hero { display: block; text-decoration: none; color: inherit; }
.mobile-hero img { width: 100%; height: 240px; object-fit: cover; display: block; }
.mobile-hero-body { padding: 0.9rem 1rem 1rem; }

.mobile-hero-title {
  font-family: Avenir, "Avenir Next", "Avenir Next LT Pro", system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.4rem; font-weight: 700; line-height: 1.25; color: #111;
  margin: 0.3rem 0 0.5rem;
}

.mobile-photo-list { padding: 0.75rem 0; }

.mobile-photo-card {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.75rem 1rem; text-decoration: none; color: inherit;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-photo-card:last-child { border-bottom: none; }
.mobile-photo-card:hover { background: #fafafa; }

.mobile-photo-card img { width: 90px; height: 70px; object-fit: cover; flex-shrink: 0; display: block; }
.mobile-photo-card-body { flex: 1; min-width: 0; }

.mobile-card-title {
  font-family: Avenir, "Avenir Next", "Avenir Next LT Pro", system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.88rem; font-weight: 700; line-height: 1.3; color: #111;
  margin: 0.2rem 0 0.35rem;
}

.mobile-text-list { padding: 0.75rem 0; }

.mobile-text-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; padding: 0.85rem 1rem;
  text-decoration: none; color: inherit; border-bottom: 1px solid #f0f0f0;
}

.mobile-text-card:last-child { border-bottom: none; }
.mobile-text-card:hover { background: #fafafa; }
.mobile-text-card .mobile-card-title { margin-bottom: 0.25rem; }
.mobile-text-arrow { font-size: 1.4rem; color: #ccc; flex-shrink: 0; line-height: 1; }

.mobile-editions-list { padding: 0 0 0.5rem; }

.mobile-edition-card {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; text-decoration: none; color: inherit;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-edition-card:last-child { border-bottom: none; }
.mobile-edition-card:hover { background: #fafafa; }
.mobile-edition-icon { width: 36px; height: auto; flex-shrink: 0; }
.mobile-edition-info { flex: 1; }

/* ════════════════════════════════════
   MOBILE BREAKPOINT
════════════════════════════════════ */
@media screen and (max-width: 767px) {

  /* Switch layouts */
  .container-fluid { display: none !important; }
  .mobile-feed { display: block !important; }

  /* Switch nav */
  .burger-btn { display: flex !important; flex-direction: column; }
  .mobile-nav { display: flex !important; }
  .desktop-nav { display: none !important; }

  /* When open */
  .mobile-nav.open { max-height: 500px; }

  /* Header adjustments */
  .site-header { padding: 0.75rem 0 0; max-width: 100%; }
  
  .header-top-row {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0 1rem;
    margin-bottom: 0.75rem;
    justify-content: space-between;
  }
  
  .header-logo {
    flex: 1;
    text-align: center;
  }
  
  .burger-btn {
    display: flex !important;
    position: static;
    transform: none;
    margin-top: 0;
    flex-shrink: 0;
  }
  
  .header-logo-text { font-size: 1.3rem; }
  .header-logo-img { max-height: 40px; }

  /* Editions stack */
  .editions-layout { flex-direction: column !important; gap: 1.5rem; }
  .older-editions-col { padding-left: 0; border-top: 1px solid #e0e0e0; padding-top: 1rem; }
  .latest-editions-col { width: 100% !important; padding-right: 0; border-right: none; }
  .latest-edition-card { flex-direction: row; align-items: center; gap: 1rem; }
  .latest-edition-cover { width: 90px !important; flex-shrink: 0; margin-bottom: 0; }
  .latest-edition-info { text-align: left; }

  /* Newsletter stack */
  .newsletter-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .newsletter-input { width: 100%; }
  .newsletter-form { width: 100%; flex-direction: column; }
  .newsletter-btn { width: 100%; text-align: center; padding: 0.75rem; }

  /* Category list */
  .cat-post-img { width: 100px; height: 75px; }

  /* Article */
  .article-container { padding: 1.25rem 1rem 2rem; }
  .article-title { font-size: 1.5rem; }
  .article-hero-img { height: 220px; }
}

/* ════════════════════════════════════
   SUPPRESS WORDPRESS INJECTED UI
   Hides any nav/header WordPress or
   plugins inject above our own header
════════════════════════════════════ */

/* Hide WP admin bar body padding */
html { margin-top: 0 !important; }
body.admin-bar { margin-top: 0 !important; }
body.admin-bar .site-header { top: 0 !important; }

/* Hide any WordPress-injected navigation menus outside our header */
body > ul.nav,
body > nav:not(.desktop-nav):not(.mobile-nav),
body > div > ul.nav,
.wp-nav-menu-widget-form,
#wp-toolbar + nav,
#wpadminbar + nav { display: none !important; }

/* Ensure our header sits flush at the top */
.site-header {
  position: relative;
  z-index: 100;
}

/* ════════════════════════════════════
   STATIC PAGES (About Us, Print Issues)
════════════════════════════════════ */
.static-page { background: #f6f6f6; }

/* Hero banner */
.static-hero {
  background: #111;
  padding: 4rem 2rem 3.5rem;
  text-align: center;
}

.static-hero-inner { max-width: 700px; margin: 0 auto; }

.static-hero-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1rem;
}

.static-hero-title {
  font-family: Avenir, "Avenir Next", "Avenir Next LT Pro", system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.static-hero-sub {
  font-size: 1rem;
  color: #aaa;
  line-height: 1.7;
  margin: 0;
}

/* Sections */
.static-section { padding: 3.5rem 2rem; }
.static-section--white { background: #fff; }
.static-section--grey { background: #f6f6f6; }
.static-section--dark { background: #111; }

.static-container {
  max-width: 1100px;
  margin: 0 auto;
}

.static-two-col {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.static-col { flex: 1; min-width: 0; }
.static-col--center { display: flex; align-items: center; justify-content: center; }

/* Headings */
.static-h2 {
  font-family: Avenir, "Avenir Next", "Avenir Next LT Pro", system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 1.25rem;
  line-height:  1.2;
}

.static-h2--center { text-align: center; }
.static-h2--light { color: #fff; }

.static-h3 {
  font-family: Avenir, "Avenir Next", "Avenir Next LT Pro", system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 0.75rem;
}

/* Body text */
.static-section p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1rem;
}

.static-intro-text {
  font-size: 1rem;
  line-height: 1.75;
  color: #444;
  max-width: 740px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.static-body--light { color: #ccc !important; }
.text-white { color: #fff !important; }

/* Lists */
.static-list--light {
  color: #bbb;
  font-size: 0.9rem;
  line-height: 1.8;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

/* Motto box */
.static-motto-box {
  background: #f6f6f6;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #111;
  padding: 2rem;
  text-align: center;
  max-width: 300px;
}

.static-motto {
  font-family: Avenir, "Avenir Next", "Avenir Next LT Pro", system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.static-motto-sub {
  font-size: 0.72rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Quote block */
.static-quote-block {
  text-align: center;
  padding: 2rem;
}

.static-quote-block blockquote {
  font-family: Avenir, "Avenir Next", "Avenir Next LT Pro", system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  font-style: italic;
  margin: 0 0 1rem;
  border: none;
  padding: 0;
}

.static-quote-block cite {
  font-size: 0.75rem;
  color: #888;
  letter-spacing: 0.06em;
}

/* Three pillars */
.static-three-col {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.static-pillar {
  flex: 1;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: 3px solid #111;
  padding: 1.5rem;
}

.static-pillar-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }

.static-pillar-title {
  font-family: Avenir, "Avenir Next", "Avenir Next LT Pro", system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.6rem;
}

.static-pillar p { font-size: 0.85rem !important; color: #555 !important; }

/* Roles grid */
.static-roles-grid {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
}

.static-role-card {
  flex: 1;
  background: #f6f6f6;
  border:  1px solid #e0e0e0;
  padding: 1.5rem;
}

.static-role-title {
  font-family: Avenir, "Avenir Next", "Avenir Next LT Pro", system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.6rem;
}

.static-role-card p { font-size: 0.85rem !important; color: #555 !important; }

.static-role-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #111;
  padding-bottom: 1px;
}

.static-role-link:hover { opacity: 0.6; }

/* Contact bar */
.static-contact-bar {
  text-align: center;
  padding: 1.5rem;
  background: #f6f6f6;
  border: 1px solid #e0e0e0;
  margin-top: 1.5rem;
}

.static-contact-bar p { font-size: 0.9rem !important; color: #555 !important; margin: 0 !important; }
.static-contact-bar a { color: #111; font-weight: 700; }

/* Dundee context box */
.static-dundee-context {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #111;
  padding: 1.75rem;
}

.static-dundee-context p { font-size: 0.88rem !important; }

/* Locations grid */
.static-locations-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.static-location {
  background: #fff;
  border: 1px solid #ddd;
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
  font-family: Avenir, "Avenir Next", "Avenir Next LT Pro", system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Print issues grid */
.print-issues-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
}

.print-issue-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 180px;
  position: relative;
  transition: transform 0.15s ease;
}

.print-issue-card:hover { transform: translateY(-4px); }

.print-issue-card--featured { width: 240px; }

.print-issue-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #111;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 2px;
  z-index: 1;
}

.print-issue-cover {
  position: relative;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fafafa;
  padding: 14px;
  margin-bottom: 0.75rem;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.print-issue-cover svg { width: 100%; height: auto; display: block; }

.print-issue-card:hover .print-issue-cover {
  border-color: #aaa;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.print-issue-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(17,17,17,0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  padding: 8px;
  border-radius: 0 0 2px 2px;
  opacity: 0;
  transition: opacity 0.15s;
}

.print-issue-card:hover .print-issue-overlay { opacity: 1; }

.print-issue-info { text-align: center; }
.print-issue-number { font-size: 0.95rem; font-weight: 700; color: #111; }
.print-issue-date { font-size: 0.78rem; color: #888; }

/* Advert sizes */
.advert-sizes-grid {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.advert-size-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.advert-size-visual {
  border: 2px solid #ddd;
  background: #f0f0f0;
  width: 80px;
  height: 100px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.advert-size-visual::after {
  content: '';
  background: #5bc4e8;
  position: absolute;
  bottom: 0; left: 0; right: 0;
}

.advert-size-visual--full::after { height: 100%; }
.advert-size-visual--half::after { height: 50%; }
.advert-size-visual--quarter::after { height: 25%; }
.advert-size-visual--eighth::after { height: 12%; }

.advert-size-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #555;
  font-family: Avenir, "Avenir Next", "Avenir Next LT Pro", system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.advert-size-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  font-family: Avenir, "Avenir Next", "Avenir Next LT Pro", system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ── Static pages responsive ── */
@media screen and (max-width: 767px) {
  .static-hero-title { font-size: 1.8rem; }
  .static-two-col { flex-direction: column; gap: 2rem; }
  .static-three-col { flex-direction: column; gap: 1rem; }
  .static-roles-grid { flex-direction: column; }
  .static-section { padding: 2rem 1rem; }
  .advert-sizes-grid { gap: 1rem; }
  .advert-size-visual { width: 60px; height: 75px; }
}