/* D6·D7·D14: 문의 .iq의 토큰으로 신뢰 페이지의 일곱 부품을 만듭니다.
   비용: 공통 파일 한 개를 읽습니다. 탈출구: 페이지에서 이 파일을 제거합니다.
   TA5·TA7: 인용·사진 부품은 이번 범위에서 제외합니다. 양식은 TB에서 더합니다. */
.tr {
    --k-violet: #553ae7; --k-violet-dark: #4128c9; --k-navy: #0f1a4b; --k-lime: #c8f03c;
    --k-ink: #14151a; --k-text: #3d404a; --k-muted: #5f636e; --k-line: #e4e5e9; --k-soft: #f3f4f6;
    --k-on-navy-2: #c5c9d9; --k-on-navy-3: #9ba1b8; --k-navy-line: rgba(255, 255, 255, .14);
    --r-outer: 18px;
    --r-inner: 12px;
    --k-shadow: 0 8px 24px rgba(11, 11, 15, .08);
    --tr-col: 1040px;
    display: block; color: var(--k-ink); font-size: 17px; line-height: 1.7;
}
.tr *, .tr *::before, .tr *::after { box-sizing: border-box; }
.tr p, .tr dd, .tr li, .tr summary { word-break: keep-all; overflow-wrap: anywhere; }
.tr :focus-visible { outline: 3px solid var(--k-violet); outline-offset: 3px; }
.tr a { transition: color .15s, background-color .15s, border-color .15s; }
.tr a:not([class]) { display: inline-flex; align-items: center; min-height: 48px; color: var(--k-violet); text-decoration: underline; text-underline-offset: 4px; }
.tr-col { width: 100%; max-width: var(--tr-col); margin: 0 auto; padding: 0 24px; }
.tr-body { padding-bottom: 64px; }

/* 1. 군청 머리 */
.tr-hero { padding: 52px 0 120px; background: var(--k-navy); color: #fff; }
.tr-hero :focus-visible { outline-color: var(--k-lime); }
.tr-kicker { margin: 0 0 12px; color: var(--k-lime); font-size: 14.5px; font-weight: 700; }
.tr-h1 { margin: 0; color: #fff; font-size: 44px; font-weight: 800; line-height: 1.25; letter-spacing: -.03em; word-break: keep-all; overflow-wrap: anywhere; }
.tr-lead { max-width: 36em; margin: 20px 0 0; color: var(--k-on-navy-2); font-size: 17px; line-height: 1.7; }
.tr-jump { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 20px; }
.tr-hero .tr-link { color: #fff; }

/* 2. 걸친 사실 카드. 값과 출처는 항상 한 묶음(D7·T4·TA6) */
.tr-note { margin: 16px 0 0; color: var(--k-muted); font-size: 15px; }
.tr-card { position: relative; margin-top: -72px; padding: 28px; border: 1px solid var(--k-line); border-radius: var(--r-outer); background: #fff; box-shadow: var(--k-shadow); }
.tr-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin: 0; }
.tr-facts > div { min-width: 0; }
.tr-facts dt { margin: 0 0 6px; color: var(--k-ink); font-size: 15px; font-weight: 700; }
.tr-facts dd { margin: 0; font-size: 22px; line-height: 1.45; font-weight: 800; font-variant-numeric: tabular-nums; }
.tr-facts small { display: block; margin-top: 6px; color: var(--k-muted); font-size: 13px; font-weight: 400; line-height: 1.6; }

/* 3. 구획 제목. 형광펜은 base.css의 h2 > .k-hl만 사용합니다. */
.tr-sec { margin-top: 64px; scroll-margin-top: 96px; }
.tr-h2 { margin: 0 0 24px; color: var(--k-ink); font-size: 26px; font-weight: 800; line-height: 1.35; letter-spacing: -.02em; }
.tr-sec p { margin: 12px 0; color: var(--k-text); }
.tr .tr-sub, .tr .tr-role { color: var(--k-muted); font-size: 15px; }
.tr .tr-source { color: var(--k-muted); font-size: 13px; line-height: 1.8; }
.tr-lines { margin: 16px 0; padding: 0; list-style: none; }
.tr-lines > li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--k-line); }
.tr-timeline { margin: 0; padding: 0; list-style: none; }
.tr-timeline > li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--k-line); }
.tr-timeline > li > strong { font-size: 22px; }
.tr-timeline .tr-lines { margin: 0; }
.tr-timeline .tr-lines li { border: 0; padding: 0 0 10px; }
.tr-rows { margin: 20px 0; }
.tr-rows > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--k-line); }
.tr-rows dt { color: var(--k-muted); font-size: 15px; font-weight: 700; }
.tr-rows dd { margin: 0; color: var(--k-text); font-size: 16px; }
.tr-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 0; list-style: none; }
.tr-steps li { padding: 20px 0; border-top: 2px solid var(--k-navy); }

