@import url("./fonts/pretendard/pretendardvariable-dynamic-subset.css");
/* ToriKit — 생활 속 돈 계산 / Everyday money math
 * theme: warm paper + acorn ink · signature: receipt-style result card
 * mobile-first · 16px gutter · tabular numbers · no horizontal scroll */
:root {
  --paper: #faf7f2;
  --surface: #ffffff;
  --sunken: #f3eee6;
  --ink: #1f1a17;
  --ink-2: #4a423b;
  --muted: #776d63;
  --rule: #e6ded2;
  --rule-strong: #cfc4b5;
  --acorn: #6b4423;
  --acorn-hover: #573619;
  --acorn-soft: #f4ebe1;
  --amber: #c9731f;
  --plus: #2f7a4f;
  --focus: #e8a04a;
  --radius: 14px;
  --radius-sm: 10px;
  --max-w: 1080px;
  --gutter: 16px;
  --font: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171412;
    --surface: #211d1a;
    --sunken: #2a2521;
    --ink: #f3ede6;
    --ink-2: #d6ccc1;
    --muted: #a99d90;
    --rule: #3a332d;
    --rule-strong: #4d443c;
    --acorn: #d9a066;
    --acorn-hover: #e8b47d;
    --acorn-soft: #2e261f;
    --amber: #e8a04a;
    --plus: #6cc28f;
    --focus: #e8a04a;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 720px) { :root { --gutter: 24px; } }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 56px;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--ink);
}
@media (max-width: 640px) { .brand-sub { display: none; } }
.nav-actions { display: flex; align-items: center; gap: 6px; flex: none; flex-shrink: 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; min-width: 0; }
.brand-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.02em; white-space: nowrap; color: var(--ink); min-width: 0; flex-shrink: 1; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-sub { font-weight: 600; color: var(--muted); font-size: 0.875rem; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink-2);
  background: var(--surface);
}
.lang-switch:hover { border-color: var(--acorn); color: var(--acorn); }

/* ---------- breadcrumbs & hero ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.breadcrumbs a { color: var(--acorn); font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs strong { color: var(--ink-2); font-weight: 600; }
.breadcrumbs .sep { color: var(--rule-strong); }

.hero { padding: 24px 0 20px; }
.hero-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.01em;
}
.hero h1 {
  font-size: clamp(1.5rem, 5.2vw, 2.25rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero p {
  margin-top: 10px;
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 1rem;
}
.hero-center { text-align: center; padding: 40px 0 28px; }
.hero-center p { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn-row { display: flex; gap: 8px; margin-top: 20px; }
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary {
  flex: 1 1 auto;
  border: 1px solid var(--acorn);
  background: var(--acorn);
  color: #fff;
}
.btn-primary:hover { background: var(--acorn-hover); border-color: var(--acorn-hover); }
.btn-secondary {
  flex: 0 0 auto;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  color: var(--ink-2);
}
.btn-secondary:hover { border-color: var(--acorn); color: var(--acorn); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #1f1a17; } }

.entry-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 460px; margin: 24px auto 0; }
.entry-row .btn-primary, .entry-row .btn-secondary { width: 100%; }

/* ---------- calculator workspace ---------- */
.calc-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
@media (min-width: 900px) {
  .calc-workspace { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; }
  .calc-workspace > .receipt { position: sticky; top: 76px; }
}
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px;
}
@media (min-width: 720px) { .card { padding: 24px; } }
.card-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.form-group + .form-group { margin-top: 14px; }
.form-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}
.form-unit { flex: none; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.form-input, .form-textarea, .search-input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 16px; /* prevents iOS zoom */
  font-variant-numeric: tabular-nums;
  transition: border-color .15s, background-color .15s;
}
.form-input:hover, .form-textarea:hover, .search-input:hover { border-color: var(--muted); }
.form-input:focus, .form-textarea:focus, .search-input:focus {
  outline: none;
  border-color: var(--acorn);
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent);
}
.form-textarea { min-height: 160px; resize: vertical; line-height: 1.6; }

