/* GRADFLIX styles — built 2026-04-27 08:26:04 */
/* Fonts loaded via <link> in index.html for non-blocking performance */

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

:root {
  --bg: #ffffff;
  --bg2: #f7f6f3;
  --ink: #111111;
  --ink2: #444444;
  --ink3: #888888;
  --rule: #e0ddd8;
  --serif: 'Lora', Georgia, serif;
  --sans: 'Source Sans 3', sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── NAV ── */
.nav {
  background: var(--bg);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 2px solid var(--ink);
}
.nav-top {
  padding: 0 48px; height: 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav-left { display: flex; align-items: center; }



.nav-logo {
  font-family: var(--sans); font-size: 28px; font-weight: 800;
  letter-spacing: 7px; text-transform: uppercase; cursor: pointer;
  white-space: nowrap; justify-self: center;
  transition: color 0.3s, text-shadow 0.3s;
  text-shadow: 0 1px 8px rgba(0,0,0,0.12);
}
.nav-actions { display: flex; align-items: center; gap: 20px; justify-self: end; }
.nav-action-link { font-family: var(--sans); font-size: 12px; color: var(--ink3); cursor: pointer; white-space: nowrap; text-decoration: none; transition: opacity 0.2s; }
.nav-action-link:hover { opacity: 0.6; }
/* Article nav */
.nav-article {
  padding: 0 48px; height: 56px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
  transition: background 0.3s;
}
.nav-article .nav-back { justify-self: start; }
.nav-article .nav-logo { justify-self: center; }
.nav-article .nav-article-right { justify-self: end; font-family: var(--sans); font-size: 11px; color: var(--ink3); cursor: pointer; }
.nav-article .nav-article-right:hover { color: var(--ink); }
.nav-back { font-family: var(--sans); font-size: 11px; color: var(--ink3); cursor: pointer; white-space: nowrap; }
.nav-back:hover { color: var(--ink); }
/* Full-screen menu overlay */




/* ── HERO (Parallax) ── */
.hero {
  position: relative; cursor: pointer;
  height: 560px;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.75) 100%); }
.hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 0 48px 44px; max-width: 860px; z-index: 2; }
.hero-cat { font-family: var(--sans); font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 12px; }
.hero-title { font-family: var(--serif); font-size: clamp(22px, 3.5vw, 42px); font-weight: 600; line-height: 1.2; color: #fff; margin-bottom: 12px; }
.hero-standfirst { font-family: var(--serif); font-size: 17px; font-style: italic; color: rgba(255,255,255,0.78); line-height: 1.55; margin-bottom: 14px; max-width: 600px; }
.hero-meta { font-family: var(--sans); font-size: 11px; color: rgba(255,255,255,0.5); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sep { opacity: 0.4; }

/* ── TODAY BANNER ── */
.today-banner {
  background: var(--ink); color: #fff;
  padding: 10px 48px;
  display: flex; align-items: center; gap: 16px;
}
.today-label { font-family: var(--sans); font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.5); flex-shrink: 0; }
.today-title { font-family: var(--serif); font-size: 15px; font-style: italic; color: #fff; cursor: pointer; }
.today-title:hover { text-decoration: underline; }

/* ── GRID ── */
.section { width: 100%; padding: 52px 0 72px; }
.section-hdr { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0; padding: 14px 48px; border-bottom: 1px solid var(--rule); background: var(--bg); }
.section-lbl { font-family: var(--sans); font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ink3); }


.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.card { display: block; text-decoration: none; cursor: pointer; background: var(--bg); transition: background 0.2s; }
.card:hover { background: var(--bg2); }
.card-img-wrap { position: relative; overflow: hidden; }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform 0.3s; }
.card:hover .card-img { transform: scale(1.02); }
.card-lock { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.65); color: #fff; font-family: var(--sans); font-size: 10px; padding: 4px 8px; letter-spacing: 1px; }
.card-body { padding: 18px 20px 22px; }
.card-cat { font-family: var(--sans); font-size: 11px; color: var(--ink3); margin-bottom: 10px; }
.card-title { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.25; color: var(--ink); margin-bottom: 10px; transition: opacity 0.2s; }
.card:hover .card-title { opacity: 0.7; }
.card-standfirst { font-family: var(--sans); font-size: 14px; color: var(--ink2); line-height: 1.65; margin-bottom: 14px; }
.card-meta { font-family: var(--sans); font-size: 12px; color: var(--ink3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-readtime { color: var(--ink2); }
.card-qs { color: var(--ink); font-weight: 600; }

/* ── ARTICLE ── */
.art-body p { font-family: var(--serif); font-size: clamp(16px, 2vw, 18.5px); line-height: 1.88; color: #222; margin-bottom: 28px; }
.art-body p.dc::first-letter { float: left; font-size: 76px; font-weight: 600; line-height: 0.78; margin: 8px 12px 0 0; color: var(--ink); }
.art-body h2 { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ink3); margin: 52px 0 18px; padding-top: 4px; border-top: 1px solid var(--rule); }
.art-body blockquote { margin: 40px 0; padding: 0 0 0 22px; border-left: 3px solid var(--ink); }
.art-body blockquote p { font-size: 21px; font-style: italic; color: var(--ink2); margin: 0; line-height: 1.6; }

.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: #e8e5df; display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink3); flex-shrink: 0; }
.author-name { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.author-bio { font-family: var(--sans); font-size: 12px; color: var(--ink3); line-height: 1.5; }

/* ── MORE ESSAYS ── */
.more { background: var(--bg2); padding: 52px 48px; border-top: 1px solid var(--rule); }
.more-lbl { font-family: var(--sans); font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--ink3); margin-bottom: 28px; max-width: 1100px; margin-left: auto; margin-right: auto; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1100px; margin: 0 auto; }
.more-card { cursor: pointer; background: var(--bg); }
.more-card img { width: 100%; height: 160px; object-fit: cover; }
.more-body { padding: 14px 16px 18px; }
.more-cat { font-family: var(--sans); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink3); margin-bottom: 6px; }
.more-title { font-family: var(--serif); font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--ink); transition: opacity 0.15s; }
.more-card:hover .more-title { opacity: 0.7; }



