/*
Theme Name: SalaryCal Theme
Description: Custom theme for SalaryCal - Design Only
Author: Antigravity
Version: 1.3
*/
/* UK Salary Calculator — GOV.UK Inspired styles.css */

:root {
  --font: "GDS Transport", Arial, sans-serif;
  --display: "GDS Transport", Arial, sans-serif;
  --mono: monospace;
  --sidebar-w: 260px;
  --sidebar-bg: #1d70b8;
  --sidebar-bg-solid: #1d70b8;
  --sidebar-text: #ffffff;
  --sidebar-text2: #e5e6e7;
  --sidebar-hover: #003078;
  --sidebar-active: #003078;
  --sidebar-accent: #ffffff;
  --sidebar-border: transparent;
  --teal: #1d70b8;
}

/* ---- Light (Gov.UK) ---- */
[data-theme="light"],
:root {
  --bg: #ffffff;
  --bg-page: #ffffff;
  --bg-alt: #f3f2f1;
  --text: #0b0c0c;
  --text2: #0b0c0c;
  --text3: #505a5f;
  --line: #b1b4b6;
  --line2: #b1b4b6;
  --accent: #1d70b8;
  --accent-bg: #f3f2f1;
  --accent-border: #1d70b8;
  --input-bg: #ffffff;
  --input-border: #0b0c0c;
  --input-focus: #ffdd00;
  --green: #00703d;
  --green-bg: #e5f1ec;
  --red: #d4351c;
  --red-bg: #fdf2f2;
  --hover: #f3f2f1;
  --shadow: none;
}

/* ---- Dark (High Contrast Equivalent) ---- */
[data-theme="dark"] {
  --bg: #0b0c0c;
  --bg-page: #0b0c0c;
  --bg-alt: #1d1d1d;
  --text: #ffffff;
  --text2: #ffffff;
  --text3: #b1b4b6;
  --line: #b1b4b6;
  --line2: #b1b4b6;
  --accent: #69b1fa;
  --accent-bg: #1d1d1d;
  --accent-border: #69b1fa;
  --input-bg: #0b0c0c;
  --input-border: #ffffff;
  --input-focus: #ffdd00;
  --green: #00a35c;
  --green-bg: #1d1d1d;
  --red: #f87171;
  --red-bg: #1d1d1d;
  --hover: #1d1d1d;
  --shadow: none;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text);
  line-height: 1.5;
  display: flex;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--sidebar-bg);
  position: fixed;
  top: 0;
  left: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .12) transparent;
  -ms-overflow-style: -ms-autohiding-scrollbar;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

/* ---- Logo area ---- */
.sidebar-brand {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 3px solid var(--sidebar-accent);
}

.brand-logo-link {
  display: block;
  margin-bottom: 12px;
}

.brand-logo {
  display: block !important;
  width: 140px !important;
  height: 48px !important;
  max-width: 140px !important;
  max-height: 48px !important;
  object-fit: contain !important;
  border-radius: 4px !important;
  overflow: hidden;
}

.sidebar-brand .brand-sub {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  display: block;
  margin-bottom: 2px;
}

.sidebar-brand .brand-main {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  display: block;
  line-height: 1.1;
  text-shadow: none;
}

.sidebar-brand .brand-line {
  display: none;
}

/* ---- Divider ---- */
.sidebar-divider {
  display: none;
}

/* ---- Nav links ---- */
.sidebar-nav {
  padding: 4px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

/* ---- Accordion groups ---- */
.sidebar-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: background 0.15s;
}

.sidebar-cat:hover {
  background: rgba(255, 255, 255, 0.08);
}

.cat-arrow {
  font-size: 0.7rem;
  transition: transform 0.25s ease;
  opacity: 0.7;
}

.sidebar-group.open .cat-arrow {
  transform: rotate(180deg);
}

.sidebar-links {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.sidebar-group.open .sidebar-links {
  max-height: 600px;
}

.sidebar-nav a {
  display: block;
  padding: 11px 20px 11px 44px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sidebar-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.12s, padding-left 0.15s;
  border-radius: 0;
}

.sidebar-nav a::before {
  display: none;
}

.sidebar-nav a:hover {
  background: var(--sidebar-hover);
  color: #ffffff;
  padding-left: 36px;
  transform: none;
}

.sidebar-nav a.active {
  background: var(--bg);
  color: var(--text);
  border: none;
  box-shadow: none;
  position: relative;
  font-weight: 700;
}

.sidebar-nav a.active:hover {
  color: var(--accent);
}

.sidebar-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
}

