.disaster-calendar-page {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
    align-items: start;
}
.calendar-sidebar {
    position: sticky;
    top: 73px;
    align-self: start;
    height: calc(100dvh - 100px);
    max-height: calc(100dvh - 100px);
    padding: 0;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.calendar-sidebar-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    margin-bottom: 0;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.calendar-sidebar-header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.calendar-sidebar-header button {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: #e5e7eb;
    font-size: 1.4rem;
    cursor: pointer;
}

.calendar-day-list {
    display: grid;
    gap: 8px;
    height: calc(100% - 155px);
    overflow-y: auto;
    padding: 12px 16px 16px;
}

.calendar-day-row {
    font-family: "Pretendard Variable";
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 12px;
    width: 100%;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.calendar-day-row:hover {
    background: #fff7ed;
}

.calendar-day-row.selected {
    border-color: #f97316;
    background: #fff7ed;
}

.calendar-day-row.today {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
}

.calendar-day-row.has-items .calendar-day-number {
    color: #f97316;
}

.calendar-date-box {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.calendar-day-number {
    font-size: 1.4rem;
    font-weight: 800;
}

.calendar-day-label {
    font-size: 0.85rem;
    color: #666;
}

.calendar-item-box {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.calendar-mini-item {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.9rem;
    font-weight: 600;
}

.calendar-empty-text {
    color: #aaa;
    font-size: 0.85rem;
}

.calendar-detail {
    min-width: 0;
    padding: 24px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.entry-elapsed {
    margin: 0.25rem 0 0rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.entry-elapsed-days {
    font-size: 0.8rem;
}

.disaster-entry h1 {
    margin: 8px 0 12px;
    font-size: 2rem;
    line-height: 1.35;
}

.entry-meta {
    margin: 0;
    color: #666;
}

.entry-summary {
    margin: 20px 0;
    /* font-size: 1.05rem; */
    font-weight: 600;
}

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

.entry-tag {
    padding: 4px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.8rem;
}
.entry-tag:hover {
    background: rgba(228, 231, 234, 0.8);
}

.entry-block {
    margin: 16px 0;
    line-height: 1.9;
}
.entry-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.entry-bookmark-button {
    width: 2.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.entry-bookmark-button img {
    width: 1.1rem;
    height: 1.1rem;
}

.entry-bookmark-button:hover,
.entry-bookmark-button.active {
    border-color: #f59e0b;
    background: #fffbeb;
}

.entry-bookmark-button:hover {
    transform: translateY(-1px);
}

.entry-bookmark-button::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 5px);
    right: -12.5px;
    padding: .35rem .55rem;
    border-radius: 8px;
    background: rgba(17, 24, 39, .95);
    color: white;
    font-size: .75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition:
        opacity .15s ease,
        transform .15s ease;
}

.entry-bookmark-button:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.calendar-sidebar-links {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.calendar-sidebar-links a {
    flex: 1;
    padding: 0.45rem 0.6rem;
    border-radius: 999px;
    background: #fff;
    color: #64748b;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.calendar-sidebar-links a:hover {
    background: #fff7ed;
    color: #f97316;
}
.calendar-empty-detail {
    color: #666;
}

.calendar-mini-item-button {
    display: block;
    width: 100%;
    padding: 4px 0;
    border: none;
    background: transparent;
    color: var(--main-text-color) !important;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.calendar-mini-item-button:hover {
    color: #f97316;
    text-decoration: underline;
}

.calendar-mini-item-button.selected-item {
    color: #f97316;
    font-weight: 800;
}

.calendar-mini-item-wrapper {
    display: grid;
    gap: 0.2rem;
}

.calendar-mini-summary {
    display: block;
    max-height: 0;
    overflow: hidden;
    color: #6b7280;
    font-size: 0.78rem;
    line-height: 1.4;
    opacity: 0;
    transition:
        max-height 0.2s ease,
        opacity 0.2s ease;
}

.calendar-day-row:hover .calendar-mini-summary,
.calendar-day-row.selected .calendar-mini-summary {
    max-height: 2.8em;
    opacity: 1;
}

.handbook-box {
    margin-top: 2rem;
}

.handbook-box>p {
    margin-top: 0.5rem;
}

.handbook {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.handbook-card {
    width: calc(50% - 2.5rem);
    display: flex;
    align-items: center;
    padding: 0.9rem;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    background: #fff;
    color: var(--main-text-color);
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.handbook-card.earthquake img {
    background: #fef2f2;
}

.handbook-card.tsunami img {
    background: #eff6ff;
}

.handbook-card.typhoon img {
    background: #f0fdf4;
}

.handbook-card.volcano img {
    background: #ffeded;
}
.handbook-card.landslide img {
    background: #fff7ed;
}
.handbook-card.rain img, .handbook-card.flood img {
    background: #edf7ff;
}
.link-box{
    margin-top:2rem;
    display: flex;
    flex-direction: column;
    gap:0.5rem;
}

.handbook-card img {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    padding: 0.5rem;
    border-radius: 12px;
}

.handbook-arrow {
    margin-left: auto;
    font-size: 1.2rem;
    font-weight: 700;
    color: #9ca3af;
    transition:
        transform .2s ease,
        color .2s ease;
}

.handbook-card div {
    margin-left: 0.8rem;
    margin-right: 0.2rem;
    min-width: 0;
}
.handbook-card div h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.handbook-card div p {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #6b7280;
}

.handbook-card:hover {
    transform: translateY(-3px);
    border-color: #f97316;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.06),
        0 2px 4px rgba(0, 0, 0, 0.04);
}

.handbook-card:hover img {
    transform: scale(1.08);
}

.same-day-events {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.same-day-events h3 {
    margin-bottom: 1rem;
}

.same-day-events-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.same-day-event {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: .2s;
    color: var(--main-text-color);
}

.same-day-event:hover {
    background: #fff7ed;
    border-color: #f97316;
    transform: translateX(4px);
}
.entry-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.entry-top-left {
    min-width: 0;
}

.entry-share-button {
    width: 2.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        transform .2s ease;
    position: relative;
}
.entry-share-button::after{
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 5px);
    right: 0px;
    padding: .35rem .55rem;
    border-radius: 8px;
    background: rgba(17,24,39,.95);
    color: white;
    font-size: .75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition:
        opacity .15s ease,
        transform .15s ease;
}

.entry-share-button:hover::after{
    opacity: 1;
    transform: translateY(0);
}
.entry-share-button img {
    width: 1.1rem;
    height: 1.1rem;
}


.entry-share-button.copied {
    border-color: #10b981;
    background: #ecfdf5;
}

.entry-share-button.failed {
    border-color: #ef4444;
    background: #fef2f2;
}


.entry-share-button:not(.copied):not(.failed):hover {
    border-color: #f97316;
    background: #fff7ed;
    color: #f97316;
}

.entry-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 600;
}

.entry-tag-icon {
    width: 1rem;
    height: 1rem;
    object-fit: contain;
}
.calendar-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: calc(1200px - 3rem);
    margin: 2rem auto 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
}

.calendar-hero.clickable {
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.calendar-hero.clickable:hover {
    transform: translateY(-2px);
    border-color: #f97316;
    box-shadow:
        0 4px 12px rgba(0,0,0,0.06),
        0 2px 4px rgba(0,0,0,0.04);
}

.calendar-hero-label {
    margin: 0 0 0.35rem;
    color: #f97316;
    font-size: 0.9rem;
    font-weight: 700;
}

.calendar-hero-right h2 {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.4;
}

.calendar-hero-date {
    display: grid;
    gap: 0.2rem;
    min-width: 110px;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    background: #fff7ed;
    text-align: center;
}

.calendar-hero-date strong {
    font-size: 1.1rem;
}

.calendar-hero-date span {
    color: #9a3412;
    font-size: 0.8rem;
}
.calendar-month-select{
    font-family: "Pretendard Variable";
    border:none;
    background:transparent;
    font-size:1.2rem;
    font-weight:700;
    cursor:pointer;
}
.calendar-detail {
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.calendar-detail.detail-leave {
    opacity: 0;
    transform: translateY(8px);
}

.calendar-detail.detail-enter {
    opacity: 1;
    transform: translateY(0);
}
.calendar-announce {
    max-width: calc(1200px - 66px);
    margin: 3rem auto;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: #fff;
}

.calendar-announce > h2 {
    margin: 0 0 1.5rem;
    font-size: 1.6rem;
}

.announce-section {
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fafafa;
}

.announce-section + .announce-section {
    margin-top: 1.5rem;
}

.announce-section h2 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
}

.announce-section p {
    margin: 0;
    color: #4b5563;
    line-height: 1.8;
}

.criteria-desc {
    margin-bottom: 1.25rem !important;
}

.criteria-tabs {
    display: flex;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.criteria-tabs button {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    color: #374151;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.criteria-tabs button:hover {
    transform: translateY(-1px);
    border-color: #f97316;
    background: #fff7ed;
}

.criteria-tabs button.active {
    border-color: #f97316;
    background: #f97316;
    color: #fff;
}

.criteria-content {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.criteria-content.active {
    display: grid;
}

.criteria-card {
    position: relative;
    overflow: hidden;
    padding: 1.1rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.criteria-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #94a3b8;
}

.criteria-card.normal::before {
    background: #3b82f6;
}

.criteria-card.warning::before {
    background: #f97316;
}

.criteria-card.danger::before {
    background: #ef4444;
}

.criteria-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.07),
        0 2px 5px rgba(0, 0, 0, 0.04);
}

.criteria-card img {
    width: 44px;
    height: 44px;
    margin: 0.4rem 0 0.7rem;
    object-fit: contain;
}

.criteria-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.criteria-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.6;
}

.announce-request {
    border-color: #fed7aa;
    background: #fff7ed;
}

.announce-request-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: #f97316;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.announce-request-link:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 16px rgba(249, 115, 22, 0.25),
        0 2px 5px rgba(249, 115, 22, 0.18);
}

@media (max-width: 1060px) {
    .handbook-card {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .disaster-calendar-page {
        grid-template-columns: 1fr;
    }
    .calendar-sidebar {
        height: auto;
        max-height: 420px;
        overflow: auto;
        position: inherit;
    }
    .calendar-detail {
        padding: 18px;
    }
    .disaster-entry h1 {
        font-size: 1.5rem;
    }
    .calendar-hero {
        margin: 1rem 16px 0;
        flex-direction: column;
        align-items: flex-start;
    }
    .calendar-hero-date {
        width: calc(100% - 2rem);
    }
    .calendar-announce {
        margin: 2rem 16px;
        padding: 1.25rem;
    }
    .announce-section {
        padding: 1.25rem;
    }
    .criteria-tabs {
        flex-direction: column;
    }
    .criteria-content {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* @media (max-width: 640px) {
    .entry-top {
        align-items: stretch;
        flex-direction: column;
    }
    .entry-share-button {
        width: fit-content;
    }
} */