:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-muted: #eef3f4;
  --text: #19232a;
  --muted: #687780;
  --line: #dce5e7;
  --primary: #0d7c66;
  --primary-dark: #085a4b;
  --accent: #d95131;
  --gold: #d59d24;
  --ink: #102027;
  --shadow: 0 18px 40px rgba(27, 43, 49, 0.12);
  --page-width: 1480px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(13, 124, 102, 0.08), transparent 260px),
    var(--bg);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--ink);
  font-weight: 800;
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid rgba(13, 124, 102, 0.28);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(220, 229, 231, 0.85);
  background: rgba(244, 246, 248, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--page-width), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  width: 42px;
  height: 42px;
  padding: 8px;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 10px 24px rgba(16, 32, 39, 0.2);
}

.brand-mark span {
  border-radius: 3px;
  background: #f8faf9;
}

.brand-mark span:last-child {
  background: var(--gold);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-nav a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--text);
  background: var(--surface);
  outline: none;
}

.language-switch {
  display: grid;
  gap: 4px;
  min-width: 132px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
}

.language-switch select {
  min-height: 36px;
  padding: 0 10px;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: none;
}

main {
  width: min(var(--page-width), calc(100% - 40px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
  padding: 54px 0 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro h1,
.section-heading h2,
.content-band h2 {
  margin: 0;
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: 0;
}

.intro h1 {
  max-width: 880px;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
}

.intro p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.intro-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.intro-panel div {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
}

.intro-panel strong,
.intro-panel span {
  display: block;
}

.intro-panel strong {
  color: var(--primary-dark);
  font-size: 1.45rem;
}

.intro-panel span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.ad-band {
  width: 100%;
}

.ad-band-top {
  padding: 8px 0 28px;
}

.ad-band-inline {
  margin-top: 22px;
}

.ad-band-bottom {
  padding: 10px 0 36px;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 90px;
  padding: 16px;
  border: 1px dashed #aab8bd;
  border-radius: 8px;
  color: #54666e;
  background:
    repeating-linear-gradient(135deg, rgba(13, 124, 102, 0.08) 0 10px, transparent 10px 20px),
    rgba(255, 255, 255, 0.78);
  text-align: center;
}

.ad-slot span,
.ad-slot strong {
  display: block;
}

.ad-slot span {
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ad-slot strong {
  margin-top: 3px;
  font-size: 0.95rem;
}

.ad-slot-horizontal {
  max-width: 900px;
  min-height: 96px;
  margin: 0 auto;
}

.ad-slot-sidebar {
  min-height: 420px;
}

.ad-slot-rectangle {
  min-height: 250px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 0 24px;
}

.trust-strip article {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(16, 32, 39, 0.06);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  color: var(--primary-dark);
  font-size: 1rem;
}

.trust-strip span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(268px, 320px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(22px, 3vw, 38px);
  padding: 22px 0 36px;
}

.switcher {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 16px;
}

.mobile-label,
.mobile-select {
  display: none;
}

.switcher-list {
  display: grid;
  gap: 8px;
}

.resource-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(16, 32, 39, 0.06);
}

.resource-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
}

.resource-links {
  display: grid;
  gap: 10px;
}

.resource-links a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary-dark);
  background: #fbfcfc;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.resource-links a:hover,
.resource-links a:focus-visible {
  border-color: rgba(13, 124, 102, 0.45);
  background: #eef8f4;
  outline: none;
}

.switcher-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  text-align: left;
  box-shadow: 0 8px 22px rgba(16, 32, 39, 0.06);
}

.switcher-item:hover,
.switcher-item:focus-visible {
  border-color: rgba(13, 124, 102, 0.45);
  outline: none;
}

.switcher-item.active {
  border-color: rgba(13, 124, 102, 0.65);
  background: #eaf6f1;
}

.switcher-item strong,
.switcher-item small {
  display: block;
}

.switcher-item strong {
  font-size: 0.96rem;
}

.switcher-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.item-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--surface);
  background: var(--ink);
  font-size: 0.85rem;
  font-weight: 900;
}

.calculator-stage {
  min-width: 0;
}

