:root {
  --guide-bg: #000;
  --guide-surface: rgba(255, 255, 255, 0.035);
  --guide-surface-strong: rgba(255, 255, 255, 0.06);
  --guide-border: rgba(255, 255, 255, 0.1);
  --guide-border-strong: rgba(10, 143, 106, 0.48);
  --guide-text: #f5f7f6;
  --guide-muted: #a5aaa8;
  --guide-accent: #0a8f6a;
  --guide-accent-light: #70dfbd;
}

header .header-locale-toggle {
  min-height: 44px;
  border-radius: 0.5rem;
  gap: 0.375rem;
  line-height: 1.5;
}

header .header-locale-toggle svg {
  width: 0.875rem;
  height: auto;
  border-radius: 2px;
}

@media (min-width: 768px) {
  header .header-locale-toggle {
    min-height: 0;
    border-radius: 0.25rem;
  }
}

@media (min-width: 1024px) {
  header .header-booking {
    display: flex;
  }
}

.guides-shell {
  min-height: 100vh;
  background: var(--guide-bg);
  color: var(--guide-text);
}

.guides-shell::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 82% at 88% 4%, rgba(10, 143, 106, 0.24), transparent 58%),
    radial-gradient(circle at 50% 7%, rgba(10, 143, 106, 0.1), transparent 30rem),
    radial-gradient(circle at 12% 57%, rgba(255, 255, 255, 0.025), transparent 26rem);
}

.guides-main,
.command-guide-main {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 80rem);
  margin-inline: auto;
  padding-block: 7rem 5rem;
}

.guides-main {
  width: min(100% - 2rem, 84rem);
  padding-block-start: 5.5rem;
}

.guides-breadcrumb {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-block-end: 0.25rem;
  color: #858b88;
  font-size: 0.78rem;
}

.guides-breadcrumb a {
  color: #b4bab7;
  text-decoration: none;
}

.guides-breadcrumb a:hover {
  color: var(--guide-accent-light);
}

.guides-hero {
  position: relative;
  z-index: 1;
  max-width: 58rem;
  margin: 0 auto 3.35rem;
  text-align: center;
}

.guides-hero-art {
  position: absolute;
  z-index: 0;
  top: -4.15rem;
  left: 50%;
  display: block;
  width: 100vw;
  height: 18.5rem;
  overflow: hidden;
  transform: translateX(-50%);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 100%);
}

.guides-hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.74;
}

.guides-hero-content {
  position: relative;
  z-index: 1;
}

.guides-eyebrow {
  margin: 0;
  color: var(--guide-accent-light);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.guides-hero h1,
.command-guide-hero h1 {
  max-width: 16ch;
  margin: 1rem auto 1.35rem;
  color: #fff;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 1.02;
  text-wrap: balance;
}

.guides-hero h1 {
  max-width: none;
  font-size: clamp(2.6rem, 4.5vw, 4.25rem);
  white-space: nowrap;
}

.guides-hero-content > p:last-child,
.command-guide-deck {
  max-width: 43rem;
  margin-inline: auto;
  color: var(--guide-muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.75;
  text-wrap: pretty;
}

.guides-library {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-inline: auto;
}

.guides-list-heading {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: clamp(1.35rem, 2.6vw, 1.65rem);
  font-weight: 550;
  letter-spacing: -0.035em;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.75rem);
  direction: ltr;
}

.guide-card {
  overflow: hidden;
  padding: clamp(0.55rem, 1vw, 0.9rem);
  border: 1px solid var(--guide-border);
  border-radius: 0.5rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.22);
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
  direction: rtl;
}

.guide-card:hover {
  transform: translateY(-3px);
  border-color: rgba(10, 143, 106, 0.5);
  background-color: rgba(255, 255, 255, 0.05);
}

.guide-card-media {
  aspect-ratio: 2.78 / 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.45rem;
  border-block-end: 1px solid rgba(255, 255, 255, 0.08);
  background: #06110e;
}

.guide-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.guide-card:hover .guide-card-media img {
  transform: scale(1.025);
}

