@charset "UTF-8";

/**
 * State picker — layout aligned with teach-page funnel
 */

body.page-state .state-main.contents {
    margin-top: 24px;
    margin-bottom: 48px;
    height: auto !important;
    min-height: 0 !important;
}

body.page-state .state-content.detail-left {
    height: auto !important;
}

/* Page header — eye-catching hero banner */
body.page-state .state-page-head {
    position: static;
    top: auto;
    z-index: auto;
    display: block;
    width: auto;
    min-height: 0;
    isolation: isolate;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
    border-radius: 20px;
    padding: 0;
    margin-bottom: 24px;
    box-shadow:
        0 4px 8px rgba(17, 115, 235, 0.05),
        0 20px 48px rgba(17, 115, 235, 0.14);
    border: 1px solid rgba(17, 115, 235, 0.14);
    overflow: hidden;
}

body.page-state .state-page-head__crumbs {
    margin: 0;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(17, 115, 235, 0.08);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

body.page-state .state-page-head__crumbs::-webkit-scrollbar {
    display: none;
}

body.page-state .state-page-head__banner {
    position: relative;
    padding: 28px 28px 32px;
    background: linear-gradient(
        135deg,
        #eef4ff 0%,
        #ffffff 42%,
        #f4f9ff 100%
    );
    overflow: hidden;
}

body.page-state .state-page-head__glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

body.page-state .state-page-head__glow--1 {
    width: 320px;
    height: 320px;
    top: -120px;
    right: -60px;
    background: radial-gradient(circle, rgba(17, 115, 235, 0.22) 0%, transparent 68%);
    animation: state-head-float 9s ease-in-out infinite;
}

body.page-state .state-page-head__glow--2 {
    width: 220px;
    height: 220px;
    bottom: -80px;
    left: -40px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.16) 0%, transparent 70%);
    animation: state-head-float 11s ease-in-out infinite reverse;
}

@keyframes state-head-float {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-10px, 8px) scale(1.06);
    }
}

body.page-state .state-page-head__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px 28px;
    align-items: center;
}

body.page-state .state-page-head__copy {
    min-width: 0;
}

body.page-state .state-page-head__label {
    display: inline-flex;
    align-items: center;
    margin: 0 0 14px;
    padding: 5px 14px;
    font-family: GoogleSans, system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #1173eb 0%, #0ea5e9 100%);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(17, 115, 235, 0.38);
}

body.page-state .state-page-head__label::before {
    display: none;
}

body.page-state .state-page-head__title {
    font-family: GoogleSans, system-ui, sans-serif;
    font-size: clamp(1.75rem, 4.2vw, 2.375rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
    text-wrap: balance;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #1173eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

body.page-state .state-page-lead {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.65;
    color: #475569;
    max-width: 46ch;
}

body.page-state .state-page-head__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

body.page-state .state-page-head__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: #1d4ed8;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(17, 115, 235, 0.18);
    border-radius: 999px;
    box-shadow: 0 2px 10px rgba(17, 115, 235, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.page-state .state-page-head__chip:hover {
    transform: translateY(-1px);
    border-color: rgba(17, 115, 235, 0.32);
    box-shadow: 0 4px 14px rgba(17, 115, 235, 0.16);
}

body.page-state .state-page-head__chip-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #1173eb;
}

body.page-state .state-page-head__visual {
    position: relative;
    width: clamp(108px, 16vw, 148px);
    height: clamp(108px, 16vw, 148px);
    flex-shrink: 0;
}

body.page-state .state-page-head__visual-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px dashed rgba(17, 115, 235, 0.22);
    animation: state-head-spin 24s linear infinite;
}

@keyframes state-head-spin {
    to {
        transform: rotate(360deg);
    }
}

body.page-state .state-page-head__visual-core {
    position: absolute;
    inset: 14%;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(17, 115, 235, 0.12) 0%, rgba(255, 255, 255, 0.9) 100%);
    box-shadow: inset 0 0 0 1px rgba(17, 115, 235, 0.12);
}

body.page-state .state-page-head__illus {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18%;
    box-sizing: border-box;
    filter: drop-shadow(0 10px 24px rgba(17, 115, 235, 0.22));
}

