/*
 * Base stylesheet for every public theme. A theme's own <key>.css only re-skins it.
 * Variables from theme options are inlined in <head> (--brand, --accent, --font, --fs, --radius, --maxw).
 * Built for Core Web Vitals: system fonts by default, fixed media ratios (no CLS), no JS needed.
 */
:root {
  --brand: #2563eb; --brand-soft: #eef4ff; --on-brand: #fff; --accent: #f59e0b; --on-accent: #111;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans Thai', 'Leelawadee UI', Tahoma, sans-serif;
  --fs: 18px; --radius: 10px; --maxw: 1080px; --read: 720px;
  --text: #0f172a; --text-2: #334155; --muted: #64748b; --bg: #ffffff; --surface: #f8fafc; --surface-2: #f1f5f9; --line: #e2e8f0;
  --shadow: 0 1px 2px rgb(15 23 42 / .06), 0 4px 16px rgb(15 23 42 / .06);
  --shadow-lg: 0 2px 4px rgb(15 23 42 / .06), 0 12px 32px rgb(15 23 42 / .10);
  color-scheme: light;
}
html[data-mode='dark'] {
  --text: #e5e7eb; --text-2: #cbd5e1; --muted: #94a3b8; --bg: #0b0f17; --surface: #111723; --surface-2: #172031; --line: #243042;
  --brand-soft: color-mix(in srgb, var(--brand) 18%, var(--bg));
  --shadow: 0 1px 2px rgb(0 0 0 / .4); --shadow-lg: 0 8px 28px rgb(0 0 0 / .45); color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html[data-mode='auto'] {
    --text: #e5e7eb; --text-2: #cbd5e1; --muted: #94a3b8; --bg: #0b0f17; --surface: #111723; --surface-2: #172031; --line: #243042;
    --brand-soft: color-mix(in srgb, var(--brand) 18%, var(--bg));
    --shadow: 0 1px 2px rgb(0 0 0 / .4); --shadow-lg: 0 8px 28px rgb(0 0 0 / .45); color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); font-size: var(--fs); line-height: 1.75; color: var(--text); background: var(--bg); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.3; letter-spacing: -.012em; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(30px, 4.6vw, 46px); margin: 0 0 12px; font-weight: 700; }
h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 44px 0 14px; }
h3 { font-size: 20px; }
p { text-wrap: pretty; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--bg); padding: 6px 10px; z-index: 100; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.button { display: inline-block; padding: 11px 22px; border-radius: max(8px, var(--radius)); background: var(--brand); color: var(--on-brand); text-decoration: none; font-weight: 600; }
.button:hover { filter: brightness(1.08); }

