:root {
  --bg-color: #f5efe5;
  --bg-color-soft: #fbf7f1;
  --bg-surface: rgba(255, 251, 246, 0.88);
  --bg-surface-strong: #fffdf9;
  --bg-sidebar: linear-gradient(180deg, #14323f 0%, #0f2832 100%);
  --text-main: #182229;
  --text-muted: #5f6c74;
  --text-soft: #8b969d;
  --accent-color: #d96d3b;
  --accent-strong: #c7562a;
  --accent-soft: rgba(217, 109, 59, 0.14);
  --ink-inverse: #f7efe4;
  --success-bg: #eef8f0;
  --success-text: #1f6c3d;
  --danger-bg: #fff0ed;
  --danger-text: #b24a2a;
  --border-subtle: rgba(24, 34, 41, 0.1);
  --border-strong: rgba(24, 34, 41, 0.18);
  --shadow-soft: 0 18px 45px rgba(33, 41, 46, 0.08);
  --shadow-card: 0 10px 30px rgba(27, 36, 42, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font-sans: 'Manrope', 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top left, rgba(217, 109, 59, 0.12), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(20, 50, 63, 0.1), transparent 26%),
    linear-gradient(180deg, #f7f1e7 0%, #f4eee4 45%, #f6f0e6 100%);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.page-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.55), transparent 22%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.38), transparent 24%);
  opacity: 0.9;
}

.site-header {
  position: relative;
  z-index: 1;
  padding: 20px 20px 0;
}

.header-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px 28px;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 251, 246, 0.74);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-soft);
  max-width: 1120px;
  margin: 0 auto;
}

.sidebar-logo {
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  min-width: 0;
}

.sidebar-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  background: rgba(20, 50, 63, 0.07);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.88rem 1rem;
  background: linear-gradient(135deg, #f0b76a 0%, #d96d3b 100%);
  color: #1f1c18;
  text-decoration: none;
  border-radius: 14px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(217, 109, 59, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(217, 109, 59, 0.28);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
  justify-content: flex-end;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 0.88rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-main);
  background: rgba(20, 50, 63, 0.05);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.top-nav a:hover {
  background: rgba(20, 50, 63, 0.1);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.main-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 20px;
}

.content-shell {
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  padding: 22px 28px 36px;
  max-width: 1120px;
  margin: 0 auto;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 0 20px 24px;
}

.footer-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 8px 0;
  border-top: 1px solid rgba(24, 34, 41, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.footer-brand {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--accent-strong);
}

.error-page {
  max-width: 760px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 1.8rem 0 2rem;
}

.error-secondary {
  background: rgba(20, 50, 63, 0.08);
  color: var(--text-main);
  box-shadow: none;
}

.error-secondary:hover {
  box-shadow: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.42rem 0.76rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.breadcrumbs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  background: rgba(20, 50, 63, 0.04);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.breadcrumbs a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.95rem, 2.55vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin-bottom: 1.15rem;
  color: #152026;
  display: block;
  max-width: none;
  width: 100%;
  text-wrap: pretty;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  padding-left: 1.55rem;
  padding-right: 1.55rem;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2vw, 2.08rem);
  line-height: 1.08;
  margin-top: 3rem;
  margin-bottom: 0.95rem;
  color: #182229;
  display: block;
  padding: 0;
  margin-left: 0;
  background: none;
  box-shadow: none;
}

h3 {
  font-size: 1.12rem;
  font-weight: 800;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  color: #1f2b31;
}

p {
  margin-bottom: 1.15rem;
  color: var(--text-main);
}

.ai-summary-box {
  position: relative;
  padding: 1.35rem 1.45rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 248, 240, 0.96) 0%, rgba(250, 241, 231, 0.96) 100%);
  border: 1px solid rgba(217, 109, 59, 0.16);
  box-shadow: var(--shadow-card);
  margin-bottom: 1.9rem;
  font-size: 1.03rem;
  font-weight: 600;
}

.ai-summary-box::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: 20px 0 0 20px;
  background: linear-gradient(180deg, #f0b76a 0%, #d96d3b 100%);
}

