/* Shared styles for the guide library. Keep patterns/layouts generic here.
   If a future guide needs one-off tuning, scope it to `.guide--slug` and keep
   the override minimal so the shared component classes stay reusable. */

:root {
  --paper: #f4efe2;
  --paper-deep: #e8e0cb;
  --sage: #7f9073;
  --sage-deep: #566451;
  --slate: #35424a;
  --slate-soft: #667883;
  --moss: #2d4134;
  --ember: #df6d31;
  --ember-soft: #f4a36b;
  --ink: #141615;
  --line: rgba(53, 66, 74, 0.18);
  --shadow: 0 18px 45px rgba(28, 34, 33, 0.11);
  --radius: 24px;
  --radius-sm: 16px;
  --content-max: 74rem;
  --toc-width: 17rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  color: var(--ink);
  background-color: #ece8df;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%237e7468'%3E%3Ccircle cx='6' cy='10' r='0.8' fill-opacity='0.38'/%3E%3Ccircle cx='15' cy='23' r='0.6' fill-opacity='0.31'/%3E%3Ccircle cx='29' cy='8' r='0.7' fill-opacity='0.29'/%3E%3Ccircle cx='40' cy='18' r='0.6' fill-opacity='0.39'/%3E%3Ccircle cx='53' cy='12' r='0.8' fill-opacity='0.3'/%3E%3Ccircle cx='66' cy='26' r='0.6' fill-opacity='0.35'/%3E%3Ccircle cx='78' cy='7' r='0.7' fill-opacity='0.29'/%3E%3Ccircle cx='90' cy='17' r='0.6' fill-opacity='0.38'/%3E%3Ccircle cx='103' cy='12' r='0.8' fill-opacity='0.31'/%3E%3Ccircle cx='114' cy='24' r='0.6' fill-opacity='0.35'/%3E%3Ccircle cx='11' cy='36' r='0.7' fill-opacity='0.33'/%3E%3Ccircle cx='24' cy='31' r='0.6' fill-opacity='0.29'/%3E%3Ccircle cx='35' cy='44' r='0.8' fill-opacity='0.38'/%3E%3Ccircle cx='49' cy='39' r='0.6' fill-opacity='0.31'/%3E%3Ccircle cx='61' cy='33' r='0.7' fill-opacity='0.29'/%3E%3Ccircle cx='73' cy='47' r='0.6' fill-opacity='0.36'/%3E%3Ccircle cx='85' cy='35' r='0.8' fill-opacity='0.3'/%3E%3Ccircle cx='98' cy='41' r='0.6' fill-opacity='0.39'/%3E%3Ccircle cx='110' cy='32' r='0.7' fill-opacity='0.31'/%3E%3Ccircle cx='117' cy='45' r='0.6' fill-opacity='0.29'/%3E%3Ccircle cx='7' cy='57' r='0.8' fill-opacity='0.35'/%3E%3Ccircle cx='20' cy='67' r='0.6' fill-opacity='0.3'/%3E%3Ccircle cx='32' cy='55' r='0.7' fill-opacity='0.38'/%3E%3Ccircle cx='45' cy='63' r='0.6' fill-opacity='0.31'/%3E%3Ccircle cx='57' cy='59' r='0.8' fill-opacity='0.29'/%3E%3Ccircle cx='70' cy='70' r='0.6' fill-opacity='0.38'/%3E%3Ccircle cx='83' cy='57' r='0.7' fill-opacity='0.3'/%3E%3Ccircle cx='95' cy='68' r='0.6' fill-opacity='0.35'/%3E%3Ccircle cx='108' cy='61' r='0.8' fill-opacity='0.31'/%3E%3Ccircle cx='117' cy='72' r='0.6' fill-opacity='0.29'/%3E%3Ccircle cx='13' cy='84' r='0.7' fill-opacity='0.38'/%3E%3Ccircle cx='25' cy='91' r='0.6' fill-opacity='0.3'/%3E%3Ccircle cx='38' cy='80' r='0.8' fill-opacity='0.35'/%3E%3Ccircle cx='50' cy='95' r='0.6' fill-opacity='0.29'/%3E%3Ccircle cx='63' cy='83' r='0.7' fill-opacity='0.39'/%3E%3Ccircle cx='75' cy='90' r='0.6' fill-opacity='0.31'/%3E%3Ccircle cx='88' cy='79' r='0.8' fill-opacity='0.3'/%3E%3Ccircle cx='101' cy='94' r='0.6' fill-opacity='0.36'/%3E%3Ccircle cx='113' cy='84' r='0.7' fill-opacity='0.29'/%3E%3Ccircle cx='8' cy='106' r='0.6' fill-opacity='0.38'/%3E%3Ccircle cx='21' cy='115' r='0.8' fill-opacity='0.31'/%3E%3Ccircle cx='34' cy='103' r='0.6' fill-opacity='0.29'/%3E%3Ccircle cx='47' cy='111' r='0.7' fill-opacity='0.36'/%3E%3Ccircle cx='60' cy='117' r='0.6' fill-opacity='0.3'/%3E%3Ccircle cx='73' cy='105' r='0.8' fill-opacity='0.38'/%3E%3Ccircle cx='86' cy='114' r='0.6' fill-opacity='0.31'/%3E%3Ccircle cx='99' cy='104' r='0.7' fill-opacity='0.29'/%3E%3Ccircle cx='112' cy='116' r='0.6' fill-opacity='0.39'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 120px 120px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

a {
  color: inherit;
}

section[id] {
  scroll-margin-top: 5rem;
}

p,
li {
  font-size: 1.03rem;
}

code {
  padding: 0.08rem 0.32rem;
  border-radius: 0.35rem;
  background: rgba(53, 66, 74, 0.08);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.page-shell {
  width: min(calc(100% - 2rem), var(--content-max));
  margin: 0 auto;
}

/* Shared guide shell and persistent reading affordances. */

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 4px;
  background: rgba(53, 66, 74, 0.08);
}

.reading-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--ember), #ffc076);
  box-shadow: 0 0 18px rgba(223, 109, 49, 0.55);
}

