/* CarTaxCalc Master Design System & Component Styles
   Derived from BRAND.md & ui-ux-pro-max standard.
   Zero external dependencies. System font stack with tabular lining numbers. */

:root {
  --site-accent: #A16207;
  --site-accent-dark: #713F12;
  --site-ink: #0F172A;
  --site-ink-soft: #475569;
  --site-paper: #F8FAFC;
  --site-card: #FFFFFF;
  --site-line: #E2E8F0;
  --site-line-subtle: #F1F5F9;
  --site-badge-yes: #047857;
  --site-badge-no: #DC2626;
  
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-ui);
  color: var(--site-ink);
  background-color: var(--site-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration-skip-ink: auto;
}

/* Tabular Numbers Utility */
.number-tabular,
.hero-total-number,
.breakdown-value,
.data-table td:nth-child(n+2) {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1, "zero" 1;
  font-variant-numeric: tabular-nums;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--site-line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.25rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-accent {
  color: var(--site-accent);
}

/* Header Live Search Autocomplete */
.site-search-wrap {
  position: relative;
  flex: 1 1 18rem;
  max-width: 24rem;
}

.site-search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--site-ink-soft);
  pointer-events: none;
}

.site-search-input {
  width: 100%;
  height: 2.75rem;
  min-height: 44px;
  padding: 0.375rem 0.875rem 0.375rem 2.375rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--site-ink);
  background-color: var(--site-paper);
  border: 1px solid var(--site-line);
  border-radius: 9999px;
  outline: none;
  transition: all 0.15s ease;
}

.site-search-input:focus {
  background-color: #ffffff;
  border-color: var(--site-accent);
  box-shadow: 0 0 0 3px rgba(161, 98, 7, 0.15);
}

.site-search-results {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  right: 0;
  background-color: #ffffff;
  border: 1px solid var(--site-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 22rem;
  overflow-y: auto;
  z-index: 60;
  display: none;
}

.site-search-results.active {
  display: block;
}

.search-item {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--site-line-subtle);
  transition: background-color 0.1s ease;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover, .search-item.highlighted {
  background-color: var(--site-paper);
}

.search-item-title {
  font-weight: 700;
  font-size: 0.925rem;
  color: var(--site-ink);
}

.search-item-sub {
  font-size: 0.775rem;
  color: var(--site-ink-soft);
  margin-top: 0.125rem;
}

/* Nav Menu */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.925rem;
  font-weight: 600;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.375rem 0.75rem;
  color: var(--site-ink);
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--site-accent);
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: 1px solid var(--site-line);
  border-radius: var(--radius-sm);
  color: var(--site-ink);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-nav-panel {
  display: none;
  background-color: #ffffff;
  border-bottom: 1px solid var(--site-line);
  padding: 1rem 1.5rem;
}

.mobile-nav-panel.open {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 0.625rem 0;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--site-line-subtle);
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--site-ink-soft);
  padding-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.breadcrumbs a {
  color: inherit;
  transition: color 0.15s ease;
}

.breadcrumbs a:hover {
  text-decoration: underline;
  color: var(--site-accent-dark);
}

.breadcrumbs span {
  margin: 0 0.35rem;
}

/* Hero Section */
.page-hero {
  padding-top: 1rem;
  padding-bottom: 1.5rem;
  text-align: center;
}

.page-title {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--site-ink);
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .page-title {
    font-size: 2.25rem;
  }
}

.page-desc {
  font-size: 1rem;
  color: var(--site-ink-soft);
  max-width: 42rem;
  margin: 0.75rem auto 0;
  line-height: 1.6;
}

/* ==========================================================================
   2-Column Split Panel Calculator Layout (ui-ux-pro-max Step 2)
   ========================================================================== */
.calc-tool-container {
  margin: 1rem auto 2.5rem;
  max-width: 72rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .calc-grid {
    grid-template-columns: 1fr 24rem;
  }
}

@media (min-width: 1200px) {
  .calc-grid {
    grid-template-columns: 1fr 26rem;
  }
}

/* Inputs Card */
.calc-inputs-card {
  background-color: var(--site-card);
  border: 1px solid var(--site-line);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .calc-inputs-card {
    padding: 1.75rem;
  }
}

.calc-card-head {
  border-bottom: 1px solid var(--site-line-subtle);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.calc-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--site-ink);
}

.calc-card-desc {
  font-size: 0.85rem;
  color: var(--site-ink-soft);
  margin-top: 0.25rem;
}

/* State Presets */
.presets-group {
  margin-bottom: 1.25rem;
}

