/* Namaste Phoenix- deferred below-fold styles (cards, body, footer, etc.). */
.np-flipbook-slot--waiting {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    background: var(--tint-light);
  }
  .np-flipbook-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-family: 'Lato', sans-serif;
    font-size: 13px;
  }
  .np-flipbook-placeholder i { font-size: 2rem; color: var(--primary-color); opacity: 0.5; }
  @media (max-width: 575.98px) {
    .np-article-row--featured .row > .col-md-4:nth-child(3) {
      display: none !important;
    }
  }
  .gl-utility-inner { min-width: 0; }
  .gl-utility-tagline { font-size: 11px; letter-spacing: 0.35px; }
  .gl-utility-links {
    gap: 4px 10px;
    max-width: 100%;
  }
  .gl-utility a {
    color: var(--tint-mid);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 10px;
    border-radius: 6px;
  }
  .gl-utility a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
  .gl-utility a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }

  /* Brand header - one row with logo + wordmark + Subscribe (see .gl-masthead-bar) */
  .gl-header { background: var(--bg-paper); border-bottom: 1px solid #f3e8d7; }
  .gl-masthead-shell {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  @media (min-width: 768px) {
    .gl-masthead-shell {
      padding-top: 1rem;
      padding-bottom: 1rem;
    }
  }
  .gl-masthead-bar {
    flex-wrap: nowrap;
    align-items: center;
    min-width: 0;
  }
  .gl-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 38px;
    letter-spacing: -0.02em;
    color: var(--primary-color-dark);
    line-height: 1;
  }
  .gl-brand .accent { color: var(--primary-color); }
  .gl-tagline { font-size: 11px; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; }
  .gl-masthead-tagline {
    font-family: 'Source Serif 4', Georgia, serif;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0.02em;
    line-height: 1.35;
    color: var(--text-muted);
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* Mobile quick-start row (homepage only) */
  .np-home-quick {
    background: var(--tint-light);
    border-bottom: 1px solid var(--tint-border);
    padding: 8px 0;
    max-height: 64px;
    overflow: hidden;
    transition: max-height 0.28s ease, opacity 0.28s ease, padding 0.28s ease;
  }
  .np-home-quick--collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
    border-bottom-width: 0;
  }
  .gl-top-banner--after-cover {
    margin-top: 0;
  }
  .np-home-quick-inner {
    display: flex;
    gap: 8px;
    justify-content: space-between;
    align-items: stretch;
  }
  .np-home-quick-link {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--tint-border);
    color: var(--primary-color-dark);
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
  }
  .np-home-quick-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
  }
  .np-home-quick-link i { font-size: 1.05rem; flex-shrink: 0; }

  /* Masthead: illustrated logo + wordmark side-by-side on desktop */
  .gl-masthead-link { display: flex; align-items: center; }
  .gl-masthead-logo {
    height: 72px;
    width: auto;
    display: block;
    flex-shrink: 0;
  }
  .gl-masthead-text { display: block; min-width: 0; }
  .gl-masthead-text .gl-brand {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .gl-subscribe-btn {
    background: var(--primary-color);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    flex-shrink: 0;
    max-width: 100%;
  }
  .gl-subscribe-btn:hover { background: var(--primary-color-dark); }
  .gl-subscribe-btn:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
  }

  /* Category nav */
  .gl-nav {
    background: var(--bg-paper);
    border-top: 1px solid #f3e8d7;
    border-bottom: 2px solid var(--primary-color);
  }
  /* Phones / small tablets: horizontal scroll so every section stays one tap away */
  .gl-nav-scroll-wrap {
    position: relative;
    min-width: 0;
  }
  @media (max-width: 767.98px) {
    /* Fade cues - collapsed via JS when scrolled flush left/right */
    .gl-nav-scroll-wrap::before {
      content: '';
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      width: 28px;
      pointer-events: none;
      background: linear-gradient(90deg, var(--bg-paper), transparent);
      z-index: 2;
      opacity: 0;
      transition: opacity 0.2s ease;
    }
    .gl-nav-scroll-wrap.is-scrolled::before {
      opacity: 1;
    }
    .gl-nav-scroll-wrap::after {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      width: 36px;
      pointer-events: none;
      background: linear-gradient(270deg, var(--bg-paper), transparent);
      z-index: 2;
      opacity: 1;
      transition: opacity 0.2s ease;
    }
    .gl-nav-scroll-wrap.is-at-end::after {
      opacity: 0;
    }
  }

  .gl-nav-events-link {
    color: var(--primary-color) !important;
  }
  .gl-nav-events-link.active {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: calc(14px - 2px);
  }
  .gl-nav-events-icon {
    vertical-align: text-bottom;
    font-size: 1.1em;
    margin-right: 2px;
  }

  .gl-nav-search-link {
    color: var(--text-dark);
    font-size: 1.2rem;
    padding: 10px;
    flex-shrink: 0;
  }

  .gl-nav-inner {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    gap: 2px;
    padding-bottom: 2px;
  }
  @media (min-width: 768px) {
    .gl-nav-inner {
      flex-wrap: wrap;
      justify-content: center;
      overflow-x: visible;
      padding-bottom: 0;
      width: 100%;
    }
  }
  .gl-nav .nav-link {
    color: var(--text-dark);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.4px;
    padding: 14px 16px;
    position: relative;
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .gl-nav .nav-link:hover { color: var(--primary-color); }
  .gl-nav .nav-link.active { color: var(--primary-color); }
  .gl-search input {
    border: 1px solid #e5d5b8;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    width: 200px;
  }

  /* Bootstrap colour overrides */
  .bg-label-primary { background: var(--tint-light); color: var(--primary-color-dark); font-weight: 700; }
  .text-primary { color: var(--primary-color) !important; }
  .badge.bg-primary { background-color: var(--primary-color) !important; }
  .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
  }
  .btn-primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    color: #fff;
  }
  .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
  }
  .btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
  }

  .modular-empty-state { border: 1px dashed #d6bb87; background: #fffaee; }

  /* Section titles - restrained, magazine-style */
  .gl-section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 30px;
    color: var(--primary-color-dark);
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 4px;
    margin-bottom: 0;
    letter-spacing: -0.01em;
  }
  .gl-section-kicker {
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
  }

