/* ============================================
   FinToolyBox — Design System
   Professional financial tools & guides
   ============================================ */

:root {
  --ink: #0b1f33;
  --ink-soft: #1c3348;
  --muted: #5a6b7a;
  --line: #d8e0e8;
  --paper: #f5f8fa;
  --white: #ffffff;
  --accent: #0f6e5c;
  --accent-hover: #0b5749;
  --accent-soft: #e6f4f0;
  --accent-mid: #2a9d84;
  --warn: #8a5a12;
  --warn-bg: #f8f1e4;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 72px;
  --radius: 10px;
  --radius-sm: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }
button, input, textarea, select { font: inherit; }

.page-bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(15, 110, 92, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(11, 31, 51, 0.06), transparent 50%),
    linear-gradient(180deg, #f8fbfd 0%, #eef3f6 100%);
}
.page-bg::after {
  content: ""; position: absolute; inset: 0; opacity: 0.4;
  background-image:
    linear-gradient(rgba(11, 31, 51, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 31, 51, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 0%, transparent 70%);
  pointer-events: none;
}

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: 4.5rem 0; }
.section--tight { padding: 3rem 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.35rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

.lead { font-size: 1.125rem; color: var(--muted); max-width: 38rem; }
.eyebrow {
  display: inline-block; font-family: var(--font-body); font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.85rem;
}

.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(245, 248, 250, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}
.header-inner {
  height: var(--header-h); display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem;
}
.logo {
  display: inline-flex; align-items: center; gap: 0.55rem;
  text-decoration: none; color: var(--ink); flex-shrink: 0;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px; background: var(--ink);
  display: grid; place-items: center;
}
.logo-mark svg { width: 18px; height: 18px; color: #fff; }
.logo-text {
  font-family: var(--font-display); font-size: 1.2rem;
  font-weight: 600; letter-spacing: -0.03em;
}
.logo-text span { color: var(--accent); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav a {
  text-decoration: none; color: var(--ink-soft); font-size: 0.9rem;
  font-weight: 500; padding: 0.45rem 0.7rem; border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--ink); background: rgba(11, 31, 51, 0.05);
}
.nav a[aria-current="page"] { color: var(--accent); }
.nav-cta {
  margin-left: 0.5rem; background: var(--ink) !important;
  color: #fff !important; padding: 0.5rem 1rem !important;
}
.nav-cta:hover { background: var(--ink-soft) !important; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: var(--white); border-radius: var(--radius-sm); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.menu-toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  font-weight: 600; font-size: 0.95rem; padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm); border: none; cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-group { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.hero {
  position: relative; min-height: calc(100vh - var(--header-h));
  display: grid; align-items: center; padding: 3rem 0 4rem; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.brand-signal {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 1rem;
}
.brand-signal em { font-style: italic; font-weight: 450; color: var(--accent); }
.hero h1 { margin-bottom: 1rem; max-width: 14ch; }
.hero .lead { font-size: 1.15rem; }

.hero-visual {
  position: relative; min-height: 420px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(145deg, #0b1f33 0%, #143d4a 45%, #0f6e5c 100%);
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(42, 157, 132, 0.45), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08), transparent 40%);
}
.hero-chart {
  position: absolute; inset: 12% 8% 18% 8%;
  display: flex; align-items: flex-end; gap: 4%; z-index: 1;
}
.hero-chart .bar {
  flex: 1; background: rgba(255, 255, 255, 0.18);
  border-radius: 4px 4px 0 0; transform-origin: bottom;
  animation: riseBar 1.1s var(--ease) both;
}
.hero-chart .bar:nth-child(1) { height: 28%; animation-delay: 0.1s; }
.hero-chart .bar:nth-child(2) { height: 45%; animation-delay: 0.2s; }
.hero-chart .bar:nth-child(3) { height: 38%; animation-delay: 0.3s; }
.hero-chart .bar:nth-child(4) { height: 62%; animation-delay: 0.4s; }
.hero-chart .bar:nth-child(5) { height: 52%; animation-delay: 0.5s; }
.hero-chart .bar:nth-child(6) { height: 78%; animation-delay: 0.6s; background: rgba(255, 255, 255, 0.35); }
.hero-chart .bar:nth-child(7) { height: 68%; animation-delay: 0.7s; }

.hero-line {
  position: absolute; left: 8%; right: 8%; top: 22%; height: 45%;
  z-index: 2; pointer-events: none;
}
.hero-line path {
  fill: none; stroke: #7dcfbe; stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 400; stroke-dashoffset: 400;
  animation: drawLine 1.6s var(--ease) 0.4s forwards;
}
.hero-label {
  position: absolute; left: 1.5rem; bottom: 1.5rem; z-index: 3;
  color: rgba(255, 255, 255, 0.85); font-size: 0.8rem;
  font-weight: 500; letter-spacing: 0.04em;
}

@keyframes riseBar {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; animation: fadeUp 0.7s var(--ease) forwards; }
.reveal-d1 { animation-delay: 0.08s; }
.reveal-d2 { animation-delay: 0.18s; }
.reveal-d3 { animation-delay: 0.28s; }
.reveal-d4 { animation-delay: 0.4s; }

.trust-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65); padding: 1.15rem 0;
}
.trust-list {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.5rem 2.75rem; color: var(--muted); font-size: 0.9rem; font-weight: 500;
}
.trust-list li { display: flex; align-items: center; gap: 0.5rem; }
.trust-list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

.section-head { margin-bottom: 2.25rem; max-width: 36rem; }
.section-head p { color: var(--muted); margin-top: 0.65rem; }

.cat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cat-link {
  display: block; padding: 1.35rem 1.25rem; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.cat-link:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.cat-link strong {
  display: block; font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.25rem;
}
.cat-link span { font-size: 0.875rem; color: var(--muted); }

.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.tool-item {
  display: flex; flex-direction: column; gap: 0.65rem; padding: 1.4rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s var(--ease); min-height: 160px;
}
.tool-item:hover {
  border-color: var(--accent-mid);
  box-shadow: 0 8px 24px rgba(11, 31, 51, 0.06); color: var(--ink);
}
.tool-icon {
  width: 40px; height: 40px; border-radius: 8px; background: var(--accent-soft);
  color: var(--accent); display: grid; place-items: center;
}
.tool-icon svg { width: 20px; height: 20px; }
.tool-item h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 650; }
.tool-item p { font-size: 0.9rem; color: var(--muted); flex: 1; }
.tool-meta { font-size: 0.8rem; font-weight: 600; color: var(--accent); }

.blog-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.blog-row {
  display: grid; grid-template-columns: 7rem 1fr auto; gap: 1.5rem;
  align-items: baseline; padding: 1.35rem 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
}
.blog-row:hover { color: var(--ink); }
.blog-row:hover .blog-title { color: var(--accent); }
.blog-cat {
  font-size: 0.75rem; font-weight: 650; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.blog-title {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 550; transition: color 0.2s;
}
.blog-excerpt { font-size: 0.925rem; color: var(--muted); margin-top: 0.35rem; }
.blog-arrow {
  color: var(--muted); font-size: 1.25rem;
  transition: transform 0.25s var(--ease), color 0.2s;
}
.blog-row:hover .blog-arrow { transform: translateX(4px); color: var(--accent); }

.page-hero {
  padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 0.75rem; }
.page-hero .lead { margin: 0; }

.prose { max-width: 42rem; padding: 3rem 0 4.5rem; }
.prose h2 { font-size: 1.45rem; margin: 2.25rem 0 0.75rem; }
.prose h3 { margin: 1.5rem 0 0.5rem; }
.prose p, .prose li { color: var(--ink-soft); margin-bottom: 1rem; }
.prose ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.prose ul li { list-style: disc; margin-bottom: 0.4rem; }
.prose a { font-weight: 500; }

.notice {
  margin: 1.5rem 0; padding: 1.1rem 1.25rem; background: var(--warn-bg);
  border-left: 3px solid var(--warn); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem; color: var(--ink-soft);
}

.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; padding: 3rem 0 4.5rem;
}
.contact-info p { color: var(--muted); margin-bottom: 1.25rem; }
.contact-info a { font-weight: 600; }
.form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 0.4rem; }
.form-row label { font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 0.8rem 0.95rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--white); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 110, 92, 0.15);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); }