.eyebrow,
.toc__eyebrow,
.callout-card__label,
.insight-card__eyebrow,
.challenge-card__eyebrow {
  margin: 0 0 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: "Avenir Next Condensed", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--sage-deep);
}

/* Reusable hero treatment for longform guides. */

.hero {
  position: relative;
  overflow: clip;
  padding: 5.5rem 0 3rem;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(223, 109, 49, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(53, 66, 74, 0.08), transparent 30%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(23rem, 0.82fr);
  grid-template-areas:
    "eyebrow visual"
    "headline visual"
    "lede visual"
    "actions visual"
    "stats stats";
  column-gap: 1.6rem;
  row-gap: 0.75rem;
  align-items: start;
}

.hero__copy h1,
.section-heading h2 {
  margin: 0;
  font-family: "Avenir Next Condensed", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.hero__copy h1 {
  grid-area: headline;
  max-width: 14.8ch;
  font-size: clamp(2.75rem, 5.8vw, 4.85rem);
  line-height: 1.04;
}

.hero__copy {
  display: contents;
}

.hero__copy[data-reveal] {
  opacity: 1;
  transform: none;
}

.hero__copy > .eyebrow {
  grid-area: eyebrow;
}

.hero__copy > .hero__lede {
  grid-area: lede;
}

.hero__copy > .hero__actions {
  grid-area: actions;
}

.hero__copy > .stat-strip {
  grid-area: stats;
}

.hero__lede {
  max-width: 60ch;
  margin: 0.95rem 0 0;
  font-size: 1.14rem;
  color: rgba(20, 22, 21, 0.84);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.15rem 0 1.3rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-family: "Avenir Next Condensed", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  font-weight: 700;
}

.button--primary {
  background: var(--slate);
  color: #f8f4e9;
  border-color: transparent;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.stat-strip li {
  padding: 0.9rem 0.85rem 0.95rem;
  border: 1px solid rgba(53, 66, 74, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: var(--shadow);
}

.stat-strip strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: "Avenir Next Condensed", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  font-size: 1.2rem;
}

.stat-strip span {
  color: rgba(20, 22, 21, 0.76);
}

.visual-shell {
  margin: 2rem 0;
  position: relative;
  overflow: visible;
  min-height: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(53, 66, 74, 0.15);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.55)),
    radial-gradient(circle at top, rgba(223, 109, 49, 0.08), transparent 24rem),
    linear-gradient(135deg, rgba(127, 144, 115, 0.24), rgba(53, 66, 74, 0.08));
  box-shadow: var(--shadow);
  aspect-ratio: auto;
}

.visual-shell img {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  object-fit: fill;
  opacity: 1;
}

.hero__visual {
  grid-area: visual;
  justify-self: end;
  align-self: end;
  width: min(100%, 40rem);
  min-height: 0;
  margin: 1.35rem 0 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 32%),
    linear-gradient(160deg, rgba(53, 66, 74, 0.38), rgba(127, 144, 115, 0.24));
}

