/* DINET 재해보고시스템 소개 페이지
   /now/drs/about/  |  외부 UI 라이브러리 없음, about.js는 체험 및 등장 효과 전용
   기존 /src/css/all.css + header/menu.js + footer/footer.js 유지 */

:root {
    --drs-orange: #f97316;
    --drs-navy: #002f5f;
    --drs-text: #172333;
    --drs-muted: #647182;
    --drs-line: #e4e8ed;
    --drs-bg: #f2f2f2;
    --drs-card: #ffffff;
    --drs-fixed-header-height: 3rem; /* 공통 #header: position: fixed */
}

body:has(.drs-about) { margin: 0; }
/* 해시 링크/JS scrollIntoView가 고정된 높이 3rem 헤더에 가려지지 않도록 */
.drs-about [id]:is(section, main),
.drs-about .drs-section[id] { scroll-margin-top: calc(var(--drs-fixed-header-height) + 18px); }

.body:has(.drs-about),
.body:has(.drs-about) > .body-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.drs-about {
    width: 100%;
    min-width: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    color: var(--drs-text);
    background: var(--drs-bg);
    font-size: 16px;
    line-height: 1.72;
    word-break: keep-all;
    overflow-wrap: anywhere;
    -webkit-font-smoothing: antialiased;
}

.drs-about *,
.drs-about *::before,
.drs-about *::after { box-sizing: border-box; }

.drs-about h1, .drs-about h2, .drs-about h3,
.drs-about p, .drs-about ol, .drs-about ul { margin: 0; }
.drs-about a { color: inherit; text-decoration: none; }
.drs-about a:focus-visible, .drs-about summary:focus-visible, .drs-about button:focus-visible, .drs-about input:focus-visible, .drs-about select:focus-visible, .drs-about textarea:focus-visible { outline: 3px solid var(--drs-orange); outline-offset: 3px; }
.drs-about button, .drs-about input, .drs-about select, .drs-about textarea { font: inherit; }
.drs-about [hidden] { display: none !important; }
.drs-about h1, .drs-about h2, .drs-about h3 { letter-spacing: -.045em; line-height: 1.38; }
.drs-about h2 { font-size: clamp(27px, 3vw, 39px); font-weight: 750; }
.drs-about h3 { font-size: 19px; font-weight: 730; }

.drs-section-overline {
    color: var(--drs-orange); font-size: 13px; font-weight: 760; letter-spacing: .015em;
    margin-bottom: 16px !important;
}
.drs-section-heading { margin-bottom: 42px; }
.drs-section-heading h2 { margin-bottom: 16px; }
.drs-section-heading p:not(.drs-section-overline) { font-size: 16px; color: var(--drs-muted); max-width: 660px; line-height: 1.9; }