.coming {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem;
  font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--warn); background: var(--warn-bg); padding: 0.25rem 0.55rem;
  border-radius: 4px; margin-top: 0.5rem; width: fit-content;
}

.tools-categories { display: grid; gap: 3rem; padding-bottom: 4rem; }
.tools-cat h2 {
  font-size: 1.35rem; margin-bottom: 1rem; padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  background: var(--ink); color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 2rem; margin-top: auto;
}
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-mark { background: var(--accent); }
.footer-brand p {
  margin-top: 1rem; font-size: 0.925rem; max-width: 22rem; line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 650;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45); margin-bottom: 1rem;
}
.footer-col a {
  display: block; color: rgba(255, 255, 255, 0.8); text-decoration: none;
  font-size: 0.925rem; padding: 0.3rem 0;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 1.5rem; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 1rem; font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.55); }
.footer-disclaimer {
  margin-top: 1.25rem; font-size: 0.8rem; line-height: 1.55;
  color: rgba(255, 255, 255, 0.4); max-width: 52rem;
}

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 2rem 0 1rem; }
.value {
  padding: 1.35rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.value h3 { font-family: var(--font-body); font-size: 1rem; margin-bottom: 0.5rem; }
.value p { font-size: 0.9rem; color: var(--muted); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* === BLOG & ARTICLE SYSTEM === */

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  padding: 2.5rem 0 4.5rem;
  align-items: start;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.filter-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.featured-post {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 2rem;
  transition: border-color 0.25s, box-shadow 0.25s var(--ease);
}

.featured-post:hover {
  border-color: var(--accent-mid);
  box-shadow: 0 12px 32px rgba(11, 31, 51, 0.07);
  color: var(--ink);
}

.featured-media {
  position: relative;
  min-height: 280px;
  background: #0b1f33;
}

.featured-media img,
.featured-media svg {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  display: block;
}

.featured-body {
  padding: 1.75rem 1.75rem 1.9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-body .blog-cat { margin-bottom: 0.65rem; }
.featured-body h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  margin-bottom: 0.75rem;
}
.featured-body p { color: var(--muted); font-size: 0.98rem; margin-bottom: 1.1rem; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.25s, transform 0.25s var(--ease);
  min-height: 100%;
}

.post-card:hover {
  border-color: var(--accent-mid);
  transform: translateY(-2px);
  color: var(--ink);
}

.post-card.is-hidden { display: none; }

.post-thumb {
  aspect-ratio: 16 / 10;
  background: #123;
  overflow: hidden;
}

.post-thumb img,
.post-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  display: block;
  transition: transform 0.45s var(--ease);
}

.post-card:hover .post-thumb img,
.post-card:hover .post-thumb svg { transform: scale(1.03); }

.post-card-body { padding: 1.15rem 1.2rem 1.35rem; display: flex; flex-direction: column; flex: 1; gap: 0.45rem; }
.post-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 550;
  line-height: 1.25;
}
.post-card-body p { font-size: 0.9rem; color: var(--muted); flex: 1; }
.read-link {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--accent);
  margin-top: 0.35rem;
}