.presets-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--site-ink);
  margin-bottom: 0.5rem;
}

.presets-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.preset-pill {
  padding: 0.5rem 0.875rem;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  background-color: var(--site-paper);
  border: 1px solid var(--site-line);
  border-radius: 9999px;
  color: var(--site-ink);
  cursor: pointer;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.preset-pill:hover {
  background-color: #ffffff;
  border-color: var(--site-accent);
}

.preset-pill[aria-pressed="true"] {
  background-color: var(--site-ink);
  border-color: var(--site-ink);
  color: #ffffff;
}

.preset-note-box {
  margin-top: 0.625rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.825rem;
  line-height: 1.5;
  color: var(--site-ink-soft);
  background-color: var(--site-paper);
  border-left: 3px solid var(--site-accent);
  border-radius: var(--radius-sm);
}

/* Vehicle Price Highlight & Quick Chips */
.price-field-wrap {
  margin-bottom: 1.25rem;
  padding: 1rem;
  background-color: var(--site-paper);
  border: 1px solid var(--site-line);
  border-radius: var(--radius-lg);
}

.field-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.field-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--site-ink);
}

.field-label span {
  font-weight: 400;
  color: var(--site-ink-soft);
}

.price-chips {
  display: flex;
  gap: 0.375rem;
}

.price-chip {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background-color: #ffffff;
  border: 1px solid var(--site-line);
  border-radius: var(--radius-sm);
  color: var(--site-ink);
  cursor: pointer;
  transition: all 0.15s ease;
}

.price-chip:hover {
  background-color: var(--site-accent);
  border-color: var(--site-accent);
  color: #ffffff;
}

/* Input Fields Grid */
.calc-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .calc-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
}

.calc-input {
  width: 100%;
  height: 2.875rem;
  padding: 0.5rem 0.875rem;
  font-size: 1.05rem;
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1, "zero" 1;
  font-variant-numeric: tabular-nums;
  color: var(--site-ink);
  background-color: #ffffff;
  border: 1.5px solid var(--site-line);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.15s ease;
}

.calc-input:focus {
  border-color: var(--site-accent);
  box-shadow: 0 0 0 3px rgba(161, 98, 7, 0.15);
}

/* Trade-In Credit Card */
.credit-card {
  padding: 1rem;
  border: 1px solid var(--site-line);
  border-radius: var(--radius-lg);
  background-color: #ffffff;
  margin-bottom: 1.25rem;
}

.credit-label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  font-weight: 700;
  font-size: 0.925rem;
  cursor: pointer;
}

.credit-checkbox {
  width: 1.35rem;
  height: 1.35rem;
  accent-color: var(--site-accent);
  cursor: pointer;
}

.credit-desc {
  font-size: 0.8rem;
  color: var(--site-ink-soft);
  margin-top: 0.35rem;
  margin-left: 2rem;
}

/* Form Actions Row */
.calc-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--site-badge-yes);
}

.live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: var(--site-badge-yes);
  display: inline-block;
}

.btn-reset {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--site-ink-soft);
  cursor: pointer;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.btn-reset:hover {
  color: var(--site-ink);
  text-decoration: underline;
}

/* Error Summary */
.error-summary {
  background-color: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.error-summary h2 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--site-badge-no);
  margin-bottom: 0.375rem;
}

.error-summary ul {
  padding-left: 1.25rem;
  font-size: 0.85rem;
  color: #991B1B;
}

/* Right Column: Sticky Live Results Card */
.calc-result-sticky {
  position: static;
}

@media (min-width: 1024px) {
  .calc-result-sticky {
    position: sticky;
    top: 5.5rem;
  }
}

.calc-result-card {
  background-color: #ffffff;
  border: 2px solid var(--site-line);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.result-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--site-line-subtle);
}

.result-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--site-ink);
}

.verified-badge {
  font-size: 0.725rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  background-color: #FEF3C7;
  color: var(--site-accent-dark);
}

/* BLUF Hero Number Box */
.hero-box {
  margin: 1.25rem 0;
  padding: 1.25rem;
  background-color: var(--site-paper);
  border: 1px solid var(--site-line);
  border-radius: var(--radius-lg);
  text-align: center;
}

.hero-box-label {
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--site-ink-soft);
}

.hero-total-number {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--site-ink);
  margin: 0.35rem 0;
}

.hero-box-sub {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--site-accent-dark);
}

/* Breakdown Line Items */
.breakdown-group {
  margin-bottom: 1.25rem;
}

.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--site-line-subtle);
}

