/* The search guides (/guides/plex-naming-convention, /guides/filebot-alternative): long-form pages that answer one
   search query each, with the app shown once as the way to keep it so. The Plex guide is one reading column with a
   sticky "On this page" list beside it from 1024 up; the FileBot comparison runs at the page width throughout, its
   text set in columns. A cta-band closes both. */

.gd { --gd-col: 560px; --gd-ink: #f9fafb; --gd-panel: var(--bg-elev); --gd-line: #2a2a44; }

.gd-col { max-width: var(--gd-col); margin: 0 auto; }
.gd-wcol { max-width: var(--page-max); margin: 0 auto; }
.gd-sec { padding-top: clamp(56px, 7vw, 88px); padding-bottom: 0; }
.gd-sec:last-of-type { padding-bottom: clamp(56px, 7vw, 88px); }

.gd h1 { margin: 0; font-size: clamp(34px, 5vw, 52px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--gd-ink); text-wrap: pretty; }
.gd h2 { margin: 0 0 16px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--gd-ink); text-wrap: pretty; }
.gd h3 { margin: 28px 0 8px; font-size: 18px; font-weight: var(--fw-bold); line-height: 1.35; color: var(--gd-ink); text-wrap: pretty; }
.gd p { margin: 0 0 14px; font-size: var(--fs-body); line-height: 1.7; color: var(--body); text-wrap: pretty; }
.gd a:not(.btn) { color: var(--accent-3); text-underline-offset: 3px; }
/* a file name is one unit: it never breaks at its own hyphens or braces, only where a <wbr> allows (after a "/"
   or a " - ") */
.gd code { font-family: var(--mono); font-size: .9em; padding: 1px 5px; border-radius: var(--r-sm); background: var(--gd-panel); color: var(--gd-ink); white-space: nowrap; }

/* ── hero ─────────────────────────────────────────────────────────────────── */
.gd-hero { padding-top: clamp(112px, 12vw, 148px); padding-bottom: 0; }
.gd-crumb { margin: 0 0 16px !important; font-size: var(--fs-small) !important; color: var(--muted) !important; }
.gd-crumb a:not(.btn) { color: var(--muted); }
.gd-crumb a:hover { color: var(--accent-3); }
.gd .gd-lede { margin: 20px 0 0; font-size: var(--fs-lead); line-height: 1.6; color: var(--body); }
.gd-tree { margin: 32px 0 0; border: 1px solid var(--gd-line); border-radius: var(--r); background: var(--gd-panel); }
.gd-tree pre { margin: 0; padding: 20px 24px; overflow-x: auto; }
.gd-tree pre:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 2px; border-radius: var(--r); }
.gd-tree code { display: block; padding: 0; background: none; font-size: 14px; line-height: 1.75; color: var(--body); white-space: pre; }
@media (max-width: 560px) {
  /* the longest path is wider than a small phone: it scrolls, and the right edge fades so the cut reads as more */
  .gd-tree pre { padding: 16px; -webkit-mask-image: linear-gradient(to left, transparent, #000 28px); mask-image: linear-gradient(to left, transparent, #000 28px); }
  .gd-tree code { font-size: 12.5px; }
}
.gd-dir { color: var(--gd-ink); font-weight: 600; }
.gd-note { color: var(--muted); font-weight: 400; }   /* a caption inside a tree ("Before", "After"): never drawn as a folder */
.gd .gd-src { margin: 12px 0 0; font-size: var(--fs-label); line-height: 1.5; color: var(--muted); }
/* The other guides, after the questions: a list of full-width rows ruled like .gd-faq's, each a 44px tap target, not a
   sentence of four links (it set one link a line on a phone, ragged and 25px apart: the board, 2026-11-22). */
.gd .gd-next { margin-top: 32px; }
.gd .gd-next h3 { margin: 0 0 8px; font-size: var(--fs-label); font-weight: 600; line-height: 1.5; color: var(--muted); }
.gd .gd-next ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.gd .gd-next li { border-bottom: 1px solid var(--line); }
.gd .gd-next a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 12px 0; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--gd-ink); text-decoration: none; }
.gd .gd-next a::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); }
.gd .gd-next a:hover { color: var(--accent-3); }
.gd .gd-next a:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 2px; }
.gd .gd-sub { margin: -4px 0 24px; color: var(--muted); }

