/* Shared editorial layout for the household guides and professional library. */
:root {
  --paper: #f6f7f1;
  --white: #fffffa;
  --ink: #203b38;
  --muted: #4c605d;
  --teal: #155d58;
  --coral: #a54e35;
  --line: #d6e0d8;
  --shadow: 0 12px 32px #203b3810;
}

[id] { scroll-margin-top: 110px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 2000; padding: 10px 14px; color: #fff; background: var(--teal); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.site-header { gap: 16px; background: var(--white); }
.site-header nav a[aria-current="page"] { background: #e8f0e8; color: var(--teal); }
.site-header nav a { line-height: 1.35; }
.js-ready .menu-button { min-height: 44px; }

.hero {
  max-width: 1480px;
  margin-inline: auto;
  min-height: 0;
  gap: clamp(22px, 4vw, 62px);
  padding: clamp(28px, 5vw, 72px) clamp(20px, 6vw, 86px);
  overflow: visible;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
.hero h1 { max-width: 13ch; font-size: clamp(42px, 5.25vw, 76px); overflow-wrap: normal; }
.hero p:not(.eyebrow) { max-width: 42ch; line-height: 1.55; }
.hero .eyebrow { color: var(--teal); }
.hero-actions { margin-top: 22px; }
.hero-actions a, .reference-band a { border-radius: 6px; }
.hero figure { padding: 0; border: 0; border-radius: 12px; overflow: hidden; transform: none; }
.hero figure img { aspect-ratio: 5 / 4; object-position: 50% 62%; }
.magazine-grid, .page-shell, .intro-shell { width: min(100%, 1480px); margin-inline: auto; }
.home-topics { padding-top: clamp(20px, 4vw, 40px); padding-bottom: clamp(28px, 5vw, 56px); }
.home-topics .section-head { margin-bottom: 6px; }
.home-topics .section-head h2 { font-size: clamp(28px, 3.5vw, 44px); }
.home-topics .post-card h3 { font-size: clamp(20px, 1.9vw, 25px); margin-top: 14px; }
.home-topics .post-card img { aspect-ratio: 2 / 1; }
.intro-shell { padding-block: 20px; }
.intro-article { max-width: none; padding: clamp(22px, 4vw, 42px); border-radius: 10px; box-shadow: none; }
.intro-article h2 { margin-top: 0; }
.intro-article h2 + p { margin-bottom: 0; max-width: 76ch; }
.reference-band { width: min(calc(100% - 40px), 1308px); margin-inline: auto; border-radius: 12px; background: #244a45; }
.reference-band a { background: #ecf3e9; color: #244a45; }

.article p, .article-grid p, .related-reading p, .intro-article p, .reference-band p { text-align: start; }
.article, .post-card { border-radius: 10px; overflow: hidden; }
.post-card { align-content: start; min-height: 0; }
.post-card.featured { display: grid; grid-column: auto; grid-template-columns: minmax(0, 1fr); }
.post-card.featured img, .post-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-right: 0; }
.post-card .card-date { color: var(--muted); letter-spacing: .02em; font-weight: 600; }
.post-card p { line-height: 1.55; }
.post-card .card-title { margin: 9px 20px 0; color: var(--ink); font-size: clamp(21px, 2vw, 27px); line-height: 1.13; }
.library-links { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-block: 20px 35px; }
.library-section + .library-section { margin-top: 52px; }
.article-hero { max-height: 450px; border-radius: 8px; }
.article > .eyebrow { font-size: .8rem; letter-spacing: .11em; }
.article figure { margin: 24px 0 28px; }
.article figure .article-hero { margin: 0; }
.article figcaption { margin-top: 6px; font-size: .85rem; color: var(--muted); }
.split-page > img { width: 100%; aspect-ratio: 5 / 4; border-radius: 10px; object-fit: cover; }
.page-shell a { overflow-wrap: anywhere; }
.site-footer p { max-width: 76ch; }
.contact-toggle { min-height: 44px; padding: 8px 16px; font-size: 14px; }
[data-rfq-form] button { min-height: 44px; }

@media (min-width: 681px) and (max-width: 980px) {
  .hero { align-items: center; }
  .hero h1 { max-width: 15ch; }
  .hero p:not(.eyebrow) { font-size: 17px; }
  .home-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .site-header { align-items: center; flex-direction: row; }
  .site-header nav { gap: 4px; }
  .site-header nav a { padding-block: 10px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 24px 18px 22px; }
  .hero p:not(.eyebrow) { font-size: 16px; margin-block: 12px; }
  .hero-actions { margin-top: 16px; gap: 8px; }
  .hero-actions a { padding: 9px 12px; font-size: 14px; }
  .hero figure img { aspect-ratio: 16 / 8; object-position: 50% 65%; }
  .home-topics .post-card img { aspect-ratio: 3 / 1; }
  .article-hero { margin: 18px 0; }
  .article figure { margin: 18px 0 22px; }
  .article h2 { margin-top: 30px; }
  .contact-toggle { right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .post-card { transition: none; }
  .post-card:hover { transform: none; }
}