.breakdown-row.highlight {
  background-color: #FEF3C7;
  padding: 0.5rem 0.625rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  border-bottom: none;
  margin: 0.25rem 0;
}

.breakdown-name {
  color: var(--site-ink-soft);
}

.breakdown-row.highlight .breakdown-name {
  color: var(--site-ink);
}

.breakdown-value {
  font-weight: 700;
  color: var(--site-ink);
}

.breakdown-value.credit {
  color: var(--site-badge-yes);
}

/* Result Action Buttons */
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.btn-print, .btn-copy {
  height: 2.75rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: var(--radius-md);
  padding: 0.625rem 1.25rem;
  cursor: pointer;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: all 0.15s ease;
}

.calc-result-card .btn-print,
.calc-result-card .btn-copy {
  width: 100%;
}

.btn-print {
  background-color: #047857 !important; /* Rich emerald green */
  color: #ffffff !important; /* Crisp white text */
  border: 1px solid #047857 !important;
  box-shadow: 0 1px 2px rgba(4, 120, 87, 0.15);
}

.btn-print:hover {
  background-color: #065F46 !important; /* Deep forest green */
  border-color: #065F46 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(4, 120, 87, 0.25);
}

.btn-copy {
  background-color: #047857 !important; /* Balanced emerald green */
  color: #ffffff !important; /* Crisp white text */
  border: 1px solid #047857 !important;
  box-shadow: 0 1px 2px rgba(5, 150, 105, 0.15);
}

.btn-copy:hover {
  background-color: #047857 !important;
  border-color: #047857 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.25);
}

/* ==========================================================================
   Data Tables System (Responsive Reflow & Instant Filter)
   ========================================================================== */
.table-filter-wrap {
  position: relative;
  max-width: 22rem;
  margin: 1.25rem 0 1rem;
}

.table-filter-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--site-ink-soft);
  pointer-events: none;
}

.table-filter-input {
  width: 100%;
  height: 2.625rem;
  padding: 0.375rem 0.875rem 0.375rem 2.375rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--site-ink);
  background-color: #ffffff;
  border: 1.5px solid var(--site-line);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.15s ease;
}

.table-filter-input:focus {
  border-color: var(--site-accent);
  box-shadow: 0 0 0 3px rgba(161, 98, 7, 0.15);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border: 1px solid var(--site-line);
  border-radius: var(--radius-lg);
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
}

.data-table th {
  background-color: var(--site-paper);
  color: var(--site-ink);
  font-weight: 800;
  padding: 0.875rem 1.125rem;
  border-bottom: 2px solid var(--site-line);
  white-space: nowrap;
}

.data-table td {
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid var(--site-line-subtle);
  color: var(--site-ink);
}

.data-table tbody tr:nth-child(even) {
  background-color: #FAFAFA;
}

.data-table tbody tr:hover {
  background-color: #FEF9C3;
}

.table-badge-yes, .table-badge-no {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.775rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.table-badge-yes {
  background-color: #DCFCE7;
  color: #166534;
}

.table-badge-no {
  background-color: #FEE2E2;
  color: #991B1B;
}

/* ==========================================================================
   Editorial Content & BLUF Styling
   ========================================================================== */
.article-container {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 3.5rem;
}

.bluf-box {
  background-color: #FEF9C3;
  border-left: 4px solid var(--site-accent);
  border-radius: var(--radius-md);
  padding: 1.125rem 1.375rem;
  margin: 1.5rem 0 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.bluf-box strong {
  color: var(--site-accent-dark);
}

/* ==========================================================================
   Editorial Content & Typography Architecture (ui-ux-pro-max + unslop)
   Applies to .guide-content, .article-body, and .page-body across all 45 pages
   ========================================================================== */

.guide-content,
.article-body,
.page-body {
  width: 100%;
  margin-top: 1.25rem;
  margin-bottom: 3.5rem;
  font-size: 1.0625rem; /* 17px: clean, comfortable editorial reading size */
  line-height: 1.8; /* Generous, eye-friendly leading */
  color: #334155; /* Slate-700: soft, rich contrast that reduces visual fatigue */
  letter-spacing: -0.011em;
}

.guide-content p,
.article-body p,
.page-body p {
  margin-top: 0;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: #334155;
}

.guide-content h2,
.article-body h2,
.page-body h2 {
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--site-ink);
  margin-top: 2.75rem;
  margin-bottom: 1.125rem;
  padding-left: 0.875rem;
  border-left: 3.5px solid var(--site-accent);
}

.guide-content h2:first-child,
.article-body h2:first-child,
.page-body h2:first-child {
  margin-top: 0.5rem;
}

.guide-content h3,
.article-body h3,
.page-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--site-ink);
  margin-top: 2.25rem;
  margin-bottom: 0.875rem;
}