.calculator {
  display: none;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.calculator.active {
  display: block;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

.calc-shell {
  display: grid;
  gap: 16px;
  width: min(100%, 640px);
}

.screen {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 18px;
  border-radius: 8px;
  color: #eff7f5;
  background: linear-gradient(140deg, #102027, #153b37);
}

.screen-expression {
  min-height: 24px;
  overflow-wrap: anywhere;
  color: rgba(239, 247, 245, 0.72);
  font-size: 1rem;
}

.screen-result {
  align-self: end;
  overflow-wrap: anywhere;
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  line-height: 1;
  text-align: right;
}

.keypad,
.scientific-pad {
  display: grid;
  gap: 8px;
}

.basic-keypad {
  grid-template-columns: repeat(4, minmax(58px, 1fr));
}

.key,
.scientific-pad button,
.finance-form button,
.date-form button,
.currency-actions button {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #f8faf9;
  font-weight: 800;
}

.key:hover,
.scientific-pad button:hover,
.finance-form button:hover,
.date-form button:hover,
.currency-actions button:hover {
  border-color: rgba(13, 124, 102, 0.5);
  background: #eef8f4;
}

.key.utility {
  color: var(--primary-dark);
  background: #eaf6f1;
}

.key.operator {
  color: #7a3b21;
  background: #fff1e7;
}

.key.equal,
.scientific-pad .primary,
.finance-form button,
.date-form button,
.currency-actions button {
  color: #ffffff;
  border-color: var(--primary);
  background: var(--primary);
}

.key.equal:hover,
.scientific-pad .primary:hover,
.finance-form button:hover,
.date-form button:hover,
.currency-actions button:hover {
  background: var(--primary-dark);
}

.key.wide {
  grid-column: span 4;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(300px, 420px);
  gap: 18px;
}

.input-panel,
.converter,
.finance-form,
.date-form {
  display: grid;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #cfdadd;
  border-radius: 8px;
  color: var(--text);
  background: #ffffff;
}

input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 124, 102, 0.14);
  outline: none;
}

.mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-weight: 800;
}

