/* RC159R3R1 — renewed type, collage, input controls and calculation views. */
@font-face {
  font-family: "Pretendard";
  src: url("assets/fonts/Pretendard-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("assets/fonts/Pretendard-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("assets/fonts/Pretendard-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("assets/fonts/SpaceMono-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Pretendard";
  src: url("assets/pretendard.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/Fraunces-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f6f2e9;
  --paper-light: #fcfaf4;
  --ink: #242320;
  --muted: #77746a;
  --line: #d9d4c8;
  --accent: #273f35;
  --accent-dark: #1b3029;
  --accent-pale: #e8edda;
  --sage: #64735c;
  --sage-pale: #e8ecdf;
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --radius: 4px;
  --pink: #ed9abd;
  --yellow: #e8ef83;
  --lilac: #c7b7e5;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 122px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.7; word-break: keep-all; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, select, a { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: not-allowed; opacity: .45; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
:is(h1, h2, h3, h4)[tabindex="-1"]:focus { outline: none; }
input:focus, select:focus { border-color: var(--accent); outline: 2px solid #aa534819; outline-offset: 1px; }
input, select, textarea { accent-color: var(--accent); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; flex: 0 0 auto; }
::selection { color: var(--ink); background: #dedfc9; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-weight: 500; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 100; padding: 12px 20px; background: var(--ink); color: white; font-size: 13px; }
.skip-link:focus { top: 10px; }
.mobile-break { display: none; }
.view { animation: view-in .24s ease-out; }
@keyframes view-in { from { opacity: .5; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.preview-bar { position: relative; z-index: 30; border-bottom: 1px solid #d1c5ad; background: #eae5d6; color: #5c5546; font-size: 11px; }
.preview-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 1304px; min-height: 39px; margin: 0 auto; padding: 5px 40px; }
.preview-label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; letter-spacing: .01em; }
.preview-label strong { color: #494439; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.preview-dot { width: 5px; height: 5px; margin-right: 3px; border-radius: 50%; background: #867b62; }
.preview-toggle { display: flex; min-height: 30px; align-items: center; gap: 18px; padding: 2px 0 2px 12px; border: 0; background: transparent; color: #6c6250; font-size: 10px; }
.preview-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.preview-tools button { min-height: 28px; padding: 2px 9px; border: 1px solid #bfb6a2; border-radius: 2px; background: transparent; font-size: 11px; }
.preview-tools button:hover, .preview-tools button[aria-expanded="true"] { background: #ded6c1; }
.preview-panel { padding: 18px 40px; border-top: 1px solid #d1c5ad; }
.preview-panel > * { max-width: 1224px; margin-right: auto; margin-left: auto; }
.preview-panel p { margin-bottom: 10px; }
.preview-panel .segmented { justify-content: flex-start; flex-wrap: wrap; }
.preview-panel .chip { min-height: 38px; font-size: 12px; }
.preview-panel .preview-tools { display: block; }
.preview-panel .preview-tools p { margin-bottom: 10px; font-size: 11px; }
.preview-tool-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.preview-panel .preview-tool-buttons .chip { min-height: 44px; padding: 8px 13px; border-color: #c1b69e; font-size: 11px; }

.site-header { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 25px; padding: 0 max(40px, calc((100% - 1224px) / 2)); border-bottom: 1px solid var(--line); }
.site-header > .page-shell, .site-header > div { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 88px; }
.page-shell { width: min(100% - 80px, 1224px); margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { display: inline-grid; width: 27px; height: 30px; place-items: center; color: var(--accent); font-family: var(--sans); font-size: 28px; line-height: 1; }
.brand-logo { display: block; width: auto; height: 23px; }
.brand-name { font-size: 22px; font-weight: 700; letter-spacing: -.085em; }
.site-header .brand-name { font-size: 12px; font-weight: 400; letter-spacing: -.015em; }
.brand-divider { width: 1px; height: 16px; margin: 0 6px; background: #d0c9ba; }
.brand small { margin-left: 5px; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.site-nav { display: flex; align-items: center; gap: 31px; }
.nav-link { position: relative; display: inline-flex; min-height: 44px; align-items: center; padding: 0; border: 0; background: transparent; color: #747064; font-size: 13px; }
.header-cta { min-height: 42px; padding: 9px 15px; font-size: 11px; }
.nav-link.is-active, .nav-link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-link.is-active::after, .nav-link[aria-current="page"]::after { position: absolute; right: 0; bottom: 2px; left: 0; height: 1px; background: var(--accent); content: ""; }
.icon-button { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.icon-button:hover { border-color: var(--ink); }
.site-main { min-height: 65vh; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 48px; align-items: center; min-height: 598px; padding: 66px 0 62px; }
.hero-copy { position: relative; z-index: 1; padding: 10px 0; }
.hero-kicker { margin: -11px 0 13px; color: #74695b; font-size: 12px; letter-spacing: -.02em; }
.eyebrow { display: block; margin-bottom: 24px; color: var(--accent); font-family: var(--sans); font-size: 10px; font-weight: 600; line-height: 1.5; letter-spacing: .19em; text-transform: uppercase; }
.hero-title { max-width: 610px; margin-bottom: 25px; font-family: var(--sans); font-size: clamp(42px, 4.05vw, 59px); font-weight: 400; line-height: 1.4; letter-spacing: -.055em; }
.hero-title em { color: var(--accent); font-style: normal; }
.hero-description { max-width: 435px; margin-bottom: 30px; color: #686459; font-size: 15px; line-height: 1.95; letter-spacing: -.02em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 28px; padding: 13px 23px; border: 1px solid transparent; border-radius: var(--radius); font-size: 13px; font-weight: 600; line-height: 1.5; text-align: center; transition: background .15s, border-color .15s; }
.btn-primary { border-color: var(--accent); background: var(--accent); color: #fffaf4; }
.btn-primary:hover { border-color: var(--accent-dark); background: var(--accent-dark); }
.btn-secondary { border-color: #bcb6a8; background: transparent; }
.btn-secondary:hover { border-color: var(--ink); background: #eeeade; }
.btn-ghost { min-height: 44px; padding-right: 8px; padding-left: 8px; background: transparent; color: #676257; font-weight: 400; }
.btn-ghost:hover { color: var(--accent); }
.arrow-icon { font-size: 19px; font-weight: 400; line-height: 1; }
.hero-note { display: block; margin: 18px 0 0; color: #8a8478; font-size: 11px; letter-spacing: -.015em; }
.hero-art { position: relative; display: flex; min-width: 0; height: 418px; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #d9d6c8; border-radius: 180px 180px 3px 3px; background: #e9e9dd; }
.hero-art::before { position: absolute; right: 0; bottom: 0; left: 0; height: 116px; border-top: 1px solid #ccd1bd; background: #dce1ce; content: ""; }
.hero-art::after { position: absolute; right: 32px; bottom: 34px; width: 89px; height: 1px; background: #bbc2ac; box-shadow: -218px -16px #bbc2ac, -267px 8px #bbc2ac; content: ""; }

.section-heading { display: grid; grid-template-columns: 175px 1.25fr 1fr; align-items: flex-start; gap: 28px; padding-top: 0; }
.section-number { flex: 0 0 auto; padding-top: 4px; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; letter-spacing: .025em; }
.section-title { margin-bottom: 15px; font-family: var(--sans); font-size: 29px; line-height: 1.55; letter-spacing: -.04em; }
.section-copy { max-width: 620px; margin-bottom: 0; color: #777166; font-size: 13px; line-height: 1.85; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; margin: 37px 0 64px 203px; }
.benefit-item { min-width: 0; padding-top: 22px; border-top: 1px solid var(--line); }
.benefit-icon { display: inline-flex; min-height: 29px; margin-bottom: 15px; color: var(--sage); font-family: var(--sans); font-size: 23px; }
.benefit-title { margin-bottom: 10px; font-size: 15px; font-weight: 600; letter-spacing: -.03em; }
.benefit-copy { margin-bottom: 0; color: #7a7469; font-size: 12px; line-height: 1.85; }
.intro-process { display: grid; grid-template-columns: 1fr 1.7fr; gap: 65px; padding: 40px 0; border-top: 1px solid var(--line); }
.process-list { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 0; padding: 0; list-style: none; }
.process-item { display: flex; align-items: flex-start; gap: 15px; font-size: 13px; }
.process-item strong { display: block; margin-bottom: 6px; font-weight: 600; }
.process-item h3 { margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.process-item p, .process-item small { display: block; margin-bottom: 0; color: var(--muted); font-size: 12px; }
.process-index { display: flex; width: 30px; height: 30px; align-items: center; justify-content: center; flex: 0 0 auto; border: 1px solid #c6c3b4; border-radius: 50%; color: var(--sage); font-family: Georgia, serif; font-size: 12px; }
.quiet-note { margin: 24px 0; padding: 16px 19px; border-left: 2px solid #b3bba4; background: #e9ecdf; color: #636a58; font-size: 12px; line-height: 1.85; }
.quiet-note > span { float: left; margin-right: 10px; }
.quiet-note p { margin-bottom: 0; }
.section-divider { margin: 44px 0; border: 0; border-top: 1px solid var(--line); }

.breadcrumb { display: flex; min-height: 44px; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 20px; padding: 0; border: 0; background: transparent; color: #8a8479; font-size: 11px; }
.breadcrumb button, .breadcrumb a { min-height: 32px; padding: 0; border: 0; background: transparent; }
.breadcrumb button:hover, .breadcrumb a:hover { color: var(--accent); }
.page-title { margin-bottom: 12px; font-family: var(--sans); font-size: clamp(29px, 3vw, 39px); font-weight: 400; line-height: 1.5; letter-spacing: -.045em; }
.page-title em { color: var(--accent); font-style: normal; }
.page-subtitle { max-width: 680px; margin-bottom: 28px; color: #797266; font-size: 13px; line-height: 1.9; }
.stepper { display: flex; gap: 35px; align-items: center; margin: 0 0 44px; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; }
.step { display: flex; align-items: center; gap: 9px; color: #9a9386; font-size: 12px; }
.step > span:first-child { display: inline-grid; width: 23px; height: 23px; place-items: center; border: 1px solid #d1cabc; border-radius: 50%; font-family: Georgia, serif; font-size: 11px; }
.step > b { display: inline-grid; width: 23px; height: 23px; place-items: center; border: 1px solid #d1cabc; border-radius: 50%; font-family: Georgia, serif; font-size: 9px; font-weight: 400; }
.step.is-current { color: var(--ink); font-weight: 600; }
.step.is-current > span:first-child { border-color: var(--accent); background: var(--accent); color: white; }
.step.is-current > b { border-color: var(--accent); background: var(--accent); color: white; }
.step.is-complete { color: var(--sage); }
.step.is-complete > span:first-child { border-color: #b1baa3; background: #e7eadc; }
.step.is-complete > b { border-color: #b1baa3; background: #e7eadc; }
#view-results .stepper { margin-top: 32px; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: 72px; align-items: start; padding-bottom: 66px; }
.form-main { min-width: 0; }
.form-section { margin-bottom: 36px; padding-bottom: 33px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { margin-bottom: 25px; }
.form-section > h2, .form-section > legend, .form-section > h3 { margin-bottom: 20px; font-size: 17px; font-weight: 600; letter-spacing: -.03em; }
.form-section-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.form-section-heading .section-number { min-width: 20px; padding-top: 0; font-size: 10px; }
.form-section-heading h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.03em; }
.optional { margin-left: 7px; color: #9a8e7b; font-size: 10px; font-weight: 400; }
.form-section > p { color: var(--muted); font-size: 12px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; min-width: 0; flex-direction: column; gap: 8px; }
.field + .field:not(.field-grid .field) { margin-top: 20px; }
.field-label { display: block; color: #4e4a40; font-size: 12px; font-weight: 600; }
.field-label small { margin-left: 5px; color: #8c8578; font-size: 10px; font-weight: 400; }
.field-hint { display: block; margin: 6px 0 0; color: #8a8376; font-size: 11px; line-height: 1.7; }
.input, .select, .field input:not([type="checkbox"]):not([type="radio"]), .field select { display: block; width: 100%; min-width: 0; min-height: 49px; padding: 11px 13px; border: 1px solid #c8c1b2; border-radius: var(--radius); background: var(--paper-light); color: var(--ink); font-size: 14px; line-height: 1.6; }
.input::placeholder { color: #a09a8e; }
.select, .field select { padding-right: 28px; }
input[type="date"] { min-width: 0; appearance: auto; }
.segmented { display: flex; gap: 8px; }
.segmented .chip { flex: 1 1 0; }
.chip { display: inline-flex; min-width: 44px; min-height: 46px; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border: 1px solid #cdc6b7; border-radius: var(--radius); background: transparent; color: #7b7365; font-size: 12px; font-weight: 400; line-height: 1.5; }
.chip:hover { border-color: #9a9886; color: var(--ink); }
.chip.is-active, .chip[aria-pressed="true"], .segmented label:has(input:checked) { border-color: var(--sage); background: #e6ebdc; color: #485940; }
.date-range { display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); gap: 10px; align-items: center; }
.field-grid.date-range { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.date-range + .field-hint { margin-bottom: 23px; }
.weekday-presets { display: flex; gap: 18px; }
.weekday-presets .text-link { min-height: 40px; color: #8a816f; font-size: 10px; }
.checkbox-label { display: flex; min-height: 32px; align-items: center; gap: 7px; color: #8a816f; font-size: 11px; }
.checkbox-label input { margin: 0; }
.date-range > span { color: #a19887; text-align: center; }
.weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.weekdays .chip { padding-right: 0; padding-left: 0; }
.exclusion-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-top: 15px; }
.exclusion-day { display: flex; min-width: 0; min-height: 44px; align-items: center; justify-content: center; padding: 5px 2px; border: 1px solid var(--line); border-radius: 2px; background: transparent; font-size: 12px; }
.exclusion-day[aria-pressed="true"], .exclusion-day.is-active { border-color: #b67d70; background: #f1e4dc; color: var(--accent); text-decoration: line-through; }
.exclusion-day:disabled { opacity: .25; }
.field-error, .error-text { margin: 6px 0 0; color: #a44135; font-size: 12px; line-height: 1.7; }
[aria-invalid="true"] { border-color: #b55b4e !important; background: #faf0e9 !important; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.form-actions .btn-primary { min-width: 190px; }
.form-actions > p { margin: 0; color: #948875; font-size: 10px; }
.form-aside { position: sticky; top: 32px; }
.summary-card { padding: 27px 24px; border: 1px solid #d3ccbd; background: #eeebe0; }
.summary-card > h2, .summary-card > h3 { margin-bottom: 24px; font-family: var(--sans); font-size: 19px; letter-spacing: -.03em; }
.summary-card .eyebrow { margin-bottom: 12px; color: #7d8068; font-size: 9px; }
.summary-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid #d7d0c2; color: #8b8273; font-size: 11px; }
.summary-value { max-width: 165px; color: #524f43; font-size: 12px; text-align: right; }
.summary-card .quiet-note { margin: 20px 0 0; padding: 14px 0 0; border: 0; border-top: 1px solid #d7d0c2; background: transparent; color: #8a8070; font-size: 11px; }
.summary-card dl { margin: 0; }
.summary-card dd { margin: 0; }
.summary-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 22px; color: #8a7f6c; font-size: 11px; }
.summary-note > span { color: #9a7760; }
.summary-note p { margin: 0; }
.sample-notice { margin-top: 21px; padding-top: 16px; border-top: 1px solid #d7d0c2; color: #9a907e; font-size: 10px; }

.loading-panel { display: flex; min-height: 555px; align-items: center; justify-content: center; flex-direction: column; padding: 62px 20px; text-align: center; }
.loading-visual { position: relative; display: grid; width: 94px; height: 94px; margin-bottom: 35px; place-items: center; border: 1px solid #d5ccba; border-radius: 50%; color: var(--accent); font-family: var(--sans); font-size: 30px; }
.loading-visual::after { position: absolute; inset: -6px; border: 1px solid transparent; border-top-color: #af7565; border-radius: 50%; content: ""; animation: turn 3s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.loading-label { margin: 0 0 19px; font-size: 12px; line-height: 1.6; letter-spacing: -.02em; }
.loading-panel > p { max-width: 460px; margin-bottom: 25px; color: var(--muted); font-size: 13px; }
.loading-step { min-height: 25px; margin-bottom: 26px; color: var(--sage); font-size: 12px; }
.loading-date { font-family: Georgia, serif; font-size: 35px; font-style: italic; }
.loading-sun { position: absolute; top: 6px; right: 9px; font-size: 12px; }
.loading-steps { display: flex; align-items: center; gap: 18px; margin-bottom: 15px; }
.loading-step { margin-bottom: 0; color: #a59b87; font-size: 10px; }
.loading-step.is-current { color: var(--sage); }

.result-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 25px; margin-bottom: 25px; }
.result-header .page-subtitle { margin-bottom: 0; }
.result-fixture-note { margin-bottom: 0; padding: 12px 15px; border: 1px solid #d6c9b7; background: #ede8dc; color: #917e65; font-size: 11px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 7px; }
.result-actions .btn { min-height: 43px; padding: 10px 15px; font-size: 11px; }
.result-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, .88fr); gap: 44px; align-items: start; margin: 34px 0 32px; }
.calendar-panel { min-width: 0; padding: 25px 24px 21px; border: 1px solid #d6cfbf; background: #faf7ef; }
.calendar-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 21px; }
.calendar-header h2, .calendar-header h3 { margin-bottom: 0; font-family: var(--sans); font-size: 23px; letter-spacing: -.025em; }
.calendar-header > span, .calendar-header small { color: #8c8270; font-size: 10px; }
.calendar-header .icon-button { width: 36px; min-width: 36px; min-height: 36px; border-radius: 0; }
.calendar-header > div { display: flex; gap: 5px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.calendar-weekday { padding: 0 0 12px; color: #8b8375; font-size: 10px; text-align: center; }
.calendar-day { position: relative; display: flex; min-width: 0; min-height: 58px; align-items: center; justify-content: center; flex-direction: column; gap: 3px; padding: 8px 1px 6px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: #696255; font-size: 12px; line-height: 1.3; }
.calendar-day.is-outside { color: #c7c0b3; }
.calendar-day.is-excluded { color: #bbb4a6; text-decoration: line-through; }
.calendar-day.is-blank { visibility: hidden; }
.calendar-day.is-candidate { border-color: #c4ccb3; background: #e8ecdf; color: #4a5a3f; font-weight: 600; }
.calendar-day.is-candidate:hover { border-color: var(--sage); background: #dfe6d1; }
.calendar-day.is-selected { border-color: var(--accent); background: #f1e3d9; color: var(--accent); }
.rank-dot { display: inline-flex; min-width: 17px; height: 15px; align-items: center; justify-content: center; padding: 0 4px; border-radius: 8px; background: #7b8b68; color: #fff; font-size: 8px; font-weight: 600; }
.is-selected .rank-dot { background: var(--accent); }
.calendar-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 17px; padding-top: 17px; border-top: 1px solid #e0d9ca; color: #9a907f; font-size: 9px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.calendar-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.calendar-legend .excluded, .calendar-legend i.is-excluded { background: #c7bfae; }
.calendar-legend .legend-excluded { background: #c7bfae; }
.calendar-context { margin-top: 17px; color: #9a8f7c; font-size: 10px; line-height: 1.8; }
.candidate-list { min-width: 0; }
.candidate-card { position: relative; padding: 23px 0 21px; border-top: 1px solid #c8c3b6; }
.candidate-card:first-child { padding-top: 0; border-top: 0; }
.candidate-card:last-child { padding-bottom: 0; }
.candidate-card.is-selected { padding-right: 15px; padding-left: 15px; border: 1px solid #baa18a; background: #f0e8dc; }
.candidate-card.is-selected + .candidate-card { border-top: 0; }
.candidate-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 9px; }
.rank-label { display: inline-flex; align-items: center; gap: 5px; color: var(--sage); font-size: 10px; font-weight: 600; letter-spacing: .025em; }
.candidate-card:first-child .rank-label { color: var(--accent); }
.candidate-date { display: inline-block; margin-bottom: 9px; font-family: var(--sans); font-size: 26px; font-weight: 500; line-height: 1.4; letter-spacing: -.035em; }
.candidate-weekday { margin-left: 6px; color: #8c8372; font-family: var(--sans); font-size: 12px; font-weight: 400; }
.candidate-date-row { display: flex; align-items: baseline; gap: 8px; }
.candidate-date span { margin-left: 2px; font-family: var(--sans); font-size: 14px; }
.candidate-title { margin-bottom: 9px; font-size: 14px; font-weight: 500; letter-spacing: -.025em; }
.compare-checkbox { min-height: 44px; cursor: pointer; }
.candidate-reason { margin-bottom: 13px; color: #7c7466; font-size: 12px; line-height: 1.8; }
.tag { display: inline-flex; min-height: 23px; align-items: center; margin: 0 5px 5px 0; padding: 2px 7px; border: 1px solid #d7d0bf; border-radius: 2px; color: #8a806e; font-size: 9px; line-height: 1.5; }
.candidate-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; }
.candidate-footer .chip { min-height: 37px; padding: 6px 10px; font-size: 10px; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; padding: 0; border: 0; background: transparent; color: var(--accent); font-size: 11px; text-decoration-line: underline; text-decoration-color: #c8a698; text-underline-offset: 4px; }
.text-link:hover { color: var(--accent-dark); }
.compare-bar { position: sticky; bottom: 18px; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 25px 0; padding: 17px 21px; border: 1px solid #c8c1b0; background: #e9e6da; box-shadow: 0 5px 20px #514a3b09; }
.compare-count { color: #746a5b; font-size: 12px; }
.compare-count strong { margin-right: 7px; color: var(--accent); font-family: Georgia, serif; font-size: 20px; font-weight: 400; }
.compare-bar .btn { min-height: 43px; padding: 10px 17px; font-size: 11px; }
.compare-bar .eyebrow { margin-bottom: 5px; color: #85856b; font-size: 8px; }
.compare-bar p { margin: 0; color: #5b5447; font-size: 12px; }
.compare-bar strong { font-weight: 500; }
.compare-hint { display: block; margin-top: 4px; color: #918571; font-size: 10px; }
.compare-scroll-hint { margin-bottom: 28px; }
.compare-table-wrap { max-width: 100%; margin: 26px 0; overflow-x: auto; overscroll-behavior-x: contain; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.compare-table th, .compare-table td { min-width: 160px; padding: 20px 18px; border: 1px solid #d7d0c1; vertical-align: top; text-align: left; }
.compare-table th { background: #eae8dc; font-weight: 500; }
.compare-table th:first-child, .compare-table td:first-child { width: 140px; min-width: 110px; color: #817666; }
.compare-table td { background: #faf7ef; color: #746b5c; }
.compare-table strong { color: var(--ink); font-weight: 500; }
.compare-table thead th > strong, .compare-table thead th > span { display: block; }
.compare-table thead th > strong { margin: 7px 0; font-size: 14px; }
.compare-table thead th > span:last-child { color: #8a7a63; font-size: 10px; }
.compare-table p { margin-bottom: 0; }

.detail-dialog { width: min(850px, calc(100% - 48px)); max-height: min(850px, calc(100dvh - 64px)); padding: 0; border: 1px solid #bfb5a2; border-radius: 4px; background: var(--paper); color: var(--ink); overflow-y: auto; box-shadow: 0 22px 80px #211b1430; }
.detail-dialog::backdrop { background: #26241f8a; }
.dialog-header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 28px; border-bottom: 1px solid var(--line); background: var(--paper); }
.dialog-header h2 { margin-bottom: 0; font-size: 14px; font-weight: 600; }
.dialog-header .eyebrow { margin-bottom: 0; color: #8c7c67; font-size: 9px; }
.dialog-close { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid #d0c7b7; border-radius: 50%; background: transparent; color: #6b6254; font-size: 22px; font-weight: 300; line-height: 1; }
.dialog-close:hover { border-color: var(--ink); }
.dialog-body { padding: 32px 28px; }
.detail-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 35px; }
.detail-date-panel { align-self: start; padding: 23px 18px; border: 1px solid #d4c7b1; background: #eae6d8; text-align: center; }
.detail-date-panel .eyebrow { margin-bottom: 11px; font-size: 9px; }
.detail-date-number { display: block; margin-bottom: 5px; color: var(--accent); font-family: "Fraunces", Georgia, serif; font-size: 73px; font-style: italic; font-weight: 400; line-height: 1.2; }
.detail-date-panel p { margin-bottom: 0; color: #7e725f; font-size: 12px; }
.detail-date-panel .detail-date-number { margin: 10px 0 4px; color: var(--accent); font-size: 73px; }
.detail-month { margin-top: 13px; }
.detail-date-panel .tag { margin-top: 17px; }
.detail-content { min-width: 0; }
.detail-content h2 { margin-bottom: 17px; font-family: var(--sans); font-size: 28px; line-height: 1.6; letter-spacing: -.04em; }
.detail-intro { margin-bottom: 27px; color: #7d7261; font-size: 13px; line-height: 1.95; }
.insight-block .eyebrow { margin-bottom: 10px; font-size: 8px; }
.detail-content h3 { margin-bottom: 13px; font-family: var(--sans); font-size: 23px; line-height: 1.5; letter-spacing: -.03em; }
.insight-block { margin-bottom: 24px; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.insight-block:last-child { margin-bottom: 0; border-bottom: 0; }
.insight-block h4 { margin-bottom: 10px; color: #5f664e; font-size: 13px; font-weight: 600; }
.insight-block p { margin-bottom: 0; color: #7d7261; font-size: 12px; line-height: 1.95; }
.checklist { margin: 0; padding-left: 18px; color: #7d7261; font-size: 12px; line-height: 1.9; }
.checklist li + li { margin-top: 8px; }
.empty-state { display: flex; min-height: 480px; align-items: center; flex-direction: column; justify-content: center; padding: 50px 24px; text-align: center; }
.status-symbol { display: grid; width: 66px; height: 66px; margin-bottom: 27px; place-items: center; border: 1px solid #b6b99d; border-radius: 50%; color: var(--sage); font-family: var(--sans); font-size: 30px; }
.empty-state h1, .empty-state h2 { margin-bottom: 17px; font-family: var(--sans); font-size: 30px; line-height: 1.6; letter-spacing: -.04em; }
.empty-state p { max-width: 470px; margin-bottom: 28px; color: #847969; font-size: 13px; line-height: 1.9; }
.empty-state .hero-actions { justify-content: center; }
.empty-suggestions { width: min(430px, 100%); margin: 0 0 28px; padding: 21px 24px; border: 1px solid #d5ccbb; text-align: left; }
.empty-suggestions h2 { margin-bottom: 10px; font-family: var(--sans); font-size: 12px; font-weight: 600; }
.empty-suggestions ul { margin: 0; padding-left: 16px; color: #8a7d68; font-size: 11px; line-height: 2; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 17px; }
.toast { position: fixed; bottom: 30px; left: 50%; z-index: 60; max-width: min(90%, 480px); padding: 13px 20px; border: 1px solid #4d4e42; border-radius: 3px; background: #34392e; color: #fffdf5; font-size: 12px; text-align: center; transform: translateX(-50%); box-shadow: 0 4px 18px #26241f17; }
.noscript-message { padding: 20px; background: #f1e3d9; color: var(--accent); text-align: center; }

.site-footer { margin-top: 45px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 35px; width: min(100% - 80px, 1224px); margin: 0 auto; padding: 31px 0 36px; }
.footer-copy { max-width: 600px; margin-bottom: 0; color: #979080; font-size: 10px; line-height: 1.9; }
.footer-inner .brand-name { color: #8d8677; font-size: 17px; }
.bottom-cta { display: none; }

@media (min-width: 1450px) {
  .hero-grid { gap: 86px; min-height: 650px; }
  .hero-title { font-size: 61px; }
  .hero-art { height: 447px; }
}
@media (max-width: 1050px) {
  .page-shell, .footer-inner { width: calc(100% - 56px); }
  .preview-bar-inner { padding-right: 28px; padding-left: 28px; }
  .site-header { padding-right: 28px; padding-left: 28px; }
  .site-nav { gap: 20px; }
  .hero-grid { gap: 30px; min-height: 545px; padding-top: 45px; padding-bottom: 45px; }
  .hero-title { font-size: 43px; }
  .hero-description { font-size: 13px; }
  .hero-art { height: 370px; }
  .form-layout { grid-template-columns: minmax(0, 1fr) 255px; gap: 33px; }
  .summary-card { padding: 22px 18px; }
  .result-layout { gap: 25px; grid-template-columns: 1fr .9fr; }
  .calendar-panel { padding: 22px 15px; }
  .calendar-day { min-height: 51px; }
  .candidate-date { font-size: 23px; }
  .section-heading { grid-template-columns: 145px 1.15fr 1fr; gap: 22px; }
  .benefit-grid { margin-left: 167px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 25px; }
  body { font-size: 14px; }
  .page-shell, .footer-inner { width: calc(100% - 40px); }
  .preview-bar-inner { min-height: 40px; gap: 9px; padding-right: 20px; padding-left: 20px; }
  .preview-label { max-width: 260px; gap: 4px 6px; font-size: 9px; line-height: 1.45; }
  .preview-label strong { font-size: 9px; }
  .preview-tools { gap: 5px; }
  .preview-tools button { min-height: 36px; padding: 4px 8px; font-size: 10px; }
  .preview-panel { padding: 15px 20px; font-size: 11px; }
  .preview-panel .segmented { gap: 6px; }
  .preview-panel .chip { min-height: 44px; padding: 8px; font-size: 10px; }
  .site-header > .page-shell, .site-header > div { min-height: 74px; gap: 18px; }
  .site-header { min-height: 74px; gap: 18px; padding-right: 20px; padding-left: 20px; }
  .brand { gap: 7px; }
  .brand-mark { width: 22px; height: 25px; font-size: 24px; }
  .brand-name { font-size: 21px; }
  .site-header .brand-name, .brand-divider { display: none; }
  .brand-logo { height: 21px; }
  .brand small { display: none; }
  .site-nav { gap: 17px; }
  .header-cta { min-height: 44px; padding: 9px 12px; font-size: 10px; }
  .nav-link { font-size: 11px; }
  .site-nav .nav-link:not(.is-active):not([aria-current="page"]) { display: none; }
  .site-nav #resume-result:not([hidden]) { display: inline-flex; align-items: center; min-height: 44px; max-width: 76px; padding: 0; font-size: 11px; line-height: 1.4; white-space: normal; text-align: left; }
  .site-nav .icon-button { width: 38px; min-width: 38px; min-height: 44px; border: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 31px; min-height: auto; padding: 43px 0 41px; }
  .hero-copy { padding: 0; }
  .eyebrow { margin-bottom: 21px; font-size: 9px; letter-spacing: .16em; }
  .hero-title { max-width: 510px; margin-bottom: 20px; font-size: clamp(35px, 8.7vw, 48px); line-height: 1.45; letter-spacing: -.06em; }
  .hero-description { max-width: 410px; margin-bottom: 24px; font-size: 13px; line-height: 1.9; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn-primary { min-width: 178px; }
  .btn { min-height: 50px; gap: 19px; padding: 12px 18px; font-size: 12px; }
  .btn-ghost { min-height: 44px; padding: 10px 5px; font-size: 11px; }
  .hero-note { margin-top: 14px; font-size: 10px; }
  .hero-art { width: 100%; height: 300px; border-radius: 150px 150px 3px 3px; }
  .hero-art::before { height: 79px; }
  .hero-art::after { right: 27px; bottom: 23px; width: 66px; }
  .section-heading { grid-template-columns: 1fr; gap: 12px; padding-top: 0; }
  .section-heading .section-number { width: auto; margin-bottom: 0; padding-top: 0; font-size: 9px; }
  .section-number { padding-top: 4px; font-size: 10px; }
  .section-title { margin-bottom: 12px; font-size: 24px; }
  .section-copy { font-size: 12px; line-height: 1.9; }
  .benefit-grid { grid-template-columns: 1fr; gap: 0; margin: 24px 0 39px 35px; }
  .benefit-item { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; padding: 19px 0; }
  .benefit-icon { grid-row: 1 / 3; min-height: 24px; margin-bottom: 0; font-size: 22px; }
  .benefit-title { margin-bottom: 6px; font-size: 14px; }
  .benefit-copy { grid-column: 2; font-size: 12px; }
  .process-list { grid-template-columns: 1fr; gap: 23px; margin: 25px 0 27px 35px; }
  .intro-process { grid-template-columns: 1fr; gap: 20px; padding: 30px 0; }
  .intro-process .eyebrow { margin-bottom: 12px; }
  .intro-process .process-list { margin: 0; }
  .process-item { gap: 13px; }
  .quiet-note { margin: 20px 0; padding: 13px 15px; font-size: 11px; }
  .breadcrumb { margin: 20px 0 22px; gap: 8px; font-size: 10px; }
  .page-title { margin-bottom: 11px; font-size: 29px; line-height: 1.5; }
  .page-subtitle { margin-bottom: 25px; font-size: 12px; }
  .stepper { gap: 22px; margin-bottom: 29px; padding: 14px 0; }
  .step { gap: 6px; font-size: 10px; }
  .step > span:first-child { width: 20px; height: 20px; font-size: 10px; }
  .step > b { width: 21px; height: 21px; font-size: 8px; }
  .form-layout { grid-template-columns: 1fr; gap: 28px; padding-bottom: 25px; }
  .form-section { margin-bottom: 27px; padding-bottom: 27px; }
  .form-section > h2, .form-section > legend, .form-section > h3 { margin-bottom: 18px; font-size: 16px; }
  .field-grid { gap: 19px 14px; }
  .field-grid.three { gap: 10px; }
  .field-label { font-size: 11px; }
  .field-hint { font-size: 10px; }
  .input, .select, .field input:not([type="checkbox"]):not([type="radio"]), .field select { min-height: 49px; padding: 11px 10px; font-size: 16px; }
  .chip { min-height: 46px; padding: 8px 10px; font-size: 12px; }
  .segmented { gap: 7px; }
  .date-range { gap: 5px; grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr); }
  .field-grid.date-range { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .date-range .input, .date-range input { padding-right: 6px !important; padding-left: 8px !important; font-size: 16px !important; }
  .weekdays { gap: 5px; }
  .weekdays .chip { min-width: 0; min-height: 44px; padding: 8px 0; font-size: 11px; }
  .exclusion-grid { gap: 4px; }
  .exclusion-day { min-height: 44px; font-size: 11px; }
  .form-actions { align-items: stretch; }
  .form-actions .btn-primary { min-width: 165px; }
  .form-actions > p { max-width: 120px; font-size: 9px; }
  .form-aside { position: static; }
  .summary-card { padding: 22px 20px; }
  .summary-card > h2, .summary-card > h3 { margin-bottom: 20px; font-size: 18px; }
  .summary-row { padding: 11px 0; font-size: 11px; }
  .summary-value { max-width: 220px; font-size: 12px; }
  .loading-panel { min-height: 510px; padding: 44px 10px; }
  .loading-visual { width: 78px; height: 78px; margin-bottom: 30px; font-size: 26px; }
  .loading-label { font-size: 12px; }
  .loading-panel > p { font-size: 12px; }
  .result-header { display: block; margin-bottom: 23px; }
  .result-actions { gap: 8px; margin-top: 17px; padding-top: 0; }
  .result-actions .btn { min-height: 44px; padding: 10px 13px; }
  .mobile-break { display: inline; }
  .result-layout { grid-template-columns: 1fr; gap: 30px; margin-top: 24px; }
  .calendar-panel { padding: 20px 14px 16px; }
  .calendar-header { margin-bottom: 19px; }
  .calendar-header h2, .calendar-header h3 { font-size: 22px; }
  .calendar-header .icon-button { min-width: 44px; min-height: 44px; }
  .calendar-day { min-height: 48px; padding: 6px 1px; font-size: 12px; }
  .calendar-weekday { padding-bottom: 11px; font-size: 10px; }
  .calendar-legend { gap: 11px; font-size: 9px; }
  .candidate-card { padding-top: 23px; padding-bottom: 23px; }
  .candidate-card:first-child { padding-top: 0; }
  .candidate-date { font-size: 26px; }
  .candidate-reason { font-size: 12px; }
  .candidate-footer .chip { min-height: 44px; padding: 8px 12px; font-size: 11px; }
  .text-link { min-height: 44px; font-size: 12px; }
  .compare-bar { bottom: calc(12px + env(safe-area-inset-bottom)); gap: 10px; margin: 19px 0 25px; padding: 12px 13px; }
  .compare-count { font-size: 11px; }
  .compare-count strong { margin-right: 3px; font-size: 18px; }
  .compare-bar .btn { min-height: 44px; padding: 10px 12px; font-size: 11px; }
  .compare-bar p { max-width: 160px; font-size: 10px; }
  .compare-hint { font-size: 9px; }
  .compare-table { font-size: 11px; }
  .compare-table th, .compare-table td { min-width: 150px; padding: 16px 13px; }
  .compare-table th:first-child, .compare-table td:first-child { min-width: 89px; }
  .detail-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 3px; }
  .dialog-header { padding: 12px 17px; }
  .dialog-header h2 { font-size: 13px; }
  .dialog-close { width: 44px; height: 44px; }
  .dialog-body { padding: 24px 20px; }
  .detail-layout { grid-template-columns: 1fr; gap: 25px; }
  .detail-date-panel { display: grid; grid-template-columns: 1fr 95px; align-items: center; padding: 18px 21px; text-align: left; }
  .detail-date-panel .eyebrow { grid-column: 1; margin-bottom: 3px; }
  .detail-date-number { grid-column: 2; grid-row: 1 / 4; margin-bottom: 0; font-size: 65px; text-align: right; }
  .detail-date-panel .detail-date-number { grid-column: 2; grid-row: 1 / 4; margin: 0; font-size: 65px; }
  .detail-date-panel p { grid-column: 1; font-size: 12px; }
  .detail-date-panel .detail-month { margin-top: 0; }
  .detail-date-panel .tag { grid-column: 1 / 3; width: fit-content; margin-top: 10px; }
  .detail-date-panel .rank-label { grid-column: 1; }
  .detail-content h2 { font-size: 25px; }
  .detail-content h3 { font-size: 22px; }
  .insight-block { margin-bottom: 21px; padding-bottom: 19px; }
  .empty-state { min-height: 450px; padding: 35px 8px; }
  .empty-state h1, .empty-state h2 { font-size: 27px; }
  .empty-state p { font-size: 12px; }
  .site-footer { margin-top: 30px; }
  .footer-inner { flex-direction: column; gap: 15px; padding: 25px 0 32px; }
  .footer-copy { font-size: 9px; }
  .bottom-cta { position: fixed; right: 0; bottom: 0; left: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #d3cbba; background: #f6f3ebf5; }
  .bottom-cta .btn { min-height: 48px; flex: 1; }
  .bottom-cta > p, .bottom-cta > span { margin: 0; color: #8b806d; font-size: 10px; }
  .bottom-cta > span { max-width: 120px; font-size: 9px; }
  .toast { bottom: calc(95px + env(safe-area-inset-bottom)); padding: 11px 17px; font-size: 11px; }
  body:has(.bottom-cta:not([hidden])) { padding-bottom: calc(85px + env(safe-area-inset-bottom)); }
  body:has(.bottom-cta:not([hidden])) .compare-bar { bottom: calc(92px + env(safe-area-inset-bottom)); }
}
@media (max-width: 374px) {
  .page-shell, .footer-inner { width: calc(100% - 32px); }
  .preview-bar-inner { padding-right: 16px; padding-left: 16px; }
  .hero-title { font-size: 32px; }
  .hero-art { height: 272px; }
  .hero-actions .btn-primary { min-width: 160px; }
  .hero-actions { gap: 5px; }
  .hero-actions .btn-ghost { padding-right: 0; padding-left: 0; font-size: 10px; }
  .form-actions .btn-primary { min-width: 150px; }
  .stepper { gap: 15px; }
  .date-range { grid-template-columns: 1fr; gap: 7px; }
  .field-grid.date-range { grid-template-columns: 1fr; gap: 15px; }
  .date-range > span { display: none; }
  .date-range .input, .date-range input { font-size: 16px !important; }
  .calendar-panel { padding-right: 10px; padding-left: 10px; }
  .calendar-day { min-height: 45px; }
  .weekdays { gap: 3px; }
  .bottom-cta { padding-right: 16px; padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .preview-bar, .site-nav, .hero-actions, .result-actions, .candidate-footer, .compare-bar, .bottom-cta, .dialog-close { display: none !important; }
  body { background: #fff; }
  .page-shell, .footer-inner { width: 100%; }
  .hero-grid { min-height: auto; padding: 25px 0; }
  .hero-art { max-height: 300px; }
  .candidate-card, .calendar-panel { break-inside: avoid; }
}

/* R12 typography and the dedicated moving-date collage. */
body { font-size: 16px; line-height: 1.7; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 600; }
.hero-title { font-family: var(--sans); font-weight: 700; font-size: clamp(42px, 4.4vw, 62px); line-height: 1.27; letter-spacing: -.055em; }
.hero-title em { color: var(--ink); background: linear-gradient(transparent 70%, var(--yellow) 70% 94%, transparent 94%); }
.page-title { font-family: var(--sans); font-weight: 700; font-size: clamp(31px, 3.4vw, 44px); line-height: 1.35; }
.section-title { font-family: var(--sans); font-weight: 700; font-size: 32px; line-height: 1.4; }
.eyebrow, .section-number, .process-index { font-family: var(--mono); }
.hero-kicker { color: var(--accent); font-weight: 600; }
.hero-description { color: #5a574f; font-size: 16px; line-height: 1.8; }
.hero-art { display: flex; flex-direction: column; justify-content: center; align-items: center; align-self: center; width: 100%; min-height: 390px; height: auto; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; isolation: auto; }
.hero-art::before, .hero-art::after { display: none; }
.hero-collage { position: static; display: block; width: 100%; max-width: 650px; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.hero-art-caption { margin: 0; color: #5a574f; font: 10px/1.7 var(--mono); letter-spacing: .08em; }
.hero-note { color: var(--accent); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--paper-light); font-weight: 600; }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-secondary { color: var(--ink); border-color: #99998d; }
.preview-bar { background: #ebe6d9; }
.candidate-date, .detail-date-number { font-family: var(--mono); font-weight: 400; }
.rank-label { padding: 5px 9px; background: var(--yellow); color: var(--ink); font-weight: 600; letter-spacing: 0; }
.candidate-card.is-selected { background: #eee6f4; border-color: #9d87b7; }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--yellow); color: var(--ink); border-color: #858a43; }
.exclusion-day[aria-pressed="true"] { background: #f8dce8; border-color: #bd7c99; color: #632f48; }
.input, .select, .field input:not([type="checkbox"]):not([type="radio"]), .field select { min-height: 52px; border-color: #aaa59a; color: var(--ink); background: #fcfaf4; border-radius: 3px; font-size: 16px; }
.field-label { color: var(--ink); font-size: 13px; font-weight: 600; }
.field-hint { color: #656157; font-size: 12px; }

/* A native select remains the value source; only its branded control is shown. */
.choice-segments { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; min-height: 52px; border: 1px solid #aaa59a; border-radius: 3px; overflow: hidden; background: #fcfaf4; }
.choice-segment { position: relative; min-width: 0; min-height: 50px; padding: 9px 12px; border: 0; background: transparent; color: #6d695f; font-size: 14px; font-weight: 500; line-height: 1.5; }
.choice-segment + .choice-segment { border-left: 1px solid #c6c0b4; }
.choice-segment[aria-checked="true"] { background: var(--ink); color: var(--paper-light); font-weight: 600; }
.choice-segment[aria-checked="true"]::after { display: inline; content: " ✓"; }
.choice-segment:disabled { opacity: 1; color: #a9a59b; background: #efebe1; cursor: not-allowed; }
.choice-segment:focus-visible { outline: 3px solid #b384a9; outline-offset: -4px; z-index: 1; }
.region-combobox { position: relative; min-width: 0; }
.region-combobox-field { display: flex; align-items: center; min-width: 0; min-height: 52px; border: 1px solid #aaa59a; border-radius: 3px; background: #fcfaf4; }
.region-combobox-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px #64735c22; }
.region-combobox.has-error .region-combobox-field, .choice-segments[aria-invalid="true"] { border-color: #a04c5b; box-shadow: 0 0 0 2px #ed9abd33; }
.field .region-combobox-input:not([type="checkbox"]):not([type="radio"]) { flex: 1 1 auto; width: 0; min-width: 0; min-height: 50px; padding: 11px 12px; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none; font-size: 16px; }
.region-combobox-toggle { flex: 0 0 44px; width: 44px; min-height: 48px; padding: 0; border: 0; border-left: 1px solid #e0dbd1; background: transparent; color: var(--ink); font-size: 23px; line-height: 1; }
.region-combobox.is-open .region-combobox-toggle span { display: inline-block; transform: rotate(180deg); }
.region-combobox-panel { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 25; min-width: 0; padding: 9px 0; border: 1px solid #8c877b; border-radius: 3px; background: #fcfaf4; box-shadow: 4px 5px 0 #24232016; }
.region-combobox-hint { padding: 1px 12px 8px; margin: 0; border-bottom: 1px solid #e4dfd5; color: #777166; font-size: 11px; line-height: 1.6; }
.region-combobox-list { max-height: min(280px, 40dvh); overflow-y: auto; overscroll-behavior: contain; list-style: none; padding: 0; margin: 4px 0 0; }
.region-combobox-option { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 8px 12px; color: var(--ink); font-size: 14px; cursor: pointer; }
.region-combobox-option[aria-selected="true"] { font-weight: 600; }
.region-combobox-option[aria-selected="true"]::after { content: "✓"; color: var(--accent); }
.region-combobox-option:hover, .region-combobox-option.is-active { background: #e8ecdf; }
.region-combobox-empty { padding: 14px 12px; margin: 0; font-size: 13px; color: #777166; }

/* The numbers below are data-rendered; the illustration carries no score. */
.calculation-summary { margin: 25px 0 32px; padding: 23px 24px; border: 1px solid #b7b0a2; border-radius: 3px; background: #edeedc; }
.calculation-summary:empty { display: none; }
.calculation-summary h2, .calculation-summary h3 { font-size: 18px; line-height: 1.5; margin: 0 0 8px; }
.calculation-summary p { font-size: 13px; line-height: 1.7; margin: 7px 0; color: #56594a; }
.audit-counts { display: flex; flex-wrap: wrap; gap: 14px 30px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #c9ccad; }
.audit-stat { display: flex; align-items: baseline; gap: 7px; }
.audit-stat strong, .audit-stat b { font-family: var(--mono); font-size: 25px; font-weight: 400; line-height: 1.3; color: var(--ink); }
.audit-stat span { font-size: 12px; color: #5d6250; }
.score-compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.score-compare > * { min-width: 0; padding: 10px 12px; background: #fcfaf4; border: 1px solid #d0d1bb; border-radius: 2px; }
.score-compare strong { font-family: var(--mono); font-weight: 400; font-size: 25px; }
.score-compare span, .score-compare small { font-size: 11px; }
.score-badge { display: inline-flex; align-items: baseline; gap: 5px; padding: 7px 10px; border: 1px solid #ccc580; border-radius: 3px; background: #f0f1c3; color: var(--ink); }
.score-badge strong { font-family: var(--mono); font-size: 27px; font-weight: 400; line-height: 1; }
.score-badge span { font-size: 11px; line-height: 1.4; }
.calculation-breakdown { margin-top: 17px; padding: 14px 0 0; border-top: 1px solid #d1cbbf; color: var(--ink); text-align: left; }
.calculation-breakdown > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; min-height: 44px; cursor: pointer; font-size: 12px; font-weight: 600; }
.calculation-breakdown > summary::-webkit-details-marker { display: none; }
.calculation-breakdown > summary::after { content: "+"; font: 19px/1 var(--mono); }
.calculation-breakdown[open] > summary::after { content: "−"; }
.calculation-breakdown h3, .calculation-breakdown h4 { font-size: 13px; font-weight: 600; margin: 16px 0 10px; }
.calculation-breakdown p { font-size: 11px; line-height: 1.7; color: #6f695e; }
.source-bars { display: grid; gap: 12px; margin: 14px 0 17px; }
.source-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; align-items: center; }
.source-label { font-size: 11px; line-height: 1.5; color: #5a574f; }
.source-value { font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--ink); }
.source-track { grid-column: 1 / -1; height: 7px; border-radius: 1px; background: #e4dfd3; overflow: hidden; }
.source-track > span { display: block; height: 100%; max-width: 100%; background: var(--sage); }
.source-row:nth-child(1) .source-track > span { background: #a5b683; }
.source-row:nth-child(2) .source-track > span { background: #bda9cf; }
.source-row:nth-child(3) .source-track > span { background: #d990ae; }
.calculation-ledger { padding: 0; margin: 12px 0; font-size: 12px; line-height: 1.7; }
.ledger-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid #e4dfd5; }
.calculation-ledger dt { color: #696356; }
.calculation-ledger dd { margin: 0; }
.ledger-value { margin-left: auto; flex-shrink: 0; font-family: var(--mono); font-weight: 400; color: var(--ink); }
.formula-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin: 13px 0 7px; border: 1px solid #bbb58b; background: #eff0cd; font-size: 12px; font-weight: 600; }
.formula-total strong, .formula-total b { font: 26px/1.3 var(--mono); }
.compare-table .source-bars { min-width: 180px; }
.compare-table .calculation-breakdown { border: 0; padding-top: 0; }

@media (min-width: 1440px) { .hero-title { font-size: 64px; } }
@media (max-width: 1000px) { .hero-title { font-size: 45px; } .hero-art { min-height: 340px; } }
@media (max-width: 760px) {
  .hero-title { font-family: var(--sans); font-size: clamp(34px, 8.8vw, 42px); font-weight: 700; line-height: 1.3; }
  .hero-description { font-size: 14px; line-height: 1.8; }
  .hero-art { width: 100%; min-height: 0; padding: 5px 0 3px; margin: 0; }
  .hero-collage { width: 100%; max-width: none; margin: 0; }
  .hero-art-caption { margin-top: -4px; font-size: 8px; }
  .page-title { font-size: 29px; font-weight: 700; line-height: 1.4; }
  .section-title { font-size: 25px; font-weight: 700; line-height: 1.45; }
  .choice-segment { font-size: 14px; min-height: 50px; padding: 9px 5px; }
  .field-grid:not(.date-range) { grid-template-columns: minmax(0, 1fr); }
  .region-combobox-panel { z-index: 40; }
  .region-combobox-list { max-height: min(242px, 35dvh); }
  .calculation-summary { margin: 19px 0 25px; padding: 17px 15px; }
  .audit-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .audit-stat { gap: 5px; }
  .audit-stat strong, .audit-stat b { font-size: 23px; }
  .score-compare { gap: 7px; }
  .score-compare > * { padding: 8px 7px; }
  .score-compare strong { font-size: 21px; }
  .score-badge strong { font-size: 25px; }
}

/* RC159R3R2 — bounded period notice and complete date score calendar. */
.period-limit-note { display:flex; gap:15px; align-items:flex-start; margin:20px 0 8px; padding:14px 16px; border-left:3px solid var(--ink); background:#e8ef8336; font-size:13px; line-height:1.6; }
.period-limit-note strong { flex:none; color:var(--ink); font-weight:700; }
.period-limit-note span { color:#625f54; }
.period-counter { margin:0 0 8px; color:var(--ink); font-size:13px; font-weight:600; font-variant-numeric:tabular-nums; }
.period-counter.is-invalid { color:#8c372c; }
.result-outcome-note { max-width:640px; padding:14px 16px; border:1px solid #cdbca5; background:#eee7d9; font-size:14px; line-height:1.7; }
.candidate-panel { min-width:0; }
.candidate-limit-control { display:flex; justify-content:space-between; gap:12px; align-items:center; padding:0 0 15px; border-bottom:1px solid var(--line); margin-bottom:10px; }
.candidate-limit-control h2 { font-size:18px; margin:0 0 5px; }
.candidate-limit-control p { color:var(--muted); font-size:11px; line-height:1.5; margin:0; }
.candidate-limit-control [role="group"] { display:flex; flex:none; border:1px solid #b8b3a4; }
.candidate-limit-control button { min-height:44px; padding:8px 12px; font-size:12px; border:0; background:transparent; color:var(--ink); }
.candidate-limit-control button+button { border-left:1px solid #b8b3a4; }
.candidate-limit-control button[aria-pressed="true"] { background:var(--ink); color:var(--paper); }
.candidate-limit-control button:disabled { opacity:.5; }
.calendar-day { min-height:82px; gap:3px; border-color:#ddd8ca; background:#faf7ef; color:#403e35; }
.calendar-date-number { font-size:13px; font-weight:500; }
.calendar-score { font-size:12px; font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap; }
.calendar-day:not(:disabled):hover { border-color:#7c8864; background:#edf0df; }
.calendar-day.is-outside { border-color:transparent; background:transparent; color:#aca79c; }
.calendar-day.is-outside .calendar-score { font-size:8px; font-weight:400; }
.calendar-day.is-excluded { color:#645e53; text-decoration:none; border-style:dashed; background:#ece8df; }
.calendar-day.is-excluded .calendar-date-number { text-decoration:line-through; }
.calendar-exclusion { font-size:8px; line-height:1.3; letter-spacing:-.02em; }
.calendar-day.is-unavailable { background:transparent; color:#8a7b68; }
.calendar-day.is-unavailable .calendar-score { font-size:9px; font-weight:500; white-space:normal; }
.calendar-day.is-candidate { background:#e7eccf; border:1px solid #9baa7d; color:#273e30; }
.calendar-day .rank-dot { border-radius:2px; font-size:8px; height:auto; min-height:13px; }
.calendar-eligibility-note { padding:12px 14px; background:#e8ecdf; border-left:2px solid #8b996d; font-size:13px; }
@media(max-width:760px) {
 .period-limit-note { display:block; padding:13px 14px; }
 .period-limit-note strong { display:block; margin-bottom:5px; }
 .calendar-day { min-height:79px; }
 .calendar-grid { gap:3px; }
 .calendar-panel { padding:18px 12px; }
 .calendar-score { font-size:12px; }
 .candidate-limit-control { gap:8px; }
 .candidate-limit-control button { padding:8px 11px; }
}
@media(max-width:380px) {
 .candidate-limit-control { align-items:flex-start; flex-direction:column; }
 .calendar-panel { padding:18px 8px; }
 .calendar-grid { gap:2px; }
}

/* RC159R3R3 — Korean lunar markers are an independent text label. */
.son-free-badge, .son-free-unknown { display:inline-flex; align-items:center; max-width:100%; width:fit-content; padding:3px 7px; border:1px solid #728b94; border-radius:3px; background:#e5eff1; color:#294a56; font-size:11px; font-weight:600; line-height:1.35; white-space:nowrap; vertical-align:middle; }
.son-free-unknown { border-style:dashed; border-color:#9a9386; background:#f3efe6; color:#655d50; font-weight:400; }
.candidate-card > .son-free-badge, .candidate-card > .son-free-unknown { margin:0 0 12px; }
.calendar-day { min-height:100px; justify-content:flex-start; }
.calendar-lunar-marker { display:flex; justify-content:center; margin-top:auto; min-height:15px; width:100%; }
.calendar-lunar-marker .is-compact { box-sizing:border-box; padding:1px 2px; font-size:8px; line-height:1.3; letter-spacing:-.05em; }
.calendar-day.is-unavailable .son-free-badge { opacity:1; color:#294a56; }
.calendar-legend .legend-lunar { display:flex; flex-wrap:wrap; gap:6px; align-items:center; flex-basis:100%; color:#475b60; }
.calendar-legend .son-free-badge { font-size:9px; padding:2px 5px; font-weight:600; }
.son-free-evidence { padding:17px 18px; margin:0 0 24px; border:1px solid #bdced0; background:#f0f5f3; }
.son-free-evidence h3 { margin-bottom:12px; font-size:18px; }
.son-free-evidence p { margin:7px 0 0; color:#45565a; font-size:13px; line-height:1.7; }
.son-free-evidence .son-free-rule { margin-top:10px; color:#6b7978; font-size:11px; }
.son-free-evidence .son-free-unavailable { margin-top:0; font-weight:600; }
.son-free-evidence.is-compact { padding:0; border:0; background:transparent; margin:0; }
.son-free-evidence.is-compact p { font-size:11px; }
.compare-lunar-row small { font-size:10px; line-height:1.6; }
@media(max-width:760px) {
 .calendar-day { min-height:99px; }
 .detail-date-panel .score-badge { grid-column:1 / -1; justify-self:start; margin-top:10px; }
 .son-free-evidence { padding:14px; }
 .son-free-evidence p { font-size:12px; }
}