.blog-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
}

.side-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.side-box h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.side-box ul li { margin-bottom: 0.55rem; }
.side-box a { text-decoration: none; font-weight: 550; font-size: 0.92rem; color: var(--ink-soft); }
.side-box a:hover { color: var(--accent); }

.side-note {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Article page */
.article-hero {
  padding: 2.75rem 0 0;
  border-bottom: none;
  background: transparent;
}

.article-hero .container { max-width: 760px; }

.article-cover {
  margin: 1.75rem auto 0;
  width: min(100% - 2.5rem, 1120px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b1f33;
  aspect-ratio: 21 / 9;
}

.article-cover img,
.article-cover svg {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  display: block;
}

.article {
  width: min(100% - 2.5rem, 760px);
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.article .post-meta { margin: 0.85rem 0 0; }

.article-figure {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.article-figure img,
.article-figure svg { width: 100%; display: block; }

.article-figure figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(255,255,255,0.9);
  border-top: 1px solid var(--line);
}

.article h2 {
  font-size: 1.45rem;
  margin: 2.35rem 0 0.8rem;
}

.article h3 {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 700;
  margin: 1.6rem 0 0.55rem;
}

.article p { color: var(--ink-soft); margin-bottom: 1.05rem; }

.article ul, .article ol {
  padding-left: 1.3rem;
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
}

.article li { margin-bottom: 0.45rem; list-style: disc; }
.article ol li { list-style: decimal; }

.formula-box {
  margin: 1.35rem 0;
  padding: 1.15rem 1.25rem;
  background: var(--accent-soft);
  border: 1px solid #c5e6dc;
  border-radius: 10px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.95rem;
  color: var(--ink);
  overflow-x: auto;
}

.example-box {
  margin: 1.35rem 0;
  padding: 1.25rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.example-box h3 { margin-top: 0; }

.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.5rem; }
.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.article th, .article td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.8rem;
  text-align: left;
}
.article th { background: rgba(11,31,51,0.04); font-weight: 650; }

.article-cta {
  margin: 2.25rem 0;
  padding: 1.35rem 1.4rem;
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  border-radius: 12px;
}
.article-cta strong { color: #fff; display: block; font-size: 1.05rem; margin-bottom: 0.4rem; }
.article-cta a {
  display: inline-flex;
  margin-top: 0.9rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  padding: 0.65rem 1.1rem;
  border-radius: 6px;
}
.article-cta a:hover { background: var(--accent-hover); color: #fff; }

.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  margin-bottom: 0.65rem;
  padding: 0.85rem 1rem;
}
.faq summary {
  font-weight: 650;
  cursor: pointer;
  color: var(--ink);
}
.faq details p { margin: 0.65rem 0 0; }

.article-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.article-footer-nav a { font-weight: 600; text-decoration: none; }

/* === EEAT & AUTHOR HUMANIZATION COMPONENTS === */
.author-bio-card {
  margin: 2.25rem 0;
  padding: 1.35rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  display: flex;
  gap: 1.25rem;
  align-items: center;
  box-shadow: 0 4px 16px rgba(11, 31, 51, 0.03);
}

.author-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ink) 0%, var(--accent) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  flex-shrink: 0;
  border: 2px solid var(--accent-soft);
  box-shadow: 0 2px 8px rgba(15, 110, 92, 0.2);
}

.author-details h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.author-role {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
  display: block;
}

.author-bio {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0 !important;
}

.author-links {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.85rem;
  align-items: center;
  font-size: 0.82rem;
}

.author-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.author-links a:hover {
  text-decoration: underline;
}

.expert-note {
  margin: 1.75rem 0;
  padding: 1.15rem 1.35rem;
  background: #f0f7f5;
  border: 1px solid #c8e6dd;
  border-radius: 10px;
  position: relative;
}

.expert-note-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 0.4rem;
}