/* receipt signature */
.receipt { position: relative; padding-bottom: 28px; }
.receipt::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 10px;
  background:
    radial-gradient(circle at 6px 10px, var(--paper) 5px, transparent 5.5px) 0 0 / 12px 10px repeat-x;
}
.result-hero {
  padding: 4px 0 18px;
  border-bottom: 2px dashed var(--rule-strong);
}
.result-hero-label { font-size: 0.875rem; font-weight: 700; color: var(--ink-2); }
.result-hero-value {
  margin-top: 4px;
  font-size: clamp(1.875rem, 8vw, 2.75rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--acorn);
  overflow-wrap: anywhere;
}
.result-hero-sub { margin-top: 8px; font-size: 0.875rem; color: var(--muted); }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.metric-box { background: var(--surface); padding: 12px 14px; min-width: 0; }
.metric-box-label { font-size: 0.75rem; font-weight: 600; color: var(--muted); line-height: 1.4; }
.metric-box-val {
  margin-top: 4px;
  font-size: 1.0625rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.breakdown-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.breakdown-table td {
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
  vertical-align: top;
  color: var(--ink-2);
}
.breakdown-table tr:last-child td { border-bottom: 0; }
.breakdown-table td:last-child {
  padding-left: 12px;
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink);
}

/* ---------- content ---------- */
.content-section { margin-top: 40px; }
.section-title {
  margin-bottom: 14px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.guide-block + .guide-block { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--rule); }
.guide-block h2 { font-size: 1.125rem; font-weight: 800; line-height: 1.4; margin-bottom: 8px; letter-spacing: -0.01em; }
.guide-block p { color: var(--ink-2); max-width: 68ch; }

.faq-list { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-weight: 700; color: var(--acorn); font-size: 1.25rem; line-height: 1.2; }
.faq-item[open] summary::after { content: "−"; }
.faq-a { padding: 0 0 16px; color: var(--ink-2); max-width: 68ch; }

/* ---------- tool lists ---------- */
.hub-controls { margin: 8px 0 16px; }
.cat-tabs {
  display: flex;
  gap: 6px;
  margin: 12px calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter) 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: none;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
  cursor: pointer;
}
.cat-tab:hover { border-color: var(--acorn); color: var(--acorn); }
.cat-tab.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.tools-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
@media (min-width: 720px) { .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1000px) { .tools-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color .15s, transform .15s;
}
.tool-card[hidden] { display: none; }
.tool-card:hover { border-color: var(--acorn); }
.tool-card:active { transform: scale(0.995); }
.tool-cat-tag { font-size: 0.75rem; font-weight: 700; color: var(--amber); }
.tool-card h3 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.015em;
}
.tool-card h3::after { content: "→"; flex: none; color: var(--acorn); font-weight: 700; }
.tool-card p {
  font-size: 0.875rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 36px 0 14px;
}
.list-heading h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.list-heading a { font-size: 0.875rem; font-weight: 700; color: var(--acorn); white-space: nowrap; }
.empty-note { display: none; padding: 24px 0; color: var(--muted); text-align: center; }

/* ---------- own product / ads (rendered only when configured) ---------- */
.affiliate-section { margin-top: 32px; }
.affiliate-grid { display: grid; gap: 10px; }
.affiliate-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  background: var(--surface);
}
.affiliate-badge { font-size: 0.75rem; font-weight: 700; color: var(--amber); }
.affiliate-title { font-weight: 800; margin-top: 4px; }
.affiliate-desc { font-size: 0.875rem; color: var(--muted); margin-top: 4px; }
.affiliate-cta-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  background: var(--acorn);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
}
.ad-slot-container { margin: 24px 0; min-height: 100px; }