/* 취지 */
.drs-intro { background: #f5f6f7; }
.drs-principles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.drs-principle { background: #fff; border: 1px solid #e8ebef; border-radius: 10px; padding: 29px 26px 31px; min-height: 230px; }
.drs-number { display: block; font-size: 13px; color: var(--drs-orange); font-weight: 800; letter-spacing: .04em; margin-bottom: 30px; }
.drs-principle h3 { font-size: 20px; margin-bottom: 12px; }
.drs-principle p { color: var(--drs-muted); font-size: 14px; line-height: 1.85; }

/* 재해 종류 — 큰 카드를 쓰지 않는 3열 목록 */
.drs-categories-section { background: #fff; }
.drs-type-groups { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 30px; align-items: start; }
.drs-type-group h3 { display: flex; align-items: center; justify-content: space-between; font-size: 18px; padding: 0 0 18px; border-bottom: 2px solid #1e344a; }
.drs-type-group h3 span { color: #82909b; font-weight: 570; font-size: 13px; }
.drs-type-item { appearance: none; display: flex; width: 100%; gap: 9px; justify-content: space-between; text-align: left; align-items: center; border: 0; border-bottom: 1px solid #e9edf0; background: transparent; color: var(--drs-text); padding: 15px 1px; cursor: pointer; transition: background .2s ease, padding .2s ease; }
.drs-type-item:hover { background: #fff9f4; padding-left: 8px; }
.drs-type-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.drs-type-info strong { font-size: 15px; font-weight: 740; letter-spacing: -.03em; }
.drs-type-info small { color: #7b8997; font-size: 12px; font-weight: 480; line-height: 1.45; }
.drs-type-arrow { color: var(--drs-orange); font-size: 18px; font-weight: 400; }
.drs-category-footnote { font-size: 12px; color: #7c8895; margin-top: 24px !important; line-height: 1.7; }

/* 참여 방법 */
.drs-how { background: #f5f6f7; }
.drs-how-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 50px; row-gap: 42px; list-style: none; padding: 5px 0 0; }
.drs-how-list li { display: grid; grid-template-columns: 45px 1fr; gap: 13px; align-items: start; }
.drs-how-num { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; color: var(--drs-orange); background: #fff; border: 1px solid #f4dbc7; border-radius: 50%; font-size: 17px; font-weight: 760; font-variant-numeric: tabular-nums; }
.drs-how-list h3 { padding-top: 3px; margin-bottom: 10px; }
.drs-how-list p { font-size: 14px; color: var(--drs-muted); line-height: 1.9; }
.drs-how-note { display: flex; align-items: flex-start; gap: 12px; background: #e9eef2; border-radius: 8px; padding: 16px 20px; margin-top: 48px; }
.drs-how-note span { flex: 0 0 22px; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1px solid #a6b4c0; border-radius: 50%; color: #607890; font-family: Georgia, serif; font-size: 14px; font-weight: bold; line-height: 1; }
.drs-how-note p { font-size: 13px; color: #516476; line-height: 1.7; }

/* 등록 체험 */
.drs-demo-section { background: #fff; }
.drs-demo-section .drs-section-heading { margin-bottom: 30px; }
.drs-demo-disclaimer { display: inline-block; margin-top: 14px !important; color: #6d563f !important; background: #fff5eb; border: 1px solid #f3dec9; padding: 9px 12px; border-radius: 6px; font-size: 13px !important; max-width: none !important; line-height: 1.6 !important; }
.drs-demo-layout { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(310px,.88fr); align-items: start; gap: 23px; }
.drs-demo-form { background: #fff; border: 1px solid var(--drs-line); border-radius: 12px; padding: 30px; min-width: 0; }
.drs-demo-fieldset { min-inline-size: 0; border: 0; border-bottom: 1px solid var(--drs-line); padding: 0 0 28px; margin: 0 0 27px; }
.drs-demo-fieldset legend { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 760; margin: 0 0 22px; padding: 0; float: left; width: 100%; }
.drs-demo-fieldset legend + * { clear: both; }
.drs-demo-fieldset legend span { background: #fff1e6; width: 28px; height: 28px; border-radius: 7px; color: #df6713; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.drs-demo-label { color: #2f4050; font-size: 13px; font-weight: 720; margin: 0 0 8px !important; display: block; }
.drs-demo-label em { color: #647182; font-style: normal; font-size: 12px; font-weight: 450; margin-left: 5px; }
.drs-demo-field-label { margin-top: 23px !important; }
.drs-demo-form select, .drs-demo-form input[type="datetime-local"], .drs-demo-form textarea { appearance: auto; width: 100%; border: 1px solid #d9e0e5; border-radius: 7px; padding: 11px 12px; color: #213243; background: #fff; font-size: 14px; min-height: 44px; box-sizing: border-box; }
.drs-demo-form textarea { min-height: 94px; resize: vertical; }
.drs-demo-form #drs-demo-time { margin-bottom: 20px; }
.drs-demo-phenomena { display: flex; gap: 8px; flex-wrap: wrap; }
.drs-demo-choice { display: inline-flex; position: relative; align-items: center; cursor: pointer; }
.drs-demo-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drs-demo-choice span { display: inline-block; padding: 8px 11px; font-size: 13px; font-weight: 590; border: 1px solid #dae1e7; border-radius: 6px; color: #425365; background: #fff; line-height: 1.5; transition: border-color .16s, background .16s, color .16s; }
.drs-demo-choice input:checked + span { border-color: #e7752a; background: #fff2e9; color: #ad4d0b; font-weight: 700; }
.drs-demo-choice input:focus-visible + span { outline: 3px solid var(--drs-orange); outline-offset: 2px; }
.drs-demo-hint { color: #647182; font-size: 12px; line-height: 1.7; margin: 0 0 11px !important; }
.drs-demo-map { cursor: crosshair; position: relative; background: #f0f4ef; border: 1px solid #d7e1de; border-radius: 8px; display: block; width: 100%; padding: 0; height: 220px; overflow: hidden; }
.drs-demo-map svg { width: 100%; height: 100%; display: block; pointer-events: none; }
.drs-demo-map-hint { position: absolute; top: 11px; left: 11px; color: #466174; background: rgba(255,255,255,.95); border-radius: 5px; padding: 4px 9px; font-size: 12px; pointer-events: none; }
.drs-demo-map-stamp { position: absolute; right: 12px; bottom: 10px; color: #607584; background: rgba(255,255,255,.92); font-size: 10px; padding: 3px 7px; border-radius: 3px; pointer-events: none; }
.drs-demo-marker { position: absolute; z-index: 1; width: 23px; height: 23px; border: 4px solid #fff; background: var(--drs-orange); box-shadow: 0 2px 10px rgba(0,0,0,.22); border-radius: 50% 50% 50% 0; transform: translate(-50%,-100%) rotate(-45deg); pointer-events: none; }
.drs-demo-marker::after { content: ''; position: absolute; left: 6px; top: 6px; width: 3px; height: 3px; border-radius: 50%; background: #fff; }
.drs-demo-places { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.drs-demo-places button { min-height: 44px; border: 1px solid #d8e0e6; border-radius: 5px; color: #526271; background: #fff; padding: 5px 10px; cursor: pointer; font-size: 12px; }
.drs-demo-places button[aria-pressed="true"] { background: #eaf2f7; border-color: #8fb3cf; color: var(--drs-navy); font-weight: 700; }
.drs-demo-selected-place { margin: 10px 0 0 !important; color: #667a8c; font-size: 12px; }
.drs-demo-extra { margin-bottom: 18px; }
.drs-demo-confirmation { margin-top: -5px; }
.drs-demo-consent { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: #34495a; cursor: pointer; line-height: 1.7; }
.drs-demo-consent input { accent-color: var(--drs-orange); width: 17px; height: 17px; margin: 3px 0 0; flex-shrink: 0; }
.drs-demo-error { color: #b53928; font-size: 12px; font-weight: 700; min-height: 0; margin-top: 8px !important; }
.drs-demo-error:empty { display: none; }
.drs-demo-form-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.drs-demo-side { position: sticky; top: calc(var(--drs-fixed-header-height) + 18px); min-width: 0; }
.drs-demo-preview { border: 1px solid #e1e5e9; background: #f7f9fa; border-radius: 12px; padding: 26px; }
.drs-demo-preview-head { display: flex; justify-content: space-between; align-items: center; color: #4b5a68; font-size: 13px; font-weight: 800; padding-bottom: 16px; border-bottom: 1px solid #e0e7ec; }
.drs-demo-preview-head span { color: #fff; background: #718090; font-weight: 650; border-radius: 4px; padding: 2px 7px; font-size: 11px; }
.drs-demo-preview-state { color: #b66420; font-size: 12px; font-weight: 760; margin-top: 21px; }
.drs-demo-preview h3 { font-size: 22px; margin: 7px 0 5px; line-height: 1.42; }
.drs-demo-preview-place { color: #718393; font-size: 13px; }
.drs-demo-preview-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 19px 0; margin-top: 16px; border-top: 1px solid #e0e7ec; border-bottom: 1px solid #e0e7ec; }
.drs-demo-preview-tags span { display: inline-block; color: #485d70; background: #e9eff3; padding: 5px 9px; font-size: 12px; border-radius: 4px; line-height: 1.5; }
.drs-demo-preview-detail { color: #6c7d8a; font-size: 13px; line-height: 1.8; margin-top: 16px !important; white-space: pre-wrap; }
.drs-demo-result { border: 1px solid #b7dac4; background: #f4fbf6; padding: 23px; border-radius: 10px; margin-top: 12px; }
.drs-demo-result-title { color: #245a39; font-size: 17px; margin-bottom: 8px !important; }
.drs-demo-result-desc { color: #446756; font-size: 12px; margin-bottom: 13px !important; line-height: 1.75; }
.drs-demo-result ol { padding-left: 19px; margin: 0; color: #335b43; }
.drs-demo-result li { font-size: 13px; padding-bottom: 7px; }
.drs-demo-result small { display: block; color: #60806c; font-size: 11px; }
.drs-demo-side-note { margin-top: 15px !important; font-size: 12px; color: #647182; line-height: 1.75; }

/* 이어지는 관찰 */
.drs-story { background: var(--drs-navy); padding: 88px 0 90px; color: #fff; }
.drs-story-layout { display: grid; grid-template-columns: .85fr 1fr; gap: 76px; align-items: center; }
.drs-story .drs-section-overline { color: #ffab75; }
.drs-story h2 { color: #fff; margin-bottom: 27px; }
.drs-story-copy > p:not(.drs-section-overline) { color: #c1d1e0; font-size: 15px; line-height: 1.95; margin-top: 15px; }
.drs-story-panel { border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.065); padding: 27px 30px 29px; }
.drs-story-panel-title { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 760; margin-bottom: 26px !important; }
.drs-story-panel-title span { border: 1px solid rgba(255,255,255,.3); color: #aebfd0; font-size: 11px; padding: 1px 7px; border-radius: 4px; }
.drs-story-timeline { list-style: none; padding: 0; }
.drs-story-timeline li { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 21px; padding-bottom: 24px; }
.drs-story-timeline li:last-child { padding-bottom: 0; }
.drs-story-timeline li::before { content:""; position: absolute; top: 9px; bottom: -1px; left: 57px; border-left: 1px solid rgba(255,255,255,.25); }
.drs-story-timeline li:last-child::before { display: none; }
.drs-story-timeline li::after { content:""; position: absolute; left: 53px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--drs-orange); border: 2px solid var(--drs-navy); box-sizing: content-box; }
.drs-story-timeline time { color: #aec0d2; font-size: 12px; padding-top: 1px; font-variant-numeric: tabular-nums; }
.drs-story-timeline strong { display: block; color: #fff; font-size: 15px; font-weight: 760; line-height: 1.4; }
.drs-story-timeline p { color: #b5c5d4; font-size: 12px; margin-top: 6px; line-height: 1.65; }

/* 기록 관리 */
.drs-community { background: #fff; }
.drs-community-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 48px; }
.drs-community-grid article { border-top: 1px solid var(--drs-line); padding: 24px 0 29px; display: grid; grid-template-columns: 36px 1fr; column-gap: 17px; }
.drs-community-grid h3 { grid-column: 2; grid-row: 1; margin: 2px 0 8px; font-size: 18px; }
.drs-community-grid p { grid-column: 2; grid-row: 2; font-size: 14px; color: var(--drs-muted); line-height: 1.9; }
.drs-community-icon { grid-column: 1; grid-row: 1 / span 2; width: 34px; height: 34px; background: #f0f4f8; display: flex; justify-content: center; align-items: center; border-radius: 8px; color: var(--drs-navy); font-size: 19px; font-weight: 750; line-height: 1; }

/* 질문 */
.drs-faq { background: #f5f6f7; }
.drs-faq-layout { display: grid; grid-template-columns: .75fr 1.35fr; gap: 68px; }
.drs-faq-intro h2 { margin-bottom: 12px; }
.drs-faq-intro > p:not(.drs-section-overline) { color: var(--drs-muted); font-size: 15px; }
.drs-faq-items { border-top: 1px solid #dce3e8; }
.drs-faq-items details { border-bottom: 1px solid #dce3e8; }
.drs-faq-items summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 20px 0; font-size: 15px; font-weight: 720; line-height: 1.5; }
.drs-faq-items summary::-webkit-details-marker { display: none; }
.drs-faq-items summary span { display: block; width: 22px; height: 22px; flex: 0 0 22px; position: relative; }
.drs-faq-items summary span::before, .drs-faq-items summary span::after { content:""; position: absolute; display: block; background: var(--drs-navy); border-radius: 1px; }
.drs-faq-items summary span::before { width: 12px; height: 2px; left: 5px; top: 10px; }
.drs-faq-items summary span::after { width: 2px; height: 12px; top: 5px; left: 10px; transition: transform .2s ease; }
.drs-faq-items details[open] summary span::after { transform: rotate(90deg); }
.drs-faq-items details p { color: var(--drs-muted); line-height: 1.9; font-size: 14px; padding: 0 38px 23px 0; }

/* 안내 / 마지막 이동 */
.drs-bottom { background: #fff; padding: 62px 0 92px; }
.drs-safety { display: flex; gap: 18px; padding: 24px 27px; background: #fff7f0; border: 1px solid #f6e6d9; border-radius: 10px; }
.drs-safety-symbol { display: flex; flex: 0 0 27px; width: 27px; height: 27px; justify-content: center; align-items: center; border: 2px solid #c36d27; border-radius: 50%; font-size: 16px; font-weight: 780; color: #c36d27; line-height: 1; }
.drs-safety h2 { font-size: 17px; color: #7b4118; margin-bottom: 7px; font-weight: 750; }
.drs-safety p { color: #865e41; font-size: 13px; line-height: 1.85; }
.drs-end-cta { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding-top: 84px; }
.drs-end-cta h2 { font-size: clamp(23px, 2.6vw, 31px); }
.drs-end-cta .drs-button { white-space: nowrap; }

/* 스크롤 등장. JS 미지원 환경에서는 항상 표시 */
@media (prefers-reduced-motion: no-preference) {
    .drs-about.drs-js-motion .drs-reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.25,1); transition-delay: var(--drs-delay,0ms); }
    .drs-about.drs-js-motion .drs-reveal.is-visible { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1000px) {
    .drs-type-groups { gap: 15px; }
    .drs-demo-layout { grid-template-columns: minmax(0, 1fr) minmax(270px, .82fr); gap: 14px; }
    .drs-demo-form { padding: 22px; }
    .drs-demo-preview { padding: 20px; }
    .drs-story-layout { gap: 36px; }
    .drs-faq-layout { gap: 35px; }
}
@media (max-width: 760px) {
    .drs-section-heading { margin-bottom: 30px; }
    .drs-section-heading p:not(.drs-section-overline) { font-size: 14px; }
    .drs-principles { grid-template-columns: 1fr; gap: 10px; }
    .drs-principle { min-height: auto; padding: 22px; }
    .drs-number { margin-bottom: 12px; }
    .drs-principle h3 { margin-bottom: 6px; font-size: 18px; }
    .drs-type-groups { grid-template-columns: 1fr; gap: 26px; }
    .drs-type-item { padding: 13px 1px; }
    .drs-how-list { grid-template-columns: 1fr; gap: 25px; }
    .drs-how-note { margin-top: 34px; }
    .drs-demo-layout { grid-template-columns: 1fr; }
    .drs-demo-form { padding: 20px 18px; }
    .drs-demo-side { position: static; }
    .drs-demo-map { height: 190px; }
    .drs-demo-form :is(select, input[type="datetime-local"], textarea) { font-size: 16px; }
    .drs-demo-choice span { min-height: 44px; display: inline-flex; align-items: center; }
    .drs-demo-field-label em { display: block; margin: 4px 0 0; }
    .drs-demo-preview { padding: 22px; }
    .drs-story { padding: 70px 0; }
    .drs-story-layout { grid-template-columns: 1fr; gap: 28px; }
    .drs-story-panel { padding: 24px 20px; }
    .drs-community-grid { grid-template-columns: 1fr; }
    .drs-community-grid article { padding: 21px 0 24px; }
    .drs-faq-layout { grid-template-columns: 1fr; gap: 24px; }
    .drs-faq-items summary { font-size: 14px; padding: 17px 0; }
    .drs-bottom { padding: 38px 0 66px; }
    .drs-safety { padding: 20px 17px; gap: 12px; }
    .drs-safety h2 { font-size: 16px; }
    .drs-end-cta { padding-top: 56px; align-items: flex-start; flex-direction: column; gap: 22px; }
}
@media (max-width: 380px) {
    .drs-demo-form-actions .drs-button { flex-grow: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .drs-about *, .drs-about *::before, .drs-about *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .drs-about .drs-reveal { opacity: 1 !important; transform: none !important; }
}
@media (max-height: 760px) {
    .drs-demo-side { position: static; }
}
