* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: #f3f8f5;
    color: #102c2b;
    font-family: system-ui, 'Malgun Gothic', sans-serif;
    font-size: 18px
}

html,
body {
    overflow-x: hidden
}

/* v10: 고정 폭(760px) 제한 제거 — 화면 전체 너비 사용. 본문 폭은 아래 .page 에서 관리 */
:root {
    --gutter: clamp(12px, 3.2vw, 56px);
    --content: 1680px
}

main {
    width: 100%;
    margin: 0;
    background: white;
    min-height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column
}

button,
a.action {
    font: inherit;
    cursor: pointer;
    border: 1px solid #bfd9d1;
    border-radius: 14px;
    background: white;
    color: #102c2b;
    padding: 14px;
    min-height: 56px;
    text-decoration: none
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid #e59c45
}

button.primary,
a.action {
    background: #007d68;
    color: white;
    border: 0;
    display: block;
    text-align: center;
    width: 100%;
    font-weight: 700
}

button:disabled {
    opacity: .45;
    cursor: default
}

h1 {
    font-size: 1.6em;
    line-height: 1.4
}

h2 {
    font-size: 1.25em
}

p {
    line-height: 1.65
}

img {
    max-width: 100%;
    display: block
}

header {
    display: flex;
    align-items: center;
    gap: 8px
}

header img {
    width: 57%;
    margin-right: auto
}

header button {
    padding: 8px;
    min-height: 44px
}

.hero {
    width: 100%
}

.mic {
    display: block;
    border: 0;
    padding: 0;
    margin: -20px auto 0;
    width: 64%;
    background: transparent
}

.mic img {
    width: 100%
}

.center {
    text-align: center
}

.pill {
    background: #e6f5ef;
    border-radius: 40px;
    padding: 14px;
    text-align: center
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.tile {
    display: flex;
    align-items: center;
    text-align: left;
    font-weight: 750;
    gap: 8px;
    line-height: 1.45
}

.tile img {
    width: 29%;
    flex-shrink: 0
}

.tile span {
    flex: 1
}

.nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-top: 28px;
    border-top: 1px solid #dde7e3;
    padding-top: 12px
}

.nav button {
    border: 0;
    padding: 6px;
    font-size: .85em
}

.nav img {
    width: 40px;
    margin: auto
}

.nav button:first-child {
    background: #dcf4eb
}

.options {
    display: grid;
    gap: 10px
}

.option {
    text-align: left;
    width: 100%
}

.selected {
    background: #dff5ec;
    border: 2px solid #007d68
}

.row {
    display: flex;
    gap: 12px;
    margin-top: 20px
}

.row>* {
    flex: 1
}

.muted {
    font-size: .83em;
    color: #516661
}

progress {
    width: 100%;
    accent-color: #007d68
}

section.card,
details {
    border: 1px solid #d3e3dc;
    border-radius: 14px;
    padding: 16px;
    margin: 12px 0
}

summary {
    cursor: pointer;
    font-weight: 700
}

textarea {
    width: 100%;
    font: inherit;
    padding: 12px;
    border: 1px solid #aac8be;
    border-radius: 10px
}

select {
    font: inherit;
    width: 100%;
    padding: 10px;
    margin: 6px 0 16px
}

.cover {
    background: #f4f2e9;
    text-align: center;
    border-radius: 18px;
    padding: 16px
}

.cover img {
    border-radius: 16px;
    width: 100%
}

.cover .grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 10px
}

.cover .grid button {
    font-size: .85em;
    padding: 8px
}

.large {
    font-size: 21px
}

.xlarge {
    font-size: 24px
}

@media(max-width:480px) {
    .tile {
        padding: 8px;
        font-size: .92em
    }

    .tile img {
        width: 26%
    }

    .nav button {
        font-size: .75em
    }
}

@media(max-width:380px) {

    .large .grid,
    .xlarge .grid {
        grid-template-columns: 1fr
    }
}

.service-list {
    display: grid;
    gap: 12px
}

.service-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border: 1px solid #d3e3dc;
    border-radius: 16px;
    padding: 14px;
    background: #fff
}

.service-card>img {
    width: 112px;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0
}

.service-copy {
    flex: 1;
    min-width: 0
}

.service-copy h3 {
    font-size: 1.08em;
    margin: 0 0 6px;
    color: #006b58
}

.service-copy p {
    margin: 0;
    line-height: 1.55;
    overflow-wrap: anywhere
}

