/* NICO HUA · nh-journal-fix r1 · 13.11.2026 · Journal-Korrekturen in eigener Datei mit kurzem Cache.
   /journal/assets/journal.css liegt 1 Jahr im Browser-Cache und wird ohne Versionszusatz geladen; dieselben Blöcke stehen dort am Ende,
   erreichen wiederkehrende Besucher aber erst nach Ablauf. Inhalt: wordfit r1 (Versuchsanordnung, Kopf/Inhaltsverzeichnis), wordfit r2 (Handy-Größen), visual r1 (Bildrahmen). */

/* nh-journal-wordfit r1 (Sitzung Journal, 13.11.2026): Silbentrennung nur nach Nicos Ja (bisher nur „Versuchsanordnung“ in ki-benchmarks-verstehen, dort weiche Trennstellen im Text); Kopf verdeckt Inhaltsverzeichnis und Sprungziele nicht */
.score-shell[data-page="journal/ki-benchmarks-verstehen"] .nh-journal .prose .opening{overflow-wrap:normal!important;word-break:normal!important;-webkit-hyphens:manual!important;hyphens:manual!important}
.score-shell .nh-journal :is(.prose [id],.article-hero,[id^="s-"]){scroll-margin-top:72px}
.score-shell .nh-journal .toc{top:72px}
@media (min-width:901px){.score-shell .nh-journal :is(.prose [id],.article-hero,[id^="s-"]){scroll-margin-top:117px}.score-shell .nh-journal .toc{top:117px;max-height:calc(100vh - 141px);overflow:auto;padding-right:6px}}

/* nh-journal-wordfit r2 (Sitzung Journal, 13.11.2026, Nico: „deploy“): lange Wörter bekommen am Handy Platz statt Bruch – kleinere Größen, keine Silbentrennung, kein Bruch ohne Bindestrich */
.score-shell .nh-journal :is(.article-hero h1,.prose h2,.prose h3,.prose .opening,.article-row h3,.article-row h3 a,.section-heading h2){overflow-wrap:normal!important;word-break:normal!important}
@media (max-width:600px){
.score-shell .nh-journal .article-hero h1{font-size:clamp(28px,9vw,40px)}
.score-shell .nh-journal .prose h2{font-size:clamp(24px,7.5vw,31px)}
.score-shell .nh-journal .prose .opening{font-size:clamp(26px,8.8vw,37px)}
.score-shell .nh-journal .article-row h3{font-size:clamp(20px,6.4vw,29px)}
.score-shell .nh-journal .section-heading h2{font-size:clamp(46px,15vw,57px)}
}
@media (min-width:601px){.score-shell[data-page="journal/ki-benchmarks-verstehen"] .nh-journal .prose .opening{-webkit-hyphens:none!important;hyphens:none!important}}

/* nh-journal-visual r1 (Sitzung Journal, 13.11.2026, Nico: „Bild in der Card ist nicht ausgefüllt oder Card zu hoch“): Artikelbild nimmt sein 3:2-Format an statt der HTML-Höhe */
.score-shell .nh-journal .article-visual figure>img{height:auto}

/* nh-journal-fix r1 · Nachtrag 13.11.2026 abends (Nico: „auf falsche Umbrüche checken“): kein einzelnes Wort allein in der letzten Zeile –
   Kicker, Teaser, Einstiege, Bildunterschriften, Listen umbrechen „pretty“; Überschriften bleiben „balance“ (ohne Silbentrennung, ohne Größenänderung). */
.score-shell .nh-journal :is(.article-deck,.row-desc,.opening,figcaption,.toc a,.prose p,.prose li){text-wrap:pretty}
.score-shell .nh-journal .eyebrow{text-wrap:balance}

/* nh-journal-fix · Hero-Gehirn verschmilzt (Nico 13.11. abends: „das gehirn hat schwarzen hintergrund das muss weich mit seite verschmelzen“).
   Bildschwarz ≈ Seitenton (#0c0e0c), darum reicht eine Maske (kein Mischmodus). Rechts ≥ 16 % und unten lang auslaufend, oben kurz (die Krone des Gehirns reicht fast an die Oberkante),
   links so weit, dass die linke Bildkante auch bei Ultrawide (rechtsbündiges Bild im breiten Rahmen) nicht steht. */