body.page-state .state-crumb {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

body.page-state .state-crumb li {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: #94a3b8;
}

body.page-state .state-crumb li + li::before {
    content: '›';
    width: auto;
    height: auto;
    margin: 0 8px;
    border-radius: 0;
    background: none;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
}

body.page-state .state-crumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

body.page-state .state-crumb a:hover {
    color: #1173eb;
}

body.page-state .state-crumb li[aria-current='page'] {
    color: #1e293b;
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    body.page-state .state-page-head__glow,
    body.page-state .state-page-head__visual-ring {
        animation: none;
    }
}

/* Steps card — header + progress + foot (aligned with teach.html) */
body.page-state .state-steps-card.teach-steps-card {
    padding: 0 24px 24px;
    overflow: hidden;
}

body.page-state .state-steps-card .teach-steps-head {
    margin: 0 -24px 20px;
}

body.page-state .state-steps-card .teach-steps-flow {
    margin: 0;
}

/* Progress bar */
body.page-state .state-steps-progress {
    margin-bottom: 20px;
}

body.page-state .state-steps-progress__track {
    height: 6px;
    border-radius: 999px;
    background: rgba(20, 33, 68, 0.08);
    overflow: hidden;
}

body.page-state .state-steps-progress__fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1173eb 0%, #3d9bff 100%);
    transition: width 0.35s ease;
}

body.page-state .state-steps-card[data-current-step="1"] .state-steps-progress__fill {
    width: 25%;
}

body.page-state .state-steps-card[data-current-step="2"] .state-steps-progress__fill {
    width: 50%;
}

body.page-state .state-steps-card[data-current-step="3"] .state-steps-progress__fill {
    width: 75%;
}

body.page-state .state-steps-card[data-current-step="4"] .state-steps-progress__fill {
    width: 100%;
}

body.page-state .state-steps-progress__meta {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #6b7280;
    font-weight: 500;
}

body.page-state .state-steps-card .teach-steps-foot {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(20, 33, 68, 0.07);
}

body.page-state .state-steps-card .teach-steps-foot__btn--static {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
}

body.page-state .state-steps-card .teach-steps-foot__btn--static:hover {
    transform: none;
}

/* Completed step */
body.page-state .state-steps-card .select-done .teach-step__num.prog::before {
    content: '\2713' !important;
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3) !important;
    font-size: 14px;
}