.guide-card-body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: clamp(8.25rem, 14vw, 13.5rem);
  padding: clamp(0.75rem, 1.4vw, 1.25rem) clamp(0.4rem, 1vw, 0.75rem) clamp(0.15rem, 0.5vw, 0.45rem);
}

.guide-card-meta {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  gap: clamp(0.65rem, 1.2vw, 1.1rem);
  margin: 0;
  color: #b6bcb9;
  font-size: clamp(0.68rem, 0.9vw, 0.84rem);
  line-height: 1.45;
  white-space: nowrap;
}

.guide-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.4rem, 0.65vw, 0.65rem);
}

.guide-card-meta-item img,
.guide-card-link img {
  width: clamp(1rem, 1.45vw, 1.35rem);
  height: clamp(1rem, 1.45vw, 1.35rem);
  flex: 0 0 auto;
  filter: brightness(0) invert(1);
  opacity: 0.86;
}

.guide-card-meta-divider {
  width: 1px;
  height: 1.8rem;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.28);
}

.guide-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.18rem, 2.15vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

.guide-card-description {
  margin: clamp(0.45rem, 0.8vw, 0.75rem) 0 clamp(0.7rem, 1.2vw, 1.1rem);
  color: var(--guide-muted);
  font-size: clamp(0.78rem, 1.25vw, 1.15rem);
  line-height: 1.6;
  text-align: center;
  text-wrap: pretty;
}

.guide-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 1.5vw, 1.4rem);
}

.guide-card-link,
.guide-back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: max-content;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(112, 223, 189, 0.38);
  border-radius: 0.65rem;
  background: rgba(10, 143, 106, 0.13);
  color: #e8fff8;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.guide-card-link:hover,
.guide-back-link:hover {
  border-color: var(--guide-accent-light);
  background: rgba(10, 143, 106, 0.24);
}

.guides-grid .guide-card-link {
  width: clamp(7.5rem, 13vw, 12rem);
  min-height: clamp(44px, 3.4vw, 52px);
  padding: 0.55rem clamp(0.7rem, 1.25vw, 1.15rem);
  border-color: rgba(112, 223, 189, 0.52);
  border-radius: 0.6rem;
  background: linear-gradient(135deg, #0ab989, #0a9f79);
  box-shadow: 0 0.55rem 1.3rem rgba(10, 143, 106, 0.18);
  color: #f2fffb;
  font-size: clamp(0.78rem, 1.2vw, 1.05rem);
  direction: ltr;
}

.guides-grid .guide-card-link span {
  flex: 1;
  text-align: center;
}

.guides-grid .guide-card-link img {
  transition: transform 180ms ease;
}

.guides-grid .guide-card-link:hover {
  border-color: #9af1d6;
  background: linear-gradient(135deg, #10c997, #0aab82);
}

.guides-grid .guide-card-link:hover img:first-child {
  transform: translateX(-2px);
}

.guides-grid .guide-card-link:hover img:last-child {
  transform: translateX(2px);
}

.command-guide-main {
  width: min(100% - 2rem, 74rem);
}

.command-guide-hero {
  margin: 1rem auto 4rem;
  text-align: center;
}

.command-guide-hero h1 {
  max-width: 19ch;
  font-size: clamp(2.55rem, 6vw, 5.2rem);
}

.command-guide-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-block: 1.75rem 0;
  color: #858b88;
  font-size: 0.78rem;
}

.command-guide-meta span + span::before {
  content: "·";
  margin-inline-end: 1rem;
  color: #49504d;
}

.command-guide-cover {
  width: min(100%, 68rem);
  margin: 0 auto 4rem;
  overflow: hidden;
  border: 1px solid var(--guide-border);
  border-radius: 1.3rem;
  background: #06110e;
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.42);
}

.command-guide-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.guide-reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.guide-reading-content {
  min-width: 0;
}

.guide-reading-layout-single {
  grid-template-columns: minmax(0, 1fr);
}

.guide-notion-content {
  max-width: 78ch;
  margin-block-end: 3.5rem;
  color: var(--guide-muted);
  font-size: 1rem;
  line-height: 1.85;
  text-align: start;
}

