:root {
  --paper: #f7f2e8;
  --paper-strong: #fffaf2;
  --ink: #18252f;
  --muted: #52626f;
  --line: rgba(24, 37, 47, 0.12);
  --teal: #1d6d73;
  --teal-deep: #144b50;
  --rust: #b45c2d;
  --gold: #d9b15c;
  --navy: #20354a;
  --shadow: 0 18px 40px rgba(22, 41, 54, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(217, 177, 92, 0.22), transparent 28rem),
    radial-gradient(circle at top right, rgba(29, 109, 115, 0.18), transparent 26rem),
    linear-gradient(180deg, #fffdf7 0%, var(--paper) 42%, #efe7d8 100%);
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(255, 250, 242, 0.86);
  border-bottom: 1px solid rgba(24, 37, 47, 0.08);
}

.header-inner,
.page-shell,
.site-footer-inner {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem 0 1.15rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-badge {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--rust), var(--gold));
  color: #fffdf8;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.brand-text strong,
h1,
h2,
h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.site-nav a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--teal-deep);
  background: rgba(29, 109, 115, 0.07);
  border: 1px solid rgba(29, 109, 115, 0.08);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.button:hover,
.button:focus-visible,
.card-link:hover,
.card-link:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(20, 75, 80, 0.12);
}

.page-shell {
  padding: 1.4rem 0 4rem;
}

.hero,
.panel,
.template-frame,
.footer-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(24, 37, 47, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 242, 0.88);
  box-shadow: var(--shadow);
}

.hero {
  padding: 2rem 1.4rem;
  background:
    linear-gradient(135deg, rgba(32, 53, 74, 0.96), rgba(29, 109, 115, 0.9)),
    linear-gradient(180deg, rgba(255, 250, 242, 0.15), transparent);
  color: #f8f4eb;
}

.hero::after,
.panel::after,
.template-frame::after {
  content: "";
  position: absolute;
  inset: auto -3rem -4rem auto;
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(217, 177, 92, 0.34), transparent 70%);
  pointer-events: none;
}

.hero-grid,
.split-grid,
.card-grid,
.detail-grid,
.feature-grid,
.template-grid {
  display: grid;
  gap: 1rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff5dc;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2.25rem, 6vw, 4.4rem);
  line-height: 0.98;
}

h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.08;
}

h3 {
  margin: 0 0 0.55rem;
  font-size: 1.25rem;
}

.hero p,
.hero li,
.lead,
.muted {
  color: rgba(248, 244, 235, 0.88);
}

.lead {
  font-size: 1.05rem;
  max-width: 42rem;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.button,
.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  cursor: pointer;
  font: inherit;
}

.button.primary,
.card-link {
  background: linear-gradient(135deg, var(--gold), #e5c577);
  color: #1a2530;
  font-weight: 700;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff8ee;
  border-color: rgba(255, 255, 255, 0.16);
}

.panel,
.template-frame {
  padding: 1.4rem;
}

.section-stack {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.15rem;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.template-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card,
.mini-card,
.template-card,
.callout {
  position: relative;
  padding: 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.mini-card {
  background: rgba(29, 109, 115, 0.06);
}

.template-card {
  background: rgba(32, 53, 74, 0.04);
}

.callout {
  background: rgba(180, 92, 45, 0.08);
  border-color: rgba(180, 92, 45, 0.16);
}

.path-panel,
.next-steps-panel,
.bundle-panel,
.guidance-panel {
  isolation: isolate;
}

.path-panel::before,
.next-steps-panel::before,
.bundle-panel::before,
.guidance-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 0.35rem;
  background: linear-gradient(90deg, var(--gold), var(--teal), var(--navy));
  pointer-events: none;
}

.path-panel {
  background:
    linear-gradient(135deg, rgba(29, 109, 115, 0.1), rgba(255, 250, 242, 0.94) 45%, rgba(217, 177, 92, 0.14)),
    rgba(255, 250, 242, 0.9);
  border-color: rgba(29, 109, 115, 0.16);
}

.path-panel .section-label {
  color: var(--teal-deep);
}

.path-panel .card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(29, 109, 115, 0.08)),
    rgba(255, 255, 255, 0.82);
  border-color: rgba(29, 109, 115, 0.16);
}

.path-panel .card h3 {
  color: var(--teal-deep);
}

.next-steps-panel {
  background:
    linear-gradient(135deg, rgba(32, 53, 74, 0.09), rgba(255, 250, 242, 0.94) 50%, rgba(29, 109, 115, 0.08)),
    rgba(255, 250, 242, 0.9);
  border-color: rgba(32, 53, 74, 0.16);
}

