/* Ergus: shared visual identity for public pages and account workflows. */
:root {
    --ergus-forest: #23594b;
    --ergus-ink: #183d34;
    --ergus-clay: #b54c32;
    --ergus-paper: #f7f6f0;
    --ergus-line: #dde3da;
    --bs-primary-rgb: 35, 89, 75;
    --bs-success-rgb: 35, 89, 75;
    --bs-link-color: #23594b;
    --bs-link-hover-color: #163e33;
    --bs-body-color: #273e36;
    --bs-border-color: var(--ergus-line);
}
body { background: var(--ergus-paper); color: var(--bs-body-color); }
h1, h2, h3, h4, .navbar-brand { font-family: 'Manrope', sans-serif; color: var(--ergus-ink); font-weight: 800; letter-spacing: -.035em; }
a { text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--ergus-clay); outline-offset: 4px; }
.navbar { padding: 1rem 0; border-bottom: 1px solid var(--ergus-line); box-shadow: none !important; }
.navbar-brand { font-size: 1.8rem; letter-spacing: -.065em; }
.brand-dot { color: var(--ergus-clay); }
.brand-logo-img { width: 2.4rem; height: 2.4rem; margin-right: .6rem; }
.nav-link { font-size: .9rem; font-weight: 600; color: #40544b; border-radius: .5rem; }
.nav-link:hover { color: var(--ergus-forest); background: #eef3ec; }
.brand-color, .text-primary { color: var(--ergus-forest) !important; }
.btn { border-radius: .65rem; font-weight: 600; padding: .65rem 1.1rem; transition: background-color .15s, box-shadow .15s; }
.btn-sm { padding: .4rem .7rem; }
.btn-primary, .btn-success {
    --bs-btn-bg: #23594b; --bs-btn-border-color: #23594b;
    --bs-btn-hover-bg: #183d34; --bs-btn-hover-border-color: #183d34;
    --bs-btn-active-bg: #123027; --bs-btn-active-border-color: #123027;
    --bs-btn-disabled-bg: #23594b; --bs-btn-disabled-border-color: #23594b;
    --bs-btn-focus-shadow-rgb: 35, 89, 75;
}
.btn-outline-primary, .btn-outline-success {
    --bs-btn-color: #23594b; --bs-btn-border-color: #23594b;
    --bs-btn-hover-bg: #23594b; --bs-btn-hover-border-color: #23594b;
    --bs-btn-active-bg: #183d34; --bs-btn-active-border-color: #183d34;
    --bs-btn-disabled-color: #23594b; --bs-btn-disabled-border-color: #23594b;
    --bs-btn-focus-shadow-rgb: 35, 89, 75;
}
.form-control, .form-select, .choices__inner { border-color: #ccd6cc; border-radius: .6rem; }
.form-control:focus, .form-select:focus { border-color: #23594b; box-shadow: 0 0 0 .2rem rgb(35 89 75 / 15%); }
.form-check-input:checked, .page-item.active .page-link { background-color: #23594b; border-color: #23594b; }
.page-link { color: #23594b; }
.card, .publish-panel, .feature-card, .mobile-table-card, .modal-content { border-color: var(--ergus-line); border-radius: 1rem; }
.card, .publish-panel { box-shadow: 0 6px 24px rgb(24 61 52 / 4%); }
.icon-badge { background: #e7eee3; color: var(--ergus-forest); border-radius: .8rem; }
.hero-kicker { color: var(--ergus-forest); background: #eaf0e4; font-size: .8rem; letter-spacing: .04em; padding: .5rem .8rem; }
.ergus-home { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3.5rem; align-items: center; padding: 4.5rem 0 3rem; }
.ergus-home h1 { font-size: clamp(2.5rem, 4.8vw, 4.4rem); line-height: 1.08; margin-bottom: 1.5rem; }
.ergus-home h1 span { color: var(--ergus-clay); }
.ergus-home .hero-description { color: #536359; font-size: 1.1rem; line-height: 1.8; max-width: 36rem; }
.ergus-home .page-actions { justify-content: flex-start; margin-top: 1.75rem; }
.ergus-home .home-trust-list { justify-content: flex-start; margin-top: 1.5rem; font-size: .8rem; gap: 1rem; }
.ergus-service-board { background: #e9eddf; border: 1px solid #dbe2d3; border-radius: 1.5rem; padding: 2rem; }
.board-heading { display: flex; gap: 1rem; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.board-heading p { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .3rem; }
.board-heading h2 { font-size: 1.55rem; margin: 0; }
.board-symbol { flex-shrink: 0; font-size: 2rem; color: var(--ergus-clay); }
.service-tile { display: flex; align-items: center; gap: 1rem; padding: 1.1rem; margin-top: .8rem; background: #fffefa; border: 1px solid #dce3d7; border-radius: .85rem; text-decoration: none; color: var(--ergus-ink); }
.service-tile:hover { background: #f5f7ed; border-color: #23594b; }
.service-tile .icon-badge { margin: 0; flex-shrink: 0; }
.service-tile strong { display: block; font-size: .98rem; }
.service-tile small { color: #59665d; }
.service-tile > .bi-arrow-up-right { margin-left: auto; }
.board-note { font-size: .8rem; margin: 1.25rem 0 0; color: #536359; }
.ergus-section { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--ergus-line); }
.ergus-section-label { color: var(--ergus-clay); text-transform: uppercase; font-size: .75rem; letter-spacing: .12em; font-weight: 700; }
.home-feature-grid > div { text-align: left; padding: 1.5rem; }
.home-feature-grid h3 { font-size: 1.15rem; margin-top: 1rem; }
.home-feature-grid p { color: #536359; line-height: 1.7; }
.step-number { color: var(--ergus-clay); font-family: 'Manrope', sans-serif; font-weight: 800; font-size: .9rem; }
.ergus-publish-banner { background: var(--ergus-ink); border-radius: 1rem; color: #eef3e8; padding: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 2rem; }
.ergus-publish-banner h2 { color: #fff; font-size: 1.5rem; }
.ergus-publish-banner p { margin: 0; color: #d5e0d6; }
.ergus-publish-banner .btn { background: #edf2d8; color: #183d34; white-space: nowrap; }
footer { background: #eaece3; color: #40544b; padding: 1.7rem 1rem; border-top: 1px solid var(--ergus-line); }
@media (max-width: 991.98px) {
    .ergus-home { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0; }
    .ergus-home .hero-description { max-width: 100%; }
    .ergus-service-board { padding: 1.5rem; }
}
@media (max-width: 575.98px) {
    .ergus-home h1 { font-size: 2.65rem; }
    .board-heading h2 { font-size: 1.25rem; }
    .ergus-home .page-actions { display: grid; }
    .ergus-home .btn-lg { margin-bottom: 0; }
    .ergus-service-board { padding: 1.2rem; }
    .ergus-publish-banner { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
    .home-feature-grid > div { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
