/* Content pages (plan 01, lane W5): FAQ, recipes, guides, legal extras.
   Uses the tokens and components of style.css; only layout for the new blocks lives here. */

/* Page head: breadcrumbs, the quotable answer, last-updated line */
.content-head .crumbs {
  margin-bottom: 1.4rem;
}
.content-head .d1 {
  max-width: 22ch;
}
.content-head .content-answer {
  max-width: 68ch;
}
.content-updated {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--tx-muted);
}

/* FAQ */
.faq-page {
  display: grid;
  gap: clamp(2.4rem, 5vw, 4rem);
  max-width: 62rem;
}
.faq-group .d3 {
  margin-bottom: 0.4rem;
}
.faq-group .pdp-more {
  margin-top: 0.8rem;
}
.faq-group summary {
  min-height: 44px;
}
.faq-links {
  margin-top: -0.5rem;
  padding-bottom: 1.15rem;
  font-size: 0.9rem;
}
.faq-links a,
.content-help a,
.guide-aside a:not(.btn) {
  color: var(--hd);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}
.faq-links a:hover,
.content-help a:hover,
.guide-aside a:not(.btn):hover {
  text-decoration-color: currentColor;
}
.content-help {
  max-width: 62ch;
}
.content-help .body-2 {
  margin-top: 1rem;
}

/* Recipe cards */
.rgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
  align-items: start;
}
.rcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}
.rcard img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--panel-2);
}
.rcard-body {
  padding: 1.2rem 1.3rem 1.5rem;
}
.rcard-meta {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent, var(--flame));
}
.rcard-title {
  font-size: 1.45rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 0.5rem;
  color: var(--hd, var(--tx));
}
.rcard-sum {
  margin-top: 0.6rem;
  color: var(--tx-2);
  font-size: 0.95rem;
}
.rcard h3 {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--tx-muted);
  margin: 1.1rem 0 0.45rem;
}
.rcard ul,
.rcard ol {
  padding-left: 1.15rem;
  color: var(--tx-2);
  font-size: 0.92rem;
}
.rcard ul {
  list-style: disc;
}
.rcard ol {
  list-style: decimal;
}
.rcard li + li {
  margin-top: 0.3rem;
}
.rcard li::marker {
  color: var(--flame);
}
.rcard-items a {
  color: var(--hd);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}

/* Guides index */
.ggrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.gcard {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.gcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -30px rgba(60, 10, 6, 0.5);
}
.gcard img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.gcard-body {
  padding: 1.2rem 1.3rem 1.5rem;
}
.gcard-title {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
}
.gcard-title a {
  color: var(--hd, var(--tx));
}
.gcard-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.gcard-title a:focus-visible {
  outline: none;
}
.gcard:focus-within {
  outline: 2px solid var(--flame);
  outline-offset: 3px;
}
.gcard p {
  margin-top: 0.6rem;
  color: var(--tx-2);
  font-size: 0.92rem;
}

/* Guide article */
.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 17rem);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.guide-fig {
  margin: 0 0 2rem;
}
.guide-fig img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 28rem;
  object-fit: cover;
  border-radius: var(--r-lg);
}
.guide ol.guide-sources {
  list-style: decimal;
  padding-left: 1.25rem;
  margin: 0.8rem 0;
  font-size: 0.9rem;
}
.guide ol.guide-sources li + li {
  margin-top: 0.45rem;
}
.guide-aside {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.guide-aside h2 {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--tx-muted);
  margin-bottom: 0.7rem;
}
.guide-aside ul + h2 {
  margin-top: 1.6rem;
}
.guide-aside li + li {
  margin-top: 0.45rem;
}
.guide-aside li {
  font-size: 0.95rem;
}
.guide-aside .btn {
  margin-top: 1.6rem;
}

@media (max-width: 860px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .guide-aside {
    position: static;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gcard,
  .gcard:hover {
    transition: none;
    transform: none;
  }
}
