:root {
  color-scheme: light;
  --ink: #1f261f;
  --muted: #6f7669;
  --line: #e0d8c8;
  --soft-line: #ebe3d4;
  --surface: #fbf6ea;
  --wash: #f3eadb;
  --navy: #183326;
  --teal: #1f5a3d;
  --teal-ink: #16422d;
  --gold: #b8872f;
  --gold-soft: #f4ead8;
  --danger: #9a3412;
  --shadow: 0 18px 50px rgba(31, 38, 31, 0.08);
  --radius: 8px;
  font-family: Georgia, "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(31, 90, 61, 0.08), transparent 260px),
    var(--surface);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(220px, 1fr);
  gap: 28px;
  align-items: center;
  min-height: 72px;
  padding: 0 34px;
  border-bottom: 1px solid rgba(17, 32, 51, 0.09);
  background: rgba(251, 246, 234, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 760;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 24px;
  border: 2px solid var(--navy);
  border-radius: 7px;
  background:
    linear-gradient(90deg, var(--gold) 0 28%, transparent 28%),
    linear-gradient(135deg, rgba(31, 90, 61, 0.18), rgba(184, 135, 47, 0.22));
  box-shadow: 5px 5px 0 rgba(31, 90, 61, 0.14);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav a {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: var(--navy);
  background: var(--wash);
}

.search {
  justify-self: end;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: min(100%, 320px);
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.search svg,
.filter-title svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
}

.header-action,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: var(--radius);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 780;
  text-decoration: none;
  white-space: nowrap;
}

.header-action,
.secondary-button {
  border: 1px solid var(--line);
  color: var(--teal-ink);
  background: var(--surface);
}

.primary-button {
  border: 1px solid var(--teal);
  color: #fff;
  background: var(--teal);
  box-shadow: 0 14px 30px rgba(31, 90, 61, 0.16);
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(430px, 1fr);
  gap: 22px;
  align-items: start;
  width: min(1500px, calc(100% - 44px));
  margin: 28px auto 40px;
}

.app-shell.filters-minimized {
  grid-template-columns: 64px minmax(0, 1fr);
}

.filters,
.compare-pane {
  position: sticky;
  top: 94px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 246, 234, 0.95);
  box-shadow: var(--shadow);
}

.filters {
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
  scrollbar-gutter: stable;
  scrollbar-color: var(--teal) var(--surface);
}

.filters::-webkit-scrollbar {
  width: 13px;
}

.filters::-webkit-scrollbar-track {
  background: var(--surface);
}

.filters::-webkit-scrollbar-thumb {
  border: 3px solid var(--surface);
  border-radius: 999px;
  background: var(--teal);
}

.filters::-webkit-scrollbar-button {
  background-color: var(--surface);
}

.filters::-webkit-scrollbar-button:single-button {
  background-color: var(--surface);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 8px;
}

.filters::-webkit-scrollbar-button:single-button:vertical:decrement {
  background-image: linear-gradient(45deg, transparent 50%, var(--teal) 50%), linear-gradient(135deg, var(--teal) 50%, transparent 50%);
}

.filters::-webkit-scrollbar-button:single-button:vertical:increment {
  background-image: linear-gradient(225deg, transparent 50%, var(--teal) 50%), linear-gradient(315deg, var(--teal) 50%, transparent 50%);
}

.filters.minimized {
  overflow: hidden;
  padding: 14px;
  scrollbar-gutter: auto;
}

.panel-heading,
.compare-header,
.list-toolbar,
.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

h2,
h3,
p {
  margin: 0;
}

.panel-heading h2,
.compare-header h2 {
  font-size: 18px;
  line-height: 1.2;
}

.text-button {
  border: 0;
  padding: 0;
  color: var(--teal-ink);
  background: transparent;
  font-size: 13px;
  font-weight: 720;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--teal-ink);
  background: var(--surface);
}

.icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.filters.minimized .panel-heading {
  justify-content: center;
}

.filters.minimized .panel-heading h2,
.filters.minimized #clearFilters,
.filters.minimized .filter-group {
  display: none;
}

.filters.minimized #toggleFilters svg {
  transform: rotate(180deg);
}

.filter-group {
  padding: 18px 0;
  border-top: 1px solid var(--soft-line);
}

.filter-group:first-of-type {
  margin-top: 14px;
}

