/* ChatThem — shared components for inner pages (extends ct.css, the template4 design) */
.container { max-width: var(--site-w, 1400px); margin: 0 auto; padding: 0 40px; }
.container-narrow { max-width: var(--narrow-w, 980px); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section.alt { background: var(--cream); }
.logo { color: inherit; }
.btn-search { text-decoration: none; }

/* flash */
.flash { max-width: var(--site-w, 1400px); margin: 16px auto 0; padding: 12px 18px; border-radius: 3px; font-size: 14.5px; border: 1px solid; }
.flash i { margin-right: 6px; }
.flash-success { background: #eaf6ee; border-color: #b9dcc4; color: #1d5d33; }
.flash-error   { background: #fcecec; border-color: #efb9b9; color: #8b1f1f; }
.flash-info    { background: var(--gold-pale); border-color: var(--gold-light); color: #6b5518; }

/* page banner */
.page-banner { background: var(--navy-deep); color: #fff; padding: 56px 0 48px; position: relative; overflow: hidden; }
.page-banner::after { content: ''; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px; border: 1px solid rgba(196,161,74,.22); border-radius: 50%; }
.page-banner .kicker { color: var(--gold); font-size: 12px; letter-spacing: 2.5px; font-weight: 600; margin-bottom: 10px; text-transform: uppercase; }
.page-banner h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-banner, 46px); line-height: 1.1; }
.page-banner p { color: rgba(255,255,255,.7); margin-top: 12px; max-width: 640px; }

/* prose (CMS content) */
.prose { font-size: var(--fs-prose, 18px); line-height: var(--lh-body, 1.75); color: var(--ink-mid); }
.prose h2 { font-family: var(--font-display); font-size: calc(var(--fs-prose, 18px) * 1.8); color: var(--navy); margin: 36px 0 12px; font-weight: 600; }
.prose h3 { font-family: var(--font-display); font-size: 24px; color: var(--navy); margin: 28px 0 8px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--navy-mid); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose table { border-collapse: collapse; width: 100%; margin-bottom: 18px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.prose blockquote { border-left: 3px solid var(--gold); padding: 4px 18px; color: var(--ink-soft); margin: 18px 0; }

/* cards / grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--border); border-radius: 3px; padding: 24px; box-shadow: var(--shadow-sm); }
.card h3 { font-family: var(--font-display); font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.card .meta { font-size: 13px; color: var(--ink-soft); }
a.card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); }
.muted { color: var(--ink-soft); } .small { font-size: 13px; } .center { text-align: center; } .mt { margin-top: 24px; } .mb { margin-bottom: 24px; }

/* forms */
.form-card { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--gold); padding: 32px; box-shadow: var(--shadow-md); border-radius: 3px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-mid); margin-bottom: 6px; }
.field .hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel], .field input[type=number],
.field input[type=date], .field input[type=datetime-local], .field input[type=search], .field input[type=url], .field input[type=file],
.field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border-dark); border-radius: 3px; background: #fff; font-size: 15px; color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-mid); box-shadow: 0 0 0 3px rgba(37,70,112,.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14.5px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border: 1px solid var(--navy); background: var(--navy); color: #fff; font-size: 14.5px; font-weight: 500; cursor: pointer; border-radius: 3px; transition: all .2s; }
.btn:hover { background: var(--navy-mid); border-color: var(--navy-mid); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); } .btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-ghost { background: transparent; color: var(--navy); } .btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-danger { background: #a52a2a; border-color: #a52a2a; } .btn-danger:hover { background: #8b2222; border-color: #8b2222; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* tables */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: 3px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { background: var(--cream); text-align: left; font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--ink-soft); padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: #fcfaf5; }
.tbl a { color: var(--navy-mid); font-weight: 500; } .tbl a:hover { text-decoration: underline; }
.empty { padding: 40px 20px; text-align: center; color: var(--ink-soft); }
.empty i { font-size: 30px; color: var(--border-dark); display: block; margin-bottom: 10px; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600; letter-spacing: .3px; }
.badge-gray { background: #eceae4; color: #55524a; } .badge-blue { background: #e1ebf7; color: #1d4f91; } .badge-green { background: #e3f3e8; color: #1d6b3a; }
.badge-amber { background: #fbf0d6; color: #8a6200; } .badge-red { background: #f8e0e0; color: #9b2020; } .badge-navy { background: #dde5f0; color: #1a3352; }

.pager { display: flex; gap: 6px; justify-content: center; margin: 28px 0 0; flex-wrap: wrap; }
.pager a, .pager span { padding: 6px 12px; border: 1px solid var(--border-dark); font-size: 13.5px; border-radius: 3px; background: #fff; }
.pager a:hover { border-color: var(--navy); } .pager .cur { background: var(--navy); border-color: var(--navy); color: #fff; }

.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin-bottom: 22px; background: #fff; padding: 16px; border: 1px solid var(--border); border-radius: 3px; }
.filter-bar .field { margin: 0; flex: 1; min-width: 160px; }

.kv { display: grid; grid-template-columns: 180px 1fr; gap: 10px 18px; font-size: 14.5px; }
.kv dt { color: var(--ink-soft); font-size: 13px; text-transform: uppercase; letter-spacing: .6px; padding-top: 2px; }

.timeline { list-style: none; border-left: 2px solid var(--border); margin-left: 8px; padding-left: 22px; }
.timeline li { position: relative; margin-bottom: 18px; }
.timeline li::before { content: ''; position: absolute; left: -29px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--gold); }
.timeline .when { font-size: 12.5px; color: var(--ink-soft); }

.notice-box { background: var(--gold-pale); border: 1px solid var(--gold-light); border-left: 4px solid var(--gold); padding: 14px 18px; font-size: 14px; color: #5f4a14; border-radius: 3px; margin-bottom: 20px; }

/* tabs (search card) */
.tab-panel { display: none; } .tab-panel.active { display: block; }
.search-card form { display: block; }
.search-card select.search-input { appearance: auto; }
.search-submit { cursor: pointer; }

/* mobile nav */
.mobile-nav { display: none; background: #fff; border-top: 1px solid var(--border); max-height: calc(100vh - 80px); overflow-y: auto; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 11px 24px; font-size: 15px; border-bottom: 1px solid var(--border); }
.mobile-nav .mn-top { font-weight: 600; color: var(--navy); background: var(--cream); }
.mobile-nav .mn-sub { padding-left: 40px; color: var(--ink-mid); font-size: 14px; }
.btn-search { display: flex; align-items: center; justify-content: center; }
body.high-contrast .page-banner, body.high-contrast .top-bar { background: #000; }

/* chat */
.chat-body { overflow-y: auto; }
.chat-bubble.visitor { background: var(--navy); color: #fff; margin-left: 32px; }
.chat-bubble.agent { margin-right: 24px; }
.chat-input-row { margin: 0; }

.stat-box { text-align: center; padding: 22px; } .stat-box b { display: block; font-family: var(--font-display); font-size: 40px; color: var(--navy); line-height: 1; }
.verify-ok { border-left: 4px solid #2e8b57; } .verify-bad { border-left: 4px solid #b03030; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .container { padding: 0 20px; }
  .page-banner h1 { font-size: 34px; } .field-row { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dt { padding-top: 10px; }
}
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }


/* ── Subtle motion ─────────────────────────────────────────── */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageIn .45s ease both; }
a, button, input, select, textarea { transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .25s ease, transform .2s ease, opacity .2s ease; }
.js-rv { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rv-d, 0ms); will-change: opacity, transform; }
.js-rv.is-in { opacity: 1; transform: none; will-change: auto; }
.btn:hover, .search-submit:hover, .hero-btn:hover, button.btn:hover { transform: translateY(-1px); }
.ql-card, .news-item, .struct-card, .feature-card { transition: border-color .25s ease, box-shadow .3s ease, transform .3s ease, background-color .25s ease; }
.ql-card:hover, .struct-card:hover, .feature-card:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { body { animation: none; } .js-rv { opacity: 1; transform: none; transition: none; } * { scroll-behavior: auto !important; } }

/* Prose reads better a little larger; keep body copy at a comfortable line length */
.prose p, .prose li { max-width: 78ch; } .container-narrow .prose { max-width: none; }
@media (max-width: 900px) { .prose { font-size: calc(var(--fs-prose, 18px) - 1px); } }

/* Phosphor sizing on the public site */
.empty i { font-size: 38px; }
.social-btn i { font-size: 1.15em; }
.official-badge i, .top-links i { font-size: 17px; }
.btn-primary i, .btn-secondary i, .btn-outline i { font-size: 18px; }
.search-field i { font-size: 19px; }
.nav-link i { font-size: 12px; opacity: .7; }
.a11y-icon-btn i, .btn-search i { font-size: 19px; }
.footer-location i { font-size: 17px; }
.top-links .top-search { display: inline-flex; align-items: center; gap: 6px; }
.top-links .top-search i { font-size: 16px; }
/* Search now lives in the top bar; the actions slot only holds the mobile menu button */
.nav-actions { border-left: 0; padding-left: 0; margin-left: 0; }
@media (min-width: 1101px) { .nav-actions { display: none; } }