/* 4. 카드 격자. 인물 사진은 TA7에 따라 이름 첫 글자로 대체합니다. */
.tr-grid { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.tr-grid[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tr-grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tr-item { min-width: 0; padding: 20px; border: 1px solid var(--k-line); border-radius: var(--r-inner); background: #fff; scroll-margin-top: 96px; }
.tr-item h2, .tr-item h3 { margin: 0; color: var(--k-ink); font-size: 22px; font-weight: 800; line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }
.tr-person { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.tr-initial { display: flex; align-items: center; justify-content: center; flex: 0 0 96px; width: 96px; height: 96px; background: var(--k-navy); color: #fff; font-size: 36px; font-weight: 800; }
.tr-person .tr-role { margin: 6px 0 0; }
.tr-item .tr-notable { margin-top: 20px; font-size: 15px; }
.tr-more-body h3 { margin-top: 20px; font-size: 17px; }
.tr-more-body h4 { margin: 16px 0 0; font-size: 15px; }

/* 5. 이름 칩은 글자만. 누르는 링크가 아닌 목록 항목입니다(D8·D32). */
.tr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; padding: 0; list-style: none; }
.tr-chips > li { display: inline-flex; align-items: center; max-width: 100%; min-height: 40px; padding: 6px 12px; border: 1px solid var(--k-line); border-radius: 10px; color: var(--k-ink); font-size: 15px; line-height: 1.5; }
.tr-item .tr-chips > li { min-height: 36px; padding: 5px 10px; }

/* 6. 접힘 */
.tr-more { margin-top: 16px; border-top: 1px solid var(--k-line); }
.tr-more > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 10px 0; color: var(--k-violet); font-size: 15.5px; font-weight: 700; cursor: pointer; list-style: none; }
.tr-more > summary::-webkit-details-marker { display: none; }
.tr-more > summary::after { content: '▾'; flex: 0 0 auto; transition: transform .15s; }
.tr-more[open] > summary::after { transform: rotate(180deg); }
.tr-more-body { font-size: 15px; }
.tr-more-body .tr-lines { margin-top: 8px; }

/* 7. 단추·문맥 링크. 링크의 누르는 자리도 48px 이상입니다. */
.tr-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.tr-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; max-width: 100%; padding: 12px 20px; border: 1px solid var(--k-violet); border-radius: var(--r-inner); font: inherit; font-size: 17px; font-weight: 800; line-height: 1.4; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
.tr-btn--main { background: var(--k-violet); color: #fff; }
.tr-btn--main:hover { background: var(--k-violet-dark); color: #fff; }
.tr-btn--line { background: #fff; color: var(--k-violet); }
.tr-btn--line:hover { color: var(--k-violet-dark); border-color: var(--k-violet-dark); }
.tr-link { display: inline-flex; align-items: center; min-height: 48px; max-width: 100%; padding: 6px 0; color: var(--k-violet); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.tr-sec > .tr-link + .tr-link { margin-left: 20px; }

@media (max-width: 768px) {
    .tr-col { padding-right: 16px; padding-left: 16px; }
    .tr-body { padding-bottom: 48px; }
    .tr-hero { padding: 36px 0 88px; }
    .tr-h1 { font-size: 32px; }
    .tr-lead { margin-top: 16px; }
    .tr-jump { gap: 4px 20px; }
    .tr-card { margin-top: -48px; padding: 20px 16px; }
    .tr-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
    .tr-facts dd { font-size: 20px; }
    .tr-sec { margin-top: 48px; scroll-margin-top: 76px; }
    .tr-h2 { font-size: 22px; }
    .tr-grid[data-cols], .tr-steps { grid-template-columns: minmax(0, 1fr); }
    .tr-item { padding: 20px 16px; scroll-margin-top: 76px; }
    .tr-person { gap: 16px; }
    .tr-timeline > li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .tr-rows > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .tr-actions { flex-direction: column; align-items: stretch; }
    .tr-sec > .tr-link + .tr-link { margin-left: 0; display: flex; }
}
/* TB2·TB10: hidden은 배치 규칙보다 우선하며 동의 안내는 접지 않습니다. */
.tr [hidden] { display: none !important; }
/* UX6: 기관소개 다섯 지표를 한 줄로 읽습니다. 여섯 개면 세 칸 두 줄이며 탈출구는 이 범위 규칙을 제거합니다. */
#trAbout .tr-facts { grid-template-columns: repeat(5, minmax(0, 1fr)); }
#trAbout .tr-facts:has(> div:nth-child(6)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 600px) and (max-width: 1023px) {
    #trAbout .tr-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
    /* UX6c(astra): :has() 를 모르는 브라우저가 묶음 전체를 버리지 않게 규칙을 나눕니다. */
    #trAbout .tr-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #trAbout .tr-facts:has(> div:nth-child(6)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #trAbout .tr-facts > div:last-child:nth-child(5) { grid-column: 1 / -1; }
}
.tr-inquiry-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.tr-inquiry--open .tr-inquiry-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.tr-inquiry-layout > * { min-width: 0; }
.tr-inquiry--open .tr-inquiry-contact { padding-left: 24px; border-left: 1px solid var(--k-line); }
.tr-inquiry--open .tr-inquiry-contact .tr-actions { flex-direction: column; align-items: stretch; }
/* 양식이 열리면 같은 내용을 묻는 안내 목록은 접고 전화 · 이메일 · 운영 시간만 둡니다. */
.tr-inquiry--open .tr-inquiry-hint { display: none; }
.tr-form { display: grid; gap: 24px; }
.tr-field { min-width: 0; }
.tr-field > label, .tr-kinds > legend { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 700; }
.tr-field input, .tr-field select, .tr-field textarea { width: 100%; min-width: 0; min-height: 52px; padding: 12px 14px; border: 1px solid var(--k-line); border-radius: 12px; background: #fff; color: var(--k-ink); font: inherit; font-size: 16px; }
.tr-field textarea { resize: vertical; }
.tr-field input, .tr-field select { height: 52px; }
.tr-form :focus-visible { outline: 2px solid var(--k-violet); outline-offset: 2px; }
.tr-form [aria-invalid="true"] { border-color: #b42318; }
.tr-kinds { min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.tr-kinds label, .tr-consent label { display: flex; align-items: flex-start; gap: 10px; min-height: 48px; padding: 10px 0; cursor: pointer; }
.tr-form input[type="checkbox"] { flex: 0 0 20px; width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--k-violet); }
.tr-consent { border-top: 1px solid var(--k-line); padding-top: 16px; font-size: 14px; line-height: 1.8; }
.tr .tr-err { margin: 6px 0 0; color: #b42318; font-size: 14px; }
.tr-kinds .tr-err { flex-basis: 100%; }
.tr .tr-msg { margin: 0; color: var(--k-ink); }
.tr-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tr-form .tr-btn { justify-self: start; cursor: pointer; }
.tr-form .tr-btn:disabled { opacity: .6; cursor: wait; }
@media (max-width: 768px) {
    .tr-inquiry--open .tr-inquiry-layout { grid-template-columns: minmax(0, 1fr); }
    .tr-inquiry--open .tr-inquiry-contact { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--k-line); }
    .tr-form .tr-btn { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) { .tr a, .tr-more > summary::after { transition: none; } }
