/* Layout: a single left-aligned text column (max 860px), like a LaTeX article page.
   Colours are taken from the author's own notes and figures:
   section headings #1F3A5F, links #0033a0 (figure blue), marks #9B2226, box background #EEF2F6. */
:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #5f5f5f;
  --rule: #cfcfcf;
  --head: #1f3a5f;
  --link: #0033a0;
  --mark: #9b2226;
  --box: #eef2f6;
  --fig-bg: #ffffff;
  --caramel: #f4e4c9;
  --caramel-line: #dcc29a;

  --serif: "Latin Modern", "CMU Serif", "Computer Modern Serif", Georgia, "Times New Roman", serif;
  --wrap: 860px;
  --gutter: clamp(16px, 4vw, 28px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161616; --ink: #e6e6e6; --muted: #a3a3a3; --rule: #3a3a3a;
    --head: #a9c1de; --link: #8fb0ff; --mark: #f08a8d; --box: #22262b; --fig-bg: #f4f4f4;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161616; --ink: #e6e6e6; --muted: #a3a3a3; --rule: #3a3a3a;
  --head: #a9c1de; --link: #8fb0ff; --mark: #f08a8d; --box: #22262b; --fig-bg: #f4f4f4;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--serif);
  font-kerning: normal;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px dotted var(--ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg); padding: 4px 8px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.eyebrow { font-size: .85rem; color: var(--muted); font-variant-caps: all-small-caps; letter-spacing: .04em; }

/* MASTHEAD */
.masthead { padding-block: 14px 0; }
.topline {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 18px;
  font-size: .95rem; padding-bottom: 6px; border-bottom: 1px solid var(--rule);
}
.nav { display: flex; flex-wrap: wrap; gap: 4px 16px; min-width: 64px; }
.controls { display: flex; align-items: center; gap: 10px; margin-left: auto; }   /* stays at the right edge when the market data wraps below it */
.controls button { background: none; border: 0; padding: 0; cursor: pointer; line-height: 0; }
.lang-flag .flag { display: block; width: 26px; height: auto; border: 1px solid var(--rule); border-radius: 2px; opacity: .45; transition: opacity .15s; }
.lang-flag:hover .flag, .lang-flag[aria-pressed="true"] .flag { opacity: 1; }
/* the language written under each flag, so that visitors see what the flags are for.
   The two flags differ in height (the US flag is 1.9:1, the Turkish 1.5:1), so each sits centred in a row of the
   same height: the labels then share one line and the theme button is centred on the flags. */
.controls { align-items: flex-start; }
.controls .lang-flag { display: grid; grid-template-rows: 20px auto; row-gap: 5px; align-items: center; justify-items: center; }
.lang-lab { font-size: .52rem; line-height: 1; letter-spacing: .08em; color: var(--muted); }
.lang-flag[aria-pressed="true"] .lang-lab { color: var(--ink); font-weight: 700; }
.controls #theme-toggle { height: 20px; padding: 0 3px; display: flex; align-items: center; }
.lang-flag[aria-pressed="true"] .flag { outline: 1.5px solid var(--ink); outline-offset: 1.5px; }
#theme-toggle { margin-left: 8px; padding: 3px; }
/* live market strip in the top bar; fixed widths so nothing moves when the language or the numbers change */
.live { flex: 1 1 auto; display: flex; justify-content: space-between; align-items: center; gap: 0; align-self: center; min-width: 0; }
.live-item { position: relative; display: grid; grid-template-columns: max-content 40px; grid-template-rows: auto auto auto; column-gap: 7px; width: auto; padding: 0 9px; border-left: 1px solid var(--rule); font-size: .7rem; line-height: 1.15; color: var(--muted); text-decoration: none; }
.live-item:hover { text-decoration: none; color: var(--muted); }
.live-name { grid-column: 1; grid-row: 1; font-variant-caps: all-small-caps; letter-spacing: .04em; white-space: nowrap; }
.live-val { grid-column: 1; grid-row: 2; font-size: .84rem; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.live-chg { grid-column: 2; grid-row: 2; font-size: .62rem; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.live-spark { grid-column: 2; grid-row: 1; width: 40px; height: 16px; overflow: visible; cursor: crosshair; }
.live-spark path { fill: none; stroke: var(--link); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.live-spark circle { fill: var(--link); }
.live-tip { position: absolute; top: calc(100% + 4px); right: 0; z-index: 5; padding: 2px 6px; background: var(--ink); color: var(--bg); font-size: .66rem; white-space: nowrap; border-radius: 2px; pointer-events: none; }
.live-off { opacity: .6; }
.live-item:first-child { border-left: 0; padding-left: 0; }
.live-item:last-child { padding-right: 0; }
/* change colours: muted green and red, lighter tones on the dark theme */
.live-chg.up { color: #2f7d4f; }
.live-chg.dn { color: #b23b3b; }
:root[data-theme="dark"] .live-chg.up { color: #6cc48f; }
:root[data-theme="dark"] .live-chg.dn { color: #e57373; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .live-chg.up { color: #6cc48f; }
  :root:not([data-theme="light"]) .live-chg.dn { color: #e57373; }
}
/* source and date of the last observation; a dot marks the live trade feeds */
.live-when { grid-column: 1 / -1; grid-row: 3; margin-top: 1px; font-size: .58rem; color: var(--muted); opacity: .85; white-space: nowrap; }
.live-dot { display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: #3fa36b; vertical-align: 1px; }
.live-spark .live-base { stroke: var(--muted); stroke-width: .6; stroke-dasharray: 1.5 1.5; opacity: .6; vector-effect: non-scaling-stroke; }
@media (max-width: 980px) { .live { order: 3; flex-basis: 100%; padding-top: 4px; } }
.theme-dot { display: block; width: 15px; height: 15px; border-radius: 50%; background: #d7191c; box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 2.5px #d7191c; transition: transform .15s; }
#theme-toggle:hover .theme-dot { transform: scale(1.15); }

.titleblock { display: flex; gap: 18px; align-items: center; padding-block: 4px 12px; }
/* wide screens: the description line sits above the portrait and the name, beside the indicators and Jale,
   so it takes no height of its own */
@media (min-width: 721px) {
  .titleblock { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 24px; row-gap: 12px; align-items: center; padding-block: 8px 10px; }
  .titleblock > .masthead-lede { grid-column: 1; grid-row: 1; align-self: start; padding-left: 19px; }   /* text in line with the name */
  .titleblock > div { grid-column: 1; grid-row: 2; }
  .titleblock > .portrait { grid-column: 2; grid-row: 1 / 3; align-self: center; width: auto; height: 127px; aspect-ratio: 3 / 4; margin-bottom: 23px; }   /* from the top rule of the indicators box to the foot of Jale's photos (the caption below them is 23px) */
  .titleblock > .jale { grid-column: 3; grid-row: 1 / 3; align-self: center; }
}
/* the one-line description of the site, in the dark space above the name */
.lede.masthead-lede { flex: 0 0 100%; max-width: none; margin: 0; font-size: .95rem; font-style: italic; color: var(--muted); }
.titleblock > div { flex: 1 1 0; min-width: 0; }
.jale { margin: 0 0 0 auto; flex: none; text-align: center; display: flex; flex-direction: column; width: max-content; }
.jale-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: 0; min-width: 100%; }   /* takes the width of the indicators box above, adds none of its own */
/* headline numbers above Jale's photos; same width as the photo grid, one line per row in both languages */
.macro { display: grid; grid-template-columns: 1fr auto auto; column-gap: 6px; row-gap: 1px; width: auto; min-width: 172px; margin: 0 0 6px; padding: 3px 0; border: 0; border-block: 1px solid var(--rule); background: none; color: var(--muted); font: inherit; font-size: .64rem; line-height: 1.25; text-align: left; cursor: zoom-in; }
.macro:hover .macro-v { color: var(--link); }
.macro-l { white-space: nowrap; }
.macro-v { color: var(--ink); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.macro-p { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.macro-h { grid-column: 1 / -1; color: var(--ink); font-variant-caps: all-small-caps; letter-spacing: .05em; font-weight: 700; }
.macro-h { padding-bottom: 2px; margin-bottom: 1px; border-bottom: 1px dotted var(--rule); }
.jale-thumb { padding: 0; border: 1px solid var(--rule); background: none; cursor: zoom-in; display: block; }
.jale-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .15s; }
.jale-me { display: none; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: var(--bg); border: 1px solid var(--rule); }   /* the portrait in the Jale row: narrow screens only */
.jale-thumb:hover img { opacity: .8; }
.jale figcaption { white-space: nowrap; min-width: 172px; font-size: .82rem; font-style: italic; color: var(--muted); margin-top: 3px; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.86); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 92vh; width: auto; height: auto; box-shadow: 0 6px 30px rgba(0,0,0,.5); }
.lb-close { position: absolute; top: 10px; right: 16px; background: none; border: 0; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.portrait { width: auto; height: 104px; aspect-ratio: 3 / 4; object-fit: contain; border: 1px solid var(--rule); border-radius: 2px; padding: 2px; background: var(--bg); box-shadow: 0 1px 4px rgba(0,0,0,.28); flex: none; }
.titleblock h1 { font-size: clamp(1.45rem, 3.3vw, 1.8rem); line-height: 1.15; }
.affil { color: var(--muted); margin-top: 4px; }
.contact { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 8px; font-size: .86rem; letter-spacing: .01em; }
.contact a, .footer-links a { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ico { width: 1em; height: 1em; flex: none; }
/* PDF icon (same drawing as the indicators download button) for every PDF link */
/* the LaTeX logo set in type (raised small A, lowered E), as in the \LaTeX command */
.latex { white-space: nowrap; letter-spacing: 0; text-decoration: none; cursor: inherit; }
.latex i { font-style: normal; }
.latex-a { font-size: .75em; vertical-align: .25em; margin-left: -.36em; margin-right: -.15em; text-transform: uppercase; }
.latex-e { position: relative; top: .22em; margin-left: -.1667em; margin-right: -.125em; text-transform: uppercase; }
.pdf-ico { display: inline-block; width: 1.05em; height: 1.22em; vertical-align: -.25em; flex: none; color: #1f3a5f; }
.doc-bar-dl .pdf-ico { margin-left: 2px; }
.stats-pdf a { display: inline-flex; align-items: center; gap: 4px; }
.stats-pdf .pdf-ico { width: 1.45em; height: 1.7em; vertical-align: 0; }
.contact .ico { width: .95em; height: .95em; color: var(--muted); }
.contact .pdf-ico { width: .95em; height: 1.1em; }

/* QUOTE LINE: moves on its own, slowly; pauses under the pointer */
.ticker { overflow: hidden; border-block: 1px solid var(--rule); }
.ticker-track {
  display: flex; width: max-content; gap: 64px; padding: 5px 0; will-change: transform;
  animation: ticker var(--ticker-duration, 400s) linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.quote { white-space: nowrap; font-style: italic; font-size: .95rem; color: var(--ink); }
.quote cite { font-style: normal; color: var(--muted); margin-left: 8px; font-size: .88rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* INTRO */
.intro { padding-block: 14px 18px; display: grid; grid-template-columns: minmax(0, 1fr) 172px; gap: 32px; align-items: start; }
.intro-text { min-width: 0; align-self: stretch; display: flex; flex-direction: column; }
/* signature + reading list: the row fills the rest of the intro, so the box ends level with the music box */
.intro-row { flex: 1; display: flex; align-items: stretch; gap: 12px; }
.sig-col { flex: none; width: 336px; display: flex; flex-direction: column; }
.sig-col .signature { align-self: flex-start; }
/* "Hugg!! Read!" drawing: its feet stand on the top edge of the indicators card, right of the signature;
   64px high, so it stays below the intro text.
   The card's top is 64px below the column top (signature: 8px margin + 46px high; card: 10px margin). */
.sig-col { position: relative; }
.sig-hug { position: absolute; left: auto; right: 6px; top: 65px; height: 64px; width: auto; transform: translateY(-100%); pointer-events: none; z-index: 1; }
.sig-hug-d { display: none; }
:root[data-theme="dark"] .sig-hug-l { display: none; }
:root[data-theme="dark"] .sig-hug-d { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sig-hug-l { display: none; }
  :root:not([data-theme="light"]) .sig-hug-d { display: block; }
}
/* macroeconomic indicators card: pushed to the bottom of the column, its foot level with "daily-musiclog" */
.doc-card { position: relative; flex: 1; display: flex; flex-direction: column; margin: 10px 0 -31px; }
.doc-thumb { position: relative; flex: 1; min-height: 110px; display: block; width: 100%; padding: 0; border: 2.5px solid #b98a4e; background: #fff; cursor: zoom-in; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.18); }   /* deeper caramel frame */
.doc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .15s; }
.doc-thumb:hover img { opacity: .85; }
.doc-dl { position: absolute; right: 5px; bottom: 33px; display: block; width: 25px; height: 29px; padding: 2px 2px 1px; background: var(--caramel); color: #1f3a5f; border: 1px solid var(--caramel-line); line-height: 0; }
.doc-dl svg { width: 100%; height: 100%; }
.doc-dl:hover { background: #fff; border-color: #1f3a5f; }
.doc-note { flex: none; display: flex; align-items: flex-start; justify-content: flex-end; gap: 4px; margin-top: 2px; padding-right: 12px; font-size: .86rem; font-style: italic; color: var(--muted); white-space: nowrap; }
.doc-note .doc-arrow { width: 42px; height: 27px; transform: scaleX(-1); margin-top: -3px; }
.fields { margin: 3px 0 0; font-size: .8rem; }
.doc-note-text { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.doc-note-text small { font-size: .78em; }
/* both languages are in the page; the hidden one keeps its space, so switching language never moves the layout */
.stack { display: grid; }
.stack > [lang] { grid-area: 1 / 1; }
html[lang="tr"] .stack > [lang="en"], html:not([lang="tr"]) .stack > [lang="tr"] { visibility: hidden; }
.fields .sep { color: var(--muted); margin: 0 .25em; }
/* fields: a line breaks only between fields. Every field carries its "|" in front; the one that would
   start a line sits in the negative margin and is clipped, so no line begins or ends with a bar. */
.fields { overflow: hidden; }
.fields > [lang] { display: flex; flex-wrap: wrap; margin-left: -1.1em; }
.fields .fi { white-space: nowrap; }
.fields .fi::before { content: "|"; display: inline-block; width: 1.1em; text-align: center; color: var(--muted); }
.doc-lb { display: block; overflow-y: auto; padding: 0 12px 24px; cursor: default; }
.doc-bar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 14px; max-width: 1300px; margin: 0 auto 12px; padding: 10px 2px; background: rgba(0,0,0,.86); color: #fff; font-size: .85rem; }
.doc-bar-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-bar-dl { color: #fff; border: 1px solid rgba(255,255,255,.6); padding: 3px 9px; font-size: .8rem; white-space: nowrap; }
.doc-bar-dl:hover { background: #fff; color: #1f3a5f; text-decoration: none; }
.doc-bar-close { background: none; border: 0; color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.doc-pages img { display: block; width: 100%; max-width: 1300px; height: auto; margin: 0 auto 14px; background: #fff; box-shadow: 0 6px 30px rgba(0,0,0,.5); }
/* reading list + release calendar share the right-hand column; the calendar ends level with the indicators card */
/* top level with the useful websites box, bottom level with the music box */
.read-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; margin: 0 -16px 0 0; }
.reading-box { flex: none; min-width: 0; height: 150px; display: flex; flex-direction: column; }
.reading-scroll { flex: 1 1 auto; height: 0; }
.reading-ul li { font-size: .74rem; line-height: 1.32; padding: 1px 0 1px 10px; text-indent: -10px; color: #1a1a1a; }
.reading-ul li i { color: #1f3a5f; }
.book-orig { font-family: "Geeza Pro", "Noto Naskh Arabic", "Times New Roman", serif; font-size: .9rem; color: #1f3a5f; unicode-bidi: isolate; }
.book-author { color: var(--muted); }
/* light caramel in both themes, with its own dark text colours */
.side { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; align-content: start; }
.side > * { min-width: 0; }
.links-box { border: 1px solid var(--caramel-line); background: var(--caramel); padding: 6px 0 0; color-scheme: light; --link: #0033a0; --head: #1f3a5f; --muted: #6b5a43; }
.links-title { font-size: .8rem; color: var(--head); padding: 0 7px 4px; border-bottom: 1px solid var(--caramel-line); margin: 0; }
.links-scroll { height: 150px; overflow-y: auto; padding: 0 7px; }
#links-scroll { height: 236px; }
.links-scroll:focus-visible { outline-offset: -2px; }
.links-group { font-size: .68rem; color: var(--muted); font-variant-caps: all-small-caps; letter-spacing: .05em; margin: 8px 0 2px; }
.links-scroll ul { list-style: none; margin: 0; padding: 0; }
.links-scroll li a { display: flex; align-items: flex-start; gap: 5px; padding: 1px 0; font-size: .74rem; line-height: 1.3; }
.fav { width: 13px; height: 13px; margin-top: 1px; flex: none; border-radius: 3px; background: #fff; }
.music-head { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-head a { color: inherit; }
.music-body { position: relative; padding: 7px 7px 13px; }
/* two panels (latest entry, heat map of the log) side by side; swiping or the two dots change the panel */
.music-slides { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.music-slides::-webkit-scrollbar { display: none; }
.music-slides:focus-visible { outline-offset: 2px; }
.music-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.music-now { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 2px 7px; align-items: start; }
.music-cal { display: flex; align-items: center; justify-content: center; }
.music-cal svg { display: block; flex: none; }
.music-cal rect { fill: rgba(255, 255, 255, .62); }
.music-cal rect.c1 { fill: #a9b8e0; }
.music-cal rect.c2 { fill: #5774c7; }
.music-cal rect.c3 { fill: #0033a0; }
.music-cal a:hover rect { stroke: #1f3a5f; stroke-width: 1; }
.music-cal text { font-size: 6.5px; fill: var(--muted); }
.music-dots { position: absolute; left: 0; right: 0; bottom: 1px; display: flex; justify-content: center; gap: 2px; }
.music-dot { width: 14px; height: 11px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.music-dot::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #c9ad7c; }
.music-dot[aria-pressed="true"]::after { background: var(--head); }
.music-play { display: block; position: relative; width: 100%; padding: 0; border: 1px solid var(--caramel-line); background: #000; cursor: pointer; }
.music-play img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .92; }
.music-play:hover img { opacity: 1; }
.music-btn { position: absolute; left: 50%; top: 50%; width: 22px; height: 15px; margin: -7.5px 0 0 -11px; border-radius: 4px; background: #d7191c; }
.music-btn::after { content: ""; position: absolute; left: 8px; top: 4px; border-style: solid; border-width: 3.5px 0 3.5px 6px; border-color: transparent transparent transparent #fff; }
.music-play.is-playing { cursor: default; }
.music-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.music-meta { color: var(--muted); font-size: .64rem; line-height: 1.3; }
.music-note { display: flex; align-items: flex-end; gap: 5px; font-size: 1rem; font-style: italic; color: var(--muted); padding-left: 26px; position: absolute; top: 100%; left: 0; margin-top: 2px; width: max-content; }
.music-note:hover { color: var(--link); text-decoration: none; }
.music-note:hover span { text-decoration: underline; }
.music-arrow { width: 42px; height: 27px; flex: none; color: var(--mark); }
/* useful statistical tables: a second row of the intro grid, right column only, so the
   indicators card keeps lining up with the daily-musiclog caption above it */
.intro { row-gap: 38px; }   /* the captions under the indicators card and the music box hang 31px below their boxes */
.stats-box { grid-column: 2; grid-row: 2; }
/* Bugünün yazısı: row 2, left column, top part only (room is left below it for another box) */
.today-box { grid-column: 1; grid-row: 2; align-self: start; margin-right: -16px; }
.today-body { padding: 10px 14px 12px; }
.today-title { display: block; font-size: 1.12rem; font-weight: 700; line-height: 1.3; color: #1f3a5f; }
.today-title:hover { color: var(--link); }
.today-meta { margin: 3px 0 0; font-size: .78rem; color: var(--muted); font-variant-caps: all-small-caps; letter-spacing: .04em; }
.today-ex { margin: 7px 0 0; font-size: .95rem; line-height: 1.5; color: #1a1a1a; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.today-foot { margin: 8px 0 0; display: flex; justify-content: space-between; gap: 12px; font-size: .86rem; }
.today-earlier { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--caramel-line); font-size: .82rem; color: var(--muted); }
.today-earlier a { color: var(--link); }
/* posts/bugunun-yazisi.html */
.today-archive { list-style: none; padding: 0; margin: 18px 0 0; }
.today-archive li { padding: 10px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 2px 16px; }
.today-archive time { color: var(--muted); font-size: .9rem; }
.today-archive a { font-weight: 700; }
.today-archive p { grid-column: 2; margin: 0; font-size: .92rem; color: var(--muted); }
.note-body bdi[lang="ar"] { white-space: nowrap; font-family: "Geeza Pro", "Noto Naskh Arabic", "Amiri", "Times New Roman", serif; font-size: 1.08em; }
/* Lisans ders notlarım: course list under the chips */
.course-panel { margin: 4px 0 14px; padding: 10px 14px 12px; border: 1px solid var(--rule); }
.course-head { margin: 0 0 4px; font-size: .9rem; color: var(--muted); font-style: italic; }
.course-term { margin: 10px 0 4px; font-size: .8rem; font-variant-caps: all-small-caps; letter-spacing: .05em; color: var(--muted); font-weight: 400; }
.course-list, .course-items { list-style: none; margin: 0; padding: 0; }
.course-list > li { border-top: 1px solid var(--rule); }
.course-list summary { cursor: pointer; padding: 5px 0; }
.course-code { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 6px; }
.course-items { padding: 0 0 8px 1.4em; }
.course-items li { padding: 2px 0; }
.course-items .pdf-ico { margin-left: 4px; }
.course-none { margin: 0 0 8px 1.4em; font-size: .9rem; color: var(--muted); }
/* the statistical tables list is never scrolled: the box grows with it (also on phones, where .links-scroll gets 150px) */
.links-scroll.stats-scroll { height: auto; overflow: visible; padding-bottom: 2px; }
.stats-item { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 1px 0 1px 10px; text-indent: -10px; font: inherit; font-size: .74rem; line-height: 1.3; color: var(--link); cursor: pointer; }
.stats-item:hover { text-decoration: underline; }
.stats-pdf { margin: 4px 0 0; padding: 0 7px 6px; font-size: .74rem; }
.stats-g { break-inside: avoid; }
/* wide screens: the tables box is as tall as the "latest piece" box beside it; the list scrolls inside it
   (the box adds nothing to the row height: height 0, then min-height 100% of the row) */
@media (min-width: 721px) {
  .intro:has(#today-box:not([hidden])) .stats-box { align-self: stretch; height: 0; min-height: 100%; display: flex; flex-direction: column; }
  .intro:has(#today-box:not([hidden])) .links-scroll.stats-scroll { flex: 1 1 auto; height: 0; overflow-y: auto; padding-bottom: 0; }
  .intro:has(#today-box:not([hidden])) .stats-box .stats-pdf { flex: none; margin: 0; padding: 5px 7px 6px; border-top: 1px solid var(--caramel-line); }
}
@media (max-width: 720px) and (min-width: 330px) { #stats-list { columns: 2; column-gap: 18px; } #stats-list .stats-g { padding-top: 8px; } #stats-list .links-group { margin-top: 0; } }
.tab-lb { place-items: normal; }
/* reading list: closing line in the box + full list in the notes format */
.reading-more { margin: 8px 0 6px; font-size: .68rem; font-style: italic; color: var(--muted); line-height: 1.3; }
.rl-intro { font-style: italic; color: var(--muted); }
.cal-open:hover { text-decoration: underline; }
/* Veri takvimi (release calendar) */
.cal-box { flex: 1 1 auto; min-height: 168px; display: flex; flex-direction: column; --tr: #b3261e; --us: #1f3a5f; --cn: #c08400; --ap: #00838f; --eu: #6a3d9a; --af: #2e7d32; }
.cal-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cal-open { background: none; border: 0; padding: 0; font: inherit; font-size: .7rem; font-weight: 400; color: var(--link); cursor: pointer; white-space: nowrap; }
.cal-open:hover { text-decoration: underline; }
.cal-body { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: 162px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.cal-month { display: flex; flex-direction: column; min-height: 0; padding: 3px 5px 4px 6px; border-right: 1px solid var(--caramel-line); }
.cal-nav { display: flex; align-items: center; justify-content: space-between; font-size: .72rem; color: var(--head); font-weight: 700; margin-bottom: 1px; }
.cal-step, .cal-lb-step { background: none; border: 0; padding: 0 5px; font: inherit; font-size: 1rem; line-height: 1; color: var(--link); cursor: pointer; }
.cal-step:disabled { color: #b9a68a; cursor: default; }
.cal-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; }
.cal-wd { font-size: .58rem; text-align: center; color: var(--muted); line-height: 1.3; }
.cal-day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; padding: 0; border: 1px solid transparent; background: none; font: inherit; font-size: .64rem; line-height: 1; color: #1a1a1a; cursor: pointer; font-variant-numeric: tabular-nums; }
.cal-day.cal-we { color: #8a7a64; }
.cal-day:hover { background: rgba(255,255,255,.55); }
.cal-day.is-sel { background: #fff; border-color: var(--caramel-line); }
.cal-day.is-today > span:first-child { color: #fff; background: var(--mark); border-radius: 50%; width: 1.45em; height: 1.45em; display: grid; place-items: center; font-weight: 700; }
.cal-dots { display: flex; gap: 1px; height: 4px; margin-top: 1px; }
.cal-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--c); }
.cal-tr { --c: var(--tr); } .cal-us { --c: var(--us); } .cal-cn { --c: var(--cn); } .cal-ap { --c: var(--ap); } .cal-eu { --c: var(--eu); } .cal-af { --c: var(--af); }
.cal-list { min-height: 0; overflow-y: auto; padding: 3px 7px 4px; font-size: .7rem; line-height: 1.3; color: #1a1a1a; }
.cal-list-head { margin: 0 0 3px; font-weight: 700; color: var(--head); font-size: .72rem; }
.cal-list-head span { font-weight: 400; color: var(--muted); }
.cal-list ul, .cal-plist, .cal-srcs { list-style: none; margin: 0; padding: 0; }
.cal-ev { display: grid; grid-template-columns: 2.6em minmax(0, 1fr); gap: 0 4px; padding: 2px 0 2px 5px; border-left: 2px solid var(--c); margin-bottom: 2px; }
.cal-ev-time { color: var(--muted); font-variant-numeric: tabular-nums; cursor: help; }
.cal-ev-orig { display: block; font-size: .72em; line-height: 1.2; }
.cal-ev-main { min-width: 0; overflow-wrap: anywhere; }
.cal-tag { display: inline-block; font-size: .78em; line-height: 1.25; padding: 0 2px; border: 1px solid var(--c); color: var(--c); border-radius: 2px; letter-spacing: .02em; }
.cal-ev-per, .cal-ev-src { color: var(--muted); }
.cal-none { margin: 2px 0; color: var(--muted); }
.cal-jump { display: inline; background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; text-align: left; }
.cal-jump:hover { text-decoration: underline; }
.cal-tz, .cal-old { margin: 6px 0 0; font-size: .62rem; color: var(--muted); font-style: italic; }
.cal-old { margin: 0 0 4px; color: var(--mark); }
.cal-legend { margin: 4px 0 0; font-size: .62rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 8px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 3px; }
.cal-legend .cal-dot { width: 6px; height: 6px; }
/* the month panel drawn as a wall calendar: a dark month bar, a weekday row and ruled day cells,
   so the box reads as a calendar at first glance and does not look like the other caramel boxes */
.cal-box { --mark: #9b2226; }
.cal-title-wrap { display: inline-flex; align-items: center; gap: 6px; }
.cal-ico { width: .95em; height: .95em; color: var(--head); flex: none; }
.cal-month { padding: 0 6px 6px 8px; }
.cal-nav { margin: 0 -6px 0 -8px; padding: 3px 2px; background: var(--head); color: #fff; font-size: .74rem; letter-spacing: .02em; }
.cal-nav .cal-step { color: #fff; }
.cal-nav .cal-step:disabled { color: rgba(255, 255, 255, .35); }
.cal-nav .cal-step:not(:disabled):hover { color: #f4e4c9; }
.cal-grid { gap: 0; margin-top: 4px; border-top: 1px solid var(--caramel-line); border-left: 1px solid var(--caramel-line); background: #fffdf7; }
.cal-wd, .cal-grid .cal-day, .cal-blank { border: 0; border-right: 1px solid var(--caramel-line); border-bottom: 1px solid var(--caramel-line); }
.cal-wd { padding: 1px 0; background: #ead8b6; color: var(--head); font-weight: 700; font-size: .56rem; letter-spacing: .03em; }
.cal-wd.cal-we { color: #8a6d45; }
.cal-blank { background: repeating-linear-gradient(135deg, transparent 0 3px, rgba(160, 130, 90, .12) 3px 4px); }
.cal-grid .cal-day.cal-we { background: #f7eddc; }
.cal-grid .cal-day.has-ev > span:first-child { font-weight: 700; }
.cal-grid .cal-day:hover { background: #fff; }
.cal-grid .cal-day.is-sel { background: #fff; box-shadow: inset 0 0 0 1.5px var(--head); }
/* full-month viewer */
.cal-lb-head { display: flex; align-items: center; justify-content: center; gap: 6px; }
.cal-lb-head > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cal-lb-step { color: #fff; font-size: 1.5rem; padding: 0 8px; }
.cal-lb-step:disabled { color: rgba(255,255,255,.3); cursor: default; }
.cal-panel { width: min(860px, 100%); min-width: 0; --tr: #b3261e; --us: #1f3a5f; --cn: #c08400; --ap: #00838f; --eu: #6a3d9a; --af: #2e7d32; --muted: #5f5f5f; --link: #0033a0; }
.cal-chips { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; }
.cal-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .92rem; }
.cal-chip[aria-pressed="true"] { color: #1a1a1a; font-weight: 700; }
.cal-chip .cal-dot { width: 8px; height: 8px; }
.cal-pday { margin: 14px 0 4px; font-size: .95rem; color: #1f3a5f; border-bottom: 1px solid #e2e2e2; padding-bottom: 2px; }
.cal-pday.is-today { color: #9b2226; }
.cal-plist .cal-ev { grid-template-columns: 5.4em minmax(0, 1fr); font-size: .9rem; line-height: 1.4; padding: 3px 0 3px 8px; margin-bottom: 3px; }
.cal-srcs li { font-size: .85rem; padding: 2px 0; }
.cal-srcs span { color: #5f5f5f; }
.tab-panel { width: min-content; min-width: min(640px, 100%); max-width: min(1300px, 100%); margin: 0 auto; background: #fff; color: #1a1a1a; padding: 18px 20px 22px; box-shadow: 0 6px 30px rgba(0,0,0,.5); color-scheme: light; }
.tab-title { margin: 0 0 6px; font-size: 1.1rem; color: #1f3a5f; }
.tab-note { margin: 0 0 14px; font-size: .84rem; line-height: 1.45; max-width: 110ch; color: #333; }
.tab-src { margin-top: -8px; color: #555; }
.tab-scroll { overflow: auto; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); overscroll-behavior: contain; border-bottom: 1px solid #e2e2e2; }
.tab-part { margin: 16px 0 6px; font-size: .9rem; font-weight: 600; color: #1f3a5f; }
.tab-hint { margin: 0 0 6px; font-size: .78rem; color: #6b5a43; }
.tab-more { margin: -6px 0 14px; font-size: .84rem; color: #333; max-width: 110ch; }
.tab-more summary { cursor: pointer; color: #0033a0; width: fit-content; }
.tab-more[open] summary { margin-bottom: 6px; }
.tab-more .tab-note { margin-bottom: 8px; }
.tab-more .tab-src { margin-top: 0; }
.tab-refs { margin-top: 16px; padding-top: 8px; border-top: 1px solid #c9c9c9; font-size: .78rem; line-height: 1.45; color: #333; }
.tab-refs-h { margin: 0 0 4px; font-weight: 600; color: #1f3a5f; }
.tab-refs p:not(.tab-refs-h) { margin: 0 0 4px; padding-left: 1.27cm; text-indent: -1.27cm; overflow-wrap: anywhere; }
.tab-refs a { color: #0033a0; }
.stat-table { border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .8rem; margin: 0 auto 0 0; }
.stat-table th, .stat-table td { padding: 2px 7px; text-align: right; white-space: nowrap; }
.stat-table thead th { border-bottom: 1px solid #1a1a1a; color: #1f3a5f; font-weight: 600; text-align: center; position: sticky; top: 0; z-index: 2; background: #fff; }
.stat-table thead tr:last-child th { box-shadow: inset 0 -1px 0 #1a1a1a; }
.stat-table thead tr:first-child th { border-top: 1.5px solid #1a1a1a; }
.stat-table thead tr:not(:last-child) th { border-bottom-color: #c9c9c9; }
.stat-table tbody:last-child tr:last-child > * { border-bottom: 1.5px solid #1a1a1a; }
.stat-table th.rl { text-align: left; color: #1f3a5f; font-weight: 600; position: sticky; left: 0; background: #fff; z-index: 1; }
.stat-table thead th.rl { z-index: 3; }
.stat-table tr.gap > * { padding-bottom: 7px; }
.stat-table tr.sub th { text-align: left; font-style: italic; font-weight: 400; color: #6b5a43; padding-top: 10px; border-top: 1px solid #c9c9c9; position: static; white-space: normal; }
.stat-table tr.sub th span { position: sticky; left: 7px; display: inline-block; max-width: min(86vw, 900px); }
.stat-table tbody tr:not(.sub):hover > * { background: #f3ead9; }
.stat-table.dw td:nth-child(odd) { padding-right: 12px; }
.stat-table.tight th, .stat-table.tight td { padding-left: 4px; padding-right: 4px; }
.stat-table.tight tr.sub th span { left: 4px; }
.stat-table.tight { width: 100%; }
.stat-table.tighter { font-size: .74rem; }
.stat-table.tighter th, .stat-table.tighter td { padding-left: 3px; padding-right: 3px; }
.fav-letter { display: inline-grid; place-items: center; font-size: .62rem; font-weight: 700; color: var(--bg); background: var(--head); }
.lede { max-width: 68ch; }
.signature { width: 160px; margin-top: 8px; opacity: .9; }
:root[data-theme="dark"] .signature { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .signature { filter: invert(1); } }

/* SECTIONS — styled like \section in the author's notes */
.block { padding-block: 16px 4px; }
.block h2 {
  font-size: 1.3rem; color: var(--head);
  padding-bottom: 3px; border-bottom: 1px solid var(--rule); margin-bottom: 10px;
}
.block-head h2 { margin-bottom: 4px; }
#writing .block-head h2, #projects .block-head h2 { margin-bottom: 10px; }
.block-note { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }

/* PROJECTS: two-column grid of figure + caption */
.repo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 26px; }
.repo-grid.featured { margin-bottom: 22px; }
.repo-grid > p:only-child { grid-column: 1 / -1; }
.repo { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.repo-fig { display: block; background: var(--fig-bg); border: 1px solid var(--rule); padding: 6px; margin-bottom: 4px; }
.repo-fig img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.repo h3 { font-size: 1.05rem; line-height: 1.3; overflow-wrap: anywhere; }
.repo p { font-size: .93rem; line-height: 1.45; }
.repo-meta { color: var(--muted); font-size: .85rem !important; }
.more-row { grid-column: 1 / -1; }
#post-more-row { margin: 12px 0 0; }
.more { background: none; border: 0; padding: 0; cursor: pointer; color: var(--link); }
.more:hover { text-decoration: underline; }

/* WRITING */
.filters { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .95rem; }
.chip { background: none; border: 0; padding: 0; cursor: pointer; color: var(--link); }
.chip[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.chip .count { color: var(--muted); font-weight: 400; margin-left: 3px; }
.chip .count::before { content: "("; }
.chip .count::after { content: ")"; }
.search input {
  font: inherit; font-size: .92rem; padding: 2px 6px; width: 200px; max-width: 100%;
  border: 0; border-bottom: 1px solid var(--rule); background: transparent; color: var(--ink);
}
.search input:focus { outline: none; border-bottom-color: var(--ink); }
.post-list { list-style: none; margin: 0; padding: 0; }
.post { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 0 14px; padding: 5px 0; }
.post time { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.post .post-title { font-weight: 700; }
.post .post-cat { grid-column: 2; color: var(--mark); font-size: .85rem; font-variant-caps: all-small-caps; letter-spacing: .03em; }
.post .post-sum { grid-column: 2; font-size: .93rem; }
.empty { padding: 6px 0; color: var(--muted); font-style: italic; }

/* RESEARCH */
#research { padding-block: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 0 34px; }
.two-col > div { padding-block: 16px 4px; min-width: 0; }
.tags { margin: 0; padding-left: 1.2em; display: grid; gap: 2px; }
.pubs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pubs li { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 10px; }
.pub-year { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.pub-title { font-style: italic; line-height: 1.4; }
.pub-meta { color: var(--muted); font-size: .88rem; margin-top: 2px; }

/* EDUCATION */
.cv-grid { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.cv-grid dt { color: var(--muted); font-variant-caps: all-small-caps; letter-spacing: .04em; }
.cv-grid dd { margin: 0; display: grid; gap: 2px; }
.pills { display: block !important; }
.pills span + span::before { content: " · "; color: var(--muted); }

/* FOOTER */
.footer { margin-top: 18px; padding-block: 0 18px; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-inner::before { content: ""; flex: 0 0 100%; height: 1px; background: var(--rule); margin-bottom: 2px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }

/* POST PAGES — the web version of the author's LaTeX "Bilgi Notu" template */
.note { max-width: 760px; padding-block: 18px 40px; }
.note-nav { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .92rem; margin-bottom: 26px; }
.note-nav-r { display: flex; align-items: baseline; gap: 18px; }
.ver-switch { color: var(--muted); }
.ver-switch button { background: none; border: 0; padding: 0 2px; cursor: pointer; color: var(--link); font: inherit; }
.ver-switch button[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.post-lang { letter-spacing: .06em; }
.note-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  font-size: .9rem; padding-bottom: 3px; border-bottom: 0.5px solid var(--ink);
}
.note-title { border-collapse: collapse; margin: 18px 0 14px; width: 100%; }
.note-title th { text-align: left; vertical-align: baseline; white-space: nowrap; padding: 2px 10px 2px 0; font-weight: 700; width: 1%; }
.note-title td { padding: 2px 0; vertical-align: baseline; }
.note-title h1 { font-size: 1.32rem; line-height: 1.3; }
.simple-title { font-size: clamp(1.5rem, 4vw, 1.9rem); line-height: 1.2; margin: 18px 0 14px; }
.draft-flag { color: var(--mark); font-size: .8em; letter-spacing: .05em; }

.note-body { font-size: 1.04rem; line-height: 1.55; counter-reset: sec; }
.note-body > * + * { margin-top: .6em; }
.note-body h2 { font-size: 1.04rem; color: var(--head); margin-top: 1.3em; }
.note-note h2::before { counter-increment: sec; content: counter(sec) ".\2002"; }
.note-note h2.nonum::before { content: none; counter-increment: none; }
/* reference list inside the notes: APA hanging indent of 1.27 cm (first entry marked {: .ref}) */
.note-body .footnote p.ref, .note-body .footnote p.ref ~ p { margin: 0 0 .45em; padding-left: 1.27cm; text-indent: -1.27cm; }
/* long essays wrapped in <div class="indent">: first-line indent of 1.27 cm for paragraphs that follow a paragraph */
.note-body .indent > p + p { text-indent: 1.27cm; }
/* inside .indent the paragraphs follow each other without a gap (indentation marks the new paragraph); other blocks keep a gap */
.note-body .indent > :is(table, ul, ol, blockquote, pre, div) { margin-top: .6em; }
.note-body .indent > :is(table, ul, ol, blockquote, pre, div) + p { margin-top: .6em; }
.note-body h3 { font-size: 1rem; font-style: italic; margin-top: 1em; }
.note-body ul, .note-body ol { padding-left: 1.4em; margin-block: .4em; }
.note-body li + li { margin-top: .15em; }
.note-body mark { background: #fff36b; color: #111; padding: 0 .1em; }
.note-body .name { color: var(--mark); }
.note-body a { text-decoration: underline; text-decoration-thickness: .5px; text-underline-offset: 2px; }
/* epigraph: quotations at the head of a piece, set to the right, each with its source below */
.note-body .epigraph { width: min(100%, 30em); margin: .2em 0 1.4em auto; font-size: .94rem; line-height: 1.45; }
.note-body .epigraph .epi-q { font-style: italic; margin: 0; }
.note-body .epigraph .epi-src { margin: .15em 0 .9em; text-align: right; color: var(--muted); font-size: .9em; }
.note-body .epigraph .epi-src::before { content: "— "; }
.note-body .epigraph .epi-src:last-child { margin-bottom: 0; }
.note-body blockquote { margin: 0; padding-left: 14px; border-left: 1px solid var(--rule); font-style: italic; }
.box { border: 1px solid var(--head); background: var(--box); padding: 8px 12px; }
.box.cols { column-count: 2; column-gap: 22px; }
.box-title { column-span: all; color: var(--head); font-weight: 700; margin-bottom: 4px; }
.box > p + p { margin-top: .5em; }
.scope { font-size: .92rem; margin-top: 1.2em !important; }
.note-body figure { margin: 1em 0; }
.note-body figure img { margin-inline: auto; border: 1px solid var(--rule); background: var(--fig-bg); }
.note-body figcaption { font-size: .9rem; margin-top: 5px; }
.note-body table:not(.note-title) { border-collapse: collapse; display: block; overflow-x: auto; font-size: .95rem; }
.note-body th, .note-body td { padding: 3px 12px 3px 0; text-align: left; }
.note-body thead th { border-top: 1px solid var(--ink); border-bottom: 0.5px solid var(--ink); }
.note-body tbody tr:last-child td { border-bottom: 1px solid var(--ink); }
.note-body pre { overflow-x: auto; background: var(--box); padding: 10px; font-size: .86rem; }
.note-body code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .86em; }
.note-body .katex-display { overflow-x: auto; overflow-y: hidden; padding-block: 2px; }
.footnote { font-size: .88rem; margin-top: 1.6em !important; }
/* long web addresses (sources, citation link) break instead of widening the page on phones */
.note-body a, .note-cite, .footnote { overflow-wrap: anywhere; }
.footnote hr { display: none; }
.fn-head { font-weight: 700; border-top: 0.5px solid var(--ink); padding-top: 6px; width: 40%; }
.footnote ol { padding-left: 1.3em; margin-top: 4px; }
.footnote-backref { text-decoration: none !important; margin-left: 4px; }
sup a.footnote-ref { text-decoration: none !important; }
.note-foot { margin-top: 28px; padding-top: 8px; border-top: 1px solid var(--rule); font-size: .9rem; display: grid; gap: 4px; }
.note-meta { color: var(--muted); }
.note-pn { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-top: 14px; font-size: .9rem; }
.post .post-title .draft-flag { font-weight: 400; }

/* NARROW SCREENS */
@media (max-width: 720px) {
  .sig-hug { left: 168px; right: auto; }   /* the card is 232px wide on phones */
  .live { order: 3; flex-basis: 100%; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; padding-top: 4px; }
  .live-item { width: calc(50% - 5px); grid-template-columns: auto 1fr; padding: 0; border-left: 0; }
  .live-spark { justify-self: end; }
  .intro { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .links-scroll { height: 150px; }
  .stats-box { grid-column: auto; grid-row: auto; }
  .today-box { grid-column: auto; grid-row: auto; margin: 22px 0 0; }
  .today-archive li { grid-template-columns: minmax(0, 1fr); }
  .today-archive p { grid-column: 1; }
  .tab-panel { padding: 14px 12px 18px; }
  .intro-row { flex-direction: column; gap: 10px; }
  .sig-col { width: auto; }
  .doc-card { margin: 10px 0 0; width: 232px; flex: none; }
  .doc-thumb { flex: none; height: 140px; }
  .reading-scroll { flex: none; height: 150px; }
  .reading-box { align-self: stretch; height: auto; margin: 0; }
  .read-col { margin: 0; flex: none; }
  .cal-box { flex: none; }
  .cal-body { flex: none; height: 200px; grid-template-columns: 150px minmax(0, 1fr); }
  #links-scroll { height: 150px; }
  .repo-grid, .two-col { grid-template-columns: minmax(0, 1fr); }
  .two-col > div + div { padding-top: 6px; }
  .titleblock { flex-wrap: wrap; }
  .titleblock > div { flex-basis: 220px; }   /* name and links keep their own line; the indicators and Jale go below */
  .jale { margin-left: 0; flex-basis: auto; text-align: left; }
  .jale-grid { grid-template-columns: repeat(4, 1fr); }
  .jale-me { display: block; }
  .titleblock > .portrait { display: none; }   /* no room beside the name on phones */
  .macro { width: auto; }
  .titleblock { gap: 14px; }
  /* useful websites and the music box side by side; the music thumbnail sits above its caption */
  .side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .music-now { grid-template-columns: minmax(0, 1fr); }
  .music-note { left: calc(50% + 6px); padding-left: 0; }
}
@media (max-width: 560px) {
  .box.cols { column-count: 1; }
  .note-title th, .note-title td { display: block; width: auto; padding: 0; }
  .note-title td { margin-bottom: 6px; }
}
@media (max-width: 480px) {
  .post { grid-template-columns: minmax(0, 1fr); }
  .post .post-cat, .post .post-sum { grid-column: 1; }
  .cv-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cv-grid dd { margin-bottom: 10px; }
  .search, .search input { width: 100%; }
}
.note-body .book-orig { color: var(--head); font-size: 1.05em; }

/* BUTTONS — one quiet look for every control that moves the reader somewhere:
   a thin outline that darkens to the link colour, a light fill, and an arrow that steps forward on hover. */
:root { --btn-line: var(--rule); --btn-fill: var(--box); --btn-ease: .16s ease; }
.links-box, .today-box { --btn-line: var(--caramel-line); --btn-fill: rgba(255,255,255,.6); }
.btn, .more, .cal-open, .note-nav-r > a {
  display: inline-flex; align-items: center; gap: .35em; padding: .08em .75em; line-height: 1.35;
  border: 1px solid var(--btn-line); border-radius: 999px; background: transparent; color: var(--link);
  font: inherit; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: border-color var(--btn-ease), background-color var(--btn-ease), color var(--btn-ease);
}
.btn:hover, .more:hover, .cal-open:hover, .note-nav-r > a:hover,
.btn:focus-visible, .more:focus-visible, .cal-open:focus-visible, .note-nav-r > a:focus-visible {
  border-color: var(--link); background: var(--btn-fill); text-decoration: none;
}
.btn:focus-visible, .more:focus-visible, .cal-open:focus-visible, .note-nav-r > a:focus-visible, .pn:focus-visible,
.chip:focus-visible, .ver-switch button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.arr { display: inline-block; font-weight: 700; transition: transform var(--btn-ease); }
.btn:hover .arr, .cal-open:hover .arr { transform: translateX(2px); }
.cal-open { font-size: .7rem; font-weight: 400; padding: 0 .6em; line-height: 1.3; }
.cal-open .arr { font-size: 1.05em; }
.today-foot { align-items: center; }
.today-foot .btn { padding: .02em .7em; }
/* "Show all …" / "Show fewer" */
.more::after { content: "↓"; font-weight: 700; transition: transform var(--btn-ease); }
.more[aria-expanded="true"]::after { content: "↑"; }
.more:hover::after { transform: translateY(1px); }
.more[aria-expanded="true"]:hover::after { transform: translateY(-1px); }
/* category tabs above the post list */
.chips { gap: 4px 6px; }
.chip { padding: .06em .55em; border: 1px solid transparent; border-radius: 999px; transition: border-color var(--btn-ease), background-color var(--btn-ease); }
.chip:hover { border-color: var(--rule); }
.chip[aria-selected="true"] { border-color: var(--rule); background: var(--box); }
/* TR | EN on post pages and the reading list: a small two-part switch */
.ver-switch { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; font-size: .85rem; }
.ver-switch > span { display: none; }
.ver-switch button { padding: .05em .65em; line-height: 1.35; letter-spacing: .05em; }
.ver-switch button + span + button { border-left: 1px solid var(--rule); }
.ver-switch button:hover { background: var(--box); }
.ver-switch button[aria-pressed="true"] { background: var(--box); }
/* month arrows in the calendar */
.cal-step { width: 18px; height: 18px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; transition: background-color var(--btn-ease); }
.cal-step:not(:disabled):hover { background: rgba(255,255,255,.7); }
.cal-lb-step { border-radius: 50%; transition: background-color var(--btn-ease); }
.cal-lb-step:not(:disabled):hover { background: rgba(255,255,255,.14); }
/* previous / next post */
.note-pn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; font-size: .9rem; }
.pn {
  display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 10px 14px 11px;
  border: 1px solid var(--rule); border-radius: 6px; color: var(--ink); text-decoration: none;
  transition: border-color var(--btn-ease), background-color var(--btn-ease);
}
.pn-next { grid-column: 2; align-items: flex-end; text-align: right; }
.pn-dir { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.pn-arrow {
  display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none;
  border: 1px solid var(--link); border-radius: 50%; color: var(--link);
  transition: background-color var(--btn-ease), color var(--btn-ease), transform var(--btn-ease);
}
.pn-arrow svg { display: block; }
.pn-title { color: var(--link); font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.pn:hover { border-color: var(--link); background: var(--box); text-decoration: none; }
.pn:hover .pn-arrow { background: var(--link); color: var(--bg); }
.pn-prev:hover .pn-arrow { transform: translateX(-3px); }
.pn-next:hover .pn-arrow { transform: translateX(3px); }
@media (max-width: 560px) {
  .note-pn { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pn-next { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .arr, .more::after, .pn-arrow { transition: none; }
  .btn:hover .arr, .cal-open:hover .arr, .more:hover::after, .pn:hover .pn-arrow { transform: none; }
}

/* SIDE ART — the city in the side margins (js/side-art.js sets every size and position). It is part of
   the page, so it scrolls away with it; it never takes clicks and is not printed. */
.side-art { position: absolute; top: 0; left: 0; width: 100%; overflow: hidden; z-index: -1; pointer-events: none; user-select: none; }
.side-art[hidden] { display: none; }
.sa-col { position: absolute; top: 0; height: 100%; }
.sa-col.sa-l { left: 0; }
.sa-col.sa-r { right: 0; }
.sa-col > * { position: absolute; display: block; max-width: none; }
.sa-top { top: 0; left: 0; }
.sa-tile { background-repeat: repeat-y; background-position: 0 0; }
.sa-bot { left: 0; -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); }
/* clock and date: a neon sign hanging in the sky of the right margin, in the style of the city's signs.
   Sizes follow the margin width (js/side-art.js). Font: Tiny5 (SIL Open Font License, assets/fonts/tiny5). */
@font-face { font-family: "Tiny5"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/tiny5/tiny5-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tiny5"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(assets/fonts/tiny5/tiny5-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
.sa-clock {
  --neon: #6ee6eb; --green: #8cf7a0; --amber: #ffb64f; --pink: #ff7aa2;
  position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: .1em;
  padding: .3em .5em .34em; background: #0f1624; border: 2px solid var(--neon); border-radius: 2px;
  box-shadow: 0 0 0 2px #0b0c14, 0 0 .45em rgba(110, 230, 235, .55), inset 0 0 .5em rgba(110, 230, 235, .22);
  font-family: "Tiny5", "Silkscreen", monospace; line-height: 1; white-space: nowrap; text-transform: uppercase;
  font-variant-numeric: tabular-nums; color: var(--green);
}
/* the two cables it hangs from */
.sa-clock::before, .sa-clock::after { content: ""; position: absolute; bottom: calc(100% + 2px); width: 2px; height: 40px; background: #0b0c14; }
.sa-clock::before { left: 16%; }
.sa-clock::after { right: 16%; }
.sa-time { font-size: 1em; color: var(--green); text-shadow: 0 0 .08em var(--green), 0 0 .35em rgba(140, 247, 160, .65); }
.sa-s { font-size: .62em; color: var(--amber); text-shadow: 0 0 .3em rgba(255, 182, 79, .7); margin-left: .08em; }
.sa-date { font-size: max(.4em, 9px); margin-top: .22em; padding-top: .26em; border-top: 1px solid rgba(110, 230, 235, .45); color: var(--amber); text-shadow: 0 0 .35em rgba(255, 182, 79, .65); }
.sa-day { font-size: max(.36em, 8px); color: var(--pink); text-shadow: 0 0 .35em rgba(255, 122, 162, .7); letter-spacing: .04em; }
/* wide sign (wide margins): time and weekday on one line, the date across the full width below */
.sa-clock.sa-wide { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: .5em; padding-inline: .6em; }
.sa-wide .sa-time { grid-column: 1; grid-row: 1; }
.sa-wide .sa-day { grid-column: 2; grid-row: 1; justify-self: end; padding-bottom: .12em; }
.sa-wide .sa-date { grid-column: 1 / -1; grid-row: 2; }
/* phones and tablets: the street level of the city as a band at the end of the page (index.html) */
.city-band { display: none; }
@media (max-width: 1179px) {
  .city-band { display: flex; justify-content: center; align-items: flex-end; margin: 34px auto -26px; max-width: 600px; pointer-events: none; user-select: none; }
  .city-band img { width: 50%; height: auto; }
}
@media print { .side-art, .city-band { display: none !important; } }

/* scroll areas: a visible scrollbar in the caramel palette, and soft shadows at the top and bottom edge that
   appear only while there is more to scroll in that direction (the cover gradients move with the content) */
@supports not selector(::-webkit-scrollbar) { .links-scroll, .cal-list, .tab-scroll { scrollbar-width: thin; scrollbar-color: #a98a5b rgba(169, 138, 91, .16); } }
.links-scroll::-webkit-scrollbar, .cal-list::-webkit-scrollbar, .tab-scroll::-webkit-scrollbar { width: 9px; height: 9px; }
.links-scroll::-webkit-scrollbar-track, .cal-list::-webkit-scrollbar-track, .tab-scroll::-webkit-scrollbar-track { background: rgba(169, 138, 91, .14); border-radius: 9px; }
.links-scroll::-webkit-scrollbar-thumb, .cal-list::-webkit-scrollbar-thumb, .tab-scroll::-webkit-scrollbar-thumb { background: #b89b6c; border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }
.links-scroll::-webkit-scrollbar-thumb:hover, .cal-list::-webkit-scrollbar-thumb:hover, .tab-scroll::-webkit-scrollbar-thumb:hover { background-color: #8f6f42; }
.links-scroll::-webkit-scrollbar-corner, .tab-scroll::-webkit-scrollbar-corner { background: transparent; }
.links-scroll, .cal-list {
  background:
    linear-gradient(var(--caramel) 40%, rgba(244, 228, 201, 0)) top / 100% 22px no-repeat local,
    linear-gradient(rgba(244, 228, 201, 0), var(--caramel) 60%) bottom / 100% 22px no-repeat local,
    radial-gradient(farthest-side at 50% 0, rgba(107, 90, 67, .32), rgba(107, 90, 67, 0)) top / 100% 9px no-repeat scroll,
    radial-gradient(farthest-side at 50% 100%, rgba(107, 90, 67, .32), rgba(107, 90, 67, 0)) bottom / 100% 9px no-repeat scroll,
    var(--caramel);
}

/* box headings: a slightly darker caramel strip, so each box reads as a titled panel */
.links-box { padding-top: 0; }
.links-box > .links-title { background: #ead4ac; }
.links-box > .links-title { padding-top: 6px; }

/* Papers & presentations, Education: the heading opens and closes the section */
.fold > summary { list-style: none; cursor: pointer; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary h2 { display: flex; align-items: center; gap: 10px; }
.fold > summary h2::after { content: ""; width: .5em; height: .5em; margin-left: auto; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.15em) rotate(45deg); transition: transform .2s ease; opacity: .8; }
.fold[open] > summary h2::after { transform: translateY(.1em) rotate(-135deg); }
.fold > summary:hover h2 { color: var(--link); }
.fold > summary:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.fold:not([open]) > summary h2 { margin-bottom: 0; }

/* section break in literary pieces: three asterisks, centred */
.asterism { text-align: center; margin: 1.4em 0; color: var(--muted); font-size: 1.1rem; line-height: 1; letter-spacing: .1em; }

/* "A short note" at the foot of the home page */
.short-note { max-width: 46em; }
.short-note p { margin: 0 0 .8em; }
.short-note p:last-child { margin-bottom: 0; }

/* posts/veri-setleri.html: data files of the columns (built by build.py from writing/figures/datasets.json) */
html[data-l="tr"] .data-page .l-en, html[data-l="en"] .data-page .l-tr { display: none; }
.data-page .ver-switch button[aria-pressed="true"] { font-weight: 700; }
.ds-conv { padding-left: 1.2em; font-size: .95rem; }
.ds-conv li + li { margin-top: .3em; }
.ds-all { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; }
.ds-post { margin-top: 1.6em; padding-top: .8em; border-top: 1px solid var(--rule); }
.note-body .ds-post h2 { margin-top: 0; font-size: 1.02rem; line-height: 1.35; }
.ds-date { color: var(--muted); font-size: .88rem; margin-top: .15em; }
.ds-file { margin-top: .9em; padding-left: 12px; border-left: 2px solid var(--rule); }
.ds-file p { margin: .15em 0 0; }
.ds-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.ds-name code { font-size: .9rem; overflow-wrap: anywhere; }
.ds-meta { color: var(--muted); font-size: .85rem; }
.ds-title { font-weight: 700; font-size: .96rem; }
.ds-src, .ds-notes { font-size: .9rem; color: var(--muted); overflow-wrap: anywhere; }
.ds-cols { margin-top: .35em; font-size: .9rem; }
.ds-cols summary { cursor: pointer; }
.ds-cols table { border-collapse: collapse; width: 100%; margin-top: .4em; table-layout: fixed; }
.ds-cols th, .ds-cols td { text-align: left; vertical-align: top; padding: 3px 8px 3px 0; border-top: 1px solid var(--rule); }
.ds-cols th:first-child, .ds-cols td:first-child { width: 42%; }
.ds-cols code { font-size: .84rem; overflow-wrap: anywhere; }
.ds-all .btn { white-space: normal; text-align: left; }
.data-page .note-note h2::before { content: none; counter-increment: none; }
.ds-wb { border-left-color: #0033a0; }
/* two or more footnote markers in a row: "2,3" rather than "23" */
sup[id^="fnref"] + sup[id^="fnref"]::before { content: ","; }

/* search field in the title of the useful websites box */
.links-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.links-head > span { white-space: nowrap; }
.links-search { flex: 1 1 auto; width: 0; min-width: 3.2em; max-width: 8em; margin: 0; padding: 0 4px; font: inherit; font-size: .64rem; font-weight: 400; line-height: 1.5; color: #1a1a1a; background: #fbf3e4; border: 1px solid var(--caramel-line); border-radius: 2px; }
.links-search:focus { outline: none; border-color: #1f3a5f; background: #fff; }
.links-search::placeholder { color: #8a7a62; font-style: italic; }
.links-none { margin: 6px 0; font-size: .78rem; font-style: italic; color: #6b5e4a; }

/* release calendar box: the day list is narrow, so the time stands above the release and words are not split */
#cal-list .cal-ev { grid-template-columns: minmax(0, 1fr); }
#cal-list .cal-ev-main { overflow-wrap: break-word; }

/* search field left of "Full list" in the reading list title, same style as the useful websites one */
.reading-head { align-items: center; }
.reading-head > span:first-child { white-space: nowrap; }
.reading-tools { display: flex; align-items: center; gap: 6px; min-width: 0; }
.reading-tools .links-search { flex: 0 1 7em; width: 7em; max-width: 7em; }

/* name block: a title block with a rule on the left, like the title of the author's notes */
.titleblock > div { border-left: 3px solid var(--head); padding: 2px 0 2px 16px; }

/* reference lists ("**References**" / "**Kaynakça**" in a post): APA style, hanging indent of 1.27 cm */
.note-body .references p:not(.ref-head) { padding-left: 1.27cm; text-indent: -1.27cm; margin: 0 0 .55em; overflow-wrap: anywhere; }
.note-body .references .ref-head { margin-bottom: .4em; }
/* in-text citations link to their entry: land below the top edge and mark the entry briefly */
.note-body .references p[id] { scroll-margin-top: 80px; }
.note-body .references p:target { background: #fff36b55; transition: background .3s; }

/* phones and narrow windows: the indicators card sits beside the reference library, and the release calendar beside the statistical tables (the left column wider).
   The wrappers of the first column dissolve so that every box is a cell of the intro grid. */
@media (max-width: 720px) and (min-width: 340px) {
  .intro { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); column-gap: 10px; }
  .intro-text, .intro-row, .read-col { display: contents; }
  .side, .today-box { grid-column: 1 / -1; }
  /* the indicators card and the reference library share the first row; the library is as tall as the signature column */
  .sig-col { order: 1; grid-column: 1; }
  .doc-card { width: 100%; max-width: 232px; }
  .reading-box { order: 1; grid-column: 2; align-self: stretch; height: 0; min-height: 100%; }
  .reading-box .reading-scroll { flex: 1 1 auto; height: 0; }
  .reading-head { flex-wrap: wrap; gap: 4px 8px; }
  .reading-tools { flex: 1 1 100%; justify-content: space-between; }
  .cal-box { order: 3; grid-column: 1; margin-top: -8px; }
  .stats-box { order: 3; grid-column: 2; margin-top: -8px; align-self: stretch; height: 0; min-height: calc(100% + 8px); display: flex; flex-direction: column; }
  .side { order: 4; }
  .today-box { order: 5; }
  .cal-body { height: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: 190px 118px; }
  .cal-month { border-right: 0; border-bottom: 1px solid var(--caramel-line); }
  .links-scroll.stats-scroll { flex: 1 1 auto; height: 0; overflow-y: auto; padding-bottom: 0; }
  .stats-box .stats-pdf { flex: none; margin: 0; padding: 5px 7px 6px; border-top: 1px solid var(--caramel-line); }
  #stats-list { columns: 1; }
  #stats-list .stats-g { padding-top: 0; }
  #stats-list .links-group { margin-top: 8px; }
}