body.page-state .state-steps-card .select-done .teach-step__card.step_box {
    border-color: rgba(16, 185, 129, 0.25);
    background: linear-gradient(180deg, #fff 0%, #f0fdf8 100%);
}

body.page-state .state-steps-card .select-done .teach-step__text.h4 {
    color: #047857;
    font-weight: 600;
}

body.page-state .state-steps-card .select-done .teach-step__hint {
    color: #059669;
}

/* Current step detail — mobile: inside card; PC: bar below grid */
body.page-state .state-steps-card .state-steps-current-detail {
    display: none;
}

body.page-state .state-steps-card .state-steps-current-detail:empty {
    display: none !important;
}

body.page-state .state-steps-card .teach-step__detail {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #5a6478;
}

body.page-state .state-steps-card .select-now .teach-step__card.step_box {
    animation: state-step-pulse 3s ease-in-out infinite;
}

@keyframes state-step-pulse {
    0%,
    100% {
        box-shadow: 0 8px 28px rgba(17, 115, 235, 0.12);
    }

    50% {
        box-shadow: 0 8px 32px rgba(17, 115, 235, 0.22);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page-state .state-steps-card .select-now .teach-step__card.step_box {
        animation: none;
    }
}

/* PC: equal-height step cards, readable vertical layout */
@media (min-width: 901px) {
    body.page-state .state-steps-card .teach-steps-flow.select-text {
        align-items: stretch;
    }

    body.page-state .state-steps-card .select-box.teach-step {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    body.page-state .state-steps-card .teach-step__card.step_box {
        flex: 1;
        flex-direction: column;
        align-items: stretch;
        height: 100%;
        min-height: 168px;
        padding: 18px 16px 16px;
    }

    body.page-state .state-steps-card .teach-step__head {
        position: static;
        margin-bottom: 14px;
        min-height: 28px;
        flex-shrink: 0;
    }

    body.page-state .state-steps-card .teach-step__pill {
        font-size: 10px;
        padding: 4px 10px;
    }

    body.page-state .state-steps-card .teach-step__icon {
        width: 56px;
        height: 56px;
        margin-bottom: 12px;
        flex-shrink: 0;
    }

    body.page-state .state-steps-card .teach-step__icon img.teach-step__img {
        width: 52px;
        height: 52px;
    }

    body.page-state .state-steps-card .teach-step__icon img.teach-step__img--svg {
        width: 48px;
        height: 48px;
    }

    body.page-state .state-steps-card .teach-step__copy {
        display: flex;
        flex-direction: column;
        flex: 1;
        margin-top: 0;
        gap: 5px;
    }

    body.page-state .state-steps-card .teach-step__text.h4 {
        font-size: 14px;
        line-height: 1.35;
    }

    body.page-state .state-steps-card .teach-step__hint {
        font-size: 12px;
        line-height: 1.45;
    }

    body.page-state .state-steps-card .teach-step:not(:last-child)::after {
        top: 50%;
        right: -2px;
        width: 10px;
        height: 10px;
        transform: translateY(-50%) rotate(45deg);
    }

    body.page-state .state-steps-card .select-now .teach-step__detail {
        display: none;
    }

    body.page-state .state-steps-card .state-steps-current-detail {
        display: block;
        margin: 18px 0 2px;
        padding: 16px 20px;
        border-radius: 14px;
        background: linear-gradient(180deg, #f8fbff 0%, #f0f6ff 100%);
        border: 1px solid rgba(17, 115, 235, 0.12);
        border-left: 4px solid #1173eb;
        font-size: 14px;
        line-height: 1.6;
        color: #3d4659;
    }

    body.page-state .state-steps-card .teach-steps-foot {
        margin-top: 18px;
        padding-top: 18px;
    }

    body.page-state .state-steps-card .teach-steps-foot__note {
        font-size: 14px;
    }

    body.page-state .state-steps-card .teach-steps-foot__btn--static {
        min-height: 44px;
        padding: 0 20px;
        font-size: 14px;
    }
}

@media (max-width: 900px) {
    body.page-state .state-steps-card .state-steps-current-detail {
        display: none;
    }
}

body.page-state .state-ad.adswp {
    margin-bottom: 20px;
    min-height: 250px;
}

body.page-state .state-ad--mid.adswp {
    margin: 16px 0 20px;
}

/* Country selector (de-ch-at) */
body.page-state .state-country-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 20px;
    box-shadow: 0 2px 16px rgba(20, 33, 68, 0.06);
    border: 1px solid rgba(20, 33, 68, 0.06);
}

body.page-state .state-country-card .country-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

body.page-state .state-country-card .country-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #f8fafc;
    border-radius: 999px;
    border: 1px solid rgba(20, 33, 68, 0.08);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
}

body.page-state .state-country-card .country-item:hover {
    border-color: rgba(17, 115, 235, 0.35);
    background: #f5f9ff;
}

body.page-state .state-country-card .country-item.active {
    border-color: #1173eb;
    background: linear-gradient(180deg, #fff 0%, #f5f9ff 100%);
    box-shadow: 0 4px 14px rgba(17, 115, 235, 0.12);
}

body.page-state .state-country-card .flag {
    font-size: 22px;
    line-height: 1;
    margin: 0;
}

body.page-state .state-country-card .country-name {
    font-size: 14px;
    font-weight: 600;
    color: #142144;
}

/* Steps — reuse teach card; step 1 active on this page */
body.page-state .state-steps-card {
    margin-bottom: 20px;
}

body.page-state .state-steps-card .select-box .prog::after {
    display: none !important;
}

/* State grid picker */
body.page-state .state-picker-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 22px 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 16px rgba(20, 33, 68, 0.06);
    border: 1px solid rgba(20, 33, 68, 0.06);
}

body.page-state .state-picker-head {
    margin-bottom: 18px;
    padding-left: 14px;
    border-left: 3px solid #1173eb;
}

body.page-state .state-picker-title {
    font-family: GoogleSans, system-ui, sans-serif;
    font-size: clamp(1.125rem, 2.2vw, 1.375rem);
    font-weight: 700;
    color: #141b2e;
    line-height: 1.3;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

body.page-state .state-picker-lead {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #5c6578;
}

body.page-state .select-state.state-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

@media screen and (min-width: 640px) {
    body.page-state .select-state.state-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (min-width: 900px) {
    body.page-state .select-state.state-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

body.page-state .select-state.state-grid > li {
    margin: 0;
    min-width: 0;
}

body.page-state .state-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

body.page-state .state-picker-legend {
    display: none;
}

body.page-state .state-picker-legend__sample {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(17, 115, 235, 0.1);
    color: #1173eb;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

body.page-state .state-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 64px;
    padding: 12px 14px;
    border: 1px solid rgba(20, 33, 68, 0.08);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(20, 33, 68, 0.04);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    min-width: 0;
    box-sizing: border-box;
    height: 100%;
}

body.page-state .state-link:hover .state-tile,
body.page-state .state-link:focus-visible .state-tile {
    border-color: rgba(17, 115, 235, 0.45);
    color: #1173eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(17, 115, 235, 0.12);
}

body.page-state .state-tile__text,
body.page-state .state-tile .text-wrapper {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-align: center;
    word-break: break-word;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: inherit;
    max-width: 100%;
    min-width: 0;
}

body.page-state .state-tile__count {
    display: none;
}

body.page-state .state-tile__count-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(17, 115, 235, 0.08);
    color: #1173eb;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    transition: background-color 0.2s ease, color 0.2s ease;
}

body.page-state .state-tile__count-num {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

body.page-state .state-tile__count-label {
    opacity: 0.92;
    white-space: nowrap;
}

body.page-state .state-tile__count.is-loading .state-tile__count-badge {
    animation: picker-count-pulse 1.4s ease-in-out infinite;
}

body.page-state .state-tile__count.is-empty .state-tile__count-badge,
body.page-state .state-tile__count-badge--empty {
    background: rgba(20, 33, 68, 0.06);
    color: #8b93a3;
}

body.page-state .state-link:hover .state-tile__count-badge,
body.page-state .state-link:focus-visible .state-tile__count-badge {
    background: rgba(17, 115, 235, 0.14);
    color: #0d5fc7;
}

body.page-state .state-link:hover .state-tile__count.is-empty .state-tile__count-badge,
body.page-state .state-link:focus-visible .state-tile__count.is-empty .state-tile__count-badge {
    background: rgba(20, 33, 68, 0.08);
    color: #6b7280;
}

@keyframes picker-count-pulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

body.page-state .divider-wrap {
    grid-column: 1 / -1;
    text-align: center;
    pointer-events: none;
    padding: 8px 0;
}

/* Info section */
body.page-state .state-info.teach-info {
    margin-top: 4px;
}

body.page-state .state-info .teach-info-card__lead--secondary {
    margin-top: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #3d4659;
}

/* Sidebar */
body.page-state .detail-right .most-read {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 16px rgba(20, 33, 68, 0.06);
    border: 1px solid rgba(20, 33, 68, 0.06);
}

body.page-state .detail-right {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    min-width: 0;
}

@media (max-width: 900px) {
    body.page-state .detail-rightside {
        flex: 1 1 100%;
        width: 100%;
    }

    body.page-state .state-page-head {
        margin-bottom: 18px;
    }

    body.page-state .state-page-head__crumbs {
        padding: 10px 18px;
    }

    body.page-state .state-page-head__banner {
        padding: 22px 18px 24px;
    }

    body.page-state .state-page-head__inner {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body.page-state .state-page-head__visual {
        order: -1;
        justify-self: center;
        width: 120px;
        height: 120px;
    }

    body.page-state .state-page-head__title {
        font-size: 1.625rem;
    }

    body.page-state .state-page-lead {
        font-size: 14px;
        margin-bottom: 16px;
    }

    body.page-state .state-picker-card {
        padding: 18px 16px 20px;
    }

    body.page-state .state-steps-card.teach-steps-card {
        padding: 0 16px 18px;
    }

    body.page-state .state-steps-card .teach-steps-head {
        margin: 0 -16px 16px;
        padding: 18px 16px 16px;
    }
}

@media (max-width: 480px) {
    body.page-state .state-crumb {
        font-size: 11px;
    }

    body.page-state .state-crumb li + li::before {
        margin: 0 6px;
    }

    body.page-state .state-page-head__chip {
        font-size: 11px;
        padding: 7px 11px;
    }

    body.page-state .state-page-head__title {
        font-size: 1.5rem;
    }

    body.page-state .select-state.state-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    body.page-state .state-tile {
        min-height: 48px;
        padding: 10px 12px;
    }
}