/* ---------- featured ---------- */
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 900px) { .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.feature-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px; min-height: 100%;
  background: var(--acorn-soft);
  border: 1px solid color-mix(in srgb, var(--acorn) 25%, transparent);
  border-radius: var(--radius);
  transition: border-color .15s, transform .15s;
}
.feature-card:hover { border-color: var(--acorn); transform: translateY(-2px); }
.feature-card h3 { font-size: 1.1875rem; font-weight: 800; line-height: 1.35; letter-spacing: -0.02em; }
.feature-card p { font-size: 0.875rem; color: var(--ink-2); flex: 1; }
.feature-cta { font-size: 0.875rem; font-weight: 800; color: var(--acorn); }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 64px;
  padding: 36px 0 40px;
  border-top: 1px solid var(--rule);
  background: var(--surface);
  font-size: 0.8125rem;
  color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
}
.footer-brand strong { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 1rem; font-weight: 800; }
.footer-brand .brand-mark { width: 20px; height: 20px; }
.footer-col h2 { font-size: 0.8125rem; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { color: var(--ink-2); font-weight: 500; }
.footer-col a:hover { color: var(--acorn); text-decoration: underline; }
.footer-brand ul { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; }
.disclaimer { margin-top: 10px; max-width: 46ch; line-height: 1.6; }
.footer-copy { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--rule); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.receipt { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* ---------- layout v2 ---------- */
:root {
  --max-w: 1240px;
}

.layout-wrapper {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding-top: 16px;
  padding-bottom: 32px;
}
.site-sidebar {
  display: none;
  width: 240px;
  flex: none;
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
}
@media (min-width: 1024px) {
  .site-sidebar {
    display: block;
  }
}
.layout-main {
  flex: 1;
  min-width: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-group-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.02em;
  padding: 0 8px 4px;
  border-bottom: 1px solid var(--rule);
}
.sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-link {
  display: block;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.35;
  transition: background-color .15s, color .15s;
}
.sidebar-link:hover {
  background: var(--sunken);
  color: var(--acorn);
}
.sidebar-link.active,
.sidebar-link[aria-current="page"] {
  background: var(--acorn-soft);
  color: var(--acorn);
  font-weight: 800;
}
.sidebar-meta-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 10px 8px 0;
  border-top: 1px solid var(--rule);
  font-size: 0.75rem;
  color: var(--muted);
}
.sidebar-meta-links a {
  color: var(--muted);
}
.sidebar-meta-links a:hover {
  color: var(--acorn);
  text-decoration: underline;
}

@media (min-width: 900px) and (max-width: 1279px) {
  .calc-workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .calc-workspace > .receipt {
    position: static;
  }
}
@media (min-width: 1280px) {
  .calc-workspace {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 24px;
  }
  .calc-workspace > .receipt {
    position: sticky;
    top: 76px;
  }
}

.header-search-wrap {
  display: none;
  position: relative;
  max-width: 360px;
  flex: 1;
  margin: 0 16px;
}
@media (min-width: 1024px) {
  .header-search-wrap {
    display: block;
  }
}
.header-search-input {
  width: 100%;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.875rem;
  color: var(--ink);
  transition: border-color .15s, background-color .15s;
}
.header-search-input:focus {
  outline: none;
  border-color: var(--acorn);
  background: var(--surface);
}
.header-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  z-index: 50;
  max-height: 360px;
  overflow-y: auto;
}
.header-search-dropdown[hidden] {
  display: none;
}
.header-search-list {
  list-style: none;
  padding: 4px 0;
}
.header-search-item a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 14px;
  font-size: 0.8125rem;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
}
.header-search-item:last-child a {
  border-bottom: 0;
}
.header-search-item a:hover,
.header-search-item.highlighted a {
  background: var(--acorn-soft);
  color: var(--acorn);
}
.header-search-cat {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--amber);
}
.header-search-title {
  font-weight: 700;
  color: var(--ink);
}

.drawer-trigger-btn {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink-2);
  background: var(--surface);
  cursor: pointer;
}
.drawer-trigger-btn:hover {
  border-color: var(--acorn);
  color: var(--acorn);
}
@media (min-width: 1024px) {
  .drawer-trigger-btn {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-inner { gap: 8px; }
  .brand-logo { font-size: 1.0625rem; gap: 6px; }
  .nav-actions { gap: 6px; }
  .lang-switch, .drawer-trigger-btn { height: 32px; padding: 0 9px; font-size: 0.75rem; }
}

body.drawer-open {
  overflow: hidden;
}
.calc-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
}
.calc-drawer[hidden] {
  display: none;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(320px, 86vw);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  z-index: 1;
  border-right: 1px solid var(--rule);
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid var(--rule);
  flex: none;
}
.drawer-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
}
.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}
.drawer-search-wrap {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  flex: none;
}
.drawer-search-wrap .search-input {
  min-height: 40px;
  font-size: 0.875rem;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.main-intro {
  margin: 8px 0 14px;
}
.main-intro-title {
  font-size: clamp(1.25rem, 3.8vw, 1.5rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.mobile-only-controls {
  display: block;
}
@media (min-width: 1024px) {
  .mobile-only-controls {
    display: none;
  }
}
.first-heading {
  margin-top: 14px;
}
.cat-section {
  margin-top: 24px;
}
.cat-section[hidden] {
  display: none;
}
