/* ============================================================================
   TripSkyWay public website - content pages (design system v2)
   ----------------------------------------------------------------------------
   Contact, get a free quote, thank you, FAQ, CMS pages, the travel journal
   (blog index + article), careers, the in-site 404, the draft preview bar
   and the standalone error shell (errors/_brand_shell.php also loads this
   file, after site.css).

   Consumes site.css tokens and components only (.page-hero, .band, .btn,
   .field, .alert, .prose, .media, .accordion, .form-panel ...). Every class
   here is prefixed ct-. Single-class selectors; a parent's hover or a
   content area's descendants are the only exceptions, and they are marked.
   ========================================================================== */

/* ---- Shared pieces --------------------------------------------------------- */
.ct-ico { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.ct-h2 { font-size: var(--t-2xl); line-height: 1.1; }
.ct-h3 { font-size: var(--t-lg); line-height: 1.2; letter-spacing: -0.01em; }
.ct-hero-short { padding-block: var(--s-7) var(--s-6); }
.ct-band-tight { padding-top: var(--s-6); }
.ct-hero-tag { justify-self: start; }
.ct-hero-actions { gap: var(--s-3) var(--s-5); margin-top: var(--s-2); }
.ct-updated { font-size: var(--t-xs); color: var(--c-ink-3); }
.ct-flash { display: grid; gap: var(--s-3); padding-top: var(--s-5); }

/* An empty state is an invitation to act, framed so it never reads as a gap. */
.ct-empty {
    display: grid; gap: var(--s-4); justify-items: start; max-width: 680px;
    padding: clamp(24px, 4vw, 48px); border: 1.5px dashed var(--c-line-strong); border-radius: var(--r-media);
}
.ct-empty-left { max-width: 760px; }

/* Two columns on wide screens: a narrow side and the main column. DOM order
   is the reading order on a phone. */
.ct-split { display: grid; gap: var(--s-7); }
.ct-split-side { display: grid; gap: var(--s-5); align-content: start; min-width: 0; }
.ct-split-main { min-width: 0; }
.ct-solo { max-width: calc(760px + 2 * var(--gutter)); }
@media (min-width: 960px) {
    .ct-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; }
    .ct-split-form { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--s-7); }
    .ct-order-first { order: -1; }
    .ct-sticky { position: sticky; top: calc(var(--header-h) + var(--s-5)); }
}

/* Form panel heading block (the lead form itself is styled in site.css). */
.ct-form-panel { display: grid; gap: var(--s-5); }
.ct-form-head { display: grid; gap: var(--s-2); }
.ct-form-sub { color: var(--c-ink-2); }
.ct-optional { font-weight: 500; color: var(--c-ink-3); }

/* ---- Steps: the route, drawn downwards ------------------------------------
   Used only where the content is a real sequence (what happens after an
   enquiry). Same marigold dashed line and stops as .route in site.css. */
.ct-steps { list-style: none; display: grid; }
.ct-step { position: relative; display: grid; gap: 4px; padding: 0 0 var(--s-5) 40px; }
.ct-step:last-child { padding-bottom: 0; }
.ct-step::before {
    content: ''; position: absolute; z-index: 1; left: 0; top: 2px; width: 20px; height: 20px;
    border-radius: 50%; background: var(--c-paper); border: 5px solid var(--c-marigold);
}
.ct-step::after { content: ''; position: absolute; left: 9px; top: 22px; bottom: 2px; border-left: 2.5px dashed var(--c-marigold); }
.ct-step:last-child::before { background: var(--c-marigold); }
.ct-step:last-child::after { content: none; }
.ct-step.is-done::before {
    left: -2px; top: 0; width: 24px; height: 24px; border: 0; background: var(--c-marigold) center / 14px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%231B1F3B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.ct-step-title { font-weight: 650; font-size: var(--t-md); line-height: 1.3; letter-spacing: -0.005em; }
.ct-step-text { font-family: var(--f-text); font-size: var(--t-sm); line-height: 1.5; color: var(--c-ink-2); }

/* "Rather talk it through?" - the two ways to skip the form. */
.ct-talk { display: grid; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--c-line); }
.ct-talk-title { font-weight: 650; }
.ct-talk-actions { display: grid; gap: var(--s-2); }

