/*
Theme Name: Seoul100
Template: generatepress
Description: 서울100 생활 도구 사이트 전용 자식 테마 (서울시 누리집 계열 색·서체, 시안 v2)
Version: 1.5.0
Author: cheesedesign
Text Domain: seoul100
*/

:root {
	--ink: #222;
	--ink-2: #555;
	--ink-3: #767676;
	--line: #dde2e8;
	--fill: #f4f6f8;
	--white: #fff;
	--blue: #1e6cb3;
	--blue-2: #0c82e9;
	--blue-bg: #edf1f5;
	--logo-font: "SeoulNotice", "Pretendard Variable", Pretendard, sans-serif;
	--wrap: 1240px;
	--r: 10px;
	--h-ctrl: 48px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
*, *::before, *::after, input::placeholder, textarea::placeholder { letter-spacing: -0.085em; }
html { -webkit-text-size-adjust: 100%; }
html.big body { zoom: 1.12; }
body {
	font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 16px; line-height: 1.6; color: var(--ink); background: #fff;
	font-variant-numeric: tabular-nums; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { clip: auto; width: auto; height: auto; left: 8px; top: 8px; z-index: 100; padding: 8px 14px; background: #fff; border: 2px solid var(--blue); }

/* 상단 유틸 바 */
.util { background: var(--blue-bg); font-size: 13px; color: var(--ink-2); }
.util .wrap { display: flex; align-items: center; gap: 20px; height: 34px; }
.util .notice { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; }
.util .notice svg { flex: none; width: 14px; height: 14px; color: var(--blue); stroke-width: 2.4; }
.util .notice > span { overflow: hidden; text-overflow: ellipsis; }
.util nav { margin-left: auto; display: flex; align-items: center; gap: 18px; flex: none; white-space: nowrap; }
.util nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.util .fs { display: flex; align-items: center; gap: 2px; padding-left: 18px; border-left: 1px solid #c9d2dc; }
.util .fs > span { margin-right: 6px; }
.util .fs button { width: 26px; height: 24px; border: 1px solid #c9d2dc; border-radius: 4px; background: #fff; font-size: 12px; cursor: pointer; }
.util .fs button + button { font-size: 15px; font-weight: 700; }
.util .fs button[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); }

/* 헤더 */
.hd { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.admin-bar .hd { top: 32px; }
.hd .wrap { display: flex; align-items: center; gap: 48px; height: 72px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--logo-font); font-weight: 800; font-size: 22px; color: var(--ink); }
.logo__mark { width: 34px; height: 30px; flex: none; }
.logo b { font-weight: inherit; white-space: nowrap; }
.logo em { font-style: normal; color: var(--blue); }
.logo small { margin-left: 4px; padding-left: 10px; border-left: 1px solid var(--line); font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.gnb { display: flex; gap: 32px; font-size: 17px; font-weight: 700; }
.gnb a { position: relative; padding: 24px 0; }
.gnb a:hover, .gnb a.on { color: var(--blue); }
.gnb a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--blue); }
.hd-search { margin-left: auto; display: flex; align-items: center; height: 42px; width: 260px; padding: 0 8px 0 16px; border-radius: 21px; border: 2px solid var(--blue); background: #fff; }
.hd-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 14px; }
.hd-search input::placeholder { color: var(--ink-3); }
.hd-search button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; background: none; color: var(--blue); cursor: pointer; }
.hd-search svg { width: 18px; height: 18px; stroke-width: 2; }

/* 메인: 상단 */
.intro { padding: 56px 0 48px; background: linear-gradient(#f4f8fc, #fff); }
.intro .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: end; }
.intro h1 { font-family: var(--logo-font); font-size: 38px; line-height: 1.35; font-weight: 800; }
.intro h1 em { font-style: normal; color: var(--blue); white-space: nowrap; }
.intro p { margin-top: 16px; color: var(--ink-2); }
.find { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 22px; border-radius: 29px; background: #fff; border: 2px solid var(--blue); }
.find:focus-within { box-shadow: 0 0 0 4px rgba(30,108,179,.12); }
.find svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); stroke-width: 2; }
.find input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 17px; }
.find input::placeholder { color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.chips button { border: 0; background: none; color: var(--ink-2); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); cursor: pointer; }
.chips button:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* 메인: 도구 목록 */
.dir { padding-bottom: 88px; scroll-margin-top: 80px; }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { position: relative; flex: none; padding: 14px 0; border: 0; background: none; font-size: 16px; font-weight: 500; color: var(--ink-3); cursor: pointer; }
.tabs button span { margin-left: 4px; font-size: 13px; }
.tabs button.on { color: var(--blue); font-weight: 700; }
.tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--blue); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 24px; }
.tool { position: relative; display: block; min-height: 118px; padding: 22px 28px 22px 0; border-bottom: 1px solid var(--line); }
.tool[hidden] { display: none; }
.tool small { display: block; font-size: 13px; font-weight: 600; color: var(--blue); }
.tool strong { display: block; margin-top: 4px; font-size: 18px; font-weight: 600; }
.tool p { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.tool i { position: absolute; right: 2px; top: 24px; font-style: normal; color: var(--ink-3); transition: transform .15s; }
.tool i svg { width: 18px; height: 18px; }
a.tool:hover strong { color: var(--blue); }
a.tool:hover i { transform: translateX(3px); color: var(--blue); }
.tool.soon strong, .tool.soon p { color: var(--ink-3); }
.tool.soon small { color: var(--ink-3); }
.tool.soon i { top: 26px; font-size: 12px; }
.empty { grid-column: 1 / -1; padding: 40px 0; color: var(--ink-3); }

/* 메인: 계산 기준 노트 */
.notes { background: var(--fill); padding: 72px 0; }
.notes .wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; }
.notes h2 { font-family: var(--logo-font); font-size: 28px; line-height: 1.35; font-weight: 700; }
.notes .lead { margin-top: 12px; font-size: 15px; color: var(--ink-2); }

