/* HexDrop — docs page (dedicated reference layout) */

/* Light theme: same soft gray tint as homepage */
body[data-theme="light"]{
  --bg: #f8f8f9;
  --bg2: #f1f1f5;
}

/* Sections (menu) button: show as soon as right side-nav (TOC) disappears */
.nav--guide .brandContext--full ~ .navSectionsTrigger{ display: none; }
@media (max-width: 1100px){
  .nav--guide .brandContext--full ~ .navSectionsTrigger{ display: flex; }
}

/* Sections button: drop the word "Sections" below 790px (icon only) */
@media (max-width: 789px){
  .nav--guide .navSectionsLabel{ display: none; }
  .nav--guide .navSectionsTrigger{
    padding: 0;
    width: 38px;
    height: 38px;
    justify-content: center;
  }
}

/* Nav: full "Quick guide" and "Home" until 760px; below that: menu + theme + home icon + get (no Quick guide) */
.fullGuideQuick--icon,
.fullGuideHome--icon{ display: none; }
@media (max-width: 759px){
  .nav--guide .brandContext--full{ display: none; }
  .fullGuideQuick--text,
  .fullGuideQuick--icon{ display: none !important; }
  .fullGuideHome--text{ display: none; }
  .fullGuideHome--icon{ display: grid; }
}

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

/* Intro block — app icon left, spacing/line-height match site */
.fullGuideIntro{
  padding: 100px 0 40px;
  max-width: 56ch;
}
/* Privacy: lede reads better at full content-column width (56ch felt narrow beside TOC) */
body.page-privacy .fullGuideIntro{
  max-width: none;
}
.fullGuideIntroRow{
  display: flex;
  align-items: center;
  gap: 32px;
}
.fullGuideIntroIcon{
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* App icon — same size and style as homepage CTA (index .ctaAppIcon) */
.fullGuideIntroAppIcon{
  position: relative;
  width: 113px;
  height: 113px;
  border-radius: 31px;
  background: color-mix(in srgb, var(--panel2) 82%, transparent);
  box-shadow:
    0 1px 0 rgba(255,255,255,.55) inset,
    0 -1px 0 rgba(0,0,0,.08) inset,
    0 8px 20px rgba(11,12,18,.14),
    0 1px 2px rgba(11,12,18,.1);
}
[data-theme="dark"] .fullGuideIntroAppIcon{ box-shadow: 0 8px 32px rgba(0,0,0,.25); }
.fullGuideIntroAppIcon::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid color-mix(in srgb, rgba(255,255,255,.46) 55%, rgba(17,18,28,.16));
  pointer-events: none;
}
.fullGuideIntroAppIcon::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,0) 42%);
  pointer-events: none;
}
.fullGuideIntroAppIcon img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  position: relative;
  z-index: 0;
}
.fullGuideIntroText{ min-width: 0; }
.fullGuideIntro .kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--panel2) 60%, transparent);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.fullGuideIntro .kicker .dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--g);
}
.fullGuideIntro h1{
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.15;
  margin: 0 0 16px;
}
.fullGuideIntro .sub,
.fullGuideLede{
  font-size: 17px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
.fullGuideBack{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 20px;
}
.fullGuideBack:hover{ color: var(--ink); }

/* Layout: wrapper (content + sidebar) then callout on its own row — sidebar sticks only inside wrapper so it doesn't overlap callout */
.fullGuideLayout{
  display: grid;
  grid-template-columns: 1fr;
  padding-bottom: 72px;
}
.fullGuideTwoCol{
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 48px;
  align-items: start;
}
.fullGuideContent{
  min-width: 0;
}

/* Module cards — tasteful separation, matches index/support */
.fullGuideModule{
  border-radius: var(--r-xl);
  background: color-mix(in srgb, var(--panel2) 55%, transparent);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(11,12,18,.04);
  border: 0;
}
[data-theme="dark"] .fullGuideModule{ box-shadow: 0 8px 32px rgba(0,0,0,.2); }
.fullGuideModule:last-of-type{ margin-bottom: 0; }

.fullGuideModuleKicker{
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 8px;
}

.formatFinePrint{
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted2);
  margin: 16px 0 0;
  max-width: 58ch;
}

