:root {
    /* 공통 */
    --hb-background: #f5f7fa;
    --hb-border: #dfe5ec;
    --hb-subtext: #647184;

    /* 지진・해일 */
    --earthquake-hb-primary: #dc2626;
    --earthquake-hb-primary-dark: #991b1b;
    --earthquake-hb-primary-soft: #fef2f2;
    --earthquake-hb-border-hover: #fca5a5;

    /* 태풍・호우 */
    --rain-hb-primary: #2563eb;
    --rain-hb-primary-dark: #1d4ed8;
    --rain-hb-primary-soft: #eff6ff;
    --rain-hb-border-hover: #93c5fd;

    /* 그 외 재해 */
    --else-hb-primary: #59687a;
    --else-hb-primary-dark: #3c4857;
    --else-hb-primary-soft: #f0f3f6;
    --else-hb-border-hover: #b8c2ce;

    /* 행동을 시작하기 */
    --start-hb-primary: #24866a;
    --start-hb-primary-dark: #17664f;
    --start-hb-primary-soft: #edf8f4;
    --start-hb-border-hover: #86cbb6;

    /* 방재 TIPS */
    --tips-hb-primary: #d66d27;
    --tips-hb-primary-dark: #a94e17;
    --tips-hb-primary-soft: #fff3e9;
    --tips-hb-border-hover: #efb184;
}
#headers {
    --hb-header-primary: #1769e0;
    --hb-header-primary-soft: #edf5ff;
    --hb-header-text: #172033;
    --hb-header-muted: #687488;
    --hb-header-border: #e1e6ed;
}
.handbook-header {
    background: #fff;
    border-bottom: 1px solid var(--hb-header-border);
}
.handbook-header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    width: min(1180px, calc(100% - 48px));
    min-height: 58px;
    margin: 0 auto;
}
.handbook-header-title {
    flex: none;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    text-decoration: none;
    white-space: nowrap;
    color: var(--hb-header-text);
}
.handbook-header-title:hover {
    color: var(--hb-header-primary);
}
.handbook-header-nav {
    position: relative;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.handbook-header-nav::-webkit-scrollbar {
    display: none;
}

/* 모바일 스크롤 힌트 */
.handbook-header-inner {
    position: relative;
}

.handbook-header-inner::after {
    content: "›";
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 0;

    display: none;
    align-items: center;
    justify-content: flex-end;

    width: 54px;
    height: 100%;
    padding-right: 8px;

    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;

    color: var(--hb-header-primary, #1769e0);
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0),
        #fff 62%
    );

    transform: translateY(-50%);
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}
.handbook-header-inner::before {
    content: "‹";
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 65px;

    display: none;
    align-items: center;

    width: 48px;
    height: 100%;
    padding-left: 8px;

    font-size: 1.45rem;
    font-weight: 700;

    color: var(--hb-header-primary, #1769e0);
    background: linear-gradient(
        to left,
        rgba(255, 255, 255, 0),
        #fff 62%
    );

    transform: translateY(-50%);
    pointer-events: none;
}
.handbook-header-list {
    display: flex;
    align-items: center;
    gap: 4px;
    width: max-content;
    padding: 0;
    margin: 0;
    list-style: none;
}

.handbook-header-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 11px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    color: var(--hb-header-muted);
    border-radius: 8px;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.handbook-header-link:hover {
    color: var(--hb-header-primary);
    background: var(--hb-header-primary-soft);
}

.handbook-header-icon {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.handbook-header-link.active {
    color: var(--hb-header-primary);
    background: var(--hb-header-primary-soft);
}

.handbook-header-link.active::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: -10px;
    left: 10px;
    height: 2px;
    background: var(--hb-header-primary);
    border-radius: 999px;
}
.handbook-category{
    width: min(100% - 3rem, 1080px);
    margin: 0 auto;
    padding: 5rem 0rem 0rem;
    margin-bottom: 12rem;
}
.handbook-category-intro{
    position: relative;
    max-width: 760px;
    margin-bottom: 2rem;
    padding-left: 1.4rem;
}
.handbook-category-intro::before {
    content: "";
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    width: 5px;
    
    border-radius: 999px;
}
.handbook-category-intro.earthquake::before{
    background: linear-gradient(
        to bottom,
        var(--earthquake-hb-primary),
        #ef7474
    );
}
.handbook-category-intro.rain::before{
    background: linear-gradient(
        to bottom,
        var(--rain-hb-primary),
        #6e94e7
    );
}
.handbook-category-title {
    display: flex;
    align-items: center;
    margin-bottom: 1.4rem;
}
.handbook-category-title h1 {
    font-size: clamp(2.1rem, 5vw, 3.3rem);
    line-height: 1.2;
    letter-spacing: -0.05em;
    color: var(--main-text-color);
    margin-left: 1rem;
}
.handbook-category-intro p {
    line-height: 1.8;
    color: var(--hb-subtext);
}
.handbook-document-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 3rem;
}
.handbook-document-card.large {
    grid-column: 1 / -1;
}
.handbook-document-card {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 24px;
    min-height: 260px;
    padding: 30px;
    color: var(--main-text-color);
    text-decoration: none;
    background: #fff;
    border-radius: 22px;
    border: 1px solid var(--hb-border);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}
