/* Shared member-page base (원장 2154 · design handoff v5 tokens.css + free-path v3 boards). Colours, type, header, footer,
   controls and cards follow the design; words, structure, ids and hooks stay as the pages build them. Page layers
   (web/assets/pages/*.css, auth.css, preapply/page.css) load after this file and use the --mn-* names below. */
@font-face { font-family: 'Pretendard'; src: url("/assets/landing-v57/fonts/Pretendard-Regular.fad853f7f4.woff2") format('woff2'); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: 'Pretendard'; src: url("/assets/landing-v57/fonts/Pretendard-Medium.d03481330e.woff2") format('woff2'); font-weight: 500; font-style: normal; font-display: block; }
@font-face { font-family: 'Pretendard'; src: url("/assets/landing-v57/fonts/Pretendard-SemiBold.c863f76a7d.woff2") format('woff2'); font-weight: 600; font-style: normal; font-display: block; }
@font-face { font-family: 'Pretendard'; src: url("/assets/landing-v57/fonts/Pretendard-Bold.4609c3356e.woff2") format('woff2'); font-weight: 700; font-style: normal; font-display: block; }
@font-face { font-family: 'MaruBuri'; src: url("/assets/landing-v57/fonts/MaruBuri-Regular.d34046c658.woff2") format('woff2'); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: 'MaruBuri'; src: url("/assets/landing-v57/fonts/MaruBuri-SemiBold.d22d9e1e3e.woff2") format('woff2'); font-weight: 600; font-style: normal; font-display: block; }
:root {
  /* Design tokens (handoff v5 tokens.css, names kept). */
  --mn-ivory: #F7F2EC; --mn-paper: #FBF8F4; --mn-paper2: #F5EBE1; --mn-white: #FFFFFF; --mn-sand-out: #E9E1D7;
  --mn-burgundy: #753545; --mn-burgundy-deep: #5C2836; --mn-burgundy-pressed: #4A1F2B;
  --mn-charcoal: #2D2528; --mn-charcoal-hover: #463C40; --mn-ink2: #675C5F; --mn-line: #DDD2C9; --mn-line2: #857A7D;
  --mn-on-dark2: #D8CCC3; --mn-error: #9A3B12; --mn-tint-hover: #F1EAE2; --mn-tint-pressed: #E9E1D7;
  --mn-disabled-bg: #E7DED5; --mn-disabled-text: #6F6467; --mn-radius: 2px; --mn-motion-color: 120ms ease-out;
  --mn-font-serif: 'MaruBuri', 'Noto Serif KR', 'AppleMyungjo', serif;
  --mn-font-sans: 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  /* The names the pages used before, now pointing at the design values. */
  --ink: var(--mn-charcoal); --muted: var(--mn-ink2); --line: var(--mn-line); --accent: var(--mn-burgundy); --bg: var(--mn-ivory);
  --warn: var(--mn-error); --soft: var(--mn-paper2);
}
@media (prefers-reduced-motion: reduce) { :root { --mn-motion-color: 0ms; } }
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--mn-font-sans); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-family: var(--mn-font-serif); font-weight: 400; font-size: 32px; line-height: 1.35; margin: 8px 0 16px; }
h2 { font-size: 18px; font-weight: 700; margin: 32px 0 12px; }
h3 { font-size: 16px; font-weight: 700; }
a { color: var(--mn-burgundy); text-underline-offset: 3px; }
a:hover { color: var(--mn-burgundy-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--mn-charcoal); outline-offset: 2px; }
::placeholder { color: var(--mn-ink2); opacity: 1; }
header.site { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; min-height: 80px; padding: 12px max(24px, calc((100% - 1120px) / 2)); border-bottom: 1px solid var(--line); background: #FFFDFA; }
/* 원장 2302 R2 (hub 06:14): the app, product and legal headers on the landing header's paper (#FFFDFA, landing-v57/base.css
   --paper); the line under them stays. */
/* Owner, 11/21 (ledger 2386, D-CC3 20:58): the same header as the landing pages' — from 1024px its inside is 1280px wide —
   and the scrollbar's room is kept on every page, so the header does not shift between a short page and a long one. */
@media (min-width: 1024px) {
  header.site { padding-inline: max(36px, calc((100% - 1280px) / 2)); }
  /* The documents' static header has no class on its account item: 로그인 stands 36px after the others there too (X-CC2 21:33 F-2). */
  header.site nav a[href="/login.html"] { margin-left: 8px; }
}
html { scrollbar-gutter: stable; }
header.site a.brand { font-weight: 700; color: var(--ink); text-decoration: none; }
header.site a.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo { display: block; height: 32px; width: auto; }
header.site nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
header.site nav a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; text-underline-offset: 8px; }
header.site nav a:hover { text-decoration: underline; text-decoration-thickness: 1px; color: var(--ink); }
main { padding: 40px max(24px, calc((100% - 1120px) / 2)) 64px; }
.edition { color: var(--muted); font-size: 14px; }
.demo { background: var(--mn-paper2); color: var(--warn); padding: 6px 24px; font-size: 13px; }
.disclaimer { color: var(--muted); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--mn-radius); padding: 20px; background: var(--mn-paper); }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.chip { display: inline-block; padding: 1px 8px; border-radius: var(--mn-radius); border: 1px solid var(--mn-line2); font-size: 13px; font-weight: 600; line-height: 1.6; margin-right: 6px; color: var(--ink); background: var(--mn-paper); }
.status { color: var(--muted); font-size: 13px; }
.sample { border-style: dashed; background: var(--soft); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
th { font-weight: 600; color: var(--ink); border-bottom-color: var(--mn-charcoal); }
.bad { background: var(--mn-paper2); }
/* A control the page marks as off (report.js: '표시한 칸이 자동 계산과 다릅니다') keeps its mark over the control rule. */
input.bad:not([type="checkbox"]):not([type="radio"]), select.bad, textarea.bad { border: 2px solid var(--mn-error); background: var(--mn-paper2); }
form .row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; align-items: center; }
form .row[hidden] { display: none; }
label { font-size: 14px; }
input, select, button, textarea { font: inherit; padding: 6px 8px; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { min-height: 44px; padding: 8px 12px; border: 1px solid var(--mn-line2); border-radius: var(--mn-radius); background: var(--mn-white); color: var(--ink); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--mn-burgundy); width: 18px; height: 18px; }
button { min-height: 44px; padding: 8px 16px; border: 1px solid var(--mn-charcoal); border-radius: var(--mn-radius); background: transparent; color: var(--ink); font-weight: 600; cursor: pointer; transition: background-color var(--mn-motion-color); }
button:hover { background: var(--mn-tint-hover); }
button:active { background: var(--mn-tint-pressed); }
/* Keep the approved full application choices within a narrow viewport. */
#preapply-app fieldset { min-inline-size: 0; }
#preapply-app label { max-width: 100%; }
#preapply-app select { max-width: 100%; }
button.primary { background: var(--accent); color: var(--mn-ivory); border: 1px solid var(--accent); border-radius: var(--mn-radius); padding: 8px 20px; }
button.primary:hover { background: var(--mn-burgundy-deep); border-color: var(--mn-burgundy-deep); }
button.primary:active { background: var(--mn-burgundy-pressed); }
button:disabled, button.primary:disabled { background: var(--mn-disabled-bg); border-color: var(--mn-disabled-bg); color: var(--mn-disabled-text); cursor: not-allowed; }
.cta { position: sticky; bottom: 0; background: var(--mn-ivory); padding: 12px 0; border-top: 1px solid var(--line); }
.error { color: var(--mn-error); }
.hidden { display: none; }
.steps span { margin-right: 10px; color: var(--muted); }
.steps span.on { color: var(--ink); font-weight: 700; }
details > summary { cursor: pointer; color: var(--ink); font-size: 14px; }

