/* The journal (AI Gündemi / AI Briefing): index, entry and month archive. Loaded after product.css on journal pages only.
   Same system as the other inner pages: white paper, near-black ink, one crimson accent, hairline rules, square corners, mono labels.
   Two things are set apart on purpose: the note block of an entry (the studio's written word, laid out like a row of the scope sheet of the
   home page) and the day stamp of the index (a date written at the head of a document). Reading text is Newsreader (SIL OFL, self-hosted,
   Latin plus Turkish, loaded only here). Colours come from tokens.css; nothing else is declared. */

/* ---------- The reading face ---------- */
@font-face{font-family:Newsreader;font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/newsreader-400.woff2') format('woff2')}
@font-face{font-family:Newsreader;font-style:italic;font-weight:400;font-display:swap;src:url('/assets/fonts/newsreader-400-italic.woff2') format('woff2')}
@font-face{font-family:Newsreader;font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/newsreader-600.woff2') format('woff2')}
/* Stand-ins drawn while Newsreader loads: Times New Roman (or its metric twins) scaled to Newsreader's width and vertical metrics,
   so the text keeps its line breaks and the swap moves nothing. */
@font-face{font-family:'Newsreader Fallback';font-style:normal;font-weight:400 599;src:local('Times New Roman'),local('TimesNewRomanPSMT'),local('Liberation Serif'),local('Tinos');size-adjust:104.85%;ascent-override:70.1%;descent-override:25.27%;line-gap-override:0%}
@font-face{font-family:'Newsreader Fallback';font-style:italic;font-weight:400 599;src:local('Times New Roman Italic'),local('TimesNewRomanPS-ItalicMT'),local('Liberation Serif Italic'),local('Tinos Italic');size-adjust:104.85%;ascent-override:70.1%;descent-override:25.27%;line-gap-override:0%}
@font-face{font-family:'Newsreader Fallback';font-style:normal;font-weight:600 800;src:local('Times New Roman Bold'),local('TimesNewRomanPS-BoldMT'),local('Liberation Serif Bold'),local('Tinos Bold');size-adjust:104.85%;ascent-override:70.1%;descent-override:25.27%;line-gap-override:0%}
:root{--reading:Newsreader,'Newsreader Fallback',Georgia,'Times New Roman',serif}

/* ---------- Index and month archive ---------- */
main>.journal-index{max-width:none}
.journal-index>*{max-width:none}
.journal-head{max-width:46rem;margin-bottom:var(--s7)}
.journal-head h1{margin-bottom:var(--s4);text-wrap:balance}
.journal-head .lead{margin-bottom:var(--s4)}
.journal-facts{display:flex;flex-wrap:wrap;gap:var(--s1) var(--s5);margin:0 0 var(--s4);font:500 var(--t-label)/1.5 var(--mono);color:var(--ink-3)}
.journal-purpose{max-width:40rem;margin:0;font-size:var(--t-small);color:var(--ink-2)}
.journal-empty{max-width:40rem;padding:var(--s5);border:1px solid var(--ink);background:var(--sheet);color:var(--ink)}

/* An entry in a list: picture, then date and topic in mono, the headline, the dek. The lead card is the same with a larger picture. */
.journal-item{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--s3);padding:var(--s4) 0;border-top:1px solid var(--rule)}
.journal-item-image{display:block;min-width:0}
.journal-item-image img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;background:var(--sheet);border:1px solid var(--rule)}
.journal-item-text{min-width:0}
.journal-meta{margin:0 0 var(--s1);font:500 var(--t-label)/1.5 var(--mono);color:var(--ink-3)}
.journal-flag{position:relative;padding-left:14px;color:var(--ink)}
.journal-flag::before{content:"";position:absolute;left:0;top:.5em;width:8px;height:8px;background:var(--mark)}
.journal-owner{color:var(--ink)}
.journal-item-title{margin:0 0 var(--s2);font-size:1.25rem;line-height:1.2;letter-spacing:-.015em;overflow-wrap:anywhere;text-wrap:balance}
.journal-item-title a{color:var(--ink);text-decoration:none}
.journal-item-title a:hover{color:var(--accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.2em}
.journal-item-dek{margin:0;font-size:var(--t-small);line-height:1.55;color:var(--ink-2);max-width:40rem}
.journal-item.is-lead{border-top:2px solid var(--ink);padding-block:var(--s5)}
.journal-item.is-lead .journal-item-title{font-size:clamp(1.5rem,1.2rem + 1.2vw,2.25rem);line-height:1.1}
.journal-item.is-lead .journal-item-dek{font-size:1rem}
/* A phone lists the older entries as the home strip does: a small picture beside the date and the headline. The lead card stays large. */
@media (max-width:699px){
  .journal-item:not(.is-lead){grid-template-columns:7.5rem minmax(0,1fr);gap:var(--s3);align-items:start;padding:var(--s3) 0}
  .journal-item:not(.is-lead) .journal-item-title{font-size:1.0625rem;margin-bottom:0}
  .journal-item:not(.is-lead) .journal-item-dek{display:none}
}
@media (min-width:700px){
  .journal-item{grid-template-columns:13.75rem minmax(0,1fr);gap:var(--s5);align-items:start}
  .journal-item.is-lead{grid-template-columns:minmax(0,35rem) minmax(0,1fr);gap:var(--s6);align-items:center}
}

/* The day stamp: a date written at the head of a document. A mono date in a thin box, the weekday, and a rule that runs on. */
.journal-day-group{margin-top:var(--s6)}
.journal-day{display:flex;align-items:center;gap:var(--s3);margin:0 0 var(--s2);font:500 var(--t-label)/1.2 var(--mono);letter-spacing:0;color:var(--ink)}
.journal-day time{padding:var(--s1) var(--s3);border:1px solid var(--ink);background:var(--paper)}
.journal-day span{color:var(--ink-3)}
.journal-day::after{content:"";flex:1;height:1px;background:var(--ink)}
.journal-list{max-width:none}
.journal-older{margin:var(--s6) 0 0;font:500 var(--t-label)/1.5 var(--mono);color:var(--ink-3)}
.journal-list .journal-item:first-child{border-top:0}
.journal-archive{margin-top:var(--s8);max-width:56rem}
.journal-archive-title{margin:0 0 var(--s3);font:500 var(--t-label)/1.4 var(--mono);letter-spacing:0;color:var(--ink-3)}
.journal-archive ul{display:flex;flex-wrap:wrap;gap:var(--s2) var(--s5);list-style:none;margin:0;padding:0}
.journal-archive li{margin:0;color:var(--ink-3)}
.journal-archive a{font-weight:600}
.journal-back{margin:var(--s6) 0 0;font-weight:600}

/* ---------- Entry ---------- */
.journal-entry h1{max-width:none;font-size:clamp(1.85rem,1.3rem + 2.3vw,3rem);line-height:1.08;margin-bottom:var(--s4);text-wrap:balance}
.journal-stamp{max-width:none}
.journal-seg{white-space:nowrap}
.journal-stamp .journal-owner{display:inline-flex;align-items:center;gap:var(--s2);color:var(--ink)}
.journal-stamp-extra{display:inline}
@media (min-width:960px){.journal-stamp-extra{display:none}}
.journal-figure{margin:var(--s5) 0 var(--s6)}
.journal-figure img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;background:var(--sheet);border:1px solid var(--rule)}
.journal-figure figcaption{margin-top:var(--s2);font:500 var(--t-label)/1.5 var(--mono);color:var(--ink-3)}
.journal-caption,.journal-credit{display:block}
.journal-credit{margin-top:var(--s2)}
.journal-nowrap{white-space:nowrap}

