@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Instrument+Serif:ital@0;1&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #fcfbf7;
  --bg-soft: #f7f4ec;
  --surface: rgba(255, 255, 252, 0.95);
  --surface-strong: #fffdfa;
  --surface-light: rgba(255, 255, 255, 0.84);
  --text: #231914;
  --muted: #73665d;
  --line: rgba(190, 165, 138, 0.14);
  --line-strong: rgba(190, 165, 138, 0.24);
  --accent: #d97745;
  --accent-strong: #c86434;
  --accent-warm: #f4e7ce;
  --shadow: 0 24px 60px rgba(109, 79, 47, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1200px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-hero: "Fraunces", "Georgia", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 119, 69, 0.04), transparent 34%),
    radial-gradient(circle at 0% 10%, rgba(227, 206, 169, 0.07), transparent 28%),
    linear-gradient(180deg, #fcfbf6 0%, #fbfaf4 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(214, 191, 164, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 191, 164, 0.1) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.3) 72%, transparent 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 1000;
  background: var(--text);
  color: #06111f;
  padding: 12px 16px;
  border-radius: 999px;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(252, 250, 245, 0.9);
  border-bottom: 1px solid rgba(197, 173, 144, 0.18);
}

.site-header .container,
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-header .container {
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  font-size: 1rem;
  box-shadow: 0 10px 24px rgba(122, 93, 65, 0.08);
  border: 1px solid rgba(197, 173, 144, 0.28);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-family: var(--font-body);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff8f1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 16px 30px rgba(201, 100, 52, 0.2);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(217, 119, 69, 0.14);
  background: rgba(255, 255, 252, 0.88);
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(109, 79, 47, 0.06);
}

.page-hero,
.mini-hero {
  padding: 82px 0 34px;
}

.hero-grid,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy h1,
.page-title {
  margin: 18px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.75rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero-copy p,
.lead,
.section-intro {
  color: var(--muted);
  font-size: 1.06rem;
}

.accent-text {
  color: var(--accent);
}

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

.hero-points,
.meta-list,
.popular-links,
.footer-links,
.related-list,
.info-list,
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-points li,
.chip,
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  border: 1px solid rgba(197, 173, 144, 0.2);
  font-size: 0.92rem;
}

.hero-panel,
.card,
.section-shell,
.prompt-lab,
.faq-shell,
.cta-panel,
.table-wrap,
.related-card,
.search-grid a,
.signal-strip,
.mini-panel {
  background: linear-gradient(180deg, rgba(255, 255, 252, 0.95), rgba(252, 250, 245, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  top: -70px;
  background: radial-gradient(circle, rgba(217, 119, 69, 0.12), transparent 70%);
}

.tool-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.prompt-box {
  width: 100%;
  min-height: 160px;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: #5f544c;
  font: inherit;
  resize: vertical;
}

.prompt-box::placeholder {
  color: #9a8d83;
}

.prompt-box:focus,
.control-select:focus {
  outline: none;
  border-color: rgba(217, 119, 69, 0.32);
  box-shadow: 0 0 0 3px rgba(217, 119, 69, 0.08);
}

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

.tool-grid-five {
  grid-template-columns: 1.1fr 1.25fr 0.8fr 0.7fr 1fr;
}

.tool-grid-six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.control {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(249, 246, 239, 0.78);
  padding: 14px 16px;
}

.control-label {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.control-value,
.control-select {
  font-weight: 700;
  font-size: 1rem;
}

.control-select {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  appearance: auto;
  padding: 0;
  cursor: pointer;
}

.chip-row,
.metrics,
.search-grid,
.card-grid,
.footer-links,
.related-grid,
.link-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip-row {
  margin-top: 16px;
}

.metric {
  flex: 1 1 160px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 6px;
}

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

.glance-item {
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 252, 0.96), rgba(252, 250, 245, 0.98));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.glance-item span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.glance-item strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.45;
}

main section,
.content-block {
  padding: 30px 0;
}

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

.section-heading-centered {
  justify-content: center;
  text-align: center;
}

.section-heading h2,
.section-shell h2,
.content-block h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h3 {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
}

p {
  margin: 0 0 16px;
}

.card-grid {
  align-items: stretch;
}

.card {
  flex: 1 1 260px;
  padding: 22px;
}

.card p:last-child,
.section-shell p:last-child,
.faq-item p:last-child {
  margin-bottom: 0;
}

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #04111c;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-warm) 100%);
}

