:root {
  color-scheme: light;
  --bg: #f5f7f3;
  --paper: #ffffff;
  --ink: #17211f;
  --muted: #64706d;
  --line: #dfe6de;
  --green: #0f8b6f;
  --mint: #d7f2e8;
  --coral: #ef6b55;
  --amber: #f4b740;
  --blue: #2878a8;
  --shadow: 0 18px 50px rgba(30, 48, 41, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(215, 242, 232, 0.62), transparent 360px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

textarea {
  resize: vertical;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(223, 230, 222, 0.86);
  background: rgba(245, 247, 243, 0.9);
  backdrop-filter: blur(16px);
}

.category-menu {
  position: relative;
}

.country-menu {
  position: relative;
  margin-left: auto;
}

.category-toggle,
.country-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid rgba(15, 139, 111, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  padding: 0 12px;
  cursor: pointer;
  font-weight: 850;
}

.category-toggle:hover,
.category-toggle[aria-expanded="true"],
.country-toggle:hover,
.country-toggle[aria-expanded="true"] {
  background: var(--mint);
}

.hamburger {
  display: grid;
  gap: 4px;
  width: 18px;
}

.hamburger span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.category-panel,
.country-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 8px;
  width: min(520px, calc(100vw - 28px));
  max-height: calc(100vh - 92px);
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.country-panel {
  display: grid;
  grid-template-columns: 1fr;
  width: min(280px, calc(100vw - 28px));
}

.category-panel a,
.country-panel button {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.category-panel a:hover,
.category-panel a.is-current,
.country-panel button:hover,
.country-panel button.is-current {
  background: rgba(15, 139, 111, 0.1);
}

.category-panel strong,
.country-panel strong {
  font-size: 0.94rem;
}

.category-panel small,
.country-panel small {
  color: var(--muted);
  line-height: 1.35;
}

.country-flag {
  font-size: 1.05rem;
  line-height: 1;
}

.country-context {
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  border: 1px solid rgba(15, 139, 111, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 12px 14px;
  color: #34403d;
  line-height: 1.55;
}

.country-context strong {
  color: var(--ink);
}

.country-context ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.country-context li {
  border-radius: 8px;
  background: rgba(215, 242, 232, 0.58);
  padding: 5px 8px;
  font-size: 0.86rem;
  font-weight: 750;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 850;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #0f8b6f 0 52%, #1f6f8b 52% 100%);
  box-shadow: inset 0 0 0 1px rgba(23, 33, 31, 0.12);
}

.brand-mark::before {
  content: "잇";
  color: #fff;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1;
}

.brand-mark::after {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  content: "";
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.76);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a {
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 750;
}

.nav a:hover,
.nav a.is-current {
  background: rgba(15, 139, 111, 0.1);
  color: var(--ink);
}

.ad-banner {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
}

.ad-banner-top {
  position: relative;
}

.ad-label,
.eyebrow,
.result-kicker,
.summary-label {
  display: block;
  margin: 0;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px dashed #aebbae;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.ad-slot-wide {
  min-height: 96px;
}

.ad-slot-tall {
  min-height: 520px;
  writing-mode: vertical-rl;
}

.ad-slot-slim {
  min-height: 360px;
  padding: 12px;
}

.page-frame {
  display: grid;
  grid-template-columns: 140px minmax(0, 1180px) 140px;
  gap: 18px;
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
}

.side-ad {
  position: sticky;
  top: 84px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding-top: 30px;
}

main {
  min-width: 0;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: end;
  padding: 44px 0 24px;
}

.intro {
  min-width: 0;
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-top: 10px;
  font-size: clamp(2rem, 5vw, 4.35rem);
  word-break: keep-all;
  overflow-wrap: break-word;
}

h2 {
  font-size: 1.18rem;
}

.intro-copy {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.summary-panel,
.tool-shell,
.content-band,
.tool-card,
.tip-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.summary-panel {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px;
}

.summary-panel > div {
  min-width: 0;
}

.summary-panel strong {
  display: block;
  max-width: 100%;
  margin-top: 4px;
  font-size: clamp(1.45rem, 2.35vw, 1.95rem);
  line-height: 1.12;
  overflow-wrap: normal;
  word-break: keep-all;
  font-variant-numeric: tabular-nums;
}

.summary-panel small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.summary-meter {
  width: 82px;
  aspect-ratio: 1;
  padding: 9px;
  border-radius: 50%;
  background: conic-gradient(var(--green) calc(var(--meter, 64) * 1%), #ecf0ea 0);
}

.summary-meter span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff 0 16%, transparent 17%),
    linear-gradient(135deg, #ffffff, #edf7f1);
}

.tool-shell {
  overflow: visible;
  padding: 24px;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 380px;
  gap: 18px;
  align-items: stretch;
}

.input-panel {
  min-width: 0;
}

.input-panel h2 {
  margin-bottom: 18px;
}

.section-subtitle {
  margin-top: 22px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-grid.is-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

[data-food-estimate],
[data-food-direct] {
  margin-top: 18px;
}

[data-food-estimate] .field-grid {
  row-gap: 20px;
}

label {
  display: grid;
  gap: 7px;
  color: #34403d;
  font-size: 0.91rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfd9d1;
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
  padding: 0 12px;
  outline: 0;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 139, 111, 0.15);
}

.field-wide {
  grid-column: 1 / -1;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #cfd9d1;
  border-radius: 8px;
  background: #fbfcfa;
}

.check-field input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.inline-ad {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  min-width: 0;
}

.result-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  padding: 22px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(215, 242, 232, 0.78), rgba(255, 255, 255, 0.9)),
    var(--paper);
  border: 1px solid rgba(15, 139, 111, 0.18);
}

.result-panel strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.65rem, 3.4vw, 2.5rem);
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: keep-all;
  font-variant-numeric: tabular-nums;
}

.bar-track {
  position: relative;
  height: 12px;
  margin: 22px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #dce5dc;
}

.bar-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--amber), var(--coral));
  transition: width 180ms ease;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  margin: 0;
}

