/* ═══════════════════════════════════════
   TOKENS
═══════════════════════════════════════ */
:root {
  /* Surfaces */
  --bg:          #f4f0e8;   /* main warm parchment */
  --bg-alt:      #ede8df;   /* slightly deeper warm — section contrast */
  --bg-nav:      #0b1718;   /* nav only — thin strip, no reading */
  --bg-card:     #f9f6f0;   /* card face */
  --bg-ink:      #1a2a2a;   /* dark ink panels */
  

  /* Teal palette */
  --teal-deep:   #0a5a5a;
  --teal-mid:    #0d6e6e;
  --teal-soft:   #4a9a9a;
  --teal-pale:   #c2e8e8;
  --teal-faint:  #e0f4f4;

  /* Ink */
  --ink-100:     #0f1e1e;   /* headings */
  --ink-70:      #2a3e3e;   /* body text */
  --ink-50:      #4a6060;   /* secondary */
  --ink-30:      #7a9898;   /* tertiary, meta */
  --ink-10:      #c8dada;   /* hairlines */

  /* Typography */
  --font-serif:  'Spectral', Georgia, serif;
  --font-label:  'Jost', system-ui, sans-serif;
  --font-body:   'DM Sans', system-ui, sans-serif;

  /*fontsizes*/
  --font8: 8px;
  --font10: 10px;
  --font12: 12px;
  --font14: 14px;
  --font16: 16px;
  --font18: 18px;
  --font24: 24px;
  --font24: 26px;


  --nav-h:       80px;
  --max-w:       1060px;
  --text-w:      660px;
}

/* ═══════════════════════════════════════
   RESET + BASE
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink-70);
  font-family: var(--font-body);
  font-size: var(--font16);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { display: block; max-width: 100%; }

/* ═══════════════════════════════════════
   HEADER — thin dark strip, no reading
═══════════════════════════════════════ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(11,23,24,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid rgba(168,240,240,0.07);
  z-index: 100;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.logo__name {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--font16);
  color: #c8e8e8;
  letter-spacing: 0.02em;
  line-height: 1.1;
  display: block;
}

.logo__sub {
  font-family: var(--font-label);
  font-weight: 300;
  font-size: var(--font12);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #4a9a9a;
  display: block;
  margin-top: 2px;
}

/* Navmenu */
.navmenu ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 0;

}

.navmenu ul li a {
  font-family: var(--font-label);
  font-size: var(--font14);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-soft);
  padding: 5px 10px;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
  display: block;
}

.navmenu ul li a:hover,
.navmenu ul li.active > a {
  color: #e0f4f4;
}

.navmenu ul li.active > a {
  border-bottom: 0.5px solid #2a7a7a;
}

/* Utils */
.header-utils {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-pill {
  font-family: var(--font-label);
  font-size: var(--font12);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #4a9a9a;
  border: 0.5px solid #1a5555;
  border-radius: 20px;
  padding: 4px 11px;
  transition: color 0.2s, border-color 0.2s;
}

.lang-pill:hover { color: #a8f0f0; border-color: #4a9a9a; }

.search-input {
  background: rgba(26,85,85,0.25);
  border: 0.5px solid #1a5555;
  border-radius: 20px;
  padding: 4px 13px;
  font-family: var(--font-label);
  font-size: var(--font12);
  letter-spacing: 0.1em;
  color: #c8e8e8;
  width: 130px;
  outline: none;
  transition: border-color 0.2s, width 0.3s;
}

.search-input::placeholder { color: #2a6060; }
.search-input:focus { border-color: #4a9a9a; width: 170px; }

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--teal-soft);
  font-size: var(--font24);
  cursor: pointer;
}

/* ═══════════════════════════════════════
   HERO — warm, generous, typographic
═══════════════════════════════════════ */
.hero {
  padding-top: var(--nav-h);
  background: var(--bg);
  border-bottom: 0.5px solid var(--ink-10);
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 32px 72px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-label);
  font-size: var(--font12);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 300;
  color: var(--ink-100);
  line-height: 1.18;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

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

.hero-desc {
  font-size: var(--font16);
  font-weight: 300;
  color: var(--ink-50);
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 32px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-size: var(--font12);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-deep);
  border-bottom: 0.5px solid var(--teal-mid);
  padding-bottom: 4px;
  transition: gap 0.2s, border-color 0.2s, color 0.2s;
}

.hero-cta:hover {
  color: var(--teal-deep);
  border-bottom-color: var(--teal-mid);
  gap: 16px;
}

/* Mark on warm bg */
.hero-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  animation: float 10s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  40%      { transform: translateY(-10px) rotate(0.4deg); }
  70%      { transform: translateY(5px) rotate(-0.2deg); }
}

