/* Zingoo UK - Light Theme Stylesheet
   Vector Wave Palette: Teal (#00a8b5), Orange (#f26522), Deep Charcoal (#1e2328), Crisp White (#ffffff)
*/
:root {
  --teal-primary: #00a8b5;
  --teal-hover: #008f9a;
  --teal-light: #e0f7fa;
  --teal-dark: #006064;
  --orange-accent: #f26522;
  --orange-hover: #d9531e;
  --orange-light: #fff3e0;
  --charcoal: #1e2328;
  --charcoal-soft: #2d3339;
  --charcoal-light: #4b5563;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  --primary: var(--teal-primary);
  --primary-hover: var(--teal-hover);
  --primary-light: var(--teal-light);
  --primary-dark: var(--teal-dark);
  --secondary: var(--charcoal);
  --accent: var(--orange-accent);
  --accent-light: var(--orange-light);
  --dark: var(--charcoal);
  --dark-soft: var(--charcoal-soft);

  --shadow-sm: 0 1px 2px 0 rgba(30, 35, 40, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(30, 35, 40, 0.08), 0 2px 4px -2px rgba(30, 35, 40, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(30, 35, 40, 0.09), 0 4px 6px -4px rgba(30, 35, 40, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(30, 35, 40, 0.12), 0 8px 10px -6px rgba(30, 35, 40, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --container-max: 1240px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--dark-soft);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--primary-hover);
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Header with Top Accent Gradient */
.site-header {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.2s ease;
}

.site-header::before {
  content: '';
  display: block;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #1e2328 0%, #00a8b5 45%, #f26522 85%, #1e2328 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-link img {
  height: 44px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  border-radius: 8px;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--teal-primary);
  background-color: var(--teal-light);
}

.nav-link.active {
  color: var(--teal-primary);
  background-color: var(--teal-light);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--teal-primary) 0%, var(--teal-hover) 100%);
  color: #ffffff !important;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0, 168, 181, 0.25);
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.header-hub-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 168, 181, 0.35);
}

.mobile-menu-toggle {
  display: none;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--charcoal);
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 3px solid var(--teal-primary);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
    padding: 16px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    z-index: 999;
  }

  .main-nav.open {
    display: flex !important;
    animation: navSlideDown 0.22s ease-out;
  }

  .main-nav .nav-link {
    width: 100%;
    height: 44px;
    justify-content: flex-start;
    padding: 0 16px;
    font-size: 0.9375rem;
    box-sizing: border-box;
  }
}

@keyframes navSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Unified High-Contrast Page Hero Banner (Vector Wave Theme)
   ========================================================================== */
.page-hero-banner {
  position: relative;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 80%, #ffffff 100%);
  padding: 44px 0 36px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.page-hero-banner.page-hero-tool,
.page-hero-banner.page-hero-category,
.page-hero-banner.page-hero-page {
  padding: 30px 0 24px;
  text-align: left;
}

.page-hero-vector-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hero-svg-waves {
  width: 100%;
  height: 100%;
  display: block;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 168, 181, 0.45);
  color: var(--teal-dark);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.page-hero-title {
  font-size: 2.75rem;
  font-weight: 850;
  color: #0f172a; /* Deep slate, ultra crisp high contrast */
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin: 0 0 14px;
}

.page-hero-banner.page-hero-tool .page-hero-title,
.page-hero-banner.page-hero-category .page-hero-title,
.page-hero-banner.page-hero-page .page-hero-title {
  font-size: 2.25rem;
  margin-bottom: 8px;
}

.page-hero-title .text-teal {
  color: var(--teal-primary);
}

.page-hero-title .text-orange {
  color: var(--orange-accent);
}

.page-hero-lead {
  font-size: 1.125rem;
  color: #334155; /* High contrast slate */
  line-height: 1.55;
  max-width: 760px;
  margin: 0 auto 28px;
}

.page-hero-banner.page-hero-tool .page-hero-lead,
.page-hero-banner.page-hero-category .page-hero-lead,
.page-hero-banner.page-hero-page .page-hero-lead {
  margin: 0 0 16px;
  max-width: 860px;
}

.page-hero-breadcrumbs {
  margin-bottom: 14px;
}

.breadcrumbs-nav {
  display: block;
}

.breadcrumbs-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: #ffffff;
  padding: 6px 16px;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
}

