:root {
    --bg: #0f1115;
    --surface: #161922;
    --surface-2: #1e222d;
    --border: #2a2f3d;
    --text: #e7e9ee;
    --text-muted: #9aa1b2;
    --primary: #5b8def;
    --primary-hover: #4877d6;
    --danger: #e55b5b;
    --danger-hover: #cf4b4b;
    --success: #4caf7c;
    --radius: 8px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[hidden] {
    display: none !important;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
    background: var(--surface-2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Top nav ---------- */
.topnav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.topnav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
}
.brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}
.brand:hover { text-decoration: none; opacity: 0.85; }
.topnav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ---------- Page layout ---------- */
main.container { padding-top: 28px; padding-bottom: 60px; }

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}
.page-header h1 { margin: 0; font-size: 1.5rem; }
.page-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.breadcrumb { margin: 0 0 6px; }
.muted { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 9px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.92rem;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover { background: #262b39; text-decoration: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-ghost { background: transparent; }
.btn-small { padding: 7px 12px; font-size: 0.85rem; }
.btn-tiny { padding: 4px 10px; font-size: 0.8rem; }
.btn-rounded { border-radius: 999px; }

/* ---------- Auth page ---------- */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}
.auth-card {
    width: 100%;
    max-width: 380px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
}
.auth-card h1 { margin: 0 0 6px; font-size: 1.4rem; }
.auth-card form { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.auth-card label { font-size: 0.85rem; color: var(--text-muted); margin-top: 10px; }
.auth-card button { margin-top: 20px; }
.btn-cancel { display: block; text-align: center; margin-top: 10px; }

/* Wider card + label-left rows, used by the registration form */
.auth-card-wide { max-width: 520px; }
.profile-card {
    max-width: 640px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
}
.profile-card form { display: flex; flex-direction: column; gap: 6px; }
.profile-card button[type="submit"] { margin-top: 20px; }

/* ---------- Services list ---------- */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.service-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
}
.service-row-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-row-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}
.service-row-info { flex: 1; min-width: 0; }
.service-row-name { font-weight: 600; }
.service-row-blurb {
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.service-row-actions { flex-shrink: 0; }

/* ---------- Logo upload field ---------- */
.logo-upload-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.logo-preview {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.logo-remove-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.logo-remove-check input { width: auto; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.icon-field-label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

/* ---------- Public service detail page ---------- */
.service-detail-page { padding-top: 28px; padding-bottom: 60px; max-width: 640px; }
.service-detail-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
}
.service-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.service-detail-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.service-detail-header h1 { margin: 0 0 4px; font-size: 1.4rem; }
.service-detail-blurb { margin: 0; color: var(--text-muted); }
.service-detail-body { margin: 18px 0; line-height: 1.7; }
.service-detail-body p { margin: 0 0 12px; }
.service-detail-body img { max-width: 100%; height: auto; border-radius: 6px; margin: 8px 0; }
.service-detail-body ul, .service-detail-body ol { margin: 0 0 12px 20px; padding: 0; }
.service-detail-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.service-detail-npo { margin: 16px 0 0; font-size: 0.82rem; }

/* ---------- Rich text editor (longblurb) ---------- */
.richtext-field { flex: 1; }
.richtext-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 6px;
}
.richtext-btn {
    background: none;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--text);
    font-size: 0.78rem;
    padding: 4px 8px;
    cursor: pointer;
    font-family: inherit;
}
.richtext-btn:hover {
    background: var(--surface);
    border-color: var(--border);
}
.richtext-sep {
    width: 1px;
    height: 18px;
    background: var(--border);
    margin: 0 4px;
}
.richtext-editor {
    min-height: 120px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 10px 12px;
    font-size: 0.95rem;
    line-height: 1.6;
}
.richtext-editor:focus { outline: none; border-color: var(--primary); }
.richtext-editor ul, .richtext-editor ol { margin: 0 0 0 20px; padding: 0; }
.richtext-editor p { margin: 0 0 8px; }
.richtext-editor a { color: var(--primary); }
.richtext-editor img { max-width: 100%; border-radius: 4px; }
.richtext-size {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-size: 0.78rem;
    padding: 4px 6px;
}
.richtext-color {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: none;
    cursor: pointer;
}
.form-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
}
.form-row label {
    flex: 0 0 150px;
    margin-top: 0;
    text-align: right;
}
.form-row input,
.form-row textarea {
    flex: 1;
    margin-top: 0;
}
.form-row.form-row-textarea {
    align-items: flex-start;
}
.form-row.form-row-textarea label {
    margin-top: 9px;
}
.form-row.form-row-nolabel input {
    width: 100%;
}
.whatsapp-verify-box {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    margin-top: 10px;
}
.whatsapp-verify-code {
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: var(--primary);
}