/* Reading text: a text serif at 18 to 19 px, line height 1.6, about 66 characters to the line. */
.journal-body{font-family:var(--reading);font-size:1.125rem;line-height:1.6;color:var(--ink);font-kerning:normal;font-variant-ligatures:common-ligatures}
@media (min-width:760px){.journal-body{font-size:1.1875rem}}
.journal-entry .journal-body p,.journal-entry .journal-body li{max-width:30em;color:var(--ink)}
.journal-body p{margin:0 0 1.05em}
.journal-body strong{font-weight:600}
.journal-body a{text-decoration-thickness:1px}
.journal-body h2{margin:var(--s6) 0 var(--s3);font-size:var(--t-h3);line-height:1.15}
.journal-body ul{margin:0 0 1.05em;padding-left:1.25rem;list-style:square}
.journal-body li{margin:.35em 0}
.journal-body li::marker{color:var(--mark)}
.journal-quote{margin:var(--s5) 0;padding:var(--s1) 0 var(--s1) var(--s4);border-left:2px solid var(--mark);max-width:30em}
.journal-quote blockquote{margin:0;quotes:"“" "”" "‘" "’"}
.journal-quote blockquote p{margin:0 0 var(--s2);font-style:italic;font-size:1.0625em}
.journal-quote blockquote p::before{content:open-quote}
.journal-quote blockquote p::after{content:close-quote}
.journal-quote figcaption{font:500 var(--t-label)/1.4 var(--mono);color:var(--ink-3)}

