/* How-to guides (/guides/<slug>) and the guides hub (/guides). Layout: MIX of A "Field guide" + C "Answer first"
   (owner pick 2026-10-22): short answer up top, "In this guide" contents on the side (a "Jump to" menu on phones),
   a checklist to tick, every H2 a question with a short answer first, a short FAQ, then one CTA.
   Pages are generated by scripts/marketing/render-guides.mjs; behavior lives in /guides.js.
   WWC visual baseline: #f7f7f7 page, white or neutral gray fills, brand brown only as a solid or an outline,
   no gradients, warm and neutral colors only. */

:root {
  --page: #f7f7f7;
  --card: #ffffff;
  --ink: #242424;
  --text: #3b3733;
  --muted: #68625d;
  --brown: #cd7b36;
  --brown-dark: #ae591c;
  --line: #e4e2df;
  --soft: #f1f1f1;
  --soft-2: #efefef;
  --dark-line: #3a3a3a;
  --check-line: #bfb9b3;
  --content: 1180px;
  --display: "Signika", "Arial Narrow", sans-serif;
  --body: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img,
video {
  max-width: 100%;
}

button,
summary,
input {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.g-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--content), calc(100% - 2rem));
  margin-inline: auto;
}

.g-nowrap {
  white-space: nowrap;
}

/* No-JS header fallback (the shared header script replaces it) */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--page);
}

.site-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-logo {
  width: 52px;
  height: auto;
  display: block;
}

.brand-name {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
}