/* Shared article layout, cards, and section scaffolding. */

.layout {
  display: grid;
  grid-template-columns: minmax(0, var(--toc-width)) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding-bottom: 4rem;
}

.layout > *,
.hero__inner > *,
.content,
.section,
.toc,
.toc__panel,
.table-card {
  min-width: 0;
}

.toc {
  position: sticky;
  top: 1.5rem;
}

.toc__toggle {
  display: none;
}

.toc__panel {
  display: grid;
  gap: 0.52rem;
  padding: 1.2rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(53, 66, 74, 0.15);
  background: rgba(249, 246, 238, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.toc__panel a {
  padding: 0.45rem 0.55rem;
  border-radius: 0.7rem;
  text-decoration: none;
  color: rgba(20, 22, 21, 0.82);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.toc__panel a:hover,
.toc__panel a.is-active {
  background: rgba(53, 66, 74, 0.08);
  color: var(--ink);
  transform: translateX(2px);
}

.content {
  display: grid;
  gap: 1.5rem;
}

.section {
  position: relative;
  padding: 2rem;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(53, 66, 74, 0.12);
  background: rgba(251, 249, 242, 0.84);
  box-shadow: var(--shadow);
}

.section--banded {
  background:
    linear-gradient(180deg, rgba(127, 144, 115, 0.08), transparent 18rem),
    rgba(251, 249, 242, 0.92);
}

.section--summary {
  background:
    linear-gradient(135deg, rgba(223, 109, 49, 0.1), transparent 40%),
    rgba(251, 249, 242, 0.94);
}

.section-heading {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.section-heading h2 {
  max-width: none;
  font-size: clamp(2rem, 4.5vw, 3.65rem);
}

.section-heading p:last-child {
  margin: 0;
  max-width: 62ch;
  color: rgba(20, 22, 21, 0.76);
}

.section-heading + .prose p:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 0 0 0.55rem;
  font-family: "Avenir Next Condensed", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  font-size: 1.72rem;
  line-height: 1.04;
}

.prose h3:not(:first-child) {
  margin-top: 1.25rem;
}

.prose p {
  max-width: 66ch;
  margin: 0 0 1rem;
}

.section-grid,
.two-column,
.section--split,
.thesis-grid,
.process-grid,
.comparison-grid,
.timeline-grid,
.parts-grid,
.species-grid,
.cheat-grid,
.resource-grid {
  display: grid;
  gap: 1rem;
}

.section--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.section--split > .section-heading {
  grid-column: 1 / -1;
}

.section--split > .comparison-grid,
.section--split > .guide-notes {
  grid-column: 1 / -1;
}

.thesis-grid,
.comparison-grid,
.timeline-grid,
.parts-grid,
.species-grid,
.resource-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.process-grid,
.cheat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-grid,
.two-column {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
}

.callout-card,
.process-card,
.comparison-card,
.timeline-card,
.parts-card,
.species-card,
.cheat-card,
.resource-card,
.mini-note,
.challenge-card,
.insight-card,
.stage-card {
  padding: 1.1rem 1.15rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(53, 66, 74, 0.13);
  background: rgba(255, 255, 255, 0.62);
}

.guide-notes {
  display: grid;
  gap: 1rem;
}

.guide-notes--inline {
  margin-top: 1rem;
}

.guide-note {
  padding: 1rem 1.15rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(53, 66, 74, 0.14);
  background: rgba(255, 255, 255, 0.7);
}

.guide-note h3 {
  margin: 0 0 0.35rem;
  font-family: "Avenir Next Condensed", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  font-size: 1.35rem;
}

.guide-note p {
  margin: 0;
}

.guide-note--tip {
  border-left: 5px solid var(--sage);
  background: linear-gradient(180deg, rgba(127, 144, 115, 0.12), rgba(255, 255, 255, 0.74));
}

.guide-note--mistake {
  margin-bottom: 0.35rem;
  border-left: 5px solid var(--ember);
  background: linear-gradient(180deg, rgba(223, 109, 49, 0.1), rgba(255, 255, 255, 0.74));
}

.callout-card h3,
.process-card h3,
.comparison-card h3,
.timeline-card h3,
.parts-card h3,
.species-card h3,
.cheat-card h3,
.mini-note h3,
.stage-card h3 {
  margin: 0 0 0.5rem;
  font-family: "Avenir Next Condensed", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  font-size: 1.55rem;
  line-height: 1.05;
}

.callout-card p:last-child,
.process-card p:last-child,
.comparison-card p:last-child,
.timeline-card p:last-child,
.parts-card p:last-child,
.species-card p:last-child,
.cheat-card ul:last-child,
.mini-note p:last-child,
.stage-card p:last-child {
  margin-bottom: 0;
}

.process-card__step {
  display: inline-flex;
  margin-bottom: 0.55rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(223, 109, 49, 0.12);
  color: #7e3a16;
  font-family: "Avenir Next Condensed", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.84rem;
}

.note-stack {
  display: grid;
  gap: 0.85rem;
}

.mini-note {
  border-left: 6px solid var(--ember);
}

.insight-card,
.challenge-card {
  background: linear-gradient(180deg, rgba(82, 96, 101, 0.9), rgba(93, 108, 113, 0.82));
  color: #f5f0e7;
}

.insight-card .insight-card__eyebrow,
.challenge-card .challenge-card__eyebrow {
  color: rgba(245, 240, 231, 0.76);
}

.insight-card__quote {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.45;
}

/* Shared tables, list utilities, and inline rule callouts. */

.table-card {
  overflow-x: auto;
  margin-top: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(53, 66, 74, 0.12);
  background: rgba(255, 255, 255, 0.68);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 34rem;
}

caption {
  padding: 1rem 1rem 0.25rem;
  font-family: "Avenir Next Condensed", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: left;
}

th,
td {
  padding: 0.95rem 1rem;
  text-align: left;
  border-top: 1px solid rgba(53, 66, 74, 0.1);
}

th {
  font-family: "Avenir Next Condensed", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  font-size: 1rem;
}

.section-visual {
  margin: 2rem 0;
}

.visual-shell--wide {
  aspect-ratio: auto;
}

.water-column-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.checklist,
.number-list {
  margin: 0;
  padding-left: 1.2rem;
}

.checklist li,
.number-list li {
  margin-bottom: 0.55rem;
}

.rule-banner {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(223, 109, 49, 0.3);
  background: linear-gradient(90deg, rgba(223, 109, 49, 0.16), rgba(223, 109, 49, 0.06));
}

.rule-banner p {
  margin: 0;
}

/* Shared section variants and richer content modules. */

.section--cheatsheet {
  background:
    radial-gradient(circle at top left, rgba(255, 192, 118, 0.12), transparent 18rem),
    linear-gradient(180deg, rgba(53, 66, 74, 0.97), rgba(42, 51, 57, 0.98));
  color: #f5efe3;
}

.section--cheatsheet .eyebrow,
.section--cheatsheet .section-heading p:last-child,
.section--cheatsheet .cheat-summary__label {
  color: rgba(245, 239, 227, 0.78);
}

.section--cheatsheet .section-heading h2 {
  max-width: none;
}

.cheat-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.cheat-summary > div {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.cheat-summary__label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: "Avenir Next Condensed", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
}

.cheat-summary strong {
  font-family: "Avenir Next Condensed", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  font-size: 1.32rem;
  line-height: 1.05;
}

.cheat-grid--dense {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section--cheatsheet .cheat-card {
  background: rgba(247, 241, 228, 0.98);
  color: var(--ink);
}

.cheat-card--accent {
  background: rgba(247, 241, 228, 0.98) !important;
}

.cheat-table {
  margin-top: 1rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cheat-table__row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cheat-table__row:first-child {
  border-top: 0;
}

.cheat-table__row--head {
  background: rgba(255, 255, 255, 0.12);
  font-family: "Avenir Next Condensed", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.88rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(53, 66, 74, 0.13);
  background: rgba(255, 255, 255, 0.62);
}

.faq-list summary {
  cursor: pointer;
  font-family: "Avenir Next Condensed", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  font-size: 1.34rem;
  font-weight: 700;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--ember);
}

.faq-list details[open] summary::after {
  content: "–";
}

.resource-card {
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.55)),
    linear-gradient(135deg, rgba(127, 144, 115, 0.08), rgba(223, 109, 49, 0.05));
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(28, 34, 33, 0.14);
}

.resource-card span {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-deep);
}

.resource-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Avenir Next Condensed", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  font-size: 1.45rem;
}