.short-answer-box {
  margin: 0 0 1.4rem;
  padding: 1rem 1.55rem 1.05rem 1.55rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 250, 245, 0.98) 0%, rgba(250, 243, 235, 0.94) 100%);
  border: 1px solid rgba(217, 109, 59, 0.12);
  box-shadow: none;
  position: relative;
}

.short-answer-box::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(232, 136, 73, 0.95) 0%, rgba(217, 109, 59, 0.78) 100%);
}

.short-answer-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.45rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.short-answer-box p {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.72;
}

.short-answer-box + p {
  margin-top: 0;
  margin-bottom: 1.35rem;
  padding: 0;
  border-radius: 0;
  background: none;
  border: 0;
  font-size: 1.15rem;
  line-height: 1.78;
  color: #3b4851;
}

.tool-hero {
  margin-bottom: 1.4rem;
}

.tool-panel {
  padding: 1.6rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(24, 34, 41, 0.08);
  box-shadow: var(--shadow-card);
}

.tool-panel-spaced {
  margin-top: 0.5rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 1.35rem 0 1.4rem;
}

.compare-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 1.2rem;
}

.compare-vs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #173744;
  color: #fff9f2;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.form-field label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 800;
}

.form-control {
  width: 100%;
  padding: 0.92rem 0.96rem;
  border-radius: 14px;
  border: 1px solid rgba(24, 34, 41, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-main);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-control:focus {
  border-color: rgba(217, 109, 59, 0.55);
  box-shadow: 0 0 0 4px rgba(217, 109, 59, 0.14);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.45rem;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #173744 0%, #245466 100%);
  color: #fffdf8;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(23, 55, 68, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(23, 55, 68, 0.22);
}

.result-panel {
  display: none;
  margin-top: 1.7rem;
  padding: 1.35rem;
  border-radius: 20px;
  background: rgba(20, 50, 63, 0.05);
  border: 1px solid rgba(20, 50, 63, 0.1);
}

.result-summary {
  font-size: 1rem;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 1.1rem;
}

.result-metric {
  padding: 1rem;
  border-radius: 18px;
  background: var(--bg-surface-strong);
  border: 1px solid rgba(24, 34, 41, 0.08);
}

.metric-negative {
  color: var(--danger-text);
  font-weight: 800;
}

.metric-value {
  font-size: 1.12rem;
  font-weight: 800;
}

.state-layout {
  margin-top: 0;
}

.state-topbar {
  display: block;
  width: 100%;
  margin-bottom: 1.7rem;
  padding: 0.58rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(21, 41, 52, 0.05) 0%, rgba(21, 41, 52, 0.035) 100%);
  border: 1px solid rgba(20, 50, 63, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.state-nav-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.state-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0.92rem 0.85rem;
  border-radius: 18px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.86rem, 0.72rem + 0.35vw, 0.98rem);
  white-space: nowrap;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.state-tab:hover {
  background: rgba(20, 50, 63, 0.06);
  transform: translateY(-1px);
}

.state-tab.is-active {
  background: linear-gradient(135deg, rgba(217, 109, 59, 0.14) 0%, rgba(240, 183, 106, 0.24) 100%);
  color: #1f262b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.state-content {
  min-width: 0;
}

.article-flow {
  max-width: none;
  width: 100%;
}

.reading-column {
  max-width: none;
  width: 100%;
}

.article-flow > .short-answer-box,
.article-flow > p,
.article-flow > ul,
.article-flow > ol,
.article-flow > .data-table,
.article-flow > table,
.article-flow > .expanded-article,
.article-flow > .ai-summary-box {
  max-width: none;
  width: 100%;
}

.article-flow > .short-answer-box {
  max-width: none;
  width: 100%;
}

.article-flow > h2,
.article-flow > h3,
.expanded-article > h2,
.expanded-article > h3 {
  max-width: none;
  width: 100%;
  padding-left: 1.55rem;
  padding-right: 1.55rem;
}

.article-flow > p,
.article-flow > ul,
.article-flow > ol,
.article-flow > .data-table,
.article-flow > table,
.article-flow > .expanded-article,
.article-flow > .ai-summary-box,
.expanded-article > p,
.expanded-article > ul,
.expanded-article > ol,
.expanded-article > .data-table,
.expanded-article > table,
.expanded-article > .ai-summary-box {
  padding-left: 1.55rem;
  padding-right: 1.55rem;
}

.article-flow > .short-answer-box + p + ul {
  list-style: none;
  margin: 0 0 2.1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.article-flow > .short-answer-box + p + ul li {
  margin: 0;
  padding: 0.95rem 1rem 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(20, 50, 63, 0.08);
  box-shadow: 0 8px 20px rgba(23, 33, 41, 0.04);
  line-height: 1.58;
}

.article-flow > ul:not(.structured-list):not(.state-nav-list),
.article-flow > ol:not(.structured-list),
.expanded-article > ul:not(.structured-list):not(.faq-list),
.expanded-article > ol:not(.structured-list):not(.faq-list) {
  margin: 1.1rem 0 1.55rem;
  padding-left: 1.55rem;
  padding-right: 1.55rem;
  list-style: none;
}

.article-flow > ul:not(.structured-list):not(.state-nav-list) li,
.article-flow > ol:not(.structured-list) li,
.expanded-article > ul:not(.structured-list):not(.faq-list) li,
.expanded-article > ol:not(.structured-list):not(.faq-list) li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
  margin-bottom: 0.72rem;
  padding: 0.88rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(20, 50, 63, 0.08);
  box-shadow: 0 8px 18px rgba(23, 33, 41, 0.035);
}

.article-flow > ol:not(.structured-list) {
  counter-reset: article-list;
}

.article-flow > ol:not(.structured-list) li,
.expanded-article > ol:not(.structured-list):not(.faq-list) li {
  counter-increment: article-list;
}

.article-flow > ul:not(.structured-list):not(.state-nav-list) li::before {
  content: "";
  flex: 0 0 0.42rem;
  width: 0.42rem;
  height: 0.42rem;
  margin-top: 0.72em;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(232, 136, 73, 0.95) 0%, rgba(217, 109, 59, 0.82) 100%);
}