.section-shell {
  padding: 26px;
}

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

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 400;
}

td {
  color: var(--muted);
}

.prompt-lab {
  padding: 26px;
}

.prompt-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
}

.prompt-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1rem;
}

.video-gallery-section {
  padding-top: 12px;
}

.gallery-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.video-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.video-card {
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 252, 0.95), rgba(252, 250, 245, 0.96));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #f6f0e5;
}

.search-grid a,
.related-card {
  flex: 1 1 220px;
  padding: 18px;
}

.search-grid a:hover,
.related-card:hover {
  border-color: var(--line-strong);
}

.faq-shell {
  padding: 12px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

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

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 16px;
  font-weight: 700;
  font-size: 1.03rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 16px 18px;
  color: var(--muted);
}

.cta-panel {
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.cta-panel h2,
.cta-panel p {
  margin: 0;
}

.breadcrumbs {
  padding-top: 24px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 12px;
  color: rgba(255, 255, 255, 0.24);
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--text);
}

.page-header {
  padding: 28px 0 12px;
}

.page-title {
  font-size: clamp(2.25rem, 5vw, 3.8rem);
  margin: 12px 0 14px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.content-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content-sidebar {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-panel {
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 34, 58, 0.95), rgba(10, 21, 39, 0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: #f7f1e6;
}

.sidebar-panel h3 {
  margin-bottom: 12px;
  color: #fff7ef;
}

.sidebar-panel p,
.sidebar-panel li {
  color: rgba(247, 241, 230, 0.8);
}

.sidebar-panel a {
  color: #ffb98d;
}

.sidebar-panel ul {
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
}

.sidebar-panel li + li {
  margin-top: 10px;
}

.signal-strip {
  padding: 16px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.signal-strip strong {
  font-family: var(--font-display);
}

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

.site-footer {
  margin-top: 60px;
  padding: 40px 0 50px;
  border-top: 1px solid rgba(197, 173, 144, 0.18);
  background: rgba(252, 250, 245, 0.94);
}

.footer-top {
  align-items: start;
}

.footer-copy {
  max-width: 360px;
}

.footer-copy p,
.footer-meta {
  color: var(--muted);
}

.footer-links a {
  padding: 9px 0;
  color: var(--muted);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.footer-meta {
  margin-top: 22px;
  font-size: 0.94rem;
}

.footer-search-intents {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(197, 173, 144, 0.18);
}

.footer-search-intents strong {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
}

.footer-intent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.footer-intent-links a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  color: var(--muted);
}

.footer-intent-links a:hover,
.footer-intent-links a:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-hero-home {
  padding-top: 12px;
}

.hero-home-shell {
  position: relative;
  text-align: center;
  padding: 8px 0 0;
}

.hero-art {
  position: absolute;
  inset: 0 0 auto 0;
  height: 210px;
  pointer-events: none;
  opacity: 0.55;
}

.horse {
  position: absolute;
  top: 10px;
  width: 340px;
  height: 170px;
  filter: blur(0.2px);
}

.horse::before,
.horse::after {
  content: "";
  position: absolute;
}

.horse::before {
  inset: 26px 38px 40px 38px;
  border: 3px solid rgba(206, 172, 142, 0.58);
  border-radius: 50% 44% 42% 48% / 44% 42% 50% 46%;
  transform: skewX(-9deg);
}

.horse::after {
  width: 74px;
  height: 74px;
  right: 38px;
  top: 26px;
  border: 3px solid rgba(206, 172, 142, 0.58);
  border-left: 0;
  border-bottom: 0;
  border-radius: 54% 56% 42% 56%;
  transform: rotate(18deg);
}

.horse-left {
  left: 170px;
  transform: scaleX(-1);
}

.horse-right {
  right: 140px;
}

.hero-copy-centered {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
}

.hero-copy-centered h1 {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-hero);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}

.hero-note {
  width: fit-content;
  margin: 0 auto 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(197, 173, 144, 0.22);
  background: rgba(255, 255, 252, 0.94);
  box-shadow: 0 12px 30px rgba(109, 79, 47, 0.06);
  color: #6b5d52;
  font-size: 0.95rem;
}

.hero-badge {
  width: fit-content;
  margin: 0 auto 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(217, 119, 69, 0.14);
  background: rgba(255, 255, 252, 0.94);
  box-shadow: 0 12px 30px rgba(109, 79, 47, 0.06);
  color: var(--accent-strong);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-lead {
  max-width: 760px;
  margin: 0 auto;
  color: #6f655d;
  font-size: clamp(0.72rem, 0.88vw, 0.86rem);
  line-height: 1.5;
}

.hero-actions-centered {
  justify-content: center;
}

.hero-subline {
  margin-top: 18px;
  text-align: center;
  color: #9a8a7d;
  font-size: 0.98rem;
}

.hero-panel-wide {
  max-width: 1120px;
  margin: 18px auto 0;
  padding: 16px 16px 14px;
  border-radius: 36px;
  background: rgba(255, 255, 252, 0.92);
}

.hero-access-notice {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(220, 179, 126, 0.34);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(252, 244, 228, 0.9) 0%, rgba(255, 248, 238, 0.94) 100%);
}

.hero-access-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d98a54 0%, #c96434 100%);
  box-shadow: 0 0 0 5px rgba(217, 138, 84, 0.12);
}

.hero-access-body {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  flex-wrap: wrap;
  text-align: left;
}

.hero-access-copy {
  margin: 0;
  flex: 1 1 560px;
  color: #746458;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
}

.hero-access-link {
  flex: 0 0 auto;
  color: #b6582d;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(182, 88, 45, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 6px 14px rgba(201, 100, 52, 0.08);
}

.hero-access-link::after {
  content: "↗";
  font-size: 0.92rem;
}

.hero-access-link:hover,
.hero-access-link:focus-visible {
  color: #97421d;
  border-color: rgba(151, 66, 29, 0.38);
  background: rgba(255, 250, 245, 0.96);
}

.hero-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.hero-suggestion-row {
  align-items: center;
  margin-top: 0;
}

.hero-suggestion-label {
  color: #94877d;
  font-size: 0.95rem;
  margin-right: 2px;
}

.hero-suggestion-row .chip {
  text-decoration: none;
}

.hero-submit {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff8f1;
  font-size: 1.35rem;
  box-shadow: 0 14px 28px rgba(201, 100, 52, 0.2);
}

.hero-points-centered {
  justify-content: center;
  margin-top: 18px;
}

.docs-hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.docs-hero .lead {
  max-width: 920px;
}

.docs-related-links {
  align-items: flex-start;
}

.docs-related-links strong {
  margin-right: 4px;
}

.docs-related-links a.chip {
  text-decoration: none;
}

.docs-grid,
.endpoint-grid,
.workflow-grid,
.code-grid {
  display: grid;
  gap: 16px;
}

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

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

.docs-card,
.endpoint-card,
.workflow-step {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
}

.docs-card p:last-child,
.endpoint-card p:last-child,
.workflow-step p:last-child {
  margin-bottom: 0;
}

.docs-label,
.endpoint-method {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.docs-label {
  color: var(--accent-strong);
  background: rgba(217, 119, 69, 0.1);
}

.endpoint-method {
  color: #fff8f1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}

.endpoint-method.get {
  background: linear-gradient(135deg, #284661 0%, #1c3148 100%);
}

.docs-card code,
.endpoint-path,
.inline-code {
  font-family: "SFMono-Regular", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.docs-card code,
.inline-code {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(244, 231, 206, 0.58);
  color: #5d4433;
}

.endpoint-path {
  margin: 14px 0 10px;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text);
}

.docs-list,
.endpoint-list,
.sidebar-links {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.docs-list li + li,
.endpoint-list li + li,
.sidebar-links li + li {
  margin-top: 10px;
}

.docs-note {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px dashed rgba(217, 119, 69, 0.28);
  background: rgba(244, 231, 206, 0.32);
  color: #6d5f53;
}

.docs-note p:last-child {
  margin-bottom: 0;
}

.code-block {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid rgba(40, 70, 97, 0.12);
  background:
    linear-gradient(180deg, rgba(24, 34, 49, 0.98), rgba(14, 23, 35, 0.98));
  color: #f5eee6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.code-block code {
  display: block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92rem;
  line-height: 1.7;
  white-space: pre;
}

.code-caption {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.workflow-step {
  position: relative;
  padding-top: 58px;
}

.workflow-step span {
  position: absolute;
  top: 18px;
  left: 20px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(217, 119, 69, 0.14);
  color: var(--accent-strong);
  font-weight: 800;
}

.workflow-step h3 {
  margin-bottom: 10px;
}

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

.docs-mini-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.docs-mini-card strong,
.docs-stat strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.98rem;
}

.docs-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.sidebar-links {
  padding-left: 0;
  list-style: none;
}

.sidebar-links a {
  color: #ffb98d;
}

.sidebar-links li {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-links li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.content-sidebar .docs-stat-grid {
  grid-template-columns: 1fr;
}

.content-sidebar .docs-stat {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.content-sidebar .docs-stat p {
  color: var(--text);
}

.content-sidebar .docs-stat .inline-code {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .hero-grid,
  .two-column,
  .content-layout,
  .split-copy {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    position: static;
  }

  .section-heading,
  .cta-panel,
  .footer-top {
    flex-direction: column;
    align-items: start;
  }

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

  .tool-grid-six,
  .glance-grid,
  .video-gallery-grid,
  .docs-mini-grid,
  .docs-stat-grid,
  .docs-grid,
  .endpoint-grid,
  .workflow-grid,
  .code-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .horse-left {
    left: 20px;
  }

  .horse-right {
    right: 20px;
  }
}

@media (max-width: 840px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 10px);
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(252, 250, 245, 0.98);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .page-hero,
  .mini-hero {
    padding-top: 56px;
  }

  .hero-panel,
  .section-shell,
  .card,
  .prompt-lab,
  .cta-panel,
  .sidebar-panel {
    padding: 20px;
  }

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

  .tool-grid-five {
    grid-template-columns: 1fr;
  }

  .tool-grid-six,
  .glance-grid,
  .video-gallery-grid,
  .docs-mini-grid,
  .docs-stat-grid,
  .docs-grid,
  .endpoint-grid,
  .workflow-grid,
  .code-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .chip-row,
  .hero-points,
  .search-grid,
  .card-grid,
  .footer-links,
  .related-grid {
    gap: 10px;
  }

  .hero-copy h1,
  .page-title {
    font-size: clamp(2.35rem, 12vw, 4rem);
    line-height: 0.98;
  }

  .hero-copy-centered h1 {
    font-size: clamp(1.65rem, 7vw, 2.25rem);
    line-height: 1.04;
  }

  .hero-note {
    font-size: 0.88rem;
  }

  .hero-badge {
    font-size: 0.88rem;
  }

  .hero-lead {
    font-size: 0.8rem;
  }

  .hero-art {
    height: 130px;
  }

  .horse {
    width: 180px;
    height: 90px;
    top: 16px;
  }

  .hero-panel-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-submit {
    width: 100%;
    height: 52px;
    border-radius: 16px;
  }
}
