/* Brandon Text — self-hosted web fonts */
@font-face {
  font-family: "Brandon Text";
  src: url("/fonts/HVD-Fonts---BrandonText-Light.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Brandon Text";
  src: url("/fonts/HVD-Fonts---BrandonText-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Brandon Text";
  src: url("/fonts/HVD-Fonts---BrandonText-RegularItalic.otf") format("opentype");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Brandon Text";
  src: url("/fonts/HVD-Fonts---BrandonText-Medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Brandon Text";
  src: url("/fonts/HVD-Fonts---BrandonText-Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Brandon Text";
  src: url("/fonts/HVD-Fonts---BrandonText-Black.otf") format("opentype");
  font-weight: 900; font-style: normal; font-display: swap;
}

/* Enneagram Cafe — Redesigned Stylesheet */

:root {
  --color-bg: #15363f;
  --color-bg-dark: #061b21;
  --color-bg-card: #0f2a35;
  --color-bg-elevated: #132f3a;
  --color-text: #e4f2f0;
  --color-text-muted: #8fb0b8;
  --color-text-dim: #6a94a0;
  --color-accent: #4fbaad;
  --color-accent-warm: #ee6f5c;
  --color-border: #2a4a55;
  --color-border-light: #355965;
  --type-1: #7a6035; --type-2: #ec6839; --type-3: #c4282e;
  --type-4: #cc737b; --type-5: #536781; --type-6: #3d5794;
  --type-7: #0087cc; --type-8: #e8ad00; --type-9: #8a9a5a;
  --centre-body: #c49a30; --centre-heart: #d05050; --centre-head: #4a8abd;
  --content-width: 740px; --wide-width: 960px; --full-width: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; scrollbar-gutter: stable; }

body {
  font-family: "Brandon Text", -apple-system, sans-serif;
  font-size: clamp(16px, 1vw + 12px, 18px); line-height: 1.8; font-weight: 400; overflow-x: clip;
  color: var(--color-text); background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}

main { flex: 1; width: 100%; max-width: var(--content-width); margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

.section-dark {
  background-color: var(--color-bg-dark);
  margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%);
  padding: 3rem calc(50vw - 50%);
}

h1, h2, h3, h4 {
  font-family: "brandon-grotesque", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500; line-height: 1.25;
}
h1 { font-size: clamp(2.2rem, 3vw + 1rem, 3.2rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.5rem, 2vw + 0.6rem, 2.1rem); margin-top: 3.5rem; margin-bottom: 1.2rem; padding-top: 2.5rem; border-top: 2px dotted var(--color-border); }
h3 { font-size: clamp(1.15rem, 1vw + 0.5rem, 1.4rem); font-weight: 400; margin-top: 2rem; margin-bottom: 0.5rem; color: var(--color-accent); }
h4 { font-size: 1.1rem; font-weight: 400; margin-top: 1.5rem; }
p { margin-bottom: 1.3rem; }
.meta { font-family: "brandon-grotesque", sans-serif; font-size: 0.9rem; font-weight: 400; color: var(--color-text-muted); }
.section-subhead { font-family: "brandon-grotesque", sans-serif; font-size: 0.85rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.5px; color: var(--color-accent); margin-bottom: 0.3rem; margin-top: 2rem; }

a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-text); }

ul, ol { margin: 1rem 0 1.5rem 1.5rem; }
li { margin-bottom: 0.5rem; }

/* Header */
header { background-color: var(--color-bg-dark); padding: 0 1.5rem; position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: var(--full-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; height: 56px; }
.logo { font-family: "Brandon Text", -apple-system, sans-serif; font-size: 1.2rem; font-weight: 400; color: var(--color-text); text-decoration: none; letter-spacing: 0.5px; display: flex; align-items: center; gap: 0.5rem; }
.logo-icon { width: 1rem; height: 1rem; position: relative; top: 1px; }
.logo:hover { color: var(--color-accent); }
nav { display: flex; gap: 0; flex-wrap: wrap; }
nav a { color: var(--color-text-muted); text-decoration: none; padding: 1rem 0.85rem; font-size: 0.85rem; font-family: "Brandon Text", -apple-system, sans-serif; font-weight: 400; letter-spacing: 0.3px; text-transform: none; transition: color 0.2s; border-bottom: 2px solid transparent; }
nav a:hover { color: var(--color-text); }
nav a.active { color: var(--color-accent); border-bottom-color: var(--color-accent); }

/* Hamburger toggle */
.nav-toggle { display: none; background: transparent; border: none; cursor: pointer; padding: 0; width: 24px; height: 18px; position: relative; -webkit-tap-highlight-color: transparent; }
.nav-toggle span { display: block; width: 100%; height: 1.5px; background-color: var(--color-text-muted); position: absolute; left: 0; transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease; }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 8px; }
.nav-toggle span:nth-child(3) { top: 16px; }
.nav-toggle:hover span { background-color: var(--color-accent); }
.nav-toggle.active span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

@media (max-width: 1000px) {
  .header-inner { flex-wrap: nowrap; }
  .nav-toggle { display: block; }
  nav { display: none; flex-direction: column; padding: 0.75rem 1.5rem 1.25rem; border-top: 1px solid var(--color-border); position: absolute; top: 100%; left: 0; right: 0; background-color: var(--color-bg-dark); z-index: 99; }
  nav.open { display: flex; }
  nav a { padding: 0.6rem 0; border-bottom: none; font-size: 0.9rem; text-transform: none; letter-spacing: 0.3px; }
  header { position: sticky; top: 0; }
}

/* Buttons */
.btn { display: inline-block; padding: 0.85rem 2rem; font-family: "brandon-grotesque", sans-serif; font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1.5px; text-decoration: none; text-align: center; transition: all 0.25s ease; margin: 0.4rem 0.4rem 0.4rem 0; border: 1px solid transparent; position: relative; overflow: hidden; }
.btn:hover { text-decoration: none; }
.btn-primary { background-color: var(--color-accent); color: var(--color-bg-dark); box-shadow: 0 2px 4px rgba(79, 186, 173, 0.3), 0 4px 8px rgba(0, 0, 0, 0.1); }
.btn-primary::before { content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent); opacity: 0; pointer-events: none; }
.btn-primary.in-view::before { animation: shimmerOnce 0.8s ease-out 0.1s forwards; }
@keyframes shimmerOnce { 0% { left: -100%; opacity: 1; } 100% { left: 150%; opacity: 0; } }
.btn-primary::after { content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent); pointer-events: none; }
.btn-primary:hover:not(:disabled)::after { animation: shimmerHover 0.6s ease-out; }
@keyframes shimmerHover { 0% { left: -100%; } 100% { left: 150%; } }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(79, 186, 173, 0.4), 0 8px 16px rgba(0, 0, 0, 0.15); background-color: #5cc5b8; }
.btn-primary:active:not(:disabled) { transform: translateY(0); box-shadow: 0 1px 2px rgba(79, 186, 173, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1); }
.btn-pattern { background: url('/images/enneagram-pattern-full.svg') center/300% no-repeat; color: #fff; font-weight: 700; border: none; box-shadow: 0 2px 4px rgba(0,0,0,0.2), 0 4px 8px rgba(0,0,0,0.1); background-position: 65% 40%; }
.btn-pattern:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.3), 0 8px 16px rgba(0,0,0,0.15); filter: brightness(1.1); }
.btn-pattern::before, .btn-pattern::after { display: none; }
.btn-type { background-color: var(--btn-type-color); color: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.2), 0 4px 8px rgba(0,0,0,0.1); border: none; }
.btn-type::before { content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent); opacity: 0; pointer-events: none; }
.btn-type.in-view::before { animation: shimmerOnce 0.8s ease-out 0.1s forwards; }
.btn-type::after { content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent); pointer-events: none; }
.btn-type:hover:not(:disabled)::after { animation: shimmerHover 0.6s ease-out; }
.btn-type:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.3), 0 8px 16px rgba(0,0,0,0.15); color: #fff; filter: brightness(1.1); }
.btn-type:active:not(:disabled) { transform: translateY(0); box-shadow: 0 1px 2px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.1); }
.btn-secondary { background-color: transparent; color: var(--color-text); border: 1px solid var(--color-border-light); }
.btn-secondary:hover { background-color: var(--color-text); color: var(--color-bg-dark); border-color: var(--color-text); }
.btn-warm { background-color: var(--color-accent-warm); color: var(--color-text); }
.btn-warm:hover { background-color: #ff8a7a; }

/* Hero */
.hero { text-align: center; padding: 3rem 0 2rem; margin-bottom: 1.5rem; }
/* Hero split — text left ~40%, icon right ~60%, wider than content */
.hero-split { text-align: left; padding: 3.5rem 0 3rem; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); padding-left: max(1.5rem, calc(50vw - var(--wide-width) / 2)); padding-right: max(1.5rem, calc(50vw - var(--wide-width) / 2)); }
.hero-split-inner { max-width: var(--wide-width); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.hero-split-text h1 { max-width: none; margin-left: 0; font-size: clamp(2rem, 3.5vw + 0.5rem, 3.2rem); line-height: 1.15; }
.hero-split-text .subtitle { max-width: none; margin: 0 0 1.5rem; text-align: left; font-size: clamp(0.9rem, 0.6vw + 0.5rem, 1.15rem); }
.hero-split-text .hero-label { text-align: left; }
.hero-split-text .hero-ctas { margin-top: 0; display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.hero-split-text .hero-ctas .btn { min-width: 240px; text-align: center; }
.hero-split-icon { display: flex; align-items: start; justify-content: flex-end; }
.hero-split-icon-centred { align-items: center; }
.hero-split-icon img { width: 75%; height: auto; opacity: 0.85; margin-left: auto; }
@media (max-width: 700px) {
  .hero-split { text-align: center; padding: 2.5rem 1.5rem 2rem; }
  .hero-split-inner { grid-template-columns: 1fr; }
  .hero-split-icon { order: -1; justify-content: center; }
  .hero-split-icon img { width: 200px !important; margin: 0 auto; }
  .hero-icon-landscape { max-height: 120px; overflow: hidden; display: flex; align-items: center; }
  .hero-icon-landscape img { width: 220px !important; }
  .hero-split-text h1 { margin-left: auto; margin-right: auto; }
  .hero-split-text .subtitle { text-align: center; }
  .hero-split-text .hero-label { text-align: center; }
  .hero-split-text .hero-ctas { align-items: center !important; }
}

/* Accent band — full-width teal mid-page CTA */
.accent-band { background-color: var(--color-accent); margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); padding: 3.5rem max(1.5rem, calc(50vw - var(--wide-width) / 2)); text-align: center; margin-bottom: 2rem; position: relative; overflow: hidden; }
.accent-band::before { content: ''; position: absolute; width: 200vw; height: 200vw; top: 50%; left: 50%; background-image: url('/images/enneagram-pattern-full.svg'); background-size: cover; background-position: center; background-repeat: no-repeat; animation: pattern-breathe 600s linear infinite; animation-delay: -150s; will-change: transform; z-index: 0; pointer-events: none; }
.accent-band > * { position: relative; z-index: 1; }
.accent-band-teal::before { background-image: url('/images/enneagram-pattern-teal.svg'); animation-delay: -380s; }
.accent-band-mirror::before { display: none; }
.mirror-left, .mirror-right { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: hidden; }
.mirror-left { clip-path: polygon(0 0, 58% 0, 42% 100%, 0 100%); }
.mirror-right { clip-path: polygon(58% 0, 100% 0, 100% 100%, 42% 100%); }
.mirror-pattern { position: absolute; width: 200vw; height: 200vw; top: 50%; left: 50%; transform: translate(-50%, -50%); background-image: url('/images/enneagram-pattern-full.svg'); background-size: cover; background-position: center; background-repeat: no-repeat; animation: pattern-breathe 600s linear infinite; animation-delay: -200s; will-change: transform; }
.mirror-right .mirror-pattern { animation: pattern-breathe-alt 450s linear infinite; animation-delay: -320s; }
.mirror-left-rev { clip-path: polygon(0 0, 35% 0, 65% 100%, 0 100%); }
.mirror-right-rev { clip-path: polygon(35% 0, 100% 0, 100% 100%, 65% 100%); }
.mirror-left-chev { clip-path: polygon(0 0, 0 100%, 50% 100%); }
.mirror-right-chev { clip-path: polygon(100% 0, 50% 100%, 100% 100%); }
.mirror-centre-chev { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: hidden; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.mirror-centre-chev .mirror-pattern-teal, .mirror-centre-chev .mirror-pattern { animation: pattern-breathe-counter 550s linear infinite; animation-delay: -250s; }
.mirror-right-chev .mirror-pattern-teal, .mirror-right-chev .mirror-pattern { animation: pattern-breathe-alt 450s linear infinite; animation-delay: -180s; }
.mirror-pattern-teal { position: absolute; width: 200vw; height: 200vw; top: 50%; left: 50%; transform: translate(-50%, -50%); background-image: url('/images/enneagram-pattern-teal.svg'); background-size: cover; background-position: center; background-repeat: no-repeat; animation: pattern-breathe 600s linear infinite; animation-delay: -100s; will-change: transform; }
.mirror-right-rev .mirror-pattern-teal { animation: pattern-breathe-alt 450s linear infinite; animation-delay: -400s; }
/* Type band — full-width, tinted with the type colour */
.type-band { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); padding: 3rem max(1.5rem, calc(50vw - var(--wide-width) / 2)); margin-bottom: 0; text-align: center; position: relative; overflow: hidden; }
.type-band .accent-band-text { margin: 0 auto; text-align: center; font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.2rem); font-weight: 500; font-family: "Brandon Text", -apple-system, sans-serif; line-height: 1.5; color: #fff; max-width: 40rem; }
.type-band-inner { max-width: var(--content-width); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; text-align: left; }.type-band p { margin: 0; font-size: 1rem; line-height: 1.6; }.type-band strong { color: inherit; font-weight: 700; }.type-band ul { margin: 0.4rem 0 0; padding-left: 1.2rem; font-size: 1rem; line-height: 1.6; text-align: left; }.type-band li { margin: 0; }.type-band-strengths, .type-band-challenges { font-size: 1rem; line-height: 1.6; }
.type-band-cta { margin: 0; text-align: center; }
.type-band-cta .btn-outline { background: #fff; color: #222; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.15); }
.type-band-cta .btn-outline:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.25); }
@media (max-width: 600px) {  .type-band-inner { grid-template-columns: 1fr; }}