/* ═══════════════════════════════════════
   SHARED: SECTION LABEL
═══════════════════════════════════════ */
.section-label {
  font-family: var(--font-label);
  font-size: var(--font12);
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--ink-10);
}

/* ═══════════════════════════════════════
   BOOK — warm, editorial
═══════════════════════════════════════ */
.book-section {
  background: var(--bg-alt);
  border-top: 0.5px solid var(--ink-10);
  border-bottom: 0.5px solid var(--ink-10);
  padding: 40px 32px;
}

.book-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.book-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: start;
}

.book-cover {
  position: relative;
}

.book-cover img {
  width: 100%;
  border-radius: 3px;
  box-shadow:
    8px 12px 32px rgba(10,40,40,0.18),
    0 0 0 0.5px rgba(10,80,80,0.12);
}

.book-badge {
  position: absolute;
  top: -10px; left: -10px;
  font-family: var(--font-label);
  font-size: var(--font10);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
  background: var(--teal-mid);
  padding: 4px 9px;
  border-radius: 2px;
}

.book-category {
  font-family: var(--font-label);
  font-size: var(--font12);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 14px;
}

.book-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  color: var(--ink-100);
  line-height: 1.25;
  margin-bottom: 20px;
}

.book-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--font16);
  font-weight: 300;
  color: var(--ink-50);
  line-height: 1.75;
  border-left: 2px solid var(--teal-mid);
  padding-left: 20px;
  margin-bottom: 20px;
}

.book-desc {
  font-size: var(--font16);
  font-weight: 300;
  color: var(--ink-50);
  line-height: 1.75;
  margin-bottom: 28px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-deep);
  border: 0.5px solid var(--teal-deep);
  border-radius: 2px;
  padding: 10px 20px;
  transition: all 0.2s;
}

.btn-outline:hover {
 
  border-color: var(--teal-soft);
  color: var(--teal-soft);
}

/* ═══════════════════════════════════════
   ARTICLES
═══════════════════════════════════════ */
.articles-section {
  background: var(--bg);
  padding: 40px 32px;
}

.articles-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.articles-list {
  margin-bottom: 48px;
}

.article-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 28px;
  padding: 32px 0;
  border-bottom: 0.5px solid var(--ink-10);
  align-items: start;
  transition: background 0.2s;
}

.article-num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--ink-10);
  line-height: 1;
  padding-top: 4px;
  user-select: none;
}

.article-body {}

.article-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-100);
  line-height: 1.3;
  margin-bottom: 10px;
  display: block;
  transition: color 0.2s;
}

.article-title:hover { color: var(--teal-deep); }

.article-excerpt {
  font-size: var(--font16);
  font-weight: 300;
  color: var(--ink-50);
  line-height: 1.75;
  max-width: var(--text-w);
  margin-bottom: 14px;
}

.article-meta {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-70);
  display: flex;
  align-items: center;
  gap: 16px;
}