/* ---- Contact: direct channels -------------------------------------------- */
.ct-channels { list-style: none; display: grid; border-top: 1px solid var(--c-line); }
@media (min-width: 600px) and (max-width: 959px) {
    .ct-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); }
    .ct-talk-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ct-channel { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-4); padding-block: var(--s-5); border-bottom: 1px solid var(--c-line); }
.ct-channel-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-brand-soft); color: var(--c-brand); }
.ct-channel-icon svg { width: 20px; height: 20px; }
.ct-channel-icon-wa { background: var(--c-success-soft); color: var(--c-success); }
.ct-channel-text { display: grid; gap: 2px; min-width: 0; justify-items: start; }
.ct-channel-what { font-size: var(--t-xs); font-weight: 600; color: var(--c-ink-3); }
.ct-channel-value {
    font-size: var(--t-lg); font-weight: 680; line-height: 1.2; letter-spacing: -0.015em; color: var(--c-ink);
    text-decoration: none; overflow-wrap: anywhere; font-variant-numeric: tabular-nums;
}
@media (min-width: 960px) { .ct-channel-value { font-size: var(--t-xl); } }
.ct-channel-value:hover { color: var(--c-brand); text-decoration: underline; text-decoration-thickness: 2px; }
.ct-channel-address { font-family: var(--f-text); font-size: var(--t-md); line-height: 1.5; }
.ct-channel-note { font-size: var(--t-xs); color: var(--c-ink-2); margin-top: 2px; }
.ct-channel-note-link { font-size: var(--t-xs); font-weight: 620; margin-top: 2px; }