.resource-card em {
  display: inline-flex;
  margin-top: 0.45rem;
  padding: 0.22rem 0.52rem;
  border-radius: 999px;
  background: rgba(53, 66, 74, 0.08);
  color: rgba(20, 22, 21, 0.66);
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-card--placeholder {
  cursor: default;
}

.resource-card--placeholder:hover {
  transform: none;
  box-shadow: var(--shadow);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 2.5rem;
  color: rgba(20, 22, 21, 0.72);
}

.floating-actions {
  position: fixed;
  right: clamp(0.9rem, 2vw, 1.5rem);
  bottom: clamp(0.9rem, 2vw, 1.5rem);
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 0;
}

.floating-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.55rem;
  height: 3.55rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 239, 226, 0.32);
  background: rgba(53, 66, 74, 0.94);
  color: #f8f4e9;
  box-shadow: 0 18px 36px rgba(28, 34, 33, 0.16);
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

.floating-action:hover,
.floating-action:focus-visible {
  transform: translateY(-2px);
  background: rgba(223, 109, 49, 0.94);
  border-color: rgba(223, 109, 49, 0.52);
}

.floating-action:focus-visible {
  outline: 2px solid rgba(223, 109, 49, 0.6);
  outline-offset: 3px;
}

.floating-action svg {
  width: 1.55rem;
  height: 1.55rem;
}