.service-copy details {
    margin: 10px 0 0;
    padding: 8px 0 0;
    border: 0;
    border-top: 1px solid #e3ece7;
    border-radius: 0
}

.service-copy summary {
    font-size: .85em;
    color: #006b58
}

.service-copy details p {
    margin-top: 8px;
    font-size: .9em
}

@media(max-width:480px) {
    .service-card {
        gap: 10px;
        padding: 10px
    }

    .service-card>img {
        width: 86px
    }
}

@media(max-width:380px) {
    .xlarge .service-card {
        flex-direction: column
    }
}

.nav button:first-child {
    background: white
}

.nav button.active {
    background: #dcf4eb
}

.option {
    display: flex;
    align-items: center;
    gap: 14px
}

.choice-mark {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 2px solid #657d88;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white
}

.choice-mark.circle {
    border-radius: 50%
}

.choice-mark.square {
    border-radius: 5px
}

.choice-mark.on {
    background: #006b62;
    border-color: #006b62
}

.find-link {
    display: block;
    margin-top: 12px;
    color: #006b58;
    font-weight: 700;
    width: 100%;
    text-align: center
}

.institution {
    width: 100%;
    text-align: left;
    align-items: center
}

.institution.selected {
    background: #dff5ec;
    border: 2px solid #007d68
}

input[type=checkbox] {
    width: 22px;
    height: 22px;
    accent-color: #007d68;
    vertical-align: middle
}

.recognition-flow {
    list-style: none;
    padding: 0;
    margin: 16px 0 24px;
    display: grid;
    gap: 30px
}

.recognition-flow li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid #c9e1d7;
    border-radius: 16px;
    background: #f3faf7
}

.recognition-flow li:not(:last-child)::after {
    content: "↓";
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #007d68;
    font-size: 24px;
    line-height: 30px;
    font-weight: 700
}

.flow-icon {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    border-radius: 50%;
    background: #d8f2e8;
    color: #007d68;
    display: grid;
    place-items: center
}

.flow-icon svg {
    width: 36px;
    height: 36px
}

.flow-copy {
    flex: 1;
    min-width: 0
}

.flow-meta {
    color: #006b58;
    font-size: .83em;
    font-weight: 700
}

.flow-copy h3 {
    font-size: 1.08em;
    line-height: 1.4;
    margin: 5px 0
}

.flow-copy p {
    margin: 0;
    line-height: 1.55;
    font-size: .94em
}

.branch-link {
    width: 100%;
    background: #e0f3ec;
    color: #006b58;
    font-weight: 700
}

@media(max-width:480px) {
    .recognition-flow li {
        gap: 10px;
        padding: 12px
    }

    .flow-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px
    }

    .flow-icon svg {
        width: 28px;
        height: 28px
    }
}

.guide-banner {
    margin: 16px 0;
    border: 1px solid #b9d9ce;
    border-radius: 16px;
    padding: 16px;
    background: #f3faf7
}

.guide-banner>summary {
    color: #007d68;
    font-weight: 700;
    cursor: pointer
}

.method-list {
    display: grid;
    gap: 8px;
    margin-top: 16px
}

.method-item {
    background: white;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #d5e6df
}

.method-item p {
    margin: 5px 0 0
}

.guide-warning {
    color: #9a3412;
    background: #fff5e8;
    padding: 12px;
    border-radius: 10px
}

.recognition-flow li:first-child {
    flex-wrap: wrap
}

.recognition-flow li:first-child .flow-copy {
    flex: 1 1 60%
}

/* (신청방법 스타일은 하단 v10 섹션으로 이동) */

.cover-intro {
    text-align: center;
    line-height: 1.65;
    word-break: keep-all;
    overflow-wrap: break-word;
    margin: 18px auto
}

.cover-intro span {
    display: block
}

.progress-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    margin: 16px 0;
    padding: 14px 8px;
    flex-wrap: wrap
}

.progress-stage {
    display: inline-flex;
    align-items: center;
    gap: .3em;
    white-space: nowrap
}

.stage-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4em;
    height: 1.4em;
    flex-shrink: 0;
    border-radius: 50%;
    background: #007d68;
    color: #fff;
    font-weight: 700;
    line-height: 1
}

.stage-arrow {
    color: #007d68
}

@media(max-width:480px) {
    .progress-pill {
        font-size: .82em;
        gap: .35em;
        padding: 12px 5px
    }
}


