@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+KR:wght@300;400;500;600;700;800&family=Noto+Serif+KR:wght@400;700&display=swap');

:root {
  color-scheme: light;
  --ink: #ffffff;
  --muted: #7e7e7e;
  --line: #3c3c3c;
  --paper: #1a1a1a;
  --canvas: #000000;
  --primary: #ffffff;
  --primary-pressed: #e6e6e6;
  --green: var(--primary);
  --green-dark: var(--primary-pressed);
  --mint: #1a1a1a;
  --orange: #0066b1;
  --surface-card: #1a1a1a;
  --surface-secondary: #262626;
  --hairline-soft: #262626;
  --focus-outer: #435ee5;
  --body-copy: #bbbbbb;
  --body-strong: #e6e6e6;
  --m-blue-light: #0066b1;
  --m-blue-dark: #1c69d4;
  --m-red: #e22718;
  font-family: 'Inter', 'Noto Sans KR', sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); font-family: 'Inter', 'Noto Sans KR', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.site-header { height: 76px; padding: 0 max(32px, calc((100vw - 1100px)/2)); display: flex; align-items: center; gap: 58px; background: var(--paper); border-bottom: 1px solid #edf1ef; }
.brand { color: var(--green-dark); font-size: 21px; font-weight: 800; letter-spacing: -1.1px; white-space: nowrap; }
.brand span { color: var(--orange); }
.category-nav { height: 100%; display: flex; align-items: stretch; gap: 28px; }
.nav-item { position: relative; display: inline-flex; align-items: center; gap: 7px; color: #726866; font-size: 14px; font-weight: 600; }
.nav-item.active { color: var(--green-dark); }
.nav-item.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--green); content: ''; }
.upcoming { cursor: default; }
.upcoming small { padding: 3px 6px; color: #827977; background: #f1f4f2; border-radius: 5px; font-size: 9px; font-weight: 500; }

main { width: min(100% - 48px, 960px); margin: 0 auto; }
.home-hero { padding: 74px 0 62px; }
.eyebrow, .section-kicker { color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: 1.4px; }
.eyebrow { display: flex; align-items: center; gap: 9px; letter-spacing: 0; font-size: 12px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.home-hero h1 { margin: 16px 0 10px; font-size: clamp(36px, 5vw, 48px); line-height: 1.2; letter-spacing: -2px; }
.home-hero p, .calculator-intro p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.tool-section { padding: 0 0 35px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 19px; }
.section-heading h1, .section-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.6px; }
.tool-section { padding-top: 68px; }
.tool-count { color: #827977; font-size: 12px; }
.tool-card { display: flex; align-items: center; gap: 20px; padding: 24px 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.tool-card:hover { transform: translateY(-2px); border-color: #a8cbbd; box-shadow: 0 12px 30px #193c2c0b; }
.tool-icon { display: grid; width: 56px; height: 56px; flex: 0 0 auto; place-items: center; border-radius: 17px; background: var(--mint); color: var(--green); font-size: 24px; font-weight: 700; }
.tool-card-copy { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.tool-title { font-size: 17px; font-weight: 700; }
.tool-description { color: var(--muted); font-size: 13px; line-height: 1.6; }
.tool-tags { display: flex; gap: 7px; margin-top: 4px; }
.tool-tags span { padding: 4px 8px; border-radius: 5px; background: #f4f7f5; color: #70817c; font-size: 10px; }
.tool-arrow { margin-left: auto; color: var(--green); font-size: 23px; }
.home-note { display: flex; gap: 12px; align-items: flex-start; padding: 17px 18px; border: 1px solid #e5ece8; border-radius: 12px; background: #f9fbfa; }
.note-mark { display: grid; width: 19px; height: 19px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #e8f0eb; color: var(--green); font-size: 11px; font-weight: 700; }
.home-note p { margin: 0; color: #71817b; font-size: 12px; line-height: 1.7; }
.site-footer { display: flex; width: min(100% - 48px, 960px); justify-content: space-between; gap: 20px; margin: 74px auto 0; padding: 20px 0 27px; border-top: 1px solid var(--line); color: #827977; font-size: 11px; }
.site-footer a, .site-footer span:first-child { color: #52645e; font-weight: 700; }

.calculator-main { padding-top: 30px; }
.breadcrumbs { display: flex; gap: 10px; align-items: center; color: #8a9893; font-size: 12px; }
.breadcrumbs a { color: var(--green); font-weight: 600; }
.calculator-intro { padding: 27px 0 25px; }
.calculator-intro h1 { margin: 7px 0 7px; font-size: 30px; letter-spacing: -1.2px; }
.calculator-intro p { font-size: 13px; }
.calculator-layout { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(330px, .94fr); gap: 20px; align-items: start; }
.input-card, .result-card, .method-card { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 4px 16px #193c2c05; }
.input-card { padding: 26px 27px 21px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.step-label { color: #827875; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.card-heading h2 { margin: 5px 0 0; font-size: 19px; letter-spacing: -.5px; }
.year-badge { padding: 7px 10px; border: 1px solid #d9ece4; border-radius: 7px; background: #f1f9f5; color: var(--green); font-size: 11px; font-weight: 700; }
.mode-fieldset { min-width: 0; margin: 0 0 19px; padding: 0; border: 0; }
.mode-fieldset legend, .field-label { display: block; margin-bottom: 8px; color: #334640; font-size: 12px; font-weight: 700; }
.segmented-control { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 9px; background: #f2f5f3; }
.segment { cursor: pointer; }
.segment input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.segment span { display: grid; height: 37px; place-items: center; border-radius: 6px; color: #84918c; font-size: 12px; font-weight: 600; }
.segment input:checked + span { background: white; color: var(--green-dark); box-shadow: 0 1px 5px #2a20210f; }
.segment input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.required { margin-left: 5px; color: #c77e50; font-size: 10px; font-weight: 500; }
.optional { margin-left: 5px; color: #827875; font-size: 10px; font-weight: 500; }
.amount-input-wrap, .number-input-wrap { display: flex; align-items: center; min-height: 48px; border: 1px solid #dce6e1; border-radius: 8px; background: #fff; }
.amount-input-wrap:focus-within, .number-input-wrap:focus-within { border-color: #70a892; box-shadow: 0 0 0 3px #eaf6f0; }
.amount-input-wrap input, .number-input-wrap input { width: 100%; min-width: 0; padding: 0 14px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; font-weight: 600; }
.input-unit { padding: 0 13px; color: #85918c; font-size: 11px; white-space: nowrap; }
.secondary-input { min-height: 44px; background: #fbfcfb; }
.secondary-input input { font-size: 13px; font-weight: 500; }
.field-help { margin: 7px 0 0; color: #726966; font-size: 10px; line-height: 1.6; }
.field-divider { height: 1px; margin: 19px 0 17px; background: #edf1ef; }
.fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.number-input-wrap { min-height: 43px; }
.number-input-wrap input { padding-left: 12px; font-size: 14px; }
.number-input-wrap span { padding: 0 12px; color: #726966; font-size: 11px; }
.family-help { margin-top: 8px; }
.form-error { margin: 13px 0 0; color: #bd533c; font-size: 11px; line-height: 1.6; }
.calculate-button { display: flex; width: 100%; height: 49px; align-items: center; justify-content: center; gap: 10px; margin-top: 21px; border: 0; border-radius: 8px; background: var(--green); color: white; cursor: pointer; font-size: 13px; font-weight: 700; transition: background .2s ease; }
.calculate-button:hover { background: var(--green-dark); }
.calculate-button:disabled { background: #c7a8ac; cursor: wait; }
.calculate-button:disabled:hover { background: #c7a8ac; }
.calculate-button span { font-size: 17px; }
.privacy-hint { margin: 12px 0 0; color: #827875; text-align: center; font-size: 10px; }

.result-card { min-height: 482px; padding: 22px 23px; background: #fcfdfc; }
.result-topline { display: flex; align-items: center; gap: 8px; color: #5c7169; font-size: 11px; font-weight: 700; }
.result-icon { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; background: var(--mint); color: var(--green); font-size: 14px; }
.result-empty { display: flex; min-height: 405px; flex-direction: column; align-items: center; justify-content: center; padding: 0 10px 18px; text-align: center; }
.empty-illustration { display: grid; width: 68px; height: 68px; margin-bottom: 17px; place-items: center; border-radius: 22px; background: #edf7f1; color: var(--green); transform: rotate(-5deg); }
.empty-illustration span { font-size: 30px; font-weight: 700; transform: rotate(5deg); }
.result-empty h2 { margin: 0; font-size: 17px; line-height: 1.5; letter-spacing: -.4px; }
.result-empty p { margin: 8px 0 0; color: #726966; font-size: 11px; line-height: 1.7; }
.result-content { padding-top: 25px; }
.result-label { margin: 0 0 6px; color: #6f6462; font-size: 11px; }
.result-salary { margin: 0 0 13px; color: var(--green-dark); }
.result-salary strong { font-size: clamp(29px, 4vw, 38px); letter-spacing: -1.4px; }
.result-salary span { margin-left: 5px; font-size: 13px; font-weight: 600; }
.result-monthly { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid #edf1ef; color: #65766f; font-size: 11px; }
.result-monthly strong { color: var(--ink); font-size: 12px; }
.net-highlight { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 18px; padding: 12px 13px; border-radius: 8px; background: #edf7f1; color: #446359; font-size: 11px; }
.net-highlight strong { color: var(--green-dark); font-size: 14px; }
.deduction-heading { display: flex; justify-content: space-between; margin-bottom: 5px; color: #514143; font-size: 11px; font-weight: 700; }
.deduction-heading span:last-child { color: #71817b; font-weight: 600; }
.deduction-list { margin: 0; }
.deduction-list div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #edf1ef; font-size: 10px; }
.deduction-list dt { color: #71817b; }
.deduction-list dd { margin: 0; color: #49393b; font-variant-numeric: tabular-nums; }
.result-footnote { margin: 12px 0 0; color: #817775; font-size: 9px; line-height: 1.6; }
.method-card { margin-top: 20px; padding: 22px 25px 20px; }
.method-heading { display: flex; align-items: center; gap: 11px; }
.method-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: var(--mint); color: var(--green); font-weight: 700; }
.method-heading h2 { margin: 3px 0 0; font-size: 16px; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 19px 0 15px; }
.method-grid p { margin: 0; color: #71817b; font-size: 10px; line-height: 1.8; }
.method-grid strong { color: #4b3a3d; font-size: 11px; }
.method-caveat { margin: 0; padding: 12px 13px; border-radius: 8px; background: #f8faf6; color: #71817b; font-size: 10px; line-height: 1.8; }
.sources { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; margin-top: 16px; color: #756b68; font-size: 9px; }
.sources span { color: #564749; font-weight: 700; }
.sources a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }

.lotto-icon { font-size: 13px; letter-spacing: -.5px; }
.lotto-main { padding-top: 30px; }
.lotto-intro { padding-top: 25px; }
.lotto-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 19px; align-items: start; }
.lotto-controls, .lotto-results, .saved-section { padding: 23px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 4px 16px #193c2c05; }
.lotto-card-heading, .lotto-results-heading, .saved-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lotto-card-heading { margin-bottom: 19px; }
.lotto-card-heading h2, .lotto-results-heading h2, .saved-heading h2 { margin: 4px 0 0; font-size: 18px; letter-spacing: -.5px; }
.lotto-mark { display: grid; width: 42px; height: 35px; place-items: center; border-radius: 9px; background: #f2f6ed; color: #72994b; font-size: 11px; font-weight: 800; }
.lotto-option-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid #edf1ef; }
.lotto-label { color: #334640; font-size: 12px; font-weight: 700; }
.lotto-help { margin: 4px 0 0; color: #7c7270; font-size: 10px; line-height: 1.55; }
.choice-pills { display: flex; gap: 4px; flex: 0 0 auto; padding: 3px; border-radius: 8px; background: #f2f5f3; }
.choice-pill { min-height: 30px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: #766c69; cursor: pointer; font-size: 10px; font-weight: 600; }
.choice-pill.selected { background: white; color: var(--green-dark); box-shadow: 0 1px 4px #2a20210d; }
.number-select-heading { display: flex; align-items: center; justify-content: space-between; padding: 15px 0 10px; border-top: 1px solid #edf1ef; }
.selection-count { color: #726966; font-size: 10px; }
.selection-modes { display: flex; gap: 8px; margin-bottom: 11px; }
.selection-mode { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid #e5ece8; border-radius: 7px; background: #fff; color: #84918c; cursor: pointer; font-size: 10px; }
.selection-mode span:last-child { min-width: 15px; color: #554648; font-variant-numeric: tabular-nums; }
.selection-mode.selected.fixed-mode { border-color: #d3e9da; background: #f2faf4; color: #105943; }
.selection-mode.selected.excluded-mode { border-color: #eadfdb; background: #fbf6f4; color: #925b50; }
.mode-dot, .number-legend i { width: 7px; height: 7px; border-radius: 50%; background: #16735d; }
.excluded-mode .mode-dot, .legend-excluded { background: #c58c7c; }
.number-grid { display: grid; grid-template-columns: repeat(9, minmax(24px, 1fr)); gap: 6px; }
.number-chip { aspect-ratio: 1; display: grid; min-width: 0; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 50%; color: #4c4140; cursor: pointer; font-size: 10px; font-weight: 600; transition: transform .14s ease, box-shadow .14s ease; }
.number-chip:hover { transform: translateY(-2px); box-shadow: 0 3px 9px #2a20211a; }
.ball-yellow { background: #f8e29a; color: #634f1c; }
.ball-blue { background: #a8d3f2; color: #174f75; }
.ball-red { background: #f3a39c; color: #7e3830; }
.ball-gray { background: #c6cccf; color: #39464b; }
.ball-green { background: #a9d8b4; color: #2e6240; }
.number-chip.is-fixed { border: 2px solid #16735d; box-shadow: 0 0 0 2px #f4e0e3; }
.number-chip.is-excluded { border: 1px solid #c58c7c; background: #f1e8e4; color: #80665f; text-decoration: line-through; opacity: .75; }
.number-legend { display: flex; align-items: center; gap: 13px; margin-top: 10px; color: #766c69; font-size: 9px; }
.number-legend span { display: inline-flex; align-items: center; gap: 5px; }
.number-legend button { margin-left: auto; padding: 4px 0 4px 8px; border: 0; background: transparent; color: #706562; cursor: pointer; font-size: 9px; text-decoration: underline; text-underline-offset: 2px; }
.lotto-generate { margin-top: 16px; }
.lotto-results { min-height: 363px; padding-bottom: 18px; }
.lotto-results-heading { margin-bottom: 17px; }
.result-summary { color: #8a9893; font-size: 10px; }
.lotto-result-list { display: flex; flex-direction: column; gap: 8px; }
.lotto-empty { display: flex; min-height: 197px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #706663; text-align: center; }
.lotto-empty-mark { display: grid; width: 45px; height: 45px; margin-bottom: 3px; place-items: center; border-radius: 15px; background: #f1f6ee; color: #88a665; font-size: 20px; font-weight: 700; }
.lotto-empty strong { color: #4d3e3e; font-size: 12px; }
.lotto-empty span { color: #7e7471; font-size: 10px; line-height: 1.7; }
.lotto-result-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 6px; align-items: center; min-height: 59px; padding: 8px 8px 8px 10px; border: 1px solid #edf1ef; border-radius: 10px; background: #fff; }
.combo-index { color: #847a77; font-size: 9px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lotto-balls { display: flex; flex-wrap: wrap; gap: clamp(3px, .6vw, 8px); align-items: center; }
.lotto-ball { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 50%; box-shadow: inset 0 -2px 0 #0000000b; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.combo-actions { display: flex; gap: 4px; }
.combo-action { padding: 6px 7px; border: 1px solid #f0e8e6; border-radius: 6px; background: #fff; color: #65766e; cursor: pointer; font-size: 9px; white-space: nowrap; }
.combo-action:hover { border-color: #bad8c7; color: var(--green); }
.combo-action.delete-action { color: #8a5f5b; }
.fairness-note { display: flex; gap: 9px; align-items: flex-start; margin-top: 14px; padding: 11px 12px; border: 1px solid #ebefe8; border-radius: 9px; background: #f8faf6; }
.fairness-note .note-mark { width: 17px; height: 17px; font-size: 10px; }
.fairness-note p { margin: 0; color: #71817b; font-size: 9px; line-height: 1.7; }
.fairness-note strong { color: #5d4c4d; }
.saved-section { margin-top: 18px; padding: 19px 22px; }
.saved-caption { color: #7e7471; font-size: 9px; }
.saved-list { margin-top: 13px; }
.saved-empty { margin: 0; padding: 15px 0 4px; color: #847a77; font-size: 10px; }
.saved-row { display: grid; grid-template-columns: 60px 1fr auto auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid #edf1ef; }
.saved-date { color: #726966; font-size: 9px; }
.saved-balls { gap: 5px; }
.small-ball { width: 25px; height: 25px; font-size: 9px; }
.form-error:not([hidden]) { display: block; }

@media (max-width: 760px) {
  .site-header { height: 64px; gap: 24px; padding: 0 20px; }
  .brand { font-size: 19px; }
  .category-nav { gap: 16px; }
  .nav-item { font-size: 12px; }
  main { width: min(100% - 36px, 540px); }
  .home-hero { padding: 54px 0 46px; }
  .tool-section { padding-top: 46px; }
  .home-hero p, .calculator-intro p { font-size: 13px; }
  .tool-card { gap: 14px; padding: 18px 16px; }
  .tool-icon { width: 48px; height: 48px; border-radius: 14px; }
  .tool-description { font-size: 11px; }
  .site-footer { width: min(100% - 36px, 540px); margin-top: 50px; font-size: 9px; }
  .calculator-main { padding-top: 23px; }
  .calculator-intro { padding: 23px 0 18px; }
  .calculator-intro h1 { font-size: 27px; }
  .calculator-layout { grid-template-columns: 1fr; gap: 14px; }
  .input-card { padding: 22px 20px 19px; }
  .result-card { min-height: auto; }
  .result-empty { min-height: 315px; }
  .result-content { padding: 18px 2px 4px; }
  .method-card { padding: 20px; }
  .method-grid { grid-template-columns: 1fr; gap: 13px; }
  .lotto-main { padding-top: 23px; }
  .lotto-intro { padding: 22px 0 17px; }
  .lotto-layout { grid-template-columns: 1fr; gap: 13px; }
  .lotto-controls, .lotto-results { padding: 20px 18px; }
  .number-grid { grid-template-columns: repeat(9, minmax(24px, 1fr)); gap: 5px; }
  .number-chip { font-size: 9px; }
  .lotto-result-row { grid-template-columns: 20px 1fr auto; gap: 4px; padding-right: 6px; }
  .lotto-ball { width: 26px; height: 26px; font-size: 9px; }
  .combo-action { padding: 6px; }
  .saved-section { padding: 18px; }
  .saved-row { grid-template-columns: 45px 1fr auto auto; gap: 5px; }
}

@media (max-width: 390px) {
  .site-header { gap: 16px; padding: 0 15px; }
  .category-nav { gap: 12px; }
  main { width: calc(100% - 30px); }
  .fields-row { gap: 9px; }
  .field-label { font-size: 11px; }
  .site-footer { width: calc(100% - 30px); }
  .lotto-option-row { align-items: flex-start; flex-direction: column; }
  .choice-pills { align-self: stretch; }
  .choice-pill { flex: 1; }
  .number-grid { grid-template-columns: repeat(9, minmax(20px, 1fr)); gap: 4px; }
  .number-chip { font-size: 8px; }
  .lotto-result-row { grid-template-columns: 18px 1fr; }
  .combo-actions { grid-column: 2; justify-content: end; }
  .lotto-balls { gap: 4px; }
  .lotto-ball { width: 27px; height: 27px; }
  .saved-caption { max-width: 120px; text-align: right; line-height: 1.5; }
  .saved-row { grid-template-columns: 40px 1fr auto auto; }
  .saved-balls { gap: 3px; }
  .small-ball { width: 21px; height: 21px; font-size: 8px; }
}

/* Explanatory and supporting copy: enlarged by about 4pt for readability. */
.calculator-intro p { font-size: 18px; }
.home-note p { font-size: 17px; }
.field-label, .mode-fieldset legend, .lotto-label { font-size: 17px; }
.required, .optional, .field-help, .family-help, .privacy-hint { font-size: 15px; }
.form-error { font-size: 16px; }
.result-topline { font-size: 16px; }
.result-empty p, .result-label, .result-monthly, .deduction-heading { font-size: 16px; }
.result-monthly strong, .deduction-heading span:last-child { font-size: 17px; }
.net-highlight { font-size: 16px; }
.net-highlight strong { font-size: 19px; }
.deduction-list div { font-size: 15px; }
.result-footnote { font-size: 14px; }
.method-grid p { font-size: 15px; }
.method-grid strong { font-size: 16px; }
.method-caveat { font-size: 15px; }
.sources { font-size: 14px; }
.lotto-help, .selection-count, .selection-mode, .choice-pill { font-size: 15px; }
.number-legend { font-size: 14px; }
.number-legend button { font-size: 14px; }
.result-summary { font-size: 15px; }
.lotto-empty strong { font-size: 17px; }
.lotto-empty span { font-size: 15px; }
.combo-index, .saved-date { font-size: 14px; }
.combo-action { font-size: 14px; }
.fairness-note p { font-size: 14px; }
.saved-caption, .saved-empty { font-size: 14px; }
.site-footer { font-size: 16px; }

.page-description {
  width: min(960px, calc(100% - 48px));
  margin: 34px auto 0;
  padding: 18px 0 22px;
  border-top: 1px solid var(--line);
  color: #71817b;
}
.page-description .section-kicker { color: #819188; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.page-description h2 { margin: 7px 0 6px; color: #4b3a3c; font-size: 17px; letter-spacing: -.25px; }
.page-description p { max-width: 850px; margin: 0; font-size: 15px; line-height: 1.75; }

.travel-main { padding-top: 30px; }
.travel-intro { padding: 25px 0 23px; }
.travel-intro h1 { margin: 7px 0; font-size: 30px; letter-spacing: -1.2px; }
.travel-intro p { max-width: 700px; }
.travel-form-card, .destination-card { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 4px 16px #193c2c05; }
.travel-form-card { max-width: 580px; padding: 23px 25px 21px; }
.travel-form-heading, .destination-results-heading, .destination-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.travel-form-heading h2, .destination-results-heading h2 { margin: 5px 0 0; font-size: 19px; letter-spacing: -.5px; }
.travel-form-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: var(--mint); color: var(--green); font-size: 21px; }
.travel-days-label { display: block; margin: 22px 0 8px; color: #334640; font-size: 14px; font-weight: 700; }
.travel-days-label span { color: #726966; font-size: 12px; font-weight: 500; }
.travel-days-input { min-height: 48px; }
.travel-form-card .field-help { font-size: 12px; }
.travel-form-card .calculate-button { margin-top: 17px; }
.destination-results { margin-top: 31px; }
.destination-range { color: #766c69; font-size: 13px; }
.destination-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 15px; }
.destination-card { min-height: 245px; padding: 19px; }
.destination-theme { color: var(--green); font-size: 12px; font-weight: 700; }
.destination-number { color: #847a77; font-size: 12px; }
.destination-country { margin: 19px 0 2px; color: #766c69; font-size: 13px; }
.destination-card h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.5px; }
.destination-reason { min-height: 73px; margin: 0; color: #6f6462; font-size: 14px; line-height: 1.7; }
.destination-food-heading { display: block; margin-top: 14px; color: #4d3b3e; font-size: 13px; }
.destination-foods { margin: 5px 0 0; color: #706562; font-size: 13px; line-height: 1.65; }
.travel-disclaimer { margin: 14px 0 0; color: #7c7270; font-size: 12px; line-height: 1.7; }
.course-disclaimer { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: #f6e9eb; }
.travel-disclaimer a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.destination-card { padding: 19px; }
.destination-card-top, .destination-country, .destination-card h3, .destination-reason, .destination-food-heading, .destination-foods { margin-right: 19px; margin-left: 19px; }
.destination-card-top { margin-top: 15px; }
.destination-country { margin-top: 16px; }
.destination-card h3 { margin-bottom: 8px; }
.destination-reason { min-height: 72px; }
.course-section { margin-top: 34px; }
.course-intro { margin: 8px 0 15px; color: #71817b; font-size: 14px; line-height: 1.7; }
.itinerary-grid { display: grid; gap: 12px; }
.course-card { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.course-card summary { padding: 15px 17px; color: var(--green-dark); cursor: pointer; font-size: 15px; font-weight: 700; }
.course-card summary::marker { color: #82a391; }
.course-card[open] summary { border-bottom: 1px solid #edf1ef; }
.itinerary-days { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.itinerary-days li { display: grid; grid-template-columns: 51px 1fr; gap: 7px; color: #6f6462; font-size: 12px; line-height: 1.65; }
.itinerary-days strong { color: #504043; }
.course-card .itinerary-days { margin: 0; padding: 15px 17px 0; }
.course-card .itinerary-tip { margin: 11px 17px 16px; color: #847a77; font-size: 11px; line-height: 1.6; }

.meal-icon { font-size: 14px; font-weight: 800; letter-spacing: -1px; }
.menu-main { padding-top: 30px; }
.menu-intro { padding: 25px 0 23px; }
.menu-filter-card, .menu-result-card, .menu-favorites { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 4px 16px #193c2c05; }
.menu-filter-card { padding: 24px 26px 21px; }
.menu-filter-heading, .menu-results-heading, .menu-favorites-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.menu-filter-heading h2, .menu-results-heading h2, .menu-favorites-heading h2 { margin: 5px 0 0; font-size: 20px; letter-spacing: -.6px; }
.meal-note { color: #726966; font-size: 14px; }
.meal-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 19px 0; padding: 5px; border-radius: 10px; background: #f2f5f3; }
.meal-tab { min-height: 48px; border: 0; border-radius: 7px; background: transparent; color: #84918c; cursor: pointer; font-size: 16px; font-weight: 700; }
.meal-tab span { margin-right: 5px; color: #d49c54; }
.meal-tab[data-meal="dinner"] span { color: #6683a2; }
.meal-tab.selected { background: #fff; color: var(--green-dark); box-shadow: 0 1px 5px #2a20210d; }
.menu-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.menu-filter { display: flex; flex-direction: column; gap: 8px; color: #453936; font-size: 16px; font-weight: 700; }
.menu-filter select { width: 100%; height: 45px; padding: 0 11px; border: 1px solid #dce6e1; border-radius: 8px; outline: 0; background: #fff; color: #554648; font-size: 15px; }
.menu-filter select:focus { border-color: #70a892; box-shadow: 0 0 0 3px #eaf6f0; }
.menu-filter-hint { margin: 11px 0 0; color: #726966; font-size: 14px; line-height: 1.6; }
.menu-filter-actions { display: flex; align-items: center; gap: 15px; margin-top: 15px; }
.menu-filter-actions .calculate-button { max-width: 310px; margin: 0; }
.reset-menu-button { padding: 8px; border: 0; background: transparent; color: #706562; cursor: pointer; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.menu-results-section { margin-top: 28px; }
.menu-results-heading { margin-bottom: 5px; }
.surprise-button { padding: 10px 13px; border: 1px solid #d9ece4; border-radius: 8px; background: #f3faf5; color: var(--green); cursor: pointer; font-size: 14px; font-weight: 700; white-space: nowrap; }
.surprise-button span { margin-right: 4px; color: #d99550; }
.surprise-button:disabled { border-color: #edf1ef; background: #f8faf6; color: #918482; cursor: default; }
.menu-message { min-height: 25px; margin: 7px 0 14px; color: #756b68; font-size: 15px; }
.menu-results-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.menu-result-card { display: flex; min-height: 207px; flex-direction: column; padding: 16px; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.menu-result-card.is-picked { border-color: #8ab89d; background: #fdf7f7; box-shadow: 0 0 0 3px #e7f3eb; transform: translateY(-2px); }
.menu-result-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.menu-result-count { color: #726966; font-size: 13px; font-weight: 700; }
.menu-budget-tag { padding: 5px 7px; border-radius: 5px; background: #f2f6ed; color: #758a5c; font-size: 13px; white-space: nowrap; }
.menu-result-card h3 { margin: 15px 0 6px; font-size: 20px; letter-spacing: -.5px; }
.menu-result-description { min-height: 49px; margin: 0; color: #71817b; font-size: 15px; line-height: 1.65; }
.menu-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.menu-tags span { padding: 4px 7px; border-radius: 5px; background: #f5f7f6; color: #706562; font-size: 13px; }
.menu-result-actions { display: flex; gap: 7px; margin-top: auto; padding-top: 14px; }
.choose-menu-button, .save-menu-button { min-height: 38px; border: 1px solid #dce6e1; border-radius: 7px; background: #fff; color: var(--green); cursor: pointer; font-size: 14px; font-weight: 700; }
.choose-menu-button { flex: 1; }
.choose-menu-button:hover, .save-menu-button:hover { border-color: #91bca3; background: #f5faf6; }
.menu-result-card.is-picked .choose-menu-button { border-color: var(--green); background: var(--green); color: #fff; }
.save-menu-button { min-width: 76px; padding: 0 8px; color: #89545a; }
.menu-empty { display: flex; min-height: 170px; grid-column: 1 / -1; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px dashed #dce6e1; border-radius: 14px; background: #fbfcfb; color: #70817c; text-align: center; }
.menu-empty > span { font-size: 27px; }
.menu-empty strong { color: #4b3a3c; font-size: 17px; }
.menu-empty p { margin: 0; color: #726966; font-size: 15px; }
.menu-favorites { margin-top: 25px; padding: 19px 22px; }
.menu-favorites-heading > span { color: #726966; font-size: 14px; }
.favorite-menus { margin-top: 13px; }
.favorites-empty { margin: 0; padding: 12px 0 3px; color: #726966; font-size: 15px; }
.favorite-menu-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #edf1ef; }
.favorite-menu-row strong { font-size: 16px; }
.remove-favorite-button { border: 0; background: transparent; color: #80676a; cursor: pointer; font-size: 14px; text-decoration: underline; text-underline-offset: 2px; }
.meal-note, .menu-filter-hint { font-size: 19px; }
.menu-result-count, .menu-budget-tag, .menu-tags span { font-size: 18px; }

@media (max-width: 760px) {
  .travel-main { padding-top: 23px; }
  .travel-form-card { padding: 20px 18px; }
  .destination-grid { grid-template-columns: 1fr; }
  .destination-card { min-height: 0; }
  .destination-reason { min-height: 0; }
  .destination-results-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .page-description { width: calc(100% - 36px); margin-top: 27px; padding: 15px 0 19px; }
  .page-description p { font-size: 14px; }
  .menu-main { padding-top: 23px; }
  .menu-intro { padding: 22px 0 17px; }
  .menu-filter-card { padding: 20px 18px; }
  .menu-filter-grid { grid-template-columns: 1fr; gap: 11px; }
  .menu-results-grid { grid-template-columns: 1fr; }
  .menu-result-card { min-height: auto; }
  .menu-result-description { min-height: 0; }
  .menu-favorites { padding: 18px; }
}

@media (max-width: 390px) {
  .menu-filter-heading, .menu-favorites-heading { align-items: flex-start; }
  .meal-note { max-width: 120px; text-align: right; line-height: 1.45; }
  .menu-filter-actions { align-items: stretch; flex-direction: column; gap: 9px; }
  .menu-filter-actions .calculate-button { max-width: none; }
  .menu-results-heading { align-items: flex-start; flex-direction: column; }
  .surprise-button { align-self: flex-end; }
  .menu-favorites-heading > span { max-width: 125px; text-align: right; line-height: 1.5; }
}

/* BMW M reference adapted for the utility site: dark, precise, photo-free. */
:root { color-scheme: dark; }
body { background: var(--canvas); color: var(--body-copy); font-family: 'Inter', 'Noto Sans KR', sans-serif; font-weight: 300; }
h1, h2, h3 { color: #fff; font-family: 'Inter', 'Noto Sans KR', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: -.5px; }
h1 { font-size: clamp(38px, 5.5vw, 64px); line-height: 1.08; }
h2 { font-size: clamp(24px, 3vw, 40px); line-height: 1.15; }
.home-hero h1, .calculator-intro h1, .travel-intro h1, .menu-intro h1 {
  font-size: clamp(38px, 5.5vw, 64px); line-height: 1.08; letter-spacing: -.5px;
}
.site-header { position: relative; background: #000; border-bottom: 1px solid var(--line); }
.site-header::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: linear-gradient(90deg, var(--m-blue-light) 0 33.33%, var(--m-blue-dark) 33.33% 66.66%, var(--m-red) 66.66% 100%); content: ''; }
.brand, .category-nav .nav-item, .category-nav .nav-item.active { color: #fff; }
.nav-item.active::after, .category-nav .nav-item.active::after { background: #fff; height: 2px; bottom: 2px; }
.tool-card, .input-card, .result-card, .method-card, .lotto-controls, .lotto-results,
.saved-section, .travel-form-card, .destination-card, .course-card, .menu-filter-card,
.menu-result-card, .menu-favorites, .home-note {
  color: var(--body-copy); background: var(--surface-card); border: 1px solid var(--line);
  border-radius: 0; box-shadow: none;
}
.result-card, .empty-illustration, .net-highlight, .method-caveat, .course-disclaimer,
.fairness-note, .menu-empty, .upcoming small, .menu-tags span, .year-badge,
.menu-budget-tag, .segmented-control, .choice-pills, .meal-tabs, .amount-input-wrap,
.number-input-wrap, .secondary-input, .menu-filter select {
  background: var(--surface-soft); color: var(--body-copy); border-color: var(--line);
}
.tool-icon, .note-mark, .result-icon, .method-icon, .travel-form-mark, .lotto-mark, .lotto-empty-mark {
  border-radius: 0; background: var(--surface-card); color: var(--body-strong);
}
.tool-title, .card-heading h2, .travel-form-heading h2, .destination-results-heading h2,
.menu-filter-heading h2, .menu-results-heading h2, .menu-favorites-heading h2,
.destination-card h3, .menu-result-card h3, .result-salary, .method-grid strong,
.destination-food-heading, .itinerary-days strong, .lotto-empty strong { color: #fff; }
.nav-item, .tool-description, .tool-count, .home-note p, .site-footer,
.site-footer a, .breadcrumbs, .step-label, .field-label, .required, .optional,
.input-unit, .field-help, .number-input-wrap span, .privacy-hint, .result-topline,
.result-empty p, .result-label, .result-monthly, .net-highlight, .deduction-heading,
.deduction-heading span:last-child, .deduction-list dt, .deduction-list dd,
.result-footnote, .method-grid p, .method-caveat, .sources, .sources span,
.lotto-label, .lotto-help, .choice-pill, .selection-count, .selection-mode,
.selection-mode span:last-child, .number-legend, .number-legend button,
.result-summary, .lotto-empty, .lotto-empty span, .combo-index, .combo-action,
.fairness-note p, .fairness-note strong, .saved-caption, .saved-empty, .saved-date,
.page-description, .page-description h2, .page-description p,
.travel-days-label, .travel-days-label span, .destination-range, .destination-number,
.destination-country, .destination-reason, .destination-foods, .travel-disclaimer,
.course-intro, .itinerary-days li, .course-card summary, .course-card .itinerary-tip,
.meal-note, .meal-tab, .menu-filter, .menu-filter-hint, .reset-menu-button,
.menu-message, .menu-result-count, .menu-result-description, .menu-empty,
.menu-empty strong, .menu-empty p, .menu-favorites-heading > span,
.favorites-empty, .remove-favorite-button { color: var(--body-copy); }
.category-nav .nav-item.active, .site-footer a, .tool-arrow, .destination-theme,
.travel-disclaimer a, .course-card summary::marker { color: #fff; }
.calculate-button, .menu-result-card.is-picked .choose-menu-button {
  min-height: 48px; border: 1px solid #fff; border-radius: 0; background: #fff; color: #000;
  font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.calculate-button:hover, .menu-result-card.is-picked .choose-menu-button:hover { background: #e6e6e6; color: #000; }
.surprise-button, .choose-menu-button, .save-menu-button, .combo-action,
.selection-mode, .reset-menu-button, .number-legend button, .remove-favorite-button {
  min-height: 48px; border: 1px solid var(--line); border-radius: 0; background: transparent; color: #fff;
}
button:not(.number-chip):not(.lotto-ball) { min-height: 48px; border-radius: 0; }
.segment span, .choice-pill, .meal-tab { min-height: 48px; border-radius: 0; color: var(--body-copy); }
.segment input:checked + span, .choice-pill.selected, .meal-tab.selected,
.selection-mode.selected.fixed-mode, .selection-mode.selected.excluded-mode {
  border-color: #fff; background: #262626; color: #fff; box-shadow: none;
}
.segment input:focus-visible + span { outline: 2px solid var(--focus-outer); outline-offset: 3px; }
.amount-input-wrap, .number-input-wrap, .menu-filter select, .travel-days-input {
  min-height: 48px; border: 1px solid var(--line); border-radius: 0; background: var(--surface-card); color: #fff;
}
.amount-input-wrap input, .number-input-wrap input, .menu-filter select { color: #fff; }
.amount-input-wrap:focus-within, .number-input-wrap:focus-within,
.menu-filter select:focus { border-color: #fff; outline: 2px solid var(--focus-outer); outline-offset: 2px; box-shadow: none; }
.tool-card:hover, .menu-result-card:hover, .destination-card:hover,
.menu-result-card.is-picked { border-color: #fff; background: var(--surface-card); box-shadow: none; transform: none; }
.menu-result-card.is-picked .choose-menu-button { border-color: #fff; }
.form-error { color: #ff8f85; }
.number-chip { border-radius: 50%; }
.ball-yellow { background: #f8e29a; color: #332800; }
.ball-blue { background: #a8d3f2; color: #073450; }
.ball-red { background: #f3a39c; color: #4c1510; }
.ball-gray { background: #c6cccf; color: #222; }
.ball-green { background: #a9d8b4; color: #123c20; }
.number-chip.is-fixed { border-color: #fff; box-shadow: 0 0 0 2px #1c69d4; }
.number-chip.is-excluded { border-color: #e22718; background: #40211f; color: #ffb3ac; }
.mode-dot, .number-legend i { background: var(--m-blue-dark); }
.excluded-mode .mode-dot, .legend-excluded { background: var(--m-red); }
.field-divider, .result-monthly, .deduction-list div, .saved-row,
.course-card[open] summary { border-color: var(--line); }
.tool-tags span, .menu-tags span, .lotto-result-row, .number-select-heading,
.course-disclaimer, .menu-empty, .surprise-button:disabled {
  border-color: var(--line); border-radius: 0; background: var(--surface-soft); color: var(--body-copy);
}
.menu-empty strong, .page-description h2 { color: #fff; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--focus-outer); outline-offset: 3px;
}
@media (max-width: 760px) {
  h1, .home-hero h1, .calculator-intro h1, .travel-intro h1, .menu-intro h1 { font-size: 40px; }
}
@media (max-width: 480px) {
  h1, .home-hero h1, .calculator-intro h1, .travel-intro h1, .menu-intro h1 { font-size: 34px; }
}

/* Disabled duplicate block; final shared BMW overrides are at the end of this file.
:root {
  --ink: #262626;
  --muted: #6b6b6b;
  --body-copy: #3c3c3c;
  --body-strong: #1a1a1a;
  --line: #e6e6e6;
  --surface-card: #fafafa;
  --surface-soft: #f7f7f7;
  --surface-secondary: #ebebeb;
  --primary: #1c69d4;
  --primary-pressed: #0653b6;
  --focus-outer: #1c69d4;
}

body { background: #fff; color: #262626; font-family: Inter, 'Noto Sans KR', Arial, sans-serif; line-height: 1.6; }
main { color: #262626; }
main :is(p, li, dd, dt, small, label, legend, summary, figcaption, .tool-description, .tool-count, .field-help, .privacy-hint, .result-topline, .result-label, .result-footnote, .festival-status, .festival-count, .festival-source, .festival-card-address, .festival-card-phone, .restaurant-card p, .loan-period-note, .loan-method-copy p, .course-disclaimer, .travel-disclaimer) { color: #3c3c3c; line-height: 1.75; }
main p + p, .page-description li + li { margin-top: 1em; }
h1, h2, h3, h4, strong, b { color: #262626; }
a { color: #1c69d4; }
.brand, .brand span, .brand .brand-highlight { color: #262626; }
.site-header { background: #fff; border-bottom-color: #e6e6e6; }
.category-nav .nav-item, .category-nav .nav-item.active { color: #262626; }
.nav-item.active::after, .category-nav .nav-item.active::after { background: #1c69d4; }
.home-hero, .calculator-intro, .travel-intro, .menu-intro, .lotto-intro, .loan-intro, .festival-intro { background: #f7f7f7; color: #262626; }
.home-hero h1, .calculator-intro h1, .travel-intro h1, .menu-intro h1, .lotto-intro h1, .loan-intro h1, .festival-intro h1 { color: #262626; font-family: Inter, 'Noto Sans KR', Arial, sans-serif; font-weight: 700; }
.home-hero p, .calculator-intro p, .travel-intro p, .menu-intro p, .lotto-intro p, .loan-intro p, .festival-intro p { color: #3c3c3c; line-height: 1.75; }
.home-hero h1::after, .calculator-intro h1::after, .travel-intro h1::after, .menu-intro h1::after, .lotto-intro h1::after, .loan-intro h1::after, .festival-intro h1::after { background: #1c69d4; }
.section-kicker, .eyebrow, .step-label, .breadcrumbs { color: #6b6b6b; }
.tool-card, .input-card, .result-card, .method-card, .lotto-controls, .lotto-results, .saved-section, .travel-form-card, .destination-card, .course-card, .menu-filter-card, .menu-result-card, .menu-favorites, .home-note, .loan-form, .loan-results, .festival-query-card, .festival-results, .festival-card, .restaurant-card { background: #fff; border-color: #e6e6e6; box-shadow: none; color: #262626; }
.home-note, .method-caveat, .course-disclaimer, .fairness-note, .menu-empty, .loan-empty, .year-badge, .net-highlight, .restaurant-status { background: #f7f7f7; color: #3c3c3c; border-color: #e6e6e6; }
.tool-title, .card-heading h2, .travel-form-heading h2, .destination-results-heading h2, .menu-filter-heading h2, .menu-results-heading h2, .menu-favorites-heading h2, .destination-card h3, .menu-result-card h3, .result-salary, .method-grid strong, .destination-food-heading, .itinerary-days strong, .lotto-empty strong, .festival-card h3, .festival-card-date, .restaurant-card h4, .page-description h2 { color: #262626; }
.tool-description, .tool-count, .home-note p, .result-empty p, .method-grid p, .method-caveat, .result-footnote, .result-label, .result-monthly, .deduction-list dt, .deduction-list dd, .festival-status, .festival-count, .festival-card-address, .festival-card-phone, .festival-source, .restaurant-card p, .loan-period-note, .loan-method-copy p { color: #3c3c3c; }
.tool-icon, .note-mark, .result-icon, .method-icon, .travel-form-mark, .lotto-mark, .lotto-empty-mark, .empty-illustration { background: #f7f7f7; color: #1c69d4; }
.calculate-button, .festival-restaurant-toggle { background: #1c69d4; color: #fff; border-radius: 0; }
.calculate-button:hover, .festival-restaurant-toggle:hover { background: #0653b6; }
.festival-shortcuts button, .festival-more, .loan-quick-amounts button, .loan-reset-button, .shuffle-destinations { background: #fff; color: #262626; border-color: #ccc; border-radius: 0; }
.festival-shortcuts button:hover, .festival-more:hover { background: #f7f7f7; color: #1a1a1a; border-color: #6b6b6b; }
.amount-input-wrap, .number-input-wrap, .secondary-input, .loan-term-control, .menu-filter select, .festival-field select, .festival-field input, input, select, textarea { background: #fff; color: #262626; border-color: #ccc; border-radius: 0; color-scheme: light; }
input::placeholder, textarea::placeholder { color: #6b6b6b; opacity: 1; }
option { background: #fff; color: #262626; }
.amount-input-wrap input, .number-input-wrap input, .number-input-wrap span, .loan-term-control input, .loan-term-control select, #loan-method { color: #262626; }
.festival-category-option { background: #fff; color: #262626; }
.festival-category-option:has(input:checked) { background: #f7f7f7; border-color: #1c69d4; }
.festival-card-date, .festival-card h3, .restaurant-card h4 { color: #262626; }
.festival-photo { background: #f7f7f7; }
.festival-photo figcaption { color: #3c3c3c; }
.festival-map-link, .festival-source a, .restaurant-card > a, .breadcrumbs a, .sources a, .link-inline { color: #0653b6; }
.festival-restaurant-toggle { border: 0; }
.festival-source { border-color: #e6e6e6; }
.page-description { background: #f7f7f7; color: #3c3c3c; }
.page-description .section-kicker { color: #6b6b6b; }
.page-description h2 { margin-bottom: 16px; }
.page-description p { color: #3c3c3c; font-size: 16px; line-height: 1.8; }
.page-description p + p { margin-top: 1em; }
.site-footer { background: #f7f7f7; color: #3c3c3c; }
.site-footer a, .site-footer span:first-child { color: #3c3c3c; }
.loan-summary-grid > div { background: #f7f7f7; }
.loan-summary-grid span, .loan-summary-grid strong, .loan-summary-reading, .loan-method-copy strong, .loan-schedule caption { color: #262626; }
.loan-schedule th { background: #f7f7f7; color: #262626; }
.loan-schedule td { color: #3c3c3c; }
.number-chip.is-fixed { border-color: #1c69d4; }
.number-chip.is-excluded { border-color: #e22718; background: #f7e9e7; color: #7a2118; }
:is(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid #1c69d4; outline-offset: 3px; }
*/

.loan-main { padding-top: 30px; }
.loan-intro { padding: 25px 0; }
.loan-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.loan-form, .loan-results { min-width: 0; padding: 24px; }
.loan-form > .field-label { margin-top: 17px; }
.loan-amount-reading { min-height: 22px; margin: 7px 0 2px; color: var(--body-copy); font-size: 14px; font-weight: 400; }
.loan-quick-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.loan-quick-amounts button, .loan-reset-button {
  min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--body-copy); cursor: pointer; font-size: 13px;
}
.loan-fields-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 17px; }
.loan-term-control { display: grid; grid-template-columns: 1fr 88px; min-height: 48px; border: 1px solid var(--line); }
.loan-term-control input, .loan-term-control select, #loan-method {
  width: 100%; min-width: 0; min-height: 48px; padding: 0 12px; border: 0; border-radius: 0;
  background: var(--surface-soft); color: #fff; font: inherit;
}
.loan-term-control select { border-left: 1px solid var(--line); }
#loan-method { margin-top: 0; border: 1px solid var(--line); }
.loan-actions { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.loan-actions .calculate-button { flex: 1; margin: 0; }
.loan-reset-button { min-width: 90px; color: #fff; }
.loan-results-heading { margin-bottom: 17px; }
.loan-results-heading h2 { margin: 5px 0 0; font-size: 24px; }
.loan-empty { display: grid; min-height: 220px; margin: 0; padding: 24px; place-items: center; border: 1px dashed var(--line); color: var(--muted); text-align: center; line-height: 1.7; }
.loan-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.loan-summary-grid > div { display: flex; min-height: 92px; flex-direction: column; justify-content: center; gap: 8px; padding: 14px; background: var(--surface-soft); }
.loan-summary-grid span { color: var(--muted); font-size: 13px; }
.loan-summary-grid strong { color: #fff; font-size: clamp(16px, 2vw, 22px); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.loan-summary-reading { color: var(--body-copy); font-size: 13px; font-weight: 400; }
.loan-period-note { margin: 14px 0; color: var(--body-copy); font-size: 14px; line-height: 1.6; }
.loan-schedule-wrap { max-height: 540px; overflow: auto; border: 1px solid var(--line); }
.loan-schedule { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.loan-schedule caption { padding: 12px; color: #fff; font-size: 14px; font-weight: 700; text-align: left; }
.loan-schedule th, .loan-schedule td { padding: 10px 11px; border-top: 1px solid var(--line); }
.loan-schedule th { position: sticky; top: 0; background: #262626; color: var(--body-strong); font-weight: 600; }
.loan-schedule td { color: var(--body-copy); }
.loan-method-note { margin-top: 28px; }
.loan-method-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 17px; }
.loan-method-copy p { margin: 0; color: var(--body-copy); font-size: 14px; line-height: 1.8; }
.loan-method-copy strong { color: #fff; }
.destination-results-actions { display: flex; align-items: center; gap: 12px; }
.shuffle-destinations {
  min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 0;
  background: transparent; color: #fff; cursor: pointer; font-size: 13px;
}
.number-legend button {
  display: inline-flex; width: 112px; min-width: 112px; flex: 0 0 112px;
  align-items: center; justify-content: center; margin-left: auto; padding: 0 10px;
  text-align: center; text-decoration: none; white-space: nowrap;
}
.brand .brand-highlight { color: var(--m-red); }
input, select, textarea {
  color-scheme: dark; border-color: var(--line); background-color: var(--surface-soft); color: #fff;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
option { background: var(--surface-card); color: #fff; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--m-blue-dark); }
@media (max-width: 900px) { .loan-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .loan-main { padding-top: 22px; }
  .loan-form, .loan-results { padding: 18px; }
  .loan-fields-row, .loan-method-copy { grid-template-columns: 1fr; gap: 12px; }
  .loan-summary-grid > div { min-height: 82px; padding: 11px; }
  .loan-schedule { font-size: 12px; }
  .destination-results-actions { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 390px) {
  .site-header { gap: 10px; padding: 0 12px; }
  .brand { font-size: 15px; letter-spacing: -.6px; }
  .category-nav { gap: 8px; }
  .nav-item { font-size: 11px; }
}

/* Korea Tourism API festival finder */
.festival-main{padding-top:30px}.festival-intro{padding-bottom:24px}
.festival-query-card,.festival-results{margin-top:18px;padding:25px;border:1px solid var(--line);background:var(--surface-card)}
.festival-query-card{display:grid;gap:17px}.festival-field{display:grid;gap:8px;min-width:0}.festival-field label{color:var(--body-strong);font-size:14px;font-weight:600}
.festival-location-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.festival-category-field{min-width:0;margin:0;padding:0;border:0}.festival-category-field legend{margin-bottom:10px;color:var(--body-strong);font-size:14px;font-weight:600}.festival-category-field legend span{margin-left:6px;color:var(--body-copy);font-size:12px;font-weight:400}.festival-category-options{display:flex;flex-wrap:wrap;gap:8px}.festival-category-options>span{color:var(--body-copy);font-size:14px}.festival-category-option{display:inline-flex;min-height:42px;align-items:center;gap:8px;padding:0 12px;border:1px solid var(--line);background:#fff;color:var(--ink);cursor:pointer;font-size:14px}.festival-category-option:has(input:checked){border-color:#312d2a;background:#f5f4f2}.festival-category-option input{width:16px;min-width:16px;height:16px;min-height:16px;margin:0;accent-color:#312d2a}
.festival-field select,.festival-field input{width:100%;min-width:0;min-height:48px;padding:0 13px;border:1px solid var(--line);border-radius:0;background:#262626;color:#fff;font:inherit;font-size:15px}
.festival-field select:focus-visible,.festival-field input:focus-visible{outline:2px solid var(--focus-outer);outline-offset:2px}
.festival-date-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.festival-shortcuts{display:flex;flex-wrap:wrap;gap:8px}
.festival-shortcuts button,.festival-more{min-height:48px;padding:0 15px;border:1px solid var(--line);border-radius:0;background:transparent;color:var(--body-copy);cursor:pointer;font:inherit;font-size:14px}
.festival-shortcuts button:hover,.festival-more:hover{border-color:#fff;color:#fff}.festival-submit{margin-top:0}.festival-results{margin-top:24px}
.festival-results-heading{display:flex;align-items:end;justify-content:space-between;gap:16px}.festival-results-heading h2{margin:6px 0 0;font-size:21px}.festival-count{color:var(--body-copy);font-size:13px}
.festival-status{margin:15px 0 0;color:var(--body-copy);font-size:14px;line-height:1.7}.festival-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}
.festival-card{min-width:0;padding:19px;border:1px solid var(--line);background:#111}.festival-card h3{margin:0;color:#fff;font-size:17px;line-height:1.5}
.festival-photo{margin:0 0 15px;background:#080808}.festival-photo img{display:block;width:100%;height:190px;object-fit:contain}.festival-photo figcaption{padding:7px 9px;color:var(--body-copy);font-size:12px;line-height:1.5}
.festival-card-date{margin:11px 0 0;color:#fff;font-size:14px;font-weight:600}.festival-card-address,.festival-card-phone{margin:8px 0 0;color:var(--body-copy);font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.festival-map-link{display:inline-flex;align-items:center;min-height:48px;margin-top:8px;color:#fff;font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:4px}
.festival-restaurant-toggle{display:block;width:100%;min-height:48px;margin-top:10px;padding:0 12px;border:1px solid var(--line);background:#1a1a1a;color:#fff;text-align:center;cursor:pointer;font:inherit;font-size:14px;font-weight:600}.festival-restaurant-toggle:hover{border-color:#fff}.festival-restaurants{display:grid;gap:10px;margin-top:12px}.festival-restaurants[hidden]{display:none}.restaurant-card{min-width:0;padding:13px;border:1px solid var(--line);background:#171717}.restaurant-card h4{margin:0;color:#fff;font-size:15px;line-height:1.5}.restaurant-card p{margin:6px 0 0;color:var(--body-copy);font-size:13px;line-height:1.6;overflow-wrap:anywhere}.restaurant-card>a{display:inline-flex;align-items:center;min-height:44px;margin-top:3px;color:#fff;font-size:13px;text-decoration:underline;text-underline-offset:3px}.restaurant-card .festival-photo{margin:-13px -13px 12px}.restaurant-status{margin:0;color:var(--body-copy);font-size:13px;line-height:1.6}
.festival-more{display:block;margin:18px auto 0;color:#fff}.festival-more[hidden]{display:none}.festival-source{margin:20px 0 0;padding-top:15px;border-top:1px solid var(--line);color:var(--body-copy);font-size:13px;line-height:1.7}.festival-source a{color:#fff;text-decoration:underline}
@media(max-width:640px){.festival-main{padding-top:22px}.festival-query-card,.festival-results{padding:18px}.festival-date-row,.festival-location-row,.festival-grid{grid-template-columns:1fr}.festival-results-heading{align-items:flex-start}.festival-results-heading h2{font-size:19px}.festival-count{padding-top:15px}}

/* Shared Oracle-inspired warm neutral design */
:root {
  color-scheme: light;
  --ink: #161513;
  --muted: #625d58;
  --line: #e4e1dd;
  --paper: #ffffff;
  --canvas: #ffffff;
  --primary: #312d2a;
  --primary-pressed: #47423e;
  --green: #312d2a;
  --green-dark: #312d2a;
  --mint: #f5f4f2;
  --orange: #c74634;
  --surface-card: #ffffff;
  --surface-soft: #f5f4f2;
  --surface-secondary: #f5f4f2;
  --hairline-soft: #e9e7e4;
  --focus-outer: #227e9e;
  --body-copy: #5e5954;
  --body-strong: #161513;
  font-family: 'Inter', 'Noto Sans KR', Arial, sans-serif;
}

body { background: #fff; color: #161513; font-family: 'Inter', 'Noto Sans KR', Arial, sans-serif; font-size: 16px; font-weight: 400; }
.site-header { position: relative; height: 85px; background: #fff; border-bottom: 1px solid #e4e1dd; }
.site-header::after { display: none; }
.brand { color: #161513; font-weight: 700; letter-spacing: 0; }
.brand span, .brand .brand-highlight { color: #c74634; }
.category-nav { gap: 25px; }
.nav-item, .category-nav .nav-item, .category-nav .nav-item.active { color: #4d4945; font-weight: 500; }
.nav-item.active, .category-nav .nav-item.active { color: #161513; }
.nav-item.active::after, .category-nav .nav-item.active::after { right: auto; bottom: 0; width: 67px; height: 5px; border-radius: 0; background: #f7e0a1; }
main { width: min(100% - 48px, 1080px); }
.home-hero { padding: 48px 40px; background: #f1efed; }
.home-hero h1 { max-width: 820px; font-family: 'Inter', 'Noto Sans KR', Arial, sans-serif; font-size: clamp(36px, 5vw, 48px); font-weight: 300; line-height: 1.3; letter-spacing: 0; }
.calculator-intro, .travel-intro, .menu-intro, .lotto-intro, .loan-intro, .festival-intro { margin: 20px 0 24px; padding: 36px 32px; background: #f1efed; }
.calculator-intro h1, .travel-intro h1, .menu-intro h1, .lotto-intro h1, .loan-intro h1, .festival-intro h1 { font-family: Georgia, 'Noto Serif KR', serif; font-size: clamp(34px, 4vw, 44px); font-weight: 400; line-height: 1.2; letter-spacing: 0; }
.home-hero h1::after, .calculator-intro h1::after, .travel-intro h1::after, .menu-intro h1::after, .lotto-intro h1::after, .loan-intro h1::after, .festival-intro h1::after { display: block; width: 40px; height: 4px; margin-top: 16px; background: #f0cc71; content: ''; }
.home-hero p, .calculator-intro p, .travel-intro p, .menu-intro p, .lotto-intro p, .loan-intro p, .festival-intro p { color: #5e5954; font-size: 16px; line-height: 1.75; }
.eyebrow, .section-kicker, .step-label, .breadcrumbs, .tool-count { color: #625d58; }
.breadcrumbs a, .sources a, .festival-source a, .link-inline { color: #006b8f; }
.tool-card, .input-card, .result-card, .method-card, .lotto-controls, .lotto-results, .saved-section, .travel-form-card, .destination-card, .course-card, .menu-filter-card, .menu-result-card, .menu-favorites, .home-note, .loan-form, .loan-results, .festival-query-card, .festival-results, .festival-card, .restaurant-card {
  color: #161513; background: #fff; border: 1px solid #e4e1dd; border-radius: 8px; box-shadow: none;
}
.tool-card { border-radius: 12px; }
.home-note, .method-caveat, .course-disclaimer, .fairness-note, .menu-empty, .year-badge, .net-highlight, .festival-photo, .restaurant-status { background: #f5f4f2; color: #4d4945; border-color: #e4e1dd; }
.tool-title, .card-heading h2, .travel-form-heading h2, .destination-results-heading h2, .menu-filter-heading h2, .menu-results-heading h2, .menu-favorites-heading h2, .destination-card h3, .menu-result-card h3, .result-salary, .method-grid strong, .destination-food-heading, .itinerary-days strong, .lotto-empty strong, .festival-card h3, .festival-card-date, .restaurant-card h4 { color: #161513; }
.tool-description, .tool-count, .home-note p, .page-description, .page-description p, .site-footer, .site-footer a, .breadcrumbs, .step-label, .field-label, .required, .optional, .input-unit, .field-help, .number-input-wrap span, .privacy-hint, .result-topline, .festival-status, .festival-count, .festival-card-address, .festival-card-phone, .festival-source, .restaurant-card p { color: #5e5954; }
.tool-icon, .note-mark, .result-icon, .method-icon, .travel-form-mark, .lotto-mark, .lotto-empty-mark, .empty-illustration { border-radius: 8px; background: #f5f4f2; color: #312d2a; }
.tool-tags span, .menu-tags span, .lotto-result-row, .number-select-heading, .course-disclaimer, .menu-empty, .surprise-button:disabled { border-color: #e4e1dd; border-radius: 8px; background: #fbf9f8; color: #4d4945; }
.tool-card:hover { border-color: #c9c3bd; box-shadow: none; }
.calculate-button, .festival-restaurant-toggle { min-height: 48px; border: 0; border-radius: 4px; background: #312d2a; color: #fff; box-shadow: none; }
.calculate-button:hover, .festival-restaurant-toggle:hover { background: #47423e; border-color: #47423e; }
.calculate-button:disabled, .calculate-button:disabled:hover { background: #f1efed; color: #aea8a2; }
.festival-field select, .festival-field input, .menu-filter select, .loan-term-control select, select, textarea { color: #161513; color-scheme: light; }
.amount-input-wrap, .number-input-wrap, .secondary-input, .loan-term-control, .menu-filter select, .festival-field select, .festival-field input, input, select, textarea { border-color: #d4cfca; border-radius: 6px; background-color: #fff; color: #161513; }
.segmented-control, .choice-pills, .meal-tabs { border-radius: 6px; background: #f5f4f2; }
.segment span, .choice-pill, .meal-tab { border-radius: 4px; color: #5e5954; }
.segment input:checked + span, .choice-pill.selected, .meal-tab.active { background: #fff; color: #161513; box-shadow: none; }
.result-card { background: #fff; }
.result-empty p, .method-grid p, .method-caveat, .result-footnote, .result-label, .result-monthly, .deduction-list dt, .deduction-list dd { color: #5e5954; }
.net-highlight { border-radius: 8px; background: #f1efed; color: #312d2a; }
.net-highlight strong, .result-salary { color: #312d2a; }
.method-grid strong, .deduction-heading, .deduction-list dd { color: #312d2a; }
.method-caveat, .fairness-note, .course-disclaimer, .home-note { border: 1px solid #e4e1dd; border-radius: 8px; background: #fbf9f8; }
.field-divider, .result-monthly, .deduction-list div, .saved-row, .course-card[open] summary { border-color: #e9e7e4; }
.sources { color: #5e5954; }
.sources span { color: #312d2a; }
.sources a, .festival-source a { color: #006b8f; text-decoration: none; }
.festival-query-card, .festival-results, .festival-card, .restaurant-card { background: #fff; }
.festival-query-card, .festival-results { border-radius: 8px; }
.festival-field select, .festival-field input { border-radius: 6px; background: #fff; color: #161513; }
.festival-shortcuts button, .festival-more { border-color: #312d2a; border-radius: 4px; background: transparent; color: #312d2a; }
.festival-shortcuts button:hover, .festival-more:hover { border-color: #47423e; background: #f5f4f2; color: #161513; }
.festival-card { background: #fff; }
.festival-photo { border-radius: 8px; background: #f5f4f2; }
.festival-photo figcaption { color: #5e5954; }
.festival-card-date { color: #312d2a; }
.festival-map-link, .restaurant-card>a { color: #006b8f; }
.festival-restaurant-toggle { background: #312d2a; color: #fff; }
.restaurant-card { background: #fbf9f8; }
.festival-source { border-color: #e9e7e4; }
.number-chip.is-excluded { border-color: #c58c7c; background: #f1e8e4; color: #80665f; }
.number-chip.is-fixed { border-color: #16735d; }
.page-description { width: 100%; max-width: none; margin: 48px 0 0; padding: 48px max(24px, calc((100vw - 1080px) / 2)); border: 0; background: #fbf9f8; color: #5e5954; }
.page-description .section-kicker { color: #625d58; }
.page-description h2 { max-width: 1080px; margin: 0 auto 10px; color: #161513; font-size: 24px; font-weight: 700; letter-spacing: 0; }
.page-description p { max-width: 1080px; margin: 0 auto; font-size: 16px; line-height: 1.75; }
.site-footer { width: 100%; min-height: 105px; margin: 0; padding: 34px max(24px, calc((100vw - 1080px) / 2)); border: 0; background: #fff; color: #5e5954; font-size: 12px; }
.site-footer a, .site-footer span:first-child { color: #5e5954; }
.site-header::after, .nav-item.active::after { box-shadow: none; }
h1, h2, h3, h4 { color: #161513; text-transform: none; letter-spacing: 0; }
.tool-section .section-heading h1 { font-family: 'Inter', 'Noto Sans KR', Arial, sans-serif; font-weight: 300; }
.tool-section .section-heading h1 { font-size: 32px; line-height: 1.35; }
.loan-term-control input, .loan-term-control select, #loan-method { border-radius: 6px; background: #fff; color: #161513; color-scheme: light; }
.loan-quick-amounts button, .loan-reset-button, .shuffle-destinations { border-radius: 4px; border-color: #312d2a; background: transparent; color: #312d2a; }
.loan-summary-grid > div { background: #f5f4f2; }
.loan-summary-grid strong, .loan-schedule caption, .loan-schedule th, .loan-method-copy strong { color: #161513; }
.loan-schedule th { background: #f5f4f2; }
.travel-disclaimer a, .course-card summary::marker { color: #006b8f; }
option { background: #fff; color: #161513; }
input[type="radio"], input[type="checkbox"] { accent-color: #312d2a; }
.amount-input-wrap:focus-within, .number-input-wrap:focus-within, .menu-filter select:focus { box-shadow: none; }
.number-chip:hover, .number-chip.is-fixed, .lotto-ball { box-shadow: none; }
.number-chip:hover { transform: none; }
.method-card, .input-card, .result-card, .lotto-controls, .lotto-results, .saved-section, .travel-form-card, .destination-card, .course-card, .menu-filter-card, .menu-result-card, .menu-favorites, .loan-form, .loan-results, .festival-query-card, .festival-results { box-shadow: none; }
.brand, .category-nav .nav-item, .category-nav .nav-item.active { border-color: transparent; background: transparent; }
.nav-item, .tool-description, .tool-count, .home-note p, .site-footer, .site-footer a, .breadcrumbs, .step-label, .field-label, .required, .optional, .input-unit, .field-help, .number-input-wrap span, .privacy-hint, .result-topline { border-color: transparent; background: transparent; color: #5e5954; }
.category-nav .nav-item.active { color: #161513; }
.page-description h2, .menu-empty strong { color: #161513; }
.tool-title, .card-heading h2, .travel-form-heading h2, .destination-results-heading h2, .menu-filter-heading h2, .menu-results-heading h2, .menu-favorites-heading h2, .destination-card h3, .menu-result-card h3, .result-salary, .method-grid strong, .destination-food-heading, .itinerary-days strong, .lotto-empty strong, .festival-card h3, .festival-card-date, .restaurant-card h4 { background: transparent; }

@media (max-width: 760px) {
  .site-header { height: 72px; gap: 16px; padding: 0 20px; }
  .category-nav { gap: 14px; }
  .nav-item { font-size: 13px; }
  .home-hero { padding: 36px 24px; }
  .calculator-intro, .travel-intro, .menu-intro, .lotto-intro, .loan-intro, .festival-intro { padding: 30px 24px; }
  .page-description { margin-top: 36px; padding: 36px 20px; }
  .page-description h2, .page-description p { max-width: none; }
  .site-footer { padding: 28px 20px; }
}
@media (max-width: 480px) {
  .site-header { gap: 10px; padding: 0 12px; }
  .brand { font-size: 15px; }
  .category-nav { gap: 8px; }
  .nav-item { font-size: 11px; }
  .home-hero { padding: 32px 20px; }
  .calculator-intro, .travel-intro, .menu-intro, .lotto-intro, .loan-intro, .festival-intro { padding: 26px 20px; }
}

/* Final shared BMW contrast and copy-rhythm overrides */
:root { --ink:#262626; --muted:#6b6b6b; --body-copy:#3c3c3c; --body-strong:#1a1a1a; --line:#e6e6e6; --surface-card:#fafafa; --surface-soft:#f7f7f7; --primary:#1c69d4; --primary-pressed:#0653b6; --focus-outer:#1c69d4; }
body, main { background:#fff; color:#262626; font-family:Inter,'Noto Sans KR',Arial,sans-serif; line-height:1.6; }
main :is(p,li,dd,dt,small,label,legend,summary,figcaption,.tool-description,.tool-count,.field-help,.privacy-hint,.result-topline,.result-label,.result-footnote,.festival-status,.festival-count,.festival-source,.festival-card-address,.festival-card-phone,.restaurant-card p,.loan-period-note,.loan-method-copy p,.course-disclaimer,.travel-disclaimer) { color:#3c3c3c; line-height:1.75; }
main :is(.tool-description,.field-help,.privacy-hint,.method-grid p,.method-caveat,.result-footnote,.fairness-note p,.travel-disclaimer,.course-intro,.itinerary-days li,.course-card .itinerary-tip,.menu-filter-hint,.menu-result-description,.loan-period-note,.loan-method-copy p) { font-size:14px; line-height:1.75; }
main p+p { margin-top:1em; }
main :is(h1,h2,h3,h4,strong,b) { color:#262626; }
a { color:#1c69d4; }
.brand,.brand span,.brand .brand-highlight,.category-nav .nav-item,.category-nav .nav-item.active { color:#262626; }
.brand .brand-highlight { color:#1c69d4; }
.site-header { background:#fff; border-bottom-color:#e6e6e6; }
.nav-item.active::after,.category-nav .nav-item.active::after { right:0; left:0; bottom:0; width:auto; height:4px; border-radius:0; background:#1c69d4; }
.tool-section > .tool-card + .tool-card { margin-top:12px; }
.tool-arrow,.destination-theme { color:#1c69d4; }
.home-hero,.calculator-intro,.travel-intro,.menu-intro,.lotto-intro,.loan-intro,.festival-intro { background:#f7f7f7; color:#262626; }
.home-hero h1,.calculator-intro h1,.travel-intro h1,.menu-intro h1,.lotto-intro h1,.loan-intro h1,.festival-intro h1 { color:#262626; font-family:Inter,'Noto Sans KR',Arial,sans-serif; font-weight:700; }
.home-hero p,.calculator-intro p,.travel-intro p,.menu-intro p,.lotto-intro p,.loan-intro p,.festival-intro p { color:#3c3c3c; line-height:1.75; }
.home-hero h1::after,.calculator-intro h1::after,.travel-intro h1::after,.menu-intro h1::after,.lotto-intro h1::after,.loan-intro h1::after,.festival-intro h1::after { background:#1c69d4; }
.tool-card,.input-card,.result-card,.method-card,.lotto-controls,.lotto-results,.saved-section,.travel-form-card,.destination-card,.course-card,.menu-filter-card,.menu-result-card,.menu-favorites,.home-note,.loan-form,.loan-results,.festival-query-card,.festival-results,.festival-card,.restaurant-card { background:#fff; border-color:#e6e6e6; box-shadow:none; color:#262626; }
.home-note,.method-caveat,.course-disclaimer,.fairness-note,.menu-empty,.loan-empty,.year-badge,.net-highlight,.restaurant-status { background:#f7f7f7; color:#3c3c3c; border-color:#e6e6e6; }
.tool-title,.card-heading h2,.travel-form-heading h2,.destination-results-heading h2,.menu-filter-heading h2,.menu-results-heading h2,.menu-favorites-heading h2,.destination-card h3,.menu-result-card h3,.result-salary,.method-grid strong,.destination-food-heading,.itinerary-days strong,.lotto-empty strong,.festival-card h3,.festival-card-date,.restaurant-card h4,.page-description h2 { color:#262626; }
.calculate-button,.festival-restaurant-toggle { background:#1c69d4; color:#fff; border-radius:0; }
.calculate-button:hover,.festival-restaurant-toggle:hover { background:#0653b6; }
.menu-result-card.is-picked .choose-menu-button { color:#fff; }
.surprise-button,.choose-menu-button,.save-menu-button,.combo-action,.selection-mode,.reset-menu-button,.number-legend button,.remove-favorite-button,.shuffle-destinations,.loan-quick-amounts button,.loan-reset-button { color:#262626; }
.segment span,.choice-pill,.meal-tab { color:#262626; }
.selection-mode { background:#fff; color:#262626; border-color:#ccc; }
.selection-mode span:last-child { color:#262626; }
.selection-mode.selected.fixed-mode { background:#eaf2fc; color:#262626; border-color:#1c69d4; }
.selection-mode.selected.excluded-mode { background:#f7e9e7; color:#262626; border-color:#e22718; }
.destination-results-actions { align-items:center; flex-direction:row; flex-wrap:wrap; gap:10px; }
.shuffle-destinations { display:inline-flex; min-height:48px; align-items:center; justify-content:center; padding:0 14px; border:1px solid #ccc; background:#fff; color:#262626; white-space:nowrap; }
.shuffle-destinations:hover { border-color:#1c69d4; background:#f7f7f7; color:#1a1a1a; }
.destination-results-actions { gap:18px; }
.choose-menu-button { min-height:48px; border:1px solid #ccc; background:#fff; color:#262626; }
.menu-result-card:not(.is-picked) .choose-menu-button { color:#262626; background:#fff; }
.loan-quick-amounts button { min-height:44px; border:1px solid #ccc; background:#f7f7f7; color:#262626; }
.loan-quick-amounts button:hover,.loan-reset-button:hover { border-color:#1c69d4; background:#f7f7f7; }
.loan-reset-button { min-height:48px; border:1px solid #ccc; background:#fff; color:#262626; }
.loan-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; }
.loan-actions .calculate-button { width:auto; min-width:0; }
.loan-term-control input,.loan-term-control select,#loan-method { min-height:48px; background:#fff; color:#262626; border-color:#ccc; color-scheme:light; }
.loan-term-control { grid-template-columns:minmax(0,1fr) 88px; gap:10px; border:0; }
.loan-term-control input,.loan-term-control select { border:1px solid #ccc; }
.loan-term-control select { border-left:1px solid #ccc; }
.loan-term-control input:focus-visible,.loan-term-control select:focus-visible { outline:2px solid #1c69d4; outline-offset:1px; }
.loan-summary-grid>div { background:#f7f7f7; }
.loan-summary-grid span,.loan-summary-grid strong,.loan-summary-reading,.loan-schedule caption,.loan-schedule th,.loan-method-copy strong { color:#262626; }
.loan-schedule th { background:#f7f7f7; }
.loan-schedule td,.loan-method-copy p { color:#3c3c3c; }
.festival-shortcuts button,.festival-more,.loan-quick-amounts button,.loan-reset-button,.shuffle-destinations { background:#fff; color:#262626; border-color:#ccc; border-radius:0; }
.amount-input-wrap,.number-input-wrap,.secondary-input,.loan-term-control,.menu-filter select,.festival-field select,.festival-field input,input,select,textarea { background:#fff; color:#262626; border-color:#ccc; border-radius:0; color-scheme:light; }
.amount-input-wrap input,.number-input-wrap input,.number-input-wrap span,.loan-term-control input,.loan-term-control select,#loan-method,option { color:#262626; background:#fff; }
.festival-category-option { background:#fff; color:#262626; }
.festival-category-option:has(input:checked) { background:#f7f7f7; border-color:#1c69d4; }
.festival-map-link,.festival-source a,.restaurant-card>a,.breadcrumbs a,.sources a,.link-inline { color:#0653b6; }
.page-description { background:#f7f7f7; color:#3c3c3c; }
.page-description h2 { margin-bottom:16px; }
.page-description p { color:#3c3c3c; font-size:16px; line-height:1.8; }
.page-description p+p { margin-top:1em; }
.site-footer { background:#f7f7f7; color:#3c3c3c; }
.site-footer a,.site-footer span:first-child { color:#3c3c3c; }
.loan-summary-grid>div,.loan-schedule th { background:#f7f7f7; }
.loan-summary-grid span,.loan-summary-grid strong,.loan-summary-reading,.loan-schedule caption,.loan-method-copy strong { color:#262626; }
.loan-schedule td { color:#3c3c3c; }
.number-chip.is-fixed { border-color:#1c69d4; }
.number-chip.is-excluded { border-color:#e22718; background:#f7e9e7; color:#7a2118; }
.number-select-heading { padding:15px 0 10px; border:0; border-top:1px solid #e6e6e6; border-radius:0; background:transparent; }
.number-legend .legend-fixed { background:#1c69d4; }
.number-legend .legend-excluded { background:#e22718; }
.travel-form-card { display:grid; max-width:none; grid-template-columns:minmax(0,1.1fr) minmax(250px,.9fr); align-items:center; gap:32px; }
.travel-form-content { min-width:0; }
.travel-feature-summary { padding:22px 24px; border:1px solid #e6e6e6; border-left:4px solid #1c69d4; background:#f7f7f7; }
.travel-feature-summary h3 { margin:0 0 12px; color:#262626; font-size:17px; line-height:1.5; }
.travel-feature-summary ul { display:grid; gap:9px; margin:0; padding-left:20px; color:#3c3c3c; font-size:14px; line-height:1.65; }
.travel-feature-summary li::marker { color:#1c69d4; }
.menu-result-card.is-picked .choose-menu-button { border-color:#ccc; background:#f7f7f7; color:#262626; }
.menu-result-card.is-picked .choose-menu-button:hover { border-color:#1c69d4; background:#f7f7f7; color:#262626; }
.selection-mode .mode-dot { background:#1c69d4; }
.selection-mode.excluded-mode .mode-dot { background:#e22718; }
.festival-photo { background:#fff; }
.festival-photo img { border:1px solid #e6e6e6; background:#fff; }
.tool-card,.input-card,.result-card,.method-card,.lotto-controls,.lotto-results,.saved-section,.travel-form-card,.travel-feature-summary,.destination-card,.course-card,.menu-filter-card,.menu-result-card,.menu-favorites,.home-note,.loan-form,.loan-results,.festival-query-card,.festival-results,.festival-card,.restaurant-card { background:#fff; }
.method-caveat,.course-disclaimer,.fairness-note,.menu-empty,.loan-empty,.net-highlight,.restaurant-status { background:#f7f7f7; }
.festival-photo,.festival-photo img { background:#fff; }
.loan-term-control { background:#f7f7f7; }
.select-wrap { position:relative; display:block; min-width:0; }
.select-wrap select { display:block; width:100%; padding-right:34px !important; appearance:none; -webkit-appearance:none; background-image:none; }
.select-arrow { position:absolute; top:50%; right:14px; width:7px; height:7px; border-right:1.5px solid #262626; border-bottom:1.5px solid #262626; transform:translateY(-70%) rotate(45deg); pointer-events:none; }
body.sky-theme .tool-card,body.sky-theme .input-card,body.sky-theme .result-card,body.sky-theme .method-card,body.sky-theme .lotto-controls,body.sky-theme .lotto-results,body.sky-theme .saved-section,body.sky-theme .travel-form-card,body.sky-theme .travel-feature-summary,body.sky-theme .destination-card,body.sky-theme .course-card,body.sky-theme .menu-filter-card,body.sky-theme .menu-result-card,body.sky-theme .menu-favorites,body.sky-theme .home-note,body.sky-theme .loan-form,body.sky-theme .loan-results,body.sky-theme .festival-query-card,body.sky-theme .festival-results,body.sky-theme .festival-card,body.sky-theme .restaurant-card { background:#eff7fc; }
body.sky-theme .method-caveat,body.sky-theme .course-disclaimer,body.sky-theme .fairness-note,body.sky-theme .menu-empty,body.sky-theme .loan-empty,body.sky-theme .net-highlight,body.sky-theme .restaurant-status { background:#eff7fc; }
body.sky-theme .course-card summary { background:#eaf4fb; color:#262626; }
body.sky-theme .course-card[open] summary { border-bottom-color:#d9eaf5; }
body.sky-theme .course-card summary::marker { color:#1c69d4; }
body.sky-theme .festival-card .festival-photo,body.sky-theme .festival-card .festival-photo img { background:#fff; }
body.sky-theme .loan-term-control { background:#eff7fc; }
.tool-section > .tool-card { background:linear-gradient(110deg,#d5edfb 0%,#f1f9fe 48%,#d9effb 100%); background-size:180% 100%; background-position:0 0; border-color:#c6e2f3; border-radius:10px; transition:background-position .28s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease; }
.tool-section > .tool-card .tool-icon { border:1px solid #d4e9f6; background:#fff; color:#1c69d4; }
.tool-section > .tool-card .tool-arrow { color:#1c69d4; }
.tool-section > .tool-card:hover { background-position:100% 0; border-color:#9ccbe8; box-shadow:0 5px 16px rgba(28,105,212,.12); transform:translateY(-1px); }

/* Travel section visual pilot: soft blue-gray canvas, crisp white surfaces. */
body.travel-test-theme,body:has(.category-nav .nav-item.active[href="travel.html"]) { background-color:#f3f7fa; background-image:radial-gradient(ellipse at 88% 8%,rgba(205,229,244,.38),transparent 34%),linear-gradient(145deg,#f2f6f9 0%,#f8fafc 54%,#edf4f8 100%); }
body.travel-test-theme main,body:has(.category-nav .nav-item.active[href="travel.html"]) main { background:transparent; }
body.travel-test-theme .site-header,body:has(.category-nav .nav-item.active[href="travel.html"]) .site-header { background:rgba(255,255,255,.96); border-bottom-color:#dfe8ee; }
body.travel-test-theme .calculator-intro,body.travel-test-theme .travel-intro,body.travel-test-theme .festival-intro,body:has(.category-nav .nav-item.active[href="travel.html"]) .home-hero { background:linear-gradient(118deg,#fff 0%,#f8fbfd 48%,#eaf4fa 100%); border:1px solid #e0eaf1; }
body.travel-test-theme .travel-form-card,body.travel-test-theme .festival-query-card,body.travel-test-theme .festival-results,body.travel-test-theme .destination-card,body.travel-test-theme .course-card,body.travel-test-theme .festival-card { background:#fff; border-color:#dce6ed; box-shadow:0 8px 24px rgba(35,73,98,.055); }
body:has(.category-nav .nav-item.active[href="travel.html"]) .tool-section > .tool-card { background:linear-gradient(110deg,#d5edfb 0%,#f1f9fe 48%,#d9effb 100%); border-color:#c6e2f3; box-shadow:0 8px 24px rgba(35,73,98,.055); }
body.travel-test-theme .travel-feature-summary { background:#f7fbfd; border-color:#dce8ef; border-left-color:#1c69d4; }
body.travel-test-theme .course-card summary { background:linear-gradient(100deg,#eaf4fa,#f5fafe); color:#202c35; }
body.travel-test-theme .course-card[open] summary { border-bottom-color:#dce8ef; }
body.travel-test-theme .festival-card .festival-photo,body.travel-test-theme .festival-card .festival-photo img { background:#fff; }
body.travel-test-theme .page-description,body:has(.category-nav .nav-item.active[href="travel.html"]) .page-description { background:#f5f8fa; }
body.travel-test-theme .festival-field select,body.travel-test-theme .festival-field input,body.travel-test-theme .number-input-wrap,body.travel-test-theme .travel-days-input { background:#fff; }
body.travel-test-theme .site-footer,body:has(.category-nav .nav-item.active[href="travel.html"]) .site-footer { background:transparent; }
/* Stronger editorial treatment for the travel-only visual trial. */
body.travel-test-theme,body:has(.category-nav .nav-item.active[href="travel.html"]) { background-color:#eaf0f5; background-image:radial-gradient(ellipse at 92% 7%,rgba(104,174,214,.22),transparent 32%),linear-gradient(140deg,#edf3f7 0%,#f8fafb 48%,#e6eef4 100%); }
body.travel-test-theme .calculator-intro,body.travel-test-theme .travel-intro,body.travel-test-theme .festival-intro { position:relative; overflow:hidden; padding:42px 38px; border:0; border-radius:14px; background:radial-gradient(ellipse at 92% 5%,rgba(107,190,230,.4),transparent 28%),linear-gradient(115deg,#13283c 0%,#16496c 58%,#1c69d4 100%); color:#fff; box-shadow:0 16px 36px rgba(24,61,89,.16); }
body.travel-test-theme .calculator-intro h1,body.travel-test-theme .travel-intro h1,body.travel-test-theme .festival-intro h1 { color:#fff; font-family:Inter,'Noto Sans KR',Arial,sans-serif; font-size:clamp(32px,4.5vw,48px); font-weight:700; line-height:1.2; }
body.travel-test-theme .calculator-intro p,body.travel-test-theme .travel-intro p,body.travel-test-theme .festival-intro p { max-width:680px; color:#e4eef5; font-size:16px; line-height:1.8; }
body.travel-test-theme .calculator-intro p,body.travel-test-theme .travel-intro p,body.travel-test-theme .festival-intro p { max-width:none; width:100%; }
body.travel-test-theme .calculator-intro .section-kicker,body.travel-test-theme .travel-intro .section-kicker,body.travel-test-theme .festival-intro .section-kicker { color:#a9dcf6; }
body.travel-test-theme .calculator-intro h1::after,body.travel-test-theme .travel-intro h1::after,body.travel-test-theme .festival-intro h1::after { background:#8bd3f4; }
body.travel-test-theme .travel-form-card,body.travel-test-theme .festival-query-card,body.travel-test-theme .festival-results,body.travel-test-theme .course-card,body.travel-test-theme .destination-card,body.travel-test-theme .festival-card { border:1px solid #d7e2ea; border-radius:14px; box-shadow:0 12px 30px rgba(31,66,91,.075); }
body.travel-test-theme .travel-form-card,body.travel-test-theme .festival-query-card { padding:28px; border-top:3px solid #4c9dd0; }
body.travel-test-theme .travel-feature-summary { border-radius:10px; background:#f5f4f2; }
body.travel-test-theme .festival-location-row,body.travel-test-theme .festival-date-row { padding:16px; border:1px solid #e2ebf1; border-radius:10px; background:#f7fafc; }
body.travel-test-theme .festival-category-field { padding:14px 16px; border:1px solid #e2ebf1; border-radius:10px; background:#f7fafc; }
body.travel-test-theme .festival-category-option { border-radius:6px; }
body.travel-test-theme .festival-category-option:has(input:checked) { border-color:#1c69d4; background:#e9f4fb; }
body.travel-test-theme .festival-shortcuts button { border-radius:6px; background:#f6f9fb; }
body.travel-test-theme .destination-card { border-top:3px solid #5aa6d4; }
body.travel-test-theme .course-card summary { padding:17px 20px; background:linear-gradient(105deg,#e4f2fa 0%,#f2f8fc 100%); color:#17344a; }
body.travel-test-theme .course-card[open] summary { border-bottom-color:#d7e5ee; }
body.travel-test-theme .festival-card { border-top:3px solid #5aa6d4; }
body.travel-test-theme .festival-photo { border-radius:8px; }
body:has(.category-nav .nav-item.active[href="travel.html"]) .tool-section > .tool-card { border-radius:12px; }
@media(max-width:760px) {
  body.travel-test-theme .calculator-intro,body.travel-test-theme .travel-intro,body.travel-test-theme .festival-intro { padding:30px 24px; }
  body.travel-test-theme .travel-form-card,body.travel-test-theme .festival-query-card { padding:20px; }
}
@media(max-width:760px) {
  .travel-form-card { grid-template-columns:1fr; gap:20px; }
  .travel-feature-summary { padding:18px 20px; }
}
:is(button,a,input,select,textarea,summary):focus-visible { outline:2px solid #1c69d4; outline-offset:3px; }
/* Form controls use one focus cue: a blue border, without a second inner outline. */
input:focus-visible,select:focus-visible,textarea:focus-visible { outline:none; border-color:#1c69d4; box-shadow:none; }
.amount-input-wrap:focus-within,.number-input-wrap:focus-within { border-color:#1c69d4; outline:none; box-shadow:none; }
.loan-term-control input:focus-visible,.loan-term-control select:focus-visible,#loan-method:focus-visible,.festival-field input:focus-visible,.festival-field select:focus-visible,.menu-filter select:focus-visible { outline:none; border-color:#1c69d4; box-shadow:none; }

/* Finance and living pages use the same calm, layered visual language. */
body:not(.travel-test-theme):not(:has(.category-nav .nav-item.active[href="travel.html"])) {
  background-color:#edf2f6;
  background-image:radial-gradient(ellipse at 90% 6%,rgba(190,216,233,.28),transparent 34%),linear-gradient(145deg,#f2f6f9 0%,#fafbfc 52%,#edf2f6 100%);
}
body:not(.travel-test-theme):not(:has(.category-nav .nav-item.active[href="travel.html"])) main { background:transparent; }
body:not(.travel-test-theme):not(:has(.category-nav .nav-item.active[href="travel.html"])) .site-header { background:rgba(255,255,255,.96); border-bottom-color:#dfe7ed; }
body:not(.travel-test-theme):not(:has(.category-nav .nav-item.active[href="travel.html"])) :is(.calculator-intro,.lotto-intro,.loan-intro,.menu-intro) {
  overflow:hidden; padding:38px 34px; border:0; border-radius:14px;
  background:radial-gradient(ellipse at 92% 5%,rgba(107,190,230,.35),transparent 28%),linear-gradient(115deg,#13283c 0%,#16496c 58%,#1c69d4 100%);
  color:#fff; box-shadow:0 14px 32px rgba(24,61,89,.13);
}
body:not(.travel-test-theme):not(:has(.category-nav .nav-item.active[href="travel.html"])) :is(.calculator-intro,.lotto-intro,.loan-intro,.menu-intro) h1 {
  color:#fff; font-family:Inter,'Noto Sans KR',Arial,sans-serif; font-size:clamp(32px,4.5vw,46px); font-weight:700; line-height:1.2;
}
body:not(.travel-test-theme):not(:has(.category-nav .nav-item.active[href="travel.html"])) :is(.calculator-intro,.lotto-intro,.loan-intro,.menu-intro) p { color:#e4eef5; font-size:16px; line-height:1.8; }
body:not(.travel-test-theme):not(:has(.category-nav .nav-item.active[href="travel.html"])) :is(.calculator-intro,.lotto-intro,.loan-intro,.menu-intro) .section-kicker { color:#a9dcf6; }
body:not(.travel-test-theme):not(:has(.category-nav .nav-item.active[href="travel.html"])) :is(.calculator-intro,.lotto-intro,.loan-intro,.menu-intro) h1::after { background:#8bd3f4; }
body:not(.travel-test-theme):not(:has(.category-nav .nav-item.active[href="travel.html"])) :is(.tool-card,.input-card,.result-card,.method-card,.lotto-controls,.lotto-results,.saved-section,.menu-filter-card,.menu-result-card,.menu-favorites,.home-note,.loan-form,.loan-results) {
  background:#fff; border-color:#dce6ed; box-shadow:0 8px 24px rgba(35,73,98,.055);
}
body:not(.travel-test-theme):not(:has(.category-nav .nav-item.active[href="travel.html"])) .tool-section > .tool-card { background:linear-gradient(110deg,#d5edfb 0%,#f1f9fe 48%,#d9effb 100%); background-size:180% 100%; background-position:0 0; border-color:#c6e2f3; }
body:not(.travel-test-theme):not(:has(.category-nav .nav-item.active[href="travel.html"])) .tool-section > .tool-card:hover { background-position:100% 0; border-color:#9ccbe8; box-shadow:0 5px 16px rgba(28,105,212,.12); transform:translateY(-1px); }
body:not(.travel-test-theme):not(:has(.category-nav .nav-item.active[href="travel.html"])) :is(.method-caveat,.fairness-note,.menu-empty,.loan-empty,.net-highlight) { background:#f4f8fb; }
body:not(.travel-test-theme):not(:has(.category-nav .nav-item.active[href="travel.html"])) .page-description { background:#f3f7fa; }
body:not(.travel-test-theme):not(:has(.category-nav .nav-item.active[href="travel.html"])) .site-footer { background:transparent; }
main p { max-width:100% !important; }
@media(max-width:760px) {
  body:not(.travel-test-theme):not(:has(.category-nav .nav-item.active[href="travel.html"])) :is(.calculator-intro,.lotto-intro,.loan-intro,.menu-intro) { padding:30px 24px; }
}

/* Restore the original navy-blue title panels with only a small reduction in intensity. */
body.travel-test-theme :is(.calculator-intro,.travel-intro,.festival-intro,.lotto-intro,.loan-intro,.menu-intro),
body:not(.travel-test-theme):not(:has(.category-nav .nav-item.active[href="travel.html"])) :is(.calculator-intro,.travel-intro,.festival-intro,.lotto-intro,.loan-intro,.menu-intro) {
  border:0; border-radius:14px;
  background:#1a4d6d;
  color:#fff; box-shadow:0 12px 28px rgba(24,61,89,.11);
}
body.travel-test-theme :is(.calculator-intro,.travel-intro,.festival-intro,.lotto-intro,.loan-intro,.menu-intro) h1,
body:not(.travel-test-theme):not(:has(.category-nav .nav-item.active[href="travel.html"])) :is(.calculator-intro,.travel-intro,.festival-intro,.lotto-intro,.loan-intro,.menu-intro) h1 { color:#fff; }
body.travel-test-theme :is(.calculator-intro,.travel-intro,.festival-intro,.lotto-intro,.loan-intro,.menu-intro) p,
body:not(.travel-test-theme):not(:has(.category-nav .nav-item.active[href="travel.html"])) :is(.calculator-intro,.travel-intro,.festival-intro,.lotto-intro,.loan-intro,.menu-intro) p { color:#e8f0f5; }
body.travel-test-theme :is(.calculator-intro,.travel-intro,.festival-intro,.lotto-intro,.loan-intro,.menu-intro) .section-kicker,
body:not(.travel-test-theme):not(:has(.category-nav .nav-item.active[href="travel.html"])) :is(.calculator-intro,.lotto-intro,.loan-intro,.menu-intro) .section-kicker { color:#b7d9ec; }
body.travel-test-theme :is(.calculator-intro,.travel-intro,.festival-intro,.lotto-intro,.loan-intro,.menu-intro) h1::after,
body:not(.travel-test-theme):not(:has(.category-nav .nav-item.active[href="travel.html"])) :is(.calculator-intro,.lotto-intro,.loan-intro,.menu-intro) h1::after { background:#a8d1e7; }
/* Mobile layout refinements shared by every category and tool page. */
@media (max-width: 640px) {
  .site-header {
    height:auto; min-height:68px; padding:10px 16px; gap:6px 16px;
    flex-wrap:wrap; align-items:center; justify-content:space-between;
  }
  .brand { font-size:16px; letter-spacing:-.7px; }
  .category-nav { height:42px; flex:0 0 100%; gap:clamp(14px,6vw,24px); }
  .nav-item { font-size:13px; }

  main { width:calc(100% - 32px); }
  .calculator-main,.loan-main,.festival-main { padding-top:20px; }
  .calculator-intro,.travel-intro,.menu-intro,.lotto-intro,.loan-intro,.festival-intro { padding:28px 20px; }
  .calculator-intro h1,.travel-intro h1,.menu-intro h1,.lotto-intro h1,.loan-intro h1,.festival-intro h1 { font-size:clamp(28px,8vw,36px); line-height:1.25; overflow-wrap:anywhere; }
  .calculator-intro p,.travel-intro p,.menu-intro p,.lotto-intro p,.loan-intro p,.festival-intro p { font-size:15px; line-height:1.7; }

  .calculator-layout,.lotto-layout,.loan-layout { grid-template-columns:minmax(0,1fr); gap:14px; }
  .input-card,.result-card,.lotto-controls,.lotto-results,.loan-form,.loan-results,.menu-filter-card,.festival-query-card,.festival-results { min-width:0; padding:18px 16px; }
  .fields-row,.loan-fields-row,.festival-location-row,.festival-date-row { grid-template-columns:minmax(0,1fr); gap:12px; }
  .loan-term-control { grid-template-columns:minmax(0,1fr) 88px; }
  .loan-actions { display:grid; grid-template-columns:minmax(0,1fr); gap:9px; }
  .loan-actions .calculate-button,.loan-actions .loan-reset-button { width:100%; min-width:0; }
  .loan-quick-amounts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .loan-quick-amounts button { min-width:0; padding:0 8px; }

  .travel-form-card { grid-template-columns:minmax(0,1fr); gap:18px; padding:20px 16px; }
  .travel-feature-summary { min-width:0; padding:18px 16px; }
  .destination-grid,.menu-filter-grid,.menu-results-grid,.method-grid { grid-template-columns:minmax(0,1fr); }
  .menu-result-card { min-width:0; }
  .festival-shortcuts { gap:8px; }
  .festival-shortcuts button,.festival-more { min-height:44px; padding:0 11px; }
  .festival-card,.restaurant-card,.destination-card,.course-card { min-width:0; }
  .site-footer { width:calc(100% - 32px); flex-wrap:wrap; gap:10px 18px; }
}

@media (max-width: 390px) {
  .site-header { padding-right:12px; padding-left:12px; }
  .brand { font-size:15px; }
  .category-nav { gap:clamp(12px,5vw,18px); }
  .nav-item { font-size:12px; }
  main { width:calc(100% - 28px); }
  .calculator-intro,.travel-intro,.menu-intro,.lotto-intro,.loan-intro,.festival-intro { padding:24px 16px; }
  .input-card,.result-card,.lotto-controls,.lotto-results,.loan-form,.loan-results,.menu-filter-card,.festival-query-card,.festival-results { padding:16px 13px; }
  .number-grid { grid-template-columns:repeat(9,minmax(0,1fr)); gap:3px; }
  .number-chip { font-size:9px; }
  .lotto-result-row { grid-template-columns:18px minmax(0,1fr); }
  .lotto-result-row .combo-actions { grid-column:2; justify-self:start; }
  .number-legend { flex-wrap:wrap; gap:8px; }
  .number-legend button { width:auto; min-width:104px; flex:0 0 auto; margin-left:auto; }
  .page-description { width:calc(100% - 28px); }
  .festival-count { padding-top:0; }
}
@media (max-width: 640px) {
  body.travel-test-theme :is(.calculator-intro,.travel-intro,.festival-intro) { padding:28px 20px; }
  body:not(.travel-test-theme):not(:has(.category-nav .nav-item.active[href="travel.html"])) :is(.calculator-intro,.lotto-intro,.loan-intro,.menu-intro) { padding:28px 20px; }
}
@media (max-width: 390px) {
  body.travel-test-theme :is(.calculator-intro,.travel-intro,.festival-intro) { padding:24px 16px; }
  body:not(.travel-test-theme):not(:has(.category-nav .nav-item.active[href="travel.html"])) :is(.calculator-intro,.lotto-intro,.loan-intro,.menu-intro) { padding:24px 16px; }
}

/* Compound investment calculator */
.compound-layout { display:grid; grid-template-columns:minmax(290px,.78fr) minmax(0,1.22fr); gap:20px; align-items:start; }
.compound-form,.compound-results { min-width:0; padding:24px; }
.compound-form > .field-label { margin-top:17px; }
.compound-form > .card-heading + .field-label { margin-top:0; }
.compound-spaced-label { margin-top:18px !important; }
.compound-amount-reading { margin:6px 0 0; color:#5e5954; font-size:12px; line-height:1.55; }
.compound-quick-amounts { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.compound-quick-amounts button,.compound-actions .loan-reset-button { min-height:48px; padding:0 12px; border:1px solid #d8d8d8; border-radius:6px; background:#fff; color:#292929; cursor:pointer; font:inherit; font-size:12px; }
.compound-quick-amounts button:hover,.compound-actions .loan-reset-button:hover { border-color:#1c69d4; color:#1c69d4; }
.compound-fields-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:18px; }
.compound-timing { margin-top:20px; }
.compound-timing .field-help { margin-bottom:0; }
.compound-optional-row { margin-top:17px; }
.compound-form .amount-input-wrap:focus-within { border-color:#1c69d4; box-shadow:0 0 0 3px rgba(28,105,212,.16); }
.compound-form .calculate-button { min-height:49px; background:#1c69d4; }
.compound-form .calculate-button:hover { background:#1557b0; }
.compound-actions { display:flex; align-items:center; gap:10px; margin-top:20px; }
.compound-actions .calculate-button { flex:1; margin:0; }
.compound-results { background:#fff; }
.compound-results-heading,.compound-chart-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.compound-results-heading h2 { margin:5px 0 0; color:#262626; font-size:20px; }
.compound-live-label { color:#666; font-size:11px; }
.compound-summary-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:18px; }
.compound-summary-grid > div { display:flex; min-width:0; min-height:80px; flex-direction:column; justify-content:center; gap:8px; padding:13px 14px; border:1px solid #e5e5e5; border-radius:8px; background:#fafafa; }
.compound-summary-grid span { color:#5b5b5b; font-size:12px; }
.compound-summary-grid strong { color:#222; font-size:clamp(15px,2vw,19px); line-height:1.35; overflow-wrap:anywhere; }
.compound-summary-grid .compound-total { grid-column:1/-1; min-height:96px; border-color:#1a4d6d; background:#1a4d6d; }
.compound-summary-grid .compound-total span,.compound-summary-grid .compound-total strong { color:#fff; }
.compound-summary-grid .compound-total strong { font-size:clamp(23px,3vw,32px); letter-spacing:-.7px; }
.compound-goal-result { margin:12px 0 0; padding:12px 14px; border:1px solid #cfe2f4; border-radius:8px; background:#f2f8fd; color:#234e70 !important; font-size:13px; line-height:1.7; }
.compound-chart-heading { margin-top:24px; }
.compound-chart-heading h3 { margin:0; color:#262626; font-size:15px; }
.compound-chart-heading span { color:#666; font-size:11px; }
.compound-chart-wrap { width:100%; margin-top:10px; overflow:hidden; }
.compound-chart-wrap svg { display:block; width:100%; height:auto; overflow:visible; font-family:inherit; }
.compound-grid-line { stroke:#e7e7e7; stroke-width:1; }
.compound-axis-label { fill:#666; font-size:12px; }
.compound-chart-area { fill:#d9ebfa; opacity:.8; }
.compound-chart-total { fill:none; stroke:#1c69d4; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; }
.compound-chart-principal { fill:none; stroke:#747474; stroke-width:2; stroke-dasharray:5 5; }
.compound-chart-goal { stroke:#c74634; stroke-width:2; stroke-dasharray:7 5; }
.compound-legend { display:flex; flex-wrap:wrap; gap:16px; margin:0 0 18px; color:#454545; font-size:11px; }
.compound-legend span { display:inline-flex; align-items:center; gap:6px; }
.compound-legend i { display:inline-block; width:14px; height:3px; border-radius:2px; }
.compound-legend-total { background:#1c69d4; }
.compound-legend-principal { background:#747474; }
.compound-legend-goal { background:#c74634; }
.compound-details { border-top:1px solid #e7e7e7; padding-top:14px; }
.compound-details summary { min-height:40px; color:#262626; cursor:pointer; font-size:13px; font-weight:700; }
.compound-table-wrap { max-width:100%; overflow-x:auto; }
.compound-table { width:100%; border-collapse:collapse; white-space:nowrap; font-size:12px; }
.compound-table caption { padding:8px; color:#555; text-align:left; }
.compound-table th,.compound-table td { padding:10px 8px; border-bottom:1px solid #e7e7e7; color:#333; text-align:right; }
.compound-table th:first-child,.compound-table td:first-child { text-align:left; }
.compound-table th { background:#f5f7f8; font-weight:700; }
.compound-method { margin-top:20px; padding:22px 24px; }
.compound-method-copy { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.compound-method-copy p { margin:0; color:#4b4b4b; font-size:13px; line-height:1.8; }
@media(max-width:760px) {
  .compound-layout { grid-template-columns:minmax(0,1fr); }
  .compound-form,.compound-results { padding:20px; }
}
@media(max-width:640px) {
  .compound-fields-row { grid-template-columns:minmax(0,1fr); gap:14px; }
  .compound-method-copy { grid-template-columns:minmax(0,1fr); }
  .compound-live-label { max-width:110px; text-align:right; }
  .compound-axis-label { font-size:11px; }
}
@media(max-width:390px) {
  .compound-form,.compound-results { padding:16px 13px; }
  .compound-summary-grid { gap:7px; }
  .compound-summary-grid > div { padding:11px 10px; }
  .compound-summary-grid strong { font-size:14px; }
  .compound-summary-grid .compound-total strong { font-size:23px; }
  .compound-chart-wrap { margin-right:-2px; }
}

/* Investment monitoring system */
.investment-monitor-main { width:min(100% - 48px,1160px); }
.investment-monitor-intro { margin-bottom:8px; }
.investment-monitor-panel { min-width:0; padding:24px; border:1px solid #e5e5e5; border-radius:12px; background:#fff; color:#222; }
.investment-monitor-heading,.investment-monitor-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.investment-monitor-heading h2 { margin:5px 0 0; color:#222; font-size:20px; }
.investment-monitor-update { color:#5e5954; font-size:13px; text-align:right; }
.investment-monitor-toolbar { margin-top:20px; align-items:flex-start; }
.investment-monitor-controls { flex:1 1 auto; min-width:0; }
.investment-sort-controls { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.investment-sort-controls > span { margin-right:2px; color:#454545; font-size:14px; font-weight:700; }
.investment-sort-controls button { min-height:44px; padding:0 13px; border:1px solid #d8d8d8; border-radius:6px; background:#fff; color:#333; cursor:pointer; font:inherit; font-size:13px; }
.investment-sort-controls button[aria-pressed="true"] { border-color:#1c69d4; background:#eff6ff; color:#1557b0; font-weight:700; }
.investment-sort-controls button:focus-visible,.investment-search input:focus-visible { outline:2px solid #1c69d4; outline-offset:2px; }
.investment-search-group { width:min(100%,360px); flex:0 0 auto; }
.investment-search { display:block; width:100%; }
.investment-search input { width:100%; min-height:48px; padding:0 13px; border:1px solid #d8d8d8; border-radius:6px; background:#fff; color:#222; font:inherit; font-size:14px; }
.investment-rsi-guidance,.investment-rsi-disclaimer { text-align:right; }
.investment-rsi-guidance { margin:8px 0 0; color:#465566; font-size:12px; line-height:1.6; }
.investment-rsi-guidance > span { display:block; }
.investment-rsi-disclaimer { margin:3px 0 0; color:#697681; font-size:12px; line-height:1.6; }
.investment-monitor-meta { display:flex; flex-wrap:wrap; align-items:center; gap:8px 18px; margin-top:14px; color:#5e5954; font-size:13px; }
.investment-rsi-low { color:#38bdf8 !important; font-weight:700; }
.investment-rsi-high { color:#ef4444 !important; font-weight:700; }
.investment-monitor-status { margin:10px 0 0; color:#4b4b4b; font-size:14px; line-height:1.7; }
.investment-monitor-status[hidden] { display:none; }
.investment-table-wrap { width:100%; margin-top:12px; overflow-x:auto; }
.investment-table { width:100%; min-width:760px; border-collapse:collapse; color:#262626; font-size:14px; }
.investment-table th,.investment-table td { padding:13px 12px; border-bottom:1px solid #e8e8e8; text-align:center; white-space:nowrap; }
.investment-table th { background:#f5f8fb; color:#333; font-size:13px; font-weight:700; }
.investment-table tbody tr:hover { background:#f7fbff; }
.investment-rank { width:56px; color:#6a6a6a; }
.investment-company { min-width:225px; }
.investment-company strong,.investment-company span { display:block; }
.investment-company strong { color:#202020; font-size:14px; }
.investment-company span { margin-top:3px; color:#686868; font-size:12px; white-space:normal; }
.investment-market-cap { font-variant-numeric:tabular-nums; font-weight:600; }
.investment-rsi-cell { font-variant-numeric:tabular-nums; font-weight:700; }
.investment-monitor-description { margin-top: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; }
@media(max-width:760px) {
  .investment-monitor-main { width:min(100% - 32px,1160px); }
  .investment-monitor-panel { padding:20px 16px; }
  .investment-monitor-toolbar { align-items:stretch; flex-direction:column; }
  .investment-search-group { width:100%; }
  .investment-table-wrap { overflow-x:hidden; }
  .investment-table { width:100%; min-width:0; table-layout:fixed; font-size:10px; }
  .investment-table th,.investment-table td { padding:7px 2px; white-space:normal; overflow-wrap:anywhere; line-height:1.35; }
  .investment-table th:nth-child(1),.investment-table td:nth-child(1) { width:7%; }
  .investment-table th:nth-child(2),.investment-table td:nth-child(2) { width:19%; }
  .investment-table th:nth-child(3),.investment-table td:nth-child(3) { width:20%; }
  .investment-table th:nth-child(4),.investment-table td:nth-child(4) { width:22%; }
  .investment-table th:nth-child(5),.investment-table td:nth-child(5),
  .investment-table th:nth-child(6),.investment-table td:nth-child(6) { width:16%; }
  .investment-company { min-width:0; }
  .investment-company strong { font-size:9px; }
  .investment-company span { font-size:8px; line-height:1.2; }
}
@media(max-width:390px) {
  .investment-monitor-panel { padding:16px 12px; }
  .investment-sort-controls { gap:6px; }
  .investment-sort-controls button { min-height:44px; padding:0 10px; font-size:12px; }
}

/* Sector and theme ETF monitor */
.sector-monitor-meta { gap:8px 14px; }
.sector-table-wrap { overflow-x:auto; }
.sector-investment-table { min-width:880px; }
.sector-investment-table th:nth-child(1),.sector-investment-table td:nth-child(1) { width:78px; }
.sector-investment-table th:nth-child(2),.sector-investment-table td:nth-child(2) { text-align:left; }
.sector-etf-category { color:#536575; font-size:12px; }
.sector-etf-name { font-weight:600; }
.sector-etf-ticker { font-weight:700; }
.sector-etf-liquidity { font-variant-numeric:tabular-nums; font-weight:700; }
@media(max-width:760px) {
  .sector-table-wrap { overflow-x:hidden; }
  .sector-investment-table { width:100%; min-width:0; table-layout:fixed; font-size:9px; }
  .sector-investment-table th,.sector-investment-table td { padding:7px 2px; line-height:1.35; }
  .sector-investment-table th:nth-child(1),.sector-investment-table td:nth-child(1) { width:11%; }
  .sector-investment-table th:nth-child(2),.sector-investment-table td:nth-child(2) { width:21%; }
  .sector-investment-table th:nth-child(3),.sector-investment-table td:nth-child(3) { width:11%; }
  .sector-investment-table th:nth-child(4),.sector-investment-table td:nth-child(4) { width:15%; }
  .sector-investment-table th:nth-child(5),.sector-investment-table td:nth-child(5) { width:18%; }
  .sector-investment-table th:nth-child(6),.sector-investment-table td:nth-child(6),
  .sector-investment-table th:nth-child(7),.sector-investment-table td:nth-child(7) { width:12%; }
  .sector-etf-category { font-size:8px; }
}
@media(max-width:390px) {
  .sector-investment-table th,.sector-investment-table td { padding-right:1px; padding-left:1px; font-size:8px; }
  .sector-investment-table th:nth-child(1),.sector-investment-table td:nth-child(1) { width:10%; }
  .sector-investment-table th:nth-child(2),.sector-investment-table td:nth-child(2) { width:22%; }
  .sector-investment-table th:nth-child(3),.sector-investment-table td:nth-child(3) { width:11%; }
  .sector-investment-table th:nth-child(4),.sector-investment-table td:nth-child(4) { width:15%; }
  .sector-investment-table th:nth-child(5),.sector-investment-table td:nth-child(5) { width:18%; }
  .sector-investment-table th:nth-child(6),.sector-investment-table td:nth-child(6),
  .sector-investment-table th:nth-child(7),.sector-investment-table td:nth-child(7) { width:12%; }
}

/* Domestic trip planner */
.domestic-travel-main { width:min(100% - 48px,1160px); margin:32px auto 64px; }
.domestic-travel-page .domestic-travel-intro { padding:38px 36px; border:0; border-radius:12px; background:#1a4d6d; color:#fff; }
.domestic-travel-page .domestic-travel-intro h1 { color:#fff; }
.domestic-travel-page .domestic-travel-intro p { max-width:760px; color:#e4eef5; }
.domestic-travel-page .domestic-travel-intro .section-kicker { color:#c4e1f1; }
.domestic-travel-form,.domestic-travel-results { margin-top:24px; padding:26px; border:1px solid #e3e6e8; border-radius:12px; background:#fff; }
.domestic-travel-form-heading,.domestic-results-heading,.domestic-destination-card-header { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.domestic-travel-form-heading h2,.domestic-results-heading h2 { margin:5px 0 0; color:#222; font-size:22px; }
.domestic-travel-form-heading > p,.domestic-results-heading > p { margin:0; color:#5c6670; font-size:14px; }
.domestic-travel-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:22px; }
.domestic-travel-field { display:flex; min-width:0; flex-direction:column; gap:7px; }
.domestic-travel-field label { color:#343a40; font-size:14px; font-weight:700; }
.domestic-travel-field input,.domestic-travel-field select { width:100%; min-height:48px; padding:0 12px; border:1px solid #cbd1d6; border-radius:6px; background:#fff; color:#252a2e; font:inherit; font-size:15px; color-scheme:light; }
.domestic-travel-field input:focus-visible,.domestic-travel-field select:focus-visible { outline:2px solid #1c69d4; outline-offset:2px; }
.domestic-travel-form-footer { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:20px; }
.domestic-travel-help { max-width:680px; margin:0; color:#5d6670; font-size:13px; line-height:1.7; }
.domestic-travel-form .calculate-button { min-width:220px; min-height:48px; margin:0; border-radius:6px; background:#1c69d4; font:inherit; font-size:15px; font-weight:700; }
.domestic-travel-form .calculate-button:hover { background:#1557b0; }
.domestic-travel-form .calculate-button:focus-visible { outline:2px solid #1c69d4; outline-offset:3px; }
.domestic-travel-form .calculate-button:disabled { cursor:wait; opacity:.7; }
.domestic-travel-results { padding:26px; }
.domestic-results-heading { align-items:flex-end; }
.domestic-travel-status { margin:14px 0 0; color:#4c5863; font-size:14px; line-height:1.7; }
.domestic-destination-list { display:grid; gap:18px; margin-top:18px; }
.domestic-destination-card { min-width:0; padding:22px; border:1px solid #dfe5e9; border-top:3px solid #1a4d6d; border-radius:10px; background:#fff; }
.domestic-destination-card-header { align-items:flex-start; }
.domestic-region-label { display:block; color:#596c7a; font-size:13px; font-weight:600; }
.domestic-destination-card h3 { margin:4px 0 0; color:#1f2d38; font-size:22px; line-height:1.4; }
.domestic-month-fit { flex:0 0 auto; padding:6px 10px; border:1px solid #d9e1e7; border-radius:999px; background:#f5f7f8; color:#52616c; font-size:12px; font-weight:700; }
.domestic-month-fit.is-fit { border-color:#c4dfce; background:#eef8f1; color:#28643d; }
.domestic-destination-reason { margin:12px 0 0; color:#49545d; font-size:15px; line-height:1.7; }
.domestic-live-sections { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:17px; }
.domestic-trip-section { min-width:0; padding:16px; border:1px solid #e4e8eb; border-radius:8px; background:#fbfcfd; }
.domestic-itinerary-section { margin-top:17px; border-color:#d6e4ee; background:#f5f9fc; }
.domestic-section-heading { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; margin:0 0 12px; color:#243846; font-size:16px; }
.domestic-section-heading span { color:#65747f; font-size:12px; font-weight:500; }
.domestic-itinerary-list { display:grid; gap:8px; margin:0; padding:0; list-style:none; }
.domestic-itinerary-list li { display:grid; grid-template-columns:58px minmax(0,1fr); gap:10px; color:#35424b; font-size:14px; line-height:1.65; }
.domestic-itinerary-list strong { color:#1c69d4; }
.domestic-food-guide { margin:13px 0 0; color:#4e5b64; font-size:13px; line-height:1.7; }
.domestic-inline-message { margin:0; color:#5c6871; font-size:13px; line-height:1.7; }
.domestic-api-place-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.domestic-api-place { min-width:0; padding:12px; border:1px solid #e3e7ea; border-radius:7px; background:#fff; }
.domestic-api-place h5 { margin:0 0 6px; color:#243846; font-size:14px; line-height:1.5; }
.domestic-api-place p { margin:4px 0 0; color:#56616a; font-size:13px; line-height:1.55; overflow-wrap:anywhere; }
.domestic-api-place a,.domestic-tourism-source a { display:inline-block; margin-top:7px; color:#1557b0; font-size:13px; font-weight:600; text-decoration:underline; text-underline-offset:2px; }
.domestic-place-photo { display:flex; min-height:150px; flex-direction:column; align-items:stretch; justify-content:center; margin:0 0 10px; background:#f2f4f6; }
.domestic-place-photo img { display:block; width:100%; height:150px; border-radius:5px; object-fit:cover; }
.domestic-place-photo.is-empty { align-items:center; color:#687681; font-size:13px; text-align:center; }
.domestic-place-photo figcaption { margin-top:4px; color:#626d75; font-size:11px; line-height:1.5; }
.domestic-place-photo figcaption a { margin:0; font-size:11px; }
.domestic-festival-list { display:grid; gap:9px; margin:0; padding:0; list-style:none; }
.domestic-festival-list > li { padding:10px; border:1px solid #e1e7eb; border-radius:7px; background:#fff; }
.domestic-festival-list strong,.domestic-festival-list span,.domestic-festival-list small { display:block; }
.domestic-festival-list strong { color:#253744; font-size:14px; line-height:1.5; }
.domestic-festival-list span,.domestic-festival-list small { margin-top:3px; color:#596771; font-size:12px; line-height:1.5; }
.domestic-tourism-source { margin:18px 0 0; padding-top:14px; border-top:1px solid #e5e8eb; color:#5f6970; font-size:13px; line-height:1.7; }
.domestic-tourism-source a { margin-top:0; }
.domestic-travel-description { margin-top:0; }
@media(max-width:760px) {
  .domestic-travel-main { width:min(100% - 32px,1160px); margin-top:20px; }
  .domestic-travel-page .domestic-travel-intro { padding:28px 20px; }
  .domestic-travel-form,.domestic-travel-results { padding:20px 16px; }
  .domestic-travel-form-heading,.domestic-results-heading { align-items:flex-start; flex-direction:column; gap:8px; }
  .domestic-travel-fields { grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
  .domestic-travel-form-footer { align-items:stretch; flex-direction:column; }
  .domestic-travel-form .calculate-button { width:100%; }
  .domestic-live-sections { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:480px) {
  .domestic-travel-fields { grid-template-columns:minmax(0,1fr); }
  .domestic-destination-card { padding:17px 14px; }
  .domestic-destination-card h3 { font-size:19px; }
  .domestic-month-fit { padding:5px 8px; font-size:11px; }
  .domestic-trip-section { padding:13px; }
  .domestic-api-place-grid { grid-template-columns:minmax(0,1fr); }
}

/* Balanced meal builder */
.meal-balance-main { width:min(100% - 48px,1160px); margin:30px auto 56px; }
body.meal-balance-page .meal-balance-intro { margin:20px 0 24px; padding:36px 32px; border:0; border-radius:10px; background:#1a4d6d; color:#fff; }
body.meal-balance-page .meal-balance-intro h1 { color:#fff; }
body.meal-balance-page .meal-balance-intro p { max-width:760px; color:#e4eef5; }
body.meal-balance-page .meal-balance-intro .section-kicker { color:#c4e1f1; }
.meal-balance-workspace { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(310px,.85fr); align-items:start; gap:18px; }
.nutrition-search-panel,.meal-builder-panel { min-width:0; padding:22px; border:1px solid #e0e5e9; border-radius:10px; background:#fff; }
.nutrition-panel-heading,.nutrition-results-heading,.meal-total-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.nutrition-panel-heading h2 { margin:4px 0 0; color:#1f2d38; font-size:21px; }
.nutrition-mode { flex:0 0 auto; padding:6px 10px; border:1px solid #e2e7eb; border-radius:999px; background:#f4f6f8; color:#57646f; font-size:12px; font-weight:700; }
.nutrition-mode.is-live { border-color:#bfdcc8; background:#eef8f1; color:#28643d; }
.nutrition-search-form { margin-top:20px; }
.nutrition-field { display:flex; min-width:0; flex-direction:column; gap:7px; color:#343a40; font-size:14px; font-weight:700; }
.nutrition-query-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:9px; margin-top:7px; }
.nutrition-query-row input,.nutrition-field select { width:100%; min-height:48px; padding:0 12px; border:1px solid #cbd1d6; border-radius:6px; background:#fff; color:#252a2e; font:inherit; font-size:15px; }
.nutrition-query-row input:focus-visible,.nutrition-field select:focus-visible,.meal-builder-item-controls input:focus-visible { outline:2px solid #1c69d4; outline-offset:2px; }
.nutrition-search-button,.nutrition-add-button { min-height:48px; padding:0 16px; border:0; border-radius:5px; background:#1c69d4; color:#fff; cursor:pointer; font:inherit; font-size:14px; font-weight:700; }
.nutrition-search-button:hover,.nutrition-add-button:hover { background:#1557b0; }
.nutrition-search-button:disabled { cursor:wait; opacity:.65; }
.nutrition-filter-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:14px; }
.nutrition-field .select-wrap { position:relative; display:block; }
.nutrition-field select { appearance:none; padding-right:38px; }
.nutrition-field .select-arrow { position:absolute; top:50%; right:14px; width:8px; height:8px; border-right:1.5px solid #46515a; border-bottom:1.5px solid #46515a; transform:translateY(-70%) rotate(45deg); pointer-events:none; }
.nutrition-filter-help { margin:10px 0 0; color:#66727b; font-size:12px; line-height:1.6; }
.nutrition-results-heading { margin-top:22px; padding-top:16px; border-top:1px solid #e6e9ec; }
.nutrition-results-heading h3 { margin:0; color:#263541; font-size:17px; }
.nutrition-results-heading span { color:#64717b; font-size:13px; }
.nutrition-status { min-height:21px; margin:8px 0; color:#53636f; font-size:13px; line-height:1.6; }
.nutrition-results { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
.nutrition-food-card { display:flex; min-width:0; flex-direction:column; padding:14px; border:1px solid #e0e6ea; border-radius:8px; background:#fff; }
.nutrition-food-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.nutrition-food-category { display:block; color:#60717e; font-size:11px; line-height:1.5; }
.nutrition-food-heading h4 { margin:3px 0 0; color:#263541; font-size:16px; line-height:1.45; }
.nutrition-result-number { color:#95a2ac; font-size:12px; font-variant-numeric:tabular-nums; }
.nutrition-values-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin-top:12px; }
.nutrition-value { display:flex; min-width:0; justify-content:space-between; gap:5px; padding:7px 8px; border-radius:5px; background:#f4f7f9; color:#5a6771; font-size:12px; }
.nutrition-value strong { color:#263541; font-size:12px; font-variant-numeric:tabular-nums; text-align:right; }
.nutrition-food-details { margin:10px 0 0; color:#60717e; font-size:11px; }
.nutrition-food-source { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:5px; color:#65727c; font-size:10px; line-height:1.45; }
.nutrition-food-source a { flex:0 0 auto; color:#1557b0; font-weight:700; text-decoration:underline; text-underline-offset:2px; }
.nutrition-add-button { width:100%; min-height:40px; margin-top:12px; padding:0 10px; font-size:13px; }
.nutrition-empty { grid-column:1/-1; margin:0; padding:20px; border:1px dashed #cbd4db; border-radius:8px; color:#586772; text-align:center; }
.nutrition-clear-button,.meal-builder-remove { min-height:38px; padding:0 10px; border:1px solid #cfd6dc; border-radius:5px; background:#fff; color:#394853; cursor:pointer; font:inherit; font-size:12px; font-weight:700; }
.nutrition-clear-button:hover,.meal-builder-remove:hover { border-color:#1c69d4; color:#1557b0; }
.meal-builder-help { margin:13px 0; color:#5f6d77; font-size:13px; line-height:1.6; }
.meal-builder-items { display:grid; gap:9px; }
.meal-builder-empty { margin:0; padding:18px 12px; border:1px dashed #cbd4db; border-radius:7px; color:#63717b; font-size:13px; line-height:1.6; text-align:center; }
.meal-builder-item { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; padding:11px; border:1px solid #e1e6ea; border-radius:7px; background:#fff; }
.meal-builder-item-copy { display:grid; min-width:0; gap:3px; }
.meal-builder-item-copy strong { color:#273945; font-size:13px; line-height:1.45; }
.meal-builder-item-copy span { color:#687680; font-size:11px; }
.meal-builder-item-controls { display:flex; align-items:center; gap:5px; color:#52616c; font-size:12px; }
.meal-builder-item-controls input { width:68px; min-height:40px; padding:0 7px; border:1px solid #cbd1d6; border-radius:5px; color:#253541; font:inherit; font-size:13px; text-align:right; }
.meal-builder-remove { min-height:36px; padding:0 7px; font-size:11px; }
.meal-total-card { margin-top:16px; padding:15px; border:1px solid #d6e4ee; border-radius:8px; background:#f5f9fc; }
.meal-total-heading h3 { margin:0; color:#263541; font-size:16px; }
.meal-total-heading span { color:#64717b; font-size:11px; }
.meal-total-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:12px; }
.meal-total-grid > div { display:grid; gap:5px; padding:10px; border:1px solid #e1e9ef; border-radius:6px; background:#fff; }
.meal-total-grid span { color:#687782; font-size:11px; }
.meal-total-grid strong { color:#1f4360; font-size:16px; font-variant-numeric:tabular-nums; }
.meal-total-note { margin:10px 0 0; color:#65727c; font-size:11px; line-height:1.5; }
.meal-builder-disclaimer { margin:12px 0 0; color:#66727b; font-size:11px; line-height:1.6; }
.meal-balance-description { margin-top:38px; }
.nutrition-source-line { margin-top:10px !important; font-size:13px !important; }
.nutrition-source-line a { color:#1557b0; text-decoration:underline; text-underline-offset:2px; }
.convenience-planner,.convenience-results,.convenience-product-search { margin-top:18px; padding:22px; border:1px solid #e0e5e9; border-radius:10px; background:#fff; }
.convenience-planner-heading,.convenience-results-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.convenience-planner-heading h2,.convenience-results-heading h2,.convenience-product-search h2 { margin:4px 0 0; color:#1f2d38; font-size:21px; }
.convenience-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)) minmax(190px,.8fr); align-items:end; gap:12px; margin-top:20px; }
.convenience-controls .nutrition-search-button { width:100%; }
.convenience-results-heading { margin-bottom:10px; }
.meal-plan-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.meal-plan-card { min-width:0; padding:16px; border:1px solid #e0e6ea; border-radius:8px; background:#fff; }
.meal-plan-card-header { display:flex; align-items:center; gap:9px; }
.meal-time-label { flex:0 0 auto; padding:5px 9px; border-radius:999px; background:#eaf2f8; color:#1a4d6d; font-size:12px; font-weight:700; }
.meal-plan-card h3 { margin:0; color:#263541; font-size:17px; line-height:1.45; }
.meal-plan-description { margin:9px 0 12px; color:#5f6d77; font-size:13px; line-height:1.6; }
.meal-plan-food-list { display:grid; gap:8px; }
.meal-plan-food { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; padding:10px; border:1px solid #e4e9ed; border-radius:7px; background:#f8fafb; }
.meal-plan-food-copy { display:grid; min-width:0; gap:3px; }
.meal-plan-food-copy strong { color:#273945; font-size:13px; line-height:1.5; }
.meal-plan-food-copy span,.meal-plan-food-copy a { color:#65727c; font-size:11px; line-height:1.5; }
.meal-plan-food-copy a { width:max-content; color:#1557b0; text-decoration:underline; text-underline-offset:2px; }
.meal-plan-food-adjust { display:flex; align-items:center; gap:5px; color:#52616c; font-size:12px; }
.meal-plan-food-adjust label { display:block; }
.meal-plan-food-adjust input { width:62px; min-height:40px; padding:0 6px; border:1px solid #cbd1d6; border-radius:5px; color:#253541; font:inherit; font-size:13px; text-align:right; }
.meal-plan-food-adjust input:focus-visible { outline:2px solid #1c69d4; outline-offset:2px; }
.meal-day-summary { margin-top:18px; padding:18px; border:1px solid #d6e4ee; border-radius:8px; background:#f5f9fc; }
.meal-day-total-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.meal-nutrition-notes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:16px; }
.meal-reference-item { display:grid; gap:6px; min-width:0; }
.meal-reference-heading { display:flex; justify-content:space-between; gap:8px; color:#53636f; font-size:12px; }
.meal-reference-heading strong { color:#263541; }
.meal-reference-track { height:8px; overflow:hidden; border-radius:999px; background:#e2e9ee; }
.meal-reference-track span { display:block; height:100%; border-radius:inherit; background:#1c69d4; }
.meal-reference-track span.is-sodium { background:#5d829b; }
.meal-reference-item small { color:#77838c; font-size:10px; }
.meal-reference-item.is-unknown .meal-reference-track { opacity:.45; }
.convenience-product-search .nutrition-search-form { max-width:760px; }
.convenience-product-search .nutrition-results { margin-top:14px; }
body.meal-balance-page .meal-balance-description { margin-top:28px; }
@media(max-width:760px) {
  .convenience-controls { grid-template-columns:minmax(0,1fr); }
  .meal-plan-cards { grid-template-columns:minmax(0,1fr); }
  .meal-day-total-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:520px) {
  .convenience-planner,.convenience-results,.convenience-product-search { padding:17px 14px; }
  .convenience-planner-heading,.convenience-results-heading { align-items:flex-start; }
  .convenience-planner-heading { flex-direction:column; }
  .convenience-results-heading h2,.convenience-planner-heading h2 { font-size:19px; }
  .meal-plan-card { padding:13px; }
  .meal-plan-food { grid-template-columns:minmax(0,1fr); }
  .meal-plan-food-adjust { justify-content:flex-start; }
  .meal-nutrition-notes { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:900px) {
  .meal-balance-workspace { grid-template-columns:minmax(0,1fr); }
  .meal-builder-panel { order:2; }
}
@media(max-width:640px) {
  .meal-balance-main { width:min(100% - 32px,1160px); margin-top:20px; }
  body.meal-balance-page .meal-balance-intro { padding:28px 20px; }
  .nutrition-search-panel,.meal-builder-panel { padding:18px 14px; }
  .nutrition-results { grid-template-columns:minmax(0,1fr); }
  .nutrition-query-row { grid-template-columns:minmax(0,1fr); }
  .nutrition-search-button { width:100%; }
  .nutrition-filter-row { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:390px) {
  .meal-builder-item { grid-template-columns:minmax(0,1fr); }
  .meal-builder-item-controls { justify-content:flex-start; }
}

/* Personal daily diet planner */
.diet-summary-layout { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr); align-items:start; gap:12px; margin-top:14px; }
.diet-summary-layout .diet-table-wrap,.diet-summary-layout .diet-chart-panel { min-width:0; margin-top:0; }
.diet-summary-layout .diet-chart-panel { padding:13px 11px; }
.diet-table-wrap { margin-top:0; }
.diet-table { min-width:0; table-layout:fixed; font-size:11px; }
.diet-table th,.diet-table td { padding:8px 5px; }
.diet-table thead th { white-space:normal; line-height:1.35; }
.diet-table caption { padding:9px 8px; font-size:13px; }
.diet-chart svg { min-width:0; }
.diet-chart-heading h3 { font-size:15px; }
.diet-chart-heading span { font-size:11px; }
.diet-axis-label { font-size:11px; }
.diet-chart-kcal { font-size:10px; }
.diet-panel,.diet-results { margin-top:18px; padding:24px; border:1px solid #e0e5e9; border-radius:10px; background:#fff; }
.diet-panel-heading,.diet-result-heading,.diet-chart-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.diet-panel-heading h2,.diet-result-heading h2 { margin:4px 0 0; color:#1f2d38; font-size:21px; }
.diet-estimate-tag { flex:0 0 auto; padding:6px 10px; border:1px solid #d9e5ed; border-radius:999px; background:#f4f8fb; color:#456171; font-size:12px; font-weight:700; }
.diet-form { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:end; gap:14px; margin-top:20px; }
.diet-field { display:grid; min-width:0; gap:7px; color:#343a40; font-size:14px; font-weight:700; }
.diet-field-hint { display:inline; color:#75818a; font-size:11px; font-weight:500; }
.diet-field input,.diet-field select { width:100%; min-height:48px; padding:0 12px; border:1px solid #cbd1d6; border-radius:6px; background:#fff; color:#252a2e; font:inherit; font-size:15px; }
.diet-field input:focus-visible,.diet-field select:focus-visible,.diet-amount input:focus-visible { outline:2px solid #1c69d4; outline-offset:2px; }
.diet-snack-option { display:flex; min-height:48px; align-items:center; gap:9px; color:#34424d; font-size:14px; font-weight:600; }
.diet-snack-option input { width:18px; height:18px; accent-color:#1c69d4; }
.diet-submit,.diet-secondary-button { min-height:48px; padding:0 18px; border:0; border-radius:5px; background:#1c69d4; color:#fff; cursor:pointer; font:inherit; font-size:14px; font-weight:700; }
.diet-submit:hover,.diet-secondary-button:hover { background:#1557b0; }
.diet-form-note,.diet-disclaimer { margin:13px 0 0; color:#66727b; font-size:12px; line-height:1.7; }
.diet-results { margin-top:18px; }
.diet-secondary-button { min-height:40px; padding:0 14px; }
.diet-status { min-height:22px; margin:10px 0 14px; color:#566671; font-size:13px; line-height:1.6; }
.diet-target-cards { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:9px; }
.diet-target-card { display:grid; gap:6px; min-width:0; padding:13px; border:1px solid #dce6ed; border-radius:7px; background:#f5f9fc; }
.diet-target-card span { color:#687782; font-size:12px; }
.diet-target-card strong { color:#1a4d6d; font-size:17px; font-variant-numeric:tabular-nums; }
.diet-chart-panel { margin-top:18px; padding:18px; border:1px solid #e0e6ea; border-radius:8px; background:#fff; }
.diet-chart-heading h3 { margin:0; color:#263541; font-size:16px; }
.diet-chart-heading span { color:#75818a; font-size:12px; }
.diet-chart { width:100%; overflow-x:auto; margin-top:8px; }
.diet-chart svg { display:block; width:100%; min-width:360px; height:auto; }
.diet-grid-line { stroke:#e8edf0; stroke-width:1; }
.diet-axis-label { fill:#72808a; font:12px sans-serif; }
.diet-x-label { fill:#374957; font-weight:700; }
.diet-chart-kcal { fill:#354754; font:700 11px sans-serif; }
.diet-chart-legend { display:flex; flex-wrap:wrap; justify-content:center; gap:18px; color:#53616b; font-size:12px; }
.diet-chart-legend span { display:flex; align-items:center; gap:6px; }
.diet-chart-legend i { width:11px; height:11px; border-radius:3px; }
.diet-chart-legend .legend-carb { background:#1c69d4; }.diet-chart-legend .legend-protein { background:#38a486; }.diet-chart-legend .legend-fat { background:#f2a541; }
.diet-table-wrap { overflow-x:auto; margin-top:18px; border:1px solid #e0e5e9; border-radius:7px; }
.diet-table { width:100%; min-width:650px; border-collapse:collapse; font-size:13px; font-variant-numeric:tabular-nums; }
.diet-table caption { padding:12px; color:#243744; font-size:14px; font-weight:700; text-align:left; }
.diet-table th,.diet-table td { padding:11px 12px; border-top:1px solid #e8ecef; text-align:right; white-space:nowrap; }
.diet-table thead th { background:#f3f6f8; color:#43535e; font-size:12px; }
.diet-table th:first-child,.diet-table td:first-child { text-align:left; }
.diet-table tbody th { color:#384a57; font-weight:600; }
.diet-table tr.is-target-row { background:#f4f8fb; }
.diet-table tr.is-target-row th,.diet-table tr.is-total-row th,.diet-table tr.is-total-row td { color:#1a4d6d; font-weight:800; }
.diet-meals { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:18px; }
.diet-meal-card { min-width:0; padding:16px; border:1px solid #e0e6ea; border-radius:8px; background:#fff; }
.diet-meal-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.diet-meal-heading h3 { margin:0; color:#263541; font-size:16px; line-height:1.5; }
.diet-meal-heading span { flex:0 0 auto; height:28px; display:inline-flex; align-items:center; padding:0 9px; border-radius:999px; background:#eaf2f8; color:#1a4d6d; font-size:11px; font-weight:700; }
.diet-food-list { display:grid; gap:7px; margin-top:12px; }
.diet-food-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:9px; padding:9px; border:1px solid #e6eaed; border-radius:6px; background:#f8fafb; }
.diet-food-copy { display:grid; min-width:0; gap:3px; }
.diet-food-copy strong { color:#344550; font-size:13px; line-height:1.45; }
.diet-food-copy .diet-food-detail { color:#74818a; font-size:10px; line-height:1.4; }
.diet-food-copy a { width:max-content; color:#1557b0; font-size:11px; text-decoration:underline; text-underline-offset:2px; }
.diet-amount { display:grid; width:max-content; justify-self:end; grid-template-columns:max-content 68px max-content; grid-template-rows:28px auto; align-items:center; justify-items:end; column-gap:4px; color:#566671; font-size:12px; white-space:nowrap; }
.diet-amount input { width:68px; height:26px; min-height:26px; padding:0 5px; border:1px solid #cbd1d6; border-radius:4px; outline:0; background:#fff; color:#253541; font:inherit; text-align:right; }
.diet-meal-subtotal { margin:10px 0 0; color:#52626d; font-size:12px; font-variant-numeric:tabular-nums; }
.diet-summary-layout { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr); align-items:start; gap:12px; margin-top:14px; }
.diet-summary-layout .diet-table-wrap,.diet-summary-layout .diet-chart-panel { min-width:0; margin-top:0; }
.diet-summary-layout .diet-chart-panel { padding:13px 11px; }
.diet-table-wrap { margin-top:0; }
.diet-table { min-width:0; table-layout:fixed; font-size:11px; }
.diet-table th,.diet-table td { padding:8px 5px; }
.diet-table thead th { white-space:normal; line-height:1.35; }
.diet-table caption { padding:9px 8px; font-size:13px; }
.diet-chart svg { min-width:0; }
.diet-chart-heading h3 { font-size:15px; }
.diet-chart-heading span { font-size:11px; }
.diet-axis-label { font-size:11px; }
.diet-chart-kcal { font-size:10px; }
.diet-submit { grid-column:3; justify-self:end; min-width:190px; }
.diet-meal-heading h3 { flex:1; }
.diet-meal-change { width:auto; height:28px; min-height:28px; flex:0 0 auto; padding:0 9px; border:1px solid #ccd7df; border-radius:5px; background:#fff; color:#31536a; cursor:pointer; font:inherit; font-size:11px; font-weight:700; line-height:1; white-space:nowrap; }
.diet-meal-change:hover { border-color:#1c69d4; color:#1557b0; }
.diet-meal-change:disabled { cursor:wait; opacity:.65; }
.diet-portion-hint { grid-column:1 / -1; grid-row:2; display:block; min-height:1.2em; justify-self:end; color:#77838c; font-size:10px; text-align:right; }
@media(max-width:760px) {
  .diet-summary-layout { grid-template-columns:minmax(0,1fr); }
  .diet-summary-layout .diet-chart-panel { padding:14px; }
  .diet-chart svg { min-width:300px; max-width:440px; margin-inline:auto; }
  .diet-submit { grid-column:2; }
  .diet-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .diet-target-cards { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .diet-meals { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:520px) {
  .diet-table { font-size:10px; }
  .diet-table th,.diet-table td { padding:7px 3px; }
  .diet-table thead th { font-size:10px; }
  .diet-summary-layout .diet-chart-panel { padding:12px 8px; }
  .diet-panel,.diet-results { padding:18px 14px; }
  .diet-panel-heading,.diet-result-heading { align-items:flex-start; }
  .diet-panel-heading h2,.diet-result-heading h2 { font-size:19px; }
  .diet-estimate-tag { font-size:10px; }
  .diet-form { grid-template-columns:minmax(0,1fr); gap:11px; }
  .diet-submit { grid-column:1; width:auto; }
  .diet-secondary-button { width:100%; }
  .diet-result-heading { flex-direction:column; }
  .diet-target-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .diet-chart-panel { padding:14px 10px; }
  .diet-chart-heading { align-items:flex-start; flex-direction:column; gap:4px; }
  .diet-meal-card { padding:13px; }
  .diet-meal-heading { flex-wrap:wrap; }
  .diet-meal-heading h3 { flex-basis:100%; }
  .diet-meal-change { margin-left:0; }
  .diet-food-row { grid-template-columns:minmax(0,1fr); }
}

/* Make food nutrition lookup the primary feature on the diet page. */
.diet-nutrition-search { margin-top:20px; border-top:3px solid #1a4d6d; }
.diet-nutrition-search .nutrition-panel-heading h2 { font-size:24px; }
.diet-nutrition-search .nutrition-filter-help { margin:12px 0 0; font-size:14px; }
.diet-nutrition-search .nutrition-field input { width:100%; min-height:48px; padding:0 12px; border:1px solid #cbd1d6; border-radius:6px; background:#fff; color:#252a2e; font:inherit; font-size:15px; }
.diet-nutrition-search .nutrition-field input:focus-visible { outline:2px solid #1c69d4; outline-offset:2px; }
.diet-nutrition-search .nutrition-search-button { width:100%; margin-top:14px; }
.diet-nutrition-search .nutrition-food-details { font-size:12px; }
.diet-nutrition-search .nutrition-food-source { font-size:12px; }
.diet-nutrition-search .nutrition-results-heading { margin-top:20px; }
.diet-nutrition-search .nutrition-more-button { display:block; width:min(100%,260px); margin:14px auto 0; }
.diet-nutrition-search .nutrition-more-button[hidden] { display:none; }
.diet-addon { margin-top:42px; padding-top:26px; border-top:1px solid #dfe5e9; }
.diet-addon-heading { margin-bottom:14px; }
.diet-addon-heading h2 { margin:5px 0 0; color:#1f2d38; font-size:22px; }
.diet-addon-heading p { margin:7px 0 0; color:#5f6d77; font-size:14px; line-height:1.6; }
@media(max-width:640px) {
  .diet-nutrition-search .nutrition-filter-row { grid-template-columns:minmax(0,1fr); }
  .diet-addon { margin-top:30px; padding-top:20px; }
}

/* Region based public and private parking search */
body.parking-page-theme { background:#f3f7fa; color:#253541; }
body.parking-page-theme .site-header { background:#fff; border-bottom-color:#dfe8ee; }
body.parking-page-theme main { background:transparent; }
.parking-main { width:min(1200px,calc(100% - 36px)); margin:0 auto; padding:28px 0 38px; }
.parking-intro { padding:27px 30px; border-radius:9px; background:#1a4d6d; color:#fff; }
.parking-eyebrow { display:block; color:#b9d5e5; font-size:11px; font-weight:800; letter-spacing:1.7px; }
.parking-intro h1 { margin:8px 0 5px; color:#fff; font-size:clamp(26px,4vw,34px); line-height:1.35; }
body.parking-page-theme .parking-intro p { margin:0; color:#f1f7fb; font-size:14px; line-height:1.7; }
body.parking-page-theme .parking-intro p::selection { background:rgba(255,255,255,.24); color:#fff; }
.parking-search-panel,.parking-results { margin-top:16px; padding:20px; border:1px solid #dce6ed; border-radius:9px; background:#fff; box-shadow:0 7px 22px rgba(35,73,98,.045); }
.parking-form { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) auto; align-items:end; gap:12px; }
.parking-field { display:grid; min-width:0; gap:7px; color:#344653; font-size:13px; font-weight:700; }
.parking-field select { width:100%; min-width:0; height:48px; padding:0 12px; border:1px solid #cbd5dc; border-radius:6px; background:#fff; color:#273945; font:inherit; font-size:14px; }
.parking-field input { width:100%; min-width:0; height:48px; padding:0 12px; border:1px solid #cbd5dc; border-radius:6px; background:#fff; color:#273945; font:inherit; font-size:14px; }
.parking-field select:focus-visible,.parking-search-button:focus-visible,.parking-card a:focus-visible { outline:2px solid #1c69d4; outline-offset:2px; }
.parking-field select:disabled { background:#f3f6f8; color:#87939b; }
.parking-search-button { min-height:48px; padding:0 21px; border:1px solid #1c69d4; border-radius:6px; background:#1c69d4; color:#fff; cursor:pointer; font:inherit; font-weight:800; white-space:nowrap; }
.parking-search-button:hover { background:#1557b0; }
.parking-actions { grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:10px; }
.parking-actions .parking-search-button { min-width:180px; }
.parking-nearby-button { min-height:48px; padding:0 17px; border:1px solid #1a4d6d; border-radius:6px; background:#fff; color:#1a4d6d; cursor:pointer; font:inherit; font-weight:800; white-space:nowrap; }
.parking-nearby-button:hover { background:#eef5f9; }
.parking-nearby-button:focus-visible { outline:2px solid #1c69d4; outline-offset:2px; }
.parking-nearby-button:disabled { cursor:wait; opacity:.65; }
.parking-search-note { margin:13px 0 0; color:#65737e; font-size:12px; line-height:1.6; }
.parking-results[hidden] { display:none; }
.parking-results-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.parking-results-heading .parking-eyebrow { color:#647985; }
.parking-results-heading h2 { margin:3px 0 0; color:#253541; font-size:20px; }
.parking-results-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:12px; }
.parking-market-toggle { display:inline-flex; align-items:center; gap:7px; color:#43545f; font-size:12px; cursor:pointer; }
.parking-market-toggle input { accent-color:#228451; }
.parking-legend { display:flex; flex-wrap:wrap; gap:15px; color:#43545f; font-size:12px; }
.parking-legend span { display:inline-flex; align-items:center; gap:6px; }
.parking-dot { width:11px; height:11px; border-radius:50%; }
.parking-dot.public { background:#1c69d4; }.parking-dot.private { background:#e58b20; }.parking-dot.market { background:#228451; }
.parking-status { margin:12px 0; color:#536672; font-size:13px; }
.parking-results-layout { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr); gap:14px; align-items:start; }
.parking-map { position:sticky; top:12px; width:100%; min-height:540px; overflow:hidden; border:1px solid #d5e0e7; border-radius:7px; background:#edf3f6; }
.parking-list { display:grid; max-height:680px; gap:10px; overflow:auto; padding-right:3px; }
.parking-card { min-width:0; padding:14px; border:1px solid #dfe7ec; border-radius:7px; background:#fff; cursor:pointer; transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease; }
.parking-card:focus-visible { outline:2px solid #1c69d4; outline-offset:2px; }
.parking-card.is-map-selected { border-color:#1c69d4; background:#edf5fb; box-shadow:0 0 0 2px #1c69d426; animation:map-list-select .55s ease-out; }
.parking-card.is-map-selected .parking-facts { background:#e5f0f8; }
@keyframes map-list-select { 0% { transform:translateX(0); } 38% { transform:translateX(5px); } 72% { transform:translateX(-2px); } 100% { transform:translateX(0); } }
.parking-card-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.parking-card-copy { min-width:0; }
.parking-type-label { display:block; color:#667985; font-size:11px; }
.parking-card h3 { margin:3px 0 0; color:#263744; font-size:15px; line-height:1.45; overflow-wrap:anywhere; }
.parking-address { margin:9px 0 11px; color:#4e606d; font-size:12px; line-height:1.55; }
.parking-facts { display:grid; grid-template-columns:58px minmax(0,1fr); margin:0; padding:9px 10px; border-radius:5px; background:#f4f7f9; font-size:11px; line-height:1.6; }
.parking-facts dt { color:#788791; }.parking-facts dd { min-width:0; margin:0; color:#3b4c57; overflow-wrap:anywhere; }
.parking-card-actions { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; margin-top:11px; }
.parking-card-actions a,.parking-info-window a { color:#1557b0; font-size:12px; font-weight:700; text-decoration:underline; text-underline-offset:2px; }
.parking-empty { padding:18px; border:1px dashed #cbd8e0; border-radius:6px; color:#62737d; font-size:13px; }
.parking-map-pin { display:grid; width:30px; height:38px; place-items:start center; color:#fff; background:var(--pin-color); border:2px solid #fff; border-radius:50% 50% 50% 0; box-shadow:0 2px 6px #26374455; transform:rotate(-45deg); }
.parking-map-pin span { font-size:12px; line-height:26px; transform:rotate(45deg); }
.parking-map-pin-market { background:#228451; }
.parking-info-window { display:grid; max-width:250px; gap:5px; padding:10px; color:#253541; font-size:12px; }
.parking-info-window strong { font-size:14px; }
.parking-info-window span { color:#5e6d77; line-height:1.5; }
.ev-search-form { grid-template-columns:repeat(5,minmax(0,1fr)); }
.ev-search-form .parking-actions { grid-column:1/-1; }
.ev-status-legend { display:flex; flex-wrap:wrap; gap:12px; color:#43545f; font-size:12px; }
.ev-status-legend span { display:inline-flex; align-items:center; gap:6px; }
.ev-dot { width:10px; height:10px; border-radius:50%; }
.ev-dot.available { background:#25824f; }.ev-dot.charging { background:#e58b20; }.ev-dot.unavailable { background:#75818b; }
.ev-charger-card .ev-card-state { display:block; margin-bottom:4px; color:#25824f; font-size:12px; font-weight:800; }
.ev-info-window { min-width:190px; }
.ev-charger-page .parking-source a { color:#1557b0; text-underline-offset:2px; }
.parking-source { background:#f5f8fa; }
.parking-source-name { color:#6c7b84; font-size:12px; }
@media(prefers-reduced-motion:reduce) { .parking-card { transition:none; } .parking-card.is-map-selected { animation:none; } }
@media(max-width:820px) {
  .parking-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ev-search-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .parking-actions { justify-content:stretch; }
  .parking-actions .parking-search-button,.parking-nearby-button { flex:1 1 220px; width:auto; }
  .parking-results-layout { grid-template-columns:minmax(0,1fr); }
  .parking-map { position:relative; top:auto; min-height:420px; }
  .parking-list { max-height:none; overflow:visible; }
}
@media(max-width:520px) {
  .parking-main { width:calc(100% - 24px); padding:16px 0 26px; }
  .parking-intro { padding:21px 18px; }
  .parking-intro p { font-size:13px; }
  .parking-search-panel,.parking-results { padding:15px 12px; }
  .parking-form { grid-template-columns:minmax(0,1fr); gap:11px; }
  .ev-search-form { grid-template-columns:minmax(0,1fr); }
  .parking-actions { flex-direction:row; flex-wrap:nowrap; justify-content:stretch; gap:8px; }
  .parking-actions .parking-search-button,.parking-actions .parking-nearby-button { flex:1 1 0; min-width:0; width:auto; height:44px; min-height:44px; padding:0 6px; font-size:12px; line-height:1.25; white-space:normal; }
  .parking-results-heading { align-items:flex-start; flex-direction:column; }
  .parking-results-tools { justify-content:flex-start; }
  .parking-map { min-height:360px; }
  .parking-source { margin:0 12px 18px; }
}

/* Mobile copy wrapping and aligned controls. Keep Korean words intact and let long text wrap safely. */
main { word-break:keep-all; overflow-wrap:break-word; }
@media (max-width: 760px) {
  .investment-monitor-heading { align-items:flex-start; flex-direction:column; gap:7px; }
  .investment-monitor-heading h2 { font-size:22px; line-height:1.35; }
  .investment-monitor-update { text-align:left; font-size:12px; line-height:1.5; }
  .investment-sort-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .investment-sort-controls > span { grid-column:1 / -1; margin:0; }
  .investment-sort-controls button { width:100%; min-width:0; min-height:46px; padding:6px 8px; font-size:13px; line-height:1.35; white-space:normal; word-break:keep-all; }
  .investment-table-wrap,.sector-table-wrap { width:100%; overflow-x:hidden; }
  .investment-table,.sector-investment-table { display:table; width:100%; min-width:0; table-layout:fixed; }
  .investment-table th,.investment-table td { padding:7px 2px; font-size:clamp(8px,2.4vw,10px); white-space:normal; overflow-wrap:anywhere; line-height:1.3; }
  .sector-investment-table th,.sector-investment-table td { padding:6px 1px; font-size:clamp(8px,2.3vw,9px); white-space:normal; overflow-wrap:anywhere; line-height:1.3; }
  .investment-company { min-width:0; }
  .investment-company strong { font-size:8px; line-height:1.25; overflow-wrap:anywhere; }
  .investment-company span { font-size:11px; white-space:normal; }

  .menu-filter-heading { display:grid; grid-template-columns:minmax(0,1fr); gap:6px; align-items:start; }
  .menu-filter-heading > div { min-width:0; }
  .menu-filter-heading h2 { font-size:clamp(18px,4.8vw,22px); line-height:1.35; white-space:nowrap; }
  .meal-note { max-width:none; text-align:left; font-size:clamp(13px,3.6vw,16px); line-height:1.45; white-space:nowrap; }
  .menu-filter-actions { display:flex; align-items:stretch; gap:10px; }
  .menu-filter-actions .calculate-button { flex:1 1 0; min-width:0; max-width:none; padding:0 8px; font-size:clamp(13px,3.8vw,15px); white-space:nowrap; }
  .reset-menu-button { flex:0 0 auto; min-width:max-content; padding:0 12px; white-space:nowrap; word-break:keep-all; font-size:14px; }
}
@media (max-width: 390px) {
  .investment-sort-controls { gap:6px; }
  .investment-sort-controls button { font-size:12px; }
  .investment-table { font-size:9px; }
  .investment-table th,.investment-table td { padding-right:1px; padding-left:1px; font-size:8px; }
  .investment-company strong { font-size:8px; }
  .investment-company span { font-size:7px; line-height:1.2; }
  .sector-investment-table th,.sector-investment-table td { padding-right:0; padding-left:0; font-size:8px; }
  .menu-filter-heading h2 { font-size:18px; }
  .meal-note { font-size:13px; }
  .menu-filter-actions { gap:8px; }
  .menu-filter-actions .calculate-button { padding:0 5px; font-size:12px; }
  .reset-menu-button { padding:0 8px; font-size:13px; }
}

/* Pet-friendly place finder */
.pet-travel-main { padding-top:30px; }
.pet-category-field { min-width:0; margin:0; padding:0; border:0; }
.pet-category-field legend { margin-bottom:10px; color:#262626; font-size:14px; font-weight:700; }
.pet-category-field legend span { margin-left:6px; color:#5e5954; font-size:12px; font-weight:400; }
.pet-category-options { display:flex; flex-wrap:wrap; gap:8px; }
.pet-category-option { max-width:100%; }
.pet-category-option span { overflow-wrap:anywhere; }
.pet-search-actions { display:flex; flex-wrap:wrap; gap:10px; }
.pet-search-actions .festival-submit { flex:1 1 240px; min-height:48px; }
.pet-detail-button:focus-visible,.pet-more:focus-visible { outline:2px solid #1c69d4; outline-offset:2px; }
.pet-results[hidden] { display:none; }
.pet-results-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; }
.pet-results-heading h2 { margin:6px 0 0; color:#262626; font-size:22px; }
.pet-results-groups { display:grid; gap:18px; margin-top:18px; }
.pet-result-group { min-width:0; padding:18px; border:1px solid #e3e5e7; background:#fff; }
.pet-result-group-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:14px; }
.pet-result-group-heading h3 { min-width:0; margin:0; color:#262626; font-size:18px; line-height:1.45; }
.pet-group-count { flex:none; color:#5e5954; font-size:13px; }
.pet-place-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.pet-place-card { min-width:0; padding:15px; border:1px solid #e5e5e5; background:#fff; }
.pet-place-title { margin:0; color:#262626; font-size:16px; line-height:1.5; overflow-wrap:anywhere; }
.pet-place-address { margin:7px 0 0; color:#4e4b47; font-size:14px; line-height:1.6; overflow-wrap:anywhere; }
.pet-place-photo { margin:0 0 12px; padding:7px; border:1px solid #e5e5e5; background:#fff; }
.pet-place-photo img { display:block; width:100%; height:180px; object-fit:contain; background:#fff; }
.pet-place-photo figcaption { padding:7px 3px 0; color:#5e5954; font-size:12px; line-height:1.55; }
.pet-place-photo figcaption a,.pet-place-actions a { color:#1557b0; text-underline-offset:3px; }
.pet-place-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; margin-top:11px; }
.pet-detail-button { min-height:42px; padding:0 11px; border:1px solid #d7d7d7; background:#f7f7f7; color:#262626; cursor:pointer; font:inherit; font-size:13px; font-weight:700; }
.pet-detail-button:hover { border-color:#1a4d6d; }
.pet-place-actions a { display:inline-flex; min-height:42px; align-items:center; font-size:13px; font-weight:700; }
.pet-detail-panel { margin-top:10px; padding:12px; border:1px solid #e5e5e5; background:#f7f7f7; }
.pet-detail-panel[hidden] { display:none; }
.pet-detail-list { display:grid; grid-template-columns:minmax(100px,.35fr) minmax(0,1fr); gap:8px 12px; margin:0; font-size:13px; line-height:1.6; }
.pet-detail-list dt { color:#5e5954; font-weight:700; }
.pet-detail-list dd { min-width:0; margin:0; color:#262626; overflow-wrap:anywhere; }
.pet-detail-status,.pet-group-status { margin:5px 0 0; color:#5e5954; font-size:14px; line-height:1.65; }
.pet-more { margin-bottom:0; color:#262626; }
.pet-more:hover { border-color:#1c69d4; color:#1c69d4; }
@media(max-width:640px) {
  .pet-travel-main { padding-top:22px; }
  .pet-search-actions { display:grid; grid-template-columns:1fr; }
  .pet-search-actions .festival-submit { width:100%; }
  .pet-results-heading h2 { font-size:19px; }
  .pet-result-group { padding:14px 12px; }
  .pet-result-group-heading h3 { font-size:16px; }
  .pet-place-list { grid-template-columns:minmax(0,1fr); }
  .pet-place-photo img { height:160px; }
  .pet-detail-list { grid-template-columns:minmax(85px,.4fr) minmax(0,1fr); gap:7px 9px; font-size:12px; }
}

/* Privacy policy text uses the available page width for comfortable reading. */
.privacy-policy { width: min(1100px, calc(100% - 48px)); max-width: none; }
.privacy-policy p { max-width: none; }
@media (max-width: 640px) { .privacy-policy { width: calc(100% - 32px); } }

/* Full-width editorial pages for site transparency and privacy information. */
body.privacy-page main.calculator-main,
body.about-page main.about-main { width:min(1200px,calc(100% - 48px)); max-width:none; margin:0 auto; }
body.privacy-page .privacy-policy { display:block; box-sizing:border-box; width:100%; max-width:none; margin:28px 0 0; padding:clamp(24px,4vw,48px); }
body.privacy-page .privacy-policy > h2,
body.privacy-page .privacy-policy > p { display:block; width:100%; max-width:none!important; margin-left:0!important; margin-right:0!important; }
body.privacy-page .privacy-policy > h2 { margin-top:28px; margin-bottom:10px; }
body.privacy-page .privacy-policy > h2:first-child { margin-top:0; }
body.privacy-page .privacy-policy > p { margin-top:0; margin-bottom:18px; line-height:1.85; }
body.privacy-page .privacy-policy > p + p { margin-top:0; }
.about-main { padding-top:30px; padding-bottom:10px; }
.about-intro { padding:32px; border-radius:12px; background:#1a4d6d; color:#fff; }
.about-intro h1 { color:#fff; }
.about-intro p { max-width:none; color:#eef5f8; }
.about-section { margin-top:18px; padding:24px 28px; border:1px solid #e1e5e8; border-radius:10px; background:#fff; }
.about-section h2 { margin:0 0 10px; color:#222; font-size:20px; }
.about-section p { max-width:none; margin:0; color:#41474c; font-size:16px; line-height:1.8; }
.about-section p + p { margin-top:14px; }
.about-section a { color:#1557b0; text-underline-offset:3px; }
.service-usage-guidance { margin-top:16px!important; padding-top:14px; border-top:1px solid #dfe4e8; }
@media(max-width:760px) {
  body.privacy-page main.calculator-main,
  body.about-page main.about-main { width:calc(100% - 32px); }
  body.privacy-page .privacy-policy { padding:22px 18px; }
  .about-main { padding-top:20px; }
  .about-intro { padding:26px 20px; }
  .about-section { padding:20px 17px; }
}