.guide-content ul,
.article-body ul,
.page-body ul {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0 2rem 0;
}

.guide-content ul > li,
.article-body ul > li,
.page-body ul > li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1.125rem;
  line-height: 1.75;
  color: #334155;
}

.guide-content ul > li::before,
.article-body ul > li::before,
.page-body ul > li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.65rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--site-accent);
}

.guide-content ol,
.article-body ol,
.page-body ol {
  padding-left: 1.5rem;
  margin: 1.5rem 0 2rem 0;
}

.guide-content ol > li,
.article-body ol > li,
.page-body ol > li {
  padding-left: 0.5rem;
  margin-bottom: 1.125rem;
  line-height: 1.75;
  color: #334155;
}

.guide-content li strong,
.article-body li strong,
.page-body li strong {
  color: var(--site-ink);
  font-weight: 700;
}

.guide-content blockquote,
.article-body blockquote,
.page-body blockquote {
  background-color: #FFFFFF;
  border: 1px solid var(--site-line);
  border-left: 4px solid var(--site-accent);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--site-ink);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.guide-content a,
.article-body a,
.page-body a {
  color: var(--site-accent-dark);
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: 1.5px solid rgba(161, 98, 7, 0.35);
  transition: all 0.15s ease;
}

.guide-content a:hover,
.article-body a:hover,
.page-body a:hover {
  color: var(--site-accent);
  border-bottom-color: var(--site-accent);
}

/* Explicitly exempt all cards, buttons, badges, chips, pills, and footer links from underlines */
.portal-card,
.portal-card *,
.btn-print,
.btn-print *,
.btn-copy,
.btn-copy *,
.btn-reset,
.preset-pill,
.price-chip,
.brand-link,
.brand-link *,
.nav-link,
.mobile-nav-link,
.footer-links a,
.footer-bottom a,
.data-table a,
.breadcrumb-link {
  text-decoration: none !important;
  border-bottom: none !important;
}

/* Worked Scenarios Card */
.scenario-card {
  background-color: #ffffff;
  border: 1px solid var(--site-line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

.scenario-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--site-ink);
  margin-bottom: 0.5rem;
}

/* Portal Grid */
.portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .portal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .portal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portal-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem;
  background-color: #ffffff;
  border: 1px solid var(--site-line);
  border-radius: var(--radius-lg);
  text-decoration: none !important;
  border-bottom: none !important;
  color: inherit !important;
  transition: all 0.15s ease;
}

.portal-card:hover {
  border-color: var(--site-accent);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
  text-decoration: none !important;
  border-bottom: none !important;
}

.portal-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--site-ink) !important;
  text-decoration: none !important;
  border-bottom: none !important;
}

.portal-card-desc {
  font-size: 0.875rem;
  color: var(--site-ink-soft) !important;
  margin-top: 0.5rem;
  line-height: 1.6;
  flex-grow: 1;
  text-decoration: none !important;
  border-bottom: none !important;
}

.portal-card-action {
  font-size: 0.875rem;
  font-weight: 700;
  color: #047857 !important; /* Green action prompt matching buttons */
  margin-top: 1rem;
  text-decoration: none !important;
  border-bottom: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.portal-card:hover .portal-card-action {
  color: #065F46 !important;
  text-decoration: none !important;
  border-bottom: none !important;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--site-line);
  padding-top: 3rem;
  padding-bottom: 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--site-ink-soft);
  margin-bottom: 0.875rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--site-ink-soft);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--site-accent);
}

.footer-bottom {
  border-top: 1px solid var(--site-line-subtle);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--site-ink-soft);
  line-height: 1.6;
}

@media print {
  .no-print, .site-header, .site-footer, .result-actions {
    display: none !important;
  }
}

/* Hero section layout */
.hero-section {
  padding: 2.75rem 0 1.5rem;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  background-color: rgba(161, 98, 7, 0.09);
  border: 1px solid rgba(161, 98, 7, 0.2);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--site-accent-dark);
  margin-bottom: 0.875rem;
}
.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--site-ink);
  margin: 0 0 1rem;
}
@media (min-width: 640px) {
  .hero-title { font-size: 2.75rem; }
}
.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--site-ink-soft);
  max-width: 56rem;
  margin: 0 0 1.5rem;
}
.page-desc { line-height: 1.75; }
.portal-card-desc { line-height: 1.6; }