.expanded-article > ul:not(.structured-list):not(.faq-list) li::before {
  content: "";
  flex: 0 0 0.42rem;
  width: 0.42rem;
  height: 0.42rem;
  margin-top: 0.72em;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(232, 136, 73, 0.95) 0%, rgba(217, 109, 59, 0.82) 100%);
}

.article-flow > ol:not(.structured-list) li::before {
  content: counter(article-list) ".";
  flex: 0 0 auto;
  color: rgba(24, 34, 41, 0.82);
  font-weight: 800;
  font-size: 0.95em;
}

.expanded-article > ol:not(.structured-list):not(.faq-list) {
  counter-reset: article-list;
}

.expanded-article > ol:not(.structured-list):not(.faq-list) li::before {
  content: counter(article-list) ".";
  flex: 0 0 auto;
  color: rgba(24, 34, 41, 0.82);
  font-weight: 800;
  font-size: 0.95em;
}

.expanded-article {
  margin-top: 0.2rem;
}

.data-table {
  width: 100%;
  display: block;
  overflow-x: auto;
  margin: 1.7rem 0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 22px;
  background: var(--bg-surface-strong);
  border: 1px solid rgba(20, 50, 63, 0.08);
  box-shadow: var(--shadow-card);
  -webkit-overflow-scrolling: touch;
}

.data-table th,
.data-table td {
  padding: 1rem 1.05rem;
  text-align: left;
  border-bottom: 1px solid rgba(24, 34, 41, 0.08);
  white-space: nowrap;
}

.data-table th {
  background: rgba(20, 50, 63, 0.06);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table tbody tr:nth-child(even) td {
  background: rgba(20, 50, 63, 0.02);
}

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

ul.structured-list,
ol.structured-list {
  margin: 1.15rem 0 1.55rem 1.2rem;
}

ul.structured-list li,
ol.structured-list li {
  margin-bottom: 0.75rem;
  padding-left: 0.3rem;
}

.faq-panel {
  margin: 1.2rem 1.55rem 1.9rem;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.8) 0%, rgba(250, 244, 237, 0.56) 100%);
  border: 1px solid rgba(20, 50, 63, 0.08);
  box-shadow: 0 12px 28px rgba(22, 31, 37, 0.04);
}