.article-read-link {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.article-read-link:hover { gap: 10px; }

/* All articles banner */
.all-articles-banner {
  background: #eeecea;
  border-radius: 4px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.banner-left .label {
  font-family: var(--font-label);
  font-size: var(--font12);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 8px;
}

.banner-left p {
  font-size: var(--font16);
  font-weight: 300;
  color: var(--ink70);
  line-height: 1.65;
  max-width: 400px;
  margin: 0 0 20px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink70);
  border-bottom: 0.5px solid #2a7a7a;
  padding-bottom: 3px;
  transition: gap 0.2s, border-color 0.2s;
}

.btn-ghost:hover { gap: 14px; border-bottom-color: #a8f0f0; }

.banner-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 3px;
  opacity: 0.5;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   ABOUT
═══════════════════════════════════════ */
.about-section {
  background: var(--bg-alt);
  border-top: 0.5px solid var(--ink-10);
  padding: 40px 32px;
}

.about-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: start;
}

.about-portrait {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.portrait-img {
  width: 100%;
  border-radius: 3px;
  filter: sepia(8%) contrast(1.04);
  box-shadow: 6px 10px 28px rgba(10,40,40,0.15);
}

.portrait-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-100);
  margin-top: 14px;
  margin-bottom: 4px;
}

.portrait-role {
  font-family: var(--font-label);
  font-size: var(--font12);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-deep);
  line-height: 1.7;
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 300;
  color: var(--ink-100);
  line-height: 1.3;
  margin-bottom: 24px;
}

.about-text p {
  font-size: 15px;
  font-weight: 300;
  color: var(--ink-70);
  line-height: 1.9;
  margin-bottom: 18px;
}

.about-text p strong {
  color: var(--ink-100);
  font-weight: 400;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  background: var(--bg-ink);
  padding: 56px 32px 28px;
}

.footer-inner { max-width: var(--max-w); margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 0.5px solid rgba(168,240,240,0.07);
  margin-bottom: 28px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
}

.footer-logo-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 300;
  color: #c8e8e8;
  display: block;
  line-height: 1.1;
}

.footer-logo-sub {
  font-family: var(--font-label);
  font-size: 8px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #4a9a9a;
  display: block;
  margin-top: 2px;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  font-weight: 300;
  color: #2a6060;
  margin-bottom: 14px;
  line-height: 1.6;
}

.footer-email {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #3a7a7a;
}

.footer-email a:hover { color: #a8f0f0; }

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.footer-social a {
  color: var(--teal-soft);
  font-size: var(--font18);
  font-family: var(--font-label);
  font-weight: 400;
  transition: color 0.2s;
}

.footer-social a:hover { color: #a8f0f0; }

.footer-col h4 {
  font-family: var(--font-label);
  font-size: var(--font12);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal-soft);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: var(--font14);
  font-weight: 400;
  color: var(--teal-soft);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: #a8f0f0; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-family: var(--font-label);
  font-size: var(--font12);
  letter-spacing: 0.1em;
  color: #1a4a4a;
}

/* ═══════════════════════════════════════
   SCROLL TOP
═══════════════════════════════════════ */
#scroll-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 36px; height: 36px;
  background: var(--teal-mid);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.3s, background 0.2s;
  pointer-events: none;
  z-index: 50;
}

#scroll-top.visible { opacity: 1; pointer-events: auto; }
#scroll-top:hover { background: var(--teal-deep); }