/* ---- Thank you ------------------------------------------------------------ */
.ct-confirm-band { background: var(--c-haze); }
.ct-confirm { display: grid; gap: var(--s-7); }
.ct-confirm-main { display: grid; gap: var(--s-5); justify-items: start; min-width: 0; }
.ct-confirm-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--c-success-soft); color: var(--c-success); }
.ct-confirm-mark svg { width: 28px; height: 28px; stroke-width: 2.4; }
.ct-confirm-title { max-width: 16ch; }
.ct-confirm-actions { gap: var(--s-3); }
.ct-confirm-side { display: grid; gap: var(--s-5); align-content: start; padding: clamp(24px, 3vw, 36px); background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-media); }
@media (min-width: 960px) {
    .ct-confirm { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: start; }
}
/* The reference, cut like the stub of a ticket. */
.ct-ref {
    position: relative; display: grid; gap: 4px; width: min(100%, 440px);
    padding: var(--s-5) var(--s-6); background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-media);
}
.ct-ref::before, .ct-ref::after {
    content: ''; position: absolute; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%;
    background: var(--c-haze); border: 1px solid var(--c-line);
}
.ct-ref::before { left: -11px; clip-path: inset(0 0 0 50%); }
.ct-ref::after { right: -11px; clip-path: inset(0 50% 0 0); }
.ct-ref-label { font-size: var(--t-xs); font-weight: 620; color: var(--c-ink-3); }
.ct-ref-code { font-size: clamp(1.25rem, 0.85rem + 2.4vw, 2.5rem); font-weight: 720; line-height: 1.1; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ct-ref-note { font-size: var(--t-xs); color: var(--c-ink-2); }

/* ---- FAQ ------------------------------------------------------------------ */
.ct-faq { display: grid; gap: var(--s-6); }
.ct-faq-flat { max-width: calc(880px + 2 * var(--gutter)); }
.ct-faq-index ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }   /* the index's own list */
.ct-faq-topic {
    display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4);
    border: 1.5px solid var(--c-line); border-radius: var(--r-pill); color: var(--c-ink); text-decoration: none;
    font-size: var(--t-xs); font-weight: 620;
}
.ct-faq-topic:hover { border-color: var(--c-ink-3); color: var(--c-ink); }
.ct-faq-count { color: var(--c-ink-3); font-weight: 560; font-variant-numeric: tabular-nums; }
.ct-faq-groups { display: grid; gap: var(--s-8); min-width: 0; }
.ct-faq-group { display: grid; gap: var(--s-4); }
.ct-ask { display: grid; gap: var(--s-4); padding: clamp(24px, 3vw, 36px); border-radius: var(--r-media); background: var(--c-haze); }
.ct-ask-text { display: grid; gap: var(--s-2); }
.ct-ask-text p { color: var(--c-ink-2); }   /* the panel's one sentence */
@media (min-width: 760px) { .ct-ask { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
@media (min-width: 1024px) {
    .ct-faq { grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-8); align-items: start; }
    .ct-faq-flat { grid-template-columns: minmax(0, 1fr); }
    .ct-faq-index { position: sticky; top: calc(var(--header-h) + var(--s-5)); }
    .ct-faq-index ul { flex-direction: column; flex-wrap: nowrap; gap: 0; border-left: 2px solid var(--c-line); }
    .ct-faq-topic { display: flex; justify-content: space-between; margin-left: -2px; padding: 0 var(--s-4); border: 0; border-left: 2px solid transparent; border-radius: 0; font-size: var(--t-sm); }
    .ct-faq-topic:hover { border-left-color: var(--c-ink); }
}

/* ---- CMS pages ------------------------------------------------------------ */
.ct-doc { display: grid; gap: var(--s-6); }
.ct-toc-box { border: 1px solid var(--c-line); border-radius: var(--r-media); padding: 0 var(--s-5); }
.ct-toc-box[open] { padding-bottom: var(--s-4); }
.ct-toc-title {
    display: flex; align-items: center; justify-content: space-between; min-height: 52px; cursor: pointer;
    list-style: none; font-weight: 650;
}
.ct-toc-title::-webkit-details-marker { display: none; }
.ct-toc-title::after {
    content: ''; width: 16px; height: 16px; transition: transform .2s var(--ease);
    background: center / 16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%235F6482' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.ct-toc-box[open] .ct-toc-title::after { transform: rotate(180deg); }   /* state of the parent details */
.ct-toc-list { list-style: none; display: grid; border-left: 2px solid var(--c-line); }
.ct-toc-list a { display: block; margin-left: -2px; padding: 8px var(--s-4); border-left: 2px solid transparent; color: var(--c-ink-2); text-decoration: none; font-size: var(--t-xs); line-height: 1.35; }
.ct-toc-list a:hover { color: var(--c-brand); border-left-color: var(--c-brand); }
@media (min-width: 1024px) {
    .ct-doc { grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-8); align-items: start; }
    .ct-toc { position: sticky; top: calc(var(--header-h) + var(--s-5)); }
    .ct-toc-box { border: 0; padding: 0; }
    .ct-toc-title { min-height: 0; padding-bottom: var(--s-3); pointer-events: none; }
    .ct-toc-title::after { content: none; }
}

/* Rich text from the CMS: the extra elements .prose (site.css) leaves alone.
   Descendant selectors are unavoidable here: the markup is the editor's. */
.ct-prose h2 { scroll-margin-top: calc(var(--header-h) + var(--s-5)); }
.ct-prose > :first-child { margin-top: 0; }
.ct-prose hr { margin-block: var(--s-3); }
.ct-prose figure { margin: 0; display: grid; gap: var(--s-2); }
.ct-prose figcaption { font-family: var(--f-ui); font-size: var(--t-xs); color: var(--c-ink-3); }
.ct-prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-family: var(--f-ui); font-size: var(--t-xs); }
.ct-prose th, .ct-prose td { padding: 10px 12px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.ct-prose th { background: var(--c-haze); font-weight: 650; }
.ct-prose li::marker { color: var(--c-ink-3); }

/* ---- Travel journal: index ------------------------------------------------ */
.ct-journal { display: grid; gap: var(--s-7); }
.ct-journal-h { padding-top: var(--s-7); border-top: 1px solid var(--c-line); }
.ct-feature { position: relative; display: grid; gap: var(--s-5); }
.ct-feature-media { aspect-ratio: 3 / 2; }
.ct-feature-body { display: grid; gap: var(--s-4); align-content: center; justify-items: start; min-width: 0; }
.ct-feature-title { font-size: var(--t-3xl); line-height: 1.05; max-width: 18ch; }
.ct-feature-title a { color: var(--c-ink); text-decoration: none; }
.ct-feature-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.ct-feature-title a:focus-visible { box-shadow: none; }
.ct-feature:focus-within { box-shadow: var(--focus); border-radius: var(--r-media); }
.ct-feature:hover .ct-feature-title a { text-decoration: underline; text-decoration-thickness: 2px; }   /* parent hover */
.ct-feature-excerpt { font-family: var(--f-text); font-size: var(--t-md); line-height: 1.6; color: var(--c-ink-2); max-width: 52ch; }
.ct-read { display: inline-flex; align-items: center; gap: 2px; font-weight: 650; color: var(--c-brand); }
.ct-read svg { width: 18px; height: 18px; }
@media (min-width: 860px) {
    .ct-feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-7); align-items: center; }
}