.handbook-document-card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 90px;
    height: 90px;
    border-radius: 0 0 22px 0;
    pointer-events: none;
}
.handbook-document-card:hover {
    transform: translateY(-4px);
    border-color: #9ec3f3;
    box-shadow: 0 16px 40px rgba(31, 66, 113, 0.1);
}

.handbook-document-card:focus-visible {
    outline: 3px solid rgba(23, 105, 224, 0.25);
    outline-offset: 4px;
}
.handbook-document-card-number {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
}
.handbook-document-card-number.earthquake{
    color: var(--earthquake-hb-primary);
}
.handbook-document-card-number.rain{
    color: var(--rain-hb-primary);
}
.handbook-document-card-number::after {
    content: "";
    width: 1px;
    height: 26px;
    margin: 28px 0 0 -10px;
    background: var(--hb-border);
}
.handbook-document-card-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.handbook-document-card-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.handbook-document-card-description {
    max-width: 660px;
    margin: 0 0 22px;
    line-height: 1.75;
    word-break: keep-all;
    color: var(--hb-subtext);
}
.handbook-document-card-topics {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 0;
    margin: 0 0 2rem;
    list-style: none;
}
.handbook-document-card-topics li {
    padding: 7px 11px;
    font-size: 0.8rem;
    color: #536175;
    background: var(--hb-background);
    border-radius: 7px;
}
.handbook-document-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    margin-top: auto;
    font-size: 0.8rem;
    color: #8792a2;
    border-top: 1px solid #edf0f4;
}
.handbook-document-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}
.handbook-document-card-link.earthquake{
    color: var(--earthquake-hb-primary);
}
.handbook-document-card-link.rain{
    color: var(--rain-hb-primary);
}
.handbook-document-card-link span {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}
.handbook-document-card:hover
.handbook-document-card-link span {
    transform: translateX(4px);
}
.handbook-category > .handbook-category-back{
    margin-left: 0 !important;
}
.handbook-category-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    /* margin-top: 2rem; */
    padding: 11px 3px;
    font-weight: 700;
    text-decoration: none;
    color: var(--hb-subtext);
    transition: color 0.2s ease;
    margin-bottom: 3rem;
}
.handbook-category-back.earthquake:hover {
    color: var(--earthquake-hb-primary);
}
.handbook-category-back.rain:hover {
    color: var(--rain-hb-primary);
}
.handbook-category-back.else:hover {
    color: var(--else-hb-primary);
}
.handbook-category-back.start:hover {
    color: var(--start-hb-primary);
}
.handbook-category-back.tips:hover {
    color: var(--tips-hb-primary);
}
.contents{
    width:1080px;
    margin: auto;
    margin-bottom: 12rem;
}
.handbook-docs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 2rem;
    align-items: start;

    width: min(
        var(--hb-content-width),
        calc(100% - 48px)
    );
    margin: 0 auto;
    padding: 2rem 0;
    margin-bottom: 1rem;
}

.handbook-docs-content {
    min-width: 0;
}

/* ========================================
   페이지 제목
======================================== */

.handbook-docs-title {
    position: relative;
    overflow: hidden;

    margin-bottom: 64px;
    padding: 42px 190px 42px 46px;

    border-radius: 24px;
}
.handbook-docs-title.earthquake{
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            var(--earthquake-hb-primary-soft) 100%
        );
    border: 1px solid #f4cccc;
}
.handbook-docs-title.rain{
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            var(--rain-hb-primary-soft) 100%
        );
    border: 1px solid #abcfff;
}
.handbook-docs-title.else{
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            var(--else-hb-primary-soft) 100%
        );
    border: 1px solid #b4b4b4;
}
.handbook-docs-title.start{
    background:
        linear-gradient(
            135deg,
            #fafffd 0%,
            var(--start-hb-primary-soft) 100%
        );
    border: 1px solid #b4b4b4;
}
.handbook-docs-title.tips{
    background:
        linear-gradient(
            135deg,
            #fffcfa 0%,
            var(--tips-hb-primary-soft) 100%
        );
    border: 1px solid #d1b176;
}
.handbook-docs-title > *:not(.handbook-docs-title-icon) {
    position: relative;
    z-index: 1;
}
.handbook-docs-title-icon {
    position: absolute;
    z-index: 0;
    top: 50%;
    right: 42px;
    width: 112px;
    height: 112px;
    object-fit: contain;
    opacity: 0.14;
    transform: translateY(-50%);
    pointer-events: none;
    user-select: none;
}

