/*
 * articles.css — Last Minute Laura
 * Shared styles for all article pages (index + individual articles).
 * Load after style.css on every page inside /articles/.
 *
 * style.css handles: CSS variables, nav, footer, fonts, body reset.
 * This file handles: nav scoping fix, breadcrumb, hero, article
 *   sections, info box, article list (index), and mobile nav.
 *
 * ============================================================
 * FOOTER NAV BUG — important note
 * ============================================================
 * The footer uses a <nav> element. Nav styles are scoped here to
 * nav[aria-label="Main navigation"] only. Never style the bare
 * `nav` element globally or the footer nav will inherit the
 * cream background and break.
 * ============================================================
 */

/* ============================================================
   NAV — scoped to main nav only
============================================================ */
nav[aria-label="Main navigation"] {
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

/* ============================================================
   BREADCRUMB
============================================================ */
.breadcrumb {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
  font-size: 0.8rem;
  color: var(--color-muted);
}
.breadcrumb a {
  color: var(--color-terra);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--color-terra-dark);
  text-decoration: underline;
}
.breadcrumb span {
  margin: 0 6px;
  opacity: 0.5;
}

/* ============================================================
   HERO — shared between index and article pages
============================================================ */
.articles-hero,
.article-hero {
  background: var(--color-linen);
  padding: 3rem 1.5rem 2.5rem;
  border-bottom: 1px solid var(--color-border);
}
.articles-hero-inner,
.article-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}
.articles-hero h1,
.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--color-brown);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.articles-hero p,
.article-hero p {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.75;
  max-width: 520px;
}
.updated-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-linen);
  border: 0.5px solid var(--color-border);
  border-radius: 100px;
  padding: 3px 12px;
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 0.75rem;
}

/* ============================================================
   ARTICLE BODY (individual article page)
============================================================ */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* Video embed */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-brown);
  margin-bottom: 2.5rem;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Sections — mirrors privacy-section pattern */
.article-section {
  margin-bottom: 2.5rem;
}
.article-section h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-brown);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.2;
}
.article-section p {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}
.article-section p:last-child {
  margin-bottom: 0;
}
.article-section a {
  color: var(--color-terra);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.article-section a:hover {
  color: var(--color-terra-dark);
  text-decoration: underline;
}

/* Info box — mirrors privacy.html */
.info-box {
  background: var(--color-terra-light);
  border-left: 3px solid var(--color-terra);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.9rem 1.1rem;
  margin: 0.75rem 0;
}
.info-box p {
  color: #5a2a14;
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.7;
}

/* ============================================================
   ARTICLES LIST (index page)
============================================================ */
.articles-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.article-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.75rem 0;
}
.article-item:first-child {
  padding-top: 0;
}
.article-item:last-child {
  border-bottom: none;
}

.article-item-label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-terra);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.article-item h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-brown);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.article-item h2 a {
  text-decoration: none;
  color: var(--color-brown);
  transition: color 0.2s;
}
.article-item h2 a:hover {
  color: var(--color-terra);
}

.article-item p {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: 0.75rem;
  max-width: 580px;
}

.article-item-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.article-chip {
  display: inline-flex;
  align-items: center;
  background: var(--color-terra-light);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 0.72rem;
  color: var(--color-terra);
  font-weight: 500;
}
.article-read-more {
  font-size: 0.83rem;
  color: var(--color-terra);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.article-read-more:hover {
  color: var(--color-terra-dark);
  text-decoration: underline;
}

/* ============================================================
   MOBILE NAV — hamburger
   Applies to all article pages.
   AD SLOTS: natural gaps exist above/below .article-section
   and between .article-item entries on the index page.
   Do not fill these gaps with content — reserved for future ads.
============================================================ */
@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0 1rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 199;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    width: 100%;
  }
  .nav-cta {
    padding: 0.65rem 1rem !important;
    margin: 0.4rem 1.5rem !important;
    width: calc(100% - 3rem) !important;
    font-size: 0.9rem !important;
    text-align: center;
    border-radius: 6px;
    display: block;
  }
}