/* ---------- Legal pages (privacy policy) ---------- */
.legal-page { padding-top: 28px; padding-bottom: 60px; max-width: 720px; }
.legal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    line-height: 1.7;
}
.legal-card h1 { margin: 0 0 4px; font-size: 1.6rem; }
.legal-card h2 { font-size: 1.15rem; margin: 28px 0 10px; }
.legal-card h3 { font-size: 1rem; margin: 18px 0 8px; }
.legal-card p { margin: 0 0 14px; }
.legal-card ul { margin: 0 0 14px; padding-left: 22px; }
.legal-card li { margin-bottom: 6px; }
.legal-card a { color: var(--primary); }
.landing-footer-links {
    text-align: center;
    margin-top: 40px;
    font-size: 0.8rem;
}

.info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    font-size: 0.68rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
    font-family: inherit;
}
.info-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.info-popover {
    margin: 6px 0 0 164px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 340px;
}
@media (max-width: 520px) {
    .info-popover { margin-left: 0; max-width: none; }
}
.form-address-group {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 16px 4px;
    margin-top: 16px;
}
.form-address-group legend {
    padding: 0 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
@media (max-width: 520px) {
    .form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .form-row label {
        flex: none;
        text-align: left;
    }
}

input[type="text"], input[type="password"], input[type="number"],
input[type="email"], input[type="date"], input[type="datetime-local"], textarea, select {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius);
    padding: 9px 12px;
    font-size: 0.95rem;
    font-family: var(--font);
    width: 100%;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
}

.alert {
    padding: 12px 14px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 0.9rem;
}
.alert-error { background: rgba(229, 91, 91, 0.12); border: 1px solid rgba(229, 91, 91, 0.4); color: #ff9d9d; }
.alert-warning { background: rgba(229, 180, 91, 0.12); border: 1px solid rgba(229, 180, 91, 0.4); color: #f0c27b; }
.alert-success { background: rgba(76, 175, 124, 0.12); border: 1px solid rgba(76, 175, 124, 0.4); color: #7fdcae; }

/* ---------- Table grid (dashboard) ---------- */
.table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}
.table-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    color: var(--text);
    transition: border-color 0.15s, transform 0.15s;
}
.table-card:hover {
    border-color: var(--primary);
    text-decoration: none;
    transform: translateY(-2px);
}
.table-card-icon { font-size: 1.4rem; margin-bottom: 8px; }
.table-card-name { font-weight: 600; word-break: break-word; }
.table-card-rows { color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; }

/* ---------- Data table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 0.88rem; }
.data-table th, .data-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.data-table th {
    background: var(--surface-2);
    font-weight: 600;
    position: sticky;
    top: 0;
}
.col-type { display: block; color: var(--text-muted); font-weight: 400; font-size: 0.72rem; }
.pk-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
}
.null-val { color: var(--text-muted); font-style: italic; }
.actions-col { white-space: nowrap; }
.actions-col .btn { margin-right: 6px; }

.search-form { display: flex; gap: 8px; align-items: center; }
.search-form input { width: 220px; }

.empty-state {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 10px;
}
.pagination-links { display: flex; align-items: center; gap: 10px; }

/* ---------- Modal ---------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    overflow-y: auto;
    z-index: 100;
}
.modal-backdrop[hidden] { display: none; }
.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 100%;
    max-width: 520px;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.modal-header h2 { margin: 0; font-size: 1.1rem; }
.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}
.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; max-height: 60vh; overflow-y: auto; }
.field-group label { display: block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 4px; }
.field-hint { font-size: 0.72rem; color: var(--text-muted); margin-top: 3px; }
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
}
.form-error { color: #ff9d9d; font-size: 0.85rem; margin-right: auto; }

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-left: 4px solid var(--success);
    border-radius: var(--radius);
    padding: 12px 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    z-index: 200;
    animation: toast-in 0.2s ease-out;
}
.toast.toast-error { border-left-color: var(--danger); }
@keyframes toast-in {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ---------- Relationship editor (service <-> category) ---------- */
.rel-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 16px;
    align-items: start;
}
@media (max-width: 720px) {
    .rel-layout { grid-template-columns: 1fr; }
}
.rel-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.rel-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}
.rel-panel-header h2 { margin: 0; font-size: 1rem; }
.rel-panel-header input[type="text"] { width: 140px; padding: 6px 10px; font-size: 0.85rem; }