.faq-item {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 1.15rem 2rem;
  padding: 1.15rem 1.25rem 1.2rem;
  border-bottom: 1px solid rgba(20, 50, 63, 0.08);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-question {
  position: relative;
  margin: 0;
  padding-left: 1rem;
  font-family: var(--font-sans);
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.45;
  color: #182229;
}

.faq-question::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(232, 136, 73, 0.95) 0%, rgba(217, 109, 59, 0.82) 100%);
  transform: translateY(-50%);
}

.faq-answer {
  color: #37444d;
  font-size: 1rem;
  line-height: 1.72;
}

.faq-answer p {
  margin: 0;
}

.faq-answer p + p {
  margin-top: 0.65rem;
}

.topic-guides {
  margin: 2rem 1.55rem;
  padding: 1.4rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(240, 183, 106, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 252, 247, 0.98) 0%, rgba(245, 237, 226, 0.9) 100%);
  border: 1px solid rgba(217, 109, 59, 0.16);
  box-shadow: 0 18px 40px rgba(25, 36, 43, 0.08);
}

.topic-guides-header {
  margin-bottom: 1.15rem;
}

.topic-guides-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.55rem;
  padding: 0.36rem 0.68rem;
  border-radius: 999px;
  background: rgba(20, 50, 63, 0.08);
  color: #37515f;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topic-guides-header h2 {
  margin: 0 0 0.55rem;
  padding: 0;
  font-size: clamp(1.45rem, 1.95vw, 1.95rem);
}

.topic-guides-header p {
  margin: 0;
  max-width: 700px;
  color: #495760;
  line-height: 1.7;
}

.topic-guides-helper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0.95rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(20, 50, 63, 0.08);
}

.topic-guides-helper-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  background: rgba(20, 50, 63, 0.08);
  color: #35515d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.topic-guides-helper p {
  margin: 0;
  color: #42515a;
  font-size: 0.95rem;
}

.topic-guides-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 1.15rem;
}

.topic-guide-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.15rem 1.05rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 251, 246, 0.82) 100%);
  border: 1px solid rgba(20, 50, 63, 0.09);
  box-shadow: 0 10px 24px rgba(23, 33, 41, 0.045);
  text-decoration: none;
  color: inherit;
  min-height: 248px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.topic-guide-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(217, 109, 59, 0.82) 0%, rgba(240, 183, 106, 0.92) 100%);
}

.topic-guide-card:hover,
.topic-guide-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(217, 109, 59, 0.2);
  box-shadow: 0 16px 34px rgba(23, 33, 41, 0.09);
}

.topic-guide-card:focus-visible {
  outline: 2px solid rgba(217, 109, 59, 0.28);
  outline-offset: 2px;
}

.topic-guide-card--featured {
  background:
    radial-gradient(circle at top right, rgba(240, 183, 106, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 247, 238, 0.88) 100%);
  border-color: rgba(217, 109, 59, 0.18);
  box-shadow: 0 14px 30px rgba(217, 109, 59, 0.08);
}

.topic-guide-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  line-height: 1.3;
}

.topic-guide-card p {
  margin: 0;
  color: #43515a;
  line-height: 1.7;
}

.topic-guide-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.7rem;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: rgba(217, 109, 59, 0.12);
  color: #9f4b27;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topic-guide-priority {
  display: inline-flex;
  align-items: center;
  margin-left: 0.45rem;
  margin-bottom: 0.7rem;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: rgba(20, 50, 63, 0.08);
  color: #304953;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.topic-guide-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(20, 50, 63, 0.08);
}

.topic-guide-status {
  display: inline-flex;
  align-items: center;
  color: #526068;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.topic-guide-arrow {
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 800;
}

.topic-guides-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(20, 50, 63, 0.08);
}

