/* Riscodex Gündem: a news site. Navy band with the white logo, breaking-news ticker, sector menu;
   the home page lists stories by day, a story page carries the text and its record card. Headings use Cal Sans. */
:root {
  --navy: #111E3E; --lapis: #1D3D92; --brand: #2662D4; --breaking: #C8102E;
  --bg: #F5F8FC; --surface: #FFFFFF; --surface-2: #EAF1FB; --line: #D8E1EE; --line-strong: #B9C7DD;
  --fg: #121B33; --muted: #5A6A86; --link: #1F55BF;
  --band: #111E3E; --band-2: #0A1628; --band-fg: #FFFFFF; --band-muted: #A9BBDD;
  --note-bg: #EEF4FF; --note-line: #2662D4;
  --mine: #0F7A5A; --new: #C8102E;
  --serif: "Cal Sans", "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1122; --surface: #111A31; --surface-2: #172443; --line: #24345C; --line-strong: #33477A;
    --fg: #E7EDF8; --muted: #9AAACB; --link: #8CB2FF; --brand: #5B8CF0; --breaking: #FF4D5E;
    --band: #08101F; --band-2: #050B16; --band-fg: #F2F6FF; --band-muted: #8EA2CC;
    --note-bg: #14244A; --note-line: #5B8CF0;
    --mine: #5FD3A6; --new: #FF6B79; color-scheme: dark;
  }
  .kicker { color: var(--brand); }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 15px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 16px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; }

.top { background: var(--band); color: var(--band-fg); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.logo { display: flex; align-items: center; gap: 14px; min-width: 0; }
.logo a { display: flex; align-items: center; }
.logo .mark { height: 26px; width: auto; display: block; flex: none; }
.logo .sep { width: 1px; height: 24px; background: #3A4C78; flex: none; }
.logo-name { font-family: var(--serif); font-size: 25px; line-height: 1; letter-spacing: .005em; }
.tagline { font-style: normal; color: var(--band-muted); font-size: 13px; margin-left: 4px; }
.tools { display: flex; align-items: center; gap: 14px; }
.today { color: var(--band-muted); font-size: 13px; }
.search { position: relative; display: flex; align-items: center; }
.search input { width: 250px; background: rgba(255,255,255,.07); border: 1px solid #2E3F6B; border-radius: 8px; color: var(--band-fg); font: inherit; font-size: 14px; padding: 7px 10px 7px 32px; }
.search input::placeholder { color: var(--band-muted); }
.search input:focus { outline: none; border-color: #6F8FD8; background: rgba(255,255,255,.12); }
.search svg { position: absolute; left: 10px; width: 15px; height: 15px; color: var(--band-muted); pointer-events: none; }
.searchlink { display: none; border: 1px solid #2E3F6B; border-radius: 8px; padding: 6px 8px; color: var(--band-fg); }
.searchlink svg { width: 18px; height: 18px; display: block; }
.bell { position: relative; background: transparent; border: 1px solid #2E3F6B; border-radius: 8px; padding: 6px 10px; cursor: pointer; display: flex; gap: 6px; align-items: center; color: var(--band-fg); }
.bell svg { width: 18px; height: 18px; }
.bell .badge { background: var(--breaking); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 5px; }
.panel { position: absolute; right: 16px; top: 58px; width: min(380px, calc(100vw - 32px)); background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(10,22,40,.18); z-index: 20; }
.panel header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.panel header b { font-size: 14px; }
.panel ul { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow: auto; }
.panel li a { display: grid; gap: 2px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.panel li a:hover { background: var(--surface-2); }
.panel small { color: var(--muted); font-size: 12px; }
.panel .empty { padding: 16px 14px; color: var(--muted); font-size: 14px; }
.linkbtn { background: none; border: 0; color: var(--link); cursor: pointer; font-size: 13px; padding: 0; }

.ticker { background: var(--band-2); color: var(--band-fg); }
.ticker .wrap { display: flex; align-items: center; gap: 12px; padding-block: 8px; min-width: 0; }
.ticker .lbl { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13.5px; flex: none; }
.ticker .lbl::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--breaking); }
.ticker a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-size: 14px; }
.ticker a:hover { text-decoration: underline; }
.ticker time { color: var(--band-muted); font-size: 13px; flex: none; }

nav.sections { background: var(--surface); border-bottom: 1px solid var(--line); }
nav.sections .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
nav.sections .wrap::-webkit-scrollbar { display: none; }
nav.sections a { padding: 12px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
nav.sections a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--brand); }
nav.sections a:hover { color: var(--fg); }

main { padding-block: 22px 48px; display: grid; gap: 34px; }
main > * { min-width: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.kicker { font-size: 13px; font-weight: 600; color: var(--lapis); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 0; align-items: center; color: var(--muted); font-size: 13px; }
.meta > *:not(:last-child)::after { content: "·"; margin: 0 8px; color: var(--line-strong); font-weight: 400; }
.meta time { font-variant-numeric: tabular-nums; }
.flag { font-weight: 600; }
.flag.new { color: var(--new); }
.flag.mine { color: var(--mine); }
.chips { display: flex; flex-wrap: wrap; gap: 2px 18px; border-bottom: 1px solid var(--line); }
.chip { border: 0; background: none; color: var(--muted); padding: 8px 0; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; box-shadow: inset 0 -2px transparent; }
.chip:hover { color: var(--fg); }
.chip[aria-pressed="true"] { color: var(--fg); box-shadow: inset 0 -2px var(--brand); }

.block { display: grid; gap: 0; }
.blockhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--fg); padding-bottom: 6px; }
.blockhead h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 18px; letter-spacing: .004em; }
.listhead h1 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0; letter-spacing: .004em; }
.listhead p { margin: 4px 0 0; color: var(--muted); }
.rows { display: grid; }
.row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.block .row { grid-template-columns: minmax(0, 1fr); }
.block .row .d { display: none; }
.rows.dated .row { grid-template-columns: 120px minmax(0, 1fr); }
.row:hover h3 { color: var(--link); }
.row h3 { margin: 0 0 5px; font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.28; letter-spacing: .004em; }
.row p { margin: 0; color: var(--muted); font-size: 14.5px; }
.row .d { font-size: 13px; color: var(--muted); padding-top: 3px; }
.row .meta { margin-top: 6px; }