.score-shell .nh-journal .cover-art img{
 -webkit-mask-image:linear-gradient(90deg,transparent 0,transparent 22%,#000 54%,#000 84%,transparent 100%),linear-gradient(180deg,transparent 0,#000 6%,#000 72%,transparent 100%);
 mask-image:linear-gradient(90deg,transparent 0,transparent 22%,#000 54%,#000 84%,transparent 100%),linear-gradient(180deg,transparent 0,#000 6%,#000 72%,transparent 100%);
 -webkit-mask-composite:source-in;mask-composite:intersect}
@media (max-width:760px){.score-shell .nh-journal .cover-art img{
 -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 12%,#000 82%,transparent 100%),linear-gradient(180deg,transparent 0,#000 8%,#000 76%,transparent 100%);
 mask-image:linear-gradient(90deg,transparent 0,#000 12%,#000 82%,transparent 100%),linear-gradient(180deg,transparent 0,#000 8%,#000 76%,transparent 100%)}}

/* nh-journal-fix · Übersicht: Leiste SYNAPSE / ARTIKEL / PODCAST am Desktop mittig in der Journal-Kopfzeile statt als eigene Zeile
   (Nico 16.11.: „kann das im hero journal woanders stehen damit der hero perfekt passt“). Nur /journal/ (Kopfzeile .masthead vorhanden), ab 901 px; Handy unverändert. */
@media (min-width:901px){.score-shell .nh-journal:has(> .masthead){position:relative}
.score-shell .nh-journal:has(> .masthead) > .journal-nav{position:absolute;left:0;right:0;margin:0 auto;padding:0;justify-content:center;z-index:2;pointer-events:none;transform:translateY(27px)}
.score-shell .nh-journal:has(> .masthead) > .journal-nav a{pointer-events:auto}}
@media (min-width:901px) and (max-width:1024px){.score-shell .nh-journal:has(> .masthead) > .journal-nav{transform:translateY(6px)}}

/* nh-journal-fix · Übersicht: Startbereich passt am Desktop in einen Bildschirm (Nico 16.11.: „Ja, einpassen“). Kopf, SYNAPSE., Cover-Story
   mit Gehirn, Link und Fußzeile sichtbar. Größen nach dem freien Platz (--nh-fit = Bildschirmhöhe minus feste Teile), nie größer als bisher;
   bis 880 px Höhe entfällt dafür die kleine Code-Studie. Ab 901 px Breite, Handy unverändert. */
@media (min-width:901px){
.score-shell .nh-journal:has(> .masthead){--nh-fit:calc(100svh - 540px)}
.score-shell .nh-journal:has(> .masthead) .masthead h1{font-size:max(96px,min(15.35vw,325px,calc(var(--nh-fit) * .34)));margin:min(27px,1.6svh) 0 min(22px,1.4svh)}
.score-shell .nh-journal:has(> .masthead) .mast-caption{padding-bottom:min(22px,1.6svh)}
.score-shell .nh-journal:has(> .masthead) .cover-hero{min-height:0;padding-block:min(60px,3svh) 80px}
.score-shell .nh-journal:has(> .masthead) .cover-copy h2{font-size:max(48px,min(6.3vw,133px,calc(var(--nh-fit) * .15)));margin:min(29px,1.4svh) 0 min(24px,1.4svh)}
.score-shell .nh-journal:has(> .masthead) .cover-deck{font-size:max(22px,min(31.68px,2.2vw,calc(var(--nh-fit) * .068)));margin-bottom:min(10px,1svh)}
.score-shell .nh-journal:has(> .masthead) .cover-copy .text-link{margin-top:min(12px,1svh)}
.score-shell .nh-journal:has(> .masthead) .cover-copy .code-study{margin-top:min(34px,2svh)}
}
@media (min-width:901px) and (max-height:880px){
.score-shell .nh-journal:has(> .masthead){--nh-fit:calc(100svh - 400px)}
.score-shell .nh-journal:has(> .masthead) .cover-copy .code-study{display:none}
}
/* relaunch-umbau r1 (17.11.2026): Praxis-Zeile im Essay /journal/website-relaunch/ -> /website-umbau/; Link mit 44-px-Trefferflaeche */
.nh-journal .nh-praxis-umbau{line-height:1.7;text-wrap:pretty;max-width:60ch}
.nh-journal .nh-praxis-umbau a{position:relative;display:inline-block;margin-top:8px;font-weight:600;white-space:nowrap;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.nh-journal .nh-praxis-umbau a::after{content:"";position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);height:44px;min-width:44px}
.nh-journal .nh-praxis-umbau a:focus-visible{outline:2px solid var(--copper);outline-offset:6px;border-radius:2px}

/* Mobile framing of the Synapse cover on the journal index. */
@media (max-width: 600px) {
  .score-shell[data-page="journal"] .nh-journal {
    padding-top: calc(62px + env(safe-area-inset-top, 0px));
  }
}

/* The tall portrait cover has room for Solaris on its own line. */
@media (max-width: 600px) and (min-height: 760px) and (max-aspect-ratio: 1/2) {
  .score-shell[data-page="journal"] .cover-copy h2 em {
    display: block;
  }
}

@media (max-width: 600px) and (orientation: portrait) and (min-aspect-ratio: 9/16),
       (max-width: 600px) and (orientation: portrait) and (max-height: 739px) {
  .score-shell[data-page="journal"] .masthead {
    padding-top: 12px;
  }
  .score-shell[data-page="journal"] .masthead h1 {
    margin-block: 10px;
  }
  .score-shell[data-page="journal"] .mast-caption {
    padding-bottom: 10px;
  }
  .score-shell[data-page="journal"] .cover-hero {
    padding-top: 16px;
  }
  .score-shell[data-page="journal"] .cover-copy > .eyebrow {
    margin-bottom: 10px;
  }
  .score-shell[data-page="journal"] .cover-art {
    max-height: min(34svh, max(132px, calc(100svh - 425px)));
  }
}
