/* Article pages: long guides with wording cards and product boxes. Loads after styles.css. */

/* ---------- Head ---------- */

.article-hero { background: var(--surface-raised); }
.article-head {
  padding-top: 40px;
  padding-bottom: 64px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: 64px;
  align-items: center;
}
.article-head__text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.article-head__image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* Placeholder until the real photo exists */
.article-head__image--slot {
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: var(--paper-cream);
  outline: 1px solid var(--ink-brass);
  outline-offset: -10px;
  font-size: var(--text-sm);
  line-height: 1.4;
}
.article-head__image--slot span { padding: 8px 12px; }
.crumbs ol { display: flex; flex-wrap: wrap; margin: 0 0 16px; padding: 0; list-style: none; font-size: var(--text-sm); }
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin: 0 12px; color: var(--ink-brass); }
.crumbs a { min-height: var(--tap-min); display: inline-flex; align-items: center; font-weight: var(--weight-regular); color: var(--ink-bark); }
.article-head__title { max-width: 22ch; font-size: 48px; line-height: 1.1; }
.article-head__lede { max-width: 46ch; font: 400 var(--text-md)/1.5 var(--font-serif); }
.article-head__meta { font-size: var(--text-sm); }

/* ---------- Layout: guide list left, text right ---------- */

.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 700px);
  column-gap: 96px;
  padding-top: 64px;
  padding-bottom: var(--section-y);
}
.guide-nav { position: sticky; top: 32px; align-self: start; display: flex; flex-direction: column; gap: 12px; }
.guide-nav ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-soft); }
.guide-nav li { border-bottom: 1px solid var(--rule-soft); }
.guide-nav a {
  min-height: var(--tap-min);
  padding: 10px 0;
  display: flex;
  align-items: center;
  font-size: var(--text-sm);
  line-height: 1.35;
}

/* ---------- Text ---------- */

.prose { min-width: 0; font-size: var(--text-base); line-height: 1.7; }
.prose > p:first-child { font: 400 var(--text-md)/1.6 var(--font-serif); }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 72px; font-size: var(--text-xl); line-height: 1.2; scroll-margin-top: 24px; }
.prose h2 + * { margin-top: 16px; }
.prose ul { display: flex; flex-direction: column; gap: 10px; }
.prose li { position: relative; padding-left: 26px; }
/* Rust point, like the square after the wordmark */
.prose li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 7px; height: 7px; background: var(--ink-rust); }

/* ---------- Wording card ---------- */

.prose .wording { margin: 32px 0 0; }
.wording {
  padding: 44px 48px 28px;
  background: var(--surface-raised);
  outline: 1px solid var(--ink-brass);
  outline-offset: -10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.wording__label { color: var(--ink-slate); }
.wording__text { margin: 0; font: 400 var(--text-md)/1.55 var(--font-serif); }
.wording__text p { white-space: pre-line; }
.wording__text p + p { margin-top: 18px; }
.wording__actions { display: flex; align-items: center; gap: 16px; min-height: var(--tap-min); }
.wording__actions[hidden] { display: none; }
.wording__copy {
  min-height: var(--tap-min);
  padding: 0 4px;
  border: 0;
  background: none;
  font: var(--weight-semibold) var(--text-sm)/1 var(--font-sans);
  color: var(--link);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: var(--underline-thickness);
  text-underline-offset: var(--underline-offset);
  text-decoration-color: transparent;
  transition: color 120ms ease, text-decoration-color 120ms ease;
}
.wording__copy:hover { color: var(--action-primary-hover); text-decoration-color: var(--link-underline); }
.wording__copy:focus-visible { outline: 2px solid var(--ink-moss); outline-offset: 2px; text-decoration-color: var(--link-underline); }
.wording__status { font-size: var(--text-sm); }
.wording__status:empty { display: none; }

/* Short one-line wordings sit tighter */
.prose .wording--line { margin-top: 16px; }
.prose .wording--line + p { margin-top: 24px; }
.wording--line { padding: 32px 40px 16px; gap: 12px; }
.wording--line .wording__text { font-size: 20px; }

/* ---------- Product box ---------- */

.prose .callout { margin: 48px 0 0; }
.callout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  column-gap: 40px;
  align-items: center;
  padding: 36px 40px;
  border: 1px solid var(--rule-soft);
}
.callout__card { display: flex; justify-content: center; }
.callout .card-paper { zoom: 0.5; --tilt: -3deg; box-shadow: var(--shadow-card); }
.callout--partner .card-paper { --tilt: 2deg; }
.callout__text { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.callout__title { font: var(--weight-semibold) var(--text-lg)/1.2 var(--font-serif); letter-spacing: var(--tracking-headline); }
.callout__body { font-size: var(--text-base); line-height: 1.6; }
.callout__price { font-weight: var(--weight-semibold); }
.callout__btn { margin-top: 6px; }
.callout__note { font-size: var(--text-xs); line-height: 1.5; }

/* ---------- End of article ---------- */

.article-end { margin-top: 80px; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.related { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.related__title { font-size: var(--text-lg); }
.related ul { display: block; border-top: 1px solid var(--rule-soft); }
.related li { padding: 0; border-bottom: 1px solid var(--rule-soft); }
.related li::before { content: none; }
.related a {
  min-height: 64px;
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font: 500 var(--text-md)/1.4 var(--font-serif);
  color: var(--ink-bark);
}
.related a:hover { color: var(--action-primary-hover); }
.article-end__updated { font-size: var(--text-sm); }
.article-end__hub { min-height: var(--tap-min); display: inline-flex; align-items: center; }

/* ---------- Tablet ---------- */

@media (max-width: 1200px) {
  .article-layout { grid-template-columns: 200px minmax(0, 1fr); column-gap: 56px; }
}

/* ---------- Phone ---------- */

@media (max-width: 900px) {
  .article-head { display: flex; flex-direction: column; align-items: stretch; gap: 28px; padding-top: 16px; padding-bottom: 40px; }
  .article-head__text { gap: 12px; }
  .crumbs ol { margin-bottom: 8px; }
  .article-head__title { font-size: 34px; line-height: 1.12; }
  .article-head__lede { font-size: 20px; }

  /* The phone menu has "On this page"; show the guide list inline too, as a plain list */
  .article-layout { display: flex; flex-direction: column; gap: 40px; padding-top: 40px; }
  .guide-nav { position: static; align-self: stretch; }

  .prose > p:first-child { font-size: 20px; }
  .prose h2 { margin-top: 56px; font-size: 26px; }

  .wording { padding: 36px 24px 20px; outline-offset: -8px; }
  .wording__text { font-size: 20px; }
  .wording--line { padding: 28px 24px 12px; }
  .wording--line .wording__text { font-size: 19px; }

  .callout { grid-template-columns: 1fr; row-gap: 24px; padding: 28px 20px; }
  .callout__card { justify-content: flex-start; }
  .callout .card-paper { zoom: 0.42; }
  .callout__btn { width: 100%; }

  .article-end { margin-top: 56px; }
  .related a { font-size: 20px; }
}