/* Temporary public review pages. No collection or checkout controls. */
.review-page { max-width: 960px; }
.review-notice { padding: 16px 20px; background: var(--mn-paper); border-left: 4px solid var(--accent); }
.review-notice p { margin: 8px 0 0; }
.review-page section { margin: 32px 0; }
.review-page .price { font-size: 28px; font-weight: 700; margin: 8px 0; }
.review-page .lead { font-size: 18px; }
/* The site footer (business information): the design's charcoal band. */
.review-footer { margin-top: 40px; padding: 16px max(24px, calc((100% - 1120px) / 2)) 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); background: var(--mn-charcoal); color: var(--mn-on-dark2); font-size: 12px; line-height: 1.75; }
/* FB-10 (owner, 11/20): the footer stands in the middle of the page in one small size, as the design board draws it — the
   heading no larger than its lines. Words, links and their order are unchanged. */
.review-footer { text-align: center; }
.review-footer h2 { font-size: 12px; color: var(--mn-ivory); margin: 0 0 6px; }
.review-footer p { margin: 0; }
.review-footer .business-identity-row { margin: 0; }
.review-footer nav { margin-top: 0; }
.review-footer a { color: var(--mn-ivory); }
/* X 05:04 E5 · H 07:17: the legal links' row is 44 px tall to tap; the phone and mail links inside the business lines
   stay in their sentences (44 px there swelled every line). The words and their order stay. */