/* ======================================================
     ARTICLE CARDS (used in grid / hero / list / tile)
     ====================================================== */
  .article-card {
    background: var(--bg-paper);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  .article-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(124, 45, 18, 0.08); }
  .article-card img { transition: transform 0.4s ease; }
  .article-card:hover img { transform: scale(1.03); }

  /* Internal breathing room around the eyebrow → headline → dek → byline stack
     so text never kisses the card edge. The image still stretches edge-to-edge
     because it sits above this padding, not inside it. */
  .article-card .gl-eyebrow,
  .article-card .gl-article-card-headline,
  .article-card > p,
  .article-card > .text-muted,
  .article-card > div:not(:first-child) {
    padding-left: 4px;
    padding-right: 4px;
  }

  .article-card .gl-article-card-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
  }

  /* Tile card - same idea: breathing room around the text block. */
  .gl-tile-card {
    border-bottom: 1px solid #f3e8d7;
    padding: 4px 4px 18px;
  }
  .gl-tile-card .gl-eyebrow { font-size: 10px; }
  .gl-tile-card h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 17px;
    line-height: 1.25;
    margin: 8px 0 6px;
  }

  /* List variant - Bootstrap's .card already has rounded corners; give the
     inside-text column a touch more vertical rhythm. */
  .article-card .row .p-4 > * + * { margin-top: 6px; }

  /* Section rhythm: every block-level section gets consistent vertical air,
     and anchor links scroll past the sticky header instead of hiding under it. */
  section[id^="section-"],
  section.np-cover,
  .gl-top-banner + header,
  .container > section {
    scroll-margin-top: 90px;
  }