/* ── Header ── */
.topbar { background: var(--surface-2); color: var(--muted); font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 34px; }
.topbar-social { display: flex; gap: 10px; }
.topbar-social a { color: var(--muted); display: inline-flex; }
.topbar-social svg { width: 15px; height: 15px; fill: currentColor; }
.site-header { background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--line); z-index: 20; }
.is-sticky .site-header { position: sticky; top: 0; backdrop-filter: saturate(180%) blur(10px); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.brand-logo { width: 36px; height: 36px; border-radius: calc(var(--radius) * .8); object-fit: cover; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.tagline { color: var(--muted); font-size: 13px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { display: block; padding: 7px 12px; border-radius: 999px; color: var(--text-2); text-decoration: none; font-size: 15.5px; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current='page'] { background: var(--brand-soft); color: var(--brand); }
.nav-toggle, .nav-burger { display: none; }
.header-centered .header-inner { flex-direction: column; justify-content: center; gap: 6px; padding: 18px 0 10px; }
.header-centered .brand { flex-direction: column; text-align: center; }
.header-centered .brand-text { align-items: center; }
.header-centered .site-nav { margin: 0; }
.header-centered .site-nav ul { justify-content: center; }
.header-brand .site-header { background: var(--brand); border-bottom: 0; }
.header-brand .site-header .brand, .header-brand .site-header .tagline { color: var(--on-brand); }
.header-brand .site-header .tagline { opacity: .8; }
.header-brand .site-nav a { color: var(--on-brand); opacity: .92; }
.header-brand .site-nav a:hover, .header-brand .site-nav a[aria-current='page'] { background: color-mix(in srgb, var(--on-brand) 16%, transparent); color: var(--on-brand); opacity: 1; }

main { padding-top: 28px; padding-bottom: 72px; min-height: 60vh; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: '›'; margin-right: 6px; opacity: .7; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }

/* ── Hero ── */
.hero { position: relative; margin: 8px 0 8px; padding: 40px 0 28px; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); margin: 0; max-width: 680px; }
.hero-image { padding: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 2; display: grid; align-items: end; margin-bottom: 20px; }
.hero-image .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgb(0 0 0 / .65)); }
.hero-image .hero-text { position: relative; z-index: 1; padding: 32px; color: #fff; }
.hero-image h1, .hero-image .lead { color: #fff; }
.hero-listing { padding: 20px 0 8px; }

.block { margin-top: 40px; }
.section-title { font-size: 22px; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ''; width: 6px; height: 22px; border-radius: 3px; background: var(--brand); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head .more { font-size: 15px; text-decoration: none; font-weight: 600; white-space: nowrap; }

/* ── Cards ── */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.cards-grid, .cards-featured { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--bg); border-radius: var(--radius); overflow: hidden; }
.card-media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.035); }
.card-body { padding: 14px 2px 4px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { margin: 0; font-size: 19px; line-height: 1.4; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--brand); }
.excerpt { margin: 2px 0; color: var(--text-2); font-size: .9em; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { color: var(--muted); font-size: 14px; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.kicker { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.kicker a { color: var(--brand); text-decoration: none; }
.cards-list { gap: 22px; }
.cards-list .card { flex-direction: row; gap: 20px; align-items: flex-start; }
.cards-list .card-media { flex: 0 0 min(34%, 260px); }
.cards-list .card-body { padding-top: 2px; }
.cards-list .card h3 { font-size: 21px; }
.cards-text { gap: 0; }
.cards-text .card { border-bottom: 1px solid var(--line); border-radius: 0; padding: 18px 0; }
.cards-text .card-body { padding: 0; }
.cards-text .card h3 { font-size: 22px; }

/* Lead story (featured layout) */
.lead-story { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: center; margin: 8px 0 12px; padding: 18px; border-radius: calc(var(--radius) * 1.4); background: var(--surface); }
.lead-media { display: block; overflow: hidden; border-radius: var(--radius); }
.lead-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.lead-body h2 { font-size: clamp(24px, 3vw, 32px); margin: 6px 0 10px; }
.lead-body h2 a { color: var(--text); text-decoration: none; }
.lead-body h2 a:hover { color: var(--brand); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 36px; font-size: 15px; color: var(--muted); }
.pagination a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; }

/* ── Article ── */
.article-layout { display: block; }
.article-layout.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.post { max-width: var(--read); margin: 0 auto; }
.has-sidebar .post { margin: 0; }
.post-header { margin-bottom: 22px; }
.post-header .meta { font-size: 15px; gap: 4px 16px; }
.featured { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin: 0 0 28px; background: var(--surface-2); }
.toc { margin: 0 0 28px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 15.5px; }
.toc-title { margin: 0 0 6px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 3px 0; }
.toc .toc-l3 { margin-left: 16px; list-style: circle; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--brand); }
.article-body { line-height: 1.85; color: var(--text); }
/* Settings › SEO หน้าแรก › เนื้อหาแนะนำเว็บ — readable width, quiet card */
.home-intro { max-width: var(--read); }
.home-intro-body { font-size: .96em; color: var(--text-2); }
.home-intro-body > :first-child { margin-top: 0; }
.home-intro-body > :last-child { margin-bottom: 0; }
.article-body > * + * { margin-top: 1em; }
.article-body h2 { margin-top: 1.9em; }
.article-body h3 { margin-top: 1.6em; font-size: 1.15em; }
.article-body img { border-radius: var(--radius); margin: 1.4em auto; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: .35em; }
.article-body blockquote { margin: 1.5em 0; padding: 4px 20px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 var(--radius) var(--radius) 0; color: var(--text-2); }
.article-body pre { overflow-x: auto; background: var(--surface-2); padding: 14px 16px; border-radius: var(--radius); font-size: .85em; }
.article-body code { font-size: .9em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.article-body pre code { background: none; padding: 0; }
.article-body table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: .92em; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.article-body th { background: var(--surface); }
.article-body a { word-break: break-word; }
.drop-cap > p:first-of-type::first-letter { float: left; font-size: 3.4em; line-height: .9; padding: 6px 10px 0 0; font-weight: 700; color: var(--brand); }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 0; font-size: 14.5px; }
.tags-label { color: var(--muted); margin-right: 2px; }
.tags a { padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); text-decoration: none; font-weight: 500; }
.tags a:hover { background: var(--brand); color: var(--on-brand); }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; font-size: 15px; color: var(--muted); }
.share a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text-2); font-weight: 500; }
.share a:hover { border-color: var(--brand); color: var(--brand); }
.author-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 36px; padding: 20px; border-radius: var(--radius); background: var(--surface); }
.author-box .avatar { border-radius: 50%; flex: none; }
.author-box p { margin: 2px 0; font-size: 15.5px; }
.author-name { font-weight: 700; }
.author-name a { color: var(--text); text-decoration: none; }
.sidebar { position: sticky; top: 90px; display: grid; gap: 24px; font-size: 15.5px; }
.sidebar section { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); }
.sidebar h2 { font-size: 16px; margin: 0 0 8px; }
.sidebar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sidebar a { color: var(--text-2); text-decoration: none; }
.sidebar a:hover { color: var(--brand); }
.related { max-width: var(--maxw); }