.floating-action--contact {
  position: relative;
  z-index: 1;
}

.floating-action--top {
  width: 0;
  margin-left: 0;
  border-width: 0;
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
  overflow: hidden;
}

.floating-actions.is-scrolled .floating-action--top {
  width: 3.55rem;
  margin-left: 0.7rem;
  border-width: 1px;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

#universal-diet .universal-diet__species {
  grid-column: 1 / -1;
}

#universal-diet .universal-diet__visual {
  margin-top: 0.25rem;
  align-self: start;
}

#universal-diet .universal-diet__visual img {
  object-fit: fill;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Shared accessibility and responsive behavior for all guides. */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .visual-shell img,
  .toc__panel a,
  .floating-action,
  [data-reveal] {
    transition: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    order: -1;
  }

  .toc__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(53, 66, 74, 0.12);
    background: rgba(255, 255, 255, 0.72);
    font-family: "Avenir Next Condensed", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
    font-weight: 700;
  }

  .toc__panel {
    display: none;
    margin-top: 0.75rem;
  }

  .toc.is-open .toc__panel {
    display: grid;
  }
}

@media (max-width: 900px) {
  .hero__inner,
  .section--split,
  .section-grid,
  .two-column,
  .thesis-grid,
  .process-grid,
  .comparison-grid,
  .timeline-grid,
  .parts-grid,
  .species-grid,
  .cheat-grid,
  .resource-grid,
  .water-column-grid,
  .cheat-summary,
  .cheat-grid--dense {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .hero__inner {
    grid-template-areas: none;
    row-gap: 1rem;
  }

  .hero__copy {
    display: grid;
    align-content: start;
  }

  .hero__copy > .eyebrow,
  .hero__copy > h1,
  .hero__copy > .hero__lede,
  .hero__copy > .hero__actions,
  .hero__copy > .stat-strip,
  .hero__visual {
    grid-area: auto;
  }

  .hero__copy h1 {
    max-width: 13ch;
  }

  .section-heading h2 {
    max-width: 100%;
  }

  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__visual {
    width: min(100%, 38rem);
    margin-top: 0.4rem;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 1.2rem), var(--content-max));
  }

  .section {
    padding: 1.25rem;
  }

  .hero__copy h1 {
    font-size: clamp(2.6rem, 15vw, 4rem);
  }

  .section-heading h2 {
    font-size: clamp(1.85rem, 11vw, 2.7rem);
  }

  table {
    min-width: 0;
  }

  th,
  td {
    padding: 0.8rem 0.75rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .button {
    width: 100%;
  }

  .footer {
    flex-direction: column;
  }

  .floating-actions {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .floating-action {
    width: 3.2rem;
    height: 3.2rem;
  }

  .floating-actions.is-scrolled .floating-action--top {
    width: 3.2rem;
    margin-left: 0.6rem;
  }

  .cheat-table__row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}
