:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --surface-alt: #f0f3f1;
  --ink: #131a17;
  --ink-muted: #4a5751;
  --ink-soft: #6a7871;
  --border: #dfe5e1;
  --border-strong: #c5cfc9;
  --accent: #0f4c45;
  --accent-hover: #0a3631;
  --accent-soft: #ebf4f2;
  --accent-border: #b3d4ce;
  --amber: #b87314;
  --amber-soft: #fdf6ea;
  --amber-border: #ebd1a7;
  --cap-tint: #2f7a6d;
  --radius: 12px;
  --radius-sm: 8px;
  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select {
  font-family: inherit;
}

.num {
  font-variant-numeric: tabular-nums;
}

.dvc-wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Mode visibility */
[data-calc-type="drip"] .only-compound {
  display: none !important;
}

[data-calc-type="compound"] .only-drip {
  display: none !important;
}

[data-goal-mode="income"] .only-goal-corpus {
  display: none !important;
}

[data-goal-mode="corpus"] .only-goal-income {
  display: none !important;
}

/* Top Navigation */
.dvc-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.dvc-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 12px;
}

.dvc-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.dvc-brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.dvc-brand-mark {
  color: var(--accent);
  flex-shrink: 0;
}

.dvc-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dvc-nav-link {
  color: var(--ink-muted);
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dvc-nav-link:hover {
  background: var(--surface-alt);
  color: var(--ink);
  text-decoration: none;
}

/* Hero */
.dvc-hero {
  padding: 28px 0 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.dvc-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 11px;
}

.dvc-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(23px, 3vw, 33px);
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-weight: 700;
}

.dvc-lead {
  margin: 0;
  max-width: 760px;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Workspace Section */
.dvc-workspace-section {
  padding: 22px 0 14px;
}

.dvc-app {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Primary 3 Tabs */
.dvc-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dvc-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 2px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.dvc-tab:hover {
  border-color: var(--border-strong);
  background: var(--surface-alt);
}

.dvc-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 76, 69, 0.16);
}

.dvc-tab-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.dvc-tab-sub {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.35;
}

.dvc-tab.is-active .dvc-tab-sub {
  color: rgba(255, 255, 255, 0.8);
}

/* Main Panel */
.dvc-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.dvc-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 24px;
  align-items: start;
}

/* Form Column */
.dvc-form-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.dvc-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.dvc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.dvc-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.dvc-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.dvc-unit-hint {
  font-size: 11.5px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}

.dvc-form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dvc-form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dvc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dvc-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 76, 69, 0.12);
}

.dvc-input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 9px 11px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
}

.dvc-input-wrap.is-suffix .dvc-input {
  padding-right: 6px;
}

.dvc-input-wrap.is-prefix .dvc-input {
  padding-left: 4px;
}

.dvc-unit {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0 10px;
  flex-shrink: 0;
  user-select: none;
}

.dvc-input-wrap.is-prefix .dvc-unit {
  padding-right: 4px;
}

.dvc-input-wrap.is-suffix .dvc-unit {
  padding-left: 4px;
}

.dvc-select {
  width: 100%;
  padding: 9px 11px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  outline: none;
}

.dvc-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 76, 69, 0.12);
}

/* Segmented Controls */
.dvc-seg {
  display: grid;
  gap: 4px;
  padding: 4px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.dvc-seg-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dvc-seg-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dvc-goal-subtabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  max-width: 560px;
}

.dvc-seg-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-align: center;
  line-height: 1.3;
}

.dvc-seg-btn:hover {
  color: var(--ink);
}

.dvc-seg-btn.is-active {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--border);
  box-shadow: 0 1px 3px rgba(19, 26, 23, 0.06);
}

/* Quick Chips */
.dvc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.dvc-chip {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dvc-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.dvc-chip.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* Toggle Switch Card */
.dvc-toggle-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 12px;
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
}