.fullGuidePlaceholder{
  min-height: 160px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel2) 40%, transparent), color-mix(in srgb, var(--panel2) 25%, transparent));
  border: 1px dashed color-mix(in srgb, var(--line) 60%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted2);
  font-size: 13px;
  margin-top: 20px;
}
.fullGuidePlaceholderGrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
@media (max-width: 640px){
  .fullGuidePlaceholderGrid{ grid-template-columns: 1fr; }
}

/* Section content inside modules */
.fullGuideSection{
  padding: 0;
  border: 0;
}
.fullGuideSection:first-of-type{ padding-top: 0; }
.fullGuideSection h2{
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 0 0 16px;
}
.fullGuideSection h3{
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 10px;
}
.fullGuideSection h3:first-child{ margin-top: 0; }
.fullGuideSection p{
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}
.fullGuideSection ul, .fullGuideSection ol{
  margin: 0 0 14px 1.2em;
  padding: 0;
  color: var(--muted);
  font-size: 15px;
}
.fullGuideSection li{ margin: 8px 0; }

/* Tables — restrained surface only where needed */
.fullGuideSection .tableWrap{
  margin: 20px 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: color-mix(in srgb, var(--panel2) 45%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 40%, transparent);
}
.fullGuideSection table{
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.fullGuideSection th, .fullGuideSection td{
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 40%, transparent);
}
.fullGuideSection th{
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: color-mix(in srgb, var(--panel2) 30%, transparent);
}
.fullGuideSection tr:last-child td{ border-bottom: 0; }
.fullGuideSection tr:hover td{
  background: color-mix(in srgb, var(--panel2) 20%, transparent);
}
[data-theme="dark"] .fullGuideSection tr:hover td{
  background: color-mix(in srgb, var(--panel2) 25%, transparent);
}

/* Callout on its own row after both columns (partials/site-cta.njk embed layout) */
.siteCta--fullRow{
  grid-column: 1 / -1;
  margin-top: 48px;
}
.siteCta--fullRow .siteCta__text{
  max-width: 38rem;
}

/* Sticky right sidebar — desktop */
.fullGuideSidebar{
  position: sticky;
  top: calc(92px + var(--hexdrop-announcement-height));
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fullGuideSidebarNav{
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fullGuideSidebarNav a{
  display: block;
  padding: 10px 12px;
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--muted);
  transition: background .18s, color .18s, border-color .18s;
  border: 1px solid transparent;
}
.fullGuideSidebarNav a:hover{
  color: var(--ink);
  background: color-mix(in srgb, var(--violet-soft) 60%, transparent);
}
.fullGuideSidebarNav a.active{
  color: var(--ink);
  background: var(--violet-soft);
  border-color: color-mix(in srgb, var(--violet) 35%, var(--line));
}

/* Mobile jump nav */
.fullGuideJump{
  display: none;
  margin-bottom: 24px;
}
.fullGuideJump label{
  font-size: 12px;
  font-weight: 600;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
  display: block;
}
.fullGuideJump select{
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  background: color-mix(in srgb, var(--panel2) 62%, transparent);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}
.fullGuideJump select:focus{
  outline: none;
  border-color: color-mix(in srgb, var(--violet) 55%, var(--line));
  box-shadow: 0 0 0 3px rgba(108,99,255,.1);
}

/* Responsive */
@media (max-width: 1100px){
  .fullGuideTwoCol{ grid-template-columns: 1fr; }
  .fullGuideSidebar{ display: none; }
  .fullGuideJump{ display: block; }
  .fullGuideIntro{ padding: 100px 0 32px; }
  .fullGuideIntroAppIcon{ width: 101px; height: 101px; border-radius: 28px; }
}
@media (max-width: 640px){
  .fullGuideIntro{ padding: 90px 0 28px; }
  .fullGuideIntroAppIcon{ width: 86px; height: 86px; border-radius: 24px; }
  .fullGuideIntroRow{ gap: 16px; }
  .fullGuideModule{ padding: 22px 20px; margin-bottom: 20px; }
}