.review-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.review-footer a:hover { color: var(--mn-ivory); }
.review-footer a:focus-visible { outline-color: var(--mn-ivory); }
.review-footer .disclaimer { color: var(--mn-on-dark2); }
.business-identity-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; margin: 1em 0; }
.business-identity-row > p { flex: 1 1 260px; margin: 0; }
.purchase-safety-notice { flex: 1 1 320px; border: 1px solid currentColor; padding: 12px; font-size: inherit; }
.purchase-safety-notice p { margin: 8px 0 0; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.table-scroll table { min-width: 600px; }
mark { background: var(--mn-paper2); color: var(--mn-burgundy-deep); padding: 0 3px; }
@media (max-width: 480px) {
  header.site { min-height: 60px; padding: 8px 16px; }
  header.site nav { gap: 0 16px; }
  header.site .brand-logo { height: 28px; }
  /* 원장 1811: the logo link is 44px tall to tap (the 28px logo + 8px above and below); the equal negative margin keeps the header as it was. */
  header.site a.brand { padding: 8px 0; margin: -8px 0; }
  main { padding: 24px 16px 48px; }
  h1 { font-size: 26px; }
  .review-footer { padding-left: 16px; padding-right: 16px; }
  .review-page { padding: 20px 16px; }
  .review-page h1 { font-size: 26px; }
  .review-notice { padding: 12px; }
}
/* 원장 2349 (P design_2349 7 · D-CC3 UXUI_DESIGN2349_B1 1 · X B1 7c, on the fold of 원장 2321): the script-built header.
   Each item is a 44px target at every width. At 1023px or less (the width at which the step band changes too; the same
   value in app.js) the items fold under one '메뉴' button whatever their number, the header is 60px high, and the opened
   list pushes the page down. From 1024px they stand on one line, the account item (로그인 · 로그아웃) last and a little apart.
   The legal documents' static header has the guest's four items as plain links (no script, no fold): its items are 44px
   targets too. */
header.site nav :is(a, .menu-action) { min-width: 44px; justify-content: center; }
header.site#site-header .menu-action { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer; }
header.site#site-header .menu-action:hover { text-decoration: underline; text-decoration-thickness: 1px; }
header.site#site-header nav a[aria-current="page"] { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }
header.site#site-header .menu-toggle { display: none; }
@media (min-width: 1024px) {
  header.site#site-header nav .menu-account { margin-left: 8px; }
}
@media (max-width: 1023px) {
  header.site#site-header { min-height: 60px; padding-block: 8px; }
  header.site#site-header .menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; margin: 0; padding: 0 4px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
  header.site#site-header .menu-icon { width: 18px; height: 14px; background: linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 0 6px / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 0 12px / 100% 2px no-repeat; }
  /* The list takes the header's full width: its side margins undo the header's own padding (24px, and 16px at 480px or less). */
  header.site#site-header .menu-toggle + nav { display: none; flex: 0 0 calc(100% + 48px); flex-direction: column; flex-wrap: nowrap; gap: 0; margin: -8px -24px; border-top: 1px solid var(--line); }
  header.site#site-header .menu-toggle[aria-expanded="true"] + nav { display: flex; }
  header.site#site-header .menu-toggle + nav :is(a, .menu-action) { justify-content: flex-start; width: auto; min-height: 44px; padding: 0 24px; }
  header.site#site-header .menu-toggle + nav > * + * { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  header.site#site-header .menu-toggle + nav { flex-basis: calc(100% + 32px); margin: -8px -16px; }
  header.site#site-header .menu-toggle + nav :is(a, .menu-action) { padding: 0 16px; }
}
@media print {
  header.site .brand-logo { height: 32px; }
}
.legal-document header.site .brand-logo { height: 32px; }
/* Site notice band (U3): one line the server puts right after <body> on a page (src/http/business-info.js). */
.site-notice { margin: 0; padding: 8px 24px; background: var(--mn-paper2); border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; text-align: center; }