/* ── FOOTER ── */
.gf-footer {
  background: #0f0f0f;
  color: #fff;
}
.gf-footer-grid {
  display: grid;
  grid-template-columns: 1.9fr 1.5fr 1fr 0.8fr;
  align-items: start;
  padding: 72px 56px 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  gap: 0;
}
.gf-footer-brand { padding-right: 56px; }
.gf-footer-wordmark {
  display: inline-block;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 5px;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 14px;
  line-height: 1;
}
.gf-wm-grad, .gf-wm-flix { color: #ffffff; }
.gf-footer-tagline {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: rgba(255,255,255,0.5);
  margin: 0 0 16px;
}
.gf-footer-desc {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.85;
  color: rgba(255,255,255,0.45);
  margin: 0 0 28px;
  max-width: 280px;
}
.gf-footer-inline-link {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}
.gf-footer-inline-link:hover { color: #fff; }
.gf-footer-socials { display: flex; gap: 8px; flex-wrap: wrap; }
.gf-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.5);
  font-family: var(--sans);
  font-size: 12px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.gf-social-btn:hover { border-color: rgba(255,255,255,0.45); color: #fff; }
.gf-footer-col {
  padding: 0 32px;
  border-left: 1px solid rgba(255,255,255,0.07);
}
.gf-footer-heading {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin: 0 0 22px;
}
.gf-footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.gf-footer-list a {
  font-family: var(--sans);
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.12s;
  line-height: 1;
}
.gf-footer-list a:hover { color: #fff; }
.gf-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 56px;
}
.gf-footer-copy {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin: 0;
  white-space: nowrap;
}
.gf-footer-domain { color: rgba(255,255,255,0.4); text-decoration: none; }
.gf-footer-domain:hover { color: rgba(255,255,255,0.7); }
.gf-footer-kw {
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.3px;
  text-align: right;
  flex: 1;
  margin: 0;
  min-width: 200px;
}
@media (max-width: 1100px) {
  .gf-footer-grid { grid-template-columns: 1.6fr 1.4fr 1fr 0.85fr; padding: 56px 32px 40px; }
  .gf-footer-brand { padding-right: 36px; }
  .gf-footer-col { padding: 0 22px; }
  .gf-footer-bottom { padding: 16px 32px; }
}
.nav-mobile-logo { display: none; }

/* ── MOBILE NAV — hamburger + fullscreen menu ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  transition: all 0.2s;
}
.nav-transparent .nav-hamburger span { background: #fff; }
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 9999;
  flex-direction: column;
  padding: 72px 32px 40px;
  overflow-y: auto;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #111;
  line-height: 1;
  padding: 4px 8px;
}
.nav-mobile-link {
  font-family: 'Lora', serif;
  font-size: 28px;
  font-weight: 600;
  color: #111;
  padding: 14px 0;
  border-bottom: 1px solid #e0ddd8;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.nav-mobile-link:last-child { border-bottom: none; }
.nav-mobile-cta {
  margin-top: 24px;
  background: #111;
  color: #fff !important;
  text-align: center;
  padding: 16px !important;
  border-bottom: none !important;
  font-family: 'Source Sans 3', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  /* Mobile nav — always white, never transparent over hero */
  .nav-transparent .nav-top,
  .nav-top {
    background: #fff !important;
    border-bottom: 1px solid #e8e5df !important;
  }
  .nav-mobile-logo,
  .nav-transparent .nav-mobile-logo {
    color: #111 !important;
  }
  .nav-hamburger span,
  .nav-transparent .nav-hamburger span {
    background: #111 !important;
  }

  /* Mobile wordmark — hidden on desktop, big + centered on mobile */
  .nav-mobile-logo {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--sans);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #111;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
  }

  /* Mobile nav bar — sticky */
  .nav-top {
    position: sticky !important;
    top: 0 !important;
    z-index: 200 !important;
    background: #fff !important;
    border-bottom: 1px solid #e8e5df !important;
    height: 56px !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    grid-template-columns: unset !important;
  }



  /* restore mobile logo inside breakpoint */
  .gf-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 0; padding: 40px 20px 32px; }
  .gf-footer-brand { grid-column: 1 / -1; padding-right: 0; }
  .gf-footer-desc { max-width: 100%; }
  .gf-footer-col { padding: 0 14px 0 0; border-left: none; }
  .gf-footer-col:nth-child(even) { padding: 0 0 0 18px; border-left: 1px solid rgba(255,255,255,0.07); }
  .gf-footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 20px; }
  .gf-footer-kw { text-align: left; }
}