/* ═══════════════════════════════════════
   FADE-UP
═══════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: none; }


/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 860px) {
  .hero-inner     { grid-template-columns: 1fr; }
  .hero-mark      { display: none; }
  .book-grid      { grid-template-columns: 160px 1fr; gap: 32px; }
  .about-grid     { grid-template-columns: 1fr; }
  .about-portrait { position: static; display: flex; gap: 20px; align-items: flex-start; }
  .portrait-img   { width: 110px; }
  .footer-top     { grid-template-columns: 1fr 1fr; }
 
.mobile-nav-toggle {display:inline-block;}
   .navbar-nav {
    position:absolute;    
    align-items-left;
    width:100vw;
    top:80px;
    left:0px;
    padding:10px;
    background-color:black;
    text-align:left;
    z-index:999; 
}
  
}


@media (max-width: 600px) {
  .header-inner   { padding: 0 16px; }
  .hero-inner, .book-section, .articles-section,
  .about-section, footer { padding-left: 16px; padding-right: 16px; }
  .book-grid      { grid-template-columns: 1fr; }
  .book-cover     { max-width: 150px; }
  .footer-top     { grid-template-columns: 1fr; gap: 28px; }
  .all-articles-banner { flex-direction: column; }
  .banner-img     { display: none; }
  .searchbox      { display: none; }


}

.navbar-toggler-icon {
  color: var(--teal-soft)!important;
  font-size: var(--font24);
}



/* =============================================================
   COGNITIVE WORKSHOP — brand-overrides.css
   Targeted overrides only. Works with Bootstrap 5 + main.css.
   Load AFTER style2.css in cognitive_header.
   ============================================================= */


/* ── 1. FONTS ─────────────────────────────────────────────── */
/* Replace Open Sans / Montserrat / Lato with new stack        */

body {
  font-family: 'DM Sans', 'Open Sans', system-ui, sans-serif;
  font-weight: 300;
  background-color: #f7f4ef;
  color: #333;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Spectral', Georgia, serif;
  font-weight: 300;
  color: #0D6E6E;
}

p, li, td, th, label {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 300;
}

/* Nav / label / UI text → Jost */
nav, .nav, .navbar,
.nav-link,
.btn,
.badge,
.footer h4,
.section-title {
  font-family: 'Jost', system-ui, sans-serif !important;
}

a {
  color: #4a9a9a;
  transition: color 0.2s;
}

a:hover {
  color: var(--teal-soft);
}


/* ── 3. LOGO ──────────────────────────────────────────────── */
/* #logo is an empty <a> — we inject the mark + wordmark via  */
/* CSS content (no-JS approach) or you can fill the anchor    */
/* with the HTML snippet from logo-snippets.html              */

#logo,
a.logoen,
a.logo {
  display: flex !important;
  align-items: left !important;
  gap: 12px !important;
  text-decoration: none !important;
background-image: none !important;

}

#logo .cw-logo__name,
a.logoen .cw-logo__name,
a.logo .cw-logo__name {
  font-family: 'Spectral', serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.03em;
  color: #c8e8e8;
  display: block;
  line-height: 0.8;
}

#logo .cw-logo__sub,
a.logoen .cw-logo__sub,
a.logo .cw-logo__sub {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  color: #4a9a9a;
  display: block;
  margin-top: 1px;
}



.cw-logo__text .sub_tr {
     letter-spacing: 0.3em;
}

.cw-logo__text .sub_en {
     letter-spacing: 0.18em;
}

.footer-logo {
  display: flex !important;
  align-items: left !important;
  gap: 8px !important;
  background-image: none !important;
 }

.footer-logo .cw-logo__text .cw-logo__name
 {
  font-family: 'Spectral', serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.03em;
  color: var(--teal-pale);
  display: block;
  line-height: 0.8;
}

.footer-logo .cw-logo__text .cw-logo__sub {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--teal-soft);
  display: block;
  margin-top: 1px;
}
footer {
color: var(--teal-soft);
}

.card {
     --bs-card-bg:  #f4f0e8;
}
.card-title .title-text{
 
    font-weight: 400;
    font-size: var(--font18);
    color: var(--teal-deep);
    display:block;
    border-bottom: 1px solid var(--teal-pale);
}

.card-body p {
    font-size: var(--font12);
      line-height: 1.2;
    
}

.tags {
    font-size: var(--font12);
}

.pageList {
 
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    
}

.glossary-term {
   font-size: var(--font14);
   font-weight: 400;
   color: var(--teal-mid);
}
.pageList li {
 
    margin: 5px;
    padding: 0;
    font-weight:600;
    font-size:80%;
    
}