.handbook-docs-label-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;

    margin-bottom: 1.1rem;
}

.handbook-docs-label-box > img {
    display: block;

    width: 1.7rem;
    height: 1.7rem;

    opacity: 0.45;
    object-fit: contain;
}

.handbook-docs-content-label {
    position: relative;
    z-index: 1;

    display: inline-flex;
    align-items: center;

    min-height: 30px;
    padding: 0 10px;

    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;

    border: 1px solid transparent;
    border-radius: 7px;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

/* 지진・해일 카테고리 */

.handbook-docs-label-box.earthquake
.handbook-docs-content-label {
    color: var(--earthquake-hb-primary-dark);
    background: var(--earthquake-hb-primary-soft);
    border-color: transparent;
}

.handbook-docs-label-box.rain
.handbook-docs-content-label {
    color: var(--rain-hb-primary-dark);
    background: var(--rain-hb-primary-soft);
    border-color: transparent;
}

.handbook-docs-label-box.else
.handbook-docs-content-label {
    color: var(--else-hb-primary-dark);
    background: var(--else-hb-primary-soft);
    border-color: transparent;
}

.handbook-docs-label-box.start
.handbook-docs-content-label {
    color: var(--start-hb-primary-dark);
    background: var(--start-hb-primary-soft);
    border-color: transparent;
}

.handbook-docs-label-box.tips
.handbook-docs-content-label {
    color: var(--tips-hb-primary-dark);
    background: var(--tips-hb-primary-soft);
    border-color: transparent;
}

.handbook-docs-label-box.earthquake
.handbook-docs-content-label:hover {
    color: var(--earthquake-hb-primary-dark);
    background: #fee2e2;
    border-color: var(--earthquake-hb-border-hover);
    transform: translateY(-1px);
}

.handbook-docs-label-box.rain
.handbook-docs-content-label:hover {
    color: var(--rain-hb-primary-dark);
    background: #e4edff;
    border-color: var(--rain-hb-border-hover);
    transform: translateY(-1px);
}

.handbook-docs-label-box.else
.handbook-docs-content-label:hover {
    color: var(--else-hb-primary-dark);
    background: #e2e2e2;
    border-color: var(--else-hb-border-hover);
    transform: translateY(-1px);
}


.handbook-docs-label-box.start
.handbook-docs-content-label:hover {
    color: var(--start-hb-primary-dark);
    background: #e2e2e2;
    border-color: var(--start-hb-border-hover);
    transform: translateY(-1px);
}

.handbook-docs-label-box.tips
.handbook-docs-content-label:hover {
    color: var(--tips-hb-primary-dark);
    background: #e2e2e2;
    border-color: var(--tips-hb-border-hover);
    transform: translateY(-1px);
}

/* 현재 문서 */

.handbook-docs-label-box.earthquake
.handbook-docs-content-label:last-child {
    font-weight: 750;
    color: var(--earthquake-hb-primary-dark);
    background: #fff;
    border-color: #f2c3c3;
}

.handbook-docs-label-box.rain
.handbook-docs-content-label:last-child {
    font-weight: 750;
    color: var(--rain-hb-primary-dark);
    background: #fff;
    border-color: #e4edff;
}

.handbook-docs-label-box.else
.handbook-docs-content-label:last-child {
    font-weight: 750;
    color: var(--else-hb-primary-dark);
    background: #fff;
    border-color: #b4b4b4;
}

.handbook-docs-label-box.start
.handbook-docs-content-label:last-child {
    font-weight: 750;
    color: var(--start-hb-primary-dark);
    background: #fff;
    border-color: #24866a;
}

.handbook-docs-label-box.tips
.handbook-docs-content-label:last-child {
    font-weight: 750;
    color: var(--tips-hb-primary-dark);
    background: #fff;
    border-color: #cd6f34;
}

.handbook-docs-label-box.earthquake
.handbook-docs-content-label:last-child:hover {
    color: #fff;
    background: var(--earthquake-hb-primary);
    border-color: var(--earthquake-hb-primary);
}

.handbook-docs-label-box.rain
.handbook-docs-content-label:last-child:hover {
    color: #fff;
    background: var(--rain-hb-primary);
    border-color: var(--rain-hb-primary);
}

.handbook-docs-label-box.else
.handbook-docs-content-label:last-child:hover {
    color: #fff;
    background: var(--else-hb-primary);
    border-color: var(--else-hb-primary);
}

.handbook-docs-label-box.start
.handbook-docs-content-label:last-child:hover {
    color: #fff;
    background: var(--start-hb-primary);
    border-color: var(--start-hb-primary);
}

.handbook-docs-label-box.tips
.handbook-docs-content-label:last-child:hover {
    color: #fff;
    background: var(--tips-hb-primary);
    border-color: var(--tips-hb-primary);
}

/* 키보드 접근성 */

.handbook-docs-content-label:focus-visible {
    outline: 3px solid rgba(220, 38, 38, 0.2);
    outline-offset: 2px;
}


.handbook-docs-title .content {
    position: relative;
    z-index: 1;
}

.handbook-docs-title h1 {
    margin: 0 0 20px;

    font-size: clamp(2.1rem, 4vw, 3rem);
    line-height: 1.2;
    letter-spacing: -0.05em;

    color: var(--hb-text);
}

.handbook-docs-title .content > div {
    max-width: 680px;
}

.handbook-docs-title p {
    margin: 5px 0 0;

    font-size: 0.98rem;
    line-height: 1.8;
    word-break: keep-all;

    color: var(--hb-subtext);
}

/* ========================================
   본문
======================================== */

.handbook-docs-content-docs {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    background-color: white;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--hb-border);
}


