
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--primary);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Sticky glass topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Editorial Hero Banner (desktop background photo + left gradient; mobile 16:9 stacked) */
.hero-wrap {
  position: relative;
}
.hero-banner {
  position: relative;
  min-height: clamp(320px, 38vw, 460px);
  display: flex;
  align-items: center;
  background-color: var(--hero-bg, var(--surface));
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero-mobile-media {
  display: none;
}
.hero-inner {
  width: 100%;
  max-width: var(--container, 1140px);
  margin: 0 auto;
  padding: clamp(2.4rem, 5vw, 4rem) 1.5rem;
  position: relative;
  z-index: 2;
}
.hero-copy {
  max-width: min(560px, 56%);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.hero-banner h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.hero-lead {
  margin: 0 0 1.45rem;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.62;
  max-width: 48ch;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.68rem 1.2rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.hero-cta:hover {
  transform: translateY(-1px);
}
.hero-cta-arrow {
  transition: transform 0.18s ease;
}
.hero-cta:hover .hero-cta-arrow {
  transform: translateX(3px);
}

/* Section headings */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2.5rem 0 1.15rem;
}
.section-head:first-child { margin-top: 0; }
.section-head h2 {
  margin: 0;
  font-size: clamp(1.32rem, 2.2vw, 1.65rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
}
.section-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

/* Editorial article reading view */
.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.article-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.article-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.article-breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.article-header h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.9rem, 3.6vw, 2.65rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.1rem;
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
}
.article-meta-sep { opacity: 0.45; }
.reading-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.58rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--surface-alt, var(--surface));
  border: 1px solid var(--border);
  color: var(--text);
}

/* Prose typography */
.article-body {
  font-size: 1.03rem;
  line-height: 1.78;
}
.article-body > p:first-of-type {
  font-size: 1.12rem;
  line-height: 1.72;
  color: var(--text);
}
.article-body h2 {
  margin: 2.3rem 0 0.85rem;
  font-size: clamp(1.32rem, 2.1vw, 1.62rem);
  line-height: 1.24;
  letter-spacing: -0.015em;
}
.article-body h3 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.16rem;
  line-height: 1.3;
}
.article-body p { margin: 0 0 1.2rem; }
.article-body ul, .article-body ol {
  margin: 0 0 1.3rem;
  padding-left: 1.35rem;
}
.article-body li { margin-bottom: 0.45rem; }
.article-body blockquote {
  margin: 1.6rem 0;
  padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--primary);
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text);
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.article-body details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1.15rem;
  margin: 0.75rem 0;
}
.article-body summary {
  font-weight: 600;
  cursor: pointer;
}

/* Status pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.pill-ok { background: #E7F4EC; color: #165B38; border: 1px solid #C2E2CE; }
.pill-no { background: #FCECE8; color: #962E1B; border: 1px solid #F2C9BF; }
.pill-warn { background: #FDF3DF; color: #7C4A0E; border: 1px solid #F0D6A3; }

/* Responsive tables */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.1rem 0 2.2rem;
}

/* Mobile hero stack (< 768px): full 16:9 image above, crisp copy below, zero overlap */
@media (max-width: 767px) {
  .hero-banner {
    background-image: none !important;
    min-height: 0;
    display: block;
  }
  .hero-mobile-media {
    display: block;
    width: 100%;
    overflow: hidden;
  }
  .hero-mobile-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: right center;
  }
  .hero-inner {
    padding: 1.75rem 1.25rem 2.1rem;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero-banner h1 {
    font-size: clamp(1.85rem, 7.5vw, 2.35rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:root {
  --primary: #C9A227;
  --primary-deep: #8A6B0E;
  --secondary: #3E5C76;
  --accent: #8C5A3C;
  --bg: #FAF6EA;
  --surface: #FFFFFF;
  --surface-alt: #F4EDD7;
  --text: #262522;
  --muted: #52514A;
  --border: #E5DCB9;
  --hero-bg: #F6F1DF;
  --container: 1120px;
  --shadow-card: 0 1px 2px rgba(38,37,34,.04), 0 12px 32px rgba(38,37,34,.05);
}
body { font-family: 'Work Sans', system-ui, -apple-system, sans-serif; }
h1, h2, h3, .brand { font-family: 'Bitter', Georgia, serif; font-weight: 700; }
a { color: var(--secondary); text-decoration-color: rgba(62, 92, 118, 0.45); }
a:hover { color: var(--accent); }
.mono { font-size: 0.84rem; color: var(--muted); }

.topbar {
  background: rgba(255, 255, 255, 0.9);
  border-top: 3px solid var(--primary);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--container); margin: 0 auto; padding: 0.85rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.18rem;
}
.nav { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: 0.9rem; font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted); padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--primary); }

