/* contact-core — NDFIS landing contact section and the staff inbox. Brand it with the tokens. */
:where(:root) {
  --ct-accent: #006a46;
  --ct-accent-dark: #00553a;
  --ct-accent-soft: #e6f4ee;
  --ct-ink: #111827;
  --ct-body: #4b5563;
  --ct-muted: #6b7280;
  --ct-line: #e5e7eb;
  --ct-card: #ffffff;
  --ct-bg: #f9fafb;
  --ct-radius: 1rem;
  --ct-font: inherit;
}
.ct-section, .ct-inbox { font-family: var(--ct-font); color: var(--ct-body); }
.ct-section *, .ct-inbox * { box-sizing: border-box; }
.ct-section h2, .ct-section h3, .ct-section h4, .ct-section p, .ct-inbox h1, .ct-inbox p { margin: 0; }
.ct-section { position: relative; padding: 4rem 0; background: linear-gradient(135deg, var(--ct-bg), #fff 50%, var(--ct-bg)); overflow: hidden; }
@media (min-width: 768px) { .ct-section { padding: 6rem 0; } }
.ct-section::before { content: ""; position: absolute; left: 50%; top: 50%; width: 24rem; height: 24rem; border-radius: 50%; background: var(--ct-accent); opacity: .08; filter: blur(64px); transform: translate(-50%, -50%); pointer-events: none; }
.ct-wrap { position: relative; max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .ct-wrap { padding: 0 1.5rem; } }
.ct-head { text-align: center; margin-bottom: 3rem; }
.ct-badge { display: inline-block; padding: .4rem 1.25rem; border-radius: 999px; background: var(--ct-accent-soft); border: 1px solid color-mix(in srgb, var(--ct-accent) 25%, transparent); color: var(--ct-accent); font-size: .8125rem; font-weight: 600; margin-bottom: 1.25rem; }
.ct-title { font-size: clamp(1.875rem, 4vw, 3rem); line-height: 1.15; font-weight: 800; color: var(--ct-ink); }
.ct-highlight { display: block; color: var(--ct-accent); margin-top: .25rem; }
.ct-subtitle { max-width: 42rem; margin: 1rem auto 0 !important; font-size: 1.0625rem; }
.ct-grid { display: grid; gap: 2rem; max-width: 72rem; margin: 0 auto; }
@media (min-width: 768px) { .ct-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.ct-channels { display: flex; flex-direction: column; gap: 1rem; }
.ct-h3 { font-size: 1.375rem; font-weight: 700; color: var(--ct-ink); margin-bottom: .75rem !important; }
.ct-muted { color: var(--ct-muted); font-size: .9375rem; }
.ct-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.5rem; background: var(--ct-card); border: 1px solid var(--ct-line); border-radius: var(--ct-radius); transition: box-shadow .2s, transform .2s; }
.ct-card:hover { box-shadow: 0 20px 40px -20px rgba(0,0,0,.25); transform: translateY(-1px); }
.ct-card h4 { font-size: .9375rem; font-weight: 600; color: var(--ct-ink); margin-bottom: .3rem; }
.ct-card a, .ct-card p { display: block; color: var(--ct-body); font-size: .875rem; text-decoration: none; }
.ct-card a:hover { color: var(--ct-accent); }
.ct-card .ct-wa { color: #128c7e; font-weight: 600; margin-top: .2rem; }
.ct-tile { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .875rem; background: var(--ct-accent); color: #fff; }
.ct-tile svg { width: 1.4rem; height: 1.4rem; }
.ct-form-card { background: var(--ct-card); border: 2px solid var(--ct-line); border-radius: calc(var(--ct-radius) + .25rem); box-shadow: 0 30px 60px -30px rgba(0,0,0,.3); padding: 1.5rem; }
@media (min-width: 768px) { .ct-form-card { padding: 2rem; } }
.ct-form { display: flex; flex-direction: column; gap: 1.1rem; }
.ct-field { display: flex; flex-direction: column; gap: .45rem; }
.ct-field > span { font-size: .875rem; font-weight: 600; color: var(--ct-ink); }
.ct-field em { font-style: normal; font-weight: 400; color: var(--ct-muted); }
.ct-field input, .ct-field textarea { width: 100%; padding: .75rem .9rem; border: 1px solid #d1d5db; border-radius: .65rem; background: #fff; color: var(--ct-ink); font: inherit; font-size: .9375rem; }
.ct-field input:focus, .ct-field textarea:focus { outline: none; border-color: var(--ct-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ct-accent) 18%, transparent); }
.ct-button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; padding: 1rem 1.5rem; border: 0; border-radius: 999px; background: var(--ct-accent); color: #fff; font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; box-shadow: 0 10px 20px -10px var(--ct-accent); transition: background .2s; }
.ct-button:hover { background: var(--ct-accent-dark); }
.ct-button-icon { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: .5rem; background: rgba(255,255,255,.2); }
.ct-button-icon svg { width: 1rem; height: 1rem; }
.ct-button--sm { width: auto; padding: .55rem 1rem; font-size: .875rem; box-shadow: none; }
.ct-button--ghost { background: #fff; color: var(--ct-ink); border: 1px solid var(--ct-line); }
.ct-button--ghost:hover { background: var(--ct-bg); }
.ct-alert { margin: 0 0 1rem; padding: .9rem 1rem; border-radius: .65rem; font-size: .875rem; }
.ct-alert--ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.ct-alert--bad { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* Inbox */
.ct-inbox h1 { font-size: 1.5rem; font-weight: 700; color: var(--ct-ink); }
.ct-inbox-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: flex-end; margin-bottom: 1.25rem; }
.ct-search input { min-width: 16rem; padding: .6rem .9rem; border: 1px solid #d1d5db; border-radius: .65rem; font: inherit; font-size: .875rem; }
.ct-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.ct-tabs a { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--ct-line); background: #fff; color: var(--ct-body); font-size: .8125rem; text-decoration: none; }
.ct-tabs a b { margin-left: .25rem; color: var(--ct-muted); font-weight: 600; }
.ct-tabs a.is-active { background: var(--ct-accent); border-color: var(--ct-accent); color: #fff; }
.ct-tabs a.is-active b { color: #fff; }
.ct-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--ct-line); border-radius: var(--ct-radius); }
.ct-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.ct-table th { text-align: left; padding: .75rem 1rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ct-muted); border-bottom: 1px solid var(--ct-line); background: var(--ct-bg); }
.ct-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--ct-line); vertical-align: top; }
.ct-table tr:last-child td { border-bottom: 0; }
.ct-table td small { display: block; color: var(--ct-muted); margin-top: .15rem; }
.ct-table tr.is-new td strong { color: var(--ct-ink); }
.ct-table tr.is-new td:first-child { box-shadow: inset 3px 0 0 var(--ct-accent); }
.ct-nowrap { white-space: nowrap; } .ct-right { text-align: right; } .ct-empty { text-align: center; padding: 3rem 1rem !important; color: var(--ct-muted); }
.ct-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ct-pill { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: #f3f4f6; color: #374151; }
.ct-pill--new { background: var(--ct-accent-soft); color: var(--ct-accent); }
.ct-pill--replied { background: #dbeafe; color: #1d4ed8; }
.ct-pill--archived { background: #f3f4f6; color: #6b7280; }
.ct-link { color: var(--ct-accent); font-weight: 600; text-decoration: none; }
.ct-link:hover { text-decoration: underline; }
.ct-pages { margin-top: 1rem; }
.ct-message { margin-top: 1rem; background: #fff; border: 1px solid var(--ct-line); border-radius: var(--ct-radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.ct-message-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.ct-meta { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 0; }
.ct-meta dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ct-muted); }
.ct-meta dd { margin: .2rem 0 0; color: var(--ct-ink); }
.ct-body { padding: 1rem 1.25rem; background: var(--ct-bg); border-radius: .75rem; line-height: 1.6; color: var(--ct-ink); white-space: normal; }
.ct-actions { display: flex; flex-direction: column; gap: .75rem; border-top: 1px solid var(--ct-line); padding-top: 1.25rem; }
.ct-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.ct-danger { border: 0; background: none; color: #b91c1c; font: inherit; font-size: .875rem; cursor: pointer; padding: 0; }