.metrics.is-wide {
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
}

.metrics div {
  position: relative;
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid rgba(23, 33, 31, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.has-tip {
  cursor: help;
}

.has-tip::before {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  content: "";
  opacity: 0.45;
}

.has-tip:hover::after,
.has-tip:focus-within::after {
  position: absolute;
  right: 6px;
  bottom: calc(100% + 8px);
  z-index: 6;
  width: min(280px, 78vw);
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  content: attr(data-tip);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 14px 36px rgba(23, 33, 31, 0.22);
}

.has-tip:hover,
.has-tip:focus-within {
  border-color: rgba(15, 139, 111, 0.3);
  background: rgba(255, 255, 255, 0.86);
}

.metrics dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.metrics dd {
  margin: 6px 0 0;
  overflow-wrap: normal;
  word-break: keep-all;
  font-variant-numeric: tabular-nums;
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 850;
}

#moveQuoteStatus,
#moveTon {
  white-space: normal;
  overflow-wrap: break-word;
  font-size: 0.92rem;
  line-height: 1.38;
}

.loan-metrics {
  grid-template-columns: 1fr;
}

.loan-metrics div {
  padding: 14px 16px;
}

.loan-metrics dd {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1rem, 3.2vw, 1.35rem);
  line-height: 1.25;
}

body[data-page="loan"] .result-panel strong {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

body[data-page="move"] .summary-panel strong {
  white-space: nowrap;
  font-size: clamp(1.4rem, 2.2vw, 1.82rem);
}

.verdict {
  min-height: 48px;
  margin: 18px 0 0;
  color: #31403c;
  line-height: 1.55;
}

.move-visual {
  display: grid;
  grid-template-columns: 1fr 1.35fr 0.8fr;
  gap: 10px;
  align-items: end;
  height: 72px;
  margin: 24px 0 18px;
}

.move-visual span {
  display: block;
  border-radius: 8px 8px 3px 3px;
  background: var(--green);
}

.move-visual span:nth-child(1) {
  height: 42px;
  background: var(--amber);
}

.move-visual span:nth-child(2) {
  height: 68px;
  background: var(--coral);
}

.move-visual span:nth-child(3) {
  height: 54px;
  background: var(--blue);
}

.tool-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.tool-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 20px;
  box-shadow: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.tool-card strong {
  font-size: 1.08rem;
}

.tool-card small {
  color: var(--muted);
  line-height: 1.5;
}

.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(23, 33, 31, 0.1);
}

