/* ── TOKENS ── */
:root {
  /* Neutrals */
  --ink:        #111111;
  --ink-soft:   #555555;
  --ink-mid:    #333333;
  --ink-slate:  #7A8F99;
  --ink-faint:  #999999;
  --ink-near:   #1a1a1a;
  --ground:     #FAFAFA;
  --white:      #FFFFFF;
  --line:       #E8E8E8;

  /* Brand colours */
  --blue:       #125993;
  --blue-dark:  #2C4A6E;
  --blue-tint:  #EFF6FF;
  --gold:       #FFBF00;
  --rust:       #7F2519;

  /* Layout */
  --max:        680px;
  --pad: 24px;

  /* Spacing scale — new, not yet used file-wide. Existing one-off
     margin/padding values elsewhere are untouched; migrate them to
     these as each is next touched, same approach as the phi-link
     system. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Legacy alias */
  --accent:     var(--blue-dark);

  /* ── NETWORK CARD TINTS ── */
  --nc-sage-bg:     #D6E8D4;
  --nc-sage-ink:    #2A4828;
  --nc-sky-bg:      #D0E4F4;
  --nc-sky-ink:     #1C3A54;
  --nc-rose-bg:     #F4D8D8;
  --nc-rose-ink:    #4A2020;
  --nc-peach-bg:    #F4E4CC;
  --nc-peach-ink:   #4A3010;
  --nc-lavender-bg: #E0D6F4;
  --nc-lavender-ink:#2C1F5A;
  --nc-mint-bg:     #C8ECEC;
  --nc-mint-ink:    #164040;

  /* ── MODULE NEONS ── */
  --neon-intelligence: #00D4FF;
  --neon-pulse:        #39FF14;
  --neon-assembly:     #FF6EFF;
  --neon-reveal:      #FF9500;
  --neon-library:      #FFE600;
  --neon-personal:     #FF4D9E;
  --neon-balance:      #B478FF;
  --neon-engage:       #FF3B3B;

  /* ── MODULE NEONS (light backgrounds) ── */
  --neon-intelligence-light: #0077AA;
  --neon-pulse-light:        #1A9900;
  --neon-assembly-light:    #AA00AA;
  --neon-reveal-light:      #CC6600;
  --neon-library-light:      #AA9900;
  --neon-balance-light:      #6B3FA0;
  --neon-engage-light:       #CC2020;
}

@media (min-width: 480px) { :root { --pad: 32px; } }
@media (min-width: 768px) { :root { --pad: 48px; } }

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--ground);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

/* ── LAYOUT ── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── NAV ── */
nav {
  padding: 28px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  position: sticky;
  top: 0;
  background: var(--ground);
  z-index: 900;
}
nav a { text-decoration: none; }
.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--gold);
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  transition: opacity 200ms;
}
.nav-cta:hover { background: var(--blue); color: var(--white); }

/* ── JOHNISM ── */
.johnism-wrap {
  padding: 72px var(--pad) 56px;
  max-width: var(--max);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.johnism-wrap.visible { opacity: 1; transform: translateY(0); }
.johnism-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 20px;
}
.johnism-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 300;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.johnism-text::before { content: '\201C'; color: var(--accent); }
.johnism-text::after  { content: '\201D'; color: var(--accent); }

/* ── INTRO ── */
.intro {
  padding: 56px var(--pad) 40px;
  max-width: var(--max);
  margin: 0 auto;
}
.intro p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.intro p:last-child { margin-bottom: 0; }
.intro strong { color: var(--ink); font-weight: 500; }

/* ── SECTION HEADING ── */
.section {
  padding: 56px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}
.section + .section { padding-top: 0; }
.section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label button {
  background: var(--ink);
  border: none;
  font-size: 16px;
  color: var(--gold);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 2px;
  line-height: 1;
  transition: background 150ms, color 150ms;
  letter-spacing: 0;
  text-transform: none;
  flex-shrink: 0;
}
.section-label button:hover { background: var(--rust); color: var(--white); }