.filter-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: 0;
  padding: 0 0 12px;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 760;
}

.filter-title svg {
  transition: transform 160ms ease;
}

.filter-title[aria-expanded="false"] svg {
  transform: rotate(180deg);
}

.filter-group.collapsed > :not(.filter-title) {
  display: none;
}

.check-list {
  display: grid;
  gap: 10px;
}

.additional-filter-list {
  margin-top: 10px;
}

.check-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.check-row b {
  color: var(--ink);
  font-weight: 650;
}

.count {
  color: #91a0ae;
  font-size: 12px;
}

.range-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 50px;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
}

.range-row input {
  accent-color: var(--teal);
}

.cards-pane {
  min-width: 0;
}

#cards,
#compare {
  scroll-margin-top: 260px;
}

.list-toolbar {
  min-height: 66px;
  margin-bottom: 14px;
  padding: 2px 2px 0;
}

.app-shell.filters-minimized .list-toolbar {
  margin-left: 216px;
}

.result-count {
  font-size: 26px;
  line-height: 1.05;
  font-weight: 760;
  color: var(--navy);
}

.subtle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.sort-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.toolbar-actions,
.compare-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 34px 0 12px;
  color: var(--ink);
  background: var(--surface);
  font-size: 13px;
  font-weight: 650;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.credit-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
  align-items: stretch;
  min-height: 520px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(17, 32, 51, 0.04);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.credit-card:hover,
.credit-card:focus-visible {
  border-color: rgba(31, 90, 61, 0.42);
  box-shadow: 0 14px 34px rgba(17, 32, 51, 0.09);
  outline: 0;
  transform: translateY(-1px);
}

.credit-card.selected {
  border-color: rgba(31, 90, 61, 0.62);
  box-shadow: 0 12px 36px rgba(31, 90, 61, 0.14);
}

.card-media {
  display: grid;
  place-items: center;
  min-height: 190px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at center, rgba(31, 90, 61, 0.1) 0 36%, transparent 37%),
    linear-gradient(180deg, rgba(243, 234, 219, 0.72), rgba(251, 246, 234, 0.2));
}

.card-art {
  position: relative;
  width: min(220px, 72%);
  height: 138px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #173653, #0d7878 58%, #d1a14b);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.card-art.has-image {
  display: grid;
  place-items: center;
  background: transparent;
  box-shadow: none;
}

.card-art.has-image.is-portrait {
  height: 178px;
  background: transparent;
}

.card-art::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
}

.card-art.has-image::before,
.card-art.has-image .card-chip,
.card-art.has-image .card-network {
  display: none;
}

.card-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(17, 32, 51, 0.15));
}

.card-art.is-portrait img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 178px;
}

.card-chip {
  position: absolute;
  top: 16px;
  left: 14px;
  width: 22px;
  height: 16px;
  border-radius: 4px;
  background: rgba(250, 231, 166, 0.92);
}

.card-network {
  position: absolute;
  right: 14px;
  bottom: 13px;
  width: 26px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.card-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-title-row {
  align-items: flex-start;
}

.card-title-row h3 {
  color: var(--navy);
  font-size: 21px;
  line-height: 1.25;
}

.rating {
  color: var(--gold);
  font-size: 13px;
  font-weight: 780;
  white-space: nowrap;
}

.issuer,
.fee,
.bonus {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.fee {
  display: grid;
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: rgba(243, 234, 219, 0.72);
  color: var(--teal-ink);
  font-weight: 720;
}

.bonus {
  color: var(--ink);
  font-weight: 650;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
  padding-top: 2px;
}

.tag {
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  padding: 5px 7px;
  color: var(--muted);
  background: var(--wash);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

.compare-toggle {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 1;
  min-height: 36px;
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--teal-ink);
  background: rgba(251, 246, 234, 0.94);
  font-size: 13px;
  font-weight: 780;
}

.compare-toggle[aria-pressed="true"] {
  color: #fff;
  background: var(--teal);
}

.compare-toggle:disabled {
  border-color: var(--line);
  color: #9aa5af;
  background: var(--wash);
  cursor: not-allowed;
}

.compare-pane {
  padding: 18px;
  overflow: auto;
}

.compare-page-shell {
  width: min(1220px, calc(100% - 44px));
  margin: 34px auto 46px;
}

.compare-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 22px;
}

.compare-page-header h1 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.03;
  letter-spacing: 0;
}