.tool-icon-green {
  background: linear-gradient(135deg, var(--green), var(--mint));
}

.tool-icon-coral {
  background: linear-gradient(135deg, var(--coral), #ffd8c8);
}

.tool-icon-blue {
  background: linear-gradient(135deg, var(--blue), #cfe9f5);
}

.tool-icon-amber {
  background: linear-gradient(135deg, var(--amber), #fff0b8);
}

.tip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tip-card {
  padding: 20px;
  box-shadow: none;
}

.tip-card h2 {
  margin-bottom: 12px;
}

.tip-card p {
  margin: 0;
  color: #34403d;
  line-height: 1.58;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.seo-grid article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 14px;
}

.seo-grid h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.seo-grid p,
.faq-list p {
  margin: 0;
  color: #34403d;
  line-height: 1.62;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
  word-break: keep-all;
}

.faq-list summary + p {
  margin-top: 10px;
}

.seo-support {
  background: rgba(255, 255, 255, 0.74);
}

.seo-support-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.plain-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 12px;
  color: #34403d;
  line-height: 1.55;
}

.plain-list strong {
  color: var(--ink);
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.keyword-cloud span,
.related-grid a {
  border: 1px solid rgba(15, 139, 111, 0.16);
  border-radius: 8px;
  background: rgba(215, 242, 232, 0.38);
  color: #27413a;
  padding: 8px 10px;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.35;
}

.related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.seo-support h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.seo-support p {
  margin: 0;
  color: #34403d;
  line-height: 1.62;
}

.source-box,
.rate-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.source-box {
  margin-top: 18px;
  padding: 16px;
  color: #34403d;
  font-size: 0.9rem;
  line-height: 1.6;
}

.source-box strong {
  display: block;
  margin-bottom: 8px;
}

.source-box ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.rate-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 0.9rem;
}

.table-wrap {
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.table-wrap .rate-table {
  min-width: 660px;
  margin-top: 0;
  border: 0;
}

.rate-table th,
.rate-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  word-break: keep-all;
}

.rate-table th {
  background: #eef3ed;
  font-weight: 850;
  white-space: nowrap;
}

.rate-table td:not(:last-child) {
  white-space: nowrap;
  overflow-wrap: normal;
}

.rate-table td:last-child {
  overflow-wrap: break-word;
}

body[data-page="loan"] .rate-table td {
  white-space: nowrap;
  overflow-wrap: normal;
}

.box-guide-table {
  min-width: 980px;
  table-layout: fixed;
}

.box-guide-table th:nth-child(1),
.box-guide-table td:nth-child(1) {
  width: 210px;
}

.box-guide-table th:nth-child(2),
.box-guide-table td:nth-child(2),
.box-guide-table th:nth-child(3),
.box-guide-table td:nth-child(3) {
  width: 150px;
  white-space: nowrap;
}

.box-guide-table th:nth-child(4),
.box-guide-table td:nth-child(4) {
  width: auto;
  white-space: normal;
}

.rate-table tfoot th,
.rate-table tfoot td {
  position: sticky;
  bottom: 0;
  border-top: 1px solid var(--line);
  background: #eef3ed;
  font-weight: 850;
}

.rate-table tr:last-child td {
  border-bottom: 0;
}

.mini-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.source-note a {
  color: var(--green);
  font-weight: 800;
}

.income-section {
  align-items: stretch;
}

.income-chart {
  display: grid;
  gap: 14px;
}

.income-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.income-chart-head strong,
.income-chart-head small {
  display: block;
}

.income-chart-head small {
  margin-top: 4px;
  color: var(--muted);
}

.income-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.income-badges span {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(15, 139, 111, 0.1);
  color: #17483d;
  font-size: 0.82rem;
  font-weight: 850;
}

.income-chart-canvas {
  position: relative;
  min-height: 220px;
  padding: 36px 10px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(15, 139, 111, 0.08), transparent),
    #fbfcfa;
}

.income-bars {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 7px;
  align-items: end;
  height: 168px;
}

.income-bar {
  position: relative;
  display: grid;
  align-items: end;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: help;
  padding: 0;
}

.income-bar::before {
  display: block;
  width: 100%;
  height: calc(var(--bar) * 1%);
  min-height: 8px;
  border-radius: 6px 6px 3px 3px;
  background: #cfdcd4;
  content: "";
}

.income-bar.is-selected::before {
  background: linear-gradient(180deg, var(--green), var(--blue));
}

.income-bar:hover::after,
.income-bar:focus-visible::after {
  position: absolute;
  left: 50%;
  bottom: calc(var(--bar) * 1% + 14px);
  z-index: 3;
  width: max-content;
  max-width: 180px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  content: attr(aria-label);
  font-size: 0.82rem;
  line-height: 1.35;
  transform: translateX(-50%);
}

.income-bar span {
  position: absolute;
  right: 0;
  left: 0;
  bottom: calc(var(--bar) * 1% + 5px);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
  text-align: center;
}

.income-bar small {
  display: none;
}

.income-marker {
  position: absolute;
  top: 8px;
  bottom: 12px;
  width: 2px;
  background: var(--coral);
  transform: translateX(-50%);
}

.income-marker span {
  position: absolute;
  top: 0;
  left: 50%;
  width: max-content;
  padding: 4px 7px;
  border-radius: 8px;
  background: var(--coral);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 850;
  transform: translate(-50%, -4px);
}

.income-chart-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #eef3ed;
}