/* The note: the one thing to remember. The entry gives the fact; this block is the studio's written word on it, laid out like a row of the
   scope sheet on the home page: sheet tint, a small crimson square and a mono label in a band, a thin ink rule, then the text. */
.journal-entry>section.journal-note{margin:var(--s7) 0 var(--s6);padding:0;border:1px solid var(--ink);background:var(--sheet)}
.journal-note-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--s1) var(--s3);padding:var(--s2) var(--s4);background:var(--sheet-2);border-bottom:1px solid var(--ink)}
.journal-label{display:flex;align-items:center;gap:var(--s2);margin:0;font:500 var(--t-label)/1.4 var(--mono);letter-spacing:0;color:var(--ink)}
.journal-mark{flex:none;width:10px;height:10px;background:var(--mark)}
.journal-note-by{font:500 var(--t-label)/1.4 var(--mono);color:var(--ink-3)}
.journal-entry .journal-note-text{margin:0;padding:var(--s4) var(--s4) var(--s3);max-width:none;font:500 1.125rem/1.55 var(--sans);color:var(--ink)}
@media (min-width:760px){.journal-entry .journal-note-text{padding:var(--s5) var(--s5) var(--s4);font-size:1.1875rem}}

.journal-entry>section.journal-sources,.journal-entry>section.journal-corrections{max-width:min(100%,35.6rem);margin:var(--s6) 0 0;padding:var(--s4) 0 0;border-top:1px solid var(--rule)}
.journal-sources .journal-label,.journal-corrections .journal-label{color:var(--ink-3)}
.journal-source-list{margin:var(--s3) 0 0;padding-left:1.6rem}
.journal-source-list li{margin:var(--s2) 0;font-size:var(--t-small);line-height:1.5;color:var(--ink-2)}
.journal-source-list li::marker{font:500 var(--t-label) var(--mono);color:var(--ink-3)}
.journal-source-date{color:var(--ink-3)}
.journal-corrections ul{margin:var(--s3) 0 0;padding-left:1.25rem}
.journal-corrections li{font-size:var(--t-small);color:var(--ink-2)}
/* How the entry was made: one quiet line under the headline, where a reader meets it first. */
.journal-entry .journal-disclosure{max-width:min(100%,35.6rem);margin:0 0 var(--s2);padding:0;border:0;font-size:var(--t-small);line-height:1.55;color:var(--ink-2)}
.journal-pager{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--s4);margin-top:var(--s7)}
.journal-pager a{display:block;padding:var(--s3) 0 0;border-top:1px solid var(--ink);color:var(--ink);font:600 1.0625rem/1.25 var(--display);letter-spacing:-.01em;text-decoration:none;overflow-wrap:anywhere}
.journal-pager a span{display:block;margin-bottom:var(--s1);font:500 var(--t-label)/1.4 var(--mono);letter-spacing:0;color:var(--ink-3)}
.journal-pager a:hover{color:var(--accent)}
.journal-pager>span{display:none}
@media (min-width:640px){.journal-pager{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--s5)}.journal-pager .is-next{grid-column:2;text-align:right}.journal-pager>span{display:block}}

/* A phone reads the picture first: the facts of the rail (date, topic, reading time, sources) are in the stamp line and below, so the rail is for wide screens only. */
@media (max-width:959px){.journal-entry .page-rail{display:none}}

/* Windows high contrast: the crimson square and the rule of the day stamp are backgrounds, so they are redrawn in the text colour. */
@media (forced-colors:active){
  .journal-mark,.journal-flag::before{forced-color-adjust:none;background:CanvasText}
  .journal-day::after{forced-color-adjust:none;background:CanvasText}
}

@media print{
  .journal-mark,.journal-flag::before,.journal-day::after,.journal-note,.journal-note-head{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .journal-source-list a[href^="http"]::after{content:" (" attr(href) ")";overflow-wrap:anywhere;font-size:.85em}
  .journal-figure,.journal-note,.journal-quote,.journal-source-list li{break-inside:avoid}
  .journal-pager,.journal-archive,.journal-back{display:none}
  .journal-body{font-size:11pt}
}
