/* ---------- the guide (gd- prefix; the reading grammar of lightroom-alternative.css plus steps, tables and figures) ---------- */
.gd-wrap { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: clamp(48px, 8vh, 96px) var(--gutter) 0; }
.gd-head .section-sub { max-width: 62ch; }
.gd-crumb a { color: rgb(var(--ink-muted)); text-decoration: none; transition: color 0.2s; }
.gd-crumb a:hover { color: rgb(var(--ink-strong)); }
.gd-crumb__sep { margin: 0 8px; color: rgb(var(--ink-low)); }
.gd-crumb [aria-current] { color: rgb(var(--ink-strong)); }
.gd-date { margin: 16px 0 0; font-size: 0.62rem; color: rgb(var(--ink-low)); }
.gd-cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }

.gd-sec { padding: clamp(56px, 9vh, 112px) 0 0; scroll-margin-top: 24px; }
.gd-sec .section-title { font-size: clamp(1.6rem, 3.2vw, 2.6rem); }
/* the question is part of the heading (search engines and AI read heading text) but keeps the kicker's look above the short title */
.gd-q { margin: 0 0 clamp(14px, 2vh, 20px); font-weight: 400; line-height: 1.5; }
.gd-sec h2[id] { scroll-margin-top: 32px; }
.gd-sec h3 { margin: 30px 0 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: rgb(var(--ink-strong)); }
.gd-prose { margin: 18px 0 0; max-width: 62ch; color: rgb(var(--ink-muted)); font-size: clamp(1rem, 1.15vw, 1.1rem); line-height: 1.65; }
.gd-prose b, .gd-list li b, .gd-steps li b, .gd-table b { color: rgb(var(--ink-strong)); font-weight: 600; }
.gd-prose a, .gd-list a, .gd-steps a, .gd-table a, .gd-cap a { color: rgb(var(--ink)); text-decoration: underline; text-underline-offset: 3px; }
.gd-prose a:hover, .gd-list a:hover, .gd-steps a:hover, .gd-table a:hover, .gd-cap a:hover { color: rgb(var(--ink-strong)); }
.gd-list { list-style: none; margin: 18px 0 0; padding: 0; max-width: 62ch; }
.gd-list li { padding: 9px 0; border-bottom: 1px solid rgb(var(--hairline) / 0.7); font-size: 0.93rem; line-height: 1.5; color: rgb(var(--ink-muted)); }
.gd-list li:last-child { border-bottom: 0; }

/* numbered steps: the hairline rows of .gd-list with a mono counter in the gutter */
.gd-steps { list-style: none; counter-reset: step; margin: 22px 0 0; padding: 0; max-width: 62ch; }
.gd-steps li { counter-increment: step; position: relative; padding: 11px 0 11px 44px; border-bottom: 1px solid rgb(var(--hairline) / 0.7); font-size: 0.95rem; line-height: 1.55; color: rgb(var(--ink-muted)); }
.gd-steps li:last-child { border-bottom: 0; }
.gd-steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; color: rgb(var(--accent)); }

/* the contents list under the h1: two columns of numbered question links */
.gd-toc { margin: clamp(36px, 6vh, 64px) 0 0; }
.gd-toc .mono { display: block; margin-bottom: 8px; font-size: 0.62rem; color: rgb(var(--ink-low)); }
.gd-toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; columns: 2; column-gap: clamp(24px, 4vw, 56px); }
.gd-toc li { counter-increment: toc; position: relative; break-inside: avoid; padding: 8px 0 8px 36px; border-bottom: 1px solid rgb(var(--hairline) / 0.55); font-size: 0.92rem; line-height: 1.45; }
.gd-toc li::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 0; top: 10px; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; color: rgb(var(--ink-low)); }
.gd-toc a { color: rgb(var(--ink-muted)); text-decoration: none; transition: color 0.2s; }
.gd-toc a:hover { color: rgb(var(--ink-strong)); }

/* data tables: hairline rows, mono column heads, the row head in ink-strong */
.gd-tablewrap { margin: 22px 0 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gd-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; line-height: 1.5; color: rgb(var(--ink-muted)); }
.gd-table caption { caption-side: top; text-align: left; padding: 0 0 10px; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgb(var(--ink-low)); }
.gd-table th, .gd-table td { padding: 10px 18px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid rgb(var(--hairline) / 0.7); }
.gd-table td { overflow-wrap: anywhere; }
.gd-table th:last-child, .gd-table td:last-child { padding-right: 0; }
.gd-table thead th { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400; color: rgb(var(--ink-low)); }
.gd-table tbody th { font-weight: 600; color: rgb(var(--ink-strong)); white-space: nowrap; }

/* figures: the frame of .feat__shot / .lb-shot, a sans caption underneath */
.gd-fig { margin: clamp(28px, 4vh, 44px) 0 0; scroll-margin-top: 24px; }
.gd-fig img { display: block; width: 100%; height: auto; border-radius: 16px; background: #000; border: 1px solid rgb(255 255 255 / 0.08); }
.gd-fig--hero { margin-top: clamp(36px, 6vh, 64px); }
.gd-fig--pair, .gd-fig--row { display: grid; gap: clamp(10px, 1.6vw, 20px); }
.gd-fig--pair { grid-template-columns: 1fr 1fr; }
.gd-fig--pair figcaption { grid-column: 1 / -1; }
.gd-fig--row { grid-template-columns: repeat(3, 1fr); }
.gd-fig--row figure { margin: 0; }
.gd-cap { margin: 12px 2px 0; max-width: 62ch; font-size: 0.88rem; line-height: 1.5; color: rgb(var(--ink-muted)); }
.gd-cap b { color: rgb(var(--ink-strong)); font-weight: 600; }

.gd-faqhead { max-width: 1080px; margin: 0 auto clamp(28px, 4vh, 48px); }
.gd-tm { position: relative; z-index: 1; padding: 0 var(--gutter) 40px; font-size: 0.68rem; line-height: 1.5; color: rgb(var(--ink-low)); text-align: center; }

@media (max-width: 700px) {
  .gd-toc ol { columns: 1; }
  .gd-table tbody th { white-space: normal; }
  .gd-table th, .gd-table td { padding-right: 12px; }
  .gd-table th:last-child, .gd-table td:last-child { padding-right: 0; }
  .gd-fig--row, .gd-fig--pair.gd-fig--wide { grid-template-columns: 1fr; }
}