.income-chart-summary strong {
  font-size: 1.1rem;
}

.income-chart-summary span {
  color: #34403d;
  font-weight: 800;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.legal-note {
  margin: 24px 0 42px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: #34403d;
  line-height: 1.65;
}

.legal-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.legal-note p {
  margin: 0;
}

.site-disclaimer {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 42px;
}

.site-disclaimer p + p {
  margin-top: 10px;
}

.site-disclaimer a {
  color: var(--green);
  font-weight: 850;
}

.content-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin: 24px 0 42px;
  padding: 24px;
  box-shadow: none;
}

.content-band-wide {
  grid-template-columns: 1fr;
}

.content-band-wide .monetize-box {
  min-height: 132px;
}

.guide h2 {
  margin-bottom: 14px;
}

.checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 24px;
  color: #34403d;
  line-height: 1.55;
}

.checklist li::before {
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--green);
  content: "";
  transform: translateY(-50%);
}

.monetize-box {
  display: grid;
  gap: 10px;
  align-content: start;
}

.affiliate-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 850;
  text-align: center;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  color: var(--ink);
  font-weight: 750;
}

.ad-slot-placeholder {
  color: #6b7672;
}

.ad-slot-live {
  display: block;
  min-width: 0;
  padding: 0;
  background: transparent;
}

.ad-slot-live .adsbygoogle {
  min-height: inherit;
}

