/* Division Agent — original design, sessions-inspired clarity */
:root {
  --bg: #0c0e12;
  --bg-elevated: #141820;
  --bg-card: #181c26;
  --bg-card-hover: #1e2430;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f2f0eb;
  --text-muted: #9a968c;
  --text-dim: #6b675e;
  --accent: #c8a96e;
  --accent-soft: rgba(200, 169, 110, 0.14);
  --accent-hover: #d4b87a;
  --teal: #5eb8a8;
  --teal-soft: rgba(94, 184, 168, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-display: "Segoe UI", "PingFang TC", "Noto Sans TC", system-ui, sans-serif;
  --max: 1120px;
  --nav-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(200, 169, 110, 0.09), transparent 55%),
    radial-gradient(ellipse 40% 30% at 90% 20%, rgba(94, 184, 168, 0.05), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* —— Nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(12, 14, 18, 0.82);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  white-space: nowrap;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--accent), #8b7355);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #0c0e12;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 3px;
  background: var(--bg-elevated);
  flex-shrink: 0;
}

.lang-toggle button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}

.lang-toggle button.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-cta {
  display: none;
}

@media (min-width: 900px) {
  .nav-cta {
    display: inline-flex;
  }
}

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

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  font-size: 0.925rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #0c0e12;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* —— Hero —— */
.hero {
  padding: 72px 0 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 16ch;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 42rem;
  line-height: 1.7;
}

.hero-grid {
  display: grid;
  gap: 48px;
  margin-top: 48px;
}

@media (min-width: 840px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
  }
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  font-size: 1rem;
  font-weight: 650;
  margin-bottom: 16px;
  color: var(--text);
}

.principle-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.principle-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.925rem;
  color: var(--text-muted);
}

.principle-list .num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* —— Sections —— */
section {
  padding: 72px 0;
  position: relative;
  z-index: 1;
}