/* ===== 안내 고지 박스 (v9): 결과 화면 공식 판정 아님 / 제도 안내 기준일 ===== */
.notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #e6f5ef;
    border: 1px solid #b9d9ce;
    border-left: 5px solid #007d68;
    border-radius: 14px;
    padding: 14px 16px;
    margin: 12px 0 16px
}

.notice-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #007d68;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, serif;
    line-height: 1;
    margin-top: 1px
}

.notice strong {
    display: block;
    word-break: keep-all;
    color: #005f4f;
    line-height: 1.5
}

.notice p {
    word-break: keep-all;
    overflow-wrap: break-word;
    margin: 4px 0 0;
    line-height: 1.6;
    font-size: .94em;
    color: #2b4a45
}

.basis-note {
    margin-top: 20px
}

.basis-note strong {
    font-size: 1.08em
}

@media(max-width:480px) {
    .notice {
        padding: 12px;
        gap: 10px
    }
}
/* ===================================================================
   v10 전체 화면 반응형 레이아웃 (공통)
   - main: 화면 전체 너비 / header·.nav: 전체 너비 띠
   - .page: 본문 공통 컨테이너(유동 폭, 최대 1680px), 화면별로 가독 폭만 조정
   - 기준: PC ≥1024px, 태블릿 600~1023px, 스마트폰 <600px
   =================================================================== */

/* 헤더: 전체 너비 흰 띠, 로고는 본문 시작선에 정렬 */
header {
    padding: 10px max(var(--gutter), calc((100% - var(--content)) / 2 + var(--gutter)));
    border-bottom: 1px solid #e1ece7;
    background: #fff;
    position: relative;
    z-index: 2
}

header img {
    width: min(57%, 420px)
}

/* 본문 공통 컨테이너 */
.page {
    flex: 1 0 auto;
    width: 100%;
    max-width: var(--content);
    margin: 0 auto;
    padding: 24px var(--gutter) 8px;
    min-width: 0
}

.page h1,
.page h2,
.page h3,
.page p,
.page summary,
.page label {
    word-break: keep-all;
    overflow-wrap: break-word
}

/* 긴 안내 문장은 한 줄이 지나치게 길어지지 않도록 */
.page>p,
.page>details>p,
.page .card>p {
    max-width: 64em
}

/* 화면별 가독 폭: 홈 1280px / 질문 1040px / 결과·안내 1680px */
main[data-screen="home"] .page {
    max-width: 1280px
}

main[data-screen="question"] .page {
    max-width: 1040px
}

/* 하단 메뉴: 전체 너비 띠, 버튼 묶음은 가운데 960px. 화면 흐름 안에 있어 본문을 가리지 않음 */
.nav {
    margin-top: 32px;
    padding: 10px max(var(--gutter), calc((100% - 960px) / 2)) calc(10px + env(safe-area-inset-bottom, 0px));
    background: #f7fbf9;
    border-top: 1px solid #dde7e3
}

.nav button {
    min-height: 64px;
    line-height: 1.3;
    word-break: keep-all
}

/* ---- 첫 화면 (v8 유지): 16:9 원본 이미지를 가로 100%, 잘림·왜곡 없음 ---- */
main[data-screen="cover"] {
    background: #f4f2e9
}

.cover {
    border-radius: 0;
    padding: 0;
    background: #f4f2e9
}

.cover .cover-visual {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f4f2e9
}

.cover .cover-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    max-width: none
}

.cover-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 28px 24px 40px;
    text-align: center
}

.cover-body>.primary {
    max-width: 560px;
    margin: 8px auto 0;
    font-size: 1.1em;
    min-height: 64px
}

.cover-body .grid {
    max-width: 560px;
    margin: 12px auto 0
}

.cover-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap
}

@media(max-width:820px) {
    .cover-title {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        white-space: normal
    }

    h2.cover-title {
        font-size: 1.35em;
        color: #007d68;
        margin: 0 0 6px
    }

    p.cover-title {
        margin: 0 0 4px;
        word-break: keep-all
    }
}

@media(max-width:600px) {
    .cover-body {
        padding: 20px 16px 32px
    }

    .cover-body .grid {
        grid-template-columns: 1fr
    }

    .cover-body .grid button {
        font-size: 1em;
        padding: 12px;
        min-height: 56px
    }
}

