:root {
    --service-shell: rgba(255, 255, 255, 0.84);
    --service-line: rgba(15, 118, 110, 0.16);
    --service-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    --service-page-bg: transparent;
}

body {
    min-height: 100vh;
    font-family: "Space Grotesk", "Noto Sans KR", sans-serif;
}

.service-page {
    max-width: 1160px;
    margin: 20px auto 0;
    padding: 6px;
    display: grid;
    gap: 18px;
    background: var(--service-page-bg);
    border-radius: 28px;
}

.card-shell {
    border: 1px solid var(--service-line);
    border-radius: 22px;
    background: var(--service-shell);
    box-shadow: var(--service-shadow);
}

.service-hero {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
    padding: 22px;
}

.service-eyebrow,
.section-kicker {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0f766e;
}

.service-hero h1,
.section-head h2,
.service-status h2 {
    margin-top: 8px;
    font-size: clamp(1.6rem, 2vw, 2.3rem);
    line-height: 1.1;
    color: #0f172a;
}

.service-desc {
    margin-top: 10px;
    max-width: 62ch;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #475569;
}

.service-hero-actions {
    display: grid;
    gap: 12px;
    align-content: start;
}

.service-search {
    width: 100%;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 16px;
    padding: 14px 16px;
    font: inherit;
    font-size: 0.96rem;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
}

.service-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-filter-btn {
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 999px;
    padding: 7px 12px;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.88);
    color: #0f766e;
    cursor: pointer;
}

.service-filter-btn.is-active {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(14, 165, 233, 0.16));
    border-color: rgba(14, 165, 233, 0.3);
    color: #0369a1;
}

.service-status {
    padding: 20px 22px;
}

.status-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.status-card {
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.8);
}

.status-label {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #0f766e;
    background: rgba(204, 251, 241, 0.8);
}

.status-card strong {
    display: block;
    margin-top: 10px;
    font-size: 1rem;
    color: #0f172a;
}

.status-card p {
    margin-top: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #475569;
}

.service-section {
    display: grid;
    gap: 14px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.service-count {
    color: #475569;
    font-size: 0.86rem;
    font-weight: 700;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.service-card {
    border: 1px solid var(--service-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    display: grid;
    gap: 12px;
}

.service-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
}

.service-card-category {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f766e;
}

.service-card h3 {
    margin-top: 6px;
    font-size: 1.05rem;
    color: #0f172a;
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.56;
    color: #475569;
}

.service-badge {
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #92400e;
    background: rgba(254, 243, 199, 0.86);
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.service-tag {
    border: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #0f766e;
    background: rgba(240, 253, 250, 0.82);
}

.service-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.service-link,
.service-link-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 10px 12px;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 800;
}

.service-link {
    color: #ffffff;
    background: linear-gradient(120deg, #0f766e, #0ea5e9);
}

.service-link-secondary {
    color: #0f766e;
    border: 1px solid rgba(15, 118, 110, 0.18);
    background: rgba(255, 255, 255, 0.9);
}

.service-empty {
    padding: 18px;
    border: 1px dashed rgba(15, 118, 110, 0.2);
    border-radius: 18px;
    text-align: center;
    color: #64748b;
}

.service-empty.is-hidden {
    display: none;
}

.service-footer {
    margin-top: 26px;
    padding: 18px 0;
    border-top: 1px solid rgba(15, 118, 110, 0.08);
    text-align: center;
    font-size: 0.9rem;
    color: #475569;
}

.service-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 18px;
}

body[data-theme="dark"] .card-shell,
body[data-theme="dark"] .status-card,
body[data-theme="dark"] .service-card,
body[data-theme="dark"] .service-search,
body[data-theme="dark"] .service-link-secondary {
    background: rgba(15, 23, 42, 0.84);
    border-color: rgba(100, 116, 139, 0.3);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.24);
}

body[data-theme="dark"] {
    --service-page-bg:
        radial-gradient(circle at 14% 18%, rgba(20, 184, 166, 0.08), transparent 28%),
        radial-gradient(circle at 86% 14%, rgba(59, 130, 246, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(2, 6, 23, 0.14));
    background-color: #0b1220;
}

body[data-theme="dark"] .service-hero h1,
body[data-theme="dark"] .section-head h2,
body[data-theme="dark"] .service-status h2,
body[data-theme="dark"] .status-card strong,
body[data-theme="dark"] .service-card h3 {
    color: #e5e7eb;
}

body[data-theme="dark"] .service-desc,
body[data-theme="dark"] .status-card p,
body[data-theme="dark"] .service-card p,
body[data-theme="dark"] .service-count,
body[data-theme="dark"] .service-empty,
body[data-theme="dark"] .service-footer {
    color: #94a3b8;
}

body[data-theme="dark"] .service-page {
    box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.12);
}

body[data-theme="dark"] .service-footer {
    border-top-color: rgba(100, 116, 139, 0.18);
}

body[data-theme="dark"] .service-search {
    color: #e5e7eb;
}

body[data-theme="dark"] .service-filter-btn,
body[data-theme="dark"] .service-tag,
body[data-theme="dark"] .service-link-secondary {
    color: #a5f3fc;
    background: rgba(15, 23, 42, 0.82);
}

body[data-theme="dark"] .service-filter-btn.is-active {
    background: rgba(12, 74, 110, 0.5);
    border-color: rgba(56, 189, 248, 0.28);
}

body[data-theme="dark"] .service-badge {
    color: #fde68a;
    background: rgba(120, 53, 15, 0.66);
}

body[data-theme="dark"] .status-label,
body[data-theme="dark"] .service-card-category,
body[data-theme="dark"] .service-eyebrow,
body[data-theme="dark"] .section-kicker {
    color: #99f6e4;
}

@media (max-width: 980px) {
    .service-hero,
    .status-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .service-page {
        margin-top: 16px;
    }

    .service-hero,
    .service-status,
    .service-card {
        padding: 16px;
    }
}