.compare-page-header p {
  max-width: 720px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.section-label {
  color: var(--teal-ink);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
}

.compare-page-pane {
  position: static;
  max-height: none;
}

.compare-table {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 380px;
  padding: 34px;
  text-align: center;
  background: var(--wash);
}

.empty-state h3 {
  font-size: 19px;
  color: var(--navy);
}

.empty-state p {
  max-width: 320px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.empty-state .primary-button {
  margin-top: 18px;
}

.compare-grid {
  display: grid;
  grid-template-columns: 160px repeat(var(--compare-columns), minmax(210px, 1fr));
  min-width: 100%;
  background: var(--surface);
}

.compare-cell {
  min-height: 62px;
  padding: 12px;
  border-right: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.compare-label {
  color: var(--muted);
  background: var(--wash);
  font-size: 12px;
  font-weight: 760;
}

.compare-card-head {
  min-height: 132px;
  background: linear-gradient(180deg, #fbf6ea, #f5eedf);
}

.compare-card-image {
  display: block;
  width: min(142px, 100%);
  height: 78px;
  margin-bottom: 12px;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(17, 32, 51, 0.12));
}

.compare-card-image-link {
  display: inline-block;
  border-radius: var(--radius);
}

.compare-card-image-link:focus-visible {
  outline: 3px solid rgba(31, 90, 61, 0.3);
  outline-offset: 4px;
}

.compare-card-head strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.25;
}

.compare-card-head span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.remove-card {
  margin-top: 12px;
  border: 0;
  padding: 0;
  color: var(--danger);
  background: transparent;
  font-size: 12px;
  font-weight: 760;
}

.disclaimer {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.mobile-compare-link {
  display: none;
}

.product-page-shell {
  background:
    linear-gradient(180deg, rgba(31, 90, 61, 0.08), transparent 280px),
    var(--surface);
  color: var(--ink);
  min-height: calc(100vh - 72px);
}

.product-page {
  width: min(1760px, calc(100% - 44px));
  margin: 0 auto;
  padding: 56px 0 64px;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
  justify-content: stretch;
  gap: 46px;
  align-items: start;
}

.product-hero-copy {
  grid-column: 2;
  display: grid;
  gap: 0;
}

.product-hero-copy h1 {
  max-width: 1080px;
  margin: 18px 0 20px;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.04;
  letter-spacing: 0;
  text-align: left;
}

.trademark {
  position: relative;
  top: -0.15em;
  font-size: 0.34em;
  line-height: 0;
}

.back-link {
  justify-self: start;
  color: var(--teal-ink);
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.product-lede {
  max-width: 840px;
  margin-bottom: 26px;
  margin-right: 0;
  margin-left: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  text-align: left;
}

.product-metrics {
  gap: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.product-metric {
  min-height: 124px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 246, 234, 0.96);
  box-shadow: 0 12px 34px rgba(31, 38, 31, 0.05);
  text-align: center;
}

.product-metric + .product-metric {
  border-left: 1px solid var(--line);
}

.product-metric strong {
  color: var(--teal);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
}

.product-metric span,
.product-metric small {
  margin-top: 7px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.product-metric small {
  color: var(--teal-ink);
  font-size: 11px;
  text-transform: none;
}

.product-detail-panel,
.product-apply-card,
.product-source-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 246, 234, 0.96);
  box-shadow: 0 12px 34px rgba(31, 38, 31, 0.05);
}

.product-detail-panel {
  padding: 26px 30px;
  border-top: 0;
}

.product-detail-panel:first-of-type {
  margin-top: 0;
}

.product-detail-panel h2,
.product-section-heading h2,
.product-source-panel h2 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.15;
}

.product-detail-panel h2 {
  margin-bottom: 16px;
}

.calculation-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

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

.calculation-card {
  display: grid;
  gap: 7px;
  align-content: start;
  min-height: 154px;
  padding: 16px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--wash);
}

.calculation-card strong {
  color: var(--teal);
  font-size: 28px;
  line-height: 1;
}

.calculation-card span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
}

.calculation-card small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.feature-list,
.plain-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.45;
}

.feature-list li::marker {
  color: var(--teal);
}

.plain-list li::marker {
  color: var(--gold);
}

.positive-list li::marker {
  color: var(--teal);
}