.ct-post { position: relative; display: grid; gap: var(--s-4); align-content: start; }
.ct-post-media { aspect-ratio: 3 / 2; }
.ct-post-media .media-placeholder { font-size: var(--t-lg); }   /* placeholder inside a small frame */
.ct-post-body { display: grid; gap: var(--s-2); }
.ct-post-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s-3); font-size: var(--t-xs); color: var(--c-ink-3); }
.ct-post-cat { font-size: var(--t-xs); font-weight: 650; color: var(--c-marigold-text); }
.ct-post-title { font-size: var(--t-lg); line-height: 1.2; letter-spacing: -0.012em; }
.ct-post-title a { color: var(--c-ink); text-decoration: none; }
.ct-post-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.ct-post-title a:focus-visible { box-shadow: none; }
.ct-post:focus-within { box-shadow: var(--focus); border-radius: var(--r-media); }
.ct-post:hover .ct-post-title a { text-decoration: underline; }   /* parent hover */
.ct-post-excerpt {
    font-family: var(--f-text); font-size: var(--t-sm); line-height: 1.55; color: var(--c-ink-2);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---- Travel journal: article --------------------------------------------- */
.ct-article-head { padding-block: var(--s-6) var(--s-6); }
.ct-article-head-inner { display: grid; gap: var(--s-4); justify-items: start; }
.ct-article-title { font-size: var(--t-4xl); max-width: 20ch; }
.ct-byline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); font-size: var(--t-xs); color: var(--c-ink-2); }
.ct-byline strong { color: var(--c-ink); font-weight: 650; }   /* the author's name */
.ct-byline-time { display: inline-flex; align-items: center; gap: 6px; }
.ct-byline-time .ct-ico { width: 16px; height: 16px; margin: 0; color: var(--c-ink-3); }
.ct-article-cover { margin: 0; aspect-ratio: 3 / 2; }
.ct-article-cover img { width: 100%; height: 100%; object-fit: cover; }
.ct-article-layout { display: grid; gap: var(--s-7); padding-block: var(--s-7) var(--section-y); }
.ct-article-body { min-width: 0; }
.ct-aside-card { display: grid; gap: var(--s-3); padding: var(--s-5); border-radius: var(--r-media); background: var(--c-haze); }
.ct-aside-card p { font-family: var(--f-text); color: var(--c-ink-2); line-height: 1.55; }   /* the card's sentence */
@media (min-width: 768px) { .ct-article-cover { aspect-ratio: 2 / 1; } }
@media (min-width: 1024px) {
    .ct-article-cover { aspect-ratio: 21 / 9; }
    .ct-article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-8); }
    .ct-aside-card { position: sticky; top: calc(var(--header-h) + var(--s-5)); background: var(--c-paper); border: 1px solid var(--c-line); }
}

/* ---- Careers: the job board ---------------------------------------------- */
.ct-job-h1 { max-width: 20ch; }
.ct-facts { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--t-xs); color: var(--c-ink-2); }
.ct-facts li { display: inline-flex; align-items: center; gap: 6px; }   /* one fact */
.ct-facts svg { width: 16px; height: 16px; color: var(--c-ink-3); flex: none; }
.ct-facts-lg { font-size: var(--t-sm); font-weight: 600; color: var(--c-ink); }
.ct-facts-lg svg { width: 18px; height: 18px; color: var(--c-brand); }

