/* Guides. Same tokens and font as the landing page (site.css), which loads first.
   Layout from the tooaveragetools.com blog: back link, big title, author line, contents (sticky on desktop,
   folded on phones), one reading column. Surfaces are the app's grey cards, accents its orange. */
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.crumb { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }

/* Guides home */
.guides-head { padding: 24px 0 16px; }
.guides-head h1 { font-size: clamp(36px, 8vw, 56px); line-height: 1.04; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 12px; }
.guides-head p { color: var(--text2); font-size: 19px; margin: 0; max-width: 40ch; }
.guide-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.guide-list a { display: block; text-decoration: none; color: var(--ink); height: 100%; }
.guide-list .folder { height: 100%; }
.guide-list h2 { font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 6px; }
.guide-list p { margin: 0; color: var(--text2); font-size: 16px; }
.guide-list img { width: 100%; margin-bottom: 16px; mix-blend-mode: multiply; }
.guide-list time { display: block; margin-top: 10px; color: var(--text3); font-size: 14px; }

/* A guide */
.post-page { width: min(100% - 40px, 760px); margin-inline: auto; }
.post-head h1 { margin: 8px 0 0; font-size: clamp(34px, 7vw, 56px); line-height: 1.04; letter-spacing: -0.02em; font-weight: 800; }
.author { margin: 16px 0 0; font-size: 16px; line-height: 1.45; color: var(--text3); }
.author a { font-weight: 600; color: var(--ink); text-decoration: none; }
.author br + span { font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .author .sep { display: none; } .author .read { display: block; } }

.toc { margin-top: 24px; }
.toc details { background: var(--surface); border-radius: 18px; }
.toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 18px; font-weight: 700; font-size: 16px; white-space: nowrap; cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--text3); }
.toc details[open] summary::after { content: '−'; }
.toc ul { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; padding: 0 18px 12px; }
.toc a { display: flex; align-items: center; min-height: 40px; font-size: 15px; white-space: nowrap; overflow: hidden; text-decoration: none; color: var(--text2); }
.toc a:hover { color: var(--ink); }

.post-body { margin-top: 40px; font-size: 18px; line-height: 1.6; }
.post-body > * { margin: 0; }
.post-body > * + * { margin-top: 16px; }
.post-body > h2 { margin-top: clamp(48px, 7vw, 72px); scroll-margin-top: 24px; font-size: clamp(26px, 4.4vw, 34px); line-height: 1.12; letter-spacing: -0.015em; font-weight: 800; }
.post-body > h3 { margin-top: 32px; font-size: 21px; line-height: 1.25; font-weight: 700; scroll-margin-top: 24px; }
.post-body > h3 + * { margin-top: 8px; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: 8px; }
.post-body ol li::marker { font-weight: 700; color: var(--accent-ink); }

/* The short answer: the app's grey folder card with a tab */
.answer { position: relative; margin-top: 29px !important; background: var(--surface); border-radius: 0 22px 22px 22px; padding: 20px 22px 22px; }
.post-body .answer-title { position: absolute; top: -29px; left: 0; height: 29px; margin: 0; padding: 0 16px; display: flex; align-items: center; background: var(--surface); border-radius: 12px 12px 0 0; font-size: 14px; font-weight: 700; white-space: nowrap; }
.answer ul { list-style: none; padding: 0; margin: 0; }
.answer li { position: relative; padding-left: 1.4em; line-height: 1.45; }
.answer li::before { content: '→'; position: absolute; left: 0; color: var(--accent-ink); font-weight: 700; }
.answer li + li { margin-top: 10px; }

/* Tables stay real tables (search and AI answers quote them). Rows are grey pills, no lines across them. */
.table-scroll { overflow-x: auto; overscroll-behavior-x: contain; margin-inline: -4px; padding: 0 4px 4px; }
.table-scroll:focus-visible { outline: 2px dashed var(--ink); outline-offset: 2px; }
.post-body table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 16px; line-height: 1.4; }
.fit table { min-width: 40rem; }
.post-body th { white-space: nowrap; padding: 0 14px 2px; text-align: left; vertical-align: bottom; font-size: 14px; font-weight: 600; color: var(--text3); }
.post-body td { padding: 12px 14px; vertical-align: top; background: var(--surface); }
.post-body td:first-child { border-radius: 12px 0 0 12px; font-weight: 600; }
.post-body td:last-child { border-radius: 0 12px 12px 0; }
/* Marks: green check good, red cross bad, amber dash partly, always beside the words */
td[class^="s-"] { position: relative; padding-left: 38px; }
.lead { display: block; font-weight: 600; }
.detail { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.35; color: var(--text3); }
.mark { position: absolute; left: 12px; top: 12px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.s-yes .mark { color: #2b7a3d; }
.s-no .mark { color: #b3352c; }
.s-part .mark { color: #8a5d00; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* App screenshots: straight on the page, rounded like the phone, small shadow */
.post-figure { margin: 24px 0 !important; }
.post-figure img { width: 100%; max-width: 300px; margin-inline: auto; border-radius: 26px; border: 1px solid var(--hairline); box-shadow: var(--shadow); }

@media (min-width: 760px) {
  .guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; }
}
@media (min-width: 1100px) {
  .post-page { width: min(100% - 64px, 1080px); display: grid; grid-template-columns: 200px minmax(0, 700px); column-gap: 56px; }
  .post-head, .post-body { grid-column: 2; }
  .toc { grid-column: 1; grid-row: 1 / span 2; margin-top: 52px; }
  .toc details { position: sticky; top: 24px; background: none; }
  .toc summary { min-height: 44px; padding: 0; pointer-events: none; }
  .toc summary::after { display: none; }
  .toc ul { grid-template-columns: 1fr; padding: 0; }
  .toc a { min-height: 34px; }
}
@media (prefers-reduced-motion: no-preference) {
  .guide-list a .folder { transition: transform .2s ease; }
  .guide-list a:hover .folder { transform: translateY(-2px); }
}
