/* Marketing article / index / FAQ / 404 page chrome — loaded on non-home routes. */
.page {
  width: 100%;
  max-width: var(--grid-max-width);
  margin: 0 auto;
  padding: 48px var(--grid-margin) 96px;
  display: grid;
  /* One explicit track on small screens so cards cannot collapse into a
     leftover 8-col / 4-col cell (Safari often fails `1 / -1` with
     `repeat(var(--grid-columns), …)`). Desktop keeps the 8-col measure. */
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--grid-gutter);
  row-gap: 0;
  /* Short pages (Tools) must not stretch rows to fill the viewport.
     Terms is long enough that stretch never shows. */
  align-content: start;
  box-sizing: border-box;
  overflow-x: clip;
}

.page > * {
  grid-column: 1 / -1;
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 769px) {
  .page {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
  .page > * {
    grid-column: 1 / span 6;
  }

  .page--comparison > * {
    grid-column: 1 / -1;
  }
}

.page h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0 0 var(--space-sm);
}

.page .lede {
  color: var(--text-secondary);
  margin-bottom: var(--space-xxl);
}

.page h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 32px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: var(--space-xxxl) 0 var(--space-sm);
}

.page h3 {
  font-family: var(--sans);
  /* title3 size/leading, bodyEmphasis weight */
  font-size: 22px;
  font-weight: 500;
  line-height: 28px;
  color: var(--text-primary);
  margin: var(--space-xl) 0 var(--space-xxs);
}

.page p,
.page li {
  color: var(--text-primary-subdued);
  /* woodward-ui .body */
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  overflow-wrap: break-word;
}

.page code {
  overflow-wrap: anywhere;
}

.page p {
  margin: 0 0 var(--space-lg);
}

.page ul,
.page ol {
  margin: 0 0 var(--space-lg);
  padding-left: 1.2em;
}

.page li {
  margin-bottom: var(--space-xxs);
}

.page li:last-child {
  margin-bottom: 0;
}

.page blockquote {
  margin: var(--space-lg) 0;
  padding: 0 0 0 var(--space-sm);
  border-left: 2px solid var(--border);
  color: var(--text-secondary);
}

.page blockquote p:last-child {
  margin-bottom: 0;
}

/* Body links: same ink as the paragraph, discoverable by weight; underline on hover/focus */
.page a {
  color: inherit;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 3px;
}

.page a:hover {
  color: inherit;
  text-decoration: underline;
}

.page a:focus-visible {
  color: inherit;
  text-decoration: underline;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--fine);
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  margin-bottom: 28px;
  min-width: 0;
}

.crumbs a {
  color: var(--text-secondary);
  font-weight: 400;
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--text-secondary);
}

.faq details {
  border-bottom: 0.5px solid var(--line);
  padding: 16px 0;
}

.faq summary {
  cursor: pointer;
  /* woodward-ui .bodyEmphasis */
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.faq summary h2 {
  display: inline;
  margin: 0;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  display: inline-block;
  flex-shrink: 0;
  transform: none;
  transform-origin: center;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq details[open]:not(.is-closing) summary::after {
  transform: rotate(45deg);
}

/*
  FAQ height animation is JS-driven (site/js/faq.js): grid 0fr↔1fr on .faq-panel.
  Native ::details-content + interpolate-size was dropped — close snapped via
  content-visibility / discrete [open] removal, and competed with the JS path.
  Base 0fr stays even after [open] is cleared so close doesn’t flash full height.
*/
.faq details.faq-animated > .faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq details.faq-animated[open]:not(.is-closing) > .faq-panel {
  grid-template-rows: 1fr;
}

.faq .faq-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.faq details p {
  margin: 10px 0 4px;
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::after,
  .faq details.faq-animated > .faq-panel {
    transition: none;
  }
}

.mail {
  font-weight: 500;
  color: var(--text);
}

.table-wrap {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  max-width: 100%;
  border: 0.5px solid var(--line);
  border-radius: var(--radius-lg);
  corner-shape: var(--corner-shape-squircle);
  margin: var(--space-lg) 0 var(--space-xl);
}

.table-wrap table {
  min-width: 100%;
  width: max-content;
}

.page--comparison .table-wrap table {
  min-width: 32rem;
  width: 100%;
}

.callout {
  border: 0.5px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-lg);
  corner-shape: var(--corner-shape-squircle);
  padding: 18px 20px 8px;
  margin: 20px 0 28px;
}

.callout h2 {
  margin-top: 0;
  font-size: 22px;
  line-height: 28px;
}

.page .play-badge,
.page .play-badge:hover,
.page .play-badge:focus-visible {
  text-decoration: none;
  font-weight: 400;
  color: inherit;
}

.guide-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin: 8px 0 28px;
}

.guide-index {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 8px 0 28px;
  width: 100%;
  min-width: 0;
}

.guide-index a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  font-weight: 400;
  border: 0.5px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-lg);
  corner-shape: var(--corner-shape-squircle);
  padding: 18px 20px;
}

.guide-index a:hover,
.guide-index a:focus-visible {
  color: inherit;
  text-decoration: none;
}

.guide-index a::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / -1;
  width: 16px;
  height: 16px;
  justify-self: end;
  align-self: center;
  background-color: var(--muted);
  -webkit-mask: url("../img/chevron.svg") center / 16px 16px no-repeat;
  mask: url("../img/chevron.svg") center / 16px 16px no-repeat;
  transform: translateX(0);
  transition: transform 150ms var(--ease), background-color 150ms var(--ease);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .guide-index a:hover::after {
    background-color: var(--text);
    transform: translateX(2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-index a::after {
    transition: none;
  }
}

.guide-index strong {
  grid-column: 1;
  min-width: 0;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 6px;
}

.guide-index span {
  grid-column: 1;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}

.sources {
  padding-left: 1.2em;
}

.sources li {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
  margin-bottom: var(--space-xxs);
}

.page .wellness-note {
  /* Beat .page p { margin: 0 0 … } so the note is not flush to the FAQ rule. */
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px; /* woodward-ui .subheadline */
  margin: var(--space-xl) 0 0;
}

.page figure.shot {
  margin: var(--space-lg) 0 var(--space-xl);
}

.page figure.shot picture,
.page figure.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.page figure.shot img {
  border-radius: var(--radius-lg);
  corner-shape: var(--corner-shape-squircle);
  background: #0a0a0c;
}

.page figure.shot figcaption {
  margin: var(--space-xs) 0 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
}

.shot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px 12px;
  margin: 8px 0 12px;
}

.shot-grid figure.shot {
  margin: 0;
}

.shot-grid figure.shot figcaption {
  font-size: 13px;
  line-height: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  /* woodward-ui .subheadline */
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

th,
td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--line);
}

th {
  color: var(--muted);
  font-weight: 500;
}

tr:last-child td {
  border-bottom: 0;
}

.error {
  width: 100%;
  max-width: var(--grid-max-width);
  margin: 0 auto;
  min-height: calc(100svh - var(--nav) - 120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--grid-gutter);
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 48px var(--grid-margin);
  box-sizing: border-box;
}

.error > * {
  grid-column: 1 / -1;
  max-width: 36rem;
}