.guide-notion-content :is(h2, h3, h4) {
  scroll-margin-top: 6rem;
  color: #fff;
  text-wrap: balance;
}

.guide-notion-content h2 {
  margin: 3.5rem 0 1rem;
}

.guide-notion-content h2:first-child {
  margin-block-start: 0;
}

.guide-notion-content h3 {
  margin: 2rem 0 0.65rem;
  font-size: 1.25rem;
}

.guide-notion-content h4 {
  margin: 1.5rem 0 0.55rem;
  font-size: 1.05rem;
}

.guide-notion-content p {
  margin: 0.9rem 0;
}

.guide-notion-content :is(ul, ol) {
  display: grid;
  gap: 0.55rem;
  padding-inline-start: 1.4rem;
}

.guide-notion-content a {
  color: var(--guide-accent-light);
  text-underline-offset: 0.2em;
}

.guide-notion-content :not(pre) > code {
  padding: 0.12rem 0.35rem;
  border: 1px solid rgba(112, 223, 189, 0.2);
  border-radius: 0.35rem;
  background: rgba(10, 143, 106, 0.12);
  color: #d9fff2;
  font: 600 0.9em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  direction: ltr;
}

.guide-notion-content blockquote {
  margin: 1.5rem 0;
  padding: 0.35rem 1.15rem;
  border-inline-start: 3px solid var(--guide-accent);
  color: #d5dbd8;
}

.notion-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(112, 223, 189, 0.3);
  border-radius: 0.85rem;
  background: rgba(10, 143, 106, 0.1);
}

.notion-callout p {
  margin: 0;
}

.notion-callout-icon {
  font-size: 1.15rem;
  line-height: 1.6;
}

.notion-code pre,
.guide-notion-content > pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--guide-border);
  border-radius: 0.75rem;
  background: #070a09;
  color: #e8eeeb;
  direction: ltr;
  text-align: left;
}

.notion-code figcaption,
.notion-image figcaption {
  margin-block-start: 0.55rem;
  color: #858b88;
  font-size: 0.8rem;
}

.notion-image {
  margin: 2rem 0;
}

.notion-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--guide-border);
  border-radius: 0.9rem;
}

.notion-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.notion-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.notion-table-wrap :is(th, td) {
  padding: 0.75rem;
  border: 1px solid var(--guide-border);
  text-align: start;
  vertical-align: top;
}

.notion-table-wrap th {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
}

.guide-notion-content details {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--guide-border);
  border-radius: 0.75rem;
}

.guide-notion-content summary {
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

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

.notion-todo {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.65rem 0;
}

.notion-todo input {
  margin-block-start: 0.4rem;
  accent-color: var(--guide-accent);
}

.notion-guide-cta {
  margin-block: 2.5rem;
  padding: 1.25rem;
  border: 1px solid var(--guide-border-strong);
  border-radius: 1rem;
  background: rgba(10, 143, 106, 0.08);
}

.guide-intro-panel,
.guide-feature-panel {
  margin-block-end: 3.5rem;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid var(--guide-border-strong);
  border-radius: 1.1rem;
  background: linear-gradient(145deg, rgba(10, 143, 106, 0.12), rgba(255, 255, 255, 0.018));
}

.guide-reading-content h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.guide-reading-content h3 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
}

.guide-intro-panel > p,
.guide-feature-panel > p,
.guide-source {
  color: var(--guide-muted);
  line-height: 1.8;
}

.guide-note-grid,
.guide-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-block-start: 1.5rem;
}

.guide-note,
.guide-feature {
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.2);
}

