:root {
  --ink: #172033;
  --muted: #667085;
  --line: #d9e2ec;
  --paper: #f7faf8;
  --white: #ffffff;
  --navy: #102a43;
  --blue: #1769e0;
  --blue-dark: #0f4db3;
  --teal: #0f8b8d;
  --green: #1f8f63;
  --gold: #d99a1b;
  --danger: #b42318;
  --shadow: 0 14px 40px rgba(16, 42, 67, 0.12);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-dark);
}

img {
  max-width: 100%;
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0 0 16px;
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  font-size: 3.5rem;
  max-width: 980px;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

textarea {
  resize: vertical;
}

button,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  white-space: normal;
}

.button-primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 10px 26px rgba(23, 105, 224, 0.22);
}

.button-primary:hover {
  color: var(--white);
  background: var(--blue-dark);
}

.button-secondary {
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(16, 42, 67, 0.18);
}

.button-danger {
  color: var(--white);
  background: var(--danger);
}

.button-dark {
  color: var(--white);
  background: var(--navy);
}

.button-small {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.9rem;
}

.full {
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 12px clamp(18px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217, 226, 236, 0.8);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  font-size: 1.05rem;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--navy);
  box-shadow: inset -8px -8px 0 rgba(20, 184, 166, 0.32);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  font-size: 0.92rem;
  white-space: nowrap;
}

.site-nav a {
  color: var(--ink);
}

.site-nav .nav-button {
  color: var(--white);
  background: var(--blue);
  padding: 9px 13px;
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  background: var(--navy);
  color: var(--white);
}

.hero {
  min-height: 560px;
  position: relative;
  display: grid;
  align-items: center;
  padding: 56px clamp(18px, 6vw, 76px) 34px;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center right;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 42, 67, 0.78) 0%, rgba(16, 42, 67, 0.6) 48%, rgba(16, 42, 67, 0.18) 100%),
    linear-gradient(0deg, rgba(16, 42, 67, 0.22), rgba(16, 42, 67, 0));
}

.hero-inner {
  position: relative;
  max-width: 760px;
  color: var(--white);
}

.hero h1,
.hero p {
  color: var(--white);
}

.hero-copy {
  max-width: 690px;
  font-size: 1.06rem;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 900;
}

.hero .eyebrow {
  color: #9ff3e4;
}

.hero-search {
  max-width: 720px;
  margin-top: 20px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(16, 42, 67, 0.18);
}

.hero-search label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.hero-search div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.hero-search.standalone {
  color: var(--ink);
}

.section {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 72px 24px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading p {
  max-width: 760px;
  color: var(--muted);
}

.split-section,
.content-layout,
.order-layout,
.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 48px;
  align-items: start;
}

.estimator-section {
  padding-top: 56px;
  padding-bottom: 56px;
  gap: 48px;
  align-items: start;
}

.page-hero,
.guide-hero {
  padding: 54px clamp(18px, 6vw, 76px) 48px;
  background: var(--paper);
}

.compact-hero h1,
.guide-hero h1 {
  max-width: 920px;
  font-size: 3rem;
  line-height: 1.14;
}

.compact-hero p,
.guide-hero > p {
  max-width: 760px;
  font-size: 1.08rem;
}

.category-grid,
.guide-grid,
.process-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.category-tile,
.guide-card,
.quality-panel,
.estimator,
.payment-card,
.admin-panel,
.contact-panel,
.direct-answer,
.toc,
.prompt-box,
.comment,
.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.category-tile {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.category-tile:hover,
.guide-card:hover {
  transform: translateY(-3px);
  border-color: rgba(23, 105, 224, 0.28);
  box-shadow: 0 18px 44px rgba(16, 42, 67, 0.14);
}

.category-tile span {
  font-weight: 900;
}

.category-tile small {
  color: var(--muted);
}

.guide-card a {
  min-height: 250px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  gap: 12px;
  height: 100%;
  padding: 24px;
  color: var(--ink);
}

.guide-card h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.28;
}

.guide-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--muted);
  margin: 0;
}

.card-kicker {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.text-link {
  font-weight: 900;
}

.process-band {
  width: 100%;
  max-width: none;
  padding: 82px clamp(18px, 6vw, 76px);
  background: var(--navy);
}

.process-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.process-band h2,
.process-band strong,
.process-band p {
  color: var(--white);
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 26px;
}

.process-grid div {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid var(--teal);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.process-grid span {
  color: #9ff3e4;
  font-weight: 900;
}

.support-band {
  align-items: center;
}

.quality-panel,
.payment-card,
.contact-panel {
  padding: 24px;
}

.assignment-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.assignment-cloud span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #e9f7f4;
  color: #126b5e;
  font-weight: 800;
}

.assignment-cloud a {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eff8ff;
  color: #175cd3;
  font-weight: 800;
}

.category-overview {
  padding-bottom: 28px;
}

.category-intro {
  max-width: 850px;
}

.category-layout {
  padding-top: 42px;
}

.compact-heading {
  margin-bottom: 18px;
}

.topic-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.final-cta {
  text-align: center;
}

.final-cta .hero-actions {
  justify-content: center;
}

.estimator {
  padding: 30px;
  display: grid;
  gap: 16px;
  border-color: rgba(16, 42, 67, 0.12);
  box-shadow: 0 18px 48px rgba(16, 42, 67, 0.13);
}

.estimator h2 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.estimator-copy {
  padding-top: 0;
}

.benefit-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.estimator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.benefit-list li {
  position: relative;
  padding-left: 30px;
  color: #344054;
  font-weight: 700;
}

.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(23, 105, 224, 0.12);
}