/* ---- 홈 ---- */
.hero {
    max-width: 906px;
    margin: 0 auto
}

@media(min-width:1024px) {
    main[data-screen="home"] .page>.grid {
        grid-template-columns: repeat(4, minmax(0, 1fr))
    }

    .xlarge main[data-screen="home"] .page>.grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    main[data-screen="home"] .tile {
        flex-direction: column;
        text-align: center;
        padding: 18px 14px
    }

    main[data-screen="home"] .tile img {
        width: 96px
    }
}

/* ---- 질문 화면: 선택지는 PC에서 2열(큰 글자일 때 1열) ---- */
.option,
.options label {
    min-height: 56px
}

.option span:last-child {
    overflow-wrap: break-word;
    word-break: keep-all;
    min-width: 0
}

@media(min-width:1024px) {
    main[data-screen="question"] .options {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .xlarge main[data-screen="question"] .options {
        grid-template-columns: 1fr
    }

    main[data-screen="question"] .row {
        max-width: 640px;
        margin-left: auto;
        margin-right: auto
    }
}

/* ---- 결과·안내: 서비스 카드 태블릿 2열 / PC 3열 ---- */
@media(min-width:768px) {
    .service-list {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .service-card {
        height: 100%
    }
}

@media(min-width:1280px) {
    .service-list {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }

    .large .service-list,
    .xlarge .service-list {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(min-width:1600px) {
    .large .service-list {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

/* 연락처 버튼: 태블릿 이상 2열 */
.contact-actions {
    margin: 16px 0
}

.contact-actions p {
    margin: 0 0 10px
}

@media(min-width:768px) {
    .contact-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px
    }

    .contact-actions p {
        margin: 0
    }

    .contact-actions .action {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center
    }
}

.page>button.primary {
    max-width: 640px;
    margin: 20px auto 0
}

/* ---- 관련된 응답 (접이식 배너) ---- */
.answer-banner {
    border: 1.5px solid #2f5d54;
    border-radius: 16px;
    background: #fff;
    margin: 16px 0;
    overflow: hidden
}

.answer-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 12px 16px;
    min-height: 64px;
    text-align: left
}

.answer-toggle:hover {
    background: #f6fbf9
}

.answer-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #dcf1e8;
    color: #1f6b5a;
    display: grid;
    place-items: center
}

.answer-icon svg {
    width: 24px;
    height: 24px
}

.answer-title {
    flex: 1;
    min-width: 0;
    font-weight: 800;
    font-size: 1.08em;
    color: #102c2b
}

.answer-btn {
    flex-shrink: 0;
    border: 1.5px solid #2f5d54;
    border-radius: 10px;
    padding: 8px 14px;
    font-weight: 700;
    white-space: nowrap;
    background: #fff;
    color: #1f3d38
}

.answer-caret {
    font-size: .8em
}

.answer-list {
    list-style: none;
    margin: 0;
    padding: 0 16px 16px;
    display: grid;
    gap: 8px
}

.answer-list[hidden] {
    display: none
}

.answer-row {
    display: grid;
    grid-template-columns: 17em minmax(0, 1fr);
    gap: 4px 16px;
    align-items: center;
    background: #f2f6f4;
    border-radius: 10px;
    padding: 10px 14px
}

.answer-q {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0
}

.answer-num {
    flex-shrink: 0;
    min-width: 3.1em;
    text-align: center;
    border: 1.5px solid #9cb8ae;
    border-radius: 6px;
    background: #fff;
    padding: 1px 6px;
    font-size: .85em;
    font-weight: 700;
    color: #24453f;
    white-space: nowrap
}

.answer-key {
    color: #4d625d;
    word-break: keep-all;
    overflow-wrap: break-word;
    line-height: 1.4
}

.answer-val {
    font-weight: 700;
    color: #102c2b;
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: anywhere;
    min-width: 0
}

.answer-val ul {
    margin: 0;
    padding-left: 1.1em;
    list-style: disc
}

@media(min-width:1280px) {
    .answer-list {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .xlarge .answer-list {
        grid-template-columns: 1fr
    }
}

@media(min-width:1700px) {
    .xlarge .answer-list {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

/* 좁은 화면·큰 글자: 질문 번호·질문명 위, 응답 아래로 줄바꿈 */
@media(max-width:599px) {
    .answer-row {
        grid-template-columns: minmax(0, 1fr)
    }

    .answer-toggle {
        padding: 10px 12px;
        gap: 10px
    }

    .answer-list {
        padding: 0 10px 12px
    }
}

@media(max-width:899px) {

    .large .answer-row,
    .xlarge .answer-row {
        grid-template-columns: minmax(0, 1fr)
    }
}

/* ---- 신청방법 6가지 (컬러 아이콘) ---- */
.compact-methods {
    width: 100%;
    border-top: 1px solid #c9e1d7;
    padding-top: 12px;
    color: #006b58
}

.compact-methods>strong {
    font-size: 1.05em
}

.compact-method-grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0
}

.compact-method {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #c9e1d7;
    border-radius: 14px;
    padding: 8px;
    color: #102c2b;
    min-width: 0
}

.method-art {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center
}

.method-art svg {
    width: 70%;
    height: 70%
}

.method-art.mint {
    background: #e1f4ec
}

.method-art.peach {
    background: #fdece0
}

.method-art.lavender {
    background: #eeeafb
}

.method-art.sky {
    background: #e3f1fc
}

.method-art.butter {
    background: #fdf4d8
}

.method-art.aqua {
    background: #dff3f3
}

.method-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3
}

.method-name {
    font-weight: 800;
    font-size: .9em;
    word-break: keep-all;
    overflow-wrap: anywhere
}

.method-sub {
    font-size: .76em;
    color: #52625e;
    margin-top: 2px;
    word-break: keep-all
}

.compact-methods p {
    font-size: .82em;
    line-height: 1.5;
    margin: 5px 0;
    color: #52625e
}

.compact-methods p.method-limit {
    color: #a33b2b
}

/* 태블릿: 3열, 이미지 위·명칭 아래 */
@media(min-width:600px) {
    .compact-method-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px
    }

    .compact-method {
        flex-direction: column;
        text-align: center;
        padding: 14px 8px 12px;
        gap: 8px
    }

    .method-art {
        width: 72px;
        height: 72px
    }

    .method-text {
        align-items: center
    }

    .method-name {
        font-size: .95em
    }

    .method-sub {
        font-size: .8em
    }
}

/* PC: 6개 가로 한 줄 */
@media(min-width:1024px) {
    .compact-method-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr))
    }

    .method-art {
        width: 80px;
        height: 80px
    }

    .xlarge .compact-method-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}