/* Type summary — structured info below the band */
.type-summary { padding: 2rem 0; margin-bottom: 1rem; border-bottom: 2px dotted var(--color-border); }
.type-summary-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
.type-summary p { margin: 0; font-size: 1rem; line-height: 1.6; }
.type-summary strong { font-weight: 700; }
.type-summary ul { margin: 0.4rem 0 0; padding-left: 1.2rem; font-size: 1rem; line-height: 1.6; }
.type-summary li { margin: 0; }
.type-summary-gifts, .type-summary-challenges { font-size: 1rem; line-height: 1.6; }
@media (max-width: 600px) {
  .type-summary-inner { grid-template-columns: 1fr; }
}

.accent-band-text { font-family: "brandon-grotesque", -apple-system, sans-serif; font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.2rem); font-weight: 500; line-height: 1.5; color: #fff; margin: 0 auto 1.5rem; max-width: 40rem; }
.accent-band .btn-primary { background: #fff; color: #222; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.15); }
.accent-band .btn-primary:hover { background: rgba(255,255,255,0.9); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.25); }
.type-band .btn-primary { background: #fff; color: #222; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.15); }.type-band .btn-primary:hover { background: rgba(255,255,255,0.9); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.25); }
.accent-band .meta { color: rgba(255, 255, 255, 0.75) !important; font-family: "Brandon Text", -apple-system, sans-serif !important; }
.hero h1 { font-size: clamp(2.4rem, 3.5vw + 1rem, 3.6rem); max-width: 700px; margin-left: auto; margin-right: auto; }
.hero .subtitle { font-size: clamp(1.05rem, 0.8vw + 0.6rem, 1.25rem); color: var(--color-text-muted); max-width: 580px; margin: 0 auto 2rem; line-height: 1.7; }
.hero-label { font-family: "brandon-grotesque", sans-serif; font-size: clamp(0.65rem, 0.5vw + 0.3rem, 0.85rem); text-transform: uppercase; letter-spacing: 2.5px; color: var(--color-accent); margin-bottom: 1rem; display: block; }
.hero-ctas { margin: 1.5rem 0 0.5rem; }
.hero-stats { display: flex; justify-content: center; gap: 2rem; margin: 2rem 0 0; flex-wrap: wrap; }
.hero-stats .stat { font-family: "brandon-grotesque", sans-serif; font-size: 0.8rem; color: var(--color-text-dim); }
.hero-stats .stat strong { color: var(--color-text-muted); }

/* Enneagram symbol */
.enneagram-symbol { display: block; max-width: 280px; margin: 0 auto 1.5rem; opacity: 0.85; }

/* Sticky type nav — nine coloured blocks */
.type-nav { position: sticky; top: 56px; z-index: 99; display: grid; grid-template-columns: repeat(9, 1fr); gap: 0; margin: 0; padding: 0; }
main .type-nav { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); }
.type-nav a { display: flex; align-items: center; justify-content: center; padding: 0.65rem 0; font-family: "brandon-grotesque", sans-serif; font-size: 0.9rem; font-weight: 900; color: #fff; text-decoration: none; transition: opacity 0.2s; border: none; }
.type-nav a:hover { filter: brightness(1.2); color: #fff; }
[id] { scroll-margin-top: 100px; }
.enneagram-symbol-small { display: block; max-width: 180px; margin: 0 auto 1rem; opacity: 0.7; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.card { background-color: var(--color-bg-card); padding: 2rem; border: 1px solid var(--color-border); transition: border-color 0.25s; }
.card:hover { border-color: var(--color-border-light); }
.card h3 { margin-top: 0; }
.card .price { font-family: "brandon-grotesque", sans-serif; font-size: 1.4rem; font-weight: 300; color: var(--color-accent); margin: 0.8rem 0; }
.pricing-block { margin: 1.5rem 0 1rem; }
.pricing-block .price { margin: 0.1rem 0; }
.pricing-block .meta { margin-top: 0.4rem; margin-bottom: 0; }
.card-badge { display: inline-block; background-color: var(--color-accent); color: var(--color-bg-dark); font-family: "brandon-grotesque", sans-serif; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1.2px; padding: 0.25rem 0.7rem; margin-bottom: 0.8rem; font-weight: 500; }
.card-features { list-style: none; margin: 1rem 0; padding: 0; font-size: 0.9rem; }
.card-features li { padding: 0.35rem 0 0.35rem 1.4rem; position: relative; margin-bottom: 0; }
.card-features li::before { content: "✓"; position: absolute; left: 0; color: var(--color-accent); font-size: 0.85rem; }

/* Summary box */
.summary-box { background-color: var(--color-bg-card); border-left: 3px solid var(--color-accent); padding: 1.5rem 2rem; margin: 2rem 0; }
.summary-box p { margin-bottom: 0.4rem; font-size: 0.95rem; }
.summary-box strong { color: var(--color-accent); }

/* Blockquotes */
blockquote { border-left: 2px solid var(--color-accent); padding-left: 1.5rem; margin: 2rem 0; font-style: italic; color: var(--color-text); font-size: 1.05rem; line-height: 1.65; }
blockquote cite { display: block; margin-top: 0.8rem; font-style: normal; font-size: 0.85rem; color: var(--color-text-dim); }
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin: 2rem 0; }
.testimonials-grid blockquote { margin: 0; }

/* Depth picker — neuroscience page */
/* Tool picker — members tools page */
.tool-picker { position: sticky; top: 56px; z-index: 98; display: flex; gap: 0; justify-content: center; background: var(--color-bg-card); border-bottom: 1px solid var(--color-border); padding: 0; }
.tool-tab { font-family: "Brandon Text", -apple-system, sans-serif; font-size: 0.9rem; font-weight: 500; padding: 0.85rem 1.5rem; border: none; background: transparent; color: var(--color-text-muted); cursor: pointer; transition: all 0.2s; border-bottom: 3px solid transparent; }
.tool-tab:hover { color: var(--color-text); }
.tool-tab.active { color: #fff; border-bottom-color: var(--color-accent); }

/* Tool panels — sections directly inside main */

/* Exploration history */
.exploration-toggle { display: block; padding: 1rem 1.5rem; background-color: var(--color-bg-card); border-left: 3px solid var(--color-accent); cursor: pointer; transition: border-color 0.2s; }
.exploration-toggle:hover { border-left-color: var(--color-text); }
.exploration-toggle .session-date { font-family: "brandon-grotesque", sans-serif; font-weight: 400; font-size: 0.9rem; color: var(--color-accent); margin-right: 1.5rem; }
.exploration-toggle .session-title { font-size: 1rem; color: var(--color-text); }
.exploration-detail h3 { font-family: "Brandon Text", -apple-system, sans-serif; font-weight: 700; font-size: 1.35rem; color: var(--color-accent); margin-top: 2.5rem; margin-bottom: 0.75rem; border-top: none; padding-top: 0; }
.exploration-detail h3:first-child { margin-top: 0; }
.exploration-detail p { margin-bottom: 1rem; }
.exploration-detail strong { font-weight: 700; color: var(--color-text); }

.depth-picker { position: sticky; top: 56px; z-index: 98; display: flex; gap: 0; justify-content: center; background: var(--color-bg-dark); border-bottom: 1px solid var(--color-border); margin: 0 calc(-50vw + 50%); padding: 0; scroll-margin-top: 56px; }
.depth-option { font-family: "Brandon Text", -apple-system, sans-serif; font-size: 0.9rem; font-weight: 500; padding: 0.85rem 1.5rem; border: none; background: transparent; color: var(--color-text-muted); cursor: pointer; transition: all 0.2s; }
.depth-option:hover { color: var(--color-text); }
.depth-option.active { color: #fff; }
.depth-option[data-depth="newcomer"].active { background: var(--centre-heart); color: #fff; }
.depth-option[data-depth="connected"].active { background: var(--centre-body); color: #fff; }
.depth-option[data-depth="full"].active { background: var(--centre-head); color: #fff; }
.depth-content.hidden { display: none; }

/* PDP Grid Explorer */
.pdp-grid-explorer { margin: 2rem 0; }
.pdp-grid { display: grid; grid-template-columns: 2.2rem 1fr 1fr 1fr; gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); }
.pdp-grid > * { background: var(--color-bg); }
.pdp-grid-corner { padding: 0.4rem; background: var(--color-bg-card); }
.pdp-grid-col-header { padding: 0.5rem 0.5rem; text-align: center; font-family: "Brandon Text", -apple-system, sans-serif; font-size: 0.8rem; font-weight: 400; color: var(--color-accent); background: var(--color-bg-card); }
.pdp-grid-row-header { padding: 0.5rem 0; font-family: "Brandon Text", -apple-system, sans-serif; font-size: 0.75rem; font-weight: 500; display: flex; align-items: center; justify-content: center; background: var(--color-bg-card); writing-mode: vertical-lr; text-orientation: mixed; transform: rotate(180deg); }
.pdp-grid-cell { padding: 1rem 0.5rem; text-align: center; cursor: pointer; transition: filter 0.2s, opacity 0.2s; display: flex; flex-direction: column; gap: 0.15rem; align-items: center; }
.pdp-grid-cell:hover { filter: brightness(1.2); }
.pdp-grid-cell.active { box-shadow: inset 0 0 0 2px #fff; filter: brightness(1.15); }
.pdp-cell-code { font-family: "Brandon Text", -apple-system, sans-serif; font-size: 0.8rem; font-weight: 400; letter-spacing: 0.5px; color: rgba(255,255,255,0.65); }
.pdp-cell-verb { font-family: "Brandon Text", -apple-system, sans-serif; font-size: clamp(1rem, 1.8vw, 1.15rem); font-weight: 700; color: #fff; }
.pdp-cell-type { font-family: "Brandon Text", -apple-system, sans-serif; font-size: 0.85rem; color: rgba(255,255,255,0.75); }
/* Type colours on grid cells */
.pdp-grid-cell[data-type="1"] { background-color: var(--type-1); }
.pdp-grid-cell[data-type="2"] { background-color: var(--type-2); }
.pdp-grid-cell[data-type="3"] { background-color: var(--type-3); }
.pdp-grid-cell[data-type="4"] { background-color: var(--type-4); }
.pdp-grid-cell[data-type="5"] { background-color: var(--type-5); }
.pdp-grid-cell[data-type="6"] { background-color: var(--type-6); }
.pdp-grid-cell[data-type="7"] { background-color: var(--type-7); }
.pdp-grid-cell[data-type="8"] { background-color: var(--type-8); }
.pdp-grid-cell[data-type="9"] { background-color: var(--type-9); }

/* Detail panel */
.pdp-detail { background: var(--color-bg-card); border: 1px solid var(--color-border); border-top: none; padding: 1.5rem 2rem; animation: pdp-fade-in 0.3s ease; }
@keyframes pdp-fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.pdp-detail-heading { font-family: "Brandon Text", -apple-system, sans-serif; font-size: 1.05rem; font-weight: 500; margin-bottom: 0.3rem; }
.pdp-detail-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.pdp-detail-meta span { font-family: "Brandon Text", -apple-system, sans-serif; font-size: 0.8rem; color: var(--color-text-muted); }
.pdp-detail-meta strong { color: var(--color-text); font-weight: 500; }
.pdp-detail-summary { font-size: 0.95rem; line-height: 1.7; color: var(--color-text); margin-bottom: 0.8rem; }
.pdp-detail-verb-desc { font-size: 0.9rem; line-height: 1.7; color: var(--color-text-muted); margin-bottom: 0; }

/* Triad viewer */
.triad-viewer { max-width: 500px; width: 100%; margin: 2rem auto; }
.triad-toggles { display: flex; justify-content: center; margin-bottom: 1rem; }
.triad-toggles-inner { display: flex; position: relative; background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: 100px; padding: 3px; }
.triad-toggles-inner .triad-slider { position: absolute; top: 3px; left: 3px; height: calc(100% - 6px); width: calc(33.333% - 2px); background: var(--color-border); border-radius: 100px; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none; }
.triad-toggles-inner[data-active="attendency"] .triad-slider { transform: translateX(100%); }
.triad-toggles-inner[data-active="mode"] .triad-slider { transform: translateX(200%); }
.triad-toggle { font-family: "brandon-grotesque", sans-serif; font-size: 0.8rem; padding: 0.35rem 1rem; border: none; border-radius: 100px; background: transparent; color: var(--color-text-muted); cursor: pointer; transition: color 0.25s; position: relative; z-index: 1; width: 6.5rem; text-align: center; }
.triad-toggle.active { color: var(--color-text); }
.triad-toggle:hover:not(.active) { color: var(--color-text); }
.triad-symbol { max-width: 500px; margin: 0 auto; }
.triad-symbol svg { width: 100%; height: auto; }
.triad-point { cursor: pointer; }
.triad-point circle { transition: opacity 0.4s, filter 0.3s; }
.triad-point text { transition: opacity 0.4s; pointer-events: none; }
.triad-point:hover circle { filter: brightness(1.3) drop-shadow(0 0 10px rgba(255,255,255,0.25)); }
.triad-viewer.has-active .triad-point.dimmed circle { opacity: 0.3; }
.triad-viewer.has-active .triad-point.dimmed text { opacity: 0.3; }
.triad-viewer.has-active .triad-point.dimmed:hover circle { opacity: 0.5; filter: brightness(1.2); }
.triad-viewer.has-active .triad-point.dimmed:hover text { opacity: 0.5; }
.triad-viewer.has-active .triad-point.highlighted circle { filter: brightness(1.2) drop-shadow(0 0 10px rgba(255,255,255,0.2)); }
.triad-viewer.has-active .triad-inner-lines { opacity: 0.2; transition: opacity 0.4s; }
.triad-draw-line { stroke-linecap: round; stroke-linejoin: round; transition: none; }
.triad-info { text-align: center; margin-top: 1.5rem; opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.4s; }
.triad-info.visible { opacity: 1; transform: translateY(0); }
.triad-info-heading { font-family: "brandon-grotesque", sans-serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 0.15rem; }
.triad-info-types { font-family: "brandon-grotesque", sans-serif; font-size: 0.75rem; font-weight: 400; text-transform: uppercase; letter-spacing: 1.5px; color: var(--color-text-muted); margin-bottom: 0.5rem; }
.triad-info-desc { font-size: 0.95rem; line-height: 1.7; color: var(--color-text-muted); max-width: 420px; margin: 0 auto; }

/* Tier link */
.tier-link { cursor: pointer; }

@media (max-width: 480px) {
  .pdp-grid { grid-template-columns: 1.8rem 1fr 1fr 1fr; }
  .pdp-grid-row-header { font-size: 0.7rem; }
  .pdp-cell-verb { font-size: 0.95rem; }
  .pdp-cell-type { font-size: 0.8rem; }
  .pdp-grid-cell { padding: 0.75rem 0.35rem; }
  .pdp-detail { padding: 1.25rem 1.25rem; }
  .pdp-detail-meta { gap: 0.75rem; }
}

/* Progressive disclosure — neuroscience page */
.disclosure-section { border-bottom: 1px solid var(--color-border); max-width: var(--content-width); margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
.disclosure-header { cursor: pointer; padding: 1.25rem 0; user-select: none; position: relative; padding-right: 2rem; }
.disclosure-header h2 { border-top: none; padding-top: 0; margin-top: 0; margin-bottom: 0.3rem; }
.disclosure-header::after { content: '+'; position: absolute; right: 0; top: 1.25rem; color: var(--color-accent); font-size: 1.4rem; font-weight: 300; transition: transform 0.2s; }
.disclosure-section.open .disclosure-header::after { content: '\2212'; }
.disclosure-summary { color: var(--color-text-muted); font-size: 0.95rem; font-style: italic; margin-bottom: 0; max-width: 85%; }
.disclosure-content { max-height: 0; overflow: hidden; transition: max-height 0.5s ease; }
.disclosure-section.open .disclosure-content { max-height: 5000px; padding-bottom: 2rem; }

/* FAQ — working accordion */
.faq-section { margin: 2rem 0; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question { font-family: "brandon-grotesque", sans-serif; font-weight: 400; font-size: 1.05rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; user-select: none; }
.faq-question::after { content: '+'; color: var(--color-accent); font-size: 1.4rem; flex-shrink: 0; margin-left: 1rem; transition: transform 0.2s; }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 0; }
.faq-item.open .faq-answer { max-height: 800px; padding: 0 0 1.25rem; }
.faq-answer p { color: var(--color-text-muted); font-size: 1rem; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
th, td { padding: 0.8rem; text-align: left; border-bottom: 1px solid var(--color-border); }
td:first-child, th:first-child { white-space: nowrap; }
th { font-family: "brandon-grotesque", sans-serif; font-weight: 400; color: var(--color-accent); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* Type grid */
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 2rem 0 2.5rem; }
.type-card { background-color: var(--color-bg-card); padding: 1.8rem 1.2rem; text-align: center; border: 1px solid var(--color-border); transition: all 0.25s; text-decoration: none; }
.type-card:hover { border-color: var(--color-border-light); transform: translateY(-2px); }
.type-card .type-number { font-size: 2.2rem; font-family: "brandon-grotesque", sans-serif; font-weight: 300; line-height: 1; margin-bottom: 0.4rem; }
.type-card .type-name { font-family: "brandon-grotesque", sans-serif; font-size: 0.9rem; font-weight: 400; color: var(--color-text-muted); }
.type-card .type-desc { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 0.5rem; line-height: 1.4; }

/* Type card colours */
.type-card[href*="type-1"] .type-number { color: var(--type-1); }
.type-card[href*="type-1"]:hover { border-color: var(--type-1); }
.type-card[href*="type-2"] .type-number { color: var(--type-2); }
.type-card[href*="type-2"]:hover { border-color: var(--type-2); }
.type-card[href*="type-3"] .type-number { color: var(--type-3); }
.type-card[href*="type-3"]:hover { border-color: var(--type-3); }
.type-card[href*="type-4"] .type-number { color: var(--type-4); }
.type-card[href*="type-4"]:hover { border-color: var(--type-4); }
.type-card[href*="type-5"] .type-number { color: var(--type-5); }
.type-card[href*="type-5"]:hover { border-color: var(--type-5); }
.type-card[href*="type-6"] .type-number { color: var(--type-6); }
.type-card[href*="type-6"]:hover { border-color: var(--type-6); }
.type-card[href*="type-7"] .type-number { color: var(--type-7); }
.type-card[href*="type-7"]:hover { border-color: var(--type-7); }
.type-card[href*="type-8"] .type-number { color: var(--type-8); }
.type-card[href*="type-8"]:hover { border-color: var(--type-8); }
.type-card[href*="type-9"] .type-number { color: var(--type-9); }
.type-card[href*="type-9"]:hover { border-color: var(--type-9); }

/* Enneagram symbol navigation — interactive tool */
.enneagram-nav { max-width: 500px; width: 100%; margin: 0 auto; position: relative; }
.enneagram-nav svg { width: 100%; height: auto; }

/* Type points */
.enneagram-nav .enneagram-point { cursor: pointer; }
.enneagram-nav .enneagram-point circle { transition: opacity 0.4s, filter 0.3s, r 0.3s; }
.enneagram-nav .enneagram-point text { transition: opacity 0.4s; pointer-events: none; }
.enneagram-nav .enneagram-point:hover circle { filter: brightness(1.3) drop-shadow(0 0 10px rgba(255,255,255,0.25)); }

/* Dimmed state */
.enneagram-nav.has-active .enneagram-point.dimmed circle { opacity: 0.3; }
.enneagram-nav.has-active .enneagram-point.dimmed text { opacity: 0.3; }
.enneagram-nav.has-active .enneagram-point.dimmed:hover circle { opacity: 0.6; filter: brightness(1.2); }
.enneagram-nav.has-active .enneagram-point.dimmed:hover text { opacity: 0.6; }

/* Wing highlight */
.enneagram-nav .enneagram-point.connected circle { opacity: 0.7; }
.enneagram-nav .enneagram-point.connected text { opacity: 0.7; }

/* Active states */
.enneagram-nav .enneagram-point.active circle { filter: brightness(1.3) drop-shadow(0 0 14px rgba(255,255,255,0.3)); }
.enneagram-nav .enneagram-point.active-secondary circle { filter: brightness(1.3) drop-shadow(0 0 14px rgba(255,255,255,0.3)); }

/* Arrow lines */
.arrow-line { stroke-width: 2; stroke-linecap: round; fill: none; opacity: 0; transition: opacity 0.4s; }
.arrow-line.visible { opacity: 0.8; }
.arrow-line.resource { stroke: var(--color-accent-warm); stroke-dasharray: 6 4; }
.arrow-line.growth { stroke: var(--color-accent); }
.arrow-marker-resource { fill: var(--color-accent-warm); }
.arrow-marker-growth { fill: var(--color-accent); }

/* Static inner lines */
.inner-lines { transition: opacity 0.4s; }
.enneagram-nav.has-active .inner-lines { opacity: 0.2; }

/* Centre prompt (compare mode) */
.centre-prompt { pointer-events: none; transition: opacity 0.4s; }

/* Instruction prompt */
.prompt { font-family: "brandon-grotesque", sans-serif; font-size: 0.85rem; color: var(--color-text-muted); text-align: center; margin-bottom: 1.25rem; min-height: 1.2em; transition: opacity 0.4s; }

/* Mode toggle */
.mode-toggle { display: flex; justify-content: center; margin-bottom: 1rem; }
.mode-toggle-inner { display: flex; position: relative; background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: 100px; padding: 3px; }
.mode-toggle-slider { position: absolute; top: 3px; left: 3px; height: calc(100% - 6px); width: calc(50% - 3px); background: var(--color-border); border-radius: 100px; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none; }
.mode-toggle-inner[data-active="compare"] .mode-toggle-slider { transform: translateX(100%); }
.mode-toggle button { font-family: "brandon-grotesque", sans-serif; font-size: 0.8rem; padding: 0.35rem 1rem; border: none; border-radius: 100px; background: transparent; color: var(--color-text-muted); cursor: pointer; transition: color 0.25s; position: relative; z-index: 1; width: 5.5rem; text-align: center; }
.mode-toggle button.active { color: var(--color-text); }
.mode-toggle button:hover:not(.active) { color: var(--color-text); }

/* Nudge */
.symbol-nudge { font-family: "brandon-grotesque", sans-serif; font-size: 0.9rem; font-weight: 400; color: var(--color-text-muted); text-align: center; margin: 1rem auto 0; max-width: 500px; letter-spacing: 1.5px; text-transform: uppercase; transition: opacity 0.5s; animation: nudge-fade 3s ease-in-out infinite; }
.symbol-nudge.hidden { opacity: 0; height: 0; margin: 0; overflow: hidden; pointer-events: none; }
@keyframes nudge-fade { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.8; } }

/* Info panel */
.info-panel { max-width: 500px; width: 100%; margin: 0 auto; text-align: center; opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.4s, min-height 0.4s, margin 0.4s; height: 0; overflow: hidden; }
.info-panel.visible { opacity: 1; transform: translateY(0); margin-top: 1.5rem; height: auto; overflow: visible; }
.info-panel .type-heading { font-family: "brandon-grotesque", sans-serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 0.15rem; }
.info-panel .type-label { font-family: "brandon-grotesque", sans-serif; font-size: 0.75rem; font-weight: 400; text-transform: uppercase; letter-spacing: 1.5px; color: var(--color-text-muted); margin-bottom: 0.4rem; }
.info-panel .type-hook { font-size: 0.95rem; color: var(--color-text-muted); font-style: italic; margin-bottom: 1rem; }

/* Quote */
.info-panel .quote-container { position: relative; min-height: 5em; margin-bottom: 1rem; }
.info-panel .quote { font-style: italic; font-size: 0.95rem; line-height: 1.7; margin-bottom: 0.5rem; transition: opacity 0.6s ease; }
.info-panel .quote.fading { opacity: 0; }
.info-panel .quote-attr { font-family: "brandon-grotesque", sans-serif; font-size: 0.8rem; color: var(--color-text-muted); transition: opacity 0.6s ease; }
.info-panel .quote-attr.fading { opacity: 0; }

/* Action links */
.info-panel .action-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.info-panel .btn-secondary { background: transparent; color: var(--color-text); border: 1px solid var(--color-border); }
.info-panel .btn-secondary:hover { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); }
.info-panel .type-link { font-family: "brandon-grotesque", sans-serif; font-size: 0.75rem; letter-spacing: 1.5px; color: var(--color-text-muted); text-decoration: none; transition: color 0.2s; }
.info-panel .type-link:hover { color: var(--color-text); }
.info-panel a { text-decoration: none; }

/* Preview panel (compare mode, one type selected) */
.info-panel .preview { display: none; }
.info-panel.preview-mode .single-type { display: none; }
.info-panel.preview-mode .relationship { display: none; }
.info-panel.preview-mode .preview { display: block; }
.info-panel .preview-heading { font-family: "brandon-grotesque", sans-serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 0.15rem; }
.info-panel .preview-label { font-family: "brandon-grotesque", sans-serif; font-size: 0.75rem; font-weight: 400; text-transform: uppercase; letter-spacing: 1.5px; color: var(--color-text-muted); margin-bottom: 0.4rem; }
.info-panel .preview-motivation { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 0.75rem; }
.info-panel .worldview-label { font-family: "brandon-grotesque", sans-serif; font-size: 0.7rem; font-weight: 400; text-transform: uppercase; letter-spacing: 1.5px; color: var(--color-text-muted); margin-top: 1rem; margin-bottom: 0.3rem; }
.info-panel .preview-worldview { font-size: 0.95rem; line-height: 1.7; margin-bottom: 1rem; }

/* Relationship panel (two-type mode) */
.info-panel .relationship { display: none; }
.info-panel.compare-mode .single-type { display: none; }
.info-panel.compare-mode .preview { display: none; }
.info-panel.compare-mode .relationship { display: block; }
.info-panel .relationship-heading { font-family: "brandon-grotesque", sans-serif; font-size: 1rem; font-weight: 400; margin-bottom: 0.75rem; }
.info-panel .relationship-insight { font-size: 1rem; line-height: 1.7; margin-bottom: 1rem; }
.info-panel .relationship-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

/* Legend */
.legend { display: flex; gap: 1.5rem; justify-content: center; margin-top: 0; font-family: "brandon-grotesque", sans-serif; font-size: 0.75rem; color: var(--color-text-muted); opacity: 0; height: 0; overflow: hidden; transition: opacity 0.4s; }
.legend.visible { opacity: 1; height: auto; margin-top: 0.75rem; }
.legend span { display: flex; align-items: center; gap: 0.4rem; }
.legend-line { width: 20px; height: 2px; border-radius: 1px; }
.legend-line.resource { background: repeating-linear-gradient(90deg, var(--color-accent-warm) 0, var(--color-accent-warm) 4px, transparent 4px, transparent 7px); opacity: 0.8; }
.legend-line.growth { background: var(--color-accent); opacity: 0.8; }

/* Mobile card grid — noscript fallback only */
.type-grid-mobile { display: none; }

/* Journey picker */
.journey-picker { max-width: 540px; margin: 0 auto; }
.journey-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.journey-option {
  font-family: "brandon-grotesque", sans-serif; font-size: 0.9rem; font-weight: 400;
  color: var(--color-text-muted); background: var(--color-bg-card);
  border: 1px solid var(--color-border); padding: 1.5rem 1.25rem;
  text-align: center; cursor: pointer; line-height: 1.4;
  transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.25s;
}
.journey-option:hover { border-color: var(--color-border-light); color: var(--color-text); transform: translateY(-2px); }
.journey-option.selected { border-color: var(--color-accent); color: var(--color-text); background: var(--color-bg-elevated); }
.journey-option.dimmed { opacity: 0.35; transform: none; }
.journey-option.dimmed:hover { opacity: 0.6; transform: none; }
@media (max-width: 480px) { .journey-options { grid-template-columns: 1fr; } }
.journey-result {
  text-align: center; margin-top: 1.5rem;
  opacity: 0; height: 0; overflow: hidden;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
}
.journey-result.visible { opacity: 1; height: auto; overflow: visible; transform: translateY(0); }
.journey-recommendation { font-size: 0.95rem; color: var(--color-text-muted); margin-bottom: 1.25rem; }

/* Centre colours for type index */
.card[data-centre="body"] { border-top: 2px solid var(--centre-body); }
.card[data-centre="heart"] { border-top: 2px solid var(--centre-heart); }
.card[data-centre="head"] { border-top: 2px solid var(--centre-head); }

/* Centre cards */
.centre-cards { display: flex; flex-direction: column; gap: 1.5rem; margin: 2rem 0; }
.centre-card { background: var(--color-bg-card); padding: 2rem; border: 1px solid var(--color-border); }
.centre-card[data-centre="body"] { border-top: 3px solid var(--centre-body); }
.centre-card[data-centre="heart"] { border-top: 3px solid var(--centre-heart); }
.centre-card[data-centre="head"] { border-top: 3px solid var(--centre-head); }
.centre-card h3 { margin-top: 0; }
.centre-types { display: flex; gap: 0.75rem; margin: 1rem 0; }
.centre-type-circle {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: "brandon-grotesque", sans-serif; font-size: 1.1rem; font-weight: 400;
  color: #fff; text-decoration: none; line-height: 1; padding-bottom: 0.15rem;
  transition: transform 0.25s, filter 0.25s;
}
.centre-type-circle:hover { transform: scale(1.1); filter: brightness(1.3); color: #fff; }
.centre-emotion { font-family: "brandon-grotesque", sans-serif; font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 0.75rem; }
.centre-card p:last-child { margin-bottom: 0; }

/* Host */
.host-section h2 { text-align: left; }
.host-content { display: flex; gap: 2.5rem; align-items: flex-start; margin-top: 1.5rem; }
.host-content-reversed { flex-direction: row-reverse; }
.host-photo { flex-shrink: 0; }
.host-photo img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 2px solid var(--color-border); }
.host-photo-float { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 2px solid var(--color-border); float: right; margin: 0 0 1.5rem 2rem; }
.host-bio { flex: 1; }
.credentials { background-color: var(--color-bg-card); padding: 1.5rem; margin: 1.5rem 0; border-left: 3px solid var(--color-accent); }
.credentials ul { margin-bottom: 0; font-size: 0.9rem; }

/* Sessions */
.upcoming-sessions { display: flex; flex-direction: column; gap: 0.5rem; margin: 1.5rem 0; }
.session-preview { display: flex; align-items: center; gap: 1.5rem; padding: 1rem 1.5rem; background-color: var(--color-bg-card); border-left: 3px solid var(--color-accent); transition: border-color 0.2s; }
.session-preview:hover { border-left-color: var(--color-text); }
.session-date { font-family: "brandon-grotesque", sans-serif; font-weight: 400; font-size: 0.9rem; color: var(--color-accent); min-width: 60px; }
.session-title { flex: 1; font-size: 1rem; }
.session-type { font-family: "brandon-grotesque", sans-serif; color: var(--color-text-dim); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* Archive — collapsible years */
.archive-year { margin-bottom: 0.5rem; }
.archive-year-header { font-family: "brandon-grotesque", sans-serif; font-weight: 600; font-size: 1.3rem; color: #fff; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; user-select: none; margin-bottom: 0; position: relative; overflow: hidden; background-color: var(--color-bg-card); background-image: url('/images/enneagram-pattern-full.svg'); background-repeat: no-repeat; background-size: 2400px auto; }
.archive-year.crop-1 .archive-year-header { background-position: 20% 35%; }
.archive-year.crop-2 .archive-year-header { background-position: 65% 70%; }
.archive-year.crop-3 .archive-year-header { background-position: 10% 55%; }
.archive-year.crop-4 .archive-year-header { background-position: 80% 20%; }
.archive-year-header::after { content: '+'; color: rgba(255,255,255,0.8); font-size: 1.5rem; transition: transform 0.2s; }
.archive-year.open .archive-year-header::after { content: '−'; }
.archive-year-header .year-count { font-size: 1rem; font-weight: 400; color: rgba(255,255,255,0.75); margin-left: 0.5rem; }
.archive-year-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.archive-year.open .archive-year-content { max-height: 15000px; }

.archive-list { display: flex; flex-direction: column; gap: 0; margin: 0 0 0.5rem; }
.archive-list .session-preview { background-color: transparent; border-left-color: var(--color-border); padding: 0.6rem 1.5rem; flex-wrap: wrap; }
.archive-list .session-preview:hover { background-color: var(--color-bg-card); border-left-color: var(--color-accent); }
.archive-list .session-date { color: var(--color-text-dim); font-size: 0.85rem; }
.archive-list .session-title { font-size: 0.95rem; color: var(--color-text); }
.archive-list .session-preview:hover .session-title { color: var(--color-text); }
.archive-list .session-preview:hover .session-date { color: var(--color-accent); }
.session-desc { width: 100%; font-size: 0.85rem; color: var(--color-text-dim); line-height: 1.5; margin-top: 0.25rem; padding-left: calc(60px + 1.5rem); }

/* Featured session panels (Next / Last) */
.featured-session { background-color: var(--color-bg-card); border-left: 4px solid var(--color-accent); padding: 1.5rem 2rem; margin-bottom: 1rem; }
.featured-session .session-date { display: block; font-family: "brandon-grotesque", sans-serif; font-weight: 400; font-size: 0.85rem; color: var(--color-accent); margin-bottom: 0.3rem; }
.featured-session .session-title { font-size: 1.15rem; margin: 0 0 0.5rem; font-weight: 400; }
.featured-session .session-desc { width: auto; padding-left: 0; color: var(--color-text-muted); line-height: 1.6; margin: 0; }
.schedule-note { margin-top: 1.5rem; }
.archive-invitation { color: var(--color-text-muted); }
.session-counter { font-family: inherit; }

/* Next session in archive */
.session-preview.next-session { opacity: 1 !important; background-color: rgba(79, 186, 173, 0.12) !important; border-left-color: var(--color-accent) !important; }
.session-preview.next-session .session-date { color: var(--color-accent) !important; }
.session-next-badge { display: inline-block; background-color: var(--color-accent); color: var(--color-bg-dark); font-family: "brandon-grotesque", sans-serif; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1.2px; padding: 0.2rem 0.6rem; margin-left: 0.75rem; font-weight: 500; vertical-align: middle; }

/* Planned sessions in archive */
.archive-list .session-preview.planned { opacity: 0.45; transition: opacity 0.2s; }
.archive-list .session-preview.planned:hover { opacity: 0.7; }
.planned-header { font-family: "brandon-grotesque", sans-serif; font-size: 0.9rem; color: var(--color-text-dim); cursor: pointer; padding: 0.8rem 1.5rem; user-select: none; display: flex; align-items: center; gap: 0.5rem; }
.planned-header .planned-toggle::before { content: '+'; color: var(--color-accent); font-size: 1.1rem; display: inline-block; width: 1rem; text-align: center; }
.planned-header.open .planned-toggle::before { content: '−'; }
.planned-wrapper { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.planned-wrapper.open { max-height: 3000px; }

/* Horizontal feature cards (Why section) */
.feature-cards { display: flex; flex-direction: column; gap: 1rem; margin: 2rem 0; }
.feature-card { display: flex; align-items: flex-start; gap: 1.5rem; padding: 1.5rem 2rem 1.5rem calc(18px + 1.5rem); background-color: var(--color-bg-card); border-left: none; position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; left: 0; top: 0; width: 18px; height: 100%; background-size: 100% 100%; background-repeat: no-repeat; }
.feature-card:nth-child(1)::before { background-image: url('/images/border-cool.svg'); }
.feature-card:nth-child(2)::before { background-image: url('/images/border-red.svg'); }
.feature-card:nth-child(3)::before { background-image: url('/images/border-warm.svg'); }
.feature-card:nth-child(4)::before { background-image: url('/images/border-centre.svg'); }
.feature-card h3 { margin-top: 0; font-size: 1.15rem; }
.feature-card .step-title { font-family: "Brandon Text", -apple-system, sans-serif; font-weight: 600; font-size: 1.2rem; }
.feature-card p { margin-bottom: 0.5rem; font-size: 0.95rem; }
.feature-card p:last-child { margin-bottom: 0; }

/* Plan steps — coloured blocks with number strip */
.plan-steps { display: flex; flex-direction: column; gap: 1rem; margin: 2rem 0; }
.plan-step { display: flex; align-items: stretch; color: #fff; overflow: hidden; }
.step-number { display: flex; align-items: center; justify-content: center; width: clamp(4.5rem, 10vw, 6rem); flex-shrink: 0; font-family: "Brandon Text", -apple-system, sans-serif; font-weight: 300; font-size: clamp(4.5rem, 10vw, 6rem); color: #fff; }
.plan-step > div { padding: 1.5rem 2rem; flex: 1; }
.plan-step h3 { margin-top: 0; color: #fff; }
.plan-step .step-title { font-family: "Brandon Text", -apple-system, sans-serif; font-weight: 600; font-size: 1.2rem; }
.plan-step p { margin-bottom: 0.5rem; font-size: 0.95rem; color: rgba(255,255,255,0.9); }
.plan-step p:last-child { margin-bottom: 0; }
.plan-step a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.plan-step a:hover { color: rgba(255,255,255,0.8); }
.plan-step-head { background: var(--type-6) url('/images/plan-head.svg') center / cover no-repeat; }
.plan-step-heart { background: var(--type-3) url('/images/plan-heart.svg') center / cover no-repeat; }
.plan-step-body { background: var(--type-9) url('/images/plan-body.svg') center / cover no-repeat; }
@media (max-width: 600px) { .plan-step > div { padding: 1.25rem 1.5rem; } }

/* Nine voices carousel */
.nine-voices { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; margin: 2rem 0; }
.voice-slot { transition: opacity 0.6s ease; min-height: 6rem; }
.voice-slot blockquote { margin: 0; font-size: 1.05rem; line-height: 1.6; font-style: italic; color: var(--color-text); }
@media (max-width: 600px) { .nine-voices { grid-template-columns: 1fr; } }

/* Sample CTA */
.sample-cta { background-color: var(--color-bg-dark); margin: 3rem calc(-50vw + 50%); padding: 3rem calc(50vw - 50%); text-align: center; }
.sample-cta h2 { border-top: none; padding-top: 0; margin-top: 0; }

/* Type page */
.type-page-symbol { display: block; max-width: 260px; margin: 0 auto 1rem; }
.mid-page-cta { background-color: var(--color-bg-card); border: 1px solid var(--color-border); padding: 2rem; margin: 3rem 0; text-align: center; }
.mid-page-cta .type-summary-inner { text-align: left; }
.mid-page-cta h3 { margin-top: 0; color: var(--color-text); }
.mid-page-cta p { color: var(--color-text-muted); margin-bottom: 1.5rem; }
.related-sessions { background-color: var(--color-bg-card); padding: 1.5rem 2rem; margin: 2rem 0; }
.related-sessions h4 { margin-top: 0; color: var(--color-accent); }
.related-sessions ul { margin-bottom: 0; }

/* Placeholder */
.placeholder { background-color: var(--color-bg-dark); border: 2px dashed var(--color-border); padding: 3rem; text-align: center; margin: 1rem 0; color: var(--color-text-dim); font-size: 0.9rem; }

/* Final CTA */
.final-cta { margin-top: 3rem; }
.final-cta h2 { border-top: none; padding-top: 0; }

/* Footer */
footer { background-color: var(--color-bg-dark); padding: 2.5rem 1.5rem; margin-top: 0; border-top: 2px dotted var(--color-border); }
.footer-inner { max-width: var(--full-width); margin: 0 auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; margin-bottom: 1.5rem; }
.footer-nav a { color: var(--color-text-dim); font-family: "brandon-grotesque", sans-serif; font-size: 0.8rem; }
.footer-nav a:hover { color: var(--color-text-muted); }
.footer-meta { color: var(--color-text-dim); font-size: 0.8rem; line-height: 1.6; }

/* Responsive */
@media (max-width: 768px) {
  h2 { font-size: 1.5rem; }
  .type-grid-mobile { display: none; }
  .type-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .card-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .host-content { flex-direction: column; align-items: flex-start; text-align: left; }
  .host-photo img { width: 140px; height: 140px; }
  .feature-card { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 480px) {
  main { padding: 1.5rem 1rem 3rem; }
  .type-grid { grid-template-columns: 1fr 1fr 1fr; gap: 0.4rem; }
  .type-card { padding: 1rem 0.5rem; }
  .type-card .type-number { font-size: 1.6rem; }
  .type-card .type-name { font-size: 0.75rem; }
  .type-card .type-desc { display: none; }
  .session-preview { flex-wrap: wrap; gap: 0.3rem 1rem; }
  .feature-card { padding: 1.25rem 1.5rem 1.25rem calc(18px + 1rem); }
}

/* Footer columns */
.footer-columns { display: flex; flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem; }
.footer-col { min-width: 120px; }
.footer-col h4, .footer-heading { font-family: "brandon-grotesque", sans-serif; font-size: 0.8rem; font-weight: 400; text-transform: uppercase; letter-spacing: 1px; color: var(--color-text-muted); margin-bottom: 0.6rem; display: block; }
.footer-col a { display: block; color: var(--color-text-dim); font-family: "brandon-grotesque", sans-serif; font-size: 0.85rem; padding: 0.2rem 0; }
.footer-col a:hover { color: var(--color-text-muted); }

/* Members banner */
.members-banner { background-color: var(--color-accent); color: var(--color-bg-dark); text-align: center; font-family: "brandon-grotesque", sans-serif; font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1.5px; padding: 0.4rem; }
.past-due-banner { background-color: var(--color-accent-warm); color: #fff; text-align: center; font-family: "brandon-grotesque", sans-serif; font-size: 0.85rem; font-weight: 400; padding: 0.6rem 1.5rem; line-height: 1.5; }
.past-due-banner a { color: #fff; text-decoration: underline; font-weight: 500; }

/* Login form */
.login-form-container { max-width: 400px; margin: 0 auto; }
.login-form { display: flex; flex-direction: column; gap: 1rem; }
.login-form label { font-family: "brandon-grotesque", sans-serif; font-size: 0.85rem; font-weight: 400; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.login-form input[type="email"] { width: 100%; padding: 0.85rem 1rem; font-family: "Brandon Text", -apple-system, sans-serif; font-size: 1rem; color: var(--color-text); background-color: var(--color-bg-card); border: 1px solid var(--color-border-light); outline: none; transition: border-color 0.2s; }
.login-form input[type="email"]::placeholder { color: var(--color-text-dim); }
.login-form input[type="email"]:focus { border-color: var(--color-accent); }
.login-form .btn { width: 100%; margin: 0.5rem 0 0; }

/* Waitlist form */
.intro-waitlist { max-width: 440px; margin: 2rem auto 0; text-align: left; }
.waitlist-form { display: flex; flex-direction: column; gap: 0.75rem; }
.waitlist-row { display: flex; flex-direction: column; gap: 0.25rem; }
.waitlist-row label { font-family: "brandon-grotesque", sans-serif; font-size: 0.85rem; font-weight: 400; color: var(--color-text-muted); }
.waitlist-row label .meta { font-size: 0.8rem; color: var(--color-text-dim); text-transform: none; letter-spacing: 0; }
.waitlist-row input, .waitlist-row select { width: 100%; padding: 0.75rem 1rem; font-family: "Brandon Text", -apple-system, sans-serif; font-size: 1rem; color: var(--color-text); background-color: var(--color-bg-card); border: 1px solid var(--color-border-light); outline: none; transition: border-color 0.2s; }
.waitlist-row input::placeholder { color: var(--color-text-dim); }
.waitlist-row input:focus, .waitlist-row select:focus { border-color: var(--color-accent); }
.waitlist-row select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238fb0b8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.waitlist-row-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.waitlist-form .btn { width: 100%; margin-top: 0.5rem; }
.waitlist-success { text-align: center; padding: 1.5rem; background: var(--color-bg-card); border-left: 3px solid var(--color-accent); }
.waitlist-success p { margin: 0; }
.waitlist-error { text-align: center; padding: 1rem; background: rgba(238, 111, 92, 0.12); border-left: 3px solid var(--color-accent-warm); margin-top: 0.75rem; }
.waitlist-error p { margin: 0; color: var(--color-text); font-size: 0.9rem; }
@media (max-width: 480px) { .waitlist-row-pair { grid-template-columns: 1fr; } }
.login-help { text-align: center; font-size: 0.9rem; color: var(--color-text-muted); margin-top: 2rem; }

/* Flash messages */
.flash-message { padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-size: 0.95rem; line-height: 1.5; }
.flash-success { background-color: rgba(79, 186, 173, 0.12); border-left: 3px solid var(--color-accent); color: var(--color-text); }
.flash-error { background-color: rgba(238, 111, 92, 0.12); border-left: 3px solid var(--color-accent-warm); color: var(--color-text); }

/* Recording cards */
.recording-card { background-color: var(--color-bg-card); border: 1px solid var(--color-border); padding: 2rem; margin-bottom: 1.5rem; }
.recording-card h3 { margin-top: 0; }
.recording-card .meta { margin-bottom: 1rem; }
a.recording-link { display: block; text-decoration: none; color: inherit; transition: border-color 0.2s, background-color 0.2s; }
a.recording-link:hover { border-color: var(--color-accent); background-color: var(--color-bg-elevated); }
a.recording-link h3 { color: var(--color-accent); }
a.recording-link p:last-child { margin-bottom: 0; }

/* Video embed (standalone) */
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 1.5rem 0; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* Recording search */
.recording-search { width: 100%; padding: 0.85rem 1rem; font-family: "Brandon Text", -apple-system, sans-serif; font-size: 1rem; color: var(--color-text); background-color: var(--color-bg-card); border: 1px solid var(--color-border-light); outline: none; transition: border-color 0.2s; margin-bottom: 2rem; }
.recording-search::placeholder { color: var(--color-text-dim); }
.recording-search:focus { border-color: var(--color-accent); }
.recording-card.hidden, .recording-list .recording-card.hidden { display: none; }

/* Recording filters */
.recording-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.recording-filters .filter-pill { font-family: "Brandon Text", -apple-system, sans-serif; font-size: 0.85rem; font-weight: 500; color: var(--color-text-muted); background: var(--color-bg-card); border: 1px solid var(--color-border); padding: 0.4rem 0.9rem; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.recording-filters .filter-pill:hover { border-color: var(--color-accent); color: var(--color-text); }
.recording-filters .filter-pill.active { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.recording-overview.hidden, .recording-list.hidden { display: none; }

/* Library — catalogue */
.library-search { width: 100%; padding: 0.85rem 1rem; font-family: "Brandon Text", -apple-system, sans-serif; font-size: 1rem; color: var(--color-text); background-color: var(--color-bg-card); border: 1px solid var(--color-border-light); outline: none; transition: border-color 0.2s; margin-bottom: 2rem; }
.library-search::placeholder { color: var(--color-text-dim); }
.library-search:focus { border-color: var(--color-accent); }

/* Category grid — overview */
.library-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.library-category-card { border: none; padding: 2rem 1.5rem; text-align: center; cursor: pointer; transition: all 0.3s; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; background-image: url('/images/enneagram-pattern-full.svg'); background-repeat: no-repeat; background-size: 2400px auto; color: #fff; aspect-ratio: 1; }
.library-category-card > * { position: relative; z-index: 1; }
.library-category-card:hover { filter: brightness(1.15); transform: translateY(-2px); }
.library-category-card h3 { margin-top: 0; margin-bottom: 0.4rem; font-family: "Brandon Text", -apple-system, sans-serif; font-size: 1.4rem; font-weight: 700; color: #fff; }
.library-category-card:hover h3 { color: #fff; }
.library-category-card:nth-child(1) { background-position: 58% 18%; }
.library-category-card:nth-child(2) { background-position: 65% 58%; }
.library-category-card:nth-child(3) { background-position: 80% 42%; }
.library-category-card:nth-child(4) { background-position: 42% 72%; }
.library-category-card:nth-child(5) { background-position: 48% 32%; }
.library-category-card:nth-child(6) { background-position: 15% 45%; }
.lcc-icon { display: none; }
.lcc-icon-inline { font-size: 1.1em; opacity: 0.7; }
.lcc-count { font-family: "Brandon Text", -apple-system, sans-serif; font-size: 0.9rem; font-weight: 500; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; }
.lcc-desc { font-family: "Brandon Text", -apple-system, sans-serif; font-size: 0.95rem; color: #fff; line-height: 1.5; margin-bottom: 0; }

/* Detail view */
.library-detail-header { margin-bottom: 1.5rem; }
.library-detail-header h2 { margin-bottom: 0.5rem; }
.library-back-btn { font-family: "brandon-grotesque", sans-serif; font-size: 0.85rem; color: var(--color-accent); background: none; border: none; cursor: pointer; padding: 0; margin-bottom: 1.5rem; transition: color 0.2s; }
.library-back-btn:hover { color: var(--color-text); }

/* Item cards */
.library-card { background-color: var(--color-bg-card); border: 1px solid var(--color-border); padding: 1.5rem 2rem; margin-bottom: 1rem; border-left: 3px solid var(--color-border); }
.library-card h3 { margin-top: 0.25rem; margin-bottom: 0.25rem; }
a.library-link { display: block; text-decoration: none; color: inherit; transition: border-color 0.2s, background-color 0.2s, border-left-color 0.2s; }
a.library-link:hover { border-color: var(--color-accent); border-left-color: var(--color-accent); background-color: var(--color-bg-elevated); }
a.library-link h3 { color: var(--color-accent); }
a.library-link p:last-child { margin-bottom: 0; }

.library-card-type { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.25rem; }
.lc-badge { font-family: "brandon-grotesque", sans-serif; font-size: 0.65rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; padding: 0.2rem 0.55rem; display: inline-block; }
.lc-badge-pdf { background: rgba(79, 186, 173, 0.15); color: var(--color-accent); }
.lc-badge-audio { background: rgba(238, 111, 92, 0.15); color: var(--color-accent-warm); }
.lc-badge-image { background: rgba(200, 180, 100, 0.15); color: #c8b464; }
.lc-duration { font-family: "brandon-grotesque", sans-serif; font-size: 0.8rem; color: var(--color-text-dim); }

.library-subtitle { font-size: 0.9rem; color: var(--color-text-muted); font-style: italic; margin-bottom: 0.25rem; }
.library-author { font-family: "brandon-grotesque", sans-serif; font-size: 0.85rem; color: var(--color-text-dim); margin-bottom: 0; }
.library-card.hidden, .library-category.hidden, .hidden { display: none; }

@media (max-width: 600px) {
  .library-category-grid { grid-template-columns: 1fr; }
}
@media (min-width: 601px) and (max-width: 768px) {
  .library-category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 769px) {
  .library-category-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Library — wide main for PDF reader */
.main-wide { max-width: var(--wide-width); margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

/* Library — PDF reader */
.pdf-reader { background: var(--color-bg-dark); padding: 1rem 0; user-select: none; -webkit-user-select: none; min-height: 60vh; }
.pdf-loading { text-align: center; padding: 4rem 1rem; color: var(--color-text-muted); font-family: "brandon-grotesque", sans-serif; }
.pdf-page { margin: 0 auto 1rem; max-width: 100%; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4); overflow: hidden; }
.pdf-page canvas { display: block; position: absolute; top: 0; left: 0; }
.pdf-page .annotationLayer { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; }
.pdf-page .annotationLayer section { position: absolute; cursor: pointer; }
.pdf-page .annotationLayer a { display: block; width: 100%; height: 100%; }
.pdf-page .annotationLayer a:hover { background: rgba(79, 186, 173, 0.15); }

/* Library — image viewer */
.library-image-viewer { text-align: center; }
.library-image-viewer img { max-width: 100%; height: auto; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4); }

/* Library — audio player */
.audio-now-playing { text-align: center; margin-bottom: 1.5rem; }
.now-playing-title { font-family: "brandon-grotesque", sans-serif; font-size: 1.15rem; font-weight: 400; color: var(--color-accent); margin-bottom: 0; }

.audio-player { background: var(--color-bg-card); border: 1px solid var(--color-border); padding: 1.5rem 2rem; }

.audio-progress-wrap { margin-bottom: 1rem; }
.audio-progress { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; background: var(--color-border); outline: none; cursor: pointer; border: none; }
.audio-progress::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--color-accent); cursor: pointer; border: none; margin-top: -5px; }
.audio-progress::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--color-accent); cursor: pointer; border: none; }
.audio-progress::-webkit-slider-runnable-track { height: 6px; background: var(--color-border); }
.audio-progress::-moz-range-track { height: 6px; background: var(--color-border); }

.audio-controls { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-bottom: 0.75rem; }
.audio-play { width: 56px; height: 56px; border-radius: 50%; background: var(--color-accent); color: var(--color-bg-dark); border: none; cursor: pointer; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s, transform 0.2s; line-height: 1; padding-left: 3px; }
.audio-play:hover { background: #5cc5b8; transform: scale(1.05); }
.audio-skip { font-family: "brandon-grotesque", sans-serif; font-size: 0.8rem; font-weight: 400; color: var(--color-text-muted); background: none; border: 1px solid var(--color-border); padding: 0.4rem 0.8rem; cursor: pointer; transition: color 0.2s, border-color 0.2s; }
.audio-skip:hover { color: var(--color-text); border-color: var(--color-border-light); }

.audio-time { text-align: center; font-family: "brandon-grotesque", sans-serif; font-size: 0.85rem; color: var(--color-text-muted); }

/* Library — track list */
.track-list { margin-top: 1.5rem; }
.track-item { display: flex; align-items: center; gap: 1rem; width: 100%; padding: 1rem 1.5rem; background: none; border: none; border-bottom: 1px solid var(--color-border); cursor: pointer; text-align: left; transition: background-color 0.2s; color: var(--color-text); font-family: "Brandon Text", -apple-system, sans-serif; font-size: 1rem; }
.track-item:hover { background-color: var(--color-bg-card); }
.track-item.active { border-left: 3px solid var(--color-accent); background-color: var(--color-bg-card); }
.track-number { font-family: "brandon-grotesque", sans-serif; font-size: 0.85rem; color: var(--color-text-dim); min-width: 1.5rem; }
.track-title { flex: 1; }
.track-item.active .track-title { color: var(--color-accent); }
.track-duration { font-family: "brandon-grotesque", sans-serif; font-size: 0.85rem; color: var(--color-text-dim); }

/* Library — chapter list (within tracks) */
.chapter-list { display: none; }
.chapter-list.visible { display: block; }
.chapter-item { display: flex; align-items: center; gap: 1rem; width: 100%; padding: 0.6rem 1.5rem 0.6rem 3.5rem; background: none; border: none; border-bottom: 1px solid var(--color-border); cursor: pointer; text-align: left; transition: background-color 0.2s; color: var(--color-text-muted); font-family: "Brandon Text", -apple-system, sans-serif; font-size: 0.9rem; }
.chapter-item:hover { background-color: var(--color-bg-card); color: var(--color-text); }
.chapter-time { font-family: "brandon-grotesque", sans-serif; font-size: 0.8rem; color: var(--color-text-dim); min-width: 3.5rem; }
.chapter-title { flex: 1; }

@media (max-width: 480px) {
  .audio-player { padding: 1rem 1.25rem; }
  .audio-controls { gap: 1rem; }
  .audio-play { width: 48px; height: 48px; font-size: 1.1rem; }
  .track-item { padding: 0.8rem 1rem; gap: 0.75rem; }
  .chapter-item { padding: 0.5rem 1rem 0.5rem 2.5rem; }
  .library-filters { gap: 0.4rem; }
  .filter-pill { padding: 0.35rem 0.75rem; font-size: 0.75rem; }
  .recording-filters { gap: 0.4rem; }
  .recording-filters .filter-pill { padding: 0.35rem 0.75rem; font-size: 0.75rem; }
}

/* Nav auth links */
nav .nav-auth { background: rgba(255,255,255,0.08); padding: 0.25rem 0.65rem; border-radius: 3px; border-bottom: none; align-self: center; }
nav .nav-auth:hover { background: rgba(255,255,255,0.14); color: var(--color-text); }
@media (max-width: 1000px) {
  nav .nav-auth { margin-left: 0; margin-top: 0.5rem; display: inline-block; align-self: flex-start; }
}

@media (max-width: 480px) {
  .footer-columns { gap: 1.5rem; }
  .footer-col { min-width: 45%; }
}

/* Responsive tables — stack on mobile */
@media (max-width: 700px) {
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  tr { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-border); }
  td { padding: 0.3rem 0; position: relative; padding-left: 0; }
  td:before { content: attr(data-label); font-family: "brandon-grotesque", sans-serif; font-weight: 400; color: var(--color-accent); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 0.15rem; }
  td:empty:before { content: none; }
  td[data-label=""]:before { content: none; }
}

/* Two-card grids stack on mobile */
@media (max-width: 768px) {
  .card-grid[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* Four-card pathway grid */
.pathway-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.pathway-grid .card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pathway-grid .card p { max-width: 280px; }
.pathway-grid .card .btn { width: 240px; text-align: center; box-sizing: border-box; margin-top: auto; }
@media (max-width: 500px) { .pathway-grid { grid-template-columns: 1fr; } }

/* Recording category grid — overview */
.recording-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.recording-category-card { border: none; padding: 2rem 1.5rem; text-align: center; cursor: pointer; transition: all 0.3s; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; background-image: url('/images/enneagram-pattern-full.svg'); background-repeat: no-repeat; background-size: 2400px auto; color: #fff; aspect-ratio: 1; }
.recording-category-card > * { position: relative; z-index: 1; }
.recording-category-card:nth-child(1) { background-position: 18% 28%; }
.recording-category-card:nth-child(2) { background-position: 72% 62%; }
.recording-category-card:nth-child(3) { background-position: 45% 48%; }
.recording-category-card:nth-child(4) { background-position: 82% 22%; }
.recording-category-card:nth-child(5) { background-position: 30% 75%; }
.recording-category-card:nth-child(6) { background-position: 60% 35%; }
.recording-category-card:nth-child(7) { background-position: 10% 58%; }
.recording-category-card:nth-child(8) { background-position: 52% 85%; }
.recording-category-card:nth-child(9) { background-position: 83% 50%; }
.recording-category-card:hover { filter: brightness(1.15); transform: translateY(-2px); }
.recording-category-card h3 { margin-top: 0; margin-bottom: 0.4rem; font-family: "Brandon Text", -apple-system, sans-serif; font-size: 1.4rem; font-weight: 700; color: #fff; }
.rcc-icon { display: none; }
.rcc-count { font-family: "Brandon Text", -apple-system, sans-serif; font-size: 0.9rem; font-weight: 500; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; }
.rcc-desc { font-family: "Brandon Text", -apple-system, sans-serif; font-size: 0.95rem; color: #fff; line-height: 1.5; margin-bottom: 0; }

/* Recording detail view */
.recording-detail-header { margin-bottom: 1.5rem; }
.recording-detail-header h2 { margin-bottom: 0.5rem; }
.recording-back-btn { font-family: "brandon-grotesque", sans-serif; font-size: 0.85rem; color: var(--color-accent); background: none; border: none; cursor: pointer; padding: 0; margin-bottom: 1.5rem; transition: color 0.2s; }
.recording-back-btn:hover { color: var(--color-text); }

/* Recording list cards */
.recording-list .recording-card { display: block; padding: 1.25rem 1.5rem; background: var(--color-bg-card); border: 1px solid var(--color-border); border-left: 3px solid var(--color-border); margin-bottom: 0.75rem; text-decoration: none; color: inherit; transition: all 0.2s; }
.recording-list a.recording-link:hover { border-left-color: var(--color-accent); background: var(--color-bg-elevated); }
.recording-list .recording-card h3 { margin: 0.25rem 0; font-size: 1rem; }
.recording-list .recording-card p { margin: 0; }
.recording-list .recording-card .meta { margin-bottom: 0.25rem; }

/* Status badges on recording cards */
.rc-badge-summary, .rc-badge-pending, .rc-badge-none, .rc-badge-available { font-family: "brandon-grotesque", sans-serif; font-size: 0.65rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; padding: 0.2rem 0.55rem; display: inline-block; margin-top: 0.5rem; }
.rc-badge-summary { background: rgba(79, 186, 173, 0.2); color: #3a9e92; }
.rc-badge-available { background: rgba(100, 140, 180, 0.2); color: #4a7a9e; }
.rc-badge-pending { background: rgba(200, 160, 60, 0.2); color: #b8960a; }
.rc-badge-none { background: rgba(143, 150, 160, 0.15); color: var(--color-text-dim); }
.rc-badge-restricted { background: rgba(180, 120, 60, 0.2); color: #a06830; font-family: "brandon-grotesque", sans-serif; font-size: 0.65rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; padding: 0.2rem 0.55rem; display: inline-block; margin-top: 0.5rem; text-decoration: none; border: none; cursor: pointer; }
.rc-badge-restricted:hover { background: rgba(180, 120, 60, 0.35); color: #8a5520; }
.rc-badge-pending-request { background: rgba(79, 186, 173, 0.15); color: #3a9e92; font-family: "brandon-grotesque", sans-serif; font-size: 0.65rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; padding: 0.2rem 0.55rem; display: inline-block; margin-top: 0.5rem; }
.request-access-form { display: inline; }

/* Grant expiry notice */
.grant-notice { text-align: center; padding: 1rem 1.5rem; background: rgba(79, 186, 173, 0.1); border: 1px solid rgba(79, 186, 173, 0.25); margin-bottom: 1rem; }
.grant-notice p { margin: 0; font-family: "brandon-grotesque", sans-serif; font-size: 0.85rem; color: var(--color-accent); }

/* Admin request cards */
.admin-request-card { background: var(--color-bg-card); border: 1px solid var(--color-border); padding: 1.5rem; margin-bottom: 1rem; }
.admin-request-card h3 { margin: 0.25rem 0 0.5rem; }
.admin-request-card p { margin-bottom: 0.5rem; }
.btn-small { font-size: 0.8rem; padding: 0.4rem 1rem; }

/* Restricted recording cards */

.recording-restricted { cursor: default; }
.recording-restricted .meta, .recording-restricted h3, .recording-restricted p:not(:last-child) { opacity: 0.4; }
.recording-restricted .rc-badge-restricted, .recording-restricted .rc-badge-added { cursor: pointer; }

/* Added to basket state */
.rc-badge-added { background: rgba(79, 186, 173, 0.2); color: #3a9e92; font-family: "brandon-grotesque", sans-serif; font-size: 0.65rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; padding: 0.2rem 0.55rem; display: inline-block; margin-top: 0.5rem; text-decoration: none; border: none; cursor: pointer; }
.rc-badge-added:hover { background: rgba(79, 186, 173, 0.35); color: #2d8a7e; }

/* Request basket sticky bar */
.request-basket { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; background: var(--color-bg-dark); border-top: 1px solid var(--color-border-light); padding: 0.75rem 1.5rem; box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4); transition: transform 0.25s ease; }
.request-basket.hidden { transform: translateY(100%); pointer-events: none; }
.request-basket-inner { max-width: var(--content-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.request-basket-count { font-family: "brandon-grotesque", sans-serif; font-size: 0.95rem; font-weight: 500; color: var(--color-text); }
.request-basket-slots { font-family: "brandon-grotesque", sans-serif; font-size: 0.8rem; color: var(--color-text-muted); margin-right: auto; }
.request-basket-actions { display: flex; gap: 0.75rem; align-items: center; }
.request-basket-clear { font-family: "brandon-grotesque", sans-serif; font-size: 0.8rem; color: var(--color-text-muted); background: none; border: none; cursor: pointer; padding: 0.4rem 0.75rem; transition: color 0.2s; }
.request-basket-clear:hover { color: var(--color-text); }
.request-basket-submit { font-family: "brandon-grotesque", sans-serif; font-size: 0.85rem; font-weight: 500; color: #fff; background: var(--color-accent); border: none; border-radius: 3px; padding: 0.5rem 1.25rem; cursor: pointer; transition: background 0.2s; }
.request-basket-submit:hover { background: #3ea89b; }

/* Extra bottom padding when basket is visible */
.request-basket:not(.hidden) ~ .recording-list,
body:has(.request-basket:not(.hidden)) main { padding-bottom: 5rem; }

@media (max-width: 600px) {
  .request-basket { padding: 0.6rem 1rem; }
  .request-basket-inner { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 0.15rem 0.75rem; align-items: center; }
  .request-basket-count { grid-column: 1; grid-row: 1; font-size: 0.85rem; }
  .request-basket-slots { grid-column: 1; grid-row: 2; font-size: 0.75rem; margin-right: 0; }
  .request-basket-actions { grid-column: 2; grid-row: 1 / 3; align-self: center; }
}

/* Session summary */
.recording-summary { margin-top: 2rem; }
.recording-summary h2 { margin-top: 2rem; }

/* Recording category grid — responsive */
@media (max-width: 600px) {
  .recording-category-grid { grid-template-columns: 1fr; }
}
@media (min-width: 601px) and (max-width: 768px) {
  .recording-category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 769px) {
  .recording-category-grid { grid-template-columns: repeat(3, 1fr); }
}


/* Type band quote carousel */
.type-band-carousel { position: relative; max-width: 40rem; margin: 0 auto; min-height: 26rem; }
.type-band-carousel .accent-band-text { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); opacity: 0; transition: opacity 1s ease-in-out; margin: 0; }
.type-band-carousel .accent-band-text.active { opacity: 1; }
/* Decorative quote marks — block elements inside each quote, crossfade with it */
img.quote-mark { display: block; width: 8vw; max-width: 4rem; height: auto; margin: 1.5vw auto; }

/* Pattern breathing animation — transform only, fully GPU composited */
@keyframes pattern-breathe {
  0%    { transform: translate(-50%,-50%) rotate(0deg)   scale(0.85) translate(0, 0); }
  12.5% { transform: translate(-50%,-50%) rotate(45deg)  scale(1.2)  translate(8%, -5%); }
  25%   { transform: translate(-50%,-50%) rotate(90deg)  scale(0.9)  translate(12%, 6%); }
  37.5% { transform: translate(-50%,-50%) rotate(135deg) scale(1.35) translate(4%, 10%); }
  50%   { transform: translate(-50%,-50%) rotate(180deg) scale(0.85) translate(-6%, 8%); }
  62.5% { transform: translate(-50%,-50%) rotate(225deg) scale(1.25) translate(-10%, 2%); }
  75%   { transform: translate(-50%,-50%) rotate(270deg) scale(0.9)  translate(-7%, -8%); }
  87.5% { transform: translate(-50%,-50%) rotate(315deg) scale(1.3)  translate(3%, -10%); }
  100%  { transform: translate(-50%,-50%) rotate(360deg) scale(0.85) translate(0, 0); }
}
@keyframes pattern-breathe-alt {
  0%    { transform: translate(-50%,-50%) rotate(0deg)   scale(1.1)  translate(5%, 3%); }
  12.5% { transform: translate(-50%,-50%) rotate(45deg)  scale(1.45) translate(-4%, 8%); }
  25%   { transform: translate(-50%,-50%) rotate(90deg)  scale(1.15) translate(-9%, -3%); }
  37.5% { transform: translate(-50%,-50%) rotate(135deg) scale(1.5)  translate(7%, -6%); }
  50%   { transform: translate(-50%,-50%) rotate(180deg) scale(1.1)  translate(3%, 9%); }
  62.5% { transform: translate(-50%,-50%) rotate(225deg) scale(1.4)  translate(-8%, 5%); }
  75%   { transform: translate(-50%,-50%) rotate(270deg) scale(1.2)  translate(6%, -7%); }
  87.5% { transform: translate(-50%,-50%) rotate(315deg) scale(1.45) translate(-3%, -4%); }
  100%  { transform: translate(-50%,-50%) rotate(360deg) scale(1.1)  translate(5%, 3%); }
}
@keyframes pattern-breathe-counter {
  0%    { transform: translate(-50%,-50%) rotate(0deg)    scale(1.0)  translate(3%, -4%); }
  12.5% { transform: translate(-50%,-50%) rotate(-45deg)  scale(1.3)  translate(-6%, 7%); }
  25%   { transform: translate(-50%,-50%) rotate(-90deg)  scale(0.95) translate(10%, 3%); }
  37.5% { transform: translate(-50%,-50%) rotate(-135deg) scale(1.25) translate(-3%, -8%); }
  50%   { transform: translate(-50%,-50%) rotate(-180deg) scale(1.0)  translate(7%, 5%); }
  62.5% { transform: translate(-50%,-50%) rotate(-225deg) scale(1.35) translate(-5%, -3%); }
  75%   { transform: translate(-50%,-50%) rotate(-270deg) scale(0.9)  translate(4%, 9%); }
  87.5% { transform: translate(-50%,-50%) rotate(-315deg) scale(1.3)  translate(-8%, -6%); }
  100%  { transform: translate(-50%,-50%) rotate(-360deg) scale(1.0)  translate(3%, -4%); }
}
.type-band::before {
  content: '';
  position: absolute;
  width: 200vw;
  height: 200vw;
  top: 50%;
  left: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: pattern-breathe 600s linear infinite;
  will-change: transform;
  z-index: 0;
  pointer-events: none;
}
.type-band > * { position: relative; z-index: 1; }
.type-band.type-1::before { background-image: url('/images/enneagram-pattern-type-1.svg'); animation-delay: -0s; }
.type-band.type-2::before { background-image: url('/images/enneagram-pattern-type-2.svg'); animation-delay: -45s; }
.type-band.type-3::before { background-image: url('/images/enneagram-pattern-type-3.svg'); animation-delay: -140s; }
.type-band.type-4::before { background-image: url('/images/enneagram-pattern-type-4.svg'); animation-delay: -210s; }
.type-band.type-5::before { background-image: url('/images/enneagram-pattern-type-5.svg'); animation-delay: -290s; }
.type-band.type-6::before { background-image: url('/images/enneagram-pattern-type-6.svg'); animation-delay: -350s; }
.type-band.type-7::before { background-image: url('/images/enneagram-pattern-type-7.svg'); animation-delay: -420s; }
.type-band.type-8::before { background-image: url('/images/enneagram-pattern-type-8.svg'); animation-delay: -485s; }
.type-band.type-9::before { background-image: url('/images/enneagram-pattern-type-9.svg'); animation-delay: -555s; }
@media (max-width: 768px) {
  .type-band::before { width: 180vw; height: 180vw; }
  .type-band-carousel { min-height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .type-band::before { animation: none; will-change: auto; transform: translate(-50%, -50%) scale(1.0); }
}