/* ── LOADING ── */
.loading { display: flex; align-items: center; justify-content: center; min-height: 400px; }
.spinner { width: 28px; height: 28px; border: 2px solid var(--rule); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── PAGE ANIM ── */
.page { animation: fadeUp 0.35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }



/* ── TRANSPARENT NAV ── */
.nav-transparent {
  background: transparent !important;
  border-bottom-color: transparent !important;
}
.nav-article.nav-transparent {
  background: transparent !important;
  border-bottom-color: transparent !important;
}
.nav-article.nav-transparent .nav-back { color: rgba(255,255,255,0.8); }
.nav-article.nav-transparent .nav-logo { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.nav-article.nav-transparent .nav-article-right { color: rgba(255,255,255,0.7); }
.nav-transparent .nav-menu-btn { color: #fff; }
.nav-transparent .nav-logo { color: #fff; letter-spacing: 7px; text-shadow: 0 2px 16px rgba(0,0,0,0.5); }
.nav-transparent .nav-action-link { color: rgba(255,255,255,0.85); }
.nav-transparent .nav-action-link:hover { color: #fff; }
/* nav-back on article page */
.nav-transparent .nav-back { color: rgba(255,255,255,0.7); }
.nav-transparent .nav-back:hover { color: #fff; }
/* Auth inline text */
.nav-transparent #nav-auth span,
.nav-transparent #nav-auth a { color: rgba(255,255,255,0.7) !important; }
.nav { transition: background 0.35s ease, opacity 0.35s ease; }

/* ── ART HERO FULLSCREEN (old, kept for compat) ── */
.art-hero-full img {
  width: 100%; height: 100vh; object-fit: cover;
  min-height: 500px;
}
.art-hero-full { margin-top: -58px; }

/* ── CINEMATIC ESSAY HERO (Aeon-style — image BG, title overlaid) ── */
.art-hero-cinematic {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  margin-top: -58px; /* pull up under the nav */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: flex-end;
  cursor: default;
}
.art-hero-cin-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0.72) 80%,
    rgba(0,0,0,0.85) 100%
  );
}
.art-hero-cin-content {
  position: relative; z-index: 2;
  width: 100%; max-width: 860px;
  padding: 0 64px 64px;
}
.art-hero-cin-cat {
  font-family: var(--sans); font-size: 10px;
  letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 16px;
}
.art-hero-cin-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 600; line-height: 1.1;
  color: #fff; margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.art-hero-cin-standfirst {
  font-family: var(--serif);
  font-size: clamp(15px, 1.5vw, 19px);
  font-style: italic;
  color: rgba(255,255,255,0.82);
  line-height: 1.6; margin-bottom: 18px;
  max-width: 600px;
}
.art-hero-cin-meta {
  font-family: var(--sans); font-size: 12px;
  color: rgba(255,255,255,0.5);
}


/* ── CATEGORY STRIP ── */
.cat-strip {
  display: flex; align-items: center;
  padding: 0 48px;
  overflow-x: auto; scrollbar-width: none;
  border-bottom: 2px solid var(--ink);
  background: var(--bg);
  position: sticky; top: 56px; z-index: 99;
  -webkit-overflow-scrolling: touch;
  user-select: none; -webkit-user-select: none;
  touch-action: pan-x;
}
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip-link {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.5px; color: var(--ink3);
  padding: 10px 16px; cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
  text-decoration: none; display: block;
}
.cat-strip-link:hover { color: var(--ink); }
.cat-strip-link.active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }


/* ── SUB-CATEGORY STRIP (desktop only) ── */
.subcat-strip {
  display: none;
  align-items: center;
  padding: 0 48px;
  overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--rule);
  background: var(--bg2);
  position: sticky; top: 94px; z-index: 98;
}
.subcat-strip::-webkit-scrollbar { display: none; }
.subcat-link {
  font-family: var(--sans); font-size: 10px; font-weight: 500;
  letter-spacing: 0.5px; color: var(--ink3);
  padding: 8px 14px; cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
  text-decoration: none; display: block;
}
.subcat-link:hover { color: var(--ink); }
.subcat-link.active { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }

/* ── MOBILE FILTERS (hidden on desktop) ── */
.mobile-filters { display: none; }


/* ── HERO EYEBROW BADGE ── */
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hero-cat-badge {
  font-family: var(--sans); font-size: 9px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 4px 10px; backdrop-filter: blur(4px);
}