.toggle {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.toggle input {
  width: 18px;
  min-height: auto;
  height: 18px;
  accent-color: var(--primary);
}

.result-box {
  display: grid;
  gap: 6px;
  min-height: 102px;
  padding: 16px;
  border-radius: 8px;
  color: #f4fbf8;
  background: var(--ink);
}

.result-box span {
  color: rgba(244, 251, 248, 0.76);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.result-box strong {
  align-self: end;
  overflow-wrap: anywhere;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  line-height: 1.1;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.scientific-pad {
  grid-template-columns: repeat(4, minmax(56px, 1fr));
}

.scientific-pad button {
  min-height: 48px;
}

.finance-grid,
.dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 16px;
}

.finance-form h3,
.date-form h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.finance-note {
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.finance-output {
  display: block;
  min-height: 78px;
  padding: 13px;
  border-radius: 8px;
  color: var(--text);
  background: var(--surface-muted);
  line-height: 1.55;
}

.finance-output strong {
  color: var(--primary-dark);
}

.converter-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

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

.source-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.source-note a {
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-band {
  padding: 8px 0 28px;
}

.section-intro {
  max-width: 860px;
}

.section-intro p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.content-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.feature-list article,
.faq-list article {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-list h3,
.faq-list h3 {
  margin: 0 0 8px;
  color: var(--primary-dark);
}

.feature-list h3 a {
  color: inherit;
  text-decoration: none;
}

.feature-list h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.feature-list p,
.faq-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.faq-band {
  padding-top: 18px;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.site-footer {
  padding: 24px 16px 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.footer-links a {
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page {
  padding: 38px 0 52px;
}

.legal-content {
  max-width: 1060px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-content h1 {
  max-width: 920px;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.legal-content h2 {
  margin: 28px 0 8px;
  color: var(--ink);
  font-size: 1.15rem;
}

.legal-content p {
  max-width: 900px;
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.75;
}

.legal-content ul {
  margin: 10px 0 18px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.8;
}

.legal-content a {
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topic-page {
  padding: 46px 0 56px;
}

.topic-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.55fr);
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
  margin-bottom: 34px;
}

.topic-hero h1 {
  max-width: 980px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.5rem, 5vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.topic-hero p:not(.eyebrow) {
  max-width: 880px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.topic-summary {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.topic-summary strong {
  color: var(--primary-dark);
  font-size: 3rem;
  line-height: 1;
}

.topic-summary span {
  color: var(--muted);
  line-height: 1.6;
}

.topic-summary a,
.topic-action {
  color: var(--primary-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topic-section {
  margin-top: 30px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  margin-top: 18px;
}

.topic-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 236px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(16, 32, 39, 0.07);
}

.topic-card span {
  color: var(--primary-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topic-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.25;
}

.topic-card h3 a {
  color: inherit;
  text-decoration: none;
}

.topic-card h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topic-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.topic-card .topic-action {
  align-self: end;
  margin-top: 6px;
}

.topic-note {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid rgba(13, 124, 102, 0.28);
  border-radius: 8px;
  background: #eaf6f1;
}

.topic-note h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.topic-note p {
  max-width: 980px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.article-page {
  width: min(1480px, calc(100% - 40px));
  padding: 42px 0 82px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.article-intro,
.tool-card,
.content-panel,
.guide-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-intro {
  padding: clamp(24px, 4vw, 44px);
}

.article-intro h1 {
  max-width: 980px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.25rem, 4.8vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.article-intro p {
  max-width: 900px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.review-note {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px;
  color: var(--muted);
}

.review-note strong {
  color: var(--ink);
}

.tool-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(300px, 1.05fr);
  gap: 20px;
  margin: 0 0 28px;
  padding: clamp(20px, 3vw, 32px);
}

.tool-card h2,
.content-panel h2,
.guide-card h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.18;
}

.tool-form {
  display: grid;
  gap: 14px;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field label,
.field span {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.field input,
.field select {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fbfdfd;
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  border-color: rgba(13, 124, 102, 0.55);
  outline: 3px solid rgba(13, 124, 102, 0.14);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.primary-action,
.secondary-action {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 900;
}

.primary-action {
  border: 0;
  color: #ffffff;
  background: var(--primary-dark);
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--primary-dark);
  background: var(--surface-muted);
}

.tool-result {
  min-height: 260px;
  border-radius: 8px;
  padding: 22px;
  background: #102027;
  color: #f8faf9;
}

.result-main {
  display: block;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.result-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.result-list div {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 16px;
  border-bottom: 1px solid rgba(248, 250, 249, 0.14);
  padding-bottom: 8px;
}

.result-list dt {
  color: rgba(248, 250, 249, 0.72);
  font-weight: 700;
}

.result-list dd {
  margin: 0;
  font-weight: 900;
  text-align: right;
}

.tool-note {
  margin: 16px 0 0;
  color: rgba(248, 250, 249, 0.74);
  line-height: 1.6;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 22px;
}

.content-panel,
.guide-card {
  padding: clamp(20px, 3vw, 32px);
}

.content-panel p,
.content-panel li,
.guide-card p,
.guide-card li {
  color: var(--muted);
  line-height: 1.76;
}

.content-panel a,
.guide-card a,
.article-intro a {
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.source-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.faq-list details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

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

.related-list a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fbfdfd;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 14px;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table-wrap th,
.table-wrap td {
  border-bottom: 1px solid rgba(248, 250, 249, 0.16);
  padding: 8px;
  text-align: left;
}

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

.guide-card {
  box-shadow: none;
}

.guide-card h2 {
  font-size: 1.22rem;
}

.cookie-card {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  gap: 12px;
  width: min(430px, calc(100vw - 36px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cookie-card[hidden] {
  display: none;
}

.cookie-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.cookie-card div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-card a {
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-card button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  color: #ffffff;
  background: var(--primary);
  font-weight: 800;
}

@media (max-width: 980px) {
  .intro,
  .workspace,
  .tool-layout,
  .topic-hero,
  .article-hero,
  .tool-card,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .switcher {
    position: static;
  }

  .ad-slot-sidebar {
    min-height: 120px;
  }

  .switcher-list {
    grid-template-columns: repeat(5, minmax(118px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .switcher-item {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .feature-list,
  .topic-grid,
  .guide-list,
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  main,
  .header-inner {
    width: min(100% - 22px, 1180px);
  }

  .top-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .language-switch {
    min-width: 118px;
  }

  .intro {
    padding-top: 34px;
  }

  .intro h1 {
    font-size: 2.35rem;
  }

  .intro-panel,
  .finance-grid,
  .dates-grid,
  .converter-row,
  .currency-actions,
  .form-grid,
  .feature-list,
  .topic-grid,
  .guide-list,
  .faq-list,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .switcher-list {
    display: none;
  }

  .mobile-label,
  .mobile-select {
    display: grid;
  }

  .calculator {
    padding: 18px;
  }

  .legal-content,
  .topic-note,
  .article-intro,
  .tool-card,
  .content-panel,
  .guide-card {
    padding: 20px;
  }

  .article-page {
    width: min(100% - 22px, 1180px);
    padding-top: 28px;
  }

  .result-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .result-list dd {
    text-align: left;
  }

  .topic-page {
    padding-top: 34px;
  }

  .scientific-pad,
  .basic-keypad {
    grid-template-columns: repeat(4, minmax(44px, 1fr));
  }

  .key,
  .scientific-pad button {
    min-height: 48px;
  }
}


.autoria {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

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

.author-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin: 26px 0;
  padding: 20px;
  border: 1px solid rgba(13, 124, 102, 0.22);
  border-radius: 8px;
  background: #eef8f4;
}

.author-card img {
  width: 160px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(13, 124, 102, 0.28);
  background: var(--surface);
}

.author-card h2 {
  margin-top: 0;
}

.inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 6px;
  text-decoration: none !important;
}

.insight-box {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  color: var(--ink);
  background: #eef8f4;
  line-height: 1.7;
}

.calculadora-cta,
.fontes {
  margin-top: 26px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

@media (max-width: 720px) {
  .author-card {
    grid-template-columns: 1fr;
  }

  .author-card img {
    width: 128px;
  }
}
