@import url("/css/style.css");

body.content-page { min-height: 100vh; }

.content-page .nav {
  background: rgba(4, 8, 11, 0.92);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--ice);
  color: var(--bg);
  padding: 0.7rem 1rem;
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

.content-main {
  max-width: 88rem;
  min-height: calc(100vh - 18rem);
  margin: 0 auto;
  padding: 8.5rem var(--pad) clamp(5rem, 10vw, 9rem);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 2rem;
  color: #68808a;
  font-family: var(--font-pixel);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.breadcrumbs a { color: var(--text-dim); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ice); }

.content-hero {
  max-width: 68rem;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
}

.content-hero h1 {
  max-width: 64rem;
  margin: 1.25rem 0 1.6rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-stretch: 120%;
  font-weight: 880;
  letter-spacing: -0.035em;
  line-height: 0.92;
}

.content-hero__lede {
  max-width: 48rem;
  color: var(--text-dim);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.7;
}

.content-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.75rem;
  color: #78909a;
  font-family: var(--font-pixel);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.doc-grid,
.release-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.doc-card,
.release-card {
  position: relative;
  min-height: 18rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(125, 249, 255, 0.055), rgba(8, 19, 27, 0.7) 44%, rgba(7, 16, 22, 0.92));
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.22s, transform 0.22s var(--ease-out), background 0.22s;
}

.doc-card:hover,
.release-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: linear-gradient(145deg, rgba(125, 249, 255, 0.09), rgba(8, 19, 27, 0.78) 44%, rgba(7, 16, 22, 0.96));
}

.doc-card__number {
  color: var(--ice-dim);
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
}

.doc-card h2,
.release-card h2 {
  margin: 2.7rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  font-stretch: 112%;
  font-weight: 800;
  line-height: 1;
}

.doc-card p,
.release-card p { max-width: 34rem; color: var(--text-dim); }

.doc-card__arrow {
  position: absolute;
  right: 1.6rem;
  bottom: 1.4rem;
  color: var(--ice);
  font-size: 1.5rem;
}

.content-section { margin-top: clamp(4rem, 8vw, 7rem); }

.content-section__heading {
  max-width: 52rem;
  margin-bottom: 2rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 820;
  letter-spacing: -0.025em;
  line-height: 1;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.quick-links a {
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.quick-links a:hover { border-color: var(--line-strong); color: var(--ice); }

.ai-setup {
  margin-bottom: clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(125, 249, 255, 0.07), transparent 58%);
}

.ai-setup__intro {
  max-width: 46rem;
  margin: -0.5rem 0 2rem;
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.7;
}

.ai-setup__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ai-setup__card {
  min-height: 16rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  background: rgba(2, 6, 8, 0.72);
  color: var(--text);
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.ai-setup__card:hover {
  border-color: var(--ice-deep);
  background: rgba(10, 24, 28, 0.8);
}

.ai-setup__card > span,
.ai-setup__card > strong {
  color: var(--ice);
  font-family: var(--font-pixel);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.ai-setup__card h3 {
  margin: 2.3rem 0 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
}

.ai-setup__card p {
  min-height: 4.8rem;
  margin-bottom: 1.2rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(11rem, 15rem) minmax(0, 46rem);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.doc-toc {
  position: sticky;
  top: 7rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.doc-toc strong {
  margin-bottom: 0.7rem;
  color: var(--ice-deep);
  font-family: var(--font-pixel);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}

.doc-toc a {
  padding: 0.35rem 0;
  color: var(--text-dim);
  font-size: 0.88rem;
  text-decoration: none;
}

.doc-toc a:hover { color: var(--ice); }

.prose { min-width: 0; }

.prose h2 {
  margin: 4rem 0 1.25rem;
  scroll-margin-top: 7rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  margin: 2.2rem 0 0.7rem;
  scroll-margin-top: 7rem;
  color: var(--text);
  font-size: 1.15rem;
}

.prose p,
.prose li { color: var(--text-dim); line-height: 1.8; }
.prose p + p { margin-top: 1rem; }
.prose ul,
.prose ol { margin: 1rem 0 1.5rem 1.3rem; }
.prose li + li { margin-top: 0.45rem; }
.prose strong { color: var(--text); }
.prose a { color: var(--ice); text-underline-offset: 0.2em; }

.prose pre {
  margin: 1.5rem 0;
  padding: 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #020608;
  color: #b9f9fd;
  font-size: 0.88rem;
  line-height: 1.7;
}

.prose :not(pre) > code {
  padding: 0.15rem 0.38rem;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: #c7fdff;
  font-size: 0.88em;
}

.callout {
  margin: 1.5rem 0;
  padding: 1.1rem 1.2rem;
  border-left: 3px solid var(--ice-deep);
  background: rgba(125, 249, 255, 0.055);
}

.callout strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ice);
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.prompt-card {
  margin: 1.6rem 0;
  border: 1px solid var(--line-strong);
  background: #020608;
}

.prompt-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(125, 249, 255, 0.045);
}

.prompt-card__bar > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.prompt-card__bar span,
.prompt-card__bar strong {
  font-family: var(--font-pixel);
  font-size: 0.56rem;
  letter-spacing: 0.11em;
}

.prompt-card__bar span { color: #71868e; }
.prompt-card__bar strong { color: var(--ice); }

.prompt-card__bar button {
  min-width: 8.5rem;
  min-height: 44px;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  border: 1px solid var(--ice-deep);
  background: transparent;
  color: var(--ice);
  font-family: var(--font-pixel);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  transition: background-color 180ms ease, color 180ms ease;
}

.prompt-card__bar button:hover,
.prompt-card__bar button[data-copy-state="copied"] {
  background: var(--ice);
  color: var(--bg);
}

.prompt-card pre {
  max-height: 32rem;
  margin: 0;
  border: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.prompt-card__status {
  min-height: 1.8rem;
  margin: 0;
  padding: 0 1.25rem 0.7rem;
  color: var(--ice-deep) !important;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.article-nav a {
  min-height: 7rem;
  padding: 1rem;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.article-nav a:hover { border-color: var(--line-strong); }
.article-nav span { display: block; color: var(--text-dim); font-size: 0.78rem; }

.release-card { min-height: 20rem; }
.release-card__date { color: #78909a; font-family: var(--font-pixel); font-size: 0.58rem; letter-spacing: 0.12em; }
.release-card__version { margin-top: 0.75rem; color: var(--ice); font-family: var(--font-pixel); font-size: 0.62rem; letter-spacing: 0.14em; }
.release-card__tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.5rem; }
.release-card__tags span { padding: 0.3rem 0.55rem; border: 1px solid var(--line); color: #79919a; font-size: 0.7rem; }

.release-article .prose > p:first-child {
  color: var(--text);
  font-size: 1.2rem;
}

@media (max-width: 800px) {
  .content-main { padding-top: 7rem; }
  .doc-grid,
  .release-grid,
  .ai-setup__grid,
  .doc-layout,
  .article-nav { grid-template-columns: 1fr; }
  .doc-toc { position: static; }
  .doc-card,
  .release-card { min-height: 15rem; }
  .prompt-card__bar { align-items: stretch; flex-direction: column; }
  .prompt-card__bar button { width: 100%; }
  .prompt-card pre { max-height: 24rem; }
}
