/* meshmelo — 안쪽 페이지(Why·How·Start·Skins·Tools·Guides·글) 전용. 홈은 site.css 만 받는다. 토큰은 site.css. */

/* ───── 16. 안쪽 페이지 머리 ───── */
.phead { padding: clamp(56px, 9vw, 112px) 0 clamp(32px, 5vw, 56px); text-align: center; }
.phead .h-hero { font-size: clamp(36px, 5.6vw, 64px); max-width: 860px; margin: 0 auto; }
.phead .sub { max-width: 700px; margin: 18px auto 0; }
.phead.left { text-align: start; }
.phead.left .h-hero, .phead.left .sub { margin-inline: 0; }
.crumbs { font-size: 14px; margin: 0 0 14px; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }

/* ───── 17. Why ───── */
.why-sec { padding: clamp(96px, 13vw, 160px) 0; }
.why-sec:nth-of-type(even) { background: var(--bg-2); }
.why-txt { max-width: 720px; margin: 0 auto; }
.why-txt .h-sec { margin: 0 0 28px; }
.why-txt p { font-size: clamp(19px, 1.9vw, 22px); line-height: 1.55; color: var(--ink-2); letter-spacing: -.01em; }
.why-txt p strong { color: var(--ink); font-weight: 600; }
.why-txt p.lead-in { color: var(--ink); }
:lang(ko) .why-txt p { line-height: 1.75; letter-spacing: 0; }
.why-art { max-width: 520px; margin: 0 auto 48px; }
.why-big { font-size: clamp(96px, 18vw, 200px); line-height: 1; font-weight: 700; letter-spacing: -.05em; text-align: center; margin: 0 0 32px; color: var(--accent); font-variant-numeric: tabular-nums; }
.why-end { text-align: center; }
.why-end .why-txt p { color: var(--ink); }