.caution-list li::marker {
  color: var(--gold);
}

.rate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rate-card {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--wash);
}

.rate-card strong {
  color: var(--teal);
  font-size: 28px;
  line-height: 1;
}

.rate-card span {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.product-apply-card {
  position: sticky;
  top: 102px;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  display: grid;
  gap: 18px;
  padding: 34px;
  text-align: center;
  box-shadow: 0 28px 80px rgba(31, 38, 31, 0.12);
}

.product-card-stage {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 0.88;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at center, rgba(31, 90, 61, 0.12) 0 42%, transparent 43%),
    linear-gradient(180deg, var(--wash), #efe4d1);
}

.product-card-stage img {
  width: min(72%, 360px);
  object-fit: contain;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.34));
}

.product-apply-card h2 {
  color: var(--navy);
  font-size: 26px;
  line-height: 1.15;
}

.apply-points {
  color: var(--teal-ink);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 760;
}

.apply-button,
.apply-secondary {
  width: 100%;
  min-height: 56px;
  font-size: 15px;
}

.apply-button {
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: 0 18px 46px rgba(31, 90, 61, 0.22);
}

.apply-secondary {
  color: var(--teal-ink);
  border-color: var(--line);
  background: var(--surface);
}

.product-terms {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.product-content-band,
.product-two-column,
.product-source-panel {
  margin-top: 34px;
}

.product-page .section-label {
  color: var(--teal-ink);
}

.product-section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.benefit-card {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(251, 246, 234, 0.96);
  font-size: 16px;
  line-height: 1.45;
}

.product-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-two-column .product-detail-panel {
  border-top: 1px solid var(--line);
}

.product-source-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 28px 30px;
}

.product-source-panel p:not(.section-label) {
  max-width: 760px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.product-empty-state {
  min-height: calc(100vh - 72px);
  color: var(--ink);
}

.guides-shell {
  width: min(1220px, calc(100% - 44px));
  margin: 34px auto 56px;
}

.guides-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 34px;
  align-items: stretch;
  min-height: 490px;
}

.guides-hero-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 34px 0;
}

.guides-hero-copy h1 {
  max-width: 650px;
  margin: 22px 0 18px;
  color: var(--navy);
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.guides-hero-copy p {
  max-width: 590px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.guides-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.guides-hero-media {
  position: relative;
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
  box-shadow: 0 28px 80px rgba(31, 38, 31, 0.12);
}

.guides-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-guide,
.writing-desk {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 246, 234, 0.96);
  box-shadow: 0 12px 34px rgba(31, 38, 31, 0.05);
}

.featured-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 30px;
  align-items: center;
  padding: 28px 30px;
}

.featured-guide h2,
.writing-desk h2 {
  margin: 6px 0 10px;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.06;
}

.featured-guide p,
.writing-desk p,
.guide-excerpt {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.trip-ledger,
.guide-stats {
  display: grid;
  gap: 10px;
  margin: 0;
}

.trip-ledger {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trip-ledger div,
.guide-stats div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--wash);
}

.trip-ledger dt,
.guide-stats dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.trip-ledger dd,
.guide-stats dd {
  margin: 7px 0 0;
  color: var(--teal);
  font-size: 20px;
  font-weight: 760;
  line-height: 1.1;
}

.guide-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 28px;
}

.guide-controls {
  position: sticky;
  top: 94px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 246, 234, 0.96);
  box-shadow: var(--shadow);
}

.guide-search {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.guide-search input {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface);
  font-size: 14px;
  outline: 0;
}

.guide-filter-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.guide-filter {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--teal-ink);
  background: var(--surface);
  font-size: 13px;
  font-weight: 760;
  text-align: left;
  padding: 0 12px;
}

.guide-filter[aria-pressed="true"] {
  border-color: var(--teal);
  color: #fff;
  background: var(--teal);
}

.guide-feed-heading {
  min-height: 66px;
  margin-bottom: 14px;
  padding: 2px 2px 0;
}

.guide-list {
  display: grid;
  gap: 14px;
}

.guide-card {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 18px;
  min-height: 210px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(17, 32, 51, 0.04);
}

.guide-card-art {
  min-height: 178px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(31, 90, 61, 0.14), rgba(184, 135, 47, 0.14)),
    var(--wash);
}