.hero-wrap { max-width: var(--container); margin: 1.75rem auto 0; padding: 0 1.5rem; }
.hero-banner {
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background-image:
    linear-gradient(95deg, rgba(250, 246, 234, 0.98) 0%, rgba(250, 246, 234, 0.93) 44%, rgba(250, 246, 234, 0.42) 60%, rgba(250, 246, 234, 0) 76%),
    url('banner.webp');
}
.hero-inner { padding: clamp(2.2rem, 4.5vw, 3.4rem) clamp(1.5rem, 3.5vw, 3rem); }
.hero-kicker {
  color: var(--accent); background: #FFFFFF; border: 1px solid var(--border);
  padding: 0.22rem 0.65rem; border-radius: 999px;
}
.hero-banner h1 { color: var(--text); font-weight: 800; }
.hero-lead { color: #43423C; }
.hero-cta {
  background: var(--secondary); color: #FFFFFF; border-radius: 10px;
}
.hero-cta:hover { background: var(--text); color: #FFFFFF; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.narrow { max-width: 680px; margin: 0 auto; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 1.1rem; margin: 1rem 0 2.6rem; }
.slot-card {
  background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--primary);
  border-radius: 12px; padding: 1.35rem; text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 0.5rem; box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.slot-card:hover { transform: translateY(-2px); border-color: var(--secondary); box-shadow: 0 6px 20px rgba(38,37,34,.08); }
.slot-num {
  align-self: flex-start; font-size: 0.74rem; font-weight: 700; padding: 0.16rem 0.55rem;
  border-radius: 999px; background: var(--bg); border: 1px solid var(--primary); color: var(--accent);
}
.slot-card h3 { margin: 0; font-size: 1.14rem; }
.slot-q { margin: 0; font-size: 0.88rem; color: var(--secondary); font-weight: 600; }
.slot-card p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.55; }

.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 275px; gap: 2.3rem; align-items: start; }
.faq-list { display: grid; gap: 1rem; margin: 1rem 0 2.2rem; }
.faq-box {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: 12px; padding: 1.25rem 1.4rem; box-shadow: var(--shadow-card);
}
.faq-box h3 { margin: 0 0 0.45rem; font-size: 1.1rem; }
.faq-box p { margin: 0; font-size: 0.94rem; color: var(--muted); }
.corner-aside {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.35rem; position: sticky; top: 5rem; box-shadow: var(--shadow-card);
}
.corner-aside h2 { margin: 0 0 0.75rem; font-size: 1.08rem; color: var(--accent); }
.corner-aside ul { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: 0.45rem; font-size: 0.92rem; }
.corner-aside a { text-decoration: none; color: var(--text); }
.corner-aside a:hover { color: var(--secondary); text-decoration: underline; }
.corner-note { padding-top: 0.95rem; border-top: 1px solid var(--border); font-size: 0.87rem; color: var(--muted); line-height: 1.58; }

.callout { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 10px; padding: 1.15rem 1.35rem; margin: 1.25rem 0; box-shadow: var(--shadow-card); }
.article-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.85rem; }
.article-list li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  box-shadow: var(--shadow-card); transition: transform 0.18s ease, border-color 0.18s ease;
}
.article-list li:hover { transform: translateY(-2px); border-color: var(--primary); }
.article-list a { text-decoration: none; color: var(--text); }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 2.2rem 1.5rem; font-size: 0.88rem; color: var(--muted); }
.footer-inner { max-width: var(--container); margin: 0 auto; display: flex; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--primary); }
@media (max-width: 860px) {
  .faq-layout { grid-template-columns: 1fr; }
  .corner-aside { position: static; }
}
@media (max-width: 767px) {
  .hero-wrap { margin-top: 0; padding: 0; }
  .hero-banner { border-radius: 0; border-left: 0; border-right: 0; }
}