/* 글 목록 한 줄 (노트·분류·검색 공통) */
.rows li a { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rows li:first-child a { padding-top: 0; }
.rows strong { font-size: 18px; font-weight: 600; }
.rows p { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.rows time { font-size: 14px; color: var(--ink-3); }
.rows a:hover strong { color: var(--blue); }
.list-page .rows li:first-child a { padding-top: 20px; border-top: 2px solid var(--ink); }

/* 서브 공통 머리 */
.crumb { padding-top: 28px; font-size: 14px; color: var(--ink-3); }
.crumb a:hover { color: var(--ink); }
.t-head { padding: 12px 0 32px; }
.t-head h1 { font-family: var(--logo-font); font-size: 34px; line-height: 1.3; font-weight: 800; }
.t-head p { margin-top: 8px; color: var(--ink-2); }
.t-head .meta { margin-top: 10px; font-size: 13px; color: var(--ink-3); }

/* 도구 화면 */
.work { display: grid; grid-template-columns: 1fr 400px; gap: 24px; align-items: start; margin-bottom: 56px; }
.form { padding: 32px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 4px 4px 12px 12px; }
.field + .field { margin-top: 22px; }
.field label, .field .label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.field .help { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.ctrl { width: 100%; height: var(--h-ctrl); padding: 0 16px; border: 1px solid transparent; border-radius: var(--r); background: var(--fill); font-size: 16px; outline: 0; }
.ctrl:focus { border-color: var(--blue); background: #fff; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r); background: var(--fill); }
.seg button { height: 40px; border: 0; border-radius: 7px; background: none; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: #fff; color: var(--blue); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.btn { width: 100%; height: var(--h-ctrl); margin-top: 28px; border: 0; border-radius: var(--r); background: var(--blue); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
.btn:hover { background: #175a96; }
.result { position: sticky; top: 96px; padding: 32px; border-radius: 12px; background: var(--blue-bg); }
.result small { font-size: 14px; color: var(--ink-2); }
.result .big { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.result .big b { font-size: 64px; line-height: 1.1; font-weight: 700; color: var(--blue); }
.result .big span { font-size: 20px; color: var(--ink-2); }
.result .sub { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.result dl { display: grid; grid-template-columns: 1fr auto; row-gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #cdd6e0; font-size: 15px; }
.result dt { color: var(--ink-2); }
.result dd { font-weight: 600; text-align: right; }
.result .note { margin-top: 20px; font-size: 13px; line-height: 1.55; color: var(--ink-3); }
.result .err { margin-top: 6px; color: #c62828; font-size: 15px; }

/* 본문 + 목차 */
.guide { display: grid; grid-template-columns: 220px 1fr; gap: 64px; padding-bottom: 96px; }
.guide--solo { grid-template-columns: 1fr; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.toc b { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.toc a { display: block; padding: 6px 0; color: var(--ink-2); }
.toc a:hover { color: var(--blue); }
.toc ul li.is-current a { color: var(--blue); font-weight: 700; }
.article { max-width: 760px; min-width: 0; }

/* 본문 서식 (도구 설명·글·안내 페이지 공통) */
.entry > * + * { margin-top: 14px; }
.entry h2 { margin: 48px 0 14px; padding-left: 12px; border-left: 4px solid var(--blue); font-size: 24px; line-height: 1.4; font-weight: 700; scroll-margin-top: 96px; }
.entry > h2:first-child { margin-top: 0; }
.entry h3 { margin-top: 28px; font-size: 19px; font-weight: 700; }
.entry p, .entry li { font-size: 17px; line-height: 1.8; color: #2c2c31; }
.entry ul:not([class]) { padding-left: 1.2em; list-style: disc; }
.entry ol:not([class]) { padding-left: 1.4em; list-style: decimal; }
.entry a:not([class]) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.entry strong { font-weight: 700; }
.entry table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry th, .entry td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry thead th { border-top: 2px solid var(--ink); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.entry figure.wp-block-table { overflow-x: auto; }
.entry .num td:last-child, .entry .num th:last-child { text-align: right; }
.entry details { border-bottom: 1px solid var(--line); }
.entry details + details { margin-top: 0; }
.entry summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 17px; font-weight: 600; cursor: pointer; }
.entry summary::-webkit-details-marker { display: none; }
.entry summary::after { content: "+"; color: var(--ink-3); font-weight: 400; transition: transform .2s; }
.entry details[open] summary::after { transform: rotate(45deg); }
.entry details p { padding-bottom: 18px; font-size: 16px; }
.entry .src { margin-top: 32px; font-size: 14px; color: var(--ink-3); }

/* 기존 안내 페이지 블록 (nb-*) */
.entry .nb-statement { padding: 28px 32px; border-radius: 12px; background: var(--blue-bg); font-family: var(--logo-font); font-size: 22px; line-height: 1.5; font-weight: 700; color: var(--ink); }
.entry .nb-statement em { font-style: normal; color: var(--blue); }
.entry .nb-sec { margin-top: 56px; }
.entry .nb-sec > * + * { margin-top: 14px; }
.entry .nb-sec__label { font-size: 13px; font-weight: 700; color: var(--blue); }
.entry .nb-sec__label + h2 { margin-top: 4px; }
.entry .nb-sec h2 { margin-top: 4px; }
.entry .nb-cards, .entry .nb-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.entry .nb-cards--2 { grid-template-columns: repeat(2, 1fr); }
.entry .nb-cards--4 { grid-template-columns: repeat(2, 1fr); }
.entry .nb-cards li, .entry .nb-summary li { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.entry .nb-cards p, .entry .nb-summary p { margin-top: 6px; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.entry .nb-cards br, .entry .nb-summary br { display: none; }
.entry .nb-card__icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 10px; background: var(--blue-bg); color: var(--blue); }
.entry .nb-card__icon svg { width: 22px; height: 22px; }
.entry .nb-card__num { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--blue); }
.entry .nb-card__title, .entry .nb-summary strong { display: block; font-size: 17px; font-weight: 700; }
.entry .nb-steps { counter-reset: st; border-top: 2px solid var(--ink); }
.entry .nb-steps li { counter-increment: st; position: relative; padding: 16px 0 16px 44px; border-bottom: 1px solid var(--line); }
.entry .nb-steps li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: 17px; font-weight: 700; color: var(--blue); }
.entry .nb-steps p { margin-top: 2px; font-size: 15px; color: var(--ink-2); }
.entry .nb-facts { border-top: 2px solid var(--ink); }
.entry .nb-facts div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.entry .nb-facts dt { color: var(--ink-3); }
.entry .nb-mail { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 480px; padding: 20px 24px; border-radius: 12px; background: var(--blue); color: #fff; }
.entry .nb-mail > span { display: grid; }
.entry .nb-mail__label { font-size: 14px; opacity: .85; }
.entry .nb-mail__addr { font-size: 18px; font-weight: 700; }
.entry .nb-mail svg { width: 22px; height: 22px; flex: none; }

/* 문의 양식 (Contact Form 7) */
.wpcf7 p { margin-top: 14px; font-size: 15px; font-weight: 600; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 textarea { display: block; width: 100%; margin-top: 8px; padding: 12px 16px; border: 1px solid transparent; border-radius: var(--r); background: var(--fill); font-weight: 400; outline: 0; }
.wpcf7 input:focus, .wpcf7 textarea:focus { border-color: var(--blue); background: #fff; }
.wpcf7 input[type="submit"] { height: var(--h-ctrl); padding: 0 32px; border: 0; border-radius: var(--r); background: var(--blue); color: #fff; font-weight: 700; cursor: pointer; }

/* 안내 페이지 좌측 목록 */
.side-list { font-size: 15px; }
.side-list a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.side-list .on a { color: var(--blue); font-weight: 700; }
.side-list + p { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

/* 관련 도구 */
.rel { margin-top: 56px; }
.rel h2 { font-size: 18px; font-weight: 700; }
.rel .grid { grid-template-columns: repeat(3, 1fr); }

/* 페이지 번호 */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 6px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* 푸터 */
.ft { background: var(--fill); border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.ft .links { border-bottom: 1px solid var(--line); }
.ft .links ul { display: flex; flex-wrap: wrap; gap: 8px 26px; padding: 16px 0; color: var(--ink-2); }
.ft .links li:first-child a { color: var(--blue); font-weight: 700; }
.ft .links a:hover { color: var(--ink); }
.ft .info .wrap { display: grid; grid-template-columns: auto 1fr; gap: 16px 48px; padding-top: 28px; padding-bottom: 48px; }
.ft .logo { align-self: start; font-size: 18px; filter: grayscale(1); opacity: .75; }
.ft p { line-height: 1.7; }
.ft .biz { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 8px; }
.ft .biz b { margin-right: 6px; font-weight: 600; color: var(--ink-2); }

@media (max-width: 1024px) {
	.grid { grid-template-columns: repeat(2, 1fr); }
	.intro .wrap, .notes .wrap { grid-template-columns: 1fr; gap: 32px; }
	.work { grid-template-columns: 1fr; }
	.result { position: static; }
	.guide { grid-template-columns: 1fr; gap: 0; }
	.toc { display: none; }
	.hd .wrap { gap: 28px; }
	.gnb { gap: 20px; font-size: 16px; }
	.hd-search { width: 200px; }
	.side { display: none; }
}
@media (max-width: 782px) {
	.admin-bar .hd { top: 0; }
}
@media (max-width: 720px) {
	.util .wrap { gap: 12px; }
	.util .notice .long, .util nav a.pc, .util .fs > span { display: none; }
	.util nav { gap: 12px; }
	.util .fs { padding-left: 12px; }
	.hd .wrap { gap: 16px; height: 58px; }
	.logo { font-size: 20px; }
	.logo small { display: none; }
	.gnb { display: none; }
	.hd-search { width: 42px; padding: 0; justify-content: center; border-radius: 50%; }
	.hd-search input { display: none; }
	.intro { padding: 40px 0 32px; }
	.intro h1 { font-size: 27px; }
	.intro h1 br { display: none; }
	.grid, .rel .grid { grid-template-columns: 1fr; }
	.tool { min-height: 0; padding: 16px 28px 16px 0; }
	.tool small { display: none; }
	.tool strong { margin-top: 0; }
	.tool i { top: 18px; }
	.notes { padding: 56px 0; }
	.notes h2 { font-size: 24px; }
	.rows li a { grid-template-columns: 1fr; gap: 4px; }
	.t-head h1 { font-size: 28px; }
	.form, .result { padding: 24px 20px; }
	.result .big b { font-size: 52px; }
	.entry p, .entry li { font-size: 16px; }
	.entry .nb-cards, .entry .nb-summary, .entry .nb-cards--2, .entry .nb-cards--4 { grid-template-columns: 1fr; }
	.entry .nb-statement { padding: 22px; font-size: 19px; }
	.entry .nb-facts div { grid-template-columns: 110px 1fr; }
	.ft .info .wrap { grid-template-columns: 1fr; }
}

/* 도구 공통 추가 요소 */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row2 + .field, .field + .row2, .row2 + .row2, .row2 + .help { margin-top: 22px; }
.form > .help { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.form > .field + .help { margin-top: 14px; }
.row2 > .field + .field { margin-top: 0; }
.unit { position: relative; }
.unit .ctrl { padding-right: 52px; text-align: right; }
.unit span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--ink-3); pointer-events: none; }
select.ctrl { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23767676' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; cursor: pointer; }
.seg.c3 { grid-template-columns: repeat(3, 1fr); }
[data-show][hidden], [data-mode][hidden] { display: none; }
.result .big b { word-break: break-all; }
.result .warn { margin-top: 16px; padding: 12px 14px; border-radius: 8px; background: #fff4e5; color: #8a4b00; font-size: 14px; line-height: 1.55; }
.out { margin: -24px 0 56px; }
.out h2 { margin-bottom: 12px; font-size: 18px; font-weight: 700; }
.out .tbl { max-height: 420px; overflow: auto; border-top: 2px solid var(--ink); }
.out table { width: 100%; border-collapse: collapse; font-size: 14px; }
.out th, .out td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.out th { position: sticky; top: 0; background: #fff; font-weight: 600; color: var(--ink-2); }
.out th:first-child, .out td:first-child { text-align: left; }
@media (max-width: 720px) {
	.row2 { grid-template-columns: 1fr; gap: 0; }
	.row2 > .field + .field { margin-top: 22px; }
	.result .big b { font-size: 40px; }
	.out { margin-top: -32px; }
}

/* 파일·변환 도구 */
.field .drop { margin: 0; font-weight: 400; }
.field .drop, .drop { position: relative; display: grid; place-items: center; gap: 4px; padding: 32px 16px; border: 2px dashed #c9d2dc; border-radius: var(--r); background: var(--fill); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--blue); background: var(--blue-bg); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop b { font-size: 16px; font-weight: 600; color: var(--blue); }
.drop span { font-size: 13px; color: var(--ink-3); }
.drop:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.files { margin-top: 10px; }
.files li { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.files li > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files li small { display: block; font-size: 12px; color: var(--ink-3); }
.files em { flex: none; font-style: normal; font-size: 13px; color: var(--ink-3); }
.files em.bad { color: #c62828; }
.files button { flex: none; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); cursor: pointer; }
.files button:disabled { opacity: .35; cursor: default; }
.out-files { margin-top: 16px; border-top: 1px solid var(--line); }
.dl { flex: none; padding: 6px 12px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; }
.btn.ghost { width: 100%; margin-top: 16px; background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.btn.dl-btn { display: grid; place-items: center; margin-top: 20px; color: #fff; }
.ctrl.left, .unit .ctrl.left { text-align: left; }
.range { width: 100%; accent-color: var(--blue); }
.field label output { margin-left: 6px; color: var(--blue); }
.seg.c4 { grid-template-columns: repeat(4, 1fr); }
.conv li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.conv li span { color: var(--ink-2); }
.conv li b { font-weight: 600; text-align: right; word-break: break-all; }
.conv li.err { color: #c62828; }
.row2.swap-row { grid-template-columns: 1fr auto 1fr; align-items: end; }
.swap { width: 44px; height: var(--h-ctrl); border: 1px solid var(--line); border-radius: var(--r); background: #fff; font-size: 18px; color: var(--blue); cursor: pointer; }
@media (max-width: 720px) {
	.row2.swap-row { grid-template-columns: 1fr; }
	.swap { width: 100%; height: 40px; margin-top: 12px; }
	.swap-row > .swap + .field { margin-top: 12px; }
}

/* 생성·놀이 도구 */
.qr-box { display: grid; place-items: center; margin: 8px 0 4px; padding: 20px; border-radius: var(--r); background: #fff; }
.qr-box canvas, .qr-box img { width: 100%; max-width: 240px; height: auto; image-rendering: pixelated; }
.color-row { display: flex; gap: 12px; }
.color-row label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; font-size: 14px; }
.color-row input[type=color] { width: 40px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
textarea.ctrl { height: auto; min-height: 120px; padding-top: 12px; padding-bottom: 12px; line-height: 1.6; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.picks b { padding: 8px 14px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 17px; font-weight: 600; animation: pop .35s ease both; }
.picks b:nth-child(2) { animation-delay: .08s; } .picks b:nth-child(3) { animation-delay: .16s; } .picks b:nth-child(4) { animation-delay: .24s; } .picks b:nth-child(5) { animation-delay: .32s; }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.meme-stage { display: grid; place-items: center; min-height: 200px; border-radius: var(--r); background: #fff; overflow: hidden; }
.meme-stage canvas { max-width: 100%; height: auto; display: block; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head b { font-size: 20px; }
.cal-head button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; font-size: 16px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 2px solid var(--ink); }
.cal span { padding: 8px 4px; min-height: 64px; border-bottom: 1px solid var(--line); font-size: 14px; }
.cal span.h { min-height: 0; text-align: center; font-weight: 600; color: var(--ink-2); }
.cal span.sun, .cal span.off { color: #d9480f; }
.cal span.sat { color: var(--blue); }
.cal span small { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.3; color: #d9480f; }
.cal span.today { background: var(--blue-bg); }
.cal span.pad { background: var(--fill); }
.hol-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hol-list li time { flex: none; width: 112px; color: var(--ink-2); }
.hol-list li.past { opacity: .45; }
@media (max-width: 720px) {
	.cal span { min-height: 52px; padding: 6px 2px; font-size: 13px; }
	.cal span small { font-size: 10px; letter-spacing: -0.12em; }
}
@media (min-width: 1025px) {
	.work[data-tool="meme-maker"], .work[data-tool="holiday-calendar"] { grid-template-columns: 1fr 1fr; }
}
.work .btn.ghost { margin-top: 10px; }
/* 약관·서식 */
.form > div[data-k], .form > div[data-k] ~ .field, .form div[data-k] > * + * { margin-top: 22px; }
.tr-g { margin-bottom: 28px; }
.tr-g h3 { margin-bottom: 4px; font-size: 16px; font-weight: 700; }
.tr-g ul { margin-top: 8px; }
.tr-g li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.65; }
.tr-g mark { background: #fff1b8; color: inherit; padding: 0 2px; }
.doc { padding: 24px 20px; border-radius: var(--r); background: #fff; font-size: 13px; line-height: 1.7; color: #111; }
.doc h4 { margin-bottom: 18px; text-align: center; font-size: 22px; letter-spacing: .3em; }
.doc table { width: 100%; border-collapse: collapse; }
.doc th, .doc td { padding: 7px 8px; border: 1px solid #999; text-align: left; vertical-align: top; }
.doc th { width: 24%; background: #f4f4f4; font-weight: 600; }
.doc .body { margin: 18px 0; }
.doc .date { margin: 14px 0; text-align: center; }
.doc .sign { text-align: right; }
.doc .to { margin-top: 16px; font-weight: 600; }
.doc .ph { display: inline-block; min-width: 60px; border-bottom: 1px dotted #aaa; }
.ps-stage canvas { max-width: 260px; cursor: grab; touch-action: none; }
.names b { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.result .big b:only-child { font-size: 30px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