/* ── TESTIMONIAL ── */
.testimonial {
  padding: 56px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms ease 200ms, transform 500ms ease 200ms;
}
.testimonial.visible { opacity: 1; transform: translateY(0); }
.testimonial-quote {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(16px, 2.5vw, 19px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 20px;
}
.testimonial-attr { font-size: 13px; color: var(--ink-faint); letter-spacing: 0.02em; }
.testimonial-attr strong { color: var(--ink-soft); font-weight: 500; }

/* ── NETWORK GRID ── */
.network-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.net-card {
  border-radius: 8px;
  padding: 20px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  transition: filter 150ms, transform 150ms;
}
.net-card:hover { filter: brightness(0.96); transform: translateY(-1px); }
.net-card-label { font-size: 14px; font-weight: 500; line-height: 1.2; }
.net-card-desc { font-size: 12px; line-height: 1.45; opacity: 0.72; margin-top: 2px; }
.net-card-arrow { font-size: 11px; margin-top: 10px; opacity: 0.5; letter-spacing: 0.04em; }
.net-card-icon { font-size: 18px; margin-bottom: 6px; opacity: 0.7; }
.nc-sage     { background: var(--nc-sage-bg);     color: var(--nc-sage-ink); } /* network card tints — kept as-is, decorative only */
.nc-sky      { background: var(--nc-sky-bg);      color: var(--nc-sky-ink); }
.nc-rose     { background: var(--nc-rose-bg);     color: var(--nc-rose-ink); }
.nc-peach    { background: var(--nc-peach-bg);    color: var(--nc-peach-ink); }
.nc-lavender { background: var(--nc-lavender-bg); color: var(--nc-lavender-ink); }
.nc-mint     { background: var(--nc-mint-bg);     color: var(--nc-mint-ink); }

/* ── BOOK ── */
.book-section { display: flex; gap: 32px; align-items: flex-start; }
.book-cover-col { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.book-cover-img {
  width: 140px; height: auto; display: block; border-radius: 3px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12); transition: transform 200ms;
}
.book-cover-img:hover { transform: scale(1.03); }
.book-credit { font-size: 10px; color: var(--ink-faint); letter-spacing: 0.04em; text-align: center; }
.book-text-col { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.book-title { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.book-quote { font-size: 15px; line-height: 1.7; color: var(--ink-soft); font-style: italic; }
.book-attr { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.03em; }
.book-buy-btn {
  height: 35px; width: 117px; text-align: center; justify-content: center;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--ink); padding: 8px 16px; border-radius: 6px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-decoration: none;
  transition: background 200ms, color 200ms; align-self: flex-end; margin-top: 4px;
}
.book-buy-btn:hover { background: var(--blue); color: var(--white); }
.book-amazon-logo { height: 18px; width: auto; filter: brightness(0); opacity: 0.75; }
.book-block {
  padding: 36px; border: 1px solid var(--line); border-radius: 4px; background: var(--white);
}
.book-block h3 { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.book-block p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 24px; }
.book-btn {
  height: 35px; width: 117px; text-align: center; display: inline-block;
  background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 500;
  padding: 8px 16px; border-radius: 6px; letter-spacing: 0.04em;
  transition: background 200ms, color 200ms; float: right; text-decoration: none;
}
.book-btn:hover { background: var(--blue); color: var(--white); }

/* ── CONTACT FORM ── */
.form-block { margin-top: 32px; }
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.form-row input,
.form-row textarea {
  background: var(--white); border: 1px solid var(--line); border-radius: 2px;
  padding: 12px 14px; font-size: 15px; color: var(--ink); transition: border-color 200ms; width: 100%;
}
.form-row input:focus,
.form-row textarea:focus { outline: none; border-color: var(--accent); }
.form-row textarea { resize: vertical; min-height: 100px; }
.form-submit {
  height: 35px; width: 117px; text-align: center; background: var(--blue-dark); color: var(--white); border: none;
  padding: 8px 16px; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; line-height: 1.5;
  border-radius: 6px; transition: background 200ms, color 200ms; display: block; margin-left: auto; box-sizing: border-box;
}
.form-submit:hover { background: var(--blue); }
.form-note { font-size: 12px; color: var(--ink-faint); margin-top: 10px; }
.form-success { display: none; padding: 16px; background: var(--blue-tint); border-radius: 2px; font-size: 14px; color: var(--accent); margin-top: 12px; }

/* ── FEEDS ── */
.feed-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 16px; }
.feed-loading { font-size: 13px; color: var(--ink-faint); padding: 8px 0; }
.feed-item {
  display: flex; flex-direction: column; padding: 14px 0;
  border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: color 150ms;
}
.feed-item:first-child { border-top: none; }
.feed-item:hover .feed-item-title { color: var(--blue); }
.feed-item-title { font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.4; margin-bottom: 3px; transition: color 150ms; }
.feed-item-with-thumb { flex-direction: row; align-items: center; gap: 12px; }
.feed-item-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.feed-item-body { display: flex; flex-direction: column; gap: 3px; }
.feed-item-date { font-size: 11px; color: var(--ink-faint); letter-spacing: 0.06em; }
.feed-more {
  height: 35px; width: 117px; text-align: center; display: inline-block;
  background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 500;
  padding: 8px 16px; border-radius: 6px; letter-spacing: 0.04em; text-decoration: none;
  transition: background 200ms, color 200ms; float: right; margin-top: 8px;
}
.feed-more:hover { background: var(--blue); color: var(--white); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid rgba(127, 37, 25, 0.4); /* --rust at 40% opacity */
  padding: 28px var(--pad) 20px;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; }
.footer-copy { font-size: 11px; color: var(--ink-faint); text-align: center; letter-spacing: 0.03em; }
.footer-socials { display: flex; gap: 16px; align-items: center; justify-content: center; }
.footer-socials a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--gold); font-size: 22px; text-decoration: none; transition: background 200ms;
}
.footer-socials a:hover { background: var(--gold); color: var(--ink); }

