/* TrivoStream pages: breadcrumb, contents list, price tables, guide cards, guide layout.
   Loaded only on pages that use them (see inc/shortcodes.php). Tokens come from style.css. */

.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Breadcrumb */
.crumbs { margin: 0 0 18px; font-size: 0.92rem; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 0; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin-inline: 10px; color: var(--line); font-weight: 700; }
.crumbs a { color: var(--ink); text-decoration-thickness: 1px; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--muted); }

/* Guide layout */
.guide__meta { color: var(--muted); font-size: 0.95rem; margin: -0.2em 0 1.4em; }
.guide h2 { scroll-margin-top: 90px; }
.guide__faq { margin-top: 2.4em; }
.guide__faq .faq__a p, .guide__faq .faq__a { color: var(--muted); }
.toc { border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 20px 24px; margin: 0 0 2em; }
.toc__t { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.toc a { color: var(--ink); text-decoration-thickness: 1px; }
.toc a:hover { color: var(--accent); }
.next { margin-top: 2.4em; padding: 22px 24px; border: 1.5px solid var(--accent); border-radius: var(--r-lg); background: #fff; }
.next__t { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; margin: 0 0 8px; }
.next p:last-child { margin-bottom: 0; }

/* Price tables (shortcodes) */
.pt-wrap { margin-block: 1.2em; }
.prose .pt { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.prose .pt th, .prose .pt td { border: 1px solid var(--line); padding: 12px 8px; text-align: center; vertical-align: top; font-size: 0.98rem; }
.prose .pt thead th { background: var(--surface); font-weight: 700; font-size: 0.9rem; }
.prose .pt tbody th { text-align: left; background: #fff; font-weight: 700; white-space: normal; }
.pt__v { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; color: var(--ink); }
.pt__s { display: block; margin-top: 2px; font-size: 0.82rem; font-weight: 700; color: var(--accent); }
.prose .pt__buy { display: inline-block; margin-top: 6px; padding: 4px 12px; border-radius: var(--r-sm); background: var(--accent); color: #fff; font-weight: 700; font-size: 0.85rem; text-decoration: none; }
.prose .pt__buy:hover { background: var(--accent-hover); color: #fff; }
@media (max-width: 520px) {
	.prose .pt th, .prose .pt td { padding: 10px 4px; font-size: 0.85rem; }
	.prose .pt thead th { font-size: 0.76rem; padding-inline: 2px; }
	.pt__v { font-size: 1rem; }
	.prose .pt__buy { padding: 4px 8px; }
}

/* Guide cards (hub) */
.gcards { list-style: none; padding: 0; margin: 1.4em 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gcard a, .prose .gcard a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 22px; border: 1.5px solid var(--accent); border-radius: var(--r-lg); background: #fff; color: var(--ink); text-decoration: none; }
.gcard a:hover, .prose .gcard a:hover { background: var(--surface); color: var(--ink); }
.gcard__t { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; line-height: 1.2; }
.gcard__d { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 640px) { .gcards { grid-template-columns: 1fr; } }

/* Trademark and affiliation note at the end of a guide */
.guide__note, .prose .guide__note { color: var(--muted); font-size: 0.88rem; margin-top: 2em; }

/* Button row inside page content (hub) */
.guide__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0; }
.prose .guide__buttons .btn--primary { background: var(--accent); color: var(--on-accent); }
.prose .guide__buttons .btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.prose .guide__buttons .btn--outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.prose .guide__buttons .btn--outline:hover { background: var(--ink); color: #fff; }
.guide__byline { color: var(--muted); font-size: 0.95rem; }
/* Tables in guides: let long cells wrap on phones */
.guide table, .prose table { overflow-wrap: anywhere; }
@media (max-width: 520px) { .prose th, .prose td { padding: 8px 8px; font-size: 0.92rem; } }
