/* Journey layer for the chapter-based articles: dark hero, dark chapter
   "title bands" alternating with paper reading bands, big gold numerals,
   a sticky chapter bar with reading progress and scroll reveals — so a long
   article keeps its rhythm after the first sections. Per-article visuals
   (name-breakdown, trait-grid, reign-chart …) keep their own styles and sit
   on the light bands they were designed for. */
.j-article main{padding:0}
.j-article .layout{display:block;max-width:none;gap:0}
.j-article h1,.j-article h2,.j-article h3{font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-.03em}

/* Reading progress */
.ja-progress{position:fixed;top:0;left:0;height:3px;width:100%;transform-origin:0 50%;transform:scaleX(0);background:linear-gradient(90deg,#c6a775,#e2cba2);z-index:60;pointer-events:none}

/* Back link */
.j-article .article-breadcrumb{max-width:1080px;margin:0 auto;padding:26px 6% 0;font-size:.9rem}
.j-article .article-breadcrumb a{border:1px solid #c6a77570;color:#d7dfd8;background:none;border-radius:999px}
.j-article .article-breadcrumb a:hover,.j-article .article-breadcrumb a:focus{background:#c6a77522;color:#e2cba2}

/* Shell */
.j-article .article-detail{display:block;background:none;border:0;border-radius:0;box-shadow:none;padding:0;color:#f3f0e8}

/* Hero header */
.j-article .article-detail__header,.j-article .mb-header{position:relative;max-width:none;margin:0;padding:clamp(56px,10vw,120px) 6% clamp(64px,9vw,110px);text-align:center;display:grid;justify-items:center;gap:18px;background:radial-gradient(ellipse at 50% 0%,#c6a77533,transparent 62%)}
.j-article .article-detail__header:after,.j-article .mb-header:after{content:'↓';display:block;margin-top:26px;color:#c6a775;font-size:1.3rem;animation:ja-bob 2.4s ease-in-out infinite}
.j-article .article-detail__eyebrow{color:#c6a775;letter-spacing:.18em;font-size:.78rem}
.j-article .article-detail__title{color:#f3f0e8;font-size:clamp(2.5rem,7vw,5.2rem);line-height:1.04;max-width:16ch;margin:0 auto}
.j-article .mb-subtitle{color:#bdccc7;max-width:620px;margin:0 auto;font-size:1.15rem}
.j-article .article-detail__meta{justify-content:center}
.j-article .article-detail__meta span{background:none;border:1px solid #c6a77570;color:#e2cba2}
.j-article .article-detail__source{color:#e2cba2}

/* Lead paragraph — large serif on the dark ground */
.j-article .chapter-lead{max-width:760px;margin:0 auto;padding:0 6% clamp(50px,8vw,90px);color:#dce3df;font-family:Georgia,serif;font-size:clamp(1.2rem,2.4vw,1.45rem);line-height:1.7}
.j-article .chapter-lead p:first-of-type::first-letter{color:#c6a775;font-weight:400;font-family:Georgia,serif}

/* Sticky chapter bar */
.j-article .article-toc,.j-article .mb-toc{position:sticky;top:0;z-index:40;display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0;padding:12px 6%;border:0;border-radius:0;border-top:1px solid #c6a77533;border-bottom:1px solid #c6a77533;background:#092426f0;backdrop-filter:blur(8px)}
.j-article .article-toc::-webkit-scrollbar,.j-article .mb-toc::-webkit-scrollbar{display:none}
.j-article .article-toc a,.j-article .mb-toc a{flex:0 0 auto;white-space:nowrap;background:none;border:1px solid #c6a77550;color:#d7dfd8;border-radius:999px;padding:7px 14px;font-size:.8rem;font-weight:600;text-decoration:none;transition:background .3s,color .3s}
.j-article .article-toc a span,.j-article .mb-toc a span{background:#c6a775;color:#092426}
.j-article .article-toc a.is-active,.j-article .mb-toc a.is-active{background:#c6a775;color:#092426;border-color:#c6a775}
.j-article .article-toc a.is-active span,.j-article .mb-toc a.is-active span{background:#092426;color:#e2cba2}

/* Chapters: dark title band + paper reading band */
.j-article .article-detail__body{display:block;color:#102f31}
.j-article .chapter{display:block;border:0;padding:0 0 clamp(56px,8vw,96px);background:#f3f0e8;color:#102f31;scroll-margin-top:56px}
.j-article .chapter:nth-child(even){background:#e8e5dc}
.j-article .chapter-head{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:clamp(56px,9vw,110px) 6% clamp(44px,6vw,70px);background:radial-gradient(ellipse at 50% 100%,#c6a77526,transparent 60%),#092426;color:#f3f0e8;overflow:hidden}
.j-article .chapter-head:after{content:'✦';position:absolute;bottom:0;left:50%;transform:translate(-50%,50%);background:inherit;color:#c6a775;font-size:.9rem;padding:0 10px}
.j-article .chapter-badge{width:auto;height:auto;background:none;border-radius:0;color:#c6a775;font-family:Georgia,serif;font-weight:400;font-size:clamp(3.6rem,10vw,6.5rem);line-height:1;display:flex;flex-direction:column;align-items:center;gap:10px}
.j-article .chapter-badge svg{width:30px;height:30px;opacity:.85}
.j-article .chapter-badge__num{font-size:inherit;font-weight:400}
.j-article .chapter-head h2{color:#f3f0e8;font-size:clamp(1.9rem,5vw,3.3rem);line-height:1.12;max-width:20ch;margin:0}

.j-article .chapter-body{max-width:68ch;margin:0 auto;padding:clamp(44px,6vw,70px) 6% 0;box-sizing:content-box;font-size:1.1rem;line-height:1.8;color:#1d3a3c}
.j-article .chapter-body>p:first-of-type{font-family:Georgia,serif;font-size:clamp(1.2rem,2.2vw,1.35rem);line-height:1.65;color:#102f31}
.j-article .chapter-body.has-dropcap p:first-of-type::first-letter{color:#c6a775;font-family:Georgia,serif;font-weight:400}
.j-article .chapter-body a{color:#805d2d;text-decoration:underline;text-underline-offset:3px}
.j-article .chapter-body h3{font-size:1.6rem;margin:1.8em 0 .5em;padding-top:1em;border-top:1px solid #c6a77570}
.j-article .chapter-body strong{color:#102f31}
.j-article .chapter-body ul,.j-article .chapter-body ol{padding-left:0;list-style:none;display:grid;gap:10px;margin:1.2em 0}
.j-article .chapter-body li{position:relative;padding:14px 18px 14px 44px;background:#ffffff90;border:1px solid #c6a77540;border-radius:10px}
.j-article .chapter-body ul>li:before{content:'✦';position:absolute;left:17px;top:14px;color:#c6a775}
.j-article .chapter-body ol{counter-reset:ja}
.j-article .chapter-body ol>li{counter-increment:ja}
.j-article .chapter-body ol>li:before{content:counter(ja);position:absolute;left:16px;top:13px;font-family:Georgia,serif;color:#805d2d;font-size:1.1rem}

/* Per-article visuals sitting between the text blocks */
.j-article .chapter>:not(.chapter-head):not(.chapter-body):not(.chapter-quote){margin-left:auto;margin-right:auto;margin-top:clamp(28px,4vw,44px);max-width:min(88%,760px)}

/* Pull quotes: an interlude, centred between gold rules */
.j-article .chapter-quote{position:relative;max-width:min(88%,760px);margin:clamp(44px,6vw,70px) auto 0;padding:34px 0 30px;border:0;border-top:1px solid #c6a775;border-bottom:1px solid #c6a775;border-radius:0;background:none;text-align:center;font-family:Georgia,serif;font-style:italic;font-size:clamp(1.35rem,3vw,2rem);line-height:1.45;color:#805d2d}
.j-article .chapter-quote:before{content:'✦';position:absolute;top:0;left:50%;transform:translate(-50%,-55%);padding:0 14px;background:inherit;font-size:1.2rem;line-height:1;color:#c6a775}
.j-article .chapter:nth-child(odd) .chapter-quote:before{background:#f3f0e8}
.j-article .chapter:nth-child(even) .chapter-quote:before{background:#e8e5dc}

/* Fallback prose (articles without chapters) */
.j-article .article-detail__body>.prose,.j-article .article-detail__body>div:not(.chapter){max-width:68ch;margin:0 auto;padding:clamp(44px,6vw,70px) 6%;background:#f3f0e8;color:#1d3a3c;font-size:1.1rem;line-height:1.8}

.j-article .article-analysis{max-width:760px;margin:clamp(40px,6vw,70px) auto;background:#123739;border:1px solid #c6a77540;border-radius:14px;color:#dce3df}
.j-article .article-analysis__title{color:#e2cba2}
.j-article .article-analysis__body{color:#dce3df}

/* Scroll reveal (only when JS is running and motion is welcome) */
.ja-motion .ja-reveal{opacity:0;transform:translateY(28px);transition:opacity .8s ease,transform .8s ease}
.ja-motion .ja-reveal.is-in{opacity:1;transform:none}
@keyframes ja-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(7px)}}
@media(prefers-reduced-motion:reduce){.ja-motion .ja-reveal{opacity:1;transform:none;transition:none}.j-article .article-detail__header:after,.j-article .mb-header:after{animation:none}}

@media(max-width:760px){
  .j-article .chapter-body{font-size:1.04rem;padding-top:40px}
  .j-article .chapter-head{padding:56px 6% 44px}
  .j-article .chapter>:not(.chapter-head):not(.chapter-body):not(.chapter-quote),.j-article .chapter-quote{max-width:88%}
  .j-article .chapter-body li{padding:12px 14px 12px 38px}
  .j-article .chapter-body ul>li:before{left:13px;top:12px}
  .j-article .chapter-body ol>li:before{left:13px;top:11px}
}
@media print{.ja-progress,.j-article .article-toc,.j-article .mb-toc{display:none}.j-article .chapter-head{background:#fff;color:#111}.j-article .chapter-head h2{color:#111}}
.j-article .mb-dashboard{max-width:1080px;margin:0 auto;padding:0 6% clamp(50px,8vw,90px)}

/* ── Fixes after reviewing every article (2026-09-23) ─────────────────── */
/* Site palette for the variables the article templates still reference */
.j-article { --accent: #c6a775; --accent-soft: rgba(198,167,117,.16); --accent-strong: #102f31; --shared: #102f31; --card-elevated: #fbf8f1; --border: #e0d4bc; --text: #102f31; --muted: #36575a; }

/* Mahsa/Bita: the chapter number lived in a tiny absolute corner badge; with
   the big journey numeral it spilled over the text. Stack it under the icon. */
.j-article .chapter-badge__num { position: static; width: auto; height: auto; background: none; box-shadow: none; border-radius: 0; color: inherit; font-size: inherit; font-weight: 400; display: block; }

/* Rhythm inside a chapter: blocks were spaced by the old grid gap */
.j-article .chapter > * + * { margin-top: clamp(28px, 4vw, 44px); }
.j-article .chapter > .chapter-head + * { margin-top: 0; }
.j-article .chapter > .chapter-head + :not(.chapter-body) { margin-top: clamp(40px, 6vw, 64px); }
.j-article .chapter > :not(.chapter-head):not(.chapter-body):not(.chapter-quote) + .chapter-body { padding-top: clamp(24px, 4vw, 40px); }
.j-article .chapter-body > * + * { margin-top: 1.1em; }
.j-article .chapter-body p { margin-bottom: 0; }
.j-article .chapter-body h3 + p { margin-top: .4em; }

/* Mahsa/Bita dashboard: a dark journey band with explicit colours on every
   element (the template's pale tints read washed-out). The two people keep
   their own colour, lightened for the dark ground, as an accent only. */
.j-article .mb-dashboard { --mb-mahsa: #a9acf2; --mb-bita: #e8b06a; max-width: none; margin: 0; border: 0; border-radius: 0;
  padding: clamp(50px, 8vw, 90px) max(6%, calc((100% - 1080px) / 2));
  background: radial-gradient(ellipse at 20% 0%, rgba(91,95,199,.16), transparent 55%), radial-gradient(ellipse at 80% 0%, rgba(201,131,46,.14), transparent 55%), #0d2c2e;
  border-top: 1px solid rgba(198,167,117,.3); border-bottom: 1px solid rgba(198,167,117,.3); color: #f3f0e8; display: grid; gap: clamp(40px, 6vw, 64px); }
.j-article .mb-dashboard h2 { font-family: Georgia, serif; font-weight: 400; }
.j-article .mb-profiles { gap: clamp(14px, 2.5vw, 24px); }
.j-article .mb-profile { background: #123739; border: 1px solid rgba(198,167,117,.35); border-top: 3px solid var(--mb-accent); border-radius: 16px; padding: clamp(22px, 3.5vw, 32px); gap: 18px; }
.j-article .mb-profile--mahsa { --mb-accent: var(--mb-mahsa); }
.j-article .mb-profile--bita { --mb-accent: var(--mb-bita); }
.j-article .mb-profile__head h2 { color: #f3f0e8; font-size: clamp(1.45rem, 3vw, 1.8rem); letter-spacing: -.02em; }
.j-article .mb-profile__head p { color: #bdccc7; }
.j-article .mb-avatar { background: #092426; border: 1px solid var(--mb-accent); box-shadow: none; }
.j-article .mb-age { background: none; border: 1px solid rgba(198,167,117,.55); color: #e2cba2; font-weight: 600; }
.j-article .mb-age strong { font-family: Georgia, serif; font-weight: 400; font-size: 1.3rem; color: #f3f0e8; }
.j-article .mb-numbers { gap: 8px; }
.j-article .mb-stat { background: #092426; border: 1px solid rgba(198,167,117,.25); border-radius: 12px; padding: 12px 14px; }
.j-article .mb-stat__label { color: #c6a775; letter-spacing: .1em; }
.j-article .mb-stat__value { font-family: Georgia, serif; font-weight: 400; font-size: 2.2rem; color: var(--mb-accent) !important; margin: 4px 0 2px; }
.j-article .mb-stat__note { color: #cdd8d4; }
.j-article .mb-abjad { background: none; border: 1px dashed rgba(198,167,117,.45); color: #dce3df; }
.j-article .mb-abjad__script { font-size: 1.6rem; font-weight: 400; color: #f3f0e8; }
.j-article .mb-abjad__sum { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--mb-accent); color: #092426; font-family: Georgia, serif; font-weight: 400; }
.j-article .mb-constellation h2, .j-article .mb-timeline h2 { color: #c6a775; font-family: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .18em; }
.j-article .mb-chip__num { width: 3.4rem; height: 3.4rem; background: none; border: 1px solid #c6a775; color: #e2cba2; box-shadow: none; font-family: Georgia, serif; font-weight: 400; font-size: 1.4rem; }
.j-article .mb-chip__label { color: #cdd8d4; }
.j-article .mb-lifeline__who { color: #f3f0e8; }
.j-article .mb-lifeline__who span { color: #bdccc7; }
.j-article .mb-lifeline__track { background: rgba(243,240,232,.1); }
.j-article .mb-lifeline__bar--mahsa { background: linear-gradient(90deg, rgba(169,172,242,.15), #a9acf2); }
.j-article .mb-lifeline__bar--bita { background: linear-gradient(90deg, rgba(232,176,106,.15), #e8b06a); }
.j-article .mb-lifeline__end { color: #bdccc7; }
.j-article .mb-lifeline__end strong { font-family: Georgia, serif; font-weight: 400; font-size: 1.4rem; color: #e2cba2; }
.j-article .mb-gap { border-top: 1px dashed rgba(198,167,117,.35); }
.j-article .mb-gap__days { font-family: Georgia, serif; font-weight: 400; font-size: 2.2rem; color: #e2cba2; }
.j-article .mb-gap__note { color: #cdd8d4; }

/* Numbers and tables: the same gold-header grid as the letter chart */
.j-article .chapter-body table { border-collapse: separate; border-spacing: 5px; width: auto; max-width: 100%; margin: 1.4em 0; }
.j-article .chapter-body table td, .j-article .chapter-body table th { text-align: center; border: 0; border-radius: 8px; padding: .55rem .35rem; min-width: 2rem; background: #fff; color: #102f31; font-weight: 700; }
.j-article .chapter-body table tr:first-child td, .j-article .chapter-body table th,
.j-article #slik-beregner-du-uttrykkstallets .chapter-body table tr:first-child td { background: #c6a775; color: #092426; font-family: Georgia, serif; font-weight: 400; font-size: 1.1rem; }
.j-article #slik-beregner-du-uttrykkstallets .chapter-body table tr:not(:first-child) td { background: #fff; color: #102f31; }
.j-article .name-breakdown { background: #fff; border-color: rgba(198,167,117,.45); }
.j-article .name-breakdown table tr:first-child td { border-color: #c6a775; font-family: Georgia, serif; font-weight: 400; }
.j-article .name-breakdown table tr:last-child td { background: rgba(198,167,117,.18); color: #805d2d; }
.j-article .name-breakdown__sum strong { background: #092426; color: #e2cba2; font-family: Georgia, serif; font-weight: 400; }

/* Chapter badge colour: Mahsa's icon badges keep the gold on the dark band */
.j-article .chapter-head .chapter-badge { color: #c6a775; }
.j-article .chapter-lead strong, .j-article .chapter-lead a, .j-article .chapter-lead em { color: #e2cba2; }
.j-article .mb-emblems .divider { color: #c6a775; }
.j-article .mb-header { border-bottom: 0; }

/* ── Reusable article visuals (.ja-*) — number cards, letter tiles,
   equations, timeline and a calculator shell, in the site palette ─────── */
.ja-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.ja-card { background: #092426; color: #f3f0e8; border: 1px solid rgba(198,167,117,.35); border-radius: 14px; padding: 22px 18px; text-align: center; display: grid; gap: 6px; }
.ja-card span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #c6a775; }
.ja-card b { font-family: Georgia, serif; font-weight: 400; font-size: 3.4rem; line-height: 1; color: #e2cba2; }
.ja-card small { color: #cdd8d4; font-size: .9rem; line-height: 1.5; }
.ja-card--master b { color: #092426; background: #c6a775; border-radius: 50%; width: 4.6rem; height: 4.6rem; display: grid; place-items: center; margin: 4px auto; font-size: 2.3rem; }

.ja-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ja-tile { display: grid; justify-items: center; gap: 6px; min-width: 3.1rem; padding: 12px 8px 10px; background: #fff; border: 1px solid rgba(198,167,117,.55); border-radius: 12px; }
.ja-tile b { font-family: Georgia, serif; font-weight: 400; font-size: 1.9rem; line-height: 1; color: #102f31; }
.ja-tile span { font-size: .85rem; font-weight: 700; color: #805d2d; }
.ja-tile--vowel { background: #092426; border-color: #c6a775; }
.ja-tile--vowel b { color: #e2cba2; }
.ja-tile--vowel span { color: #c6a775; }

.ja-eq { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem .7rem; margin-top: 18px; font-family: Georgia, serif; font-size: clamp(1.2rem, 3vw, 1.6rem); color: #102f31; }
.ja-eq i { font-style: normal; color: #c6a775; }
.ja-eq strong { display: inline-grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: #092426; color: #e2cba2; font-weight: 400; }
.ja-eq strong.ja-master { background: #c6a775; color: #092426; box-shadow: 0 0 0 6px rgba(198,167,117,.22); }
.ja-caption { text-align: center; margin-top: 10px; font-size: .88rem; color: #6b8580; }

.ja-timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; position: relative; }
.ja-timeline:before { content: ''; position: absolute; left: 2.1rem; top: 12px; bottom: 12px; width: 1px; background: rgba(198,167,117,.6); }
.ja-timeline li { position: relative; display: grid; grid-template-columns: 4.2rem 1fr; gap: 16px; align-items: center; padding: 12px 0; }
.ja-timeline li > b { position: relative; z-index: 1; display: grid; place-items: center; width: 4.2rem; height: 4.2rem; border-radius: 50%; background: #092426; border: 1px solid #c6a775; font-family: Georgia, serif; font-weight: 400; font-size: 1.5rem; color: #e2cba2; }
.ja-timeline li > div { display: grid; gap: 2px; }
.ja-timeline li strong { font-family: Georgia, serif; font-weight: 400; font-size: 1.2rem; color: #102f31; }
.ja-timeline li span { color: #36575a; font-size: .95rem; }

.ja-wave { display: block; width: 100%; height: auto; max-width: 640px; margin: 0 auto; }

.ja-calc { background: #092426; color: #f3f0e8; border: 1px solid rgba(198,167,117,.45); border-radius: 18px; padding: clamp(20px, 4vw, 34px); box-shadow: 0 24px 50px rgba(9,36,38,.25); }
.ja-calc label { display: grid; gap: 8px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #c6a775; }
.ja-calc select { font: inherit; font-size: 1.05rem; letter-spacing: 0; text-transform: none; padding: 12px 14px; border-radius: 12px; border: 1px solid #c6a775; background: #123739; color: #f3f0e8; }
.ja-calc__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; margin: 22px 0 0; }
.ja-calc__step { background: #123739; border: 1px solid rgba(198,167,117,.3); border-radius: 12px; padding: 14px; text-align: center; display: grid; gap: 4px; }
.ja-calc__step span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #c6a775; }
.ja-calc__step b { font-family: Georgia, serif; font-weight: 400; font-size: 1.6rem; color: #f3f0e8; }
.ja-calc__step small { color: #bdccc7; }
.ja-calc__result { margin-top: 18px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; text-align: left; }
.ja-calc__root { display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 50%; background: #c6a775; color: #092426; font-family: Georgia, serif; font-size: 2.4rem; box-shadow: 0 0 0 8px rgba(198,167,117,.2); }
.ja-calc__text { max-width: 36ch; color: #dce3df; line-height: 1.6; }
.ja-calc__pulse { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.ja-calc__pulse span { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid rgba(198,167,117,.5); font-family: Georgia, serif; font-size: 1.3rem; color: #bdccc7; }
.ja-calc__pulse span.is-on { background: #c6a775; color: #092426; border-color: #c6a775; }