.ct-board { display: grid; gap: var(--s-6); }
.ct-board-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-5); }
.ct-board-count { color: var(--c-ink-2); }
.ct-jobs { list-style: none; display: grid; border-top: 1px solid var(--c-ink); }
.ct-job { position: relative; display: grid; gap: var(--s-4); padding-block: var(--s-5); border-bottom: 1px solid var(--c-line); }
.ct-job:focus-within { box-shadow: var(--focus); border-radius: 4px; }
.ct-job-main { display: grid; gap: var(--s-2); min-width: 0; }
.ct-job-title { font-size: var(--t-xl); line-height: 1.15; letter-spacing: -0.015em; }
.ct-job-title a { color: var(--c-ink); text-decoration: none; }
.ct-job-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.ct-job-title a:focus-visible { box-shadow: none; }
.ct-job:hover .ct-job-title a { color: var(--c-brand); text-decoration: underline; text-decoration-thickness: 2px; }   /* parent hover */
.ct-job-summary { font-family: var(--f-text); font-size: var(--t-sm); line-height: 1.55; color: var(--c-ink-2); max-width: 70ch; }
.ct-job-go { display: inline-flex; align-items: center; gap: 2px; font-size: var(--t-sm); font-weight: 650; color: var(--c-brand); white-space: nowrap; }
.ct-job-go svg { width: 18px; height: 18px; }
@media (min-width: 720px) {
    .ct-job { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-6); padding-block: var(--s-6); }
}

.ct-role { display: grid; gap: var(--s-7); }
.ct-role-body { display: grid; gap: var(--s-6); align-content: start; min-width: 0; }
.ct-role-section { display: grid; gap: var(--s-3); }
.ct-role-text { display: grid; gap: var(--s-4); max-width: var(--measure); }
.ct-ticks { list-style: none; display: grid; gap: var(--s-3); max-width: var(--measure); }
.ct-ticks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--s-3); font-family: var(--f-text); font-size: var(--t-md); line-height: 1.55; }   /* one line of the list */
.ct-ticks svg { width: 20px; height: 20px; margin-top: 4px; color: var(--c-brand); stroke-width: 2.2; }
.ct-role-apply { min-width: 0; scroll-margin-top: calc(var(--header-h) + var(--s-4)); }
@media (min-width: 1024px) {
    .ct-role { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: start; }
}

.ct-apply { display: grid; gap: var(--s-6); }
.ct-apply-intro { display: grid; gap: var(--s-4); align-content: start; }
.ct-apply-note { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--t-xs); color: var(--c-ink-2); }
.ct-apply-note .ct-ico { width: 18px; height: 18px; color: var(--c-success); }
.ct-apply-form { display: grid; gap: var(--s-4); }
.ct-file::file-selector-button {
    margin: -4px var(--s-3) -4px 0; min-height: 36px; padding: 0 var(--s-4);
    border: 1.5px solid var(--c-line-strong); border-radius: var(--r-control); background: var(--c-haze);
    color: var(--c-ink); font: inherit; font-weight: 620; cursor: pointer;
}
.ct-file::file-selector-button:hover { border-color: var(--c-ink-3); }
@media (min-width: 960px) {
    .ct-apply { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; }
    .ct-apply-intro { position: sticky; top: calc(var(--header-h) + var(--s-5)); }
}

/* ---- In-site 404 ---------------------------------------------------------- */
.ct-lost { display: grid; gap: var(--s-7); }
.ct-lost-main { display: grid; gap: var(--s-5); justify-items: start; min-width: 0; }
.ct-lost-title { max-width: 14ch; }
.ct-search { display: flex; gap: var(--s-2); width: 100%; max-width: 520px; }
.ct-search .input { flex: 1; min-width: 0; }   /* the search box */
.ct-lost-links { display: grid; border-top: 1px solid var(--c-line); min-width: 0; }
.ct-lost-link { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-4); padding-block: var(--s-4); border-bottom: 1px solid var(--c-line); color: var(--c-ink); text-decoration: none; }
.ct-lost-link svg { width: 24px; height: 24px; color: var(--c-brand); margin-top: 1px; }
.ct-lost-link:hover { color: var(--c-ink); }
.ct-lost-text { display: grid; gap: 2px; }
.ct-lost-name { font-size: var(--t-md); font-weight: 650; }
.ct-lost-link:hover .ct-lost-name { color: var(--c-brand); text-decoration: underline; }   /* parent hover */
.ct-lost-desc { font-size: var(--t-xs); color: var(--c-ink-2); }
@media (min-width: 960px) {
    .ct-lost { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: center; }
}

