:root {
  color-scheme: light;
  --ink: #10263f;
  --muted: #53677a;
  --line: #d7e0e5;
  --paper: #ffffff;
  --wash: #f3f6f7;
  --canvas: #edf2f5;
  --navy: #0b2744;
  --blue: #0d5c91;
  --blue-strong: #084a79;
  --cyan: #087f83;
  --mint: #e1f3f0;
  --red: #c94343;
  --amber: #f59e0b;
  --shadow: 0 14px 38px rgba(15, 35, 65, .08);
  --radius: 10px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--wash);
}

html.dark {
  color-scheme: dark;
  background: #0a2035;
}

body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
  line-height: 1.65;
}

.dark body {
  --ink: #eff7ff;
  --muted: #aebed1;
  --line: #2a4053;
  --paper: #0e263d;
  --wash: #0a2035;
  --canvas: #071a2d;
  --navy: #061629;
  --blue: #73b7e8;
  --blue-strong: #9bcff2;
  --cyan: #74cfca;
  --mint: #143b3d;
  --red: #ff8585;
  --shadow: 0 14px 38px rgba(0, 0, 0, .24);
  background: var(--canvas);
}

a { color: var(--blue-strong); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 999;
  padding: .65rem 1rem;
  color: #fff;
  background: var(--navy);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.container {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
}

.dark .site-header {
  border-color: var(--line);
  background: rgba(7, 26, 45, .96);
}

html:not(.dark) body .site-header {
  border-color: rgba(213, 230, 241, .16);
  background: rgba(7, 28, 49, .98);
}

html:not(.dark) body .site-header .brand,
html:not(.dark) body .site-header .nav-links a,
html:not(.dark) body .site-header .icon-button { color: #f4f8fb; }
html:not(.dark) body .site-header .brand-symbol__field { fill: #164568; }
html:not(.dark) body .site-header .icon-button { border-color: rgba(220, 234, 243, .24); background: rgba(255, 255, 255, .04); }
html:not(.dark) body .site-header .icon-button:hover,
html:not(.dark) body .site-header .icon-button:focus-visible { border-color: #8ddbd6; background: rgba(141, 219, 214, .08); }

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  color: var(--ink);
  font-size: 1.07rem;
  letter-spacing: -.035em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-symbol { width: 40px; height: 40px; flex: 0 0 auto; overflow: visible; }
.brand-symbol__field { fill: var(--navy); }
.brand-symbol__fold { fill: var(--red); }
.brand-symbol__u { fill: none; stroke: #8ddbd6; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.brand-symbol__tick { fill: none; stroke: #fff; stroke-width: 3.3; stroke-linecap: round; }
.brand-wordmark { display: inline-flex; align-items: baseline; }
.brand-wordmark strong { font-weight: 900; }
.brand-wordmark span { font-weight: 650; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  padding: 1.35rem 0;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 750;
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: .95rem;
  left: 0;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after { transform: scaleX(1); }

.nav-actions { display: flex; gap: .45rem; }

.icon-button {
  min-width: 38px;
  min-height: 38px;
  padding: .35rem .6rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible { border-color: var(--blue); outline: none; }

.mobile-menu { display: none; }

.hero {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.5rem) 0 2.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
}

html:not(.dark) body .hero {
  border-bottom-color: #173c5b;
  background: #102d48;
}

html:not(.dark) body .hero h1,
html:not(.dark) body .hero .current-value strong { color: #f7fbff; }
html:not(.dark) body .hero .eyebrow { color: #8ddbd6; }
html:not(.dark) body .hero .lead,
html:not(.dark) body .hero .current-value small,
html:not(.dark) body .hero .current-value span,
html:not(.dark) body .hero .source-line { color: #bfd0dc; }
html:not(.dark) body .hero .source-line a { color: #dff8f5; }
html:not(.dark) body .hero .calculator-shell {
  border-color: #c8d6df;
  border-top-color: #2e78ab;
  box-shadow: 0 22px 48px rgba(3, 17, 30, .28);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, .78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.hero h1 {
  max-width: 470px;
  margin-bottom: .8rem;
  font-size: clamp(2.6rem, 4vw, 3.55rem);
}

.hero .lead { max-width: 500px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .8rem;
  color: var(--blue-strong);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.1;
  letter-spacing: -.04em;
}

h1 {
  max-width: 700px;
  margin-bottom: 1rem;
  font-size: clamp(2.35rem, 4.8vw, 4rem);
}

h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); }
h3 { font-size: 1.2rem; }

.lead {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.current-value {
  margin: 1.25rem 0 .8rem;
  padding: .2rem 0 .2rem 1.15rem;
  border-left: 3px solid var(--cyan);
}

.current-value small {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.current-value strong {
  display: block;
  margin: .15rem 0;
  font-size: clamp(2.4rem, 4vw, 3.55rem);
  line-height: 1;
  letter-spacing: -.06em;
}

.current-value span { color: var(--muted); font-size: .92rem; }

.source-line {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin-top: .75rem;
  color: var(--muted);
  font-size: .82rem;
}

.source-line a { font-weight: 750; }

.calculator-shell {
  position: relative;
  padding: clamp(1.05rem, 2vw, 1.35rem);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.calculator-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.calculator-top h2 {
  margin-bottom: .3rem;
  font-size: 1.3rem;
}

.calculator-top p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem 0;
  border: 0;
  border-radius: 0;
  color: var(--cyan);
  background: transparent;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .06em;
  white-space: nowrap;
  text-transform: uppercase;
}

.live-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: status-pulse 2.4s ease-out infinite;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}

.converter-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
  gap: .55rem;
  align-items: end;
}

.converter-fields .field-utm { order: 1; }
.converter-fields .swap-button { order: 2; }
.converter-fields .field-clp { order: 3; }
[data-direction="clp"] .converter-fields .field-clp { order: 1; }
[data-direction="clp"] .converter-fields .field-utm { order: 3; }

.swap-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 54px;
  margin-bottom: 0;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  color: var(--blue-strong);
  background: var(--wash);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.swap-button:hover,
.swap-button:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(9, 105, 218, 0.12);
  outline: none;
}

.swap-button svg {
  width: 20px;
  height: 20px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.swap-button:hover svg,
.swap-button:focus-visible svg {
  transform: rotate(180deg);
}

.swap-button:active svg {
  transform: rotate(180deg) scale(0.85);
}

.converter-help {
  min-height: 1.35rem;
  margin: .55rem 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.field { min-width: 0; }

.field label {
  display: block;
  margin-bottom: .38rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.control {
  position: relative;
  display: flex;
  align-items: center;
}

.control input,
.control select {
  width: 100%;
  min-height: 54px;
  padding: .75rem 3.4rem .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--wash);
  font-size: 1.1rem;
  font-weight: 800;
  outline: none;
}

.control select { padding-right: .8rem; font-size: .95rem; }

.control input:focus,
.control select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(9, 105, 218, .12);
}

.control input[aria-invalid="true"] {
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, .12);
}

.field-error {
  display: block;
  min-height: 1.2rem;
  margin-top: .3rem;
  color: #b42318;
  font-size: .74rem;
  line-height: 1.35;
}

.field-error:empty { min-height: 0; margin-top: 0; }
.dark .field-error { color: #ff9b91; }

.unit {
  position: absolute;
  right: .8rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  pointer-events: none;
}

.quick-values {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .65rem 0 .8rem;
}

.chip {
  min-height: 38px;
  padding: .4rem .75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
  font-size: .85rem;
  font-weight: 800;
  cursor: pointer;
}

.chip:hover, .chip.active {
  border-color: var(--blue);
  color: var(--blue-strong);
  background: rgba(9, 105, 218, .06);
}

.result-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1rem;
  align-items: end;
  margin-top: .75rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: 7px;
  background: var(--wash);
}

.result-panel small {
  display: block;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.result-panel small,
.result-panel output,
.result-panel .result-note { grid-column: 1; }

.result-panel output,
.result-value {
  display: block;
  margin-top: .1rem;
  color: var(--ink);
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 900;
  letter-spacing: -.035em;
}

.result-note {
  display: block;
  margin-top: .35rem;
  color: var(--muted);
  font-size: .82rem;
}

.result-actions {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 0;
}

.result-panel.is-updating output { animation: result-refresh .28s ease-out; }

.workbench-entry {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--line);
  background: var(--wash);
}

.workbench-entry .section-heading { margin-bottom: 1.35rem; }

.workbench-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.workbench-entry-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--cyan);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
}

.workbench-entry-card:hover,
.workbench-entry-card:focus-visible { border-color: var(--blue); outline: none; }
.workbench-entry-card > span { color: var(--cyan); font-size: .73rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.workbench-entry-card h3 { margin: .55rem 0 .45rem; font-size: 1.35rem; }
.workbench-entry-card p { margin: 0 0 1rem; color: var(--muted); }
.workbench-entry-card strong { color: var(--blue-strong); font-size: .88rem; }

.workbench-page { background: var(--wash); }
.workbench-page .calculator-shell { position: static; }
.workbench-editorial { margin-top: 3.5rem; }

.calculator-shell--inheritance + .workbench-editorial {
  width: min(1080px, 100%);
  margin-inline: auto;
}

.calculator-shell--inheritance + .workbench-editorial .prose { max-width: none; }

.calculator-shell--document,
.calculator-shell--worksheet { padding: clamp(1.2rem, 2.5vw, 2rem); }

.document-workspace {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.document-form { display: grid; gap: 1rem; }
.document-form .field-grid { grid-template-columns: 1fr .75fr .9fr; }
.field-hint { display: block; margin-top: .35rem; color: var(--muted); font-size: .73rem; }

.document-guidance {
  padding: .85rem 1rem;
  border-left: 3px solid var(--cyan);
  color: var(--muted);
  background: var(--wash);
  font-size: .84rem;
}

.document-guidance strong { color: var(--ink); }

.receipt {
  padding: 1.35rem;
  border: 1px solid #c8d5df;
  border-top: 4px solid #0b5d8d;
  border-radius: 8px;
  color: #10213b;
  background: #fff;
  box-shadow: 0 12px 30px rgba(11, 39, 68, .09);
}

.receipt.is-unavailable { border-top-color: #a95f00; }
.receipt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #d9e2e9; }
.receipt-head h3 { margin: .25rem 0 0; font-size: 1.35rem; }
.receipt-kicker { color: #436078; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.receipt-badge { padding: .28rem .5rem; border: 1px solid #7fcac6; color: #126c70; font-size: .66rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.receipt-label { margin: 1rem 0 .45rem; color: #526b80; font-size: .78rem; font-weight: 800; }
.receipt-result { padding: .85rem 0 1rem; }
.receipt-result span { display: block; color: #526b80; font-size: .73rem; font-weight: 800; text-transform: uppercase; }
.receipt-result strong { display: block; margin-top: .1rem; font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -.045em; }
.receipt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; }
.receipt-grid div { padding: .7rem; background: #f2f6f8; }
.receipt-grid dt { color: #597083; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.receipt-grid dd { margin: .2rem 0 0; font-weight: 850; }
.receipt-formula { margin-top: .8rem; padding: .75rem; border: 1px solid #d9e2e9; }
.receipt-formula span,
.receipt-source > span { display: block; color: #597083; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.receipt-formula code { display: block; margin-top: .3rem; color: #10213b; font-family: inherit; font-weight: 800; white-space: normal; }
.receipt-source { margin-top: .85rem; }
.receipt-source a { display: inline-block; margin-top: .2rem; color: #075f9e; font-weight: 800; }
.receipt-source small { display: block; margin-top: .25rem; color: #597083; }
.receipt-disclaimer { margin: .9rem 0 0; padding-top: .75rem; border-top: 1px solid #d9e2e9; color: #526b80; font-size: .72rem; }

.workbench-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.privacy-note { margin: .7rem 0 0; color: var(--muted); font-size: .75rem; }

.worksheet-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.worksheet-toolbar p { max-width: 680px; margin: 0; color: var(--muted); }
.worksheet { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); }
.worksheet-header,
.worksheet-row-fields { display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(120px, .7fr) minmax(100px, .55fr) minmax(120px, .75fr) 72px; gap: .65rem; align-items: end; }
.worksheet-header { padding: .65rem 1rem; color: var(--muted); background: var(--wash); font-size: .7rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.worksheet-row { padding: 1rem; border-top: 1px solid var(--line); }
.worksheet-row:first-child { border-top: 0; }
.worksheet-row.is-unavailable { background: rgba(169, 95, 0, .06); }
.worksheet-row .field label { font-size: .68rem; }
.worksheet-row .control input,
.worksheet-row .control select { min-height: 46px; padding-top: .55rem; padding-bottom: .55rem; font-size: .88rem; }
.worksheet-remove { min-height: 46px; padding: .4rem .55rem; border: 1px solid var(--line); border-radius: 6px; color: #a12b24; background: var(--paper); font-size: .72rem; font-weight: 800; cursor: pointer; }
.worksheet-remove:hover,
.worksheet-remove:focus-visible { border-color: #a12b24; outline: none; }
.worksheet-row-result { display: flex; justify-content: space-between; gap: 1rem; margin-top: .55rem; color: var(--muted); font-size: .78rem; }
.worksheet-row-result strong { color: var(--ink); text-align: right; }
.worksheet-total { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem; border-top: 2px solid var(--blue); background: var(--wash); }
.worksheet-total > span:last-child { font-size: 1.1rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .62rem 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { color: #fff; background: var(--blue-strong); }

.button.secondary {
  border-color: var(--line);
  color: var(--ink);
  background: var(--paper);
}

.button.secondary:hover { border-color: var(--blue); color: var(--blue-strong); }

.trust-strip {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  background: #e5ecf0;
}

.dark .trust-strip { background: var(--canvas); }

.trust-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.trust-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .7rem;
  align-items: start;
  padding: .15rem 1.15rem;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}

.trust-item:first-child { padding-left: 0; border-left: 0; }

.trust-item strong { display: block; color: var(--ink); }

.trust-number {
  display: block;
  width: auto;
  height: auto;
  padding-top: .1rem;
  color: var(--blue-strong);
  background: transparent;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.data-center {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.data-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.5rem;
  border-block: 1px solid var(--line);
}

.data-summary-card {
  min-width: 0;
  padding: 1.2rem 1.35rem;
  border-left: 1px solid var(--line);
}

.data-summary-card:first-child { padding-left: 0; border-left: 0; }
.data-summary-card span,
.data-summary-card small { display: block; color: var(--muted); }
.data-summary-card span { margin-bottom: .35rem; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.data-summary-card strong { display: block; margin-bottom: .2rem; color: var(--ink); font-size: clamp(1.45rem, 3vw, 2.15rem); letter-spacing: -.04em; }
.data-summary-card small { font-size: .78rem; }

.official-data-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .75fr);
  gap: 1rem;
  align-items: stretch;
}

.data-panel {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 8px;
  background: var(--canvas);
}

.data-panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.data-panel-heading span { color: var(--muted); font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.data-panel-heading h3 { margin: .25rem 0 0; }
.data-panel-heading a { flex: 0 0 auto; font-size: .78rem; font-weight: 800; }
.data-panel--calculator { padding: 0; }
.data-panel--calculator .calculator-shell { height: 100%; border: 0; border-radius: 4px; box-shadow: none; }
.data-panel--calculator .result-panel { grid-template-columns: minmax(0, 1fr); align-items: start; }
.data-panel--calculator .result-actions {
  grid-column: 1;
  grid-row: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin-top: .85rem;
}
.data-panel--calculator .result-actions .button { min-width: 0; padding-inline: .45rem; font-size: .82rem; }

.utm-chart { margin: .65rem 0 0; }
.chart-scale { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1rem; margin: .9rem 0 .15rem; color: var(--muted); font-size: .72rem; }
.chart-scale span { display: inline-flex; gap: .35rem; align-items: baseline; }
.chart-scale strong { color: var(--ink); font-size: .86rem; }
.utm-chart svg { display: block; width: 100%; height: auto; overflow: hidden; }
.utm-chart figcaption { margin-top: .35rem; color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
.chart-gridline { stroke: var(--line); stroke-width: 1; }
.chart-line { fill: none; stroke: var(--cyan); stroke-linecap: round; stroke-linejoin: round; stroke-width: 5; }
.chart-point text { fill: var(--muted); font-family: inherit; font-size: 19px; font-weight: 750; }
.chart-point circle { fill: var(--blue); stroke: var(--paper); stroke-width: 4; }
.chart-point.is-future circle { fill: var(--paper); stroke: var(--cyan); stroke-dasharray: 4 3; }

.utm-chart.motion-ready .chart-line { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.utm-chart.motion-ready .chart-point { opacity: 0; }
.utm-chart.motion-ready.is-visible .chart-line { animation: chart-draw 1.25s cubic-bezier(.22, .8, .32, 1) forwards; }
.utm-chart.motion-ready.is-visible .chart-point { animation: chart-point-in .38s ease-out forwards; animation-delay: calc(.16s + var(--point-index, 0) * .075s); }
.utm-chart.is-visible .chart-point.is-future circle { animation: forecast-pulse 2.8s ease-in-out 1.4s infinite; }

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(8, 127, 131, .38); }
  68%, 100% { box-shadow: 0 0 0 8px rgba(8, 127, 131, 0); }
}

@keyframes result-refresh {
  from { opacity: .45; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}

@keyframes chart-draw { to { stroke-dashoffset: 0; } }
@keyframes chart-point-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

@keyframes forecast-pulse {
  0%, 100% { opacity: .72; }
  50% { opacity: 1; }
}

.official-table-disclosure {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--canvas);
}

.official-table-disclosure summary { padding: 1rem 1.15rem; color: var(--ink); font-weight: 850; cursor: pointer; }
.official-table-disclosure[open] summary { border-bottom: 1px solid var(--line); }
.official-table-disclosure .table-wrap { margin: 0; }
.official-table-disclosure table { min-width: 650px; }
.period-status { display: inline-flex; padding: .22rem .45rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .68rem; font-weight: 850; }
.period-status.is-next { border-color: var(--cyan); color: var(--cyan-strong); }

.data-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.2rem;
  margin-top: 1rem;
}

.data-shortcuts a { font-size: .82rem; font-weight: 800; }

.section {
  padding: clamp(3.25rem, 6vw, 5.25rem) 0;
}

.section.alt {
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.dark .section.alt { background: var(--paper); }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-heading h2 { max-width: 700px; margin-bottom: .5rem; }
.section-heading p { max-width: 650px; margin: 0; color: var(--muted); }

.text-link { font-weight: 850; white-space: nowrap; }

.task-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.task-card,
.guide-card {
  position: relative;
  display: flex;
  min-height: 190px;
  flex-direction: column;
  padding: 1.45rem 1.6rem;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
}

.task-card:first-child,
.guide-card:first-child { border-left: 0; }

.task-card:hover,
.guide-card:hover { background: var(--wash); box-shadow: none; }
.task-card > span,
.guide-label { margin-bottom: 1rem; color: var(--blue-strong); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.task-card h3,
.guide-card h3 { margin-bottom: .6rem; }
.task-card p,
.guide-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.guide-card .card-link { margin-top: auto; padding-top: 1rem; color: var(--blue-strong); font-size: .86rem; font-weight: 900; }

.subsection-heading { margin: 3rem 0 1.25rem; }
.subsection-heading h2 { margin-bottom: .35rem; font-size: clamp(1.5rem, 3vw, 2.15rem); }
.subsection-heading p { margin: 0; color: var(--muted); }
.calculator-group { padding-top: 1rem; scroll-margin-top: 80px; }
.calculator-group + .calculator-group { margin-top: 4rem; }
.directory-intro { margin-bottom: 3rem; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.4rem;
  border-top: 1px solid var(--line);
}

.tool-card {
  position: relative;
  display: flex;
  min-height: 180px;
  flex-direction: column;
  padding: 1.5rem .25rem 1.6rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.tool-card:hover {
  transform: none;
  border-color: var(--cyan);
  box-shadow: none;
}

.tool-index {
  display: block;
  margin-bottom: 1rem;
  color: var(--blue-strong);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.tool-card h3 { margin-bottom: .55rem; }
.tool-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.tool-card .card-link { margin-top: auto; padding-top: 1.3rem; color: var(--blue-strong); font-size: .86rem; font-weight: 900; }

.tool-card.upcoming {
  opacity: .72;
  pointer-events: none;
}

.tool-card.upcoming::after {
  content: "En preparación";
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.prose { min-width: 0; max-width: 760px; }
.prose h2 { margin-top: 2.8rem; font-size: clamp(1.6rem, 3vw, 2.35rem); }
.prose h3 { margin-top: 2rem; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); }
.prose code { white-space: normal; }

.formula-box,
.source-card {
  margin: 1rem 0 1.6rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
}

.formula-box { border-left: 4px solid var(--blue); }
.formula-box code { color: var(--ink); font-family: inherit; font-weight: 850; }
.source-card { margin-top: 2.25rem; }
.source-card p { margin: .35rem 0 0; }
.step-list { padding-left: 1.4rem; counter-reset: guide-step; }
.step-list li + li,
.caution-list li + li { margin-top: .65rem; }
.review-card { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.review-card strong,
.review-card span,
.review-card a { display: block; }
.review-card span { margin: .2rem 0 .55rem; color: var(--muted); font-size: .8rem; }

.answer-box {
  margin: 1.4rem 0 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  background: var(--mint);
}

.answer-box p { margin: 0; color: var(--ink); }

.sidebar-card {
  position: sticky;
  top: 92px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
}

.sidebar-card h2 { font-size: 1.1rem; }
.sidebar-card ul { margin: 0; padding-left: 1.2rem; }
.sidebar-card li + li { margin-top: .55rem; }
.sidebar-card a { font-size: .88rem; font-weight: 750; }

.page-hero {
  padding: clamp(1.5rem, 2.5vw, 2rem) 0 1.75rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.page-hero h1 { max-width: 850px; font-size: clamp(2.2rem, 4.5vw, 3.75rem); }
.page-hero .lead { max-width: 780px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: .8rem;
}

.breadcrumb a { font-weight: 750; }

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.tool-layout .calculator-shell { position: sticky; top: 92px; }

.notice {
  margin: 1rem 0;
  padding: .9rem 1rem;
  border: 1px solid rgba(245, 158, 11, .35);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(245, 158, 11, .08);
  font-size: .85rem;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
}

th, td {
  padding: .75rem .85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  background: var(--wash);
  font-size: .74rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

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

.faq-list {
  display: grid;
  gap: .65rem;
  margin-top: 1rem;
}

.faq-list details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
}

.faq-list summary {
  position: relative;
  padding: .9rem 3rem .9rem 1rem;
  color: var(--ink);
  font-size: .96rem;
  font-weight: 800;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1rem;
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue-strong);
  font-size: 1rem;
  line-height: 1;
  place-items: center;
  transform: translateY(-50%);
}

.faq-list details[open] summary {
  border-bottom: 1px solid var(--line);
  color: var(--blue-strong);
  background: var(--wash);
}

.faq-list details[open] summary::after { content: "−"; }

.faq-list details p {
  margin: 0;
  padding: .9rem 1rem 1rem;
  color: var(--muted);
  font-size: .92rem;
}

.year-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .7rem; }
.year-card { display: flex; flex-direction: column; padding: .9rem; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--paper); text-decoration: none; }
.year-card:hover { border-color: var(--blue); }
.year-card strong { font-size: 1.05rem; }
.year-card span { color: var(--muted); font-size: .72rem; }

.site-footer {
  padding: 3.2rem 0 1.5rem;
  color: #c4d2e2;
  background: var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}

.footer-brand { color: #fff; }
.footer-brand .brand-symbol__field { fill: #f5f8fa; }
.footer-brand .brand-symbol__fold { fill: #e05a5a; }
.footer-brand .brand-symbol__u { stroke: #087f83; }
.footer-brand .brand-symbol__tick { stroke: #0b2744; }
.footer-copy { max-width: 360px; color: #9fb0c4; font-size: .86rem; }
.footer-column h2 { margin-bottom: .8rem; color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-column a { display: block; margin: .45rem 0; color: #c4d2e2; font-size: .84rem; text-decoration: none; }
.footer-column a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #8ea1b6;
  font-size: .76rem;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 1rem;
  bottom: 1rem;
  max-width: min(360px, calc(100% - 2rem));
  padding: .75rem 1rem;
  border-radius: 10px;
  color: #fff;
  background: var(--navy);
  box-shadow: var(--shadow);
  transform: translateY(130%);
  transition: transform .22s ease;
}

.toast.show { transform: none; }

@media (max-width: 900px) {
  .hero-grid,
  .tool-layout,
  .content-grid { grid-template-columns: minmax(0, 1fr); }

  .tools-grid,
  .task-grid,
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .year-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .trust-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-layout .calculator-shell, .sidebar-card { position: static; }
  .tool-layout > .calculator-shell { order: -1; }

  .mobile-menu { display: inline-block; }
  .nav-links {
    position: absolute;
    top: 68px;
    right: 1rem;
    left: 1rem;
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  html:not(.dark) body .nav-links { border-color: #254a68; background: #0b2744; }

  .nav-links.open { display: flex; }
  .nav-links a { padding: .55rem 0; }
  .nav-links a::after { bottom: .25rem; }
  .nav-actions { margin-left: auto; }
  .document-workspace { grid-template-columns: 1fr; }
  .official-data-grid { grid-template-columns: 1fr; }
  .workbench-editorial { margin-top: 2.5rem; }
}

.inheritance-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--surface);
}

.inheritance-breakdown > div {
  min-width: 0;
  padding: 1rem 1.1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.inheritance-breakdown > div:nth-child(3n) { border-right: 0; }
.inheritance-breakdown > div:nth-last-child(-n + 3) { border-bottom: 0; }

.inheritance-detail-title {
  margin: 1.15rem 0 .5rem;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.inheritance-breakdown dt {
  margin-bottom: .25rem;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.inheritance-breakdown dd {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.calculator-shell--inheritance {
  max-width: 1080px;
  margin-inline: auto;
  padding: clamp(1.15rem, 3vw, 2rem);
}

.calculator-shell--inheritance .calculator-top { margin-bottom: 1.35rem; }
.calculator-shell--inheritance .inheritance-fields { gap: 1.05rem 1.25rem; }

@media (max-width: 1100px) {
  .calculator-shell--inheritance .result-panel {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .calculator-shell--inheritance .result-actions {
    grid-column: 1;
    grid-row: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-top: .85rem;
  }
}

.legacy-service-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.legacy-service-grid > section {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  background: var(--surface);
}

.legacy-service-grid h2 { margin-top: .5rem; }
.legacy-service-grid .button { width: fit-content; }
.service-source { color: var(--muted); font-size: .9rem; }

@media (max-width: 760px) {
  .worksheet-header { display: none; }
  .worksheet-row-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worksheet-row-fields .field:first-child { grid-column: 1 / -1; }
  .worksheet-remove { align-self: end; }
}

@media (max-width: 800px) {
  .result-panel { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .result-actions {
    grid-column: 1;
    grid-row: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-top: .85rem;
  }
  .result-actions .button { min-width: 0; padding-inline: .45rem; font-size: .82rem; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 1.25rem, 1160px); }
  .page-hero { padding: 1rem 0 1.35rem; }
  .page-hero .breadcrumb { margin-bottom: .9rem; }
  .hero { padding-top: 1.4rem; }
  .hero-grid { gap: 1.6rem; }
  .field-grid, .tools-grid, .task-grid, .guide-grid, .trust-list, .footer-grid { grid-template-columns: 1fr; }
  .inheritance-breakdown { grid-template-columns: 1fr; }
  .inheritance-breakdown > div,
  .inheritance-breakdown > div:nth-child(3n),
  .inheritance-breakdown > div:nth-last-child(-n + 3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .inheritance-breakdown > div:last-child { border-bottom: 0; }
  .faq-list summary { padding: .8rem 2.75rem .8rem .85rem; font-size: .9rem; }
  .faq-list summary::after { right: .8rem; }
  .faq-list details p { padding: .8rem .85rem .9rem; font-size: .86rem; }
  .legacy-service-grid > section { padding: 1rem; }
  .legacy-service-grid .button { width: 100%; }
  .data-summary-grid { grid-template-columns: 1fr; }
  .data-summary-card { padding: 1rem 0; border-top: 1px solid var(--line); border-left: 0; }
  .data-summary-card:first-child { border-top: 0; }
  .data-panel { padding: 1rem; }
  .data-panel--calculator { padding: 0; }
  .data-panel-heading { align-items: flex-start; flex-direction: column; }
  .chart-point text { font-size: 22px; }
  .calculator-top { display: grid; grid-template-columns: 1fr; gap: .55rem; }
  .calculator-top .live-pill { justify-self: start; }
  .converter-fields { grid-template-columns: 1fr; gap: .45rem; }
  .converter-fields .swap-button { justify-self: center; width: 48px; height: 42px; margin: -.1rem 0; }
  .converter-fields .swap-button span { transform: rotate(90deg); }
  .year-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-heading, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .calculator-shell { border-radius: 8px; }
  .result-panel { display: block; }
  .result-actions { margin-top: .85rem; }
  .workbench-entry-grid,
  .document-form .field-grid,
  .receipt-grid,
  .worksheet-row-fields { grid-template-columns: 1fr; }
  .worksheet-row-fields .field:first-child { grid-column: auto; }
  .workbench-entry-card { padding: 1.2rem; }
  .receipt { padding: 1rem; }
  .receipt-head,
  .worksheet-toolbar,
  .worksheet-row-result,
  .worksheet-total { align-items: flex-start; flex-direction: column; }
  .worksheet-row-result strong { text-align: left; }
  .worksheet-remove { width: 100%; }
  .workbench-actions { display: grid; grid-template-columns: 1fr; }
  .workbench-actions .button { width: 100%; }
  .nav-actions .font-size-button { display: none; }
  .current-value strong { font-size: 2.65rem; }
  .trust-item { padding: .8rem 0; border-top: 1px solid var(--line); border-left: 0; }
  .trust-item:first-child { border-top: 0; }
  .task-card,
  .guide-card { min-height: 0; padding: 1.35rem 0; border-top: 1px solid var(--line); border-left: 0; }
  .task-card:first-child,
  .guide-card:first-child { border-top: 0; }
  .task-card:hover,
  .guide-card:hover { background: transparent; }
}

@media (max-width: 420px) {
  .chart-point:nth-of-type(even) text { display: none; }
}

@media (min-width: 901px) and (max-height: 700px) {
  .hero { padding: 1.35rem 0 1.65rem; }
  .hero h1 { margin-bottom: .6rem; font-size: clamp(2.35rem, 3.4vw, 3rem); }
  .hero .lead { font-size: 1.02rem; }
  .eyebrow { margin-bottom: .55rem; }
  .current-value { margin: .9rem 0 .55rem; }
  .current-value strong { font-size: 2.85rem; }
  .source-line { margin-top: .5rem; }
  .calculator-shell { padding: 1rem 1.1rem; }
  .calculator-top { margin-bottom: .75rem; }
  .calculator-top p { font-size: .82rem; }
  .control input,
  .control select { min-height: 50px; }
  .swap-button { height: 50px; }
  .converter-help { margin-top: .4rem; }
  .quick-values { margin: .5rem 0 .6rem; }
  .chip { min-height: 34px; }
  .result-panel { margin-top: .55rem; padding: .7rem .85rem; }
  .result-actions .button { min-height: 38px; padding: .45rem .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  @page { size: A4; margin: 14mm; }
  body.printing { background: #fff !important; }
  body.printing * { visibility: hidden !important; }
  body.printing .print-target,
  body.printing .print-target * { visibility: visible !important; }
  body.printing .print-target {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-color: #9babb8 !important;
    box-shadow: none !important;
    color: #10213b !important;
    background: #fff !important;
  }
  body.printing .worksheet-remove { display: none !important; }
  body.printing .worksheet { overflow: visible; }
  body.printing .worksheet-row { break-inside: avoid; }
  body.printing .worksheet-row-fields { grid-template-columns: 1.4fr .7fr .55fr .75fr; }
  body.printing .worksheet-row input,
  body.printing .worksheet-row select { border: 0; background: transparent; }
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  border-color: #25D366 !important;
  color: #128C7E !important;
  background: rgba(37, 211, 102, 0.08) !important;
}

/* ==================== FOOTER SOCIAL SHARE ==================== */
.footer-share-section {
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-share-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-share-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.footer-share-subtitle {
  font-size: 0.82rem;
  color: #9fb0c4;
}

.footer-share-buttons {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.btn-share-social {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  color: #f0f6fc !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  min-height: 38px !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

.btn-share-social svg {
  display: inline-block !important;
  flex-shrink: 0 !important;
  width: 18px !important;
  height: 18px !important;
  vertical-align: middle !important;
}

.btn-share-social span {
  display: inline-block !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

.btn-share-social:hover {
  transform: translateY(-2px);
}

.btn-share-wa:hover {
  background: #25D366;
  color: #ffffff;
  border-color: #25D366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-share-fb:hover {
  background: #1877F2;
  color: #ffffff;
  border-color: #1877F2;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35);
}

.btn-share-x:hover {
  background: #ffffff;
  color: #0b2744;
  border-color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.35);
}

.btn-share-in:hover {
  background: #0A66C2;
  color: #ffffff;
  border-color: #0A66C2;
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.35);
}

.btn-share-copy:hover {
  background: #087f83;
  color: #ffffff;
  border-color: #087f83;
  box-shadow: 0 4px 14px rgba(8, 127, 131, 0.35);
}

/* AdSense Monetization Zones */
.ad-zone {
  margin-top: 24px;
  margin-bottom: 24px;
  width: 100%;
  clear: both;
}

.ad-reserved {
  display: block;
  width: 100%;
  min-height: 90px;
}

.ad-reserved[data-ad-state="mounted"] {
  display: block;
  padding: 0;
}

.ad-reserved[data-ad-state="mounted"] > .adsbygoogle {
  display: block !important;
  width: 100% !important;
  min-width: 250px;
  min-height: 90px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .ad-zone {
    margin-top: 16px;
    margin-bottom: 16px;
  }
  .ad-reserved[data-ad-state="mounted"] > .adsbygoogle {
    min-height: 60px;
    min-width: 200px;
  }
}