.estimator-fields {
  display: grid;
  gap: 14px;
}

.estimator output {
  display: block;
  padding: 0;
  color: var(--blue);
  font-size: 1.72rem;
  font-weight: 900;
}

.estimate-panel {
  padding: 14px;
  border-radius: 8px;
  background: #eff8ff;
}

.estimate-panel span {
  display: block;
  color: #175cd3;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.estimate-panel p {
  margin: 2px 0 0;
  color: #344054;
  font-size: 0.9rem;
}

.pricing-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.pricing-row {
  display: grid;
  grid-template-columns: 1fr 160px 160px;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.pricing-head {
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
}

.pricing-note {
  margin-top: 14px;
  color: var(--muted);
  font-weight: 700;
}

.pricing-row:last-child {
  border-bottom: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 800;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.guide-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
}

.article {
  min-width: 0;
}

.article-body {
  color: #243047;
}

.article-body h2,
.article-body h3 {
  margin-top: 34px;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  overflow-x: auto;
}

.article-body th,
.article-body td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
}

.direct-answer,
.toc,
.prompt-box {
  padding: 20px;
  margin-bottom: 22px;
}

.direct-answer {
  border-left: 5px solid var(--green);
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.toc strong {
  width: 100%;
}

.sidebar {
  min-width: 0;
}

.sticky-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
}

.support-cta {
  margin: 36px 0 18px;
  padding: 24px;
  border: 1px solid rgba(31, 143, 99, 0.24);
  border-radius: 8px;
  background: #f2fbf7;
}

.ethical-note,
.clinical-warning {
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  background: #fff9eb;
  border-radius: 8px;
  color: #5f4511;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  margin-bottom: 10px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(16, 42, 67, 0.06);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
  padding: 18px 20px;
}

.faq-list details p {
  padding: 0 20px 18px;
  color: var(--muted);
}

.faq-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.faq-heading > p:last-child {
  color: var(--muted);
}

.faq-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 8px;
  background: var(--paper);
}

.comments {
  margin-top: 40px;
}

.comment {
  padding: 16px;
  margin-bottom: 14px;
}

.admin-reply {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--paper);
}

.panel-form,
.order-form {
  display: grid;
  gap: 18px;
}

.order-form,
.installer,
.admin-login {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-steps,
.status-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.form-steps span,
.status-steps span {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.status-steps .done {
  color: var(--green);
  background: #ecfdf3;
}

.status-steps .current {
  color: var(--blue-dark);
  background: #edf4ff;
}

.dynamic-fields > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.addon-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.check-row input {
  width: auto;
}

.order-summary {
  display: grid;
  gap: 12px;
}

.order-summary div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.order-summary dt {
  color: var(--muted);
  font-weight: 800;
}

.order-summary dd {
  margin: 0;
  font-weight: 900;
}

.notice {
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.notice-success {
  background: #ecfdf3;
  color: #067647;
}

.notice-error {
  background: #fef3f2;
  color: var(--danger);
}

.notice-info {
  background: #eff8ff;
  color: #175cd3;
}

.notice-warning {
  background: #fffaeb;
  color: #93370d;
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--paper);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 390px) 1fr;
  gap: 34px;
  padding: 44px clamp(18px, 6vw, 76px) 84px;
  color: var(--white);
  background: var(--navy);
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.86);
}

.site-footer .brand {
  color: var(--white);
}

.site-footer nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
}

.mobile-sticky-cta {
  display: none;
}

.system-message,
.installer,
.admin-login {
  width: min(560px, calc(100% - 36px));
  margin: 8vh auto;
}

.admin-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px 1fr;
  background: var(--paper);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 18px;
  background: var(--navy);
  color: var(--white);
}

.admin-sidebar .brand {
  color: var(--white);
  margin-bottom: 22px;
}

.admin-sidebar nav {
  display: grid;
  gap: 7px;
}