/* hero-split: the copy left, the "pick by what you need" panel right, top-aligned */
.gd-split { max-width: var(--page-max); margin: 0 auto; display: grid; gap: 40px; }
.gd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.gd-pick { padding: 24px 28px; border: 1px solid var(--gd-line); border-radius: var(--r-lg); background: var(--gd-panel); }
.gd-pick h2 { font-size: 20px; margin-bottom: 8px; }
.gd-pick dl { margin: 0; }
.gd-pick dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); }
.gd-pick dl > div:first-child { border-top: 0; }
.gd-pick dt { font-size: var(--fs-small); line-height: 1.5; color: var(--gd-ink); text-wrap: pretty; }
/* the answer is the row's trailing value, drawn as System Settings draws one: regular weight, in colour */
.gd-pick dd { margin: 0; font-size: var(--fs-small); font-weight: 400; color: var(--accent-3); text-align: right; }
@media (min-width: 1200px) {
  .gd-split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; }
}
@media (max-width: 560px) {
  .gd-pick { padding: 8px 16px; border-radius: var(--r); }
  .gd-pick h2 { margin-top: 12px; }
  .gd-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ── the article: one reading column (about 75 characters a line) for every part from the hero to the questions,
   and a sticky list of those parts beside it from 1024, the way the legal pages lay out ──────────────────── */
.gd-doc { --gd-toc: 200px; --gd-gap: 64px; }
.gd-doc .gd-part p, .gd-align .gd-lede { font-size: 17px; }
.gd-body { max-width: var(--gd-col); margin: 0 auto; }
.gd-part + .gd-part { padding-top: clamp(56px, 7vw, 80px); }
.gd-toc { max-width: var(--gd-col); margin: 0 auto 8px; }
.gd-toc p { margin: 0 0 4px; font-size: var(--fs-label); font-weight: 600; color: var(--muted); }
.gd-toc ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.gd-toc a:not(.btn) { display: flex; align-items: center; min-height: 44px; font-size: var(--fs-small); line-height: 1.45; color: var(--body); text-decoration: none; white-space: nowrap; }
.gd-toc a:not(.btn):hover, .gd-toc a[aria-current="true"] { color: var(--accent-3); }
.gd-toc a[aria-current="true"] { font-weight: 600; }
@media (max-width: 1023.98px) {
  .gd-toc ul { grid-template-columns: minmax(0, 1fr); border: 1px solid var(--gd-line); border-radius: var(--r); background: var(--gd-panel); }
  .gd-toc { margin-bottom: 48px; }   /* the card is its own group: the same gap below it as between the sections */
  .gd-toc p { padding-left: 17px; }   /* the group title sits on its rows' text edge (16px inset plus the 1px border), as Settings sets one */
  .gd-toc li + li { border-top: 1px solid var(--line); }
  .gd-toc a:not(.btn) { justify-content: space-between; gap: 12px; padding: 0 16px; }
  .gd-toc a:not(.btn)::after { content: ""; flex: none; width: 7px; height: 7px; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg); }
}
@media (min-width: 1024px) {
  .gd-doc-in { display: grid; grid-template-columns: var(--gd-toc) minmax(0, var(--gd-col)); column-gap: var(--gd-gap); justify-content: center; align-items: start; }
  .gd-body { max-width: none; margin: 0; }
  .gd-toc { max-width: none; margin: 0; position: sticky; top: calc(var(--nav-h, 72px) + 40px); }
  .gd-toc p { margin-bottom: 10px; }
  .gd-toc ul { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .gd-toc a:not(.btn) { display: block; min-height: 0; padding: 5px 0; }
  .gd-align { max-width: calc(var(--gd-toc, 200px) + 64px + var(--gd-col)); }
  .gd-align .gd-lede { max-width: 680px; }
}

/* ── prose ────────────────────────────────────────────────────────────────── */
.gd-prose h3:first-of-type { margin-top: 20px; }
.gd-more { margin: 24px 0 0 !important; }

/* ── comparison-table ─────────────────────────────────────────────────────── */
.gd-table { overflow-x: auto; border: 1px solid var(--gd-line); border-radius: var(--r); background: var(--gd-panel); }
.gd-table:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 2px; }
.gd-table table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); line-height: 1.5; }
.gd-table th, .gd-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); color: var(--body); text-wrap: pretty; }
.gd-table thead th { border-top: 0; font-size: var(--fs-label); font-weight: 600; color: var(--muted); }
.gd-table tbody th { font-weight: 600; color: var(--gd-ink); }
.gd-table code { background: rgba(255, 255, 255, .06); }
/* each row is a block: the rule's name, then a labelled value per column, two side by side where they fit */
.gd-table--rows thead { display: none; }
.gd-table--rows :is(table, tbody, tr, th, td) { display: block; }
.gd-table--rows tr { padding: 16px; border-top: 1px solid var(--line); }
.gd-table--rows tbody tr:first-child { border-top: 0; }
.gd-table--rows :is(th, td) { padding: 0; border: 0; }
.gd-table--rows td { margin-top: 8px; }
.gd-table--rows td::before, .gd-table--wide td::before { display: block; font-size: var(--fs-label); font-weight: 600; color: var(--muted); }
.gd-table--rows td::before { content: attr(data-label); }
@media (min-width: 520px) {
  .gd-table--rows tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .gd-table--rows tbody th { grid-column: 1 / -1; }
  /* the column names once, as a header row over the two value columns, instead of a label in every cell */
  .gd-table--rows thead { display: block; }
  .gd-table--rows thead tr { padding: 12px 16px; border-top: 0; }
  .gd-table--rows thead th { padding: 0; }
  .gd-table--rows thead th:first-child { display: none; }
  .gd-table--rows tbody tr:first-child { border-top: 1px solid var(--line); }
  .gd-table--rows td::before { content: none; }
  .gd-table--rows td { margin-top: 6px; }
}
/* the five-column comparison: a real table from 1024, equal product columns; below that, rows as blocks */
.gd-table--wide thead th:nth-child(2), .gd-table--wide tbody td:nth-child(2) { color: var(--gd-ink); }
@media (min-width: 1024px) {
  .gd-table--wide table { min-width: 880px; table-layout: fixed; }
  .gd-table--wide thead th:first-child { width: 18%; }
}
@media (max-width: 1023.98px) {
  .gd-table--wide thead { display: none; }
  .gd-table--wide :is(table, tbody, tr, th, td) { display: block; }
  .gd-table--wide tr { padding: 16px; border-top: 1px solid var(--line); }
  .gd-table--wide tbody tr:first-child { border-top: 0; }
  .gd-table--wide :is(th, td) { padding: 0; border: 0; }
  .gd-table--wide tbody th { font-size: var(--fs-body); }
  .gd-table--wide td { margin-top: 10px; }
  .gd-table--wide td::before { content: attr(data-label); }
}
@media (min-width: 640px) and (max-width: 1023.98px) {
  .gd-table--wide tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .gd-table--wide tbody th { grid-column: 1 / -1; }
}