.gl-article-body {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 19px;
    line-height: 1.75;
    color: #2c2c2c;
  }
  .gl-article-body p { margin-bottom: 1.5rem; }
  .gl-article-body p:first-of-type::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 4.5em;
    line-height: 0.9;
    float: left;
    padding: 6px 12px 0 0;
    color: var(--primary-color);
    font-weight: 900;
  }
  .gl-article-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px; font-weight: 900;
    margin-top: 2.5rem; margin-bottom: 1rem;
    color: var(--primary-color-dark);
    letter-spacing: -0.01em;
  }
  .gl-article-body h3 { font-size: 24px; margin-top: 2rem; margin-bottom: 0.75rem; font-weight: 800; }
  .gl-article-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 12px 24px;
    margin: 2rem 0;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-style: italic;
    line-height: 1.4;
    color: var(--primary-color-dark);
    background: var(--tint-light);
    border-radius: 0 8px 8px 0;
  }
  .gl-article-body a { color: var(--primary-color); text-decoration: underline; text-underline-offset: 3px; }
  .gl-article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.75rem auto;
    border-radius: 6px;
  }
  .gl-article-body figure {
    margin: 1.75rem 0;
    max-width: 100%;
  }
  .gl-article-body figure img {
    margin-top: 0;
    margin-bottom: 0;
  }
  .gl-article-body figcaption {
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.5rem;
    text-align: center;
  }

  /* Sidebar widgets */
  .gl-sidebar { position: sticky; top: 16px; }
  .gl-widget {
    background: var(--bg-paper);
    border: 1px solid #f3e8d7;
    border-radius: 6px;
    padding: 22px;
    margin-bottom: 24px;
  }
  .gl-widget-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 18px;
    color: var(--primary-color-dark);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  .gl-popular-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3e8d7;
  }
  .gl-popular-item:last-child { border-bottom: 0; }
  .gl-popular-item img {
    width: 70px; height: 70px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
  }
  .gl-popular-item a {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
    text-decoration: none;
    line-height: 1.3;
  }
  .gl-popular-item a:hover { color: var(--primary-color); }
  .gl-popular-item .meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

  .gl-tag {
    display: inline-block;
    background: var(--tint-light);
    color: var(--primary-color-dark);
    border: 1px solid var(--tint-border);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 6px;
    margin-bottom: 6px;
    text-decoration: none;
  }
  .gl-tag:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

  .gl-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #f3e8d7;
    color: var(--text-muted);
    margin-right: 6px;
    text-decoration: none;
    transition: all 0.2s;
  }
  .gl-share-btn:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
  .gl-share-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }

  .gl-share-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
  }
  .gl-share-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 0.25rem;
  }
  .gl-share-group--inline-mobile {
    justify-content: flex-start;
  }
  .gl-share-group--footer {
    gap: 0.5rem 0.65rem;
  }
  .gl-share-group--sticky-bar {
    gap: 0.25rem;
    margin: 0;
  }
  .gl-share-group--sticky-bar .gl-share-btn {
    margin-right: 0;
    width: 48px;
    height: 48px;
  }

  /* Sticky mobile share bar (article read pages) */
  .gl-article-share-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.5rem max(0.75rem, env(safe-area-inset-left, 0)) calc(0.5rem + env(safe-area-inset-bottom, 0)) max(0.75rem, env(safe-area-inset-right, 0));
    background: rgba(255, 251, 247, 0.94);
    border-top: 1px solid var(--tint-border);
    box-shadow: 0 -8px 24px rgba(124, 45, 18, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .gl-article-share-bar[hidden] {
    display: none !important;
  }
  .gl-article-share-bar-label {
    font-family: 'Lato', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    flex-shrink: 0;
  }
  body.gl-article-share-bar-active {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  /* Mobile mid-article recirculation */
  .gl-article-recirc-mobile {
    margin: 2rem 0 1.25rem;
    padding: 1.25rem 0 0.25rem;
    border-top: 1px solid #f3e8d7;
  }
  .gl-article-recirc-mobile-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.85rem;
    padding-right: 0.25rem;
  }
  .gl-article-recirc-mobile-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--primary-color-dark);
    margin: 0;
    line-height: 1.2;
  }
  .gl-article-recirc-mobile-hint {
    font-family: 'Lato', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
  }
  .gl-article-recirc-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.15rem 0.25rem 0.65rem;
    margin: 0 -0.25rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .gl-article-recirc-card {
    flex: 0 0 9.5rem;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f3e8d7;
    background: #fff;
    box-shadow: 0 4px 12px rgba(124, 45, 18, 0.06);
  }
  .gl-article-recirc-card img {
    width: 100%;
    height: 5.5rem;
    object-fit: cover;
    display: block;
  }
  .gl-article-recirc-card-cat {
    display: block;
    font-family: 'Lato', system-ui, sans-serif;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    padding: 0.4rem 0.5rem 0;
  }
  .gl-article-recirc-card-title {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    padding: 0.2rem 0.5rem 0.55rem;
  }
  .gl-article-recirc-newsletter {
    margin: 0 0 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--tint-border);
    background: linear-gradient(135deg, var(--tint-light) 0%, var(--tint-mid) 100%);
    overflow: hidden;
  }
  .gl-article-recirc-newsletter-inner {
    padding: 1rem 1rem 1.1rem;
  }
  .gl-article-recirc-newsletter-copy {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted);
  }
  .gl-article-recirc-newsletter-form .input-group {
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(124, 45, 18, 0.08);
  }
  .gl-article-recirc-newsletter-form .form-control {
    border: 1px solid #f3e8d7;
    font-size: 16px;
    min-height: 44px;
  }
  .gl-article-recirc-newsletter-form .btn {
    border-radius: 0;
    font-weight: 700;
    white-space: nowrap;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .gl-author-bio {
    background: var(--tint-light);
    border-radius: 8px;
    padding: 24px;
    margin: 32px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }
  .gl-author-bio .avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 32px; font-weight: 900;
    flex-shrink: 0;
  }
  /* Photo variant - when an author has uploaded a profile photo, the <img> takes the
     same circular slot as the monogram. object-fit: cover keeps faces centered. */
  .gl-author-bio .avatar.avatar-photo {
    object-fit: cover;
    background: transparent;
  }
  @media (max-width: 575.98px) {
    .gl-author-bio {
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 20px 16px;
    }
  }

  /* Footer */
  .gl-footer {
    background: var(--primary-color-dark);
    color: var(--tint-mid);
    padding-top: 48px;
    padding-bottom: max(28px, calc(16px + env(safe-area-inset-bottom, 0px)));
    margin-top: 48px;
  }
  @media (min-width: 768px) {
    .gl-footer { padding-top: 60px; }
  }
  .gl-footer-brand-wordmark {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 28px;
    letter-spacing: -0.02em;
    line-height: 1.1;
  }
  .gl-footer-brand-wordmark .accent { color: var(--accent-color); }
  .gl-footer-about {
    font-size: 14px;
    line-height: 1.7;
    font-family: 'Source Serif 4', serif;
    font-style: italic;
    color: var(--tint-mid);
  }
  .gl-footer-about-mobile a {
    color: var(--accent-color);
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }
  .gl-footer-about-mobile a:hover { color: #fff; }
  .gl-footer-heading {
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    font-size: 12px;
    text-transform: uppercase;
  }
  .gl-footer-newsletter-dek {
    font-size: 13px;
    font-family: 'Source Serif 4', serif;
    font-style: italic;
    line-height: 1.55;
    margin-bottom: 0;
    color: var(--tint-mid);
  }
  .gl-footer a:not(.gl-footer-accordion-toggle) {
    color: var(--tint-mid);
    text-decoration: none;
    font-family: 'Lato', sans-serif;
  }
  .gl-footer a:not(.gl-footer-accordion-toggle):hover { color: #fff; }
  .gl-footer-link-grid a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 0;
    font-size: 14px;
  }
  .gl-footer-accordion-toggle {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 12px 14px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .gl-footer-accordion-toggle:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
  .gl-footer-accordion-icon { transition: transform 0.25s ease; font-size: 1.15rem; }
  .gl-footer-accordion-toggle[aria-expanded="true"] .gl-footer-accordion-icon {
    transform: rotate(180deg);
  }
  @media (min-width: 768px) {
    .gl-footer-link-panel.collapse {
      display: block !important;
      height: auto !important;
      visibility: visible;
    }
    .gl-footer-heading { margin-bottom: 18px; }
    .gl-footer-link-grid a { min-height: 44px; }
  }
  .gl-footer-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
  }
  .gl-footer-email-input {
    border-radius: 999px;
    color: #1a1a1a !important;
    background: #fff !important;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
  }
  .gl-footer-join-btn {
    background: var(--accent-color) !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 999px;
    padding: 6px 18px;
    border: none;
  }
  .gl-footer-sponsor-link {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65) !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }
  .gl-footer-alert { font-size: 13px; border-radius: 8px; }
  .gl-footer-legal-text { font-size: 12px; line-height: 1.6; max-width: 920px; }
  .gl-footer-legal-toggle {
    color: var(--tint-mid);
    font-family: 'Lato', sans-serif;
    font-size: 12px;
  }
  .gl-footer-legal-toggle summary {
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tint-border);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .gl-footer-bottom {
    border-top: 1px solid #92400e;
    margin-top: 24px;
    padding-top: 16px;
    font-size: 12px;
    color: var(--tint-border);
  }
  @media (min-width: 768px) {
    .gl-footer-bottom { margin-top: 36px; padding-top: 20px; }
  }
  .gl-footer-legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
  }
  .gl-footer-legal-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    color: var(--tint-mid);
    text-decoration: none;
    font-family: 'Lato', sans-serif;
  }
  .gl-footer-legal-nav a:hover { color: #fff; }
  .gl-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    line-height: 1;
    text-align: center;
    border: 1px solid var(--tint-mid); /* peach outline - visible against the dark saffron footer */
    border-radius: 50%;
    margin-right: 8px;
    color: var(--tint-mid);
    transition: all 0.2s;
    font-size: 16px;
  }
  .gl-social a:hover { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }
  .gl-social a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }

  /* Top banner band - keep the strip tight on every viewport */
  .gl-top-banner .ad-zone-container { margin: 0 !important; padding: 0; }
  .gl-top-banner-slot { display: flex; justify-content: flex-end; align-items: center; }
  /* Compact left-side sponsor slot (160x60). Caps its image so a wider creative
     scales down without breaking the row height. */
  .gl-top-banner-sponsor { display: flex; align-items: center; }
  .gl-top-banner-sponsor img { max-height: 60px !important; width: auto !important; max-width: 200px; }
  @media (max-width: 575.98px) {
    .gl-top-banner .container { padding-left: 12px; padding-right: 12px; }
    .gl-top-banner-slot { justify-content: center; width: 100%; }
    /* On phones the sponsor slot stays compact so it doesn't push the leaderboard below. */
    .gl-top-banner-sponsor img { max-height: 40px !important; max-width: 140px; }
    /* Desktop creative in the mobile fallback slot: fit inside the row (max-width
       + max-height) so width:auto does not reintroduce horizontal overflow. */
    .gl-top-banner-fallback .ad-zone-container img {
      display: block !important;
      width: auto !important;
      max-width: 100% !important;
      height: auto !important;
      max-height: 72px !important;
      object-fit: contain !important;
      margin-left: auto !important;
      margin-right: auto !important;
    }
  }

  /* ============================================================
     MOBILE OPTIMIZATION (≤ 480px) - homepage components
     ============================================================ */
  @media (max-width: 480px) {
    /* Cover Story - tighten vertical real estate on mobile */
    .np-cover-inner { padding: 40px 0 30px !important; }
    .gl-cover-dek { font-size: 16px !important; line-height: 1.45 !important; }
    .gl-cover-headline { letter-spacing: -0.005em !important; }

    /* Hero Article block - drop from 480px to a phone-friendly height */
    .hero-block { height: 320px !important; }
    .hero-block .p-5 { padding: 1.25rem !important; }

    /* Calendar list - compact date chip and tighter gap on phones */
    .gl-calendar-row { gap: 14px !important; padding: 14px 0 !important; }
    .gl-calendar-date { width: 64px !important; }
    .gl-calendar-date .day { font-size: 24px !important; }

    /* Section titles & kickers - scale down */
    .gl-section-title { font-size: 26px !important; }
    .gl-section-kicker { font-size: 11px !important; }

    /* Article card headline - keep it readable but not dominant */
    .gl-article-card-headline { font-size: 19px !important; line-height: 1.2 !important; }

    /* Container padding - reclaim pixels on small phones */
    .container { padding-left: 16px !important; padding-right: 16px !important; }

    /* Brand wordmark in main header - already 38px, dial back a touch */
    .gl-brand { font-size: 26px !important; }
    .gl-masthead-tagline { font-size: 10px !important; line-height: 1.3 !important; }

    /* Illustrated logo gets compact on phones so the masthead doesn't tower over content */
    .gl-masthead-logo { height: 48px !important; }
    .gl-masthead-link { gap: 8px !important; min-width: 0; }
    .gl-masthead-bar { gap: 6px !important; overflow: hidden; }
    .gl-subscribe-btn {
      padding: 8px 12px !important;
      font-size: 11px !important;
      letter-spacing: 0.2px !important;
      min-height: 44px !important;
      white-space: nowrap;
    }

    /* Event flyer column - visible even before Bootstrap grid utilities load */
    .np-event-card__flyer {
      min-height: 160px;
      background: var(--tint-light);
    }
    .np-event-card__flyer-img {
      display: block;
      min-height: 160px;
    }

    /* Event cards: stack image above copy on phones */
    .np-event-card .row { flex-direction: column !important; }
    .np-event-card .col-4,
    .np-event-card .col-8 { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
    .np-event-card .col-4 { min-height: 140px; max-height: 180px; }
    .np-event-card .col-8 { padding: 1rem 1.15rem !important; }

    /* Section vertical rhythm - py-5 (48px) is too heavy on a small phone.
       Pull every homepage section to a tighter 28px top/bottom. */
    section.py-5 { padding-top: 28px !important; padding-bottom: 28px !important; }

    /* Stop big article images from creating an awkward letterbox on tiny screens */
    .article-card img,
    .gl-tile-card img { max-height: 200px; object-fit: cover; }

    /* Cover story - one consistent mobile height */
    .np-cover { min-height: min(72vh, 520px) !important; }
  }

  /* Slightly bigger phones / small tablets (481-767) - light cleanup */
  @media (min-width: 481px) and (max-width: 767.98px) {
    .hero-block { height: 380px !important; }
    .gl-section-title { font-size: 30px !important; }
  }

  /* Form inputs inside dark surfaces (footer, utility bar) - keep typed text readable */
  .gl-footer input.form-control,
  .gl-footer input[type="email"],
  .gl-footer input[type="text"],
  .gl-utility input {
    color: #1a1a1a !important;
    background: #fff;
  }
  .gl-footer input::placeholder { color: #9b8b6e; opacity: 1; }

  /* Footer newsletter: full-width stack on small screens */
  .gl-footer-newsletter-form {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .gl-footer-newsletter-form .form-control,
  .gl-footer-newsletter-form button[type="submit"] {
    min-height: 48px;
    width: 100% !important;
  }
  @media (min-width: 576px) {
    .gl-footer-newsletter-form {
      flex-direction: row !important;
      align-items: center !important;
    }
    .gl-footer-newsletter-form .form-control {
      width: auto !important;
      flex: 1 1 auto;
      min-width: 0;
    }
    .gl-footer-newsletter-form button[type="submit"] {
      width: auto !important;
      flex: 0 0 auto;
    }
  }


  /* Hero block (used by ArticleRow style=hero) */
  .hero-block { background: #111; }
  .hero-block .gl-eyebrow { color: var(--accent-color); }

  /* Calendar list (Events) */
  .gl-calendar-row {
    display: flex; gap: 24px; align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #f3e8d7;
  }
  .gl-calendar-date {
    flex-shrink: 0;
    width: 84px;
    text-align: center;
    background: var(--tint-light);
    border-radius: 6px;
    padding: 10px 0;
  }
  .gl-calendar-date .day {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 36px;
    color: var(--primary-color);
    line-height: 1;
  }
  .gl-calendar-date .month {
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 11px;
    color: var(--primary-color-dark);
    font-weight: 700;
    margin-top: 4px;
  }

  /* Flipbook (matches the legacy homepage exactly, tinted to saffron) */
  .flipbook-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(124, 45, 18, 0.15);
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 1000px;
    margin: 0 auto;
    transition: transform 0.3s ease;
  }
  .flipbook-wrapper:hover { transform: translateY(-5px); }

  .responsive-iframe-container {
    position: relative;
    width: 100%;
    height: 60vh;
    max-height: 550px;
    min-height: 350px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  @media (max-width: 480px) {
    .responsive-iframe-container { min-height: 220px; height: 50vh; max-height: 360px; }
  }
  .responsive-iframe-container > *:not(script) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  @media (max-width: 768px) {
    .gl-article-title { font-size: 32px; }
    .gl-article-dek, .gl-cover-dek { font-size: 17px; }
    .gl-article-body { font-size: 17px; }
    .gl-cover-headline { font-size: 36px; }
    .np-cover { min-height: min(72vh, 520px); }
    .np-cover-inner { padding: 44px 0 36px; }
  }

/* from public-mobile-enhancements.blade.php */
/* Safe areas (notched phones) */
  body {
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }

  /* Readable base size + comfortable tap targets on small screens */
  @media (max-width: 767.98px) {
    html {
      -webkit-text-size-adjust: 100%;
      text-size-adjust: 100%;
    }

    /* Prevents iOS zoom on focus; keeps forms readable */
    textarea.form-control,
    select.form-select,
    input.form-control:not([type="checkbox"]):not([type="radio"]) {
      font-size: 16px !important;
      min-height: 44px;
    }

    .btn:not(.btn-sm):not(.btn-xs),
    button.btn-lg {
      min-height: 44px;
      padding-top: 0.55rem;
      padding-bottom: 0.55rem;
    }

    .form-check-input {
      width: 1.15rem;
      height: 1.15rem;
      margin-top: 0.2rem;
    }

    /* Masthead: logo + tagline + Subscribe stay within the viewport */
    .gl-masthead-bar {
      gap: 6px !important;
      overflow: hidden;
    }
    .gl-masthead-logo {
      height: 48px !important;
      width: auto !important;
    }
    .gl-brand {
      font-size: clamp(20px, 6.2vw, 32px) !important;
    }
    .gl-subscribe-btn {
      padding: 8px 12px !important;
      font-size: 11px !important;
      letter-spacing: 0.2px !important;
      min-height: 44px !important;
      white-space: nowrap;
    }

    .gl-masthead-tagline {
      font-size: 10px !important;
      line-height: 1.3 !important;
    }

    /* Sticky nav: reserve safe top inset */
    .gl-nav {
      top: env(safe-area-inset-top, 0) !important;
    }

    /* Homepage cover: consistent hero height on phones */
    .np-cover {
      min-height: min(72vh, 520px) !important;
    }
    .np-cover-inner {
      padding: 44px 0 36px !important;
    }

    .np-event-card .row {
      flex-direction: column !important;
    }
    .np-event-card .col-4,
    .np-event-card .col-8,
    .np-event-card .col-md-4,
    .np-event-card .col-md-8 {
      width: 100% !important;
      max-width: 100% !important;
      flex: 0 0 100% !important;
    }
    .np-event-card .col-4,
    .np-event-card .col-md-4 {
      min-height: 140px;
      max-height: 180px;
    }

    /* Featured row: two stories on narrow phones (cover already leads) */
    .np-article-row--featured .row > .col-md-4:nth-child(3) {
      display: none !important;
    }

    /* Footer: newsletter stacks full-width */
    .gl-footer-newsletter-form {
      flex-direction: column !important;
      align-items: stretch !important;
      gap: 0.65rem !important;
    }
    .gl-footer-newsletter-form .form-control,
    .gl-footer-newsletter-form .btn {
      width: 100% !important;
      border-radius: 999px !important;
      min-height: 44px;
    }
    .gl-footer-nav-col {
      margin-top: 0.25rem;
    }
    .gl-footer-link-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0 10px;
    }
    .gl-footer-link-grid a {
      min-height: 38px;
      padding: 4px 0;
      font-size: 13px;
    }
    .gl-footer-main {
      row-gap: 1.25rem !important;
    }
    .gl-footer-newsletter {
      padding-bottom: 0.5rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.12);
      margin-bottom: 0.25rem;
    }
    .gl-footer .gl-social a {
      min-width: 44px;
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    /* Tables / prose: horizontal scroll without breaking layout */
    .table-responsive,
    .np-article-body table,
    article table {
      display: block;
      width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }

    /* Public widgets & cards */
    .gl-widget {
      padding: 1.25rem !important;
    }

    .gl-article-recirc-scroll {
      scroll-padding-left: 0.25rem;
    }
    .gl-article-recirc-card {
      flex-basis: 10.5rem;
    }

    /* Magazine search: stacked search bar */
    .gl-search .input-group {
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      border-radius: 16px;
      overflow: hidden;
    }
    .gl-search .input-group > .form-control {
      border-radius: 16px 16px 0 0 !important;
      width: 100% !important;
      min-height: 48px;
    }
    .gl-search .input-group > .btn {
      border-radius: 0 0 16px 16px !important;
      width: 100% !important;
      min-height: 48px;
    }
  }

  @media (max-width: 575.98px) {
    .container,
    .container-sm {
      padding-left: max(0.75rem, env(safe-area-inset-left, 0));
      padding-right: max(0.75rem, env(safe-area-inset-right, 0));
    }
  }
