/* Folderly Launch Audit editorial guides.
 * Tokens and the audit stylesheet provide the shared canvas and brand colors;
 * these selectors stay scoped to .guides-page so the service page remains stable.
 */

.guides-page {
  --guide-bg: var(--audit-bg, var(--bg, #f6f7f8));
  --guide-card: var(--audit-card, var(--bg-card, #fff));
  --guide-soft: var(--audit-soft, var(--bg-soft, #eef2f7));
  --guide-ink: var(--audit-ink, var(--ink, #15171a));
  --guide-ink-2: var(--audit-ink-2, var(--ink-2, #4b5563));
  --guide-ink-3: var(--audit-ink-3, var(--ink-3, #6b7280));
  --guide-line: var(--audit-line, var(--line, #dfe4ea));
  --guide-line-2: var(--audit-line-2, var(--line-2, #c8d1dc));
  --guide-red: var(--audit-accent-2, var(--accent-2, #b91c1c));
  --guide-red-bright: var(--audit-accent, var(--accent, #ef4444));
  --guide-mono: var(--audit-font-mono, var(--font-mono, ui-monospace, monospace));
  --guide-sans: var(--audit-font-sans, var(--font-sans, ui-sans-serif, system-ui, sans-serif));
}

.guides-page .guide-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.guides-page .guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
  padding: 8px 0 24px;
}

.guides-page .guide-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--guide-ink);
  font-weight: 750;
}

.guides-page .guide-brand-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--guide-bg);
  background: var(--guide-ink);
  border-radius: 50%;
  font: 700 12px var(--guide-mono);
}

.guides-page .guide-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px 16px;
  color: var(--guide-ink-3);
  font: 12px var(--guide-mono);
}

.guides-page .guide-nav a:hover,
.guides-page .guide-nav a[aria-current="page"] {
  color: var(--guide-ink);
}

.guides-page .guide-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 34px;
  color: var(--guide-ink-3);
  font: 12px var(--guide-mono);
}

.guides-page .guide-breadcrumbs a {
  text-decoration: underline;
  text-decoration-color: var(--guide-line-2);
  text-underline-offset: 3px;
}

.guides-page .guide-breadcrumbs a:hover {
  color: var(--guide-red);
  text-decoration-color: currentColor;
}

.guides-page .guide-hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 0 36px;
}

.guides-page .guide-eyebrow,
.guides-page .guide-kicker,
.guides-page .guide-meta,
.guides-page .guide-card-label,
.guides-page .guide-scope-label,
.guides-page .guide-review,
.guides-page .guide-footer-meta {
  font-family: var(--guide-mono);
}

.guides-page .guide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 5px 10px;
  color: var(--guide-red);
  background: var(--guide-card);
  border: 1px solid color-mix(in srgb, var(--guide-red-bright) 60%, var(--guide-line));
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
}

.guides-page .guide-eyebrow::before {
  width: 7px;
  height: 7px;
  background: var(--guide-red-bright);
  border-radius: 50%;
  content: "";
}

.guides-page .guide-hero h1 {
  max-width: 850px;
  margin: 0 0 17px;
  color: var(--guide-ink);
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 820;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.guides-page .guide-hero h1 .guide-accent {
  color: var(--guide-red-bright);
}

.guides-page .guide-dek {
  max-width: 75ch;
  margin: 0;
  color: var(--guide-ink-2);
  font-size: 19px;
  line-height: 1.58;
}

.guides-page .guide-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin: 22px 0 0;
  color: var(--guide-ink-3);
  font: 12px var(--guide-mono);
}

.guides-page .guide-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.guides-page .guide-meta-row span::before {
  width: 5px;
  height: 5px;
  background: var(--guide-red-bright);
  border-radius: 50%;
  content: "";
}

.guides-page .guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 46px;
  align-items: start;
  max-width: 1090px;
  margin: 0 auto;
  padding-bottom: 72px;
}

.guides-page .guide-article,
.guides-page .guide-index-main {
  min-width: 0;
}

.guides-page .guide-toc {
  position: sticky;
  top: 18px;
  padding: 16px;
  background: color-mix(in srgb, var(--guide-card) 82%, transparent);
  border: 1px solid var(--guide-line);
  border-radius: var(--r, 8px);
}

.guides-page .guide-toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--guide-ink-3);
  font: 11px var(--guide-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.guides-page .guide-toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--guide-ink-2);
  font-size: 13px;
}

.guides-page .guide-toc a {
  text-decoration: underline;
  text-decoration-color: var(--guide-line-2);
  text-underline-offset: 3px;
}

.guides-page .guide-toc a:hover {
  color: var(--guide-red);
  text-decoration-color: currentColor;
}

.guides-page .guide-article > p,
.guides-page .guide-article > ul,
.guides-page .guide-article > ol,
.guides-page .guide-article > blockquote,
.guides-page .guide-article > h2,
.guides-page .guide-article > h3,
.guides-page .guide-article > .guide-note,
.guides-page .guide-article > .guide-table-wrap,
.guides-page .guide-article > .guide-checklist,
.guides-page .guide-article > .guide-scope-box {
  max-width: 850px;
}

.guides-page .guide-article > p,
.guides-page .guide-article > ul,
.guides-page .guide-article > ol {
  color: var(--guide-ink-2);
  font-size: 17px;
  line-height: 1.68;
}

.guides-page .guide-article > p:first-child {
  margin-top: 0;
}

.guides-page .guide-article h2 {
  margin: 45px 0 13px;
  color: var(--guide-ink);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 780;
  letter-spacing: -0.015em;
  line-height: 1.16;
  scroll-margin-top: 24px;
}

.guides-page .guide-article h3 {
  margin: 30px 0 9px;
  color: var(--guide-ink);
  font-size: 21px;
  font-weight: 760;
  line-height: 1.25;
  scroll-margin-top: 24px;
}

.guides-page .guide-article a,
.guides-page .guide-related a {
  color: var(--guide-red);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--guide-red) 42%, transparent);
  text-underline-offset: 3px;
}

.guides-page .guide-article a:hover,
.guides-page .guide-related a:hover {
  color: var(--guide-red-bright);
  text-decoration-color: currentColor;
}

.guides-page .guide-article strong {
  color: var(--guide-ink);
}

.guides-page .guide-article code,
.guides-page .guide-scope-box code {
  padding: 2px 5px;
  color: var(--guide-ink);
  background: var(--guide-soft);
  border-radius: 4px;
  font: .9em var(--guide-mono);
  overflow-wrap: anywhere;
}

.guides-page .guide-article ul,
.guides-page .guide-article ol {
  padding-left: 25px;
}

.guides-page .guide-article li {
  margin: 8px 0;
  padding-left: 4px;
}

.guides-page .guide-note {
  margin: 25px 0;
  padding: 17px 20px;
  color: var(--guide-ink-2);
  background: color-mix(in srgb, var(--amber, #b45309) 9%, var(--guide-card));
  border-left: 3px solid var(--amber, #b45309);
  font-size: 15px;
  line-height: 1.6;
}

.guides-page .guide-note strong {
  color: var(--guide-ink);
}

.guides-page .guide-article blockquote {
  margin: 26px 0;
  padding: 16px 22px;
  color: var(--guide-ink);
  background: var(--guide-card);
  border-left: 3px solid var(--guide-red-bright);
  font-size: 18px;
  line-height: 1.55;
}

.guides-page .guide-table-wrap {
  margin: 25px 0;
  overflow-x: auto;
  background: var(--guide-card);
  border: 1px solid var(--guide-line);
  border-radius: var(--r, 8px);
  box-shadow: var(--audit-shadow, var(--shadow, none));
}

.guides-page .guide-table-wrap:focus {
  outline: 3px solid var(--blue, #2563eb);
  outline-offset: 4px;
}

.guides-page .guide-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  color: var(--guide-ink-2);
  font-size: 14px;
  line-height: 1.52;
}

.guides-page .guide-table caption {
  padding: 16px 17px 12px;
  color: var(--guide-ink);
  font: 700 13px var(--guide-mono);
  text-align: left;
  letter-spacing: .02em;
}

.guides-page .guide-table th,
.guides-page .guide-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--guide-line);
}

.guides-page .guide-table thead th {
  color: var(--guide-ink-3);
  background: var(--guide-soft);
  font: 11px var(--guide-mono);
  letter-spacing: .035em;
  text-transform: uppercase;
}

.guides-page .guide-table tbody th {
  min-width: 170px;
  color: var(--guide-ink);
  font-weight: 760;
}

.guides-page .guide-table tbody tr:first-child th,
.guides-page .guide-table tbody tr:first-child td {
  border-top: 0;
}

.guides-page .guide-table td strong,
.guides-page .guide-table th strong {
  color: var(--guide-ink);
}

.guides-page .guide-scope-box {
  margin: 42px 0 0;
  padding: 23px 24px 24px;
  color: var(--guide-bg);
  background: var(--guide-ink);
  border-radius: var(--r, 8px);
}

.guides-page .guide-scope-label {
  margin: 0 0 9px;
  color: color-mix(in srgb, var(--guide-bg) 70%, transparent);
  font-size: 11px;
  text-transform: uppercase;
}

.guides-page .guide-scope-box h2 {
  margin: 0 0 11px;
  color: var(--guide-bg);
  font-size: 25px;
}

.guides-page .guide-scope-box p,
.guides-page .guide-scope-box ul {
  max-width: 78ch;
  margin-bottom: 12px;
  color: color-mix(in srgb, var(--guide-bg) 80%, transparent);
  font-size: 15px;
  line-height: 1.6;
}

.guides-page .guide-scope-box ul {
  padding-left: 20px;
}

.guides-page .guide-scope-box li {
  margin: 4px 0;
}

.guides-page .guide-scope-box a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 13px;
  color: var(--guide-bg);
  background: var(--guide-red);
  border: 1px solid var(--guide-red);
  border-radius: var(--r-sm, 6px);
  font-weight: 760;
  text-decoration: none;
}

.guides-page .guide-scope-box a:hover {
  color: var(--guide-bg);
  background: var(--guide-red-bright);
  border-color: var(--guide-red-bright);
}

.guides-page .guide-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 36px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--guide-line);
}

.guides-page .guide-related h2 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--guide-ink-3);
  font: 11px var(--guide-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.guides-page .guide-related a {
  display: block;
  min-height: 70px;
  padding: 13px;
  color: var(--guide-ink);
  background: var(--guide-card);
  border: 1px solid var(--guide-line);
  border-radius: var(--r, 8px);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.guides-page .guide-related a:hover {
  border-color: var(--guide-red);
}

.guides-page .guide-related span {
  display: block;
  margin-top: 5px;
  color: var(--guide-ink-3);
  font: 11px var(--guide-mono);
}

.guides-page .guide-index-main {
  max-width: 1090px;
  margin: 0 auto;
}

.guides-page .guide-index-intro {
  max-width: 78ch;
  margin: 0 0 24px;
  color: var(--guide-ink-2);
  font-size: 17px;
  line-height: 1.68;
}

.guides-page .guide-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 26px 0 42px;
}

.guides-page .guide-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 18px;
  background: var(--guide-card);
  border: 1px solid var(--guide-line);
  border-radius: var(--r, 8px);
  box-shadow: var(--audit-shadow, var(--shadow, none));
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.guides-page .guide-card:hover {
  border-color: var(--guide-red-bright);
  box-shadow: var(--audit-shadow-hover, var(--shadow-hover-soft, none));
  transform: translateY(-2px);
}

.guides-page .guide-card-label {
  margin: 0 0 32px;
  color: var(--guide-red);
  font-size: 11px;
  text-transform: uppercase;
}

.guides-page .guide-card h2 {
  margin: 0 0 10px;
  color: var(--guide-ink);
  font-size: 20px;
  font-weight: 780;
  line-height: 1.2;
}

.guides-page .guide-card p {
  margin: 0;
  color: var(--guide-ink-2);
  font-size: 14px;
  line-height: 1.55;
}

.guides-page .guide-card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto !important;
  padding-top: 18px;
  color: var(--guide-red) !important;
  font: 700 12px var(--guide-mono);
  text-decoration: none !important;
}

.guides-page .guide-card-link:hover {
  color: var(--guide-red-bright) !important;
}

.guides-page .guide-index-panel {
  margin: 30px 0;
  padding: 22px 23px;
  background: var(--guide-card);
  border: 1px solid var(--guide-line);
  border-radius: var(--r, 8px);
}

.guides-page .guide-index-panel h2 {
  margin: 0 0 10px;
  color: var(--guide-ink);
  font-size: 24px;
  line-height: 1.22;
}

.guides-page .guide-index-panel p {
  max-width: 78ch;
  margin: 0;
  color: var(--guide-ink-2);
  font-size: 15px;
  line-height: 1.62;
}

.guides-page .guide-index-panel + .guide-scope-box {
  margin-top: 38px;
}

.guides-page .guide-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0 48px;
  color: var(--guide-ink-3);
  border-top: 1px solid var(--guide-line);
  font-size: 12px;
}

.guides-page .guide-footer-meta {
  margin: 0;
  font-size: 11px;
}

.guides-page .guide-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  font-family: var(--guide-mono);
}

.guides-page .guide-footer a {
  color: var(--guide-ink);
  text-decoration: underline;
  text-decoration-color: var(--guide-line-2);
  text-underline-offset: 3px;
}

.guides-page .guide-footer a:hover {
  color: var(--guide-red);
  text-decoration-color: currentColor;
}

.guides-page .guide-checklist {
  margin: 28px 0;
  padding: 20px;
  background: var(--guide-card);
  border: 1px solid var(--guide-line);
  border-radius: var(--r, 8px);
}

.guides-page .guide-checklist fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.guides-page .guide-checklist legend {
  margin-bottom: 13px;
  color: var(--guide-ink);
  font-size: 20px;
  font-weight: 760;
}

.guides-page .guide-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  color: var(--guide-ink-2);
  border-top: 1px solid var(--guide-line);
  font-size: 15px;
  line-height: 1.5;
}