.guide-card-art::before {
  content: "";
  display: block;
  width: 66%;
  height: 54%;
  margin: 30px auto 0;
  border: 2px solid rgba(31, 90, 61, 0.62);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(184, 135, 47, 0.9) 0 28%, transparent 28%),
    linear-gradient(135deg, rgba(31, 90, 61, 0.24), rgba(255, 255, 255, 0.16));
  box-shadow: 10px 12px 0 rgba(31, 90, 61, 0.1);
}

.guide-card-art.is-gold {
  background: linear-gradient(135deg, rgba(184, 135, 47, 0.22), rgba(31, 90, 61, 0.08)), var(--wash);
}

.guide-card-art.is-navy {
  background: linear-gradient(135deg, rgba(24, 51, 38, 0.18), rgba(184, 135, 47, 0.12)), var(--wash);
}

.guide-card-art.is-slate {
  background: linear-gradient(135deg, rgba(55, 90, 116, 0.18), rgba(31, 90, 61, 0.1)), var(--wash);
}

.guide-card-copy {
  display: grid;
  align-content: start;
  gap: 10px;
}

.guide-meta {
  color: var(--teal-ink);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.guide-card h3 {
  color: var(--navy);
  font-size: 25px;
  line-height: 1.12;
}

.guide-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-stats div {
  padding: 12px;
}

.guide-stats dd {
  font-size: 16px;
}

.guide-empty-state {
  min-height: 260px;
}

.writing-desk {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  padding: 30px;
}

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

.post-framework article {
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--soft-line);
  border-radius: var(--radius);
  background: var(--wash);
}

.post-framework strong {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-size: 14px;
}

.post-framework h3 {
  margin-top: 14px;
  color: var(--navy);
  font-size: 19px;
}

.post-framework p {
  margin-top: 8px;
  font-size: 14px;
}

.guide-admin-link {
  width: 100%;
  margin-top: 16px;
}

.admin-shell {
  width: min(1500px, calc(100% - 44px));
  margin: 34px auto 56px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 22px;
}

.admin-header h1 {
  margin: 6px 0 10px;
  color: var(--navy);
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1;
}

.admin-header p:not(.section-label) {
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.admin-header-actions,
.editor-actions,
.admin-data-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-layout {
  display: grid;
  grid-template-columns: 280px minmax(520px, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.post-manager,
.post-editor,
.post-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 246, 234, 0.96);
  box-shadow: var(--shadow);
}

.post-manager,
.post-preview {
  position: sticky;
  top: 94px;
  padding: 20px;
}

.post-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.post-list-item {
  display: grid;
  gap: 5px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
}

.post-list-item[aria-pressed="true"] {
  border-color: var(--teal);
  box-shadow: inset 4px 0 0 var(--teal);
}

.post-list-item strong {
  color: var(--navy);
  font-size: 14px;
  line-height: 1.25;
}

.post-list-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.admin-data-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
}

.json-box {
  width: 100%;
  min-height: 190px;
  margin-top: 12px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--ink);
  background: var(--surface);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
}

.post-editor {
  padding: 24px;
}

.editor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--soft-line);
}

.editor-toolbar h2 {
  margin-top: 5px;
  color: var(--navy);
  font-size: 26px;
  line-height: 1.15;
}

.danger-button {
  border-color: rgba(154, 52, 18, 0.32);
  color: var(--danger);
}

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

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.story-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.post-editor label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.post-editor input,
.post-editor textarea,
.post-editor select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface);
  font-size: 14px;
  outline: 0;
}

.post-editor input,
.post-editor select {
  min-height: 42px;
}

.post-editor textarea {
  min-height: 96px;
  padding-top: 11px;
  resize: vertical;
  line-height: 1.45;
}

.post-editor input:focus,
.post-editor textarea:focus,
.post-editor select:focus,
.guide-search input:focus,
.json-box:focus {
  border-color: rgba(31, 90, 61, 0.62);
  box-shadow: 0 0 0 3px rgba(31, 90, 61, 0.1);
}

.full-field {
  margin-top: 14px;
}

.post-preview .preview-card {
  grid-template-columns: 1fr;
  margin-top: 14px;
}

.post-preview .guide-card-art {
  min-height: 168px;
}

