/* =====================================================
    PAGE HEADER
===================================================== */
.page-header {
  padding-block: var(--sp-xl) var(--sp-lg);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .page-header {
  background: linear-gradient(150deg, var(--teal-pale) 0%, var(--bg) 60%);
}
[data-theme="dark"] .page-header {
  background: linear-gradient(150deg, var(--teal-dim) 0%, var(--bg) 60%);
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='%232A8B84' fill-opacity='.1'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: .65;
}

.page-header-inner { position: relative; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: var(--sp-md);
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-soft); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb-sep { color: var(--border-strong); font-size: .75em; user-select: none; }
.breadcrumb [aria-current="page"] { color: var(--teal-dark); }
[data-theme="dark"] .breadcrumb [aria-current="page"] { color: var(--teal); }

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: .3rem .85rem;
  border-radius: var(--r-pill);
  width: fit-content;
  margin-bottom: var(--sp-sm);
}
[data-theme="dark"] .page-kicker { color: var(--accent-dark); }

.page-title {
  font-family: var(--f-display);
  font-size: var(--t-2xl);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text-primary);
  max-width: 22ch;
}

.page-title em { font-style: italic; color: var(--teal); }

.page-subtitle {
  margin-top: var(--sp-sm);
  font-size: var(--t-md);
  color: var(--text-soft);
  max-width: 52ch;
  line-height: 1.65;
}

/* =====================================================
    PAGE LAYOUT
===================================================== */
.page-body { padding-block: var(--sp-xl); }

.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-xl);
  align-items: start;
}

@media (min-width: 900px) {
  .page-layout {
    grid-template-columns: 210px 1fr;
    gap: clamp(2rem, 5vw, 4rem);
  }
}

/* =====================================================
    SIDEBAR TOC
===================================================== */
.toc { position: sticky; top: calc(64px + var(--sp-md)); }

.toc-heading {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .75rem;
}

.toc-list {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--border);
}

.toc-list a {
  display: block;
  font-size: var(--t-sm);
  color: var(--text-soft);
  text-decoration: none;
  padding: .35rem 0 .35rem 1rem;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: color .15s, border-color .15s;
  line-height: 1.45;
}

.toc-list a:hover { color: var(--teal); border-left-color: var(--teal-mid); }

@media (max-width: 899px) { .toc { display: none; } }

/* =====================================================
    GUIDE CONTENT
===================================================== */
.guide-content { max-width: 72ch; }

.guide-section {
  padding-bottom: var(--sp-xl);
  margin-bottom: var(--sp-xl);
  border-bottom: 1px solid var(--border);
}

.guide-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-label {
  display: block;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: .55rem;
}
[data-theme="dark"] .section-label { color: var(--teal); }

.section-heading {
  font-family: var(--f-display);
  font-size: var(--t-xl);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--text-primary);
  margin-bottom: var(--sp-md);
  scroll-margin-top: calc(64px + 2rem);
}

.sub-heading {
  font-family: var(--f-body);
  font-size: var(--t-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--sp-md);
  margin-bottom: var(--sp-sm);
}

.guide-content p {
  font-size: var(--t-base);
  line-height: 1.82;
  color: var(--text-secondary);
  margin-bottom: var(--sp-sm);
}

.guide-content p:last-child { margin-bottom: 0; }

/* Inline links within guide prose */
.guide-content a:not(.btn) {
  color: var(--link-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s;
}
.guide-content a:not(.btn):hover { color: var(--teal); text-decoration: none; }

/* Dot list */
.dot-list { display: flex; flex-direction: column; gap: .55rem; margin-block: var(--sp-sm); }

.dot-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--text-secondary);
}

.dot-list li::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: .58em;
}

/* =====================================================
    TRANSIFEX CTA CARD
===================================================== */
.transifex-card {
  background: var(--teal-dim);
  border: 1px solid var(--teal-border);
  border-radius: var(--r-xl);
  padding: var(--sp-lg);
  display: flex;
  gap: var(--sp-md);
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: var(--sp-lg);
}