/* ── Author / 404 ── */
.author-hero { display: flex; gap: 22px; align-items: flex-start; }
.author-hero .avatar { border-radius: 50%; flex: none; }
.notice { text-align: center; padding: 40px 0; }
.notice-code { font-size: 88px; font-weight: 800; line-height: 1; margin: 0; color: var(--brand-soft); -webkit-text-stroke: 2px var(--brand); }
.notice .cards { text-align: left; max-width: 760px; margin: 0 auto; }

/* ── Footer ── */
.site-footer { margin-top: 32px; background: var(--surface); border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 28px; }
.footer-about p { margin: 10px 0 0; max-width: 420px; }
.footer-col h2 { font-size: 15px; margin: 4px 0 10px; color: var(--text); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.site-footer .brand-name { font-size: 18px; color: var(--text); }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.social svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 20px; font-size: 14px; }
.footer-bottom p { margin: 0; }

/* ── Small screens ── */
@media (max-width: 860px) {
  .article-layout.has-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .lead-story { grid-template-columns: 1fr; padding: 12px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .header-inner { min-height: 60px; gap: 12px; }
  .site-nav { position: static; }
  .nav-burger { display: inline-flex; flex-direction: column; gap: 4px; padding: 10px; cursor: pointer; margin-left: auto; }
  .nav-burger span { width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
  .header-brand .nav-burger { color: var(--on-brand); }
  .site-nav ul { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; padding: 8px 16px 14px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .header-brand .site-nav ul { background: var(--brand); }
  .site-header { position: relative; }
  .is-sticky .site-header { position: sticky; }
  .nav-toggle:checked ~ ul { display: flex; }
  .header-centered .header-inner { flex-direction: row; padding: 0; }
  .header-centered .brand { flex-direction: row; text-align: left; }
  .header-centered .brand-text { align-items: flex-start; }
  .header-centered .site-nav { margin-left: auto; }
  .hero { padding: 24px 0 16px; }
  .hero-image { aspect-ratio: 4 / 3; }
  .hero-image .hero-text { padding: 20px; }
  .cards-list .card { flex-direction: column; gap: 0; }
  .cards-list .card-media { flex: none; width: 100%; }
  .author-hero { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 680px) {
  /* The current page's name is already the H1 below: keep the breadcrumb to one line. */
  .breadcrumb ol { flex-wrap: nowrap; }
  .breadcrumb li { white-space: nowrap; }
  .breadcrumb li:last-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}

/* Destination button on articles (theme options › ปุ่มไปลิงก์ปลายทาง): a card in the article and a bottom bar. */
.cta-box { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px 16px; margin: 28px 0; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line)); border-radius: calc(var(--radius, 12px) + 4px); background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 11%, var(--bg)) 0%, color-mix(in srgb, var(--brand) 3%, var(--bg)) 60%); box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px -12px color-mix(in srgb, var(--brand) 45%, transparent); overflow: hidden; }
.cta-box::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%); pointer-events: none; }
.cta-badge { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--brand) 70%, transparent); }
.cta-badge svg { width: 22px; height: 22px; fill: currentColor; }
.cta-copy { display: grid; gap: 2px; min-width: 0; position: relative; z-index: 1; }
.cta-copy strong { font-size: 1.04rem; font-weight: 700; line-height: 1.45; color: var(--text); }
.cta-copy small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cta-btn { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--brand); color: var(--on-brand, #fff) !important; text-decoration: none !important; font-weight: 700; font-size: 15.5px; white-space: nowrap; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--brand) 75%, transparent); transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.cta-btn:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 12px 22px -10px color-mix(in srgb, var(--brand) 80%, transparent); }
.cta-btn:active { transform: translateY(0); }
.cta-btn:focus-visible, .nav-cta:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.cta-arrow { width: 18px; height: 18px; flex: none; transition: transform .15s ease; }
.cta-btn:hover .cta-arrow { transform: translateX(3px); }
.cta-end { margin-top: 36px; }
@media (max-width: 600px) {
  .cta-box { grid-template-columns: auto 1fr; padding: 16px; }
  .cta-box .cta-btn { grid-column: 1 / -1; width: 100%; min-height: 50px; font-size: 16px; }
  .cta-badge { width: 42px; height: 42px; border-radius: 12px; }
}

.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) 14px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -8px 28px rgb(0 0 0 / .1); animation: cta-up .45s cubic-bezier(.2, .8, .2, 1) .2s both; }
@keyframes cta-up { from { translate: 0 130%; } }
.cta-bar .cta-badge { width: 40px; height: 40px; border-radius: 11px; }
.cta-bar .cta-badge svg { width: 19px; height: 19px; }
.cta-bar-logo { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; flex: none; }
.cta-bar .cta-copy { flex: 1; }
.cta-bar .cta-copy strong { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cta-bar .cta-copy small { font-size: 12px; }
.cta-bar .cta-btn { min-height: 42px; padding: 0 16px; font-size: 14.5px; }
.cta-bar .cta-arrow { width: 16px; height: 16px; }
.cta-bar-close { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.cta-bar-close svg { width: 16px; height: 16px; }
.cta-bar-close:hover { background: color-mix(in srgb, var(--text, #000) 8%, transparent); color: var(--text); }
@media (max-width: 420px) { .cta-bar .cta-copy small { display: none; } .cta-bar .cta-arrow { display: none; } }
@media (min-width: 900px) {
  .cta-bar { left: 50%; right: auto; bottom: 20px; width: min(720px, calc(100% - 40px)); padding: 8px 8px 8px 10px; border: 1px solid var(--line); border-radius: 999px; transform: translateX(-50%); box-shadow: 0 18px 40px -12px rgb(0 0 0 / .25); }
  .cta-bar .cta-badge, .cta-bar-logo { border-radius: 50%; }
}
@media (prefers-reduced-motion: reduce) { .cta-bar, .cta-btn, .cta-arrow { transition: none; animation: none; } }
body:has(.cta-bar.is-shown) { padding-bottom: 76px; }

/* Destination button in the header, every page (App theme styles its own in app.css). */
.nav-cta { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--brand); color: var(--on-brand) !important; text-decoration: none; font-weight: 700; font-size: 14.5px; white-space: nowrap; flex: none; box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--brand) 80%, transparent); transition: filter .15s, transform .15s, box-shadow .15s; }
.nav-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.nav-cta svg { width: 16px; height: 16px; fill: none; flex: none; }
.nav-cta svg path[d^="M5 3.5"] { fill: currentColor; }
.header-inner > .brand + .nav-cta { margin-left: auto; }
.header-brand .nav-cta { background: var(--on-brand); color: var(--brand) !important; }
.header-centered .nav-cta { margin-top: 4px; }
@media (max-width: 720px) {
  .header-inner > .brand { flex: 1 1 auto; }
  .header-inner > .brand .brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-cta { min-height: 36px; padding: 0 12px; font-size: 13.5px; gap: 5px; }
  .nav-cta svg { width: 14px; height: 14px; }
}