.bigsearch { display: flex; gap: 8px; margin-top: 12px; }
.bigsearch input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--fg); }
.bigsearch input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.bigsearch button { font: inherit; font-weight: 600; font-size: 15px; padding: 0 16px; border-radius: 8px; border: 0; background: var(--lapis); color: #fff; cursor: pointer; }
.firmhits { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.firmhit { display: inline-flex; gap: 8px; align-items: baseline; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 8px 12px; }
.firmhit:hover { border-color: var(--brand); }
.firmhit b { font-weight: 600; }
.tick { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .03em; }
.subhead { font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.firmmeta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; margin-top: 6px; }
.firmmeta b { color: var(--fg); font-weight: 600; }
.az { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px 32px; }
.az section h2 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 0 0 4px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.az ul { list-style: none; margin: 0; padding: 0; }
.az li a { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.az li a:hover { color: var(--link); }
.az li small { color: var(--muted); font-size: 12px; white-space: nowrap; }

.steps { margin: 4px 0 16px; max-width: 66ch; }
.steps h2 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.steps li { position: relative; padding: 18px 2px 0; font-size: 12.5px; line-height: 1.3; color: var(--muted); text-align: center; }
.steps li::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 2px; background: var(--line); }
.steps li:first-child::before { left: 50%; }
.steps li:last-child::before { right: 50%; }
.steps li::after { content: ""; position: absolute; top: 0; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); }
.steps li.cur { color: var(--fg); font-weight: 600; }
.steps li.cur::after { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.history { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 12px 16px; margin: 0 0 18px; max-width: 66ch; }
.history h2 { font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.history ol { list-style: none; margin: 0; padding: 0; }
.history li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.history li:first-child { border-top: 0; }
.history li small { color: var(--muted); font-size: 12.5px; }
.history li.me a { font-weight: 600; }
.history a:hover { color: var(--link); }
.pipeline { display: grid; gap: 26px; }
.trackhead { font-size: 13px; font-weight: 600; color: var(--muted); margin: 6px 0 -10px; }
.stagegroup h2 { font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 0 0 2px; display: flex; align-items: center; gap: 10px; }
.stagegroup h2 i { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex: none; }
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 28px; }
.plist a { display: grid; gap: 2px; align-content: start; padding: 10px 0; border-top: 1px solid var(--line); }
.plist a b { font-weight: 600; font-size: 14px; }
.plist a span { font-size: 14.5px; line-height: 1.4; }
.plist a small { color: var(--muted); font-size: 12.5px; }
.plist a:hover span { color: var(--link); }
.selrow { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-size: 14px; color: var(--muted); }
.selrow select { font: inherit; font-size: 14px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--fg); }

.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
.article.single { grid-template-columns: minmax(0, 1fr); }
.crumb { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumb a { color: var(--link); }
.article h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.2; margin: 8px 0 10px; letter-spacing: .004em; }
.article .spot { font-size: 19px; line-height: 1.5; margin: 0 0 14px; max-width: 64ch; }
.article .meta.lead-meta { margin-bottom: 10px; }
.article .text p { font-size: 16.5px; line-height: 1.7; margin: 0 0 14px; max-width: 66ch; }
.related-note { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 0 0 18px; max-width: 66ch; background: var(--surface); }
.related-note h2 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.related-note p { margin: 0; font-size: 15.5px; line-height: 1.6; }
.srcline { font-size: 14px; color: var(--muted); }
.srcline a { color: var(--link); text-decoration: underline; }
.srcline.srcfirst { margin: 0 0 18px; }
aside.side { display: grid; gap: 18px; align-content: start; }
.kunye { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.kunye h2 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.kunye dl { margin: 0; display: grid; gap: 8px; }
.kunye dt { font-size: 12px; color: var(--muted); }
.kunye dd { margin: 0; font-size: 14.5px; }
.btn { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; cursor: pointer; font-size: 14px; justify-self: start; }
.btn:hover { border-color: var(--brand); }
.sidelist h2 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.sidelist a { display: block; padding: 9px 0; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 16px; line-height: 1.32; letter-spacing: .004em; }
.sidelist a:hover { color: var(--link); }
.sidelist.firms-side a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-family: var(--sans); font-size: 14.5px; line-height: 1.4; letter-spacing: 0; }

.follow { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 30px; }
.follow label { display: block; margin: 16px 0 6px; }
textarea { width: 100%; min-height: 180px; font-family: var(--sans); font-size: 13px; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px; resize: vertical; }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.state { padding: 40px 0; color: var(--muted); text-align: center; }
.state.inline { text-align: left; padding: 8px 0; }
.state a, .textlink { color: var(--link); }

footer.foot { border-top: 1px solid var(--line); }
footer.foot .wrap { padding-block: 20px 32px; color: var(--muted); font-size: 13.5px; display: grid; gap: 8px; }
footer.foot p { margin: 0; max-width: 85ch; }
footer.foot a { color: var(--link); }

@media (max-width: 1100px) { .today { display: none; } }
@media (max-width: 900px) {
  .article, .follow { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) { .search { display: none; } .searchlink { display: block; } }
@media (max-width: 700px) {
  .tagline { display: none; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .chips::-webkit-scrollbar { display: none; }
}
@media (max-width: 560px) {
  .logo { gap: 10px; }
  .logo .mark { height: 21px; }
  .logo .sep { height: 20px; }
  .logo-name { font-size: 20px; }
  .row, .rows.dated .row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .steps li { font-size: 11px; }
}