.transifex-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-lg);
  background: var(--icon-teal-bg);
  border: 1px solid var(--teal-border);
  color: var(--icon-teal-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.transifex-body { flex: 1; min-width: 200px; }

.transifex-title {
  font-family: var(--f-display);
  font-size: var(--t-lg);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: .35rem;
}

.transifex-desc {
  font-size: var(--t-sm);
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: var(--sp-md);
}

/* =====================================================
    RESOURCE CARDS
===================================================== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: var(--sp-sm);
  margin-block: var(--sp-md);
}

.resource-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-md);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: border-color .15s, box-shadow .15s;
}
.resource-card:hover { border-color: var(--border-strong); box-shadow: var(--sh-sm); }

.resource-filename {
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--icon-teal-fg);
  background: var(--icon-teal-bg);
  border: 1px solid var(--teal-border);
  padding: .3rem .7rem;
  border-radius: var(--r-md);
  width: fit-content;
}

.resource-desc {
  font-size: var(--t-sm);
  color: var(--text-soft);
  line-height: 1.6;
}

/* =====================================================
    NUMBERED STEPS
===================================================== */
.step-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-block: var(--sp-md);
  counter-reset: steps;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
  counter-increment: steps;
}

.step-number {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: var(--icon-orange-bg);
  border: 1px solid var(--accent-border);
  color: var(--icon-orange-fg);
  font-family: var(--f-display);
  font-size: var(--t-md);
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
}

.step-number::before { content: counter(steps); }

.step-body { padding-top: .4rem; flex: 1; }

.step-title {
  font-weight: 600;
  font-size: var(--t-base);
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: .25rem;
}

.step-desc {
  font-size: var(--t-sm);
  color: var(--text-soft);
  line-height: 1.65;
}

/* Links within step descriptions */
.step-desc a, .link-teal {
  color: var(--link-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s;
}
.step-desc a:hover, .link-teal:hover { color: var(--teal); text-decoration: none; }

/* =====================================================
    CODE BLOCK
===================================================== */
p code, li code, .step-desc code, .code-annotation code {
  font-family: var(--f-mono);
  font-size: .9em;
  background: var(--code-bg);
  color: var(--code-fg);
  padding: .1em .4em;
  border-radius: var(--r-sm);
  border: 1px solid var(--teal-border);
}

.code-wrap {
  margin-block: var(--sp-sm);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.code-bar {
  /* Always dark — terminal aesthetic regardless of site theme */
  background: #1A1714;
  padding: .4rem .85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.code-label {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: rgba(255, 255, 255, .5);
  letter-spacing: .03em;
}

.code-copy {
  font-family: var(--f-body);
  font-size: var(--t-xs);
  font-weight: 500;
  color: rgba(255, 255, 255, .5);
  background: none;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--r-sm);
  padding: .2rem .6rem;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}

.code-copy:hover { color: rgba(255, 255, 255, .9); border-color: rgba(255, 255, 255, .4); }
.code-copy.copied { color: var(--teal-mid); border-color: var(--teal-mid); }

pre {
  background: #2A2522;
  padding: var(--sp-md);
  overflow-x: auto;
  margin: 0;
}

pre code {
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  color: #e8d5c0;
  line-height: 1.7;
  /* Override inline code styles when inside a pre block */
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}

.code-annotation {
  margin-top: var(--sp-xs);
  font-size: var(--t-xs);
  color: var(--text-muted);
  font-style: italic;
}

/* =====================================================
    CALLOUT
===================================================== */
.callout {
  border-radius: var(--r-lg);
  padding: var(--sp-md);
  margin-block: var(--sp-md);
  display: flex;
  gap: var(--sp-sm);
  align-items: flex-start;
}

/* This page uses callout-info with an orange/accent style in the original */
.callout-info {
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
}

.callout-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--r-md);
  background: var(--icon-orange-bg);
  border: 1px solid var(--accent-border);
  color: var(--icon-orange-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.callout-body { flex: 1; }

.callout-title {
  font-weight: 600;
  font-size: var(--t-base);
  color: var(--text-primary);
  margin-bottom: .35rem;
  line-height: 1.3;
}

.callout-body p {
  font-size: var(--t-sm) !important;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0 !important;
}

/* =====================================================
    HELP PANEL
===================================================== */
.help-panel {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-lg);
}

/* The help panel's section label uses accent colour rather than teal.
   We handle this via an inline style override in the HTML that references
   var(--accent-eyebrow) — no class needed. */

.help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: var(--sp-md);
}

.help-panel {
  
}