/* ── DIVIDER ── */
.divider {
  border: none; max-width: var(--max); margin: 56px auto;
  height: 8px; background: transparent; position: relative; overflow: visible;
}
.divider::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: var(--rust); opacity: 0.4;
}
.divider::after {
  content: '\\'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); font-size: 13px; font-weight: 300;
  color: var(--rust); background: var(--ground); padding: 0 10px; line-height: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) { nav { max-width: 100%; background: var(--ground); } }
@media (max-width: 520px) {
  .network-grid { grid-template-columns: 1fr 1fr; }
  .net-card { padding: 14px 12px 12px; }
  .net-card-desc { font-size: 11px; }
  nav { padding: 20px var(--pad); }
  .johnism-wrap { padding: 48px var(--pad) 40px; }
  footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .book-section { flex-direction: column; }
  .book-cover-col { flex-direction: row; align-items: flex-start; gap: 16px; }
  .book-cover-img { width: 100px; }
}
@media (max-width: 380px) {
  .network-grid { grid-template-columns: 1fr; }
  .net-card { padding: 14px 14px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .johnism-wrap, .testimonial { transition: none; opacity: 1; transform: none; }
}

/* ── PAGE NOTICE — status/WIP callout, e.g. "last updated + still
   under review" block at the top of policy-type pages ── */
.page-notice {
  background: var(--blue-tint);
  border-left: 4px solid var(--blue);
  border-radius: 4px;
  padding: var(--space-5);
  margin: var(--space-2) 0 var(--space-6);
}
.page-notice-date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-2);
}
.page-notice p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

/* ── SCROLL OFFSET FOR STICKY NAV ── */
.section, .testimonial, .johnism-wrap, .intro, footer {
  scroll-margin-top: 120px;
}
.page-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 20px;
}
.page-eyebrow a { color: var(--ink-faint); }
.page-eyebrow a:hover { color: var(--ink); }
.page-eyebrow span { margin: 0 6px; }
.page-body p { font-size: 18px; line-height: 1.75; margin-bottom: var(--space-5); color: var(--ink); }
.page-body ul, .page-body ol {
  padding-left: var(--space-6);
  margin: 0 0 var(--space-5);
}
.page-body li {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: var(--space-1);
}
.page-body li:last-child { margin-bottom: 0; }
.page-rule { border: none; border-top: 1px solid var(--line); margin: 56px 0; }

/* ── NAV LOGO ── */
.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 6px;
}

/* ── NAV RIGHT ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  width: 200px;
  justify-content: space-between;
}

/* ── HAMBURGER ── */
.hamburger-btn {
  height: 44px;
  width: 44px;
  background: var(--ink);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}
.hamburger-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--gold);
}