.handbook-docs-content-block {
    position: relative;
}

.handbook-docs-content-block h2 {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 30px;
    font-size: clamp(1.5rem, 2.7vw, 1.9rem);
    line-height: 1.4;
    letter-spacing: -0.035em;
}

.handbook-docs-content-block h2::before {
    content: "";
    flex: none;
    width: 5px;
    height: 1.2em;
    border-radius: 999px;
}

.handbook-docs-content-block.earthquake h2::before{
    background: var(--earthquake-hb-primary);
}

.handbook-docs-content-block.rain h2::before{
    background: var(--rain-hb-primary);
}

.handbook-docs-content-block.else h2::before{
    background: var(--else-hb-primary);
}

.handbook-docs-content-block.start h2::before{
    background: var(--start-hb-primary);
}

.handbook-docs-content-block.tips h2::before{
    background: var(--tips-hb-primary);
}

.handbook-docs-content-block p {
    margin-bottom: 1rem;
    line-height: 1.9;
    letter-spacing: -0.01em;
    word-break: keep-all;
}

.handbook-docs-content-block p:last-child {
    margin-bottom: 0;
}
li{
    line-height: 1.8;
}

/* ========================================
   하위 본문
======================================== */
/* 하위 목차 */

.handbook-docs-content-block-child {
    margin-top: 1.5rem;
    padding: 0;
}