/* ── steps: numbered actions, the number at the start of its heading; at the page width four on one line with a
   rule joining them, in the reading column one under another ─────────────────────────────────────────── */
.gd-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 24px; counter-reset: gd-step; }
.gd-steps li { position: relative; counter-increment: gd-step; padding-left: 52px; min-height: 36px; }
.gd-steps li::before { content: counter(gd-step); position: absolute; top: -5px; left: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; }
.gd-steps h3 { margin: 0 0 6px; }
.gd-steps p { margin: 0; font-size: var(--fs-small) !important; }
@media (min-width: 900px) {
  .gd-steps:not(.gd-steps--list) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .gd-steps:not(.gd-steps--list) li { padding-left: 0; padding-top: 52px; }
  .gd-steps:not(.gd-steps--list) li::before { top: 0; }
  .gd-steps:not(.gd-steps--list) li:not(:last-child)::after { content: ""; position: absolute; top: 18px; left: 48px; right: -20px; height: 1px; background: var(--line-strong); }
}

/* ── pillars-3: plain columns, no boxes, no icons ─────────────────────────── */
.gd-pillars { display: grid; gap: 28px; margin-top: 24px; }
.gd-pillars h3 { margin: 0 0 8px; }
.gd-pillars p { margin: 0; }
@media (min-width: 900px) { .gd-pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; } }

/* ── faq ──────────────────────────────────────────────────────────────────── */
.gd-faq { border-top: 1px solid var(--line); }
.gd-faq details { border-bottom: 1px solid var(--line); break-inside: avoid; }
.gd-faq summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; min-height: 44px; padding: 18px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--gd-ink); }
.gd-faq summary::-webkit-details-marker { display: none; }
.gd-faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform var(--dur) var(--ease); }
.gd-faq details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.gd-faq summary:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 2px; }
.gd-faq details p { margin: 0 0 20px; }
/* on the wide page the list keeps the same reading measure as the Plex guide, on the shared left edge */
.gd-faq--measure { max-width: var(--gd-col); }

/* ── cta-band ─────────────────────────────────────────────────────────────── */
.gd-cta { padding-top: 60px; padding-bottom: 60px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.gd-cta-in { display: flex; flex-direction: column; align-items: center; }