/* ── SITE MENU ── */
.site-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  z-index: 1000;
  padding-top: 8px;
}
.site-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-items: stretch;
  width: 200px;
}
.menu-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 8px 0;
}
.menu-heading {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink-near);
  padding: 8px 12px;
  border-radius: 4px;
  margin-top: 6px;
}
.menu-heading + .menu-heading,
li + li .menu-heading {
  margin-top: 6px;
}
.site-menu ul li:first-child .menu-heading {
  margin-top: 0;
}
.menu-item {
  display: inline-block;
  width: 200px;
  text-align: right;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 4px;
  color: var(--white);
}
.menu-item-support {
  width: 200px;
  background: var(--gold) !important;
  color: var(--ink) !important;
}
.menu-item-site {
  background: var(--gold) !important;
  color: var(--ink) !important;
  font-weight: 600;
}
.menu-item-site:hover {
  background: var(--gold-dark, #cc8800) !important;
  color: var(--ink) !important;
}
.menu-item-support:hover { background: var(--blue) !important; color: var(--white) !important; }
.menu-item-domain  { background: #2a2a2a; color: #ccc; }
.menu-item-action  { background: var(--rust); }
.menu-item-section { background: var(--ink-soft); }
.menu-item-highlight { background: var(--ink); color: var(--gold); }

/* ── NAV CTA ── */
.nav-cta-btn {
  height: 44px;
  display: flex;
  align-items: center;
}

/* ── NAV SUPPORT ICON ── */
.nav-support-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--gold);
  font-size: 22px;
  text-decoration: none;
  transition: background 200ms, color 200ms;
  flex-shrink: 0;
}
.nav-support-icon:hover { background: var(--gold); color: var(--ink); }


/* ── HEADINGS ── */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.4;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
h1 { font-size: 2.25rem; color: var(--blue);      letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; color: var(--rust);      letter-spacing: -0.02em; }
h3 { font-size: 1.5rem;  color: var(--blue);      font-weight: 600; }
h4 { font-size: 1.25rem; color: var(--ink-mid);   font-weight: 600; }
h5 { font-size: 1.1rem;  color: var(--ink-slate); font-weight: 600; }
h6 { font-size: 1.05rem; color: var(--ink-slate); font-weight: 600; }

/* ── PAGE MAIN ── */
.page-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px var(--pad) 48px;
}

/* ── BOOK QUOTE BLOCK ── */
.book-quote-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

