/* Shared by the three answer pages (journal guide, TOMO vs notebook, app roundup).
   Uses the blog's existing colours only: #F5A623 gold, #333 rules, #888 muted, #ccc body.
   Reviewed for phones and WCAG 2.1 AA on 2026-09-28 (ALEX). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Tables: real row and column headers; a labelled, keyboard-scrollable region. */
.article table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.article th, .article td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #333; color: #ccc; line-height: 1.5; }
.article thead th { color: #fff; font-weight: 600; font-size: 13px; letter-spacing: .02em; }
.article tbody th { color: #fff; font-weight: 600; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll:focus-visible { outline: 2px solid #F5A623; outline-offset: 4px; }
.table-scroll table { min-width: 560px; }

/* On phones every row becomes a block: the row name, then label and value pairs.
   Nothing scrolls sideways and no column is hidden. */
@media (max-width: 600px) {
  .table-scroll { overflow: visible; }
  .table-scroll table { min-width: 0; }
  .article table, .article tbody, .article tr, .article tbody th, .article td { display: block; }
  .article thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .article tr { border-bottom: 1px solid #333; padding: 14px 0; }
  .article tbody th { font-family: 'Inter', sans-serif; font-size: 16px; color: #fff; padding: 0 0 8px; border: 0; }
  .article td { display: grid; grid-template-columns: 9.5em 1fr; column-gap: 12px; padding: 5px 0; border: 0; }
  .article td::before { content: attr(data-label); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: #888; padding-top: 3px; }
}

/* The journal template: a definition list, so wrapped text stays under its value. */
.template { background: #161616; border: 1px solid rgba(245,166,35,.55); border-radius: 0; padding: 18px 20px; margin: 24px 0 12px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 14px; line-height: 1.6; color: #ddd; }
.template div { display: grid; grid-template-columns: 11ch 1fr; column-gap: 12px; padding: 4px 0; }
.template div.gap { margin-top: 14px; }
.template dt { color: #F5A623; font-weight: 600; }
.template dd { margin: 0; }
@media (max-width: 400px) {
  .template div { grid-template-columns: 1fr; }
  .template dt { font-size: 12px; }
}
.copy-template { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; margin: 0 0 24px; background: transparent; color: #F5A623; border: 1px solid rgba(245,166,35,.5); border-radius: 0; font: 600 15px 'Inter', sans-serif; cursor: pointer; }
.copy-template:focus-visible { outline: 2px solid #F5A623; outline-offset: 3px; }

.note { font-size: 14px; color: #888; }

/* FAQ: 56px tap rows, and the marker is decoration that is never read aloud. */
.faq details { border-bottom: 1px solid #333; padding: 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 0; cursor: pointer; color: #fff; font-weight: 600; font-size: 17px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; content: "+" / ""; flex: none; width: 24px; text-align: center; color: #F5A623; font-size: 20px; }
.faq details[open] summary::after { content: "\2212"; content: "\2212" / ""; }
.faq summary:focus-visible { outline: 2px solid #F5A623; outline-offset: 4px; }
.faq .a { margin: 0 0 16px; color: #ccc; }

.app-facts { font-size: 14px; color: #888; margin-top: -8px; }
/* Each app's store link on its own line, a full-size tap target, named for the app. */
.article a.store-link { display: flex; align-items: center; min-height: 44px; width: fit-content; }

/* Closing box: the App Store link is a button, and the headline is not gold. */
.cta-box .cta-lead { color: #fff; font-weight: 600; }
.cta-box a.cta-button { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 16px; background: #F5A623; color: #111; font-weight: 700; border-radius: 0; text-decoration: none; }
.cta-box a.cta-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.tomo-row td { background: rgba(245,166,35,.08); }
.tomo-row td:first-child { color: #F5A623; }
.tomo-spotlight h2 { margin-top: 20px; }
.tomo-spotlight { background: #161616; border: 1px solid rgba(245,166,35,.55); border-radius: 0; padding: 4px 22px 8px; margin: 32px 0; }
.table-scroll table.compare { min-width: 680px; font-size: 14px; }
.compare th:first-child, .compare td:first-child { position: sticky; left: 0; background: #111; z-index: 1; }
.compare th, .compare td { padding: 10px 8px; }
.compare th:nth-child(2) { color: #F5A623; }
.compare td:nth-child(2) { background: rgba(245,166,35,.05); }
.compare td.win { background: rgba(245,166,35,.18); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px #F5A623; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- tomo-vs-notebook only, scoped to .vs-notebook. Written phone first;
   one breakpoint at 720px turns the stacked comparison into a real table.
   Better answers are marked by the word "Better", weight and a gold rule,
   so the verdict never rests on colour alone. ---- */

/* The short answer */
.vs-notebook .vn-verdict { margin: 32px 0 8px; padding: 20px; background: #161616; border: 1px solid #2a2a2a; border-radius: 0; }
.vs-notebook .vn-kicker { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #888; margin: 0 0 12px; }
.vs-notebook .vn-v { font-size: 16px; font-weight: 500; line-height: 1.55; color: #ccc; margin: 0; padding: 12px 0; border-top: 1px solid #262626; }
.vs-notebook .vn-v strong { display: block; font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.vs-notebook .vn-v-tomo strong { color: #F5A623; }
.vs-notebook .vn-v-paper strong { color: #fff; }
.vs-notebook .vn-v-none strong { color: #aaa; }
.vs-notebook .vn-v:last-child { padding-bottom: 0; }

/* Side by side: stacked rows on a phone */
.vs-notebook .vn-table { display: block; width: 100%; margin: 8px 0 16px; font-size: 15px; }
.vs-notebook .vn-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.vs-notebook .vn-table tbody,
.vs-notebook .vn-table tr,
.vs-notebook .vn-table th,
.vs-notebook .vn-table td { display: block; }
.vs-notebook .vn-table tbody { margin-bottom: 8px; }
.vs-notebook .vn-group th { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #F5A623; padding: 24px 0 4px; text-align: left; }
.vs-notebook .vn-table tr:not(.vn-group) { padding: 16px 0; border-top: 1px solid #262626; }
.vs-notebook .vn-table th[scope="row"] { font-size: 16px; font-weight: 600; color: #fff; text-align: left; margin-bottom: 10px; line-height: 1.4; }
.vs-notebook .vn-table td { display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; align-items: baseline; padding: 10px 12px; margin-top: 6px; border-radius: 0; color: #999; font-weight: 500; line-height: 1.5; }
.vs-notebook .vn-table td::before { content: attr(data-label); grid-column: 1; grid-row: 1 / span 2; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #777; }
.vs-notebook .vn-table td[data-label="TOMO"]::before { color: #F5A623; }
.vs-notebook .vn-table .vn-a { grid-column: 2; }
.vs-notebook .vn-table td.vn-better { color: #fff; font-weight: 600; background: rgba(245,166,35,.10); box-shadow: inset 0 0 0 1px #F5A623; }
.vs-notebook .vn-tag { grid-column: 2; margin-top: 4px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #F5A623; }
.vs-notebook .vn-table td.vn-both { color: #ddd; background: #161616; }
.vs-notebook .vn-table td.vn-both::before { color: #aaa; }

/* Why TOMO works: feature cards */
.vs-notebook .vn-features { list-style: none; margin: 20px 0 8px; padding: 0; display: grid; gap: 12px; }
.vs-notebook .vn-features li { margin: 0; padding: 18px 20px; background: #161616; border: 1px solid #2a2a2a; border-radius: 0; }
.vs-notebook .vn-features h3 { font-family: 'Inter', sans-serif; font-size: 17px; font-weight: 700; color: #fff; margin: 0 0 6px; line-height: 1.35; }
.vs-notebook .vn-features p { font-size: 15px; font-weight: 500; line-height: 1.6; color: #bbb; margin: 0; }
.vs-notebook .vn-features .vn-feature-lead { border-color: rgba(245,166,35,.35); background: linear-gradient(135deg, rgba(245,166,35,.10), rgba(245,166,35,.02)); }
.vs-notebook .vn-features .vn-feature-lead h3 { color: #F5A623; }

/* What TOMO won't do */
.vs-notebook .vn-limits { margin: 48px 0 0; padding: 20px; background: #161616; border: 1px solid #2a2a2a; border-radius: 0; }
.vs-notebook .vn-limits h2 { margin-top: 0; }
.vs-notebook .vn-limits ul { margin: 12px 0 0; padding: 0; list-style: none; }
.vs-notebook .vn-limits li { position: relative; padding: 12px 0 12px 20px; margin: 0; border-top: 1px solid #262626; font-weight: 500; }
.vs-notebook .vn-limits li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 8px; height: 2px; background: #777; }
.vs-notebook .vn-limits li strong { display: block; }

/* Closing: the belief, then two clear actions */
.vs-notebook .vn-close { margin: 56px 0 0; padding: 24px 20px; border: 1px solid rgba(245,166,35,.25); border-radius: 0; background: linear-gradient(160deg, rgba(245,166,35,.10), rgba(245,166,35,.02) 60%); }
.vs-notebook .vn-close h2 { margin-top: 0; font-size: 24px; }
.vs-notebook .vn-actions { display: grid; gap: 10px; margin: 24px 0 14px; }
.vs-notebook .vn-btn { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 20px; border-radius: 0; font-size: 16px; font-weight: 700; text-align: center; text-decoration: none; }
.vs-notebook .vn-btn:hover { text-decoration: none; }
.vs-notebook .vn-btn:focus-visible { outline: 2px solid #F5A623; outline-offset: 3px; }
.vs-notebook .vn-btn-primary { background: #F5A623; color: #111; }
.vs-notebook .vn-btn-secondary { color: #fff; border: 1px solid rgba(255,255,255,.22); transition: border-color var(--tc-base) var(--tc-cut), color var(--tc-base) var(--tc-cut); }
@media (hover: hover) and (pointer: fine) {
  .vs-notebook .vn-btn-secondary:hover { border-color: #F5A623; color: #F5A623; }
}
.vs-notebook .vn-fine { font-size: 13px; font-weight: 500; color: #888; margin: 0; line-height: 1.5; }

/* Tablet and up: the same markup becomes a three-column table */
@media (min-width: 720px) {
  .vs-notebook .vn-verdict { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 24px; padding: 24px 28px; }
  .vs-notebook .vn-kicker { grid-column: 1 / -1; }
  .vs-notebook .vn-v { padding: 14px 0 0; }

  .vs-notebook .vn-table { display: table; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
  .vs-notebook .vn-table thead { display: table-header-group; position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .vs-notebook .vn-table tbody { display: table-row-group; margin: 0; }
  .vs-notebook .vn-table tr { display: table-row; }
  .vs-notebook .vn-table th,
  .vs-notebook .vn-table td { display: table-cell; vertical-align: top; }
  .vs-notebook .vn-table thead th { font-size: 15px; font-weight: 700; color: #fff; text-align: left; padding: 0 16px 12px; border-bottom: 1px solid #333; }
  .vs-notebook .vn-table thead th:first-child { width: 30%; padding-left: 0; }
  .vs-notebook .vn-table thead .vn-col-tomo { color: #F5A623; }
  .vs-notebook .vn-table tr:not(.vn-group) { padding: 0; border: 0; }
  .vs-notebook .vn-group th { padding: 28px 0 8px; }
  .vs-notebook .vn-table th[scope="row"] { font-size: 15px; padding: 14px 16px 14px 0; margin: 0; border-top: 1px solid #262626; }
  .vs-notebook .vn-table td { padding: 14px 16px; margin: 0; border-radius: 0; border-top: 1px solid #262626; }
  .vs-notebook .vn-table td::before { content: none; }
  .vs-notebook .vn-table .vn-a,
  .vs-notebook .vn-tag { display: block; }
  .vs-notebook .vn-table td[data-label="TOMO"] { background: rgba(245,166,35,.04); }
  .vs-notebook .vn-table td.vn-better { background: rgba(245,166,35,.10); }
  .vs-notebook .vn-table td[data-label="TOMO"].vn-better { background: rgba(245,166,35,.14); }
  .vs-notebook .vn-table td.vn-both { background: #161616; text-align: center; }

  .vs-notebook .vn-features { grid-template-columns: 1fr 1fr; gap: 14px; }
  .vs-notebook .vn-features .vn-feature-lead { grid-column: 1 / -1; padding: 22px 24px; }
  .vs-notebook .vn-features .vn-feature-lead h3 { font-size: 19px; }

  .vs-notebook .vn-limits { padding: 28px 32px; }
  .vs-notebook .vn-close { padding: 36px 40px; }
  .vs-notebook .vn-close h2 { font-size: 28px; }
  .vs-notebook .vn-actions { grid-template-columns: auto auto; justify-content: start; gap: 12px; }
  .vs-notebook .vn-btn { padding: 12px 24px; }
}

/* Neutralise the shared answer-page table rules and the blog's
   "first paragraph is larger" rule inside this page's components. */
.vs-notebook .vn-table th,
.vs-notebook .vn-table td { border-bottom: 0; letter-spacing: normal; }
.vs-notebook .vn-table th[scope="row"] { padding: 0; }
.vs-notebook p.vn-kicker { font-size: 12px; color: #888; }
.vs-notebook .vn-verdict p.vn-v,
.vs-notebook .vn-limits p:first-of-type,
.vs-notebook .vn-close p:first-of-type { font-size: 16px; color: #ccc; }
.vs-notebook .vn-limits li { font-size: 16px; }
@media (min-width: 720px) {
  .vs-notebook .vn-table th[scope="row"] { padding: 14px 16px 14px 0; }
  .vs-notebook .vn-table thead th { border-bottom: 1px solid #333; }
}
.vs-notebook .vn-close p:not(.vn-fine) { font-size: 16px; color: #ccc; }

/* The shared phone rules above stack every answer-page table. This page's
   table has its own phone layout, so their row rules step aside here. */
.vs-notebook .vn-table tr { border-bottom: 0; }
@media (max-width: 600px) {
  .compare th:first-child { position: static; }
  .table-scroll table.compare { min-width: 0; }
  .compare td.win { padding-left: 10px; }
}