@media(min-width:1440px) {
    .xlarge .compact-method-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr))
    }
}

/* ---- 신청 절차 단계 카드: PC에서 여백 확대 ---- */
@media(min-width:1024px) {
    .recognition-flow li {
        padding: 20px 24px;
        gap: 20px
    }
}

/* ---- 그 밖의 넓은 화면 보정 ---- */
@media(min-width:1024px) {

    .guide-banner,
    section.card {
        padding: 20px 24px
    }
}

/* 아주 좁은 화면 + 큰 글자: 하단 메뉴 글자 축소로 잘림 방지 */
@media(max-width:420px) {

    .large .nav button,
    .xlarge .nav button {
        font-size: .7em;
        padding: 4px 2px
    }

    .nav img {
        width: 34px
    }
}

/* 큰 글자 + 좁은 화면에서 단계 카드가 화면 밖으로 넘치지 않도록 */
.recognition-flow {
    grid-template-columns: minmax(0, 1fr)
}

.recognition-flow>li {
    min-width: 0
}

@media(max-width:599px) {

    .large .compact-method,
    .xlarge .compact-method {
        flex-direction: column;
        text-align: center;
        gap: 6px
    }

    .large .method-text,
    .xlarge .method-text {
        align-items: center
    }
}


/* V11: approved layout preview */
@media(min-width:768px){main[data-screen="guide"]:has(.nav button:nth-child(2).active) .page,main:is([data-screen="guide"],[data-screen="facility"]):has(.nav button:nth-child(3).active) .page,main[data-screen="guide"]:has(.nav button:nth-child(4).active) .page{width:70%;max-width:none;padding-left:0;padding-right:0} main[data-screen="guide"]:has(.nav button:nth-child(2).active) .service-list{grid-template-columns:repeat(2,minmax(0,1fr))}} main:is([data-screen="guide"],[data-screen="facility"]):has(.nav button:nth-child(3).active) .page>p:has(>a.action){max-width:none;margin-left:0;margin-right:0} main:is([data-screen="guide"],[data-screen="facility"]):has(.nav button:nth-child(3).active) .page>p>a.action{width:100%}