.dvc-toggle-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.dvc-toggle-track {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--border-strong);
  flex-shrink: 0;
  margin-top: 2px;
  transition: background-color 0.18s ease;
}

.dvc-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease;
}

.dvc-toggle-card input:checked + .dvc-toggle-track {
  background: var(--accent);
}

.dvc-toggle-card input:checked + .dvc-toggle-track::after {
  transform: translateX(16px);
}

.dvc-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dvc-toggle-copy strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.dvc-toggle-copy small {
  font-size: 11.5px;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* Optional Goal Box */
.dvc-optional-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.dvc-optional-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.01em;
}

/* Right Column: Results */
.dvc-result-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.dvc-hero-card {
  background: linear-gradient(150deg, #0d3f39 0%, #132824 100%);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dvc-hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 14px;
  align-items: end;
}

.dvc-hero-main,
.dvc-hero-side {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.dvc-hero-side {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.dvc-kicker {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.74);
  letter-spacing: 0.01em;
}

.dvc-big-num {
  font-size: clamp(24px, 2.8vw, 31px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
  word-break: break-word;
}

.dvc-compact-num {
  font-size: 13px;
  font-weight: 600;
  color: #f3c677;
}

.dvc-mid-num {
  font-size: clamp(19px, 2.1vw, 23px);
  font-weight: 700;
  line-height: 1.2;
  color: #f3c677;
  word-break: break-word;
}

.dvc-hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.dvc-hero-metrics-2x2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dvc-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dvc-metric span {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
}

.dvc-metric strong {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

/* Composition Breakdown */
.dvc-comp-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dvc-comp-bar {
  display: flex;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--border);
  gap: 2px;
}

.dvc-bar-principal {
  background: var(--accent);
  height: 100%;
  transition: width 0.25s ease;
}

.dvc-bar-div {
  background: var(--amber);
  height: 100%;
  transition: width 0.25s ease;
}

.dvc-bar-cap {
  background: var(--cap-tint);
  height: 100%;
  transition: width 0.25s ease;
}

.dvc-comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.dvc-comp-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dvc-comp-lbl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.dvc-comp-item strong {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.dvc-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

.dvc-dot-principal {
  background: var(--accent);
}

.dvc-dot-div {
  background: var(--amber);
}

.dvc-dot-cap {
  background: var(--cap-tint);
}

/* DRIP Comparison Banner */
.dvc-drip-banner {
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dvc-drip-banner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.dvc-drip-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #7c4b08;
}

.dvc-drip-bonus-pill {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: var(--amber);
  padding: 2px 9px;
  border-radius: 999px;
}

.dvc-drip-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dvc-drip-compare-grid small {
  display: block;
  font-size: 11px;
  color: #7c5c2d;
  margin-bottom: 2px;
}

.dvc-drip-compare-grid strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

/* SVG Chart Card */
.dvc-chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.dvc-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.dvc-chart-head h3 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.dvc-chart-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.dvc-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dvc-chart-wrap {
  width: 100%;
  overflow: hidden;
}

.dvc-chart-svg {
  width: 100%;
  height: auto;
}

/* Schedule Block inside Panel */
.dvc-schedule-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.dvc-subhead {
  margin-bottom: 12px;
}

.dvc-subhead h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.dvc-accent-val {
  color: var(--accent);
  font-weight: 600;
}

.dvc-amber-val {
  color: var(--amber);
  font-weight: 700;
}

/* AdSense Bands */
.dvc-ad-band {
  padding: 0;
}

.dvc-ad-box {
  min-height: 0;
  overflow: hidden;
  text-align: center;
}

.dvc-ad-box:has(ins:not([data-ad-status="unfilled"])) {
  margin: 12px 0 8px;
}

.dvc-ad-box ins[data-ad-status="unfilled"] {
  display: none !important;
}

/* Content Sections */
.dvc-section {
  padding: 38px 0;
}

.dvc-section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.dvc-section-head {
  margin-bottom: 20px;
}

.dvc-section-head h2 {
  margin: 0 0 7px;
  font-size: clamp(19px, 2.3vw, 23px);
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 700;
}

.dvc-section-head p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 760px;
  font-size: 14.5px;
}

/* Tables */
.dvc-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.dvc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.dvc-table th,
.dvc-table td {
  padding: 11px 13px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.dvc-table th.num,
.dvc-table td.num {
  text-align: right;
}

.dvc-table th {
  background: var(--surface-alt);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

.dvc-table tbody tr:last-child td {
  border-bottom: none;
}

.dvc-table tbody tr:hover td {
  background: var(--bg);
}

/* Formula Cards */
.dvc-formula-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dvc-formula-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dvc-formula-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dvc-formula-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

.dvc-formula-card h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.dvc-formula-eq {
  padding: 9px 12px;
  background: var(--bg);
  border-left: 3px solid var(--amber);
  border-radius: 4px;
  overflow-x: auto;
}

.dvc-formula-eq code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.dvc-formula-card p {
  margin: 0;
  font-size: 13.8px;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* FAQ Accordion */
.dvc-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 880px;
}

.dvc-faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

.dvc-faq-item summary {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dvc-faq-item summary::-webkit-details-marker {
  display: none;
}

.dvc-faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}

.dvc-faq-item[open] summary::after {
  content: '−';
}

.dvc-faq-item p {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* Related Calculators Grid */
.dvc-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dvc-related-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.dvc-related-card:hover {
  text-decoration: none;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 76, 69, 0.08);
}

.dvc-related-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: 4px;
}

.dvc-related-card strong {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.dvc-related-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Workspace Inline Notice */
.dvc-calc-notice {
  margin: 10px 2px 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Legal Disclaimer Box */
.dvc-disclaimer-band {
  padding: 0 0 36px;
}

.dvc-disclaimer-box {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.68;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.dvc-disclaimer-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.dvc-disclaimer-head svg {
  color: var(--accent);
  flex-shrink: 0;
}

.dvc-disclaimer-box p {
  margin: 0 0 8px;
}

.dvc-disclaimer-box p:last-child {
  margin-bottom: 0;
}

/* Footer */
.dvc-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 24px 0;
}

.dvc-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-soft);
}

.dvc-footer p {
  margin: 0;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .dvc-grid {
    grid-template-columns: 1fr;
  }

  .dvc-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .dvc-wrap {
    padding: 0 14px;
  }

  .dvc-hero {
    padding: 20px 0 16px;
  }

  .dvc-tabs {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .dvc-tab {
    padding: 11px 14px;
  }

  .dvc-panel {
    padding: 14px;
  }

  .dvc-form-row-2,
  .dvc-form-row-3 {
    grid-template-columns: 1fr;
  }

  .dvc-seg-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dvc-goal-subtabs {
    grid-template-columns: 1fr;
  }

  .dvc-hero-top {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dvc-hero-side {
    padding-left: 0;
    padding-top: 12px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .dvc-drip-compare-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .dvc-formula-grid,
  .dvc-related-grid {
    grid-template-columns: 1fr;
  }

  .dvc-disclaimer-band {
    padding: 0 0 28px;
  }

  .dvc-disclaimer-box {
    padding: 14px 16px;
    font-size: 12.5px;
  }

  /* Responsive Card-Stack Tables — Zero Horizontal Overflow on 375px */
  .dvc-table-wrap {
    background: transparent;
    border: none;
  }

  .dvc-table thead {
    display: none;
  }

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

  .dvc-table tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    padding: 4px 12px;
  }

  .dvc-table td,
  .dvc-table td.num {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    text-align: right;
    font-size: 13px;
  }

  .dvc-table td:last-child {
    border-bottom: none;
  }

  .dvc-table td::before {
    content: attr(data-label);
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
    text-align: left;
    flex-shrink: 0;
  }
}