/* ── CAT VALUE STRIP ── */
.cat-value-strip {
  background: #fff;
  padding: 56px 48px 40px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.cat-value-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto 36px;
  align-items: start;
}
.cat-value-divider {
  width: 1px; background: var(--rule); margin: 0 32px; align-self: stretch;
}
.cat-value-item {
  display: flex; gap: 16px; align-items: flex-start;
}
.cat-value-icon {
  font-size: 18px; color: var(--ink3);
  flex-shrink: 0; margin-top: 2px; line-height: 1;
}
.cat-value-head {
  font-family: var(--serif); font-size: 16px; font-weight: 600;
  color: var(--ink); margin-bottom: 8px; line-height: 1.3;
}
.cat-value-body {
  font-family: var(--sans); font-size: 12px; color: var(--ink2);
  line-height: 1.7;
}
.cat-value-cta {
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.cat-value-cta-text {
  font-family: var(--sans); font-size: 13px; color: var(--ink2);
}
.cat-value-cta-text strong { color: var(--ink); font-weight: 700; }
.cat-value-btn {
  background: var(--ink); color: #fff; border: 2px solid var(--ink);
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 11px 28px; cursor: pointer; white-space: nowrap;
  transition: all 0.15s;
}
.cat-value-btn:hover { background: #333; border-color: #333; }

/* ── LATEST / POPULAR TABS ── */
.tab-btns {
  display: flex; gap: 0; align-items: center;
}
.tab-btn {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.5px; background: none; border: none;
  cursor: pointer; padding: 0 0 4px; margin-right: 20px;
  color: var(--ink3); border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn.active { color: var(--ink); border-bottom-color: var(--ink); }
.tab-btn:hover { color: var(--ink); }

/* ── SAVE BUTTON ── */
.sidebar-save { margin-bottom: 16px; }
.sidebar-save-btn {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  background: none; border: 1px solid var(--rule);
  padding: 7px 14px; cursor: pointer; color: var(--ink3);
  transition: all 0.15s; width: 100%;
}
.sidebar-save-btn:hover { border-color: var(--ink); color: var(--ink); }

/* ── ESSAY TWO-COLUMN LAYOUT ── */
.art-columns {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  align-items: start;
}
.art-sidebar {
  position: sticky;
  top: 100px;
  padding: 40px 32px 40px 0;
  border-right: 1px solid var(--rule);
}
.art-main {
  padding: 40px 0 40px 48px;
  min-width: 0;
}
.sidebar-author {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 20px; padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.sidebar-meta { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.sidebar-meta-item {
  font-family: var(--sans); font-size: 12px; color: var(--ink3);
  margin-bottom: 4px; line-height: 1.5;
}
.sidebar-cat { margin-bottom: 20px; }
.sidebar-cat-tag {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink3); cursor: pointer; border-bottom: 1px solid var(--rule);
  padding-bottom: 2px; transition: color 0.15s;
}
.sidebar-cat-tag:hover { color: var(--ink); }
.sidebar-rc-btn {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  color: var(--ink); cursor: pointer; margin-bottom: 12px;
  padding: 8px 12px; border: 1px solid var(--ink);
  transition: all 0.15s; letter-spacing: 0.3px;
}
.sidebar-rc-btn:hover { background: var(--ink); color: #fff; }
.sidebar-syndicate-btn {
  font-family: var(--sans); font-size: 9px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--ink3);
  cursor: pointer; padding: 8px 0; margin-bottom: 20px;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  transition: color 0.15s;
}
.sidebar-syndicate-btn:hover { color: var(--ink); }
.sidebar-share-links { display: flex; flex-direction: column; gap: 6px; }
.sidebar-share-link {
  font-family: var(--sans); font-size: 11px; color: var(--ink3);
  text-decoration: none; transition: color 0.15s;
}
.sidebar-share-link:hover { color: var(--ink); }

/* Override art-body max-width inside sidebar layout */
.art-main .art-body { max-width: 100%; padding: 0 0 60px; }
.art-main .art-body p { font-size: clamp(16px,1.5vw,18.5px); }



/* ── FULLSCREEN HERO ── */
.hero-fullscreen {
  height: 100vh;
  min-height: 560px;
  margin-top: -58px; /* pull up behind nav — extra 2px to cover sub-pixel gaps */
  padding-top: 0;
}
.hero-fullscreen .hero-content {
  padding-bottom: 60px;
}
/* Mobile hero images — hidden on desktop, shown on mobile */
.hero-mobile-img { display: none; }

/* ══════════════════════════════════════════════════════════════
   MOBILE — ≤ 768px
══════════════════════════════════════════════════════════════ */

/* Mobile essay footer — hidden on desktop */
.mobile-essay-footer { display: none; }

@media (max-width: 768px) {


  /* Nav */
  .nav-top {
    padding: 0 16px; height: 48px;
    display: flex; align-items: center; justify-content: space-between;
    grid-template-columns: unset;
  }
  .nav-top .nav-logo { display: none; }
  .nav-top .nav-actions { display: none; }
  .nav-top #nav-auth { display: none; }
  .nav-hamburger { display: flex !important; }
  .nav-left { flex: 1; }
  .nav-article {
    padding: 0 16px; height: 48px;
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  
  
  
  .art-hero-full { margin-top: -56px; } /* pull up behind mobile nav-article */
  .art-hero-cinematic {
    background-attachment: scroll !important;
    height: 70vw !important;
    min-height: 300px !important;
    margin-top: -56px !important;
  }
  .art-hero-cin-content { padding: 0 20px 24px !important; }
  .art-hero-cin-title { font-size: clamp(22px, 5vw, 28px) !important; margin-bottom: 10px !important; }
  .art-hero-cin-standfirst { display: none; }
  .art-hero-full img { height: 50vh; object-position: center top; }
  /* On transparent nav, mobile logo goes white */
  

  /* Category strip — hidden on mobile, use dropdowns instead */
  .cat-strip { display: none; }
  .subcat-strip { display: none !important; }
  /* Mobile filter dropdowns */
  .mobile-filters {
    display: flex; gap: 10px; padding: 12px 16px;
    background: var(--bg); border-bottom: 1px solid var(--rule);
  }
  .mobile-filter-select {
    flex: 1; padding: 8px 12px;
    font-family: var(--sans); font-size: 12px; color: var(--ink);
    background: var(--bg); border: 1px solid var(--rule);
    outline: none; cursor: pointer;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
    padding-right: 28px;
  }
  /* Show mobile-only img elements */
  .hero-mobile-img { display: block; }

  /* Hero — Aeon mobile style: portrait image on top, editorial text below */
  .hero {
    height: auto !important;
    background-attachment: scroll;
    background-image: none !important;
    display: flex; flex-direction: column;
    cursor: pointer;
  }
  .hero-fullscreen {
    height: auto !important;
    margin-top: 0 !important;
  }
  .hero-fullscreen .hero-mobile-img {
    width: 100%; height: 60vw; min-height: 240px; max-height: 320px;
    object-fit: cover; display: block;
  }
  .hero .hero-mobile-img {
    width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; flex-shrink: 0;
  }
  .hero .hero-overlay { display: none; }
  .hero-content {
    position: static !important;
    padding: 16px 16px 24px !important;
    background: var(--bg); max-width: 100%;
  }
  .hero-cat { color: var(--ink3) !important; }
  .hero-title { color: var(--ink) !important; font-size: clamp(20px, 6vw, 26px) !important; }
  .hero-standfirst { display: block !important; color: var(--ink2) !important; font-size: 15px !important; margin-bottom: 10px !important; }
  .hero-meta { color: #aaa !important; }


  /* CAT value strip — stacked on mobile */
  .cat-value-strip { padding: 32px 20px 24px; }
  .cat-value-inner { grid-template-columns: 1fr; gap: 28px; }
  .cat-value-divider { display: none; }
  .cat-value-cta { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Today banner */
  .today-banner { padding: 10px 16px; }
  .today-title { font-size: 14px; }

  /* Section / grid — full width on mobile */
  .section { padding: 0 0 44px; }
  .section-hdr { padding: 12px 16px; top: 48px; }
  .grid { grid-template-columns: 1fr; }
  .card { border-right: none; }
  .card-body { padding: 14px 16px 18px; }
  .card-img { aspect-ratio: 16/9; }

  /* Article hero — cinematic on mobile */
  .art-hero-cinematic {
    height: 100svh;
    min-height: 480px;
    background-attachment: scroll;
    margin-top: -48px;
  }
  .art-hero-cin-content { padding: 0 20px 40px; }
  .art-hero-cin-title { font-size: clamp(24px, 7vw, 34px); }
  .art-hero-cin-standfirst { font-size: 15px; }
  .art-body blockquote p { font-size: 17px; }
  /* Sidebar hidden on mobile — info shown at bottom instead */
  .art-columns { grid-template-columns: 1fr; padding: 0 16px; gap: 0; }
  .art-sidebar { display: none; } /* completely hidden on mobile */
  .art-main { padding: 16px 0; }
  .art-main .art-body { padding: 0 0 32px; }

  /* Mobile essay footer — shown at bottom on mobile */
  .mobile-essay-footer {
    display: block;
    padding: 24px 0;
    border-top: 1px solid var(--rule);
    margin-top: 8px;
  }
  .mobile-essay-footer .mef-author {
    display: flex; gap: 12px; align-items: center;
    margin-bottom: 16px; padding-bottom: 16px;
    border-bottom: 1px solid var(--rule);
  }
  .mobile-essay-footer .mef-meta {
    font-family: var(--sans); font-size: 12px; color: var(--ink3);
    margin-bottom: 12px; display: flex; gap: 16px; flex-wrap: wrap;
  }
  .mobile-essay-footer .mef-cat {
    font-family: var(--sans); font-size: 10px; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase;
    margin-bottom: 16px;
  }
  .mobile-essay-footer .mef-share {
    display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
  }
  .mobile-essay-footer .mef-share a {
    font-family: var(--sans); font-size: 12px; color: var(--ink3);
    text-decoration: none; padding: 6px 0;
  }
  .mobile-essay-footer .mef-share a:hover { color: var(--ink); }
  .mobile-essay-footer .mef-syndicate { display: none; }

  /* More essays */
  .more { padding: 32px 16px; }
  .more-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Pricing grid — 1 column on mobile */
  .pricing-grid { grid-template-columns: 1fr !important; max-width: 320px; margin: 0 auto 32px !important; }


}

/* ══════════════════════════════════════════════════════════════
   TABLET / iPAD — 769px to 1100px (Aeon desktop style)
══════════════════════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1100px) {
  /* Fullscreen hero with title overlay — Aeon style */
  .hero-fullscreen {
    height: calc(100vh - 56px);
    min-height: 520px;
  }
  .hero-content { padding: 0 40px 48px; }
  .hero-title { font-size: clamp(24px, 3.5vw, 38px); }
  .hero-standfirst { font-size: 16px; max-width: 520px; }
  /* Grid — 2 cols on iPad */
  .grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════════════════════════
   SMALL MOBILE — ≤ 400px
══════════════════════════════════════════════════════════════ */
@media (max-width: 400px) {
  .nav-logo { font-size: 11px; letter-spacing: 1.5px; }
  .hero img { height: 260px; }
  .art-hero img { height: 180px; }
  .hero-title { font-size: 20px; }
}

/* ══════════════════════════════════════════════════════════════
   ABOUT PAGES
══════════════════════════════════════════════════════════════ */
.about-wrap { max-width: 860px; margin: 0 auto; padding: 0 24px 80px; }

.about-hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 64px;
}
.about-eyebrow {
  font-family: var(--sans); font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--ink3); margin-bottom: 20px;
}
.about-h1 {
  font-family: var(--sans); font-size: clamp(36px, 6vw, 72px);
  font-weight: 600; letter-spacing: 2px; line-height: 1.05;
  margin-bottom: 24px;
}
.about-lead {
  font-family: var(--serif); font-size: clamp(16px, 2vw, 20px);
  font-style: italic; color: var(--ink2); line-height: 1.65;
  max-width: 600px;
}

.about-body {}
.about-section {
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}
.about-section:last-child { border-bottom: none; }
.about-h2 {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--ink3);
  margin-bottom: 24px;
}
.about-section p {
  font-family: var(--serif); font-size: 18px; line-height: 1.85;
  color: #222; margin-bottom: 20px; max-width: 680px;
}
.about-section p:last-child { margin-bottom: 0; }
.about-exam-tag {
  font-family: var(--sans) !important; font-size: 11px !important;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink3) !important; font-style: normal !important;
  margin-bottom: 20px !important;
}
.about-quote {
  font-family: var(--serif); font-size: clamp(18px, 2.5vw, 24px);
  font-style: italic; line-height: 1.7; color: var(--ink);
  border-left: 3px solid var(--ink); padding-left: 24px;
  margin: 32px 0; max-width: 600px;
}
.about-link {
  display: inline-block; margin-top: 20px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  color: var(--ink); letter-spacing: 0.5px;
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
  text-decoration: none; transition: opacity 0.15s;
}
.about-link:hover { opacity: 0.6; }
.about-inline-link { color: var(--ink); text-decoration: underline; }

/* How-to grid */
.about-how-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin: 32px 0;
}
.about-how-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; border: 1px solid var(--rule); background: var(--bg2);
}
.about-how-num {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  color: var(--ink3); letter-spacing: 1px; flex-shrink: 0; margin-top: 2px;
}
.about-how-text {
  font-family: var(--sans); font-size: 13px; color: var(--ink2);
  line-height: 1.6;
}

/* Diff grid */
.about-diff {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; margin: 32px 0; max-width: 480px;
}
.about-diff-col { padding: 24px; border: 1px solid var(--rule); }
.about-diff-label {
  font-family: var(--sans); font-size: 9px; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 16px; font-weight: 600;
}
.about-diff-label.not { color: #ccc; }
.about-diff-label.yes { color: var(--ink); }
.about-diff-item {
  font-family: var(--serif); font-size: 18px; color: var(--ink);
  margin-bottom: 8px;
}

/* Products */
.about-products { margin: 24px 0; }
.about-product {
  font-family: var(--sans); font-size: 13px; color: var(--ink2);
  padding: 12px 0; border-bottom: 1px solid var(--rule);
  line-height: 1.5;
}
.about-product:first-child { border-top: 1px solid var(--rule); }

/* Books */
.about-books { margin: 24px 0; }
.about-book {
  font-family: var(--serif); font-size: 16px; color: var(--ink);
  padding: 12px 0; border-bottom: 1px solid var(--rule);
}
.about-book:first-child { border-top: 1px solid var(--rule); }
.about-book span { color: var(--ink3); font-style: italic; font-size: 14px; }

/* Awards */
.about-awards { display: flex; gap: 16px; flex-wrap: wrap; margin: 24px 0; }
.about-award {
  border: 1px solid var(--rule); padding: 20px 24px;
  text-decoration: none; transition: border-color 0.15s; flex: 1; min-width: 200px;
}
.about-award:hover { border-color: var(--ink); }
.about-award-title {
  font-family: var(--serif); font-size: 16px; font-weight: 600;
  color: var(--ink); margin-bottom: 4px;
}
.about-award-sub {
  font-family: var(--sans); font-size: 11px; color: var(--ink3);
}

/* Social links */
.about-social { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 0; }
.about-social-link {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 8px 16px; border: 1px solid var(--rule);
  color: var(--ink); text-decoration: none; transition: all 0.15s;
}
.about-social-link:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* About closing */
.about-closing p {
  font-family: var(--serif); font-size: 18px; line-height: 1.85;
  color: var(--ink2); margin-bottom: 16px;
}

/* Mobile */
@media (max-width: 768px) {

  .about-hero { padding: 48px 0 40px; }
  .about-how-grid { grid-template-columns: 1fr; }
  .about-diff { grid-template-columns: 1fr; max-width: 100%; }
  .about-awards { flex-direction: column; }
  .about-social { gap: 8px; }
}

/* ── more-card as <a> tag — preserves layout, enables crawling ── */
a.more-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.more-card:hover { text-decoration: none; }


/* Mobile: make popup full-width at bottom */
@media (max-width: 600px) {
  #gf-dict-popup {
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    width: 100% !important;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  #gf-dict-popup.visible {
    transform: translateY(0);
  }
  #gf-dict-inner { padding: 20px 20px 32px; }
}