.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.primary-nav a {
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.button {
  min-height: 42px;
  padding: 0.72rem 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  color: #ffffff;
  background: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: var(--brown);
  background: var(--brown);
  transform: translateY(-2px);
}

.button.is-brown {
  border-color: var(--brown);
  background: var(--brown);
}

.button.is-brown:hover,
.button.is-brown:focus-visible {
  border-color: var(--brown-dark);
  background: var(--brown-dark);
}

.button.is-light {
  color: var(--ink);
  border-color: #d7d4d1;
  background: #ffffff;
}

.button.is-light:hover,
.button.is-light:focus-visible {
  color: #ffffff;
  border-color: var(--ink);
  background: var(--ink);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--brown);
  font-family: var(--display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Breadcrumb and meta ---------- */

.g-crumbs ol {
  margin: 0 0 1.4rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.5;
}

.g-crumbs li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: #b9b4ae;
}

.g-crumbs a {
  text-decoration: none;
}

.g-crumbs a:hover {
  color: var(--ink);
}

.g-crumbs [aria-current="page"] {
  color: var(--ink);
}

.g-meta {
  margin: 1.3rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.g-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.g-meta svg,
.g-jump summary svg,
.g-hub-search svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: var(--brown);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Guide hero ---------- */

.g-hero {
  padding: clamp(2.6rem, 5vw, 4.4rem) 0 clamp(2.6rem, 4.5vw, 3.6rem);
}

.g-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.g-hero-copy {
  min-width: 0;
}

.g-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 4.6vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-wrap: balance;
}

.g-hero h1 span,
.g-hub-hero h1 span,
.g-offer h2 span {
  color: var(--brown);
}

.g-short {
  margin-top: 1.6rem;
  padding: 1.25rem 1.4rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.g-short-label {
  margin: 0;
  display: inline-block;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  color: #ffffff;
  background: var(--brown);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.g-short-text {
  margin: 0.75rem 0 0;
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.7;
}

/* Screenshots, with a plain browser bar (or a phone frame) */
.g-shot {
  margin: 0;
  min-width: 0;
}

.g-shot-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 40px -22px rgb(0 0 0 / 0.35);
}

.g-shot-bar {
  height: 22px;
  padding-left: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid #e6e6e6;
  background: var(--soft);
}

.g-shot-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d0d0d0;
}

.g-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.g-shot figcaption,
.g-film figcaption {
  margin: 0.7rem 0.1rem 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.g-shot figcaption b,
.g-shot figcaption strong {
  color: var(--ink);
}

.g-shot.is-phone {
  max-width: 240px;
}

.g-shot.is-phone .g-shot-frame {
  border: 6px solid var(--ink);
  border-radius: 24px;
}

.g-hero-shot .g-shot-frame {
  box-shadow: 0 30px 70px -40px rgb(0 0 0 / 0.45);
}

/* ---------- Body: contents + article ---------- */

.g-body {
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.g-toc {
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 1rem 0.8rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.g-toc-title {
  margin: 0 0 0.55rem 0.55rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.g-toc ol {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  list-style: none;
}

.g-toc a {
  display: block;
  padding: 0.42rem 0.55rem;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.g-toc a:hover {
  background: #f4f4f4;
}

.g-toc a[aria-current="true"] {
  color: var(--brown-dark);
  background: #f7f7f7;
  box-shadow: inset 2px 0 0 var(--brown);
}

.g-main {
  min-width: 0;
  max-width: 780px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.8rem, 5vw, 3.6rem);
}

/* A long current-section label in the phone menu must never widen the column. */
.g-main > * {
  min-width: 0;
}

/* Phone "Jump to" menu: sticks to the top while you read, and opens over the page. */
.g-jump {
  display: none;
}

/* ---------- Prose ---------- */

.g-prose > :first-child {
  margin-top: 0;
}

.g-prose p,
.g-prose li {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.78;
}

.g-prose p {
  margin: 1rem 0 0;
}

.g-prose ul,
.g-prose ol {
  margin: 1rem 0 0;
  padding-left: 1.3rem;
}

.g-prose li + li {
  margin-top: 0.35rem;
}

.g-prose h3 {
  margin: 1.8rem 0 0;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.g-prose a {
  color: var(--brown-dark);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.g-prose strong,
.g-prose b {
  color: var(--ink);
}

.g-intro p {
  font-size: 1.06rem;
}

.g-prose blockquote {
  margin: 1.2rem 0 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--brown);
}

/* Tables (wrapped by the renderer so a wide one scrolls inside its own box) */
.g-prose .g-table-wrap {
  margin: 1.2rem 0 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  -webkit-overflow-scrolling: touch;
}

.g-prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.g-prose th,
.g-prose td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-align: left;
  vertical-align: top;
}

.g-prose th {
  color: var(--muted);
  background: #fafafa;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.g-prose td:first-child {
  color: var(--ink);
  font-weight: 600;
}

/* Example figure inside prose (a day at the barn, a sample line) */
.g-prose .g-example {
  position: relative;
  margin: 1.4rem 0 0;
  padding: 1.3rem 1.3rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.g-prose .g-example figcaption {
  position: absolute;
  top: -0.7rem;
  left: 0.9rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  color: #ffffff;
  background: var(--ink);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.g-prose .g-day {
  margin: 0;
  padding: 0;
  list-style: none;
}

.g-prose .g-day li {
  margin: 0;
  padding: 0.6rem 0;
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 0.8rem;
  border-top: 1px solid #f0efed;
  font-size: 0.92rem;
  line-height: 1.5;
}

.g-prose .g-day li:first-child {
  border-top: 0;
}

.g-prose .g-day b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* "Leave these off" list */
.g-prose .g-leave {
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  list-style: none;
}

.g-prose .g-leave li {
  margin: 0;
  padding: 0.8rem 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font-size: 0.9rem;
  line-height: 1.45;
}

.g-prose .g-leave li::before {
  content: "×";
  width: 20px;
  height: 20px;
  flex: none;
  display: grid;
  place-items: center;
  padding-bottom: 2px;
  border: 1px solid #c9c4be;
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1;
}

/* ---------- Checklist ---------- */

.g-check {
  padding: 1.45rem 1.5rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  scroll-margin-top: 1.5rem;
}

.g-check-head {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.g-check h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.g-check-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.g-check-count b {
  color: var(--brown-dark);
}

.g-check-meter {
  height: 6px;
  margin-bottom: 0.8rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft-2);
}

.g-check-meter i {
  width: 0;
  height: 100%;
  display: block;
  background: var(--brown);
  transition: width 250ms ease;
}

.g-check-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.4rem;
  list-style: none;
}

.g-check-list label {
  min-height: 44px;
  padding: 0.55rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border-bottom: 1px solid #f0efed;
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
}

.g-check-list input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: none;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--check-line);
  border-radius: 5px;
  background: #ffffff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.g-check-list input:checked {
  border-color: var(--brown);
  background: var(--brown);
}

.g-check-list input:checked::after {
  content: "";
  width: 10px;
  height: 5px;
  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  transform: translateY(-1px) rotate(-45deg);
}

.g-check-list input:checked + span {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: #c9c4be;
}

.g-check-foot {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.g-check-foot p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.g-check-clear,
.g-hub-clear {
  padding: 0;
  border: 0;
  color: var(--brown-dark);
  background: none;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- Question sections ---------- */

.g-sec {
  min-width: 0;
  scroll-margin-top: 1.5rem;
}

.g-sec h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.75rem, 2.7vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}

.g-answer {
  margin: 0 0 1.3rem;
  padding: 1rem 1.2rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.g-answer-label {
  margin: 0 0 0.35rem;
  color: var(--brown-dark);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.g-answer-text {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.66;
}

.g-design-note {
  margin: 1.1rem 0 0;
  padding: 0.75rem 0.95rem;
  border-radius: 6px;
  color: var(--text);
  background: var(--soft-2);
  font-size: 0.88rem;
  line-height: 1.55;
}

.g-design-note strong,
.g-wwc-note strong {
  color: var(--ink);
}

.g-wwc-note {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--card);
  font-size: 0.92rem;
  line-height: 1.6;
}

.g-wwc-note img {
  width: 24px;
  height: 24px;
  margin-top: 1px;
  flex: none;
}

.g-sec > .g-shot,
.g-sec > .g-film,
.g-sec > .g-receipt {
  margin-top: 1.5rem;
}

.g-receipt.wwc-value.wwc-value-inline {
  margin-bottom: 0.8rem;
}

/* Four stills from a product video */
.g-film {
  margin: 0;
}

.g-film-frames {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  list-style: none;
}

.g-film-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 10px 24px -16px rgb(0 0 0 / 0.35);
}

.g-film-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.g-film-frames span {
  margin-top: 0.45rem;
  display: flex;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
}

.g-film-frames i {
  color: var(--brown-dark);
  font-style: normal;
  font-weight: 800;
}

/* ---------- FAQ (questions not used as headings) ---------- */

.g-faq-list {
  border-top: 1px solid var(--line);
}

.g-faq-list details {
  border-bottom: 1px solid var(--line);
}

.g-faq-list summary {
  padding: 1.15rem 2.5rem 1.15rem 0;
  position: relative;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

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

.g-faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0;
  color: var(--brown);
  font-family: var(--body);
  font-size: 1.4rem;
  font-weight: 500;
  transform: translateY(-50%);
}

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

.g-faq-list details p {
  max-width: 660px;
  margin: -0.3rem 0 1.25rem;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.72;
}

.g-about {
  margin: 0;
  padding-top: 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.g-about img {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex: none;
}

.g-about a {
  color: var(--brown-dark);
  font-weight: 700;
}

/* ---------- The one CTA: free website build ---------- */

.g-offer {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  color: #ffffff;
  background: var(--ink);
}

.g-offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.g-offer-grid > * {
  min-width: 0;
}

.g-offer h2 {
  margin: 0;
  color: #ffffff;
  font-family: var(--display);
  font-size: clamp(2.5rem, 4.4vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-wrap: balance;
}

.g-offer-dare {
  margin: 1.3rem 0 0;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
}

.g-offer-lead {
  max-width: 560px;
  margin: 0.8rem 0 0;
  color: #c9c5c1;
  line-height: 1.7;
}

.g-offer-card {
  padding: 1.7rem;
  display: grid;
  gap: 0.9rem;
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
}

.g-offer-price {
  margin: 0;
  font-family: var(--display);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.g-offer-price small {
  margin-left: 0.2rem;
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
}

.g-offer-covers {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.g-offer-covers strong {
  color: var(--ink);
}

.g-offer-button {
  min-height: 48px;
  font-size: 0.86rem;
}

.g-offer-fine {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

/* ---------- Keep reading: made for, related, more guides ---------- */

.g-more {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.g-made-for {
  margin-bottom: clamp(2.4rem, 5vw, 3.4rem);
  padding: 1.1rem;
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  align-items: center;
  gap: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  text-decoration: none;
  transition: border-color 180ms ease;
}

.g-made-for:hover,
.g-made-for:focus-visible {
  border-color: var(--ink);
}

.g-made-for img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.g-made-for-copy {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
  justify-items: start;
}

.g-made-for small {
  color: var(--brown);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.g-made-for strong {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.g-made-for-copy > span {
  max-width: 560px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.g-made-for em {
  margin-top: 0.4rem;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--brown);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 700;
}

.g-more-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
}

.g-more-grid:has(> .g-more-block:only-child) {
  grid-template-columns: minmax(0, 1fr);
}

.g-more-block h2 {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.g-link-cards,
.g-more-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  list-style: none;
}

.g-link-cards a,
.g-more-list a {
  min-height: 64px;
  padding: 0.85rem 2.6rem 0.9rem 1rem;
  position: relative;
  display: grid;
  align-content: center;
  gap: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  text-decoration: none;
  transition: border-color 180ms ease;
}

.g-link-cards a::after,
.g-more-list a::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 1rem;
  color: var(--brown);
  font-weight: 800;
  transform: translateY(-50%);
}

.g-link-cards a:hover,
.g-link-cards a:focus-visible,
.g-more-list a:hover,
.g-more-list a:focus-visible {
  border-color: var(--ink);
}

.g-link-cards small,
.g-more-list small {
  color: var(--brown-dark);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.g-link-cards strong,
.g-more-list strong {
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.2;
}

.g-more-list .g-more-all a {
  border-style: dashed;
  background: transparent;
}

.g-more-list .g-more-all small {
  order: 2;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---------- Sources ---------- */

.g-sources {
  padding: 0 0 clamp(3.5rem, 6vw, 5rem);
}

.g-sources .container {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.g-sources h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
}

.g-sources .container > p {
  max-width: 720px;
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.g-sources-list {
  margin: 0.9rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.g-sources-list li {
  scroll-margin-top: 1.5rem;
}

.g-sources-list strong {
  color: var(--ink);
}

.g-sources-list a {
  color: var(--brown-dark);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.g-sources-list li:target {
  color: var(--ink);
}

/* ---------- Hub ---------- */

.g-hub-hero {
  padding: clamp(2.6rem, 5vw, 4.4rem) 0 clamp(2rem, 4vw, 2.8rem);
}

.g-hub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.g-hub-hero-grid > * {
  min-width: 0;
}

.g-hub-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.9rem, 5.6vw, 4.9rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.92;
  text-wrap: balance;
}

.g-hub-lead {
  max-width: 600px;
  margin: 1.3rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.g-hub-search {
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid #d5d2ce;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 18px 40px -26px rgb(0 0 0 / 0.35);
  cursor: text;
}

.g-hub-search:focus-within {
  border-color: var(--brown);
  box-shadow: 0 0 0 1px var(--brown), 0 18px 40px -26px rgb(0 0 0 / 0.35);
}

.g-hub-search svg {
  width: 18px;
  height: 18px;
}

.g-hub-search input {
  min-width: 0;
  flex: 1;
  padding: 1rem 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 1rem;
}

.g-hub-search input::placeholder {
  color: #8a837d;
}

.g-hub-search-note {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.g-hub-start {
  padding: 1rem 0 clamp(3rem, 6vw, 4.5rem);
}

.g-hub-start h2,
.g-hub-bar h2 {
  margin: 0 0 1.3rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.g-hub-start-grid,
.g-hub-list,
.g-hub-tiles,
.g-hub-topics {
  margin: 0;
  padding: 0;
  list-style: none;
}

.g-hub-start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.g-card {
  height: 100%;
  min-width: 0;
  padding: 1.15rem 1.2rem 1.2rem;
  display: grid;
  align-content: start;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  text-decoration: none;
  transition: border-color 180ms ease;
}

.g-card:hover,
.g-card:focus-visible {
  border-color: var(--ink);
}

.g-card strong {
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.g-card-text {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.g-card small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.g-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.g-card-tags span {
  padding: 1px 7px;
  border: 1px solid var(--brown);
  border-radius: 999px;
  color: var(--brown-dark);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.g-card.is-big {
  padding: 0;
  overflow: hidden;
}

.g-card.is-big img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--line);
}

.g-card-body {
  padding: 1rem 1.15rem 1.2rem;
  display: grid;
  gap: 0.5rem;
}

.g-hub-browse {
  padding: clamp(3rem, 6vw, 4.6rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.g-hub-tabs {
  margin-bottom: 1.4rem;
  display: flex;
  gap: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.g-hub-tabs button {
  min-height: 48px;
  padding: 0.9rem 0;
  position: relative;
  border: 0;
  color: var(--muted);
  background: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.g-hub-tabs button[aria-selected="true"] {
  color: var(--ink);
}

.g-hub-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brown);
}

.g-hub-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.g-hub-tile {
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  display: grid;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease;
}

.g-hub-tile:hover {
  border-color: var(--ink);
}

.g-hub-tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--line);
}

.g-hub-tile > span {
  padding: 0.65rem 0.8rem 0.8rem;
  display: grid;
  gap: 2px;
}

.g-hub-tile strong,
.g-hub-topic strong {
  font-size: 0.88rem;
  line-height: 1.25;
}

.g-hub-tile small,
.g-hub-topic small {
  color: var(--muted);
  font-size: 0.74rem;
}

.g-hub-tile[aria-pressed="true"],
.g-hub-topic[aria-pressed="true"] {
  border-color: var(--brown);
  box-shadow: inset 0 0 0 1px var(--brown);
}

.g-hub-tile.is-all {
  min-height: 100%;
  place-content: center;
  text-align: center;
  background: var(--page);
}

.g-hub-tile.is-all > span {
  padding: 1rem;
}

.g-hub-topics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.g-hub-topic {
  width: 100%;
  height: 100%;
  padding: 1rem;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.g-hub-topic > span:last-child {
  display: grid;
  gap: 2px;
}

.g-hub-topic-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
}

.g-hub-results {
  margin-top: clamp(2rem, 4vw, 2.6rem);
}

.g-hub-bar {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.g-hub-bar h2 {
  margin: 0;
}

.g-hub-bar p {
  margin: 0;
  display: flex;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.g-hub-bizlink {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--page);
  font-size: 0.9rem;
}

.g-hub-bizlink a {
  padding-bottom: 1px;
  border-bottom: 1px solid var(--brown);
  font-weight: 700;
  text-decoration: none;
}

.g-hub-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.g-hub-list > li {
  min-width: 0;
}

.g-hub-divider {
  grid-column: 1 / -1;
  padding-top: 0.6rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.g-hub-empty {
  margin: 0;
  padding: 2rem;
  border: 1px dashed #d6d3cf;
  border-radius: 8px;
  color: var(--muted);
  background: var(--page);
  text-align: center;
}

.g-hub-empty .g-hub-clear {
  font-size: inherit;
}

/* ---------- No-JS footer fallback (the shared header script replaces it) ---------- */

.site-footer {
  padding: 2.2rem 0 1.3rem;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-note {
  margin-top: 1.3rem;
  margin-bottom: 0;
  color: #8a837d;
  font-size: 0.62rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1060px) {
  .g-hub-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .g-hub-topics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .g-hero-grid,
  .g-hub-hero-grid,
  .g-offer-grid,
  .g-more-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .g-hero-shot {
    max-width: 640px;
  }

  .g-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .g-toc {
    display: none;
  }

  .g-main {
    max-width: none;
  }

  .g-jump {
    position: sticky;
    top: 0;
    z-index: 25;
    margin-bottom: calc(-1 * clamp(2.8rem, 5vw, 3.6rem) + 1rem);
    padding: 0.6rem 0;
    display: block;
    background: var(--page);
  }

  .g-jump details {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 24px -20px rgb(0 0 0 / 0.5);
  }

  .g-jump summary {
    min-height: 48px;
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    list-style: none;
    cursor: pointer;
  }

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

  .g-jump-label {
    flex: none;
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .g-jump-current {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .g-jump summary svg {
    width: 18px;
    height: 18px;
    transition: transform 180ms ease;
  }

  .g-jump details[open] summary svg {
    transform: rotate(180deg);
  }

  .g-jump ol {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: min(62vh, 440px);
    margin: 0;
    padding: 0.4rem;
    overflow-y: auto;
    display: grid;
    gap: 1px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 24px 50px -24px rgb(0 0 0 / 0.45);
    list-style: none;
  }

  .g-jump ol a {
    min-height: 44px;
    padding: 0.6rem 0.75rem;
    display: flex;
    align-items: center;
    border-radius: 6px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
  }

  .g-jump ol a[aria-current="true"] {
    color: var(--brown-dark);
    background: #f7f7f7;
    box-shadow: inset 2px 0 0 var(--brown);
  }

  .g-check,
  .g-sec,
  .g-sources-list li {
    scroll-margin-top: 5rem;
  }

  .g-made-for {
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  }

  .g-hub-start-grid,
  .g-hub-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .g-hub-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .g-hub-topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .g-offer-card {
    max-width: 480px;
  }
}

@media (max-width: 700px) {
  /* Long reads keep a 16px side gutter (the shared mobile layer narrows .container to 10px at 620px). */
  .g-page .container {
    width: min(var(--content), calc(100% - 2rem));
  }

  .brand-name,
  .header-actions .is-light {
    display: none;
  }

  .g-hero {
    padding-top: 2rem;
  }

  .g-hero h1 {
    font-size: clamp(2.3rem, 10.5vw, 3.2rem);
  }

  .g-short {
    padding: 1.05rem 1.1rem 1.15rem;
  }

  .g-check {
    padding: 1.2rem 1.1rem 1.1rem;
  }

  .g-check-list,
  .g-prose .g-leave {
    grid-template-columns: minmax(0, 1fr);
  }

  .g-film-frames {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 0.7rem;
  }

  .g-prose .g-day li {
    grid-template-columns: 5rem minmax(0, 1fr);
  }

  .g-shot.is-phone {
    max-width: 210px;
  }

  .g-offer h2 {
    font-size: clamp(2.3rem, 10vw, 3rem);
  }

  .g-offer-card {
    padding: 1.4rem 1.2rem;
  }

  .g-made-for {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .g-hub-hero h1 {
    font-size: clamp(2.6rem, 12vw, 3.4rem);
  }

  .g-hub-start-grid,
  .g-hub-list,
  .g-hub-topics {
    grid-template-columns: minmax(0, 1fr);
  }

  .g-hub-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .g-check-meter i,
  .g-card,
  .g-hub-tile,
  .g-made-for,
  .g-link-cards a,
  .g-more-list a,
  .g-jump summary svg {
    transition: none;
  }
}