.breadcrumbs-pill a {
  color: var(--teal-primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.breadcrumbs-pill a:hover {
  color: var(--orange-accent);
  text-decoration: underline;
}

.breadcrumbs-pill .sep {
  color: #64748b;
  font-weight: 700;
  margin: 0 2px;
}

.breadcrumbs-pill .current {
  color: #0f172a;
  font-weight: 700;
}

/* Global Search Bar */
.search-box-wrapper {
  max-width: 660px;
  margin: 0 auto 24px;
  position: relative;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 18px;
  color: var(--teal-primary);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  font-size: 1.0625rem;
  font-family: inherit;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-lg);
  background: #ffffff;
  color: var(--charcoal);
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 4px rgba(0, 168, 181, 0.15), var(--shadow-lg);
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  max-height: 380px;
  overflow-y: auto;
  z-index: 50;
  display: none;
  text-align: left;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--bg-page);
}

.search-result-title {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9375rem;
}

.search-result-category {
  font-size: 0.75rem;
  background: var(--teal-light);
  color: var(--teal-dark);
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 600;
}

/* Hero Chips */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.hero-chips-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.chip {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--charcoal-soft);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s;
}

.chip:hover {
  border-color: var(--teal-primary);
  color: var(--teal-primary);
  background: var(--teal-light);
}

/* Category Grid & Cards */
.section {
  padding: 48px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 16px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Category Tabs */
.category-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 28px;
  scrollbar-width: thin;
}

.cat-pill {
  white-space: nowrap;
  padding: 10px 18px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal-soft);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-pill:hover, .cat-pill.active {
  background: var(--teal-primary);
  color: #ffffff;
  border-color: var(--teal-primary);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.tool-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  position: relative;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #b2ebf2;
}

.tool-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #c2410c;
  background: #ffedd5;
  padding: 3px 8px;
  border-radius: 4px;
}

.tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--teal-light);
  color: var(--teal-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.tool-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.35;
}

.tool-card-title a {
  color: inherit;
}

.tool-card-title a:hover {
  color: var(--teal-primary);
}

.tool-card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.tool-card-cat {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.tool-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--teal-primary);
}

.tool-card-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.15s;
}

.tool-card:hover .tool-card-btn svg {
  transform: translateX(3px);
  color: var(--orange-accent);
}

/* Tool View Layout */
.tool-view-wrapper {
  padding: 32px 0 60px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--teal-primary);
}

.breadcrumbs .sep {
  color: var(--muted-light);
}

.tool-header {
  margin-bottom: 28px;
}

.tool-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.tool-lead {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 860px;
}

.tool-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 0.8125rem;
  color: var(--muted);
}

.tool-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Calculator Box Component */
.calc-container {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px;
  margin-bottom: 48px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
}

@media (max-width: 900px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

.calc-inputs-pane {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-results-pane {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dark-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-hint {
  font-size: 0.75rem;
  font-weight: normal;
  color: var(--muted);
}

.input-with-affix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-affix {
  position: absolute;
  left: 14px;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.9375rem;
  pointer-events: none;
}

.input-affix-right {
  position: absolute;
  right: 14px;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.875rem;
  pointer-events: none;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--dark);
  background: #ffffff;
  transition: all 0.15s ease;
}

.input-has-left {
  padding-left: 36px;
}

.input-has-right {
  padding-right: 42px;
}

.form-control:focus {
  outline: none;
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 3px rgba(0, 168, 181, 0.18);
}

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  appearance: none;
  -webkit-appearance: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.calc-btn-group {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--teal-primary);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 168, 181, 0.25);
}

.btn-primary:hover {
  background: var(--teal-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--orange-accent);
  color: #ffffff;
}

.btn-accent:hover {
  background: var(--orange-hover);
}

.btn-outline {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  color: var(--dark-soft);
}

.btn-outline:hover {
  background: var(--bg-page);
  border-color: var(--muted-light);
}

/* Results Display */
.result-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.result-header h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 4px;
}

.result-main-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--teal-dark);
  line-height: 1.1;
}

.result-main-subtitle {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 4px;
}

.result-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.result-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-color);
}

.result-breakdown-row.highlight {
  font-weight: 700;
  color: var(--dark);
  font-size: 0.9375rem;
  border-bottom: 2px solid var(--border-color);
}

.result-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.btn-action {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-action:hover {
  border-color: var(--teal-primary);
  color: var(--teal-primary);
}

/* 1200+ Word Content Article Styling */
.article-section {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  margin-top: 32px;
}

@media (max-width: 992px) {
  .article-section {
    grid-template-columns: 1fr;
  }
}

.article-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.toc-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.toc-title {
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-list a {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
  display: block;
}

.toc-list a:hover {
  color: var(--teal-primary);
  transform: translateX(2px);
}

.article-content {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-sm);
}

.article-content h2 {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--charcoal);
  margin-top: 36px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal-light);
}

.article-content h2:first-of-type {
  margin-top: 0;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal-soft);
  margin-top: 26px;
  margin-bottom: 12px;
}

.article-content p {
  font-size: 1rem;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  margin-bottom: 22px;
  padding-left: 24px;
}