.guide-note p,
.guide-feature p {
  margin: 0.55rem 0 0;
  color: var(--guide-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.guide-toc-sticky {
  position: sticky;
  top: 6rem;
  padding: 1.15rem;
  border: 1px solid var(--guide-border);
  border-radius: 0.9rem;
  background: rgba(8, 11, 10, 0.86);
  backdrop-filter: blur(14px);
}

.guide-toc-sticky h2 {
  margin: 0 0 0.8rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-toc-sticky a {
  display: flex;
  min-height: 40px;
  align-items: center;
  padding: 0.4rem 0.55rem;
  border-radius: 0.45rem;
  color: #aeb4b1;
  font-size: 0.82rem;
  text-decoration: none;
}

.guide-toc-sticky a:hover,
.guide-toc-sticky a[aria-current="true"] {
  background: rgba(10, 143, 106, 0.12);
  color: #dbfff3;
}

.command-groups-heading {
  margin-block-end: 2rem !important;
}

.command-group {
  scroll-margin-top: 6rem;
  margin-block-end: 3.5rem;
}

.command-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: 1rem;
}

.command-count {
  color: #707774;
  font-size: 0.78rem;
}

.command-list {
  display: grid;
  gap: 0.55rem;
}

.command-row {
  display: grid;
  grid-template-columns: minmax(9rem, 0.45fr) minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.022);
}

.command-row:hover {
  border-color: rgba(10, 143, 106, 0.35);
  background: rgba(255, 255, 255, 0.035);
}

.command-code {
  overflow-wrap: anywhere;
  color: var(--guide-accent-light);
  font: 650 0.92rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  direction: ltr;
  text-align: start;
}

.command-description {
  margin: 0;
  color: #b2b7b5;
  font-size: 0.9rem;
  line-height: 1.55;
}

.command-copy {
  min-height: 40px;
  min-width: 5rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.045);
  color: #f3f6f5;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.command-copy:hover {
  border-color: var(--guide-accent-light);
  background: rgba(10, 143, 106, 0.16);
}

.command-copy[data-copied="true"] {
  border-color: var(--guide-accent);
  color: var(--guide-accent-light);
}

.guide-source {
  margin: 1.5rem 0 0;
  font-size: 0.8rem;
}

.guide-source a {
  color: var(--guide-accent-light);
  text-underline-offset: 0.2em;
}

.guide-back-wrap {
  margin-block-start: 3rem;
}

.service-footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2rem;
  width: min(100% - 3rem, 74rem);
  margin-inline: auto;
  padding-block: 3rem 4rem;
  border-block-start: 1px solid rgba(255, 255, 255, 0.07);
}

.service-footer-brand {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.service-footer p {
  color: var(--guide-muted);
  font-size: 0.8rem;
}

.service-footer nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.service-footer a {
  color: #b3b8b6;
  font-size: 0.8rem;
  text-decoration: none;
}

.service-footer a:hover {
  color: #fff;
}

.guides-shell :is(a, button):focus-visible {
  outline: 3px solid #c7ffed;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .guide-reading-layout,
  .service-footer {
    grid-template-columns: 1fr;
  }

  .guide-toc-sticky {
    position: static;
    grid-row: 1;
  }

  .guide-toc-sticky div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .guide-toc-sticky a {
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 760px) {
  .guides-grid {
    grid-template-columns: 1fr;
  }

  .guide-card-body {
    min-height: 10.25rem;
  }
}

@media (max-width: 680px) {
  .guides-main,
  .command-guide-main {
    width: min(100% - 1.25rem, 80rem);
    padding-block-start: 6rem;
  }

  .guides-hero h1 {
    white-space: normal;
  }

  .guides-breadcrumb {
    margin-block-end: 2.25rem;
  }

  .guides-hero {
    margin-block-end: 4rem;
  }

  .guides-hero-art {
    top: -5.5rem;
    height: 25rem;
  }

  .guides-hero-art img {
    object-position: center top;
    opacity: 0.55;
  }

  .guide-card-body {
    min-height: 10rem;
  }

  .guide-note-grid,
  .guide-feature-grid {
    grid-template-columns: 1fr;
  }

  .command-row {
    grid-template-columns: 1fr auto;
  }

  .command-description {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .command-copy {
    grid-column: 2;
    grid-row: 1;
  }

  .command-guide-meta span + span::before {
    content: none;
  }
}

@media (max-width: 460px) {
  .guide-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .guides-grid .guide-card-link {
    width: 100%;
  }

  .guide-card-meta {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-card,
  .guide-card-media img,
  .guides-grid .guide-card-link img {
    transition: none;
  }

  .guide-card:hover,
  .guide-card:hover .guide-card-media img {
    transform: none;
  }
}