/* V12: branch button and home hero edge only */
.branch-link { background: #006b62; color: #fff; border-color: #006b62; }
main[data-screen="home"] .hero {
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 91%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 91%, transparent 100%);
}

/* V13: common desktop content width; header and navigation unchanged. */
@media(min-width:768px){
  main[data-screen] .page, main[data-screen="cover"] .cover { width:70%; max-width:none; margin-left:auto; margin-right:auto; padding-left:0; padding-right:0; }
}

/* V14: soften only the cover image edges into the existing background. */
.cover .cover-visual img {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 94%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 94%, transparent);
    mask-composite: intersect;
}

/* V15: application PDF banner only */
.application-pdf { margin-top: 16px; padding: 16px; border: 1px solid #b9ddd0; border-radius: 14px; background: #fff; }
.application-pdf > strong { color: #00695c; }
.application-pdf > a { display: inline-block; margin: 10px 0 4px; padding: 12px 16px; border-radius: 9px; background: #00695c; color: #fff; font-weight: 700; text-decoration: none; max-width: 100%; box-sizing: border-box; }
.application-pdf > a:focus-visible { outline: 3px solid #24453f; outline-offset: 3px; }

/* V16 consultation panel only */
.consult-panel{background:#f5f3eb;border-radius:18px;padding:clamp(16px,3vw,28px);margin:20px 0;color:#102c2b;overflow-wrap:anywhere}
.consult-panel h2,.consult-panel h3{color:#245c49;margin-top:0}
.consult-panel details,.consult-panel #consult-output{background:#fff;border:1px solid #d9dfda;border-radius:12px;padding:16px;margin:12px 0}
.consult-panel fieldset{border:0;padding:0;margin:16px 0;min-width:0}
.consult-panel legend{font-weight:700;margin-bottom:8px}
.consult-panel fieldset label{display:flex;align-items:center;gap:10px;margin:8px 0;padding:8px 0;background:transparent;border:0}
.consult-panel input[type=radio]{width:1.25em;height:1.25em;flex:none;accent-color:#245c49}
.consult-panel button{width:100%;font-size:inherit;white-space:normal}
.consult-panel .primary{background:#245c49;color:white}
.consult-panel #consult-text{white-space:pre-wrap;line-height:1.7;margin-bottom:16px;user-select:text}
.consult-panel [hidden]{display:none!important}
.consult-panel #consult-status:empty{display:none}
.consult-panel .consult-hint{color:#245c49;font-size:.9em}

/* V17: clickable brand, same logo dimensions */
header .brand-cover { width: min(57%, 420px); margin-right: auto; padding: 0; min-height: 44px; border: 0; background: transparent; box-shadow: none; border-radius: 0; }
header .brand-cover img { width: 100%; margin: 0; }
header .brand-cover:focus-visible { outline: 2px solid #007e70; outline-offset: 3px; }

.branch-search {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(8em, 1fr);
  gap: .75rem;
  align-items: end;
}
.branch-search label { display: grid; gap: .35rem; font-weight: 700; }
.branch-search select, .branch-search button.primary {
  box-sizing: border-box;
  width: 100%;
  height: max(52px, 2.8em);
  min-height: 0;
  margin: 0;
  font-size: inherit;
}
.branch-search select {
  padding: .5em .65em;
  border: 1px solid #66867e;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  font: inherit;
}
.branch-search select:disabled { background: #eff4f2; }
.branch-search button.primary { padding: 0 .8em; }
.branch-results {
  display: grid;
  gap: .65rem;
  padding: 0;
  list-style: none;
}
.branch-results:empty, #branch-status:empty { margin: 0; }
.branch-results li {
  padding: .85em;
  border: 1px solid #c9e1d9;
  border-radius: 12px;
  background: #f4f9f7;
}
.branch-results li h3, .branch-results li p { margin: 0 0 .35em; }
.branch-results a { display: inline-block; padding: .4em 0; }
@media (max-width: 700px) {
  .branch-search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .branch-search button.primary { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
  .branch-search { grid-template-columns: minmax(0, 1fr); }
}

/* V20: return to previous screen from branch finder */
.branch-back { display:block; width:100%; margin: 0 0 16px; padding:12px 16px; border:1px solid #007e70; border-radius:10px; background:#e8f3ed; color:#006b62; font-weight:700; text-align:left; }