/* ── NEWSLETTER SIGNUP ── */
.newsletter-wrap {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newsletter-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.newsletter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.newsletter-input {
  flex: 1;
  min-width: 200px;
  height: 35px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  color: var(--ink);
  background: var(--white);
  box-sizing: border-box;
}
.newsletter-btn {
  height: 35px;
  width: 117px;
  text-align: center;
  padding: 0 16px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 200ms, color 200ms;
  box-sizing: border-box;
}
.newsletter-btn:hover { background: var(--blue-dark); }

/* ── SPACER ── */
.spacer-16 { height: 16px; }

/* ── FOOTER LOGO ── */
.footer-logo-img {
  height: 48px;
  width: 48px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* ── MENU HEADING SPACING ── */
.menu-heading-spaced { margin-top: 4px; }

/* ── BOOK SECTION LABEL ── */
.section-label-tight { margin-bottom: 8px; }

/* ── FEED OVERFLOW ── */
.feed-overflow { overflow: hidden; margin-bottom: 8px; }


/* ==============================
   BLOCKQUOTE
   Default: light blue background, dark text (no attribution)
   With attribution (cite): dark blue background, white text
   ============================== */
blockquote {
  background-color: rgba(18, 89, 147, 0.25); /* --blue at 25% */
  color: var(--ink);
  padding: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  border-radius: 15px;
  border: none;
  line-height: 1.8;
}
blockquote p, blockquote li, blockquote span, blockquote a {
  color: inherit;
}
blockquote em {
  color: inherit;
  font-weight: inherit;
  font-style: italic;
}
/* Blockquote WITHOUT attribution — light style */
blockquote:not(:has(+ p cite)):not(:has(+ p.attribution)):not(:has(+ cite)):not(:has(+ .attribution)) {
  background-color: rgba(18, 89, 147, 0.25); /* --blue at 25% */
  color: var(--ink);
  border-radius: 15px;
  margin: 2rem 0;
  padding: 1rem;
  text-align: center;
}
blockquote:not(:has(+ p cite)):not(:has(+ p.attribution)):not(:has(+ cite)):not(:has(+ .attribution)) p {
  margin: 0;
}
/* Blockquote WITH attribution — dark style, flat bottom corners */
blockquote:has(+ p cite), blockquote:has(+ p.attribution) {
  background-color: var(--blue);
  color: var(--white);
  border-radius: 15px 15px 0 0;
}
/* ==============================
   ATTRIBUTION / CITE
   Sits beneath a blockquote with attribution
   ============================== */
cite, .attribution {
  background-color: var(--ink);
  color: var(--white);
  display: block;
  text-align: right;
  padding: 1rem 1.5rem;
  border-radius: 0 0 15px 15px;
  font-weight: 700;
  font-size: 0.9rem;
  margin: -1rem 0 2rem 0;
  line-height: 1.6;
  font-style: normal;
}
cite p, .attribution p, cite span, .attribution span {
  color: inherit;
  margin: 0;
}


.eyebrow-home { color: var(--ink) !important; text-decoration: none; }
.title-badge svg { overflow: visible; }

/* ── MARK ── */
mark {
  background: rgba(18, 89, 147, 0.2);
  color: var(--ink);
  padding: 0 3px;
  border-radius: 3px;
}

.para-spaced { margin-top: 2rem; }

.support-card-book { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.support-section-label-spaced { margin-top: 12px; }

/* ── SUPPORT PAGE ── */
.support-modal { background: var(--white); border-radius: 14px; border: 1px solid var(--line); padding: 28px 28px 20px; position: relative; box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.support-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.support-logo { height: 24px; display: block; }
.support-close { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 19px; color: var(--ink-faint); cursor: pointer; padding: 3px 7px; border-radius: 6px; transition: color 160ms, background 160ms; }
.support-close:hover { color: var(--ink); background: rgba(0,0,0,0.06); }
.support-johnism { font-size: 10px; font-style: italic; color: var(--ink-faint); flex: 1; text-align: right; padding-left: 12px; line-height: 1.4; }
.support-johnism button { background: none; border: none; cursor: pointer; color: #bbb; font-size: 11px; margin-left: 5px; padding: 0; vertical-align: middle; }
.support-johnism button:hover { color: var(--ink-soft); }
.support-eyebrow { font-size: 9px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 3px; }
.support-headline { font-size: 24px; font-weight: 700; color: var(--ink); margin: 0 0 4px; line-height: 1.1; }
.support-sub { font-size: 12px; color: var(--ink-slate); margin: 0 0 12px; line-height: 1.4; }
.support-section-label { font-size: 9px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 7px; border-top: 1px solid var(--line); padding-top: 12px; }
.support-section-label.first { border-top: none; padding-top: 0; }
.support-grid-pay  { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.support-grid-free { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.support-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 10px 8px; border-radius: 8px; text-decoration: none; border: none; transition: transform 130ms, box-shadow 130ms, filter 130ms; }
.support-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.11); filter: brightness(1.04); }
.support-card-icon  { font-size: 17px; color: var(--ink-mid); }
.support-card-label { font-size: 10px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.support-card-quote { font-size: 10px; color: var(--ink-soft); font-style: italic; line-height: 1.3; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 150px; display: block; }
.support-note { font-size: 10px; color: var(--ink-faint); text-align: center; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; line-height: 1.5; }
.sc-sky      { background: var(--nc-sky-bg); }
.sc-peach    { background: var(--nc-peach-bg); }
.sc-sage     { background: var(--nc-sage-bg); }
.sc-lavender { background: var(--nc-lavender-bg); }
.sc-mint     { background: var(--nc-mint-bg); }
.sc-rose     { background: var(--nc-rose-bg); }
.sc-gold     { background: #fff0c0; }
.sc-slate    { background: #e2e6ec; }
.sc-bluesky  { background: #ddeeff; }
.sc-mastodon { background: var(--nc-lavender-bg); }
.sc-threads  { background: #e8e8e8; }
@media (max-width: 600px) {
  .support-grid-pay  { grid-template-columns: repeat(2, 1fr); }
  .support-grid-free { grid-template-columns: repeat(2, 1fr); }
}

.closing-statement {
  text-align: center;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  margin-top: 32px;
}

/* ── MODULE DIVIDER COLOURS ──
   .module-community renamed to .module-assembly — no page has used
   "community" as a class since the Assembly rename; this was dead
   code. Added the 4 domains (Reveal, Personal, Balance, Engage)
   that never had a divider colour defined at all. */
.module-pulse .divider::before        { background: #39FF14 !important; opacity: 0.6; }
.module-pulse .divider::after         { content: '⑊' !important; color: #39FF14 !important; background: var(--ground); padding: 0 10px; }
.module-intelligence .divider::before { background: #00D4FF !important; opacity: 0.6; }
.module-intelligence .divider::after  { content: '⑊' !important; color: #00D4FF !important; background: var(--ground); padding: 0 10px; }
.module-assembly .divider::before     { background: #FF6EFF !important; opacity: 0.6; }
.module-assembly .divider::after      { content: '⑊' !important; color: #FF6EFF !important; background: var(--ground); padding: 0 10px; }
.module-library .divider::before      { background: #FFE600 !important; opacity: 0.6; }
.module-library .divider::after       { content: '⑊' !important; color: #FFE600 !important; background: var(--ground); padding: 0 10px; }
.module-reveal .divider::before       { background: var(--neon-reveal) !important; opacity: 0.6; }
.module-reveal .divider::after        { content: '⑊' !important; color: var(--neon-reveal) !important; background: var(--ground); padding: 0 10px; }
.module-personal .divider::before     { background: var(--neon-personal) !important; opacity: 0.6; }
.module-personal .divider::after      { content: '⑊' !important; color: var(--neon-personal) !important; background: var(--ground); padding: 0 10px; }
.module-balance .divider::before      { background: var(--neon-balance) !important; opacity: 0.6; }
.module-balance .divider::after       { content: '⑊' !important; color: var(--neon-balance) !important; background: var(--ground); padding: 0 10px; }
.module-engage .divider::before       { background: var(--neon-engage) !important; opacity: 0.6; }
.module-engage .divider::after        { content: '⑊' !important; color: var(--neon-engage) !important; background: var(--ground); padding: 0 10px; }

/* ── MODULE DRAWER CONFIG ──
   One line per module, one variable. Every drawer/trigger property
   (border, eyebrow, close icon, read-more button, trigger button,
   AND its hover state) reads --module-accent with a brand-gold
   (--gold) fallback — see the base .drawer-trigger/.drawer/etc.
   rules. A drawer with no module context (glossary, generic modals)
   now defaults to brand gold rather than an arbitrary domain colour
   — gold is the site's established "touched"/interactive default
   (nav CTA, EXPLORE buttons), so the drawer system now matches it.
   Previously this was a hand-written matrix of ~32 rules, one per
   property per module, and it was still incomplete: the trigger's
   :hover state was never included, so every module's button still
   flashed Pulse-green on click regardless of its own colour. Adding
   a ninth domain now means one line here, not four-plus elsewhere.

   Standard drawer anatomy: .drawer-header (icon + .drawer-eyebrow)
   at the top, free-form content in .drawer-inner, and a fixed
   footer — the square PHILPIN logo, via .drawer::after below,
   CSS-only so no per-drawer markup is needed across the ~16 existing
   instances. */
.module-pulse         { --module-accent: var(--neon-pulse); }
.module-intelligence  { --module-accent: var(--neon-intelligence); }
.module-assembly      { --module-accent: var(--neon-assembly); }
.module-reveal        { --module-accent: var(--neon-reveal); }
.module-library       { --module-accent: var(--neon-library); }
.module-personal      { --module-accent: var(--neon-personal); }
.module-balance       { --module-accent: var(--neon-balance); }
.module-engage        { --module-accent: var(--neon-engage); }

/* ── MODULE ICON SHARED ── */
@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
@keyframes spin-ring {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes beam-sweep {
  0%   { transform: rotate(-120deg); }
  50%  { transform: rotate(120deg); }
  100% { transform: rotate(-120deg); }
}
.lh-light  { animation: pulse-glow 4s ease-in-out infinite; }
.pulse-ring { transform-box: fill-box; transform-origin: 50% 50%; animation: spin-ring 4s linear infinite; }
.lh-beam   { transform-box: fill-box; transform-origin: 50% 100%; animation: beam-sweep 4s ease-in-out infinite; }

.page-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
}
.page-title h1 {
  color: var(--blue);
  margin: 0;
}
.title-badge {
  width: 48px;
  height: 48px;
  background: #111;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── SIDE DRAWER ── */
.drawer-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--module-accent, var(--gold));
  border: 1px solid var(--module-accent, var(--gold));
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 150ms, color 150ms;
}
.drawer-trigger:hover {
  background: var(--module-accent, var(--gold));
  color: var(--ink);
}
.pull-with-trigger {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 1rem 0 1.5rem;
}
.pull-with-trigger .page-pull {
  margin: 0;
  flex: 1;
  text-align: left !important;
  font-style: normal !important;
  font-weight: 600;
  padding: 1.25rem 1.5rem !important;
}

.drawer {
  position: fixed;
  top: 2rem; right: 0; bottom: 2rem;
  width: min(420px, 90vw);
  background: var(--ink);
  border-left: 3px solid var(--module-accent, var(--gold));
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
}
.drawer.is-open {
  transform: translateX(0);
  box-shadow: -8px 0 40px rgba(0,0,0,0.4);
}
/* Neon glow — left edge only, horizontal fade, no top/bottom bleed.
   A box-shadow can't be confined to one edge (it wraps the whole
   rectangle), so this uses a gradient strip sitting just outside the
   drawer's own left edge instead, matching its height exactly. Tied
   to .is-open so it's never visible while the drawer is off-screen —
   a shadow/glow moves with its box under transform, but a blur radius
   large enough to be seen also pokes back into the viewport even once
   translated fully away; opacity-gating avoids relying on exact
   translate-distance math. */
.drawer::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -20px;
  width: 20px;
  background: linear-gradient(to left, var(--module-accent, var(--gold)), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.drawer.is-open::before { opacity: 0.55; }
.drawer::after {
  content: '';
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: url('/resources/logos/philpin-logo-sq-master.jpeg') center/cover;
  opacity: 0.5;
}

.drawer-inner {
  padding: 64px 36px 96px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
}
.drawer-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--module-accent, var(--gold));
  opacity: 0.6;
  padding: 0;
  line-height: 1;
  transition: opacity 150ms;
  z-index: 1001;
}
.drawer-close:hover { opacity: 1; }

/* Title block: heading (icon + name) and the subtitle declaration
   directly beneath it, grouped tightly so they read as one unit —
   sits as a single flex child of .drawer-inner, so it still gets
   the standard 24px gap before whatever follows it. */
.drawer-title-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.drawer-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.drawer-icon {
  overflow: visible;
  flex-shrink: 0;
}
.drawer-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--module-accent, var(--gold));
  margin: 0;
  font-weight: 600;
}
.drawer p:not(.drawer-eyebrow) {
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
  color: rgba(255,255,255,0.85);
}
.drawer-wiki-link {
  display: flex;
  align-items: center;
  gap: 16px;
}
.drawer-wiki-link p {
  margin: 0;
  flex: 1;
}
.drawer-read-more {
  display: inline-block;
  flex-shrink: 0;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 4px;
  transition: background-color 150ms;
}
.drawer-read-more:hover { background: var(--module-accent, var(--gold)); }

/* Header identity row: icon + domain name — coloured to match the
   icon, not plain white, so name and icon read as one identity mark.
   !important because the generic ".drawer p:not(.drawer-eyebrow)"
   rule otherwise wins on specificity (this is a <p> too) and knocks
   it down to that rule's white, 1rem default. */
.drawer-title-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--module-accent, var(--gold)) !important;
  margin: 0;
}
/* The subtitle beneath the heading — bigger and white, so it reads as
   the actual statement rather than a secondary label. Still !important
   because the generic ".drawer p:not(.drawer-eyebrow)" rule otherwise
   wins on specificity. */
.drawer-declaration {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.47rem;
  font-weight: 600;
  line-height: 1.35;
  color: #fff !important;
  margin: 0;
}
/* Structural separators inside a drawer — header/body, body/footer.
   .drawer-inner is already a flex column with a 24px gap, so these
   need no margin of their own. */
.drawer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.14);
  margin: 0;
  flex-shrink: 0;
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 199;
}
.drawer-overlay.is-active { display: block; }

/* ── MODAL SYSTEM ──
   Companion to the drawer: centered overlay for short content
   (glossary definitions, quick prompts) rather than the drawer's
   side-panel-for-longer-reading pattern. Same --module-accent config
   drives colour on both, with the same brand-gold default. Unlike
   the drawer, this DOES dim the page — a modal is meant to interrupt,
   a drawer isn't. */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.is-open { display: flex; }
.modal-box {
  background: var(--ink);
  border: 1px solid var(--module-accent, var(--gold));
  border-radius: 12px;
  padding: 32px;
  max-width: 420px;
  width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 12px 48px rgba(0,0,0,0.35);
  box-sizing: border-box;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--module-accent, var(--gold));
  opacity: 0.6;
  padding: 0;
  line-height: 1;
  transition: opacity 150ms;
}
.modal-close:hover { opacity: 1; }
/* !important because the generic ".modal-box p" rule below otherwise
   wins on specificity (.modal-title-text is a <p> too) and knocks
   colour/size down to that rule's white, 1rem default — same bug
   pattern hit twice already on the drawer's heading/subtitle. */
.modal-title-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem !important;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--module-accent, var(--gold)) !important;
  margin: 0 0 16px;
}
.modal-box p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin: 0 0 12px;
}
/* Plain text link, not a button — used for the modal's "more" link
   to a domain's full page. */
.modal-link {
  color: var(--module-accent, var(--gold));
  text-decoration: underline;
  font-weight: 600;
  font-size: 0.95rem;
}
.modal-link:hover { opacity: 0.8; }
.modal-box p:last-child { margin-bottom: 0; }

/* ── GLOSSARY TERMS ──
   Hover-tooltip system retired. The live glossary interaction is the
   click-to-open modal (definitions are short, so a modal fits better
   than a drawer), styled by glossary.js itself using the shared
   .modal-overlay/.modal-box/.modal-close/.modal-title-text classes
   above — module-coloured for the eight domain terms, brand-gold for
   everything else. Nothing to style here beyond the term-link itself. */

/* ============================================================
   PHI-LINK SYSTEM — behaviour, not location, decides the class.
   Trialled and approved on /home/test-links/. Existing one-off
   link classes (.dict-wiki, .drawer-read-more, .drawer-trigger,
   .page-eyebrow a) still work and are NOT yet migrated — that's
   a separate pass. New work should use these instead.

     .phi-link--philpin    → opens a philpin.com property, new tab
     .phi-link--external   → opens any other site, new tab
     .phi-link--drawer     → opens a side drawer, no navigation
     .phi-link--modal      → opens a modal, no navigation
     .phi-link--page       → same-tab internal navigation
     .phi-link--breadcrumb → wayfinding trail, own rules below
     .phi-btn              → performs an action (button, not a link)
   ============================================================ */

.phi-link {
  font-weight: 700;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background-color 150ms ease;
  border-radius: 2px;
}

/* Rest state OVERRIDE — philpin & external: always blue + underlined,
   even before hover. Hover only adds the highlight colour below. */
.phi-link--philpin,
.phi-link--external {
  color: var(--blue);
  text-decoration: underline solid;
  text-underline-offset: 3px;
}

/* Rest state OVERRIDE — drawer & modal: always blue, never underlined,
   not even on hover. Hover only adds the highlight colour below. */
.phi-link--drawer,
.phi-link--modal {
  color: var(--blue);
  text-decoration: none;
}

/* Hover underline: solid = DOES navigate (page only — philpin/external
   are already underlined at rest; drawer/modal never get one) */
.phi-link--page:hover {
  text-decoration: underline solid;
  text-underline-offset: 3px;
}

/* Hover colour */
.phi-link--page:hover {
  background-color: rgba(255, 191, 0, 0.22); /* pale yellow */
}
.phi-link--philpin:hover {
  background-color: rgba(255, 191, 0, 0.55); /* stronger yellow */
}
.phi-link--drawer:hover,
.phi-link--modal:hover {
  background-color: rgba(34, 139, 34, 0.32); /* green */
}
.phi-link--external:hover {
  background-color: rgba(217, 45, 32, 0.38); /* clear red */
}

/* Breadcrumb — muted, small, not bold, not a CTA */
.phi-link--breadcrumb {
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-faint);
}
.phi-link--breadcrumb:hover {
  color: var(--ink);
  text-decoration: underline solid;
  text-underline-offset: 2px;
  background-color: rgba(255, 191, 0, 0.22);
}

/* Button — default brand blue, no border, bright yellow on hover.
   Starting point only — variations (outline, small, icon) will
   layer on top of this base as they emerge. */
.phi-btn {
  background: var(--blue);
  color: var(--white);
  border: none;
  outline: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.phi-btn:hover {
  background: var(--gold);
  color: var(--ink);
}
