.page-header {
    margin-bottom: 1.5rem;
}

.page-main-title {
    color: var(--primary-color);
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.page-main-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.page-description {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0.75rem;
    max-width: 800px;
}
.country-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 1.25rem !important;
    margin-top: 1.5rem;
    width: 100%;
}

.country-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.015);
    overflow: hidden;
    width: 100% !important;
}

.country-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 6px 16px rgba(60, 141, 188, 0.08);
    transform: translateY(-2px);
}

.country-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.1rem;
    text-decoration: none !important;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.country-link:hover {
    color: var(--accent-color);
}

.country-link .arrow-icon {
    font-size: 0.8rem;
    color: var(--secondary-color);
    opacity: 0.4;
    transition: all 0.2s ease;
}

.country-card:hover .arrow-icon {
    opacity: 1;
    color: var(--accent-color);
    transform: translateX(3px);
}

@media (max-width: 1024px) {
    .country-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem !important;
    }
}

@media (max-width: 768px) {
    .page-main-title {
        font-size: 1.45rem;
    }

    .country-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .country-link {
        padding: 0.75rem 0.85rem;
        font-size: 0.9rem;
    }
}
.page-description kbd {
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    box-shadow: 0 1px 0px rgba(0, 0, 0, 0.15);
    color: var(--primary-color);
    display: inline-block;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    padding: 2px 5px;
    margin: 0 2px;
    vertical-align: middle;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.6rem;
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 1.25rem;
    padding: 0.25rem 0;
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--accent-color);
    text-decoration: underline !important;
}

.breadcrumb span {
    color: var(--primary-color);
    font-weight: 500;
    cursor: default;
}

@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.825rem;
        margin-bottom: 1rem;
    }
}

.province-list,
.city-list,
.district-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 1rem !important;
    margin-top: 1.5rem;
    width: 100%;
}

.province-list a,
.city-list a,
.district-list a {
    display: inline-flex !important;
    align-items: center;
    padding: 0.85rem 1.1rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.015);
    line-height: 1.3;
}

.province-list a:hover,
.city-list a:hover,
.district-list a:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: var(--nav-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(60, 141, 188, 0.06);
}

@media (max-width: 768px) {
    .province-list,
    .city-list,
    .district-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 0.75rem !important;
    }

    .province-list a,
    .city-list a,
    .district-list a {
        padding: 0.75rem 0.85rem;
        font-size: 0.9rem;
    }
}

.selector {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.015);
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.selector form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.selector form span {
    font-weight: 600;
}

.selector select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: #f8fafc;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    min-width: 90px;
}

.selector select:hover,
.selector select:focus {
    border-color: var(--accent-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(60, 141, 188, 0.1);
}

.selector button[type="submit"] {
    background-color: var(--accent-color);
    color: white;
    border: 1px solid var(--accent-color);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

.selector button[type="submit"]:hover {
    background-color: #2b6a8b;
    border-color: #2b6a8b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(60, 141, 188, 0.15);
}

@media (max-width: 768px) {
    .selector {
        padding: 0.85rem 1rem;
    }

    .selector form {
        gap: 0.5rem;
    }

    .selector select {
        flex: 1;
        min-width: 80px;
    }

    .selector button[type="submit"] {
        width: 100%;
        margin-left: 0;
        margin-top: 0.25rem;
        padding: 0.75rem;
    }
}


.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    background: white;
}

.sunrise-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.sunrise-table thead th,
.sunrise-table thead td {
    background-color: var(--accent-color) !important;
    color: white !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    text-align: center;
    border-bottom: 3px solid rgba(0,0,0,0.12);
    letter-spacing: 0.3px;
    background-image: linear-gradient(rgba(255,255,255,0.1), transparent);
}


.sunrise-table thead th:nth-child(2),
.sunrise-table thead td:nth-child(2) {
    border-bottom: 3px solid #ACCD4E !important;
}

.sunrise-table thead th:nth-child(3),
.sunrise-table thead td:nth-child(3) {
    border-bottom: 3px solid #FFDA28 !important;
}

.sunrise-table thead th:nth-child(4),
.sunrise-table thead td:nth-child(4) {
    border-bottom: 3px solid #FF7C4A !important;
}

.sunrise-table tbody td {
    padding: 0.85rem 1rem;
    text-align: center;
    color: #4a5568;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.sunrise-table tbody tr:last-child td {
    border-bottom: none;
}

.sunrise-table tbody tr:nth-child(even) td {
    background-color: #f8fafc;
}

.sunrise-table tbody tr:hover td {
    background-color: var(--nav-hover-color);
    color: var(--primary-color);
}

h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 2rem 0 1.25rem 0;
    padding-left: 1rem;
    position: relative;
    line-height: 1.3;
    font-weight: 700;
}


/* sun info panel */

.sun-info-panel {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
}

.sun-info-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 0;
    padding: 0;
}

.sun-info-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.72rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.sun-info-row:nth-last-child(-n+2) {
    border-bottom: none;
}

.sun-info-row:nth-child(odd) {
    border-right: 1px solid var(--border-color);
}

.sun-info-list dt {
    flex: 0 0 auto;
    color: var(--secondary-color);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    min-width: 7em;
}

.sun-info-list dt::after {
    content: '：';
    color: #cbd5e1;
}

.sun-info-list dd {
    flex: 1;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    word-break: break-all;
    margin: 0;
}

.sun-info-row:hover {
    background: var(--nav-hover-color);
}

@media (max-width: 768px) {
    .sun-info-list {
        grid-template-columns: 1fr;
    }

    .sun-info-row:nth-child(odd) {
        border-right: none;
    }

    .sun-info-row:nth-last-child(-n+2) {
        border-bottom: 1px solid var(--border-color);
    }

    .sun-info-row:last-child {
        border-bottom: none;
    }

    .sun-info-list dt {
        min-width: 6.5em;
        font-size: 0.85rem;
    }

    .sun-info-list dd {
        font-size: 0.875rem;
    }

    .sun-info-row {
        padding: 0.65rem 1rem;
    }
}

.skip-to-list {
    color: var(--secondary-color);
    font-size: 0.875rem;
    text-decoration: none;
    margin-left: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.skip-to-list:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* notice */
.sun-panel-notice {
    margin: 0.75rem 0 0 0;
    padding: 0.6rem 1rem;
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    color: #92400e;
    font-size: 0.875rem;
    line-height: 1.5;
}

.sun-info-panel {
    position: relative;
}

.sun-today-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-color);
    color: white;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 0 8px 0 6px;
    line-height: 1.8;
    pointer-events: none;
}

.viz-tabs {
    overflow-x: auto;
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* IE/Edge */
}
.viz-tabs::-webkit-scrollbar {
    display: none;               /* Chrome/Safari */
}