.article-content li {
  font-size: 1rem;
  color: #334155;
  line-height: 1.75;
  margin-bottom: 10px;
}

/* Callout Alert Boxes */
.callout {
  padding: 18px 22px;
  border-radius: var(--radius-md);
  margin: 24px 0;
  border-left: 4px solid;
  display: flex;
  gap: 14px;
}

.callout-info {
  background: #f0fdfa;
  border-left-color: var(--teal-primary);
  color: #0f766e;
}

.callout-success {
  background: #f0fdf4;
  border-left-color: #10b981;
  color: #15803d;
}

.callout-warning {
  background: #fff7ed;
  border-left-color: var(--orange-accent);
  color: #c2410c;
}

.callout p {
  margin-bottom: 0;
  color: inherit;
  font-size: 0.9375rem;
}

/* Formula & Math Box */
.formula-box {
  background: #f8fafc;
  border: 1.5px solid var(--teal-light);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 24px 0;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: #0f172a;
}

.formula-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 8px;
}

/* Data Tables */
.data-table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}

.data-table th {
  background: #f1f5f9;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--dark);
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: #334155;
}

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

.data-table tr:hover td {
  background: #f8fafc;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
  transition: all 0.15s;
}

.faq-question {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

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

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--teal-primary);
  transition: transform 0.2s;
}

details[open] .faq-question::after {
  content: '−';
  color: var(--orange-accent);
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.7;
}

/* Author Box */
.author-box {
  background: linear-gradient(135deg, #f8fafc 0%, #e0f7fa 100%);
  border: 1px solid #b2ebf2;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 40px 0 20px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.author-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--teal-primary);
  padding: 2px;
  background: #ffffff;
}

.author-info h4 {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 2px;
}

.author-role {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--teal-primary);
  margin-bottom: 8px;
}

.author-bio {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.5;
}

.fact-check-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 8px;
}

/* ==========================================================================
   Footer Section with Vector Wave Transition (from user reference image)
   ========================================================================== */
.site-footer-wrapper {
  margin-top: auto;
  position: relative;
}

.footer-wave-divider {
  width: 100%;
  height: 60px;
  display: block;
  vertical-align: bottom;
  margin-bottom: -1px;
}

.site-footer {
  background: var(--charcoal);
  color: #94a3b8;
  padding: 50px 0 30px;
  border-top: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 14px;
  color: #94a3b8;
  max-width: 320px;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.875rem;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--teal-primary);
}

.footer-disclaimer {
  padding-top: 24px;
  border-top: 1px solid #2d3339;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.8125rem;
  color: #94a3b8;
  padding-top: 18px;
  border-top: 1px solid #2d3339;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.5;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.footer-bottom-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-bottom-links a:hover {
  color: var(--teal-primary);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 16px;
  }
  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  .footer-copyright {
    text-align: center;
    max-width: 100%;
    word-break: break-word;
  }
}

/* Toast message for copy result */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--charcoal);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= Blog & Guides (added 20 Nov 2026) ================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 1200px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; }
}
.blog-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #b2ebf2;
}
.blog-card-img-link { display: block; line-height: 0; }
.blog-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.blog-card-body { padding: 20px 22px 0; flex-grow: 1; }
.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.blog-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.35;
}
.blog-card-title a { color: inherit; }
.blog-card-title a:hover { color: var(--teal-primary); }
.blog-card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 18px;
}
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid var(--border-light);
}
.blog-card-cat { font-size: 0.75rem; font-weight: 600; color: var(--muted); }

/* Related Guides section on tool + post pages */
.related-guides-section { margin: 32px 0 8px; }
.related-guides-section .section-header { margin-bottom: 20px; }

/* Unique "About this calculator" differentiation block */
.diff-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--teal-primary);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  margin: 32px 0 8px;
}
.diff-box h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 14px;
}
.diff-box h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
  margin: 20px 0 8px;
}
.diff-box p { color: #334155; line-height: 1.65; margin-bottom: 12px; }
.diff-box ul, .diff-box ol { color: #334155; line-height: 1.65; margin: 0 0 12px 20px; }

/* Blog post short-answer + sources + disclaimer */
.post-summary-box {
  background: var(--teal-light);
  border: 1px solid #b2ebf2;
  border-left: 4px solid var(--teal-primary);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 28px;
}
.post-summary-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 6px;
}
.post-summary-box p { margin: 0; color: #134e4a; line-height: 1.6; }
.post-sources { margin-top: 36px; }
.post-sources h2 { font-size: 1.25rem; font-weight: 800; color: var(--dark); margin-bottom: 10px; }
.post-sources ul { margin-left: 20px; line-height: 1.7; }
.post-sources a { color: var(--teal-primary); font-weight: 600; }
.post-disclaimer {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.6;
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
  margin-top: 36px;
}