@media (max-width: 1250px) {
  .app-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .card-list {
    gap: 14px;
  }

  .credit-card {
    min-height: 500px;
    padding: 18px;
  }

  .app-shell.filters-minimized .list-toolbar {
    margin-left: 186px;
  }

  .compare-pane {
    grid-column: 1 / -1;
    position: static;
    max-height: none;
  }

  .product-hero {
    grid-template-columns: 1fr;
  }

  .product-hero-copy {
    grid-column: 1;
    grid-row: 2;
  }

  .product-apply-card {
    position: static;
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    width: min(680px, 100%);
    grid-template-columns: 1fr;
    text-align: center;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calculation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trip-ledger,
  .post-framework {
    grid-template-columns: 1fr;
  }

  .admin-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .post-preview {
    grid-column: 1 / -1;
    position: static;
  }

  .post-preview .preview-card {
    grid-template-columns: 178px minmax(0, 1fr);
  }

  .story-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 18px;
  }

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .search {
    justify-self: stretch;
    width: 100%;
  }

  .header-action {
    justify-self: stretch;
  }

  .app-shell {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 700px);
    margin-top: 18px;
  }

  .app-shell.filters-minimized {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .filters.minimized {
    padding: 12px 14px;
  }

  .card-list {
    grid-template-columns: 1fr;
  }

  .credit-card {
    grid-template-columns: none;
    min-height: 0;
  }

  .compare-toggle {
    grid-column: auto;
  }

  .list-toolbar {
    display: grid;
  }

  .app-shell.filters-minimized .list-toolbar {
    margin-left: 0;
  }

  .toolbar-actions,
  .compare-page-header,
  .compare-actions {
    display: grid;
    justify-content: stretch;
  }

  .sort-label {
    justify-content: space-between;
    width: 100%;
  }

  .compare-table {
    overflow-x: auto;
  }

  .compare-grid {
    min-width: 760px;
  }

  .calculation-grid,
  .rate-grid {
    grid-template-columns: 1fr;
  }

  .mobile-compare-link {
    display: block;
    position: sticky;
    bottom: 14px;
    z-index: 6;
    margin: 18px auto 0;
    text-align: center;
  }

  .mobile-compare-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--teal);
    border-radius: var(--radius);
    color: #fff;
    background: var(--teal);
    box-shadow: 0 14px 30px rgba(31, 90, 61, 0.22);
    font-size: 13px;
    font-weight: 780;
    text-decoration: none;
  }

  .product-page {
    width: min(100% - 28px, 720px);
    padding-top: 34px;
  }

  .product-hero-copy h1 {
    font-size: clamp(30px, 9vw, 44px);
  }

  .product-lede {
    font-size: 16px;
  }

  .product-metrics,
  .rate-grid,
  .product-two-column,
  .benefit-grid,
  .product-apply-card {
    grid-template-columns: 1fr;
  }

  .product-metric + .product-metric {
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .product-detail-panel,
  .product-apply-card,
  .product-source-panel {
    padding: 22px;
  }

  .product-card-stage {
    grid-row: auto;
    aspect-ratio: 1 / 0.78;
  }

  .product-source-panel {
    display: grid;
  }

  .guides-shell {
    width: min(100% - 28px, 720px);
    margin-top: 22px;
  }

  .guides-hero,
  .featured-guide,
  .guide-layout,
  .guide-card,
  .writing-desk {
    grid-template-columns: 1fr;
  }

  .guides-hero {
    min-height: 0;
  }

  .guides-hero-copy {
    padding: 14px 0 0;
  }

  .guides-hero-copy h1 {
    font-size: clamp(36px, 11vw, 54px);
  }

  .guides-hero-copy p {
    font-size: 16px;
  }

  .guides-hero-media {
    min-height: 320px;
  }

  .guide-controls {
    position: static;
  }

  .guide-stats {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    width: min(100% - 28px, 720px);
    margin-top: 22px;
  }

  .admin-header,
  .editor-toolbar {
    display: grid;
  }

  .admin-header-actions,
  .editor-actions {
    display: grid;
    justify-content: stretch;
  }

  .admin-layout,
  .form-grid,
  .post-preview .preview-card {
    grid-template-columns: 1fr;
  }

  .post-manager,
  .post-preview {
    position: static;
  }
}

@media (max-width: 520px) {
  .result-count {
    font-size: 22px;
  }

  .credit-card {
    grid-template-columns: none;
  }

  .card-art {
    width: min(210px, 78%);
  }
}
