.content-page .content-hero {
  position: relative;
  overflow: hidden;
  padding: calc(86px + var(--header-height)) 0 76px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(17, 21, 25, 0.96), rgba(17, 21, 25, 0.56)),
    var(--content-image) center 45% / cover;
}
.content-page .content-hero-video {
  isolation: isolate;
}
.content-page .content-hero-video .hero-video {
  object-position: center 45%;
}
.content-page .content-hero-video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(17, 21, 25, 0.96),
    rgba(17, 21, 25, 0.56)
  );
  pointer-events: none;
}
.content-page .content-hero h1 {
  max-width: 900px;
  margin: 14px 0 0;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.content-page .guide-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 850px);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.content-page .guide-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  min-width: 0;
  max-height: calc(100dvh - var(--header-height) - 48px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.content-page .guide-nav,
.content-page .guide-subpages {
  list-style: none;
  margin: 0;
  padding: 0;
}
.content-page .guide-subpages {
  margin: 4px 0 8px 14px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}
.content-page .guide-nav li {
  margin: 0;
}
.content-page .guide-nav li + li {
  margin-top: 6px;
}
.content-page .guide-nav a {
  display: block;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.content-page .guide-nav a:hover,
.content-page .guide-nav a:focus-visible {
  color: var(--text);
  background: var(--bg);
}
.content-page .guide-nav a[aria-current="page"] {
  color: var(--accent-bright);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--panel));
}
.content-page .guide-article {
  min-width: 0;
  width: 100%;
  overflow-wrap: anywhere;
}
.content-page .guide-page-title {
  margin: 0 0 28px;
}
.content-page .guide-article h3 {
  margin: 40px 0 16px;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1.3;
}
.content-page .guide-article h4 {
  margin: 28px 0 12px;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.4;
}
.content-page .guide-article p,
.content-page .guide-article ul,
.content-page .guide-article ol {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.8;
}
.content-page .guide-copy ul,
.content-page .guide-copy ol {
  padding-left: 24px;
}
.content-page .guide-copy li {
  margin-bottom: 8px;
}
.content-page .guide-article a:not(.button) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.content-page .guide-article a:not(.button):hover,
.content-page .guide-article a:not(.button):focus-visible {
  color: var(--accent-bright);
}
.content-page .guide-article code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--panel);
  color: var(--text);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
.content-page .guide-article pre {
  margin: 0 0 24px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  white-space: pre-wrap;
  line-height: 1.65;
}
.content-page .guide-article pre code {
  padding: 0;
  background: none;
}
.content-page .guide-intro,
.content-page .guide-notice,
.content-page .guide-copy blockquote {
  margin: 0 0 28px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
}
.content-page .guide-intro > :last-child,
.content-page .guide-notice > :last-child,
.content-page .guide-copy blockquote > :last-child {
  margin-bottom: 0;
}
.content-page .guide-copy > :first-child {
  margin-top: 0;
}
.content-page .guide-copy img {
  max-width: 100%;
  height: auto;
}
.content-page .guide-copy table {
  display: block;
  max-width: 100%;
  margin: 0 0 24px;
  overflow-x: auto;
  border-collapse: collapse;
}
.content-page .guide-copy th,
.content-page .guide-copy td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  text-align: start;
}
.content-page .content-story {
  min-width: 0;
}
.content-page .content-block {
  margin-bottom: 46px;
}
.content-page .content-block:last-child {
  margin-bottom: 0;
}
.content-page .content-block h2,
.content-page .guide-article .content-contributors h3 {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.content-page .content-block h3 {
  margin: 26px 0 10px;
  font-size: 1.1rem;
  color: var(--text);
}
.content-page .content-block p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 16px;
}
.content-page .content-block a:not(.button) {
  color: var(--accent);
  text-underline-offset: 4px;
}
.content-page .content-block ul {
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
}
.content-page .content-block li {
  margin-bottom: 8px;
}
.content-page .content-contributors {
  margin-top: 40px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.content-page .guide-article .content-contributors ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.content-page .guide-article .content-contributors li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 6px 0;
  font-size: 0.92rem;
}
.content-page .content-contributors img {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--bg);
}
.content-page .content-contributor-initial {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: var(--bg);
  border-radius: 6px;
  color: var(--accent);
}
.content-tillice::after {
  content: "";
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 9001;
  width: 250px;
  height: 250px;
  background: url("../img/tillice.png") right bottom / contain no-repeat;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 1.2s;
}
.content-tillice:hover::after,
.content-tillice:focus-visible::after {
  transform: translateY(0);
}
.content-tillice:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 4px;
}
.content-page .content-download-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.2fr);
  gap: 80px;
  align-items: start;
}
.content-page .content-download-actions {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.content-page .content-action-stack {
  display: grid;
  gap: 12px;
}
.content-page .content-action-stack .button {
  width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.5;
}
.content-page .content-notice {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.9rem;
  background: var(--bg);
}
.content-page .content-guide-link {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--accent);
  line-height: 1.5;
}
.content-page .content-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.content-page .content-gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.content-page .content-gallery figure::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 35%,
    rgb(8 13 18 / 20%) 60%,
    rgb(8 13 18 / 88%)
  );
  pointer-events: none;
}
.content-page .content-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.content-page .content-gallery figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(16px, 2.2vw, 28px);
  color: #fff;
  font-size: clamp(1.125rem, 1.8vw, 1.6rem);
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 2px 12px rgb(0 0 0 / 75%);
  pointer-events: none;
}
.content-page .content-gallery-cta {
  text-align: center;
  padding-top: 60px;
}
.content-page .content-gallery-cta h2 {
  margin-bottom: 24px;
}
.content-page .content-gallery-credits {
  max-width: 760px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}
.content-page .content-gallery-credits a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.content-page .content-error {
  max-width: 780px;
  min-height: 60vh;
}
.content-page .content-error h1 {
  font-size: clamp(5rem, 15vw, 9rem);
  line-height: 1;
  margin: 20px 0;
  color: var(--accent);
}
.content-page .content-error p {
  color: var(--muted);
  line-height: 1.8;
}
.content-page .content-error a:not(.button) {
  color: var(--accent);
}
.content-page .content-error .button {
  margin-top: 24px;
}
@media (max-width: 900px) {
  .content-page .content-download-grid {
    gap: 35px;
  }
  .content-page .content-download-actions {
    padding: 22px;
  }
}
@media (max-width: 800px) {
  .content-page .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .content-page .guide-sidebar {
    position: static;
    max-height: none;
  }
}
@media (max-width: 680px) {
  .content-page .content-hero {
    padding: calc(64px + var(--header-height)) 0 54px;
  }
  .content-page .content-download-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .content-page .content-gallery {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .content-page .content-gallery img {
    transition: none;
  }
}