.handbook-docs-content-block-child h3 {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.handbook-docs-content-block-child h3::before {
    content: "";
    position: absolute;
    top: 0.48em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.handbook-docs-content-block-child.earthquake h3::before{
    background: var(--earthquake-hb-primary);
}

.handbook-docs-content-block-child.rain h3::before{
    background: var(--rain-hb-primary);
}

.handbook-docs-content-block-child.else h3::before{
    background: var(--else-hb-primary);
}

.handbook-docs-content-block-child.start h3::before{
    background: var(--start-hb-primary);
}

.handbook-docs-content-block-child.tips h3::before{
    background: var(--tips-hb-primary);
}

.handbook-docs-content-block-child p {
    margin-bottom: 1rem;
    line-height: 1.95;
    letter-spacing: -0.01em;
    word-break: keep-all;

    color: var(--hb-body);
}

.handbook-docs-content-block-child p:last-child {
    margin-bottom: 0;
}
/* ========================================
   오른쪽 영역
======================================== */

.handbook-docs-right {
    position: sticky;
    top: 76px;

    display: flex;
    flex-direction: column;
    gap: 16px;

    min-width: 0;
}

.handbook-right-box {
    padding: 22px 18px;

    background: white;
    border: 1px solid var(--hb-border);
    border-radius: 17px;
    box-shadow: 0 8px 28px rgba(31, 48, 72, 0.05);
}

.handbook-right-box h4 {
    margin: 0 0 16px;
    padding: 0 8px 14px;

    font-size: 0.9rem;
    line-height: 1.4;

    color: var(--hb-text);
    border-bottom: 1px solid var(--hb-border);
}


/* ========================================
   오른쪽 목차
======================================== */

.index-box .index,
.index-box .index ul {
    padding: 0;
    margin: 0;

    list-style: none;
}

.index-box .index {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.index-box .index > li {
    min-width: 0;
}

.index-box .index ul {
    position: relative;

    margin: 2px 0 5px 17px;
    padding-left: 8px;

    border-left: 1px solid var(--hb-border);
}

.index-box .link_box {
    cursor: pointer;
    position: relative;

    display: block;

    padding: 5px 10px;

    font-size: 0.84rem;
    line-height: 1.5;
    text-decoration: none;
    word-break: keep-all;

    color: var(--hb-subtext);
    border-radius: 9px;
}

.index-box .index ul .link_box {
    padding: 5px 10px;
    font-size: 0.77rem;
}

.index-box .link_box:hover {
    color: var(--label-color);
    background: #f9741618;
}

.index-box li.active > .link_box,
.index-box .link_box.active {
    font-weight: 700;
    color: var(--label-color);
    background: #f9741618;
}
.index-box li.active > .link_box::before,
.index-box .link_box.active::before {
    content: "";

    position: absolute;
    top: 50%;
    left: 0;

    width: 3px;
    height: 18px;

    background: var(--label-color);
    border-radius: 0 999px 999px 0;
    transform: translateY(-50%);
}
.index-box .index > li.has-children > .link_box,
.handbook-mobile-index-list > li.has-children > .link_box {
    padding-right: 38px;
}
.index-toggle-button {
    position: absolute;
    top: 0px;
    right: 4px;
    z-index: 2;

    display: grid;
    place-items: center;

    width: 30px;
    height: 30px;
    padding: 0;

    color: var(--hb-subtext);
    background: transparent;
    border: 0;
    border-radius: 7px;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.index-toggle-button:hover {
    color: var(--label-color);
    background: #f9741618;
}

.index-toggle-button:focus-visible {
    outline: 2px solid var(--earthquake-hb-border-hover);
    outline-offset: 1px;
}

/* 화살표 */

.index-toggle-button::before {
    content: "";

    width: 7px;
    height: 7px;

    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;

    transform: translateY(-2px) rotate(45deg);

    transition: transform 0.2s ease;
}

/* 펼쳐진 상태 */

.has-children.is-expanded > .index-toggle-button::before {
    transform: translateY(2px) rotate(225deg);
}
.has-children > ul {
    overflow: hidden;

    max-height: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;

    opacity: 0;
    visibility: hidden;

    transition:
        max-height 0.28s ease,
        margin 0.28s ease,
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.has-children.is-expanded > ul {
    max-height: 600px;
    margin-top: 2px !important;
    margin-bottom: 5px !important;

    opacity: 1;
    visibility: visible;
}

/* 현재 하위 항목이 활성화됐을 때 부모도 표시 */

.has-children.has-active-child > .link_box {
    color: var(--label-color);
}

/* 모바일 버튼 위치 조정 */

.handbook-mobile-index-list > li > .index-toggle-button {
    top: 6px;
    right: 3px;
}
.index-box .index > li:has(ul) > .link_box {
    padding-right: 28px;
}

/* ========================================
   출처
======================================== */

.source-box > a {
    position: relative;

    display: block;

    padding: 12px 35px 12px 13px;

    font-size: 0.8rem;
    line-height: 1.55;
    text-decoration: none;
    word-break: break-word;

    color: var(--hb-subtext);
    background: var(--hb-background);
    border-radius: 9px;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
    margin-bottom: .5rem;
}
.source-box > a:last-child{
    margin-bottom: 0;
}

.source-box > a::after {
    content: "↗";

    position: absolute;
    top: 50%;
    right: 13px;

    transform: translateY(-50%);
}
.source-box.earthquake > a::after{
    color: var(--earthquake-hb-primary);
}

.source-box.earthquake > a:hover {
    color: var(--earthquake-hb-primary-dark);
    background: var(--earthquake-hb-primary-soft);
}

.source-box.rain > a::after{
    color: var(--rain-hb-primary);
}

.source-box.rain > a:hover {
    color: var(--rain-hb-primary-dark);
    background: var(--rain-hb-primary-soft);
}

.source-box.else > a::after{
    color: var(--else-hb-primary);
}

.source-box.else > a:hover {
    color: var(--else-hb-primary-dark);
    background: var(--else-hb-primary-soft);
}

.source-box.start > a::after{
    color: var(--start-hb-primary);
}

.source-box.start > a:hover {
    color: var(--start-hb-primary-dark);
    background: var(--start-hb-primary-soft);
}

.source-box.tips > a::after{
    color: var(--tips-hb-primary);
}

.source-box.tips > a:hover {
    color: var(--tips-hb-primary-dark);
    background: var(--tips-hb-primary-soft);
}

.source-box > a.jp::before {
    content: "JP";

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 25px;
    min-height: 19px;
    margin-right: 7px;

    font-size: 0.58rem;
    font-weight: 800;
    vertical-align: 1px;

    background: #fff;
    border: 1px solid #efc7c7;
    border-radius: 5px;
}
.source-box > a.en::before {
    content: "EN";

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 25px;
    min-height: 19px;
    margin-right: 7px;

    font-size: 0.58rem;
    font-weight: 800;
    vertical-align: 1px;

    background: #fff;
    border: 1px solid #efc7c7;
    border-radius: 5px;
}
.source-box.earthquake > a.jp::before {
    color: var(--earthquake-hb-primary-dark);
}
.source-box.rain > a.jp::before {
    color: var(--rain-hb-primary-dark);
}
.handbook-mobile-index {
    display: none;

    margin-bottom: 48px;

    background: #fff;
    border: 1px solid var(--hb-border);
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(31, 48, 72, 0.05);
}

/* 열기 버튼 */

.handbook-mobile-index-button {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    min-height: 58px;
    padding: 0 17px;

    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: left;

    color: var(--hb-text);
    background: transparent;
    border: 0;

    cursor: pointer;
}

.handbook-mobile-index-button:focus-visible {
    outline: 3px solid rgba(220, 38, 38, 0.2);
    outline-offset: 3px;
    border-radius: 15px;
}

.handbook-mobile-index-icon {
    display: grid;
    place-items: center;

    flex: none;
    width: 28px;
    height: 28px;

    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1;

    color: var(--label-color);
    background: #f9741618;
    border-radius: 50%;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

/* 목차 목록 */

.handbook-mobile-index-list {
    display: none;

    padding: 8px 14px 14px;
    margin: 0;

    list-style: none;
    border-top: 1px solid var(--hb-border);
}

.handbook-mobile-index.is-open
.handbook-mobile-index-list {
    display: block;
}

.handbook-mobile-index.is-open
.handbook-mobile-index-icon {
    transform: rotate(45deg);
}

/* 최상위 목차 */
.index-box .index > li,
.handbook-mobile-index-list > li {
    position: relative;
}

.handbook-mobile-index-list > li {
    border-bottom: 1px solid var(--hb-border-light);
}

.handbook-mobile-index-list > li:last-child {
    border-bottom: 0;
}

.handbook-mobile-index-list .link_box {
    position: relative;

    display: block;

    padding: 13px 10px;

    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    word-break: keep-all;

    color: var(--hb-subtext);
    border-radius: 9px;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}
/* 하위 목차 */

.handbook-mobile-index-list ul {
    position: relative;

    padding: 0 0 7px 16px;
    margin: 0 0 3px 11px;

    list-style: none;
    border-left: 1px solid var(--hb-border);
}

.handbook-mobile-index-list ul .link_box {
    padding: 9px 10px;
    font-size: 0.78rem;
    font-weight: 500;
}

/* ========================================
   선택 영역
======================================== */

::selection {
    color: var(--earthquake-hb-primary-dark);
    background: #fee2e2;
}
.tg {
    border-collapse: collapse;
    border-spacing: 0;
    margin: auto;
    margin-top: 1rem;
    margin-bottom: 2rem;
}
.tg td {
    border-color: black;
    border-style: solid;
    border-width: 1px;
    overflow: hidden;
    padding: 1.5rem 3rem;
    word-break: normal;
}
.tg th {
    border-color: black;
    border-style: solid;
    border-width: 1px;
    font-weight: normal;
    overflow: hidden;
    padding: 1.5rem 3rem;
    word-break: normal;
}
.tg .tg-1wig {
    font-weight: bold;
    text-align: center;
}
.tg .tg-0lax {
    text-align: center;
}
.handbookBlock > img{
    width:100%;
    margin-bottom: 1rem;
}
.intTable, .sodok-table{
    border:1px solid #ccc;
    border-collapse: collapse;
    width:100%;
}
.intTable th, .intTable td{
    border:1px solid #ccc;
    padding: 0.5rem 1rem;
}
.tdTitle{
    text-align: center;
}
th, .sodok-table .tdTitle{
    background-color: rgba(0, 0, 0, 0.05);
}
.sodok-table th, .sodok-table td{
    border:1px solid #ccc;
    padding: 1rem;
}
.sodok-table .tdTitle{
    line-height: 1.8;
    font-weight: 700;
    min-width: 4rem;
}
.sodok-table ol{
    margin: 0;
    margin-top: .7rem;
    padding-inline-start: 1.5rem;
}
.full-img{
    width:100%;
    margin-bottom: 3rem;
}
.img-text-box > .full-img{
    margin-bottom: 1rem;
}

.docs-ul{
    padding-inline-start: 2rem;
}
.docs-ul > li {
    line-height : 1.7;
    margin-bottom: .5rem;
}

.underline{
    text-decoration: underline;
    text-decoration-thickness: 3px;
    font-weight: bold;
}
.ulYellow{
    text-decoration-color: rgb(255, 208, 0);
}

.messageBox{
    border:1px solid #ccc;
    padding:1rem;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin-top:1rem;
    margin-bottom: 2rem;
}
.right-img{
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.right-img img{
    width:40%;
    height: 100%;
}

.full-img img{
    width: 100%;
}

.box2{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.box2child{
    width:49%;
    height: stretch;
}
.img-text-box{
    margin-top: 1rem;
}
.img-text-box img{
    width: 100%;
}
.img-text-box p{
    text-align: center;
    color: #898989;
    font-size: 0.85rem;
}
.handbook-tips{
    border-radius: 1rem;
    overflow: hidden;
    margin: 1rem 0;
    padding: 16px;
}
.handbook-tips ul{
    margin:0px;
}
.handbook-tips li{
    line-height: 1.8;
}
.handbook-tips p{
    padding: 3px 0px;
    margin-bottom: 0;
}
.tips-caution{
    background-color: #FFF8E6;
    border-left: 5px solid #e6a700;
    color: #4d3800;
}
.tips-check{
    background-color: #ddf0ff;
    border-left: 5px solid #187de3;
    color: #00184d;
}
.tips-info{
    background-color: #EEf9FD;
    border-left: 5px solid #4cb3d4;
    color: #193c47;
}
.handbook-tips-head{
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}
.handbook-tips-head img{
    height: 1.7rem;
    margin-right: .5rem;
}
.handbook-tips-body{
    padding:0.3rem 0.5rem;
}
.handbook-link {
    margin: 1.6rem 0 2.5rem;
    display: flex;
    justify-content: center;
}

.handbook-link a {
    position: relative;

    display: flex;
    align-items: center;
    gap: 0.7rem;

    width: fit-content;
    max-width: 100%;
    min-height: 42px;
    padding: 0.7rem 2.5rem 0.7rem 0.9rem;

    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    word-break: keep-all;

    color: #334155;
    background: #f8fafc;
    border: 1px solid #dbe3ec;
    border-radius: 10px;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.handbook-link a::before {
    content: "관련";

    flex: none;

    padding: 0.2rem 0.4rem;

    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;

    color: #2563eb;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 5px;
}

.handbook-link a::after {
    content: "→";

    position: absolute;
    top: 50%;
    right: 0.9rem;

    font-size: 1rem;
    font-weight: 600;

    color: #2563eb;
    transform: translateY(-50%);

    transition: transform 0.2s ease;
}

.handbook-link a:hover {
    color: #1e3a8a;
    background: #eff6ff;
    border-color: #93c5fd;

    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgb(15 23 42 / 8%);
}

.handbook-link a:hover::after {
    transform: translate(3px, -50%);
}

.handbook-link a:focus-visible {
    outline: 3px solid rgb(37 99 235 / 20%);
    outline-offset: 3px;
}
@media (max-width: 1180px){
    .contents{
        width:85%;
        margin: auto;
    }
    .box2child{
        width:100%;
    }
}
/* ========================================
   태블릿
======================================== */

@media (max-width: 960px) {
    .handbook-category-back {
        margin-left: 1rem;
    }
    .handbook-docs-title-icon {
        top:30%;
        width: 5rem;
        height: 5rem;
    }
    .handbook-docs {
        grid-template-columns: minmax(0, 1fr) 230px;
        gap: 38px;

        width: min(100% - 32px, 920px);
    }

    .handbook-docs-title {
        padding: 36px 34px;
    }

    .handbook-right-box {
        padding: 19px 15px;
    }

    .tg td, .tg th {
        padding: .5rem 1rem;
    }
    .right-img {
        display: flex;
        flex-direction: column-reverse;
    }
    .right-img img{
        margin: auto;
        margin-top: 0.5rem;
        width:60%;
    }
}

/* ========================================
   모바일
======================================== */

@media (max-width: 760px) {
    .handbook-docs-label-box {
        gap: 0.35rem;
        margin-bottom: 0.9rem;
    }

    .handbook-docs-content-label {
        min-height: 28px;
        padding: 0 8px;

        font-size: 0.69rem;
    }

    .handbook-docs-label-box > img {
        width: 1rem;
        height: 1rem;
    }
    .contents{
        width:100%;
        margin: auto;
    }
    .handbook-docs {
        display: block;
        width: min(100% - 28px, 680px);
        padding: 30px 0 3rem;
    }

    .handbook-docs-right {
        margin-top: 3rem;
        position: static;
    }
    .handbook-right-box.index-box{
        display: none;
    }

    .handbook-docs-title {
        margin-bottom: 48px;
        padding: 32px 26px;
        border-radius: 19px;
    }

    .handbook-docs-title h1 {
        margin-bottom: 16px;
        font-size: 2.1rem;
    }

    .handbook-docs-title p {
        font-size: 0.9rem;
        line-height: 1.75;
    }

    .handbook-docs-content-docs {
        gap: 2.5rem;
    }

    .handbook-docs-content-block h2 {
        margin-bottom: 25px;
    }

    .handbook-docs-content-block-child h3 {
        margin-bottom: 18px;
        font-size: 1.25rem;
    }
    .handbook-mobile-index {
        display: block;
    }
}

@media (max-width: 480px) {
    .handbook-docs {
        width: calc(100% - 24px);
        padding-top: 20px;
    }

    .handbook-docs-title {
        margin-bottom: 42px;
        padding: 27px 21px;
        border-radius: 16px;
    }

    .handbook-docs-content-label {
        padding: 6px 10px;
        font-size: 0.7rem;
    }

    .handbook-docs-title h1 {
        font-size: 1.9rem;
    }

    .handbook-docs-content-docs {
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .handbook-docs-content-block h2 {
        gap: 11px;
        font-size: 1.38rem;
    }

    .handbook-docs-content-block h2::before {
        width: 4px;
    }

    .handbook-docs-content-block p,
    .handbook-docs-content-block-child p {
        font-size: 0.9rem;
        line-height: 1.8;
    }
    li{
        font-size: 0.9rem;
    }
    .handbook-docs-content-block a,
    .handbook-docs-content-block-child a {
        font-size: 0.9rem;
        line-height: 1.8;
    }

    .handbook-mobile-index {
        margin-bottom: 40px;
        border-radius: 13px;
    }

    .handbook-mobile-index-button {
        min-height: 54px;
        padding: 0 15px;

        font-size: 0.84rem;
    }

    .handbook-mobile-index-icon {
        width: 26px;
        height: 26px;
        font-size: 1.05rem;
    }

    .handbook-mobile-index-list {
        padding: 6px 11px 11px;
    }

    .handbook-mobile-index-list .link_box {
        padding: 12px 9px;
        font-size: 0.84rem;
    }

    .handbook-mobile-index-list ul .link_box {
        padding: 8px 9px;
        font-size: 0.75rem;
    }
    .handbook-link {
        margin: 1.4rem 0 2.5rem;
    }
    .handbook-link a {
        width: 100%;
        padding: 0.7rem 2.3rem 0.7rem 0.8rem;

        font-size: 0.8rem;
    }

    .handbook-link a::before {
        font-size: 0.6rem;
    }
}

@media (max-width: 850px) {
    .handbook-category {
        width: min(100% - 32px, 680px);
        padding: 4rem 0 0px;
        margin-bottom: 4rem;
    }

    .handbook-document-list {
        grid-template-columns: 1fr;
    }

    .handbook-document-card:first-child {
        grid-column: auto;
    }

    .handbook-document-card {
        min-height: 0;
    }
}
@media (max-width: 660px) {
    .handbook-header-inner.is-scrollable::after {
        display: flex;
    }

    .handbook-header-inner.is-scroll-end::after {
        opacity: 0;
        visibility: hidden;
    }

    .handbook-header-nav {
        padding-right: 38px;
    }
    .handbook-header-inner.has-scrolled::before {
        display: flex;
    }
}
@media (max-width: 600px) {
    .handbook-category {
        width: calc(100% - 24px);
        padding: 3rem 0 0;
    }

    .handbook-category-intro {
        margin-bottom: 3rem;
        padding-left: 1.5rem;
    }

    .handbook-category-intro::before {
        width: 4px;
    }

    .handbook-category-intro h1 {
        font-size: 2rem;
    }

    .handbook-document-list {
        gap: 12px;
    }

    .handbook-document-card {
        display: block;
        padding: 23px 20px;
        border-radius: 17px;
    }

    .handbook-document-card::after {
        border-radius: 0 0 17px 0;
    }

    .handbook-document-card-number {
        display: block;
        margin-bottom: 12px;
        padding: 0;
        font-size: 0.7rem;
    }

    .handbook-document-card-number::after {
        display: none;
    }

    .handbook-document-card-heading {
        margin-bottom: 11px;
    }

    .handbook-document-card-description {
        margin-bottom: 1.5rem;
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .handbook-document-card-topics {
        gap: 6px;
        margin-bottom: 22px;
    }

    .handbook-document-card-topics li {
        padding: 6px 9px;
        font-size: 0.7rem;
    }

    .handbook-document-card-footer {
        padding-top: 15px;
    }

    .handbook-document-card-link {
        font-size: 0.76rem;
    }
}