.next-steps-panel .section-label,
.guidance-panel .section-label {
  color: var(--navy);
}

.next-steps-panel .button-row,
.bundle-panel .button-row,
.guidance-panel .button-row {
  margin-top: 1rem;
}

.bundle-panel {
  background:
    linear-gradient(135deg, rgba(180, 92, 45, 0.1), rgba(255, 250, 242, 0.95) 45%, rgba(217, 177, 92, 0.16)),
    rgba(255, 250, 242, 0.9);
  border-color: rgba(180, 92, 45, 0.16);
}

.bundle-panel .card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(217, 177, 92, 0.14)),
    rgba(255, 255, 255, 0.82);
  border-color: rgba(180, 92, 45, 0.16);
}

.bundle-panel .card h3 {
  color: #7f3d1d;
}

.guidance-panel {
  border-style: dashed;
  border-color: rgba(32, 53, 74, 0.18);
  background:
    linear-gradient(135deg, rgba(32, 53, 74, 0.07), rgba(255, 250, 242, 0.95) 55%, rgba(29, 109, 115, 0.06)),
    rgba(255, 250, 242, 0.9);
}

.warning {
  background: rgba(180, 92, 45, 0.14);
  border: 1px solid rgba(180, 92, 45, 0.22);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  background: rgba(32, 53, 74, 0.08);
  color: var(--navy);
  font-size: 0.9rem;
}

.list,
.checklist {
  margin: 0;
  padding-left: 1.15rem;
}

.list li,
.checklist li {
  margin-bottom: 0.45rem;
}

.checklist li::marker {
  color: var(--teal);
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 0;
}

.meta-chip {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #f9f0d7;
  font-size: 0.92rem;
}

.template-frame .meta-chip {
  background: rgba(32, 53, 74, 0.08);
  color: var(--navy);
}

.embed-placeholder {
  display: grid;
  place-items: center;
  min-height: 15rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(32, 53, 74, 0.25);
  background:
    linear-gradient(135deg, rgba(29, 109, 115, 0.08), rgba(217, 177, 92, 0.18)),
    rgba(255, 255, 255, 0.72);
  color: var(--navy);
  text-align: center;
  padding: 1.5rem;
}

.affiliate-banner {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(180, 92, 45, 0.2);
  background: rgba(180, 92, 45, 0.1);
}

.product-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card {
  padding: 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.product-card.missing {
  background: rgba(32, 53, 74, 0.05);
  border-style: dashed;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-chip.approved {
  background: rgba(29, 109, 115, 0.12);
  color: var(--teal-deep);
}

.status-chip.pending {
  background: rgba(217, 177, 92, 0.18);
  color: #6c5210;
}

.status-chip.accent {
  background: rgba(32, 53, 74, 0.1);
  color: var(--navy);
}

.status-chip.neutral {
  background: rgba(24, 37, 47, 0.08);
  color: var(--muted);
}

.product-support,
.muted-note {
  color: var(--muted);
}

.compact-list li {
  margin-bottom: 0.3rem;
}

.fallback-block {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.admin-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.form-stack {
  display: grid;
  gap: 1rem;
}

.field-grid {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-weight: 700;
  color: var(--navy);
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(24, 37, 47, 0.15);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font: inherit;
}

.textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
}

.status-panel {
  display: grid;
  gap: 0.8rem;
}

.query-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(32, 53, 74, 0.14);
  background: rgba(32, 53, 74, 0.08);
  color: var(--navy);
  cursor: pointer;
  font: inherit;
}

.pill-button:hover,
.pill-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(20, 75, 80, 0.12);
}

.status-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.browse-filter-panel {
  display: grid;
  gap: 1rem;
}

.browse-filter-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: start;
  justify-content: space-between;
}

.browse-status,
.browse-empty {
  margin: 0;
}

.browse-status {
  color: var(--muted);
}

.browse-empty {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(24, 37, 47, 0.2);
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy);
}

.pill-button.is-active {
  background: var(--navy);
  border-color: rgba(32, 53, 74, 0.22);
  color: #fff;
}

[data-browse-section][hidden],
article.card[hidden],
article.template-card[hidden] {
  display: none !important;
}