.ad-disclosure {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.privacy-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  width: min(720px, calc(100vw - 36px));
  padding: 16px;
  border: 1px solid rgba(15, 139, 111, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 56px rgba(23, 33, 31, 0.22);
}

.privacy-banner strong {
  display: block;
  margin-bottom: 6px;
}

.privacy-banner p {
  margin: 0;
  color: #34403d;
  font-size: 0.9rem;
  line-height: 1.5;
}

.privacy-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.privacy-banner button,
.privacy-banner a,
.privacy-reset-button {
  min-height: 38px;
  border: 1px solid rgba(15, 139, 111, 0.22);
  border-radius: 8px;
  background: var(--mint);
  color: var(--ink);
  padding: 0 12px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 850;
}

.privacy-banner a {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 1360px) {
  .page-frame {
    grid-template-columns: minmax(0, 1180px);
    width: min(1180px, calc(100% - 32px));
  }

  .side-ad {
    display: none;
  }
}

@media (max-width: 1050px) {
  .workspace,
  .content-band {
    grid-template-columns: 1fr;
  }

  .tool-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .result-panel {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .ad-slot-slim {
    min-height: 260px;
  }

  .tool-cards,
  .tip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
  }

  .nav {
    display: none;
  }

  .category-menu {
    width: calc(100vw - 32px);
    margin-left: 0;
  }

  .country-menu {
    width: calc(100vw - 32px);
    margin-left: 0;
  }

  .category-toggle,
  .country-toggle {
    width: 100%;
    justify-content: center;
  }

  .category-panel,
  .country-panel {
    right: auto;
    left: 0;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .ad-banner,
  .page-frame,
  .footer {
    width: calc(100vw - 32px);
    max-width: 1180px;
    margin-right: 16px;
    margin-left: 16px;
  }

  .workspace {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(1.85rem, 9.4vw, 2.12rem);
    line-height: 1.14;
  }

  .intro,
  .intro-copy {
    max-width: calc(100vw - 20px);
  }

  .summary-panel {
    grid-template-columns: 68px 1fr;
    padding: 16px;
  }

  .summary-meter {
    width: 64px;
  }

  .tool-shell,
  .content-band {
    max-width: 100%;
    padding: 16px;
  }

  .input-panel,
  .result-panel,
  .source-box,
  .guide,
  .tip-card,
  .tool-card,
  .legal-note {
    max-width: 100%;
    min-width: 0;
  }

  .intro-copy,
  .summary-panel small,
  .source-box li,
  .verdict,
  .guide p,
  .guide li,
  .tip-card p,
  .legal-note p {
    overflow-wrap: anywhere;
  }

  .tool-grid,
  .field-grid,
  .field-grid.is-compact,
  .metrics,
  .metrics.is-wide,
  .seo-grid,
  .seo-support-grid,
  .tool-cards,
  .tip-grid {
    grid-template-columns: 1fr;
  }

  .inline-ad {
    min-height: 0;
  }

  .box-guide-table {
    min-width: 0;
    table-layout: auto;
  }

  .box-guide-wrap .box-guide-table {
    min-width: 0;
  }

  .box-guide-wrap {
    max-height: none;
    overflow: visible;
  }

  .box-guide-table thead {
    display: none;
  }

  .box-guide-table,
  .box-guide-table tbody,
  .box-guide-table tr,
  .box-guide-table td {
    display: block;
    width: 100%;
  }

  .box-guide-table th:nth-child(n),
  .box-guide-table td:nth-child(n) {
    width: 100%;
  }

  .box-guide-table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .box-guide-table tr:last-child {
    border-bottom: 0;
  }

  .box-guide-table td {
    border-bottom: 0;
    padding: 4px 10px;
    white-space: normal !important;
  }

  .box-guide-table td:nth-child(1) {
    margin-bottom: 6px;
    color: var(--ink);
    font-weight: 850;
  }

  .box-guide-table td:nth-child(2)::before {
    content: "보통 ";
    color: var(--muted);
    font-weight: 700;
  }

  .box-guide-table td:nth-child(3)::before {
    content: "짐 많음 ";
    color: var(--muted);
    font-weight: 700;
  }

  .box-guide-table td:nth-child(4)::before {
    content: "참고 ";
    color: var(--muted);
    font-weight: 700;
  }

  .ad-slot-wide,
  .ad-slot-slim {
    min-height: 88px;
    writing-mode: horizontal-tb;
  }

  .tool-card {
    min-height: 150px;
  }

  .income-chart-head,
  .income-chart-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .income-bars {
    gap: 3px;
  }

  .income-bar span {
    display: none;
  }

  .footer {
    flex-direction: column;
  }

  .privacy-banner {
    right: 16px;
    bottom: 16px;
    grid-template-columns: 1fr;
  }

  .privacy-banner-actions {
    justify-content: flex-start;
  }
}