.section-head {
  margin-bottom: 36px;
  max-width: 40rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* —— Cards —— */
.card-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.card.card-span {
  grid-column: 1 / -1;
}

.share-flow {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
}

.share-flow li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.share-flow .num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.share-flow strong {
  color: var(--text);
  font-weight: 600;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.card p {
  color: var(--text-muted);
  font-size: 0.925rem;
}

.card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.chip.accent {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}

.chip.example {
  background: transparent;
  border-style: dashed;
  color: var(--text-dim);
}

/* Workshop date strip */
.workshop-card .date-strip {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.workshop-card .date-big {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.workshop-card .date-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Newsletter panel */
.panel {
  background: linear-gradient(160deg, var(--bg-card) 0%, #1a1f2a 100%);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(28px, 4vw, 40px);
  display: grid;
  gap: 28px;
}

@media (min-width: 760px) {
  .panel.newsletter {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
}

.fake-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fake-form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.fake-input {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text-dim);
  font-size: 0.925rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.contact-panel {
  align-items: start;
}

@media (min-width: 760px) {
  .panel.contact-panel {
    grid-template-columns: 1fr 1.1fr;
  }
}

.contact-email {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.01em;
  word-break: break-all;
}

.contact-email:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.form-control {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 0.925rem;
  font-family: inherit;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control::placeholder {
  color: var(--text-dim);
}

.form-control:focus {
  border-color: rgba(200, 169, 110, 0.55);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 4px;
}

/* Team split */
.split {
  display: grid;
  gap: 20px;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.list-check {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.list-check li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.list-check li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 700;
}

/* CTA band */
.cta-band {
  margin: 24px 0 80px;
  background: var(--accent-soft);
  border: 1px solid rgba(200, 169, 110, 0.25);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(32px, 5vw, 48px);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.cta-band p {
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 24px;
}

.cta-band .btn-row {
  justify-content: center;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
}

.footer p {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Mobile menu toggle */
.menu-btn {
  display: none;
  appearance: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
}

@media (max-width: 899px) {
  .menu-btn {
    display: grid;
    place-items: center;
  }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(12, 14, 18, 0.96);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
    gap: 2px;
  }
  .nav-links.open a {
    padding: 12px 14px;
  }
}

/* i18n visibility helpers (JS also sets data-lang on html) */
html[data-lang="en"] [data-i18n-zh],
html[data-lang="zh"] [data-i18n-en] {
  display: none !important;
}

html[data-lang="en"] [data-i18n-en],
html[data-lang="zh"] [data-i18n-zh] {
  display: contents;
}

/* For block-level dual text without nesting issues */
.i18n-pair > [data-lang-en],
.i18n-pair > [data-lang-zh] {
  display: none;
}

html[data-lang="en"] .i18n-pair > [data-lang-en],
html[data-lang="zh"] .i18n-pair > [data-lang-zh] {
  display: block;
}

html[data-lang="en"] .i18n-inline > [data-lang-en],
html[data-lang="zh"] .i18n-inline > [data-lang-zh] {
  display: inline;
}

.i18n-inline > [data-lang-en],
.i18n-inline > [data-lang-zh] {
  display: none;
}

/* Skills catalogue — described list */
.skills-catalogue .skills-desc-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 4px;
}
.skills-catalogue .skill-desc-item {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}
.skills-catalogue .skill-desc-item h4 {
  font-size: 0.95rem;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.skills-catalogue .skill-desc-item h4 code {
  font-size: 0.78em;
  font-weight: 500;
  opacity: 0.75;
}
.skills-catalogue .skill-desc-item .form-note {
  margin: 0;
}
@media (min-width: 800px) {
  .skills-catalogue .skills-desc-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* For Kids — playlist button + per-topic embeds */
.kids-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}
.kids-featured-compact {
  max-width: 40rem;
}
.kids-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.kids-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.kids-topic-video {
  width: 100%;
  margin-top: 12px;
}
.kids-topic-video iframe {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #000;
}
.kids-topic-video .form-note {
  margin: 8px 0 0;
}
.kids-list-heading {
  font-size: 1.05rem;
  margin: 8px 0 8px;
  letter-spacing: -0.02em;
}
.kids-start-here {
  margin: 0 0 16px;
}


/* Tutorials — full step outlines */
.tutorial-jump-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.tutorial-jump {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.tutorial-jump:hover {
  color: var(--accent);
  border-color: rgba(200, 169, 110, 0.35);
  background: var(--accent-soft);
}

.tutorial-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tutorial-detail {
  padding: 22px 24px 20px;
}

.tutorial-detail .date-strip {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}

.tutorial-detail .date-big {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tutorial-detail .date-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tutorial-detail h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.tutorial-blurb {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.tutorial-steps {
  margin: 0 0 16px;
  padding: 0 0 0 1.35rem;
  list-style: decimal;
  color: var(--text);
}

.tutorial-steps > li {
  padding: 7px 0 7px 6px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.tutorial-steps > li:last-child {
  border-bottom: none;
}

.tutorial-steps > li::marker {
  color: var(--teal);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.tutorial-detail .meta {
  margin-top: 4px;
}

@media (max-width: 599px) {
  .tutorial-detail {
    padding: 18px 16px 16px;
  }
  .tutorial-jump-row {
    padding: 12px;
  }
}

/* —— For Teams: workflow + briefing templates —— */
.teams-block {
  margin-top: 32px;
  padding: 28px 28px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.teams-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.teams-block-head h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.teams-note {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.teams-note code {
  font-size: 0.85em;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 1px 6px;
  border-radius: 4px;
}

.workflow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: wf;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.workflow-steps > li {
  counter-increment: wf;
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.workflow-steps > li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.workflow-steps > li::before {
  content: counter(wf, decimal-leading-zero);
  grid-row: 1 / span 2;
  align-self: start;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(200, 169, 110, 0.28);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.workflow-steps > li > strong.i18n-pair {
  display: block;
  font-size: 0.98rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.workflow-steps > li > span.i18n-pair {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.brief-templates {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 800px) {
  .brief-templates {
    grid-template-columns: 1fr 1fr;
  }
}

.brief-template {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 16px 14px;
  transition: border-color 0.15s, background 0.15s;
}

.brief-template:hover {
  border-color: rgba(94, 184, 168, 0.35);
  background: var(--bg-card-hover);
}

.template-label {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 10px;
}

.template-pre {
  margin: 0;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

.brief-template > .template-pre[data-lang-en],
.brief-template > .template-pre[data-lang-zh] {
  display: none;
}

html[data-lang="en"] .brief-template > .template-pre[data-lang-en],
html[data-lang="zh"] .brief-template > .template-pre[data-lang-zh] {
  display: block;
}

@media (max-width: 599px) {
  .teams-block {
    padding: 20px 16px 16px;
  }
  .workflow-steps > li {
    grid-template-columns: 36px 1fr;
    gap: 4px 10px;
  }
  .workflow-steps > li::before {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
}


/* —— Self Q&A / FAQ —— */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-item:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.faq-item[open] {
  border-color: rgba(200, 169, 110, 0.35);
}

.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 0.98rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  user-select: none;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::before {
  content: "+";
  flex: 0 0 auto;
  width: 1.4em;
  height: 1.4em;
  line-height: 1.35;
  text-align: center;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 1px;
}

.faq-item[open] > summary::before {
  content: "−";
}

.faq-item > summary .i18n-pair {
  flex: 1;
}

.faq-answer {
  padding: 0 18px 18px 52px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.faq-answer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-answer a:hover {
  color: var(--accent-hover);
}

@media (max-width: 599px) {
  .faq-answer {
    padding-left: 18px;
  }
}


/* —— Ask Division Agent (under FAQ) —— */
.ask-panel {
  margin-top: 36px;
  max-width: 920px;
  scroll-margin-top: 88px;
}

.ask-panel .section-label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent);
}

.form-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  margin: 8px 0 4px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

select.form-control {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.ask-form .btn {
  align-self: flex-start;
  margin-top: 4px;
}


/* —— Weekly growth log —— */
.weekly-log {
  display: grid;
  gap: 20px;
}

.weekly-week {
  margin: 0;
}

.weekly-week .list-check {
  margin-top: 12px;
}

.weekly-week code {
  font-size: 0.85em;
  color: var(--accent);
}

/* —— Division Sandisk (bold + image only) —— */
.sandisk-head {
  margin-bottom: 12px;
}

.sandisk-statement {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--text);
}

.sandisk-statement strong {
  font-weight: 700;
}

.sandisk-figure {
  margin: 0;
  max-width: 920px;
}

.sandisk-hero-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
}

/* —— Organisation chart (For Teams) —— */
.org-chart-figure {
  margin: 16px 0 12px;
  max-width: 960px;
}

.org-chart-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  background: #0e1116;
}

.org-chart-request {
  margin-top: 8px !important;
}


/* Skill download links */
.skill-dl {
  margin: 6px 0 0;
  font-size: 0.85rem;
}
.skill-dl a {
  color: var(--teal, #3dbeb8);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.skill-dl a:hover {
  color: var(--gold, #d4a84b);
}

/* Template copy toolbar */
.template-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}
.template-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(212, 168, 75, 0.45);
  border-radius: 8px;
  background: rgba(212, 168, 75, 0.08);
  color: var(--gold, #d4a84b);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.template-copy-btn:hover,
.template-copy-btn:focus-visible {
  background: rgba(61, 190, 184, 0.12);
  border-color: rgba(61, 190, 184, 0.55);
  color: var(--teal, #3dbeb8);
  outline: none;
}
.template-copy-btn .copy-icon {
  font-size: 1rem;
  line-height: 1;
}
.copy-feedback {
  font-size: 0.8rem;
  color: var(--teal, #3dbeb8);
}

/* dr eggbot share */
.eggbot-share .eggbot-link-row {
  margin: 10px 0 8px;
  word-break: break-all;
}
.eggbot-deep-link {
  display: inline-block;
  max-width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--gold, #d4a84b);
  border-color: rgba(212, 168, 75, 0.4);
}
