:root {
    color-scheme: light;
    --page-background: #dedcd2;
    --surface: #dedcd2;
    --surface-soft: #dedcd2;
    --surface-hover: #dedcd2;
    --surface-raised: #dedcd2;
    --text-primary: #89573f;
    --text-secondary: #646b76;
    --text-tertiary: #817f79;
    --border: #dedcd2;
    --border-strong: #dedcd2;
    --accent: #0f7e89;
    --accent-soft: #dedcd2;
    --success: #0f7e89;
    --success-soft: #dedcd2;
    --warning: #ba9259;
    --warning-soft: #dedcd2;
    --danger: #ae4149;
    --danger-soft: #dedcd2;
    --brand-ulsan: #0f7e89;
    --brand-ulsan-soft: #dedcd2;
    --brand-now: #89573f;
    --header-background: #dedcd2;
    --shadow-floated: 0 12px 32px #bcbbb2;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --page-background: #89573f;
    --surface: #89573f;
    --surface-soft: #89573f;
    --surface-hover: #89573f;
    --surface-raised: #89573f;
    --text-primary: #dedcd2;
    --text-secondary: #bcbbb2;
    --text-tertiary: #817f79;
    --border: #89573f;
    --border-strong: #646b76;
    --accent: #0f7e89;
    --accent-soft: #dedcd2;
    --success: #637d6b;
    --success-soft: #dedcd2;
    --warning: #ba9259;
    --warning-soft: #dedcd2;
    --danger: #ba9259;
    --danger-soft: #dedcd2;
    --brand-ulsan: #0f7e89;
    --brand-ulsan-soft: #bcbbb2;
    --brand-now: #dedcd2;
    --header-background: #89573f;
    --shadow-floated: 0 16px 42px #817f79;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 0;
    overflow-x: clip;
    background: var(--page-background);
    scroll-behavior: smooth;
}

body {
    min-width: 0;
    min-height: 100vh;
    margin: 0;
    overflow-x: clip;
    color: var(--text-primary);
    background: var(--page-background);
    font-family: Pretendard, -apple-system, BlinkMacSystemFont,
        "Segoe UI", "Noto Sans KR", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
summary {
    -webkit-tap-highlight-color: transparent;
}

svg {
    display: block;
}

[hidden] {
    display: none !important;
}

.top-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: var(--header-background);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.top-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1080px, calc(100% - 40px));
    height: 64px;
    margin: 0 auto;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-symbol {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 12px;
    background: var(--brand-ulsan-soft);
    box-shadow: inset 0 0 0 1px #bcbbb2;
}

.brand-random-icon {
    display: block;
    font-family: "Apple Color Emoji", "Segoe UI Emoji",
        "Noto Color Emoji", sans-serif;
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1;
    transform: translateY(1px);
    user-select: none;
}

.brand-name {
    font-size: 1rem;
}

.brand-ulsan,
.heading-ulsan,
.home-title-ulsan {
    color: var(--brand-ulsan);
}

.heading-now,
.home-title-now {
    color: var(--brand-now);
}

.brand-heading .heading-ulsan {
    margin-inline: 0.04em;
}

.region-heading-toggle {
    color: var(--brand-ulsan);
    text-decoration: none;
    border-bottom: 0.08em dashed currentColor;
    cursor: pointer;
}

.region-heading-toggle:hover,
.region-heading-toggle:focus-visible {
    opacity: 0.72;
}

.top-actions {
    display: flex;
    align-items: center;
}

.theme-button {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: var(--text-secondary);
    background: var(--surface-soft);
    cursor: pointer;
}

.theme-button:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
}

.theme-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-icon-moon,
html[data-theme="dark"] .theme-icon-sun {
    display: none;
}

html[data-theme="dark"] .theme-icon-moon {
    display: block;
}

.page-container {
    width: min(1080px, calc(100% - 40px));
    min-height: calc(100vh - 180px);
    margin: 0 auto;
}

.page-heading {
    max-width: 840px;
    padding: 16px 0;
}

/* Keep every page title aligned with the shared content edge. */
.page-container > .page-heading {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
}

.back-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0 0 16px -10px;
    padding: 0 10px;
    color: var(--text-secondary);
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 700;
}

.back-link:hover {
    color: var(--accent);
    background: var(--surface-soft);
}

.page-eyebrow {
    display: none;
}

.page-heading h1 {
    margin: 0;
    font-size: clamp(2.25rem, 6vw, 3.25rem);
    line-height: 1.16;
    letter-spacing: -0.055em;
}

.page-description {
    max-width: 640px;
    margin: 14px 0 0;
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.65;
    letter-spacing: -0.015em;
}

.notice {
    margin: 0 0 20px;
    padding: 15px 18px;
    border-radius: 14px;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.notice-warning {
    color: var(--warning);
    background: var(--warning-soft);
}

.empty-state,
.no-search-result {
    display: grid;
    place-items: center;
    min-height: 320px;
    padding: 16px 20px;
    border-radius: 24px;
    background: var(--surface-soft);
    text-align: center;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    color: var(--danger);
    background: var(--danger-soft);
    font-size: 1.25rem;
    font-weight: 800;
}

.empty-state h2,
.no-search-result h2 {
    margin: 18px 0 0;
    font-size: 1.25rem;
    letter-spacing: -0.035em;
}

.empty-state p,
.no-search-result p {
    margin: 6px 0 0;
    color: var(--text-secondary);
}

.data-source {
    margin: 16px 0 0;
    color: var(--text-tertiary);
    font-size: 0.8125rem;
    line-height: 1.6;
    text-align: right;
}

.page-source-footer {
    display: grid;
    gap: 6px;
    margin-top: 16px;
}

.page-source-footer .data-source {
    margin: 0;
}

.site-footer {
    width: min(1080px, calc(100% - 40px));
    margin: 16px auto 0;
    padding: 16px 0 16px;
    border-top: 1px solid var(--border);
    color: var(--text-tertiary);
    font-size: 0.8125rem;
}

.site-footer p {
    margin: 3px 0;
}

.footer-brand {
    color: var(--text-secondary);
    font-weight: 800;
}

@media (max-width: 700px) {
    .top-header-inner,
    .page-container,
    .site-footer {
        width: min(100% - 32px, 1080px);
    }

    .top-header-inner {
        height: 60px;
    }

    .brand-symbol {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .brand-name {
        font-size: 0.9375rem;
    }

    .page-heading {
        padding: 20px 0;
    }

    .back-link {
        margin-bottom: 18px;
    }

    .page-heading h1 {
        font-size: clamp(2rem, 10vw, 2.65rem);
    }

    .page-description {
        margin-top: 10px;
        font-size: 1rem;
    }

    .data-source {
        text-align: left;
    }

    .site-footer {
        margin-top: 16px;
    }
}

@media (max-width: 360px) {
    .top-header-inner,
    .page-container,
    .site-footer {
        width: min(100% - 24px, 1080px);
    }

    .brand-name {
        font-size: 0.875rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Inline alignment 1.0.0 */
.brand-link,.back-link{line-height:20px}.brand-link svg,.back-link svg{display:block;flex-shrink:0}