.admin-sidebar a {
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.admin-sidebar a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.admin-main {
  min-width: 0;
  padding: 28px;
}

.admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-panel {
  padding: 22px;
  margin-bottom: 22px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}

.metric {
  padding: 18px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  min-height: 42px;
}

.metric strong {
  display: block;
  font-size: 2rem;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.admin-table input[type="checkbox"] {
  width: auto;
}

.post-management-table {
  min-width: 1060px;
}

.post-title-cell {
  min-width: 320px;
}

.slug-line,
.public-url-line,
.duplicate-warning {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.public-url-field {
  width: min(100%, 360px);
  min-height: 0;
  padding: 4px 6px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 0.86rem;
}

.duplicate-warning {
  color: var(--danger);
  font-weight: 800;
}

.row-actions,
.bulk-actions,
.admin-search {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.row-actions {
  min-width: 330px;
}

.copy-status {
  min-width: 74px;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 800;
}

.bulk-actions,
.admin-search {
  margin-bottom: 14px;
}

.bulk-actions select {
  width: min(260px, 100%);
}

.admin-search label {
  flex: 1 1 260px;
}

.filter-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-row a {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--white);
  font-weight: 800;
}

.filter-row a.active {
  color: var(--white);
  background: var(--navy);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.status-published {
  background: #ecfdf3;
  color: #067647;
}

.status-draft {
  background: #eff8ff;
  color: #175cd3;
}

.status-archived,
.status-unpublished {
  background: #f2f4f7;
  color: #475467;
}

.editor-form textarea[name="content_html"] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
}

.progress-bar {
  height: 12px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: var(--green);
  transition: width 0.3s ease;
}

.generation-steps {
  display: grid;
  gap: 8px;
}

.generation-steps li {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--paper);
}

.generation-steps .done {
  color: var(--green);
  font-weight: 900;
}

.generation-steps .current {
  color: var(--blue);
  font-weight: 900;
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.comment-moderation {
  display: grid;
  grid-template-columns: 1fr 180px minmax(240px, 360px) auto;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.readable {
  max-width: 860px;
}

.payment-methods {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.file-list {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.quality-check-panel {
  border-left: 5px solid var(--green);
}

.quality-check-panel:has(.quality-status.fail) {
  border-left-color: var(--danger);
}

.quality-status {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
}

.quality-status.pass {
  color: #067647;
  background: #ecfdf3;
}

.quality-status.fail {
  color: var(--danger);
  background: #fef3f2;
}

.quality-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quality-check-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.quality-check-item p {
  margin: 4px 0 0;
  color: var(--muted);
}

.quality-check-item.pass strong {
  color: #067647;
}

.quality-check-item.fail {
  border-color: rgba(180, 35, 24, 0.32);
  background: #fff8f7;
}

.quality-check-item.fail strong {
  color: var(--danger);
}

.content-mode {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.9rem;
  }

  .compact-hero h1,
  .guide-hero h1 {
    font-size: 2.5rem;
  }

  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 68px;
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .split-section,
  .content-layout,
  .order-layout,
  .payment-layout,
  .site-footer,
  .admin-body {
    grid-template-columns: 1fr;
  }

  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .estimator-section {
    padding-top: 48px;
    padding-bottom: 48px;
    gap: 32px;
  }

  .category-grid,
  .guide-grid,
  .guide-grid.compact,
  .process-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .sticky-sidebar,
  .admin-sidebar {
    position: static;
    height: auto;
  }

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

  .comment-moderation {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 0;
  }

  h1 {
    font-size: 2.18rem;
    line-height: 1.12;
  }

  h2 {
    font-size: 1.62rem;
  }

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

  .hero {
    min-height: auto;
    padding: 36px 18px 30px;
    background-position: center;
  }

  .hero-overlay {
    background: rgba(16, 42, 67, 0.74);
  }

  .hero h1,
  .compact-hero h1,
  .guide-hero h1 {
    font-size: 2rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .section {
    padding: 44px 16px;
  }

  .estimator-section {
    padding-top: 36px;
    padding-bottom: 36px;
    gap: 24px;
  }

  .page-hero,
  .guide-hero {
    padding: 36px 16px 34px;
  }

  .hero-search {
    padding: 12px;
  }

  .hero-search div,
  .form-grid,
  .form-steps,
  .status-steps,
  .pricing-row,
  .order-summary div,
  .category-grid,
  .guide-grid,
  .guide-grid.compact,
  .process-grid,
  .metric-grid,
  .site-footer nav {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .admin-heading {
    align-items: start;
    flex-direction: column;
  }

  .hero-actions {
    display: grid;
  }

  .estimator {
    padding: 24px;
    gap: 14px;
  }

  .estimator-fields {
    gap: 14px;
  }

  .estimator-actions {
    display: grid;
  }

  .guide-card a {
    min-height: auto;
  }

  .process-band {
    padding: 52px 18px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-grid div {
    min-height: auto;
  }

  .faq-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .mobile-sticky-cta {
    display: none;
  }

  .admin-main {
    padding: 18px;
  }
}