.rel-list {
    list-style: none;
    margin: 0;
    padding: 6px;
    max-height: 560px;
    overflow-y: auto;
}
.rel-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-radius: 6px;
    color: var(--text);
    padding: 10px 12px;
    font-size: 0.9rem;
    cursor: pointer;
}
.rel-item:hover { background: var(--surface-2); }
.rel-item.active { background: var(--primary); color: #fff; }
.rel-item-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel-item-count {
    flex-shrink: 0;
    background: var(--surface-2);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 0.72rem;
}
.rel-item.active .rel-item-count { background: rgba(255,255,255,0.25); color: #fff; }

.rel-categories { padding-bottom: 8px; }
#rel-placeholder { padding: 16px; margin: 0; }
.rel-checklist {
    list-style: none;
    margin: 0;
    padding: 10px 16px 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px 16px;
}
.rel-checklist.rel-loading { opacity: 0.5; pointer-events: none; }
.rel-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    padding: 4px 0;
    cursor: pointer;
}
.rel-checkbox input { width: auto; }

/* ---------- Landing page ---------- */
.landing-hero {
    padding-top: 80px;
    padding-bottom: 100px;
}
.landing-content { max-width: 720px; margin: 0 auto; text-align: center; }
.landing-content-wide { max-width: 900px; }
.landing-header-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-bottom: 6px;
}
.landing-heading-wrap {
    grid-column: 2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}
.landing-header-row .btn { flex-shrink: 0; grid-column: 3; justify-self: end; }
@media (max-width: 640px) {
    .landing-header-row {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .landing-heading-wrap { grid-column: 1; }
    .landing-header-row .btn { grid-column: 1; justify-self: center; }
}
.landing-content h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin: 0 0 18px;
}
.landing-logo-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 90px;
    width: auto;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}
.landing-heading-wrap h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    text-align: center;
}
.landing-lede {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0 auto 32px;
    max-width: 560px;
}
.landing-hero-image {
    margin: 0 auto 32px;
    max-width: 560px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}
.landing-hero-image img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
}
.landing-hero-image-credit {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 0.72rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    padding: 3px 9px;
    border-radius: 999px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
@media (max-width: 640px) {
    .landing-hero-image img { height: 220px; }
}
.landing-pages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 28px;
    max-width: 560px;
}
.landing-pages .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.category-btn-icon {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    font-size: 1em;
}
.landing-actions { margin-bottom: 70px; }
.landing-actions .btn { padding: 12px 26px; font-size: 1rem; }

.landing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: left;
}
.landing-feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: border-color 0.15s, transform 0.15s;
}
.landing-feature:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.landing-feature-link {
    display: block;
    width: 100%;
    color: var(--text);
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    text-align: inherit;
    cursor: pointer;
}
.landing-feature-link:hover { text-decoration: none; }
.landing-feature-heading-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.landing-feature-icon { font-size: 1.1rem; line-height: 1; }
.landing-feature h3 { margin: 0; font-size: 0.9rem; }
.landing-feature p { margin: 0; font-size: 0.9rem; }
.landing-feature-subcategories {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    text-align: left;
}
.subcategory-btn {
    font-size: 0.76rem;
    color: var(--text-muted);
    background: var(--surface-2);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 2px 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.subcategory-btn:hover,
.subcategory-btn.active {
    border-color: var(--primary);
    color: var(--text);
}
.services-panel {
    margin-top: 28px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: left;
}
.services-panel-heading {
    margin: 0 0 14px;
    font-size: 1rem;
}
.services-panel.is-loading { opacity: 0.6; }
.services-panel-empty,
.services-panel-error {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: left;
}
.service-card {
    background: var(--surface-2);
    border-radius: 6px;
    padding: 10px 12px;
    text-align: left;
    margin-bottom: 10px;
}
.service-card:last-child { margin-bottom: 0; }
.service-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}
.service-card-logo-slot {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-card-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 4px;
}
.service-card-name { font-weight: 600; font-size: 0.88rem; text-align: left; color: var(--text); text-decoration: none; }
a.service-card-name:hover { text-decoration: underline; }
.service-card-blurb { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; text-align: left; }
.service-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.78rem;
}
.service-card-links a { color: var(--primary); }

@media (max-width: 640px) {
    .landing-content h1 { font-size: 1.9rem; }
}