.guides-page .guide-check-item input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--guide-red);
}

.guides-page .guide-reset {
  margin-top: 13px;
  padding: 8px 11px;
  color: var(--guide-ink);
  background: var(--guide-soft);
  border: 1px solid var(--guide-line-2);
  border-radius: var(--r-sm, 6px);
  font: 700 12px var(--guide-mono);
}

.guides-page .guide-reset:hover {
  color: var(--guide-red);
  border-color: var(--guide-red);
}

.guides-page .guide-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 20px;
  padding: 11px 14px;
  color: var(--guide-ink);
  background: var(--guide-card);
  border: 1px solid var(--guide-line-2);
  border-radius: var(--r-sm, 6px);
  font-weight: 760;
  text-decoration: none !important;
}

.guides-page .guide-download:hover {
  color: var(--guide-red);
  border-color: var(--guide-red);
}

@media (max-width: 900px) {
  .guides-page .guide-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .guides-page .guide-toc {
    position: static;
    order: -1;
  }

  .guides-page .guide-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .guides-page .guide-shell {
    width: min(100% - 32px, 680px);
  }

  .guides-page .guide-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 20px;
  }

  .guides-page .guide-nav {
    justify-content: flex-start;
  }

  .guides-page .guide-hero {
    padding-top: 20px;
  }

  .guides-page .guide-hero h1 {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.08;
  }

  .guides-page .guide-dek,
  .guides-page .guide-article > p,
  .guides-page .guide-article > ul,
  .guides-page .guide-article > ol {
    font-size: 16px;
  }

  .guides-page .guide-card-grid {
    grid-template-columns: 1fr;
  }

  .guides-page .guide-card {
    min-height: 0;
  }

  .guides-page .guide-card-label {
    margin-bottom: 20px;
  }

  .guides-page .guide-related {
    grid-template-columns: 1fr;
  }

  .guides-page .guide-footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 520px) {
  .guides-page .guide-toc ol {
    display: block;
  }

  .guides-page .guide-toc li + li {
    margin-top: 8px;
  }

  .guides-page .guide-scope-box {
    padding: 20px;
  }

  .guides-page .guide-table {
    min-width: 620px;
  }
}

@media print {
  .guides-page {
    background: #fff;
  }

  .guides-page .guide-header,
  .guides-page .guide-toc,
  .guides-page .guide-footer,
  .guides-page .guide-related,
  .guides-page .guide-scope-box a {
    display: none;
  }

  .guides-page .guide-shell,
  .guides-page .guide-layout,
  .guides-page .guide-hero {
    width: 100%;
    max-width: none;
  }

  .guides-page .guide-layout {
    display: block;
    padding-bottom: 0;
  }
}

/* Keep the first decision visible before the detailed evidence. */
.guides-page .guide-answer { border-left: 3px solid var(--guide-accent, #c43b3b); background: var(--guide-card); padding: 18px 22px; margin: 0 0 28px; }
.guides-page .guide-answer p { margin: 0; }

.guides-page .guide-article pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