/* ---- Bottom of sidebar ---- */
.sidebar-footer {
  padding: 16px 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, .05);
  background: rgba(0, 0, 0, 0.1);
}

.theme-switch {
  width: 100%;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  color: var(--sidebar-text2);
  font-size: .75rem;
  font-weight: 600;
  font-family: var(--font);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-switch:hover {
  background: var(--sidebar-hover);
  border-color: var(--sidebar-accent);
  color: var(--sidebar-text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.05);
}

/* ============================================================
   MOBILE TOP BAR (visible < 768px)
   ============================================================ */
.mobile-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--sidebar-bg-solid);
  z-index: 110;
  flex-direction: column;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mob-top-row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mob-logo {
  height: 40px;
  width: auto;
  display: block;
}

.mob-rolling-nav {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.mob-nav-inner {
  display: flex;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  align-items: center;
  -ms-overflow-style: none;
}

.mob-nav-inner::-webkit-scrollbar {
  display: none;
}

.mob-nav-item {
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 14px 15px;
  white-space: nowrap;
  letter-spacing: 1px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  opacity: 0.8;
}

.mob-nav-item.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
}

.mob-nav-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}


/* Rolling Motion / Slide Transition for Mobile Sections */
.calc-section {
  display: none;
}

.calc-section.active {
  display: block;
  opacity: 1;
  animation: slideRoll 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideRoll {
  from {
    transform: translateX(20px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  width: calc(100% - var(--sidebar-w));
  max-width: 100%;
  padding: 40px 40px 60px;
  box-sizing: border-box;
}

.main-content>.calc-section,
.main-content>footer {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.section-desc {
  color: var(--text2);
  font-size: .88rem;
  margin-bottom: 22px;
  max-width: 580px;
}

/* ---- Tools Grid (Home Page) ---- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.tools-category {
  background: var(--accent-bg);
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.tools-cat-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

.tools-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tools-list li {
  margin-bottom: 8px;
}

.tools-list a {
  color: var(--accent);
  font-size: 0.85rem;
  text-decoration: none;
  display: block;
  padding: 4px 0;
  transition: all 0.15s ease;
}

.tools-list a:hover {
  color: var(--text);
  text-decoration: underline;
  padding-left: 4px;
}

.extra-salary {
  display: none;
}

.show-more-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  text-align: left;
  display: block;
  font-family: var(--font);
}

.show-more-btn:hover {
  text-decoration: underline;
  color: var(--text);
}

.home-description {
  background: var(--accent-bg);
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  margin-top: 30px;
}

.home-description h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.home-description p {
  color: var(--text2);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.home-description p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   PANELS
   ============================================================ */
.panel {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 24px;
  margin-bottom: 24px;
}

.panel-label {
  font-size: .7rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ============================================================
   LAYOUTS
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.form-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* ============================================================
   FORM INPUTS
   ============================================================ */
.field {
  margin-bottom: 10px;
}

.field label {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 3px;
}

.field input,
.field select {
  width: 100%;
  padding: 10px 12px;
  font-size: 1.1rem;
  font-family: var(--font);
  background: var(--input-bg);
  color: var(--text);
  border: 2px solid var(--input-border);
  outline: none;
  border-radius: 0;
}

.field input:focus,
.field select:focus {
  border-color: var(--input-border);
  outline: 3px solid var(--input-focus);
  outline-offset: 0;
}

.field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2378716c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.field input::placeholder {
  color: var(--text3);
}

.field-row {
  display: flex;
  gap: 10px;
}

.field-row .field {
  flex: 1;
  min-width: 0;
}

/* Salary input */
.salary-hero {
  position: relative;
  margin-bottom: 12px;
}

.salary-hero .pound {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.salary-hero input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font);
  background: var(--input-bg);
  border: 2px solid var(--input-border);
  color: var(--text);
  outline: none;
  border-radius: 0;
}

.salary-hero input:focus {
  border-color: var(--input-border);
  outline: 3px solid var(--input-focus);
  outline-offset: 0;
}

/* Checkboxes */
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.check-item:hover {
  background: var(--hover);
}

.check-item input[type="checkbox"] {
  width: 24px;
  height: 24px;
  margin: 0;
}

/* Toggle (advanced options) */
.toggle-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: .78rem;
  font-family: var(--font);
  cursor: pointer;
  padding: 0;
  margin-bottom: 8px;
}

.toggle-btn:hover {
  text-decoration: underline;
}

.collapsible {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s;
}

.collapsible.open {
  max-height: 600px;
}

/* ============================================================
   RESULTS
   ============================================================ */
.results-container {
  opacity: 0;
  transition: opacity .25s;
}

.results-container.visible {
  opacity: 1;
}

.result-hero {
  text-align: center;
  padding: 24px 14px;
  background: var(--accent);
  border: none;
  margin-bottom: 24px;
}

.result-hero .label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 6px;
  font-weight: 700;
}

.result-hero .value {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font);
}

/* Tables */
.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
  min-width: 280px;
  /* Ensure table doesn't collapse too much */
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 10px;
}