.topic-guides-footer-label {
  flex: 0 0 auto;
  color: #55636c;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topic-guides-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-guides-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.72rem;
  border-radius: 999px;
  background: rgba(20, 50, 63, 0.05);
  color: #32464f;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.topic-guides-pill:hover,
.topic-guides-pill:focus-visible {
  background: rgba(217, 109, 59, 0.12);
  color: #8e4727;
}

.topic-guides-pill:focus-visible {
  outline: 2px solid rgba(217, 109, 59, 0.22);
  outline-offset: 2px;
}

a {
  color: inherit;
}

a.content-link {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 800;
  transition: color 0.2s ease;
}

a.content-link:hover {
  color: var(--accent-color);
}

.data-table td[style*="#e6ffe6"] {
  background: var(--success-bg) !important;
  color: var(--success-text);
}

.data-table td[style*="#ffe6e6"] {
  background: var(--danger-bg) !important;
  color: var(--danger-text);
}

@media (max-width: 1200px) {
  .header-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .content-shell {
    padding: 28px 28px 36px;
  }
}

@media (max-width: 980px) {
  .site-header {
    padding: 18px 18px 0;
  }

  .main-content {
    padding: 18px;
  }

  .site-footer {
    padding: 0 18px 18px;
  }

  .content-shell {
    max-width: none;
  }

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

  h1 {
    font-size: clamp(1.85rem, 4.6vw, 2.35rem);
    line-height: 1.04;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .short-answer-box {
    padding: 0.95rem 1rem 1rem 1.1rem;
  }

  .article-flow > h2,
  .article-flow > h3,
  .article-flow > p,
  .article-flow > ul,
  .article-flow > ol,
  .article-flow > .data-table,
  .article-flow > table,
  .article-flow > .expanded-article,
  .article-flow > .ai-summary-box,
  .expanded-article > h2,
  .expanded-article > h3,
  .expanded-article > p,
  .expanded-article > ul,
  .expanded-article > ol,
  .expanded-article > .data-table,
  .expanded-article > table,
  .expanded-article > .ai-summary-box {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding: 12px 12px 0;
  }

  .header-shell {
    padding: 16px 16px 18px;
    border-radius: 22px;
  }

  .top-nav {
    gap: 8px;
  }

  .top-nav a {
    width: 100%;
    justify-content: flex-start;
  }

  .header-cta {
    width: 100%;
  }

  .main-content {
    padding: 12px;
  }

  .site-footer {
    padding: 0 12px 12px;
  }

  .content-shell {
      padding: 20px 16px 28px;
      border-radius: 24px;
    }

  h1 {
    font-size: clamp(1.7rem, 8vw, 2.05rem);
    line-height: 1.06;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .short-answer-box {
    padding: 0.9rem 0.95rem 0.95rem 1rem;
    border-radius: 18px;
  }

  .short-answer-box::before {
    left: 0.15rem;
    top: 12px;
    bottom: 12px;
  }

  .article-flow > .short-answer-box + p + ul {
    grid-template-columns: 1fr;
  }

  .faq-panel {
    margin-left: 1rem;
    margin-right: 1rem;
    border-radius: 20px;
  }

  .topic-guides {
    margin-left: 1rem;
    margin-right: 1rem;
    padding: 1rem;
    border-radius: 20px;
  }

  .topic-guides-helper,
  .topic-guides-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .topic-guides-grid {
    grid-template-columns: 1fr;
  }

  .topic-guide-card {
    min-height: 0;
    padding: 1rem 1rem 0.95rem;
    border-radius: 18px;
  }

  .topic-guide-card h3 {
    font-size: 1rem;
  }

  .topic-guide-card p,
  .topic-guides-helper p {
    font-size: 0.93rem;
  }

  .topic-guide-meta {
    gap: 10px;
    padding-top: 0.8rem;
  }

  .topic-guides-pill {
    padding: 0.52rem 0.78rem;
  }

  .faq-item {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 1rem;
  }

  .faq-question {
    font-size: 1rem;
    padding-left: 0.9rem;
  }

  .footer-shell {
    padding-top: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav {
    justify-content: flex-start;
    gap: 8px 14px;
  }

  .compare-controls,
  .tool-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .compare-vs {
    width: 100%;
    height: 48px;
  }

  h2 {
    margin-top: 2.2rem;
  }

  .state-topbar {
    padding: 0.9rem;
  }

  .state-nav-list {
    grid-template-columns: 1fr;
  }

  .state-tab {
    width: 100%;
    justify-content: flex-start;
    min-height: 50px;
    padding: 0.82rem 0.9rem;
    font-size: 0.95rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.82rem;
    font-size: 0.92rem;
  }
}