.expert-note p {
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin: 0 !important;
  line-height: 1.55;
}




/* === CALCULATOR UI === */
.calc-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 1.5rem;
  padding: 2rem 0 1rem;
  align-items: start;
}
.calc-panel, .calc-results {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.45rem 1.55rem;
}
.calc-panel h2, .calc-results h2 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.calc-grid { display: grid; gap: 0.95rem; }
.calc-grid.two { grid-template-columns: 1fr 1fr; gap: 0.95rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.88rem; font-weight: 650; color: var(--ink-soft); }
.field .hint { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.field input, .field select {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15,110,92,0.15);
}
.calc-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.15rem; }
.calc-actions .btn { flex: 1; min-width: 120px; }
.result-hero {
  background: linear-gradient(145deg, #0b1f33 0%, #143d4a 50%, #0f6e5c 100%);
  color: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.2rem;
  margin-bottom: 1rem;
}
.result-hero .label { font-size: 0.8rem; opacity: 0.85; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #ffffff; }
.result-hero .value { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.35rem); font-weight: 600; margin-top: 0.25rem; letter-spacing: -0.02em; color: #ffffff; }
.result-rows { display: grid; gap: 0.55rem; }
.result-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.result-row:last-child { border-bottom: none; }
.result-row span { color: var(--muted); }
.result-row strong { color: var(--ink); font-weight: 700; }
.calc-error {
  display: none; margin-top: 0.75rem; padding: 0.75rem 0.9rem;
  background: #fdeceb; color: #8a2b2b; border-radius: 8px; font-size: 0.9rem;
}
.calc-error.is-visible { display: block; }
.calc-note { margin-top: 0.9rem; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.calc-content { width: min(100% - 2.5rem, 760px); margin: 0 auto; padding: 2rem 0 4rem; }
.calc-content h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
.calc-content p, .calc-content li { color: var(--ink-soft); margin-bottom: 0.9rem; }
.calc-content ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.calc-content li { list-style: disc; }
.tool-status-live {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  padding: 0.22rem 0.5rem; border-radius: 4px; margin-bottom: 0.65rem;
}


.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(11, 31, 51, 0.97);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
}
.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 220px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}
.cookie-banner a { color: #7dcfbe; text-decoration: underline; }
.cookie-banner .cookie-accept {
  flex-shrink: 0;
  padding: 0.65rem 1.2rem;
  font-size: 0.88rem;
}


/* ==================================================== */
/* === RESPONSIVE MEDIA QUERIES (OVERRIDING ALL) === */
/* ==================================================== */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .hero { min-height: auto !important; padding: 2.5rem 0 3rem !important; }
  .hero-visual { min-height: 280px !important; order: -1 !important; }
  .hero h1 { max-width: none !important; }
  .cat-row { grid-template-columns: repeat(2, 1fr) !important; }
  .tool-grid { grid-template-columns: 1fr 1fr !important; }
  .footer-top { grid-template-columns: 1fr 1fr !important; }
  .contact-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .values { grid-template-columns: 1fr !important; }
  .blog-layout { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .calc-layout { grid-template-columns: 1fr !important; }
  .calc-grid.two { grid-template-columns: 1fr !important; }
}

@media (max-width: 720px) {
  .menu-toggle { display: flex !important; }
  .nav {
    position: fixed !important; top: var(--header-h) !important; left: 0 !important; right: 0 !important;
    flex-direction: column !important; align-items: stretch !important; background: #fff !important;
    border-bottom: 1px solid var(--line) !important; padding: 0.75rem !important; gap: 0.15rem !important;
    transform: translateY(-120%) !important; opacity: 0 !important; pointer-events: none !important;
    transition: transform 0.3s var(--ease), opacity 0.3s !important;
  }
  .nav.is-open { transform: translateY(0) !important; opacity: 1 !important; pointer-events: auto !important; }
  .nav a { padding: 0.85rem 1rem !important; }
  .nav-cta { margin: 0.5rem 0 0 !important; text-align: center !important; }
  .tool-grid { grid-template-columns: 1fr !important; }
  .post-grid { grid-template-columns: 1fr !important; }
  .featured-post { grid-template-columns: 1fr !important; }
  .featured-media { min-height: 200px !important; }
  .blog-row { grid-template-columns: 1fr !important; gap: 0.35rem !important; }
  .blog-arrow { display: none !important; }
  .footer-top { grid-template-columns: 1fr !important; gap: 1.75rem !important; }
  .cat-row { grid-template-columns: 1fr !important; }
  .article-cover { width: 100% !important; aspect-ratio: 16/9 !important; }
  .author-bio-card { flex-direction: column !important; text-align: center !important; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 1.25rem, 1120px) !important; }
  .post-card { width: 100% !important; }
}