.results-table th {
  text-align: right;
  padding: 7px 8px;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text3);
  border-bottom: 2px solid var(--line);
  font-weight: 600;
}

.results-table th:first-child {
  text-align: left;
}

.results-table td {
  padding: 6px 8px;
  text-align: right;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--text2);
  border-bottom: 1px solid var(--line);
}

.results-table td:first-child {
  text-align: left;
  font-family: var(--font);
  font-weight: 500;
  color: var(--text);
}

.results-table tr:last-child td {
  border-bottom: none;
}

.results-table tr.net-row td {
  font-weight: 700;
  color: var(--accent);
  border-top: 2px solid var(--line);
  font-size: .85rem;
}

.results-table tr:hover td {
  background: var(--hover);
}

.band-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-size: .78rem;
}

.band-name {
  color: var(--text2);
}

.band-amount {
  font-family: var(--mono);
  color: var(--text);
}

.diff-cell {
  font-family: var(--mono);
  font-weight: 600;
}

.diff-cell.positive {
  color: var(--green);
}

.diff-cell.negative {
  color: var(--red);
}

.savings-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 14px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .9rem;
}

.savings-badge.positive {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green);
}

.savings-badge.negative {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid var(--red);
}

.chart-box {
  position: relative;
  height: 250px;
  margin-top: 10px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 20px;
  background: var(--green);
  color: #fff;
  border: none;
  box-shadow: 0 4px 0 #002d18;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
}

.btn:active {
  margin-top: 4px;
  box-shadow: none;
}

.btn:focus {
  outline: 3px solid var(--input-focus);
}

.btn:hover {
  background: #005a30;
}

.btn-outline {
  background: none;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}

.btn-del {
  background: none;
  border: 1px solid var(--line);
  color: var(--text3);
  border-radius: 3px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .72rem;
}

.btn-del:hover {
  border-color: var(--red);
  color: var(--red);
}

/* Debt rows */
.debt-row {
  margin-bottom: 10px;
}

.debt-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.debt-label {
  font-weight: 600;
  font-size: .82rem;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.blog-card h2 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 3px;
  line-height: 1.4;
}

.blog-tag {
  display: inline-block;
  padding: 2px 7px;
  background: var(--accent-bg);
  border-radius: 3px;
  font-size: .65rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}

.blog-meta {
  font-size: .7rem;
  color: var(--text3);
  margin-bottom: 10px;
}

.blog-content {
  color: var(--text2);
  font-size: .82rem;
  line-height: 1.6;
}

.blog-content p {
  margin-bottom: 8px;
}

.blog-content h3 {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin: 12px 0 4px;
}

.blog-content ul {
  margin: 4px 0 8px 16px;
}

.blog-content li {
  margin-bottom: 2px;
}

.blog-content li strong {
  color: var(--text);
}

/* ---- SEO Section ---- */
.seo-section {
  background: var(--bg);
  padding: 40px 40px 30px;
  margin: 40px 0 0;
  border-top: 1px solid var(--line);
}

.seo-section .calc-section {
  display: block;
}