/* ---- Draft preview bar (inside site.css .preview-banner) ----------------- */
.ct-preview { padding-block: var(--s-2); }
.ct-preview-text { flex: 1 1 420px; min-width: 0; display: flex; gap: var(--s-2); align-items: flex-start; line-height: 1.45; font-weight: 500; }
.ct-preview-text .ct-ico { width: 18px; height: 18px; }
.ct-preview-actions { flex: 0 1 auto; max-width: 100%; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ct-preview-btn { padding-inline: var(--s-3); background: var(--c-paper); border-color: var(--c-ink); color: var(--c-ink); }
.ct-preview-btn:hover { background: var(--c-ink); color: var(--c-on-dark); }
.ct-preview-btn svg { width: 16px; height: 16px; }

/* ---- Standalone error shell (errors/_brand_shell.php) -------------------- */
.ct-err-body { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; background: var(--c-haze); }
.ct-err-top { border-bottom: 1px solid var(--c-line); background: var(--c-paper); }
.ct-err-top .wrap { display: flex; align-items: center; min-height: var(--header-h); }   /* the shell's own bar */
.ct-err-logo { display: inline-flex; }
.ct-err-logo img { height: 36px; width: auto; }
.ct-err { display: grid; align-items: center; padding-block: var(--s-8) var(--s-9); }
.ct-err-inner { display: grid; gap: var(--s-5); justify-items: start; }
.ct-err-title { max-width: 18ch; }
.ct-err-lede { max-width: 58ch; }
/* A route that stops short: a stop, the dashed line, and an empty stop. */
.ct-err-route {
    position: relative; width: 132px; height: 16px;
    background: repeating-linear-gradient(90deg, var(--c-marigold) 0 7px, transparent 7px 12px) 16px 50% / calc(100% - 36px) 2.5px no-repeat;
}
.ct-err-route::before { content: ''; position: absolute; left: 0; top: 1px; width: 14px; height: 14px; border-radius: 50%; background: var(--c-marigold); }
.ct-err-route::after { content: ''; position: absolute; right: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; border: 2px dashed var(--c-ink-3); }
.ct-err-detail { font-size: var(--t-xs); color: var(--c-ink-2); max-width: 100%; }
.ct-err-detail span { padding: 2px 8px; border: 1px solid var(--c-line); border-radius: 6px; background: var(--c-paper); color: var(--c-ink); font-weight: 600; overflow-wrap: anywhere; }   /* the address */
.ct-err-actions { gap: var(--s-3); }
.ct-err-code { font-size: var(--t-xs); color: var(--c-ink-3); }
.ct-err-debug {
    width: 100%; margin: 0; padding: var(--s-4); overflow: auto; white-space: pre-wrap;
    background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-control);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.55; color: var(--c-ink);
}
@media (max-width: 480px) {
    .ct-err-actions .btn { width: 100%; }   /* stacked actions on a phone */
    .ct-err-logo img { height: 30px; }
}

/* ---- Privacy notice + data rights form (website/privacy*.php) ------------- */
.link-button { display: inline; padding: 0; border: 0; background: none; color: var(--c-brand); font: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.link-button:hover { color: var(--c-brand-strong); }
.privacy-notice h3 { margin-top: var(--s-5); font-size: var(--t-md); }
.privacy-req { display: grid; gap: var(--s-5); max-width: 760px; }
.privacy-req-types { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.privacy-req-types .check { font-size: var(--t-sm); color: var(--c-ink); }
.privacy-req-help { margin: 0; font-size: var(--t-xs); color: var(--c-ink-2); }
.tsw-consent-link { color: var(--c-brand); white-space: nowrap; }