/* ───── 18. How: (나) 연결 그림 ───── */
.flow { display: grid; grid-template-columns: 1fr auto 1.25fr auto 1fr auto 1fr; align-items: stretch; gap: 10px; }
.fl-node { background: var(--card); border-radius: 26px; box-shadow: var(--shadow); padding: 36px 20px 30px; min-height: 260px; justify-content: center; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sec:not(.sec-alt) .fl-node { background: var(--bg-2); box-shadow: none; }
.fl-ic { width: 76px; height: 76px; }
.fl-node h3 { font-size: 21px; letter-spacing: -.01em; }
.fl-node p { margin: 0; font-size: 15px; color: var(--ink-2); }
.fl-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.fl-chips li { font-size: 12px; background: var(--bg-3); color: var(--ink); padding: 4px 10px; border-radius: 999px; }
.fl-node.is-me { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }
.fl-pub { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-fill); color: var(--accent-ink); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.fl-pub i { width: 22px; height: 13px; border-radius: 999px; background: rgb(255 255 255 / .9); position: relative; }
.fl-pub i::after { content: ""; position: absolute; right: 2px; top: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-fill); }
.fl-arw { display: grid; place-items: center; color: var(--ink-3); }
.fl-arw svg { width: 30px; height: 30px; }
.bubbles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 32px auto 0; max-width: 760px; }
.bubble { position: relative; background: var(--accent-soft); color: var(--ink); border-radius: 20px; padding: 16px 20px; font-weight: 600; font-size: 17px; text-align: center; }
.bubble::before { content: ""; position: absolute; top: -8px; left: 50%; margin-left: -8px; border: 8px solid transparent; border-top: 0; border-bottom-color: var(--accent-soft); }
@media (max-width: 1067px) {
  .flow { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .fl-arw svg { transform: rotate(90deg); }
  .bubbles { grid-template-columns: 1fr; max-width: 420px; }
}

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 4px; font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq .ans { padding: 0 4px 28px; color: var(--ink-2); font-size: 18px; max-width: 700px; }
.faq .ans p { margin: 0 0 10px; }

/* ───── 19. Start ───── */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.path { background: var(--card); border-radius: var(--r-card); padding: 32px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; position: relative; }
.sec:not(.sec-alt) .path { background: var(--bg-2); box-shadow: none; }
.path h2, .path h3 { font-size: 24px; letter-spacing: -.02em; }
.path p { color: var(--ink-2); margin: 0; }
.path .tag { align-self: flex-start; }
.path-ic { width: 52px; height: 52px; }
.path.is-now, .sec:not(.sec-alt) .path.is-now { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }
.path.is-soon { opacity: .9; }
.path.is-soon .path-ic { opacity: .5; }
.path-acts { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.path-ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; font-size: 15px; }
.path-ul li { padding-inline-start: 22px; position: relative; }
.path-ul li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
[dir="rtl"] .path-ul li::before { left: auto; right: 2px; }
@media (max-width: 899px) { .paths { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 4px 10px; border-radius: 999px; background: var(--bg-3); color: var(--ink); margin: 0; }
.tag-now { background: var(--accent-soft); color: var(--accent-strong); }
.tag-soon { background: var(--bg-3); color: var(--ink); }

/* 번호 그림 단계 */
.nsteps { list-style: none; margin: 0; padding: 0; position: relative; max-width: 760px; margin: 0 auto; }
.nsteps::before { content: ""; position: absolute; left: 27px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--accent), var(--line-2)); border-radius: 2px; }
[dir="rtl"] .nsteps::before { left: auto; right: 27px; }
.nsteps > li { position: relative; padding: 0 0 40px 84px; counter-increment: ns; }
[dir="rtl"] .nsteps > li { padding: 0 84px 40px 0; }
.nsteps > li:last-child { padding-bottom: 0; }
.nsteps > li::before { content: counter(ns); position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-fill); color: var(--accent-ink); font-size: 22px; font-weight: 700; box-shadow: 0 0 0 8px var(--bg); }
[dir="rtl"] .nsteps > li::before { left: auto; right: 0; }
.sec-alt .nsteps > li::before { box-shadow: 0 0 0 8px var(--bg-2); }
.nsteps h3 { font-size: 22px; letter-spacing: -.015em; margin: 12px 0 8px; }
.nsteps p { color: var(--ink-2); margin: 0 0 8px; }
.nsteps .sm { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.nsteps .sm li { background: var(--card); border-radius: 12px; padding: 10px 14px; }
.sec:not(.sec-alt) .nsteps .sm li { background: var(--bg-2); }
.nsteps code { word-break: break-all; }
@media (max-width: 733px) { .nsteps::before { left: 21px; } .nsteps > li { padding-left: 64px; } .nsteps > li::before { width: 44px; height: 44px; font-size: 18px; } }

.need { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin: 0 0 64px; }
.box { background: var(--card); border-radius: var(--r-card); padding: 28px; box-shadow: var(--shadow); }
.sec:not(.sec-alt) .box { background: var(--bg-2); box-shadow: none; }
.box h2, .box h3 { font-size: 21px; letter-spacing: -.015em; margin: 0 0 12px; }
.box p:last-child { margin-bottom: 0; }
.deploy-box { text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; }
.deploy-box p { margin: 0; }
@media (max-width: 899px) { .need { grid-template-columns: 1fr; } }

.cards { display: grid; gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border-radius: var(--r-card); padding: 28px; box-shadow: var(--shadow); color: var(--ink); }
.sec:not(.sec-alt) .card { background: var(--bg-2); box-shadow: none; }
.card h2, .card h3 { font-size: 21px; letter-spacing: -.015em; margin: 0 0 10px; }
.card p { color: var(--ink-2); }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; text-decoration: none !important; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card-link:hover { transform: translateY(-3px); }
.card-link h2::after, .card-link h3::after { content: " ›"; color: var(--accent); }
.card-soon { opacity: .75; }
@media (max-width: 899px) { .cards.two, .cards.three { grid-template-columns: 1fr; } }

.ticks { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.ticks li { padding-inline-start: 24px; position: relative; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
[dir="rtl"] .ticks li::before { left: auto; right: 3px; }
.small-list { padding-inline-start: 22px; margin: 0 0 12px; color: var(--ink-2); display: grid; gap: 6px; }
.note { background: var(--accent-soft); color: var(--ink); border-radius: 14px; padding: 14px 18px; font-size: 15px; }

/* ───── 20. Skins ───── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 40px; }
.filters a { font-size: 14px; padding: 8px 16px; border-radius: 999px; background: var(--bg-2); color: var(--ink); text-decoration: none; }
.filters a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.filters .count { opacity: .6; margin-inline-start: 4px; }
.sk-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 24px; }
.sk-card { display: flex; flex-direction: column; }
.sk-thumb { display: block; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.sk-thumb:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -16px rgb(0 0 0 / .3); }
.sk-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sk-noimg { display: grid; place-items: center; height: 100%; color: var(--ink-2); font-weight: 600; }
.sk-body { padding: 16px 4px 0; }
.sk-body h2 { font-size: 20px; letter-spacing: -.015em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sk-body h2 a { color: var(--ink); }
.sk-by { font-size: 14px; color: var(--ink-2); margin: 4px 0 6px; }
.sk-desc { font-size: 15px; color: var(--ink-2); margin: 0 0 14px; }
.sk-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.mode-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 1px var(--line-2); vertical-align: middle; }
.mode-dot.light { background: #fff; } .mode-dot.dark { background: #000; }
.empty { text-align: center; color: var(--ink-2); padding: 48px 0; }

.skin-meta { font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin: 16px 0 0; }
.phead.left .skin-meta { justify-content: flex-start; }
.pv { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.pv-desk, .pv-mob { border-radius: 22px; overflow: hidden; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.pv-desk iframe { display: block; width: 100%; height: 640px; border: 0; background: #fff; }
.pv-mob { border-radius: 40px; padding: 10px; background: #1d1d1f; }
.pv-mob iframe { display: block; width: 100%; height: 600px; border: 0; border-radius: 30px; background: #fff; }
.pv-cap { font-size: 13px; color: var(--ink-2); text-align: center; margin: 12px 0 0; }
@media (max-width: 1067px) { .pv { grid-template-columns: 1fr; } .pv > div:first-child { display: none; } .pv-mob { max-width: 340px; margin: 0 auto; } }
.skin-frame { display: block; width: 100%; border: 0; }

/* ───── 21. Tools ───── */
.tool-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; }
@media (max-width: 899px) { .tool-split { grid-template-columns: 1fr; } }
.tool-form { display: grid; gap: 22px; }
.tool-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.tool-form legend, .field-label { font-weight: 600; font-size: 15px; margin: 0 0 10px; display: block; padding: 0; }
input[type="text"], textarea, input[type="file"] {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
input[type="text"]:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgb(107 78 255 / .18); }
input[type="file"] { padding: 10px; font-size: 14px; }
.code-box { font: 400 13px/1.55 var(--mono); min-height: 280px; resize: vertical; background: var(--bg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.chip { font-size: 13px; padding: 7px 13px; border-radius: 999px; background: var(--bg-3); color: var(--ink); text-decoration: none !important; }
.chip:hover { background: var(--accent-soft); color: var(--accent); }
.radio { display: inline-flex; align-items: center; gap: 8px; margin: 0 18px 8px 0; font-size: 15px; cursor: pointer; }
input[type="radio"] { accent-color: var(--accent-fill); width: 18px; height: 18px; margin: 0; }
.colors label { display: inline-flex; align-items: center; gap: 10px; margin: 0 20px 8px 0; font-size: 15px; }
input[type="color"] { width: 44px; height: 32px; padding: 0; border: 1px solid var(--line-2); border-radius: 8px; background: none; cursor: pointer; }
.corner-box { width: 22px; height: 16px; border: 2px solid var(--ink-2); display: inline-block; }
.corner-square .corner-box { border-radius: 0; } .corner-soft .corner-box { border-radius: 5px; } .corner-round .corner-box { border-radius: 9px; }
.out-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 12px; }
.out-head h2 { font-size: 21px; }
.copy-status { min-height: 1.4em; color: var(--accent); font-size: 14px; margin: 8px 0; }
.js .js-hide { display: none; }
.check-result { background: var(--bg-2); border-radius: 16px; padding: 18px 20px; min-height: 120px; margin: 12px 0 18px; }
.sec-alt .check-result { background: var(--card); }
.result-ok { color: var(--up); font-weight: 600; font-size: 18px; }
.result-bad { color: var(--down); font-weight: 600; font-size: 18px; }
.problems, .advice { padding-inline-start: 20px; display: grid; gap: 8px; margin: 0 0 12px; }
.err-code { color: var(--down); }
.advice-h { font-weight: 600; margin: 8px 0 6px; }
.rules summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.tool-out .h3, .tool-out h2 { font-size: 21px; }

/* ───── 22. Guides·글 ───── */
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.guide-list .card { height: 100%; }
@media (max-width: 733px) { .guide-list { grid-template-columns: 1fr; } }
.article { max-width: calc(720px + var(--gut) * 2); padding-top: clamp(48px, 8vw, 96px); padding-bottom: var(--sec); }
.article > h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 16px; }
:lang(ko) .article > h1 { letter-spacing: -.01em; line-height: 1.25; }
.article > .lead { font-size: 21px; color: var(--ink-2); margin: 0 0 40px; }
.prose { font-size: 18px; line-height: 1.65; }
:lang(ko) .prose { line-height: 1.8; }
.prose h2 { font-size: 28px; letter-spacing: -.02em; margin: 56px 0 16px; line-height: 1.2; }
.prose h3 { font-size: 21px; margin: 36px 0 10px; }
.prose ul, .prose ol { padding-inline-start: 24px; }
.prose li { margin: 0 0 8px; }
.prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: .2em; }
.prose pre { background: var(--bg-2); border-radius: 14px; padding: 16px 18px; overflow-x: auto; font-size: 14px; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin: 24px 0; padding: 4px 20px; border-inline-start: 3px solid var(--accent); color: var(--ink-2); }
.table-wrap { overflow-x: auto; margin: 0 0 20px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--ink-2); font-size: 13px; }

/* 오류·준비 중 */
.block { padding: var(--sec) 0; }
.block h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -.03em; margin: 0 0 14px; }
.lead { font-size: 21px; color: var(--ink-2); }
/* 대비 보정 (접근성 검사 4.5:1): 카드 안 p 색보다 앞서게 */
.path p.tag-now, .card p.tag-now, .tag-now { color: var(--accent-strong); }
.path p.tag-soon, .card p.tag-soon { color: var(--ink); }
.card p.note, .box p.note, .path p.note { color: var(--ink); }
.path.is-soon { opacity: 1; }