.seo-section .blog-content {
  max-width: 960px;
  margin: 0 auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding: 24px 0 14px;
  font-size: .75rem;
  color: var(--text3);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text2);
  margin-bottom: 6px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 3px;
}

.footer-col a {
  color: var(--text3);
  font-size: .75rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-copy {
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.footer-copy a {
  color: var(--text3);
}

/* ============================================================
   HOW-TO GUIDES
   ============================================================ */
.how-to {
  margin-bottom: 30px;
  background: #ffffff;
  border: none;
  border-left: 5px solid var(--accent);
  padding: 16px 24px;
}

.how-to-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.how-to .panel-label {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0;
  text-decoration: underline;
}

.how-to-toggle {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1rem;
  font-family: var(--font);
  cursor: pointer;
  padding: 4px 8px;
  text-decoration: underline;
}

.how-to-toggle:hover {
  background: var(--accent-border);
}

.how-to-body {
  overflow: hidden;
  max-height: 300px;
  transition: max-height .3s ease, margin-top .3s ease;
  margin-top: 12px;
}

.how-to-body.collapsed {
  max-height: 0;
  margin-top: 0;
}

.how-to ol {
  margin: 0 0 0 18px;
  color: var(--text2);
  font-size: .82rem;
  line-height: 1.7;
  columns: 2;
  column-gap: 32px;
}

.how-to ol li {
  padding-left: 4px;
  margin-bottom: 2px;
  break-inside: avoid;
}

.how-to ol li::marker {
  color: var(--accent);
  font-weight: 700;
}

.how-to ol li strong {
  color: var(--text);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {

  .form-results,
  .compare-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .main-content {
    padding: 28px 20px 50px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .sidebar.open {
    display: flex;
  }

  .mobile-bar {
    display: flex;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 120px 12px 50px;
    /* Reduced from 16px to 12px for more content space */
  }

  .panel {
    padding: 16px;
    /* Reduced from 24px for mobile */
  }

  .result-hero {
    padding: 18px 10px;
  }

  .result-hero .value {
    font-size: 1.8rem;
    /* Slightly smaller for mobile */
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .three-col {
    grid-template-columns: 1fr 1fr;
  }

  .field-row {
    flex-direction: column;
    gap: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-title {
    font-size: 1.15rem;
  }

  .result-hero .value {
    font-size: 1.4rem;
  }
}

@media (max-width: 440px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .three-col {
    grid-template-columns: 1fr;
  }
}

/* ─── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
  padding: 4px 0 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  font-size: 0.8rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  white-space: nowrap;
}

.breadcrumb-list::-webkit-scrollbar {
  display: none;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  color: var(--text3);
  flex-shrink: 0;
}

.breadcrumb-item+li::before {
  content: '›';
  margin: 0 8px;
  color: var(--text3);
  font-weight: 700;
  font-size: 1rem;
}

.breadcrumb-item a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb-item[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

/* ============================================================
   SEO CONTENT BLOCK  (per-page content below calculators)
   ============================================================ */
.seo-section {
  max-width: 960px;
  margin: 40px auto 0;
  padding: 0;
}

.seo-section .section-title {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.blog-content {
  color: var(--text2);
  font-size: .88rem;
  line-height: 1.7;
}

.blog-content h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin: 18px 0 8px;
}

.blog-content p {
  margin-bottom: 12px;
}

.blog-content p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.u-accent-mono {
  color: var(--accent);
  font-family: var(--mono);
}

.u-mt-6 { margin-top: 6px; }
.u-mt-12 { margin-top: 12px; }
.u-mt-14 { margin-top: 14px; }
.u-mt-16 { margin-top: 16px; }
.u-mb-12 { margin-bottom: 12px; }
.u-mb-16 { margin-bottom: 16px; }
.u-ml-16 { margin-left: 16px; }

.u-max-w-300 { max-width: 300px; }
.u-min-h-120 { min-height: 120px; }
.u-text-muted { color: var(--text3); }
.u-text-center { text-align: center; }

.u-h-280 { height: 280px; }
.u-h-300 { height: 300px; }

.u-about-text {
  color: var(--text2);
  font-size: .85rem;
  line-height: 1.7;
}

.u-about-list {
  color: var(--text2);
  font-size: .85rem; line-height: 1.8;
}

.u-tax-code-input {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  padding: 14px;
}