.status-stat {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.status-stat strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.status-stat span {
  color: var(--teal-deep);
  font-size: 1.05rem;
  font-weight: 700;
}

.status-stat.wide {
  grid-column: 1 / -1;
}

.output-box {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(24, 37, 47, 0.06);
  overflow-x: auto;
  white-space: pre-wrap;
}

.output-box.error-state {
  border-color: rgba(180, 92, 45, 0.26);
  background: rgba(180, 92, 45, 0.12);
}

.result-grid {
  display: grid;
  gap: 1rem;
}

.result-card {
  padding: 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.result-card.primary {
  border-color: rgba(29, 109, 115, 0.24);
  background: rgba(29, 109, 115, 0.08);
}

.score-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(217, 177, 92, 0.22);
  color: #6c5210;
  font-size: 0.85rem;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

.command-block {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(32, 53, 74, 0.06);
  overflow-x: auto;
}

code {
  font-family: "Consolas", "Liberation Mono", monospace;
  font-size: 0.95em;
}

.footer-panel {
  margin-top: 1.5rem;
  padding: 1.25rem 1.4rem;
  background:
    linear-gradient(135deg, rgba(24, 37, 47, 0.95), rgba(29, 109, 115, 0.88)),
    rgba(24, 37, 47, 0.95);
  color: #f5eedf;
}

.site-footer {
  padding-bottom: 2.5rem;
}

.site-footer a {
  color: #f7e8bf;
}

.fine-print {
  color: rgba(245, 238, 223, 0.78);
  font-size: 0.95rem;
}

.section-label {
  color: var(--rust);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 760px) {
  .header-inner {
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
  }

  .hero {
    padding: 2.6rem;
  }

  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }

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

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

/* Storefront alignment pass for the private knowledge-base preview. */

:root {
  --paper: #f5f4ef;
  --paper-strong: #ffffff;
  --ink: #111416;
  --muted: #5e6b75;
  --line: #dfdbcf;
  --teal: #006a6a;
  --teal-deep: #104b4d;
  --rust: #8d5332;
  --gold: #4caf50;
  --navy: #1b1f23;
  --shadow: 0 12px 30px rgba(17, 20, 22, 0.08);
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --content-width: 1180px;
}

body {
  background:
    linear-gradient(180deg, rgba(0, 106, 106, 0.07) 0, rgba(0, 106, 106, 0) 420px),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
}

.brand-text strong,
h1,
h2,
h3 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.site-header {
  background: rgba(245, 244, 239, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(17, 20, 22, 0.04);
}

.brand-badge {
  border-radius: 8px;
  background: var(--navy);
  box-shadow: inset 0 -3px 0 rgba(76, 175, 80, 0.5);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 950;
}

.brand-text strong {
  color: var(--ink);
  font-weight: 900;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border-color: rgba(0, 106, 106, 0.14);
  background: rgba(0, 106, 106, 0.07);
  color: var(--teal-deep);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.hero,
.footer-panel {
  border-radius: 8px;
  background:
    linear-gradient(95deg, rgba(17, 20, 22, 0.98) 0%, rgba(18, 53, 54, 0.92) 58%, rgba(0, 106, 106, 0.82) 100%),
    #15181b;
}

.hero::after,
.panel::after,
.template-frame::after {
  display: none;
}

.hero {
  padding: clamp(1.4rem, 4vw, 3rem);
}

h1 {
  max-width: 980px;
  font-size: clamp(2rem, 5vw, 4.1rem);
  font-weight: 900;
  line-height: 0.99;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 850;
  line-height: 1.1;
  text-wrap: balance;
}

h3 {
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.2;
}

p,
li {
  max-width: 76ch;
}

.panel,
.template-frame,
.card,
.template-card,
.resource-card,
.result-card,
.status-stat,
.output-box,
.command-block,
.browse-empty {
  border-radius: 8px;
  border-color: var(--line);
  background: color-mix(in srgb, var(--paper-strong) 96%, var(--paper));
  box-shadow: 0 1px 0 rgba(17, 20, 22, 0.04), var(--shadow);
}

.panel,
.template-frame {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.card,
.template-card,
.resource-card {
  padding: 1rem;
}

.eyebrow,
.section-label {
  color: #f0f7ef;
  letter-spacing: 0.06em;
  font-weight: 850;
}

.panel .section-label,
.template-frame .section-label {
  color: var(--teal);
}

.button,
.card-link,
.pill-button {
  border-radius: 6px;
  font-weight: 850;
}

.button.primary,
.pill-button.is-active {
  background: var(--teal);
  color: #fff;
}

.button.secondary,
.card-link,
.pill-button {
  border-color: rgba(0, 106, 106, 0.18);
  background: rgba(0, 106, 106, 0.08);
  color: var(--teal-deep);
}

@media (max-width: 759px) {
  .header-inner,
  .page-shell,
  .site-footer-inner {
    width: min(calc(100% - 1rem), var(--content-width));
  }

  .site-header {
    position: sticky;
  }

  .hero-actions,
  .button-row {
    display: grid;
  }

  .button,
  .card-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
