/* MasterAI — "haftalık bilim gazetesi" teması
   Fraunces (manşet) · Newsreader (metin) · IBM Plex Mono (etiket) */

:root {
  --paper: #f2ede3;
  --paper-2: #e9e2d4;
  --paper-3: #ddd4c2;
  --ink: #16130f;
  --ink-2: #4b453c;
  --ink-3: #7a7266;
  --rule: #16130f;
  --accent: #ff4f1f;
  --accent-ink: #b7320b;
  --uni: #1d3fd6;
  --good: #2f7d4a;
  --shadow: 0 1px 0 rgba(22, 19, 15, .08);
  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --w: 1280px;
  --g: clamp(16px, 3vw, 32px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #11100e;
    --paper-2: #1b1916;
    --paper-3: #2a2621;
    --ink: #f0eadf;
    --ink-2: #bdb4a5;
    --ink-3: #8a8173;
    --rule: #f0eadf;
    --accent: #ff6b3d;
    --accent-ink: #ff8a63;
    --uni: #8fa5ff;
    --shadow: 0 1px 0 rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.55;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.small { font-size: 11px; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--g); }

/* kağıt dokusu */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { .grain { mix-blend-mode: screen; opacity: .05; } }

/* ------------------------------------------------ üst şerit + kayan yazı */
.topstrip { background: var(--ink); color: var(--paper); }
.topstrip__in { display: flex; align-items: center; gap: 20px; height: 34px; }
.topstrip .mono { font-size: 11px; white-space: nowrap; }
.ticker { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker__track { display: flex; gap: 48px; width: max-content; animation: tick 90s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker a { font-family: var(--f-body); font-size: 14px; font-style: italic; text-decoration: none; white-space: nowrap; color: var(--paper); }
.ticker a::before { content: "◆"; color: var(--accent); font-style: normal; font-size: 9px; margin-right: 12px; vertical-align: 2px; }
@keyframes tick { to { transform: translateX(-50%); } }
.live i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ------------------------------------------------ künye */
.masthead { border-bottom: 3px double var(--rule); }
.masthead__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; padding-top: 26px; }
.masthead__side { margin: 0 0 18px; color: var(--ink-2); font-size: 11px; line-height: 1.5; }
.masthead__side--r { text-align: right; }
.brand { text-decoration: none; display: block; text-align: center; }
.brand__name {
  font-family: var(--f-display); font-weight: 900; font-size: clamp(64px, 11vw, 150px); line-height: .82;
  letter-spacing: -.045em; font-variation-settings: "opsz" 144, "SOFT" 30; display: block;
  animation: rise .9s cubic-bezier(.2, .7, .1, 1) both;
}
.brand:hover { color: var(--ink); }
.brand__name::after { content: "."; color: var(--accent); }
.masthead__tag {
  text-align: center; margin: 10px 0 0; padding: 8px 0 12px; font-family: var(--f-display); font-style: italic;
  font-size: 20px; font-weight: 400; border-top: 1px solid var(--rule); color: var(--ink-2);
}

.mainnav { border-top: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.mainnav__in { display: flex; align-items: center; gap: 16px; min-height: 48px; }
.mainnav__links { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; }
.mainnav__links a {
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none; padding: 7px 10px; border-radius: 2px;
}
.mainnav__links a:hover { background: var(--paper-2); color: var(--ink); }
.mainnav__links a.on { background: var(--ink); color: var(--paper); }
.navtoggle { display: none; background: none; border: 1px solid var(--rule); color: var(--ink); padding: 6px 12px; cursor: pointer; }
.search input {
  font: 15px var(--f-body); font-style: italic; background: transparent; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--rule); padding: 6px 2px; width: 210px;
}
.search input:focus { outline: none; border-bottom: 2px solid var(--accent); }

/* ------------------------------------------------ hafta çubuğu */
.weekbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 34px 0 10px; gap: 16px; }
.weekbar__nav { text-decoration: none; color: var(--ink-2); }
.weekbar__nav--r { text-align: right; }
.weekbar__nav.is-off { opacity: .35; }
.weekbar__mid { display: flex; align-items: baseline; gap: 14px; justify-content: center; }
.weekbar__num {
  font-family: var(--f-display); font-weight: 300; font-size: clamp(56px, 8vw, 104px); line-height: .9;
  letter-spacing: -.04em; font-variation-settings: "opsz" 144; color: var(--accent);
  animation: rise .9s .1s cubic-bezier(.2, .7, .1, 1) both;
}
.weekbar__label, .weekbar__range { color: var(--ink-2); }
.statline { display: flex; justify-content: center; gap: 0; list-style: none; padding: 0; margin: 0 0 30px; flex-wrap: wrap; }
.statline li { padding: 4px 16px; border-left: 1px solid var(--paper-3); }
.statline li:first-child { border-left: 0; }
.statline b { font-family: var(--f-display); font-size: 17px; font-weight: 700; letter-spacing: 0; }
.statline a { color: var(--accent-ink); }

/* ------------------------------------------------ ön sayfa */
.front { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 40px; padding: 26px 0 40px; border-top: 3px solid var(--rule); }
.lead { animation: rise .8s .2s cubic-bezier(.2, .7, .1, 1) both; }
.lead__media { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); margin-bottom: 18px; }
.lead__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; filter: saturate(.9) contrast(1.02); transition: transform 1.2s cubic-bezier(.2, .7, .1, 1); }
.lead:hover .lead__media img { transform: scale(1.03); }
.lead__title {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(32px, 4.4vw, 58px); line-height: 1.02;
  letter-spacing: -.025em; margin: 8px 0 14px; font-variation-settings: "opsz" 144; text-wrap: balance;
}
.lead__title a { text-decoration: none; }
.lead__sum { font-size: 21px; line-height: 1.5; color: var(--ink-2); margin: 0 0 12px; max-width: 62ch; }
.lead.is-uni .lead__title a:hover, .card.is-uni .card__title a:hover { color: var(--uni); }

.rail { display: flex; flex-direction: column; gap: 28px; border-left: 1px solid var(--rule); padding-left: 32px; }
.rail__h { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); font-weight: 600; }
.digestcard { background: var(--ink); color: var(--paper); padding: 26px 24px; position: relative; overflow: hidden; animation: rise .8s .3s cubic-bezier(.2, .7, .1, 1) both; }
.digestcard::after { content: "§"; position: absolute; right: -8px; bottom: -58px; font-family: var(--f-display); font-size: 220px; color: var(--accent); opacity: .9; line-height: 1; }
.digestcard__k { color: var(--accent); margin: 0 0 10px; }
.digestcard__t { font-family: var(--f-display); font-weight: 700; font-size: 27px; line-height: 1.1; margin: 0 0 12px; position: relative; z-index: 1; text-wrap: balance; }
.digestcard__t a { text-decoration: none; }
.digestcard__t a:hover { color: var(--accent); }
.digestcard p { font-size: 16px; color: color-mix(in srgb, var(--paper) 78%, transparent); position: relative; z-index: 1; margin: 0 0 18px; }
.unilist ol { list-style: none; margin: 0; padding: 0; counter-reset: u; }
.unilist li { padding: 12px 0 12px 34px; border-bottom: 1px solid var(--paper-3); position: relative; counter-increment: u; }
.unilist li::before { content: counter(u, decimal-leading-zero); position: absolute; left: 0; top: 13px; font-family: var(--f-mono); font-size: 12px; color: var(--uni); font-weight: 600; }
.unilist li a { display: block; font-family: var(--f-display); font-weight: 600; font-size: 17px; line-height: 1.25; text-decoration: none; margin-top: 2px; }
.unilist li a:hover { color: var(--uni); }
.unilist__inst { color: var(--uni); font-size: 11px; }
.more { display: inline-block; margin-top: 12px; color: var(--accent-ink); }

/* ------------------------------------------------ kartlar */
.section-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.02em; margin: 0 0 18px; line-height: 1.05; }
.section-title--rule { display: flex; align-items: center; gap: 18px; font-size: 26px; margin: 10px 0 26px; }
.section-title--rule::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.grid-sec { padding: 20px 0 30px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: 22px 22px 26px; border-bottom: 1px solid var(--paper-3); border-right: 1px solid var(--paper-3); display: flex; flex-direction: column; animation: rise .7s cubic-bezier(.2, .7, .1, 1) both; }
.grid > .card:nth-child(3n) { border-right: 0; }
.grid--4 > .card:nth-child(3n) { border-right: 1px solid var(--paper-3); }
.grid--4 > .card:nth-child(4n) { border-right: 0; }
.grid > .card:nth-child(1) { animation-delay: .05s; } .grid > .card:nth-child(2) { animation-delay: .1s; }
.grid > .card:nth-child(3) { animation-delay: .15s; } .grid > .card:nth-child(4) { animation-delay: .2s; }
.grid > .card:nth-child(5) { animation-delay: .25s; } .grid > .card:nth-child(6) { animation-delay: .3s; }
.card--lg { grid-column: span 1; }
.grid > .card--lg:nth-child(1) { grid-column: span 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.card__media { display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); margin-bottom: 14px; }
.card--lg:nth-child(1) .card__media { margin-bottom: 0; aspect-ratio: 4 / 3; }
.card--sm .card__media { aspect-ratio: 16 / 9; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .8s cubic-bezier(.2, .7, .1, 1); filter: saturate(.85); }
.card:hover .card__media img { transform: scale(1.04); filter: saturate(1); }
.card__title { font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1.15; letter-spacing: -.01em; margin: 6px 0 10px; text-wrap: balance; }
.card--lg .card__title { font-size: 28px; }
.card--sm .card__title { font-size: 18px; }
.card__title a { text-decoration: none; }
.card__sum { font-size: 16px; line-height: 1.5; color: var(--ink-2); margin: 0 0 12px; }
.card .meta { margin-top: auto; }

/* görselsiz kapak: tipografik, id'ye göre 6 desen */
.cover { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; padding: 12px 14px; color: var(--paper); overflow: hidden; }
.cover b { font-family: var(--f-display); font-weight: 900; font-size: 140px; line-height: .7; letter-spacing: -.06em; opacity: .92; transform: translate(-6px, 18px); }
.lead__media .cover b { font-size: 300px; }
.cover em { font-style: normal; font-size: 10px; opacity: .8; }
.cover--g0 { background: radial-gradient(circle at 80% 20%, var(--accent) 0 18%, transparent 19%), repeating-linear-gradient(135deg, #16130f 0 2px, #2a2520 2px 12px); }
.cover--g1 { background: repeating-radial-gradient(circle at 0 100%, #1d3fd6 0 10px, #2447e6 10px 20px); }
.cover--g2 { background: linear-gradient(180deg, transparent 55%, #16130f 55% 58%, transparent 58%), conic-gradient(from 200deg at 70% 40%, #ff4f1f, #ffb199, #ff4f1f); }
.cover--g3 { background: radial-gradient(#16130f 1.4px, transparent 1.6px) 0 0 / 12px 12px, #e0d5bf; color: #16130f; }
.cover--g4 { background: linear-gradient(90deg, #16130f 0 33%, #ff4f1f 33% 66%, #1d3fd6 66%); }
.cover--g5 { background: repeating-linear-gradient(0deg, #2f7d4a 0 1px, transparent 1px 14px), repeating-linear-gradient(90deg, #2f7d4a 0 1px, transparent 1px 14px), #0f2418; }

/* etiketler */
.kicker { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; color: var(--ink-2); font-size: 11px; }
.tag { padding: 2px 7px; border: 1px solid currentColor; font-weight: 600; }
.tag--haber { color: var(--ink); }
.tag--duyuru { color: var(--accent-ink); }
.tag--arastirma { color: var(--uni); }
.tag--proje { color: var(--good); }
.tag--etkinlik { color: #9a5b00; }
@media (prefers-color-scheme: dark) { .tag--etkinlik { color: #ffc266; } .tag--proje { color: #6fd08f; } }
.inst { font-weight: 600; color: var(--ink); }
.is-uni .inst { color: var(--uni); }
.badge-uni { background: var(--uni); color: #fff; padding: 2px 7px; }
.meta { color: var(--ink-3); margin: 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 11px; }
.meta a { color: var(--accent-ink); }
.imp { color: var(--accent); letter-spacing: 1px; font-size: 9px; }
.imp i { font-style: normal; color: var(--paper-3); }

/* ------------------------------------------------ düğmeler */
.btn {
  display: inline-block; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  padding: 11px 18px; border: 1px solid var(--rule); text-decoration: none; background: transparent; color: var(--ink); cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--inv { border-color: var(--paper); color: var(--paper); position: relative; z-index: 1; }
.btn--inv:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: translateY(-1px); }

/* ------------------------------------------------ filtre, sayfalama, popüler */
.filterhead { padding: 10px 0 8px; border-top: 3px solid var(--rule); margin-top: 8px; }
.filterhead .section-title { margin-top: 18px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { padding: 6px 12px; border: 1px solid var(--paper-3); text-decoration: none; }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip--x { color: var(--accent-ink); border-color: transparent; }
.pager { display: flex; gap: 6px; justify-content: center; padding: 10px 0 40px; }
.pager a { padding: 8px 13px; border: 1px solid var(--paper-3); text-decoration: none; }
.pager a.on { background: var(--ink); color: var(--paper); }
.popular { padding-bottom: 40px; }
.popular__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.popular__list li { display: flex; flex-direction: column; gap: 6px; }
.popular__n { font-family: var(--f-display); font-weight: 300; font-size: 64px; line-height: .9; color: var(--accent); font-variation-settings: "opsz" 144; }
.popular__list a { font-family: var(--f-display); font-weight: 600; font-size: 17px; line-height: 1.25; text-decoration: none; }
.popular__list .mono { color: var(--ink-3); font-size: 10px; }
.empty { text-align: center; padding: 80px 0; color: var(--ink-2); }
.empty__big { font-family: var(--f-display); font-size: 42px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }

/* ------------------------------------------------ haber sayfası */
.story { max-width: 1080px; margin: 0 auto; padding: 30px 0 20px; }
.crumbs { color: var(--ink-3); margin-bottom: 26px; }
.crumbs a { color: var(--ink-2); }
.story__head { max-width: 900px; }
.story__title {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(36px, 5.4vw, 72px); line-height: 1; letter-spacing: -.03em;
  margin: 14px 0 18px; font-variation-settings: "opsz" 144; text-wrap: balance; animation: rise .8s cubic-bezier(.2, .7, .1, 1) both;
}
.story__orig { font-style: italic; color: var(--ink-2); font-size: 18px; margin: 0 0 16px; }
.story__orig .mono { font-style: normal; font-size: 10px; color: var(--ink-3); margin-right: 8px; border: 1px solid var(--paper-3); padding: 1px 6px; }
.story__fig { margin: 28px 0 0; }
.story__fig img { width: 100%; max-height: 560px; object-fit: cover; }
.story__body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; padding: 34px 0; border-top: 1px solid var(--rule); margin-top: 28px; }
.story__text { font-size: 21px; line-height: 1.62; max-width: 66ch; }
.story__text p { margin: 0 0 1.1em; }
.dropcap > p:first-child::first-letter {
  font-family: var(--f-display); font-weight: 900; float: left; font-size: 4.6em; line-height: .78; margin: .06em .1em 0 0; color: var(--accent);
}
.story__aside { border-left: 1px solid var(--paper-3); padding-left: 26px; display: flex; flex-direction: column; gap: 10px; align-self: start; position: sticky; top: 70px; }
.story__aside .btn { text-align: center; }
.tags a { font-family: var(--f-mono); font-size: 12px; text-decoration: none; color: var(--ink-2); display: inline-block; margin: 0 8px 6px 0; }
.tags a:hover { color: var(--accent-ink); }
.note { color: var(--ink-3); text-transform: none; letter-spacing: 0; line-height: 1.5; }

/* ------------------------------------------------ bülten */
.digest { max-width: 820px; margin: 0 auto; padding: 40px 0 20px; }
.digest__k { color: var(--accent-ink); }
.digest__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(38px, 5.6vw, 70px); line-height: 1; letter-spacing: -.03em; margin: 12px 0 14px; text-wrap: balance; font-variation-settings: "opsz" 144; }
.digest__head { border-bottom: 3px double var(--rule); padding-bottom: 22px; margin-bottom: 30px; }
.digest__intro { font-size: 22px; line-height: 1.6; }
.digest__sec { padding: 26px 0; border-top: 1px solid var(--paper-3); }
.digest__sec h2 { font-family: var(--f-display); font-size: 32px; font-weight: 700; letter-spacing: -.015em; margin: 0 0 14px; line-height: 1.1; }
.digest__sec h2 .mono { color: var(--accent); font-size: 14px; vertical-align: 6px; margin-right: 6px; }
.digest__sec p { font-size: 19px; margin: 0 0 1em; }
.digest__refs { list-style: none; padding: 0; margin: 8px 0 0; border-left: 3px solid var(--accent); }
.digest__refs li a { display: block; padding: 8px 0 8px 16px; text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: 17px; line-height: 1.3; }
.digest__refs li a .mono { display: block; color: var(--ink-3); font-size: 10px; font-family: var(--f-mono); font-weight: 400; }
.digest__past { max-width: 820px; margin: 0 auto 50px; }

.weeklist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.weeklist li { border-bottom: 1px solid var(--paper-3); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.weeklist li > a:first-child { display: flex; flex-direction: column; gap: 3px; padding: 14px 0; text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: 19px; flex: 1; }
.weeklist li.on > a:first-child { color: var(--accent-ink); }
.weeklist .mono { color: var(--ink-3); font-family: var(--f-mono); font-weight: 400; }
.weeklist--big li > a:first-child { flex-direction: row; align-items: center; gap: 24px; }
.weeklist__num { font-family: var(--f-display); font-weight: 300; font-size: 58px; line-height: 1; color: var(--accent); min-width: 80px; font-variation-settings: "opsz" 144; }
.weeklist__txt { display: flex; flex-direction: column; gap: 4px; }
.archive { max-width: 900px; margin: 0 auto; padding: 40px 0 60px; }
.lede { font-size: 20px; color: var(--ink-2); margin: 0 0 26px; }

/* ------------------------------------------------ alt bilgi */
.foot { border-top: 3px double var(--rule); margin-top: 30px; padding: 30px 0 40px; background: var(--paper-2); }
.foot__in { display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: 32px; align-items: start; }
.foot__brand { font-family: var(--f-display); font-weight: 900; font-size: 40px; letter-spacing: -.04em; line-height: 1; }
.foot__brand::after { content: "."; color: var(--accent); }
.foot p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }
.foot__note { text-transform: none; letter-spacing: 0; font-size: 12px !important; line-height: 1.6; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ------------------------------------------------ duyarlı */
@media (max-width: 1060px) {
  .front { grid-template-columns: 1fr; }
  .rail { border-left: 0; padding-left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid > .card:nth-child(3n) { border-right: 1px solid var(--paper-3); }
  .grid > .card:nth-child(2n) { border-right: 0; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .popular__list { grid-template-columns: repeat(2, 1fr); }
  .story__body { grid-template-columns: 1fr; gap: 30px; }
  .story__aside { position: static; border-left: 0; padding-left: 0; border-top: 1px solid var(--paper-3); padding-top: 20px; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .topstrip__in > .mono:first-child, .live { display: none; }
  .masthead__row { grid-template-columns: 1fr; padding-top: 18px; }
  .masthead__side { display: none; }
  .masthead__tag { font-size: 16px; }
  .mainnav__in { flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
  .navtoggle { display: inline-block; }
  .mainnav__links { display: none; flex-basis: 100%; order: 3; padding: 8px 0; }
  .mainnav__links.open { display: flex; }
  .search { flex: 1; }
  .search input { width: 100%; }
  .weekbar { grid-template-columns: 1fr 1fr; }
  .weekbar__mid { grid-column: 1 / -1; grid-row: 1; flex-wrap: wrap; }
  .rail { grid-template-columns: 1fr; }
  .grid, .grid--4 { grid-template-columns: 1fr; }
  .grid > .card { border-right: 0 !important; padding-left: 0; padding-right: 0; }
  .grid > .card--lg:nth-child(1) { grid-column: auto; display: flex; }
  .grid > .card--lg:nth-child(1) .card__media { margin-bottom: 14px; }
  .popular__list { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr; }
  .lead__sum, .story__text, .digest__intro { font-size: 19px; }
  .weeklist--big li { flex-wrap: wrap; }
}

/* ------------------------------------------------ ziyaretçi sayacı */
.live b { font-weight: 600; color: var(--accent); }
.visits { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 14px; border: 1px solid var(--rule); }
.visits > div { padding: 10px 12px; }
.visits > div + div { border-left: 1px solid var(--rule); }
.visits dt { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.visits dt i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 4px; animation: pulse 1.8s ease-in-out infinite; }
.visits dd { margin: 4px 0 0; font-family: var(--f-display); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------ YZ sohbet asistanı (sol alt) */
.chatbot { --c-hi: #ffb21f; --c-blue: #3d5cff; position: fixed; left: 20px; bottom: 20px; z-index: 200; font-family: var(--f-body); }

/* başlatıcı: dönen renk halkası + yayılan dalga + göz kırpan robot */
.chatfab { position: relative; width: 70px; height: 70px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; animation: fab-in .7s cubic-bezier(.2, 1.4, .4, 1) .4s both; }
.chatfab__ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--accent), var(--c-hi), var(--c-blue), #b44dff, var(--accent)); animation: fab-spin 4s linear infinite; filter: drop-shadow(0 6px 18px rgba(255, 79, 31, .45)); }
.chatfab__wave { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: fab-wave 2.4s ease-out infinite; }
.chatfab__core { position: relative; width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #2b251e, #0d0b09 70%); display: grid; place-items: center; overflow: hidden; transition: transform .25s; }
.chatfab:hover .chatfab__core { transform: scale(1.06) rotate(-6deg); }
.chatfab__bot { transition: transform .3s, opacity .2s; animation: fab-bob 3s ease-in-out infinite; }
.chatfab__head { fill: #f2ede3; }
.chatfab__ear { fill: var(--accent); }
.chatfab__eyes ellipse { fill: #16130f; transform-box: fill-box; transform-origin: center; animation: fab-blink 4.5s infinite; }
.chatfab__smile { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.chatfab__tail { fill: #f2ede3; }
.chatfab__line { stroke: #f2ede3; stroke-width: 2.5; }
.chatfab__dot { fill: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.chatfab__spark { fill: var(--c-hi); transform-box: fill-box; transform-origin: center; animation: fab-twinkle 2s ease-in-out infinite; }
.chatfab__close { position: absolute; opacity: 0; transform: rotate(-90deg) scale(.5); transition: transform .3s, opacity .2s; }
.chatfab__close path { stroke: #f2ede3; stroke-width: 2.4; stroke-linecap: round; }
.chatfab__badge { position: absolute; top: -2px; right: -4px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .06em; padding: 3px 6px; border-radius: 999px; border: 2px solid var(--paper); }
.chatbot.open .chatfab__bot { opacity: 0; transform: scale(.4) rotate(40deg); }
.chatbot.open .chatfab__close { opacity: 1; transform: none; }
.chatbot.open .chatfab__wave, .chatbot.open .chatfab__badge { display: none; }
@keyframes fab-spin { to { transform: rotate(360deg); } }
@keyframes fab-wave { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes fab-bob { 50% { transform: translateY(-3px); } }
@keyframes fab-blink { 0%, 44%, 50%, 100% { transform: scaleY(1); } 47% { transform: scaleY(.1); } }
@keyframes fab-twinkle { 50% { transform: scale(.4) rotate(45deg); opacity: .5; } }
@keyframes fab-in { from { transform: scale(0) rotate(-180deg); opacity: 0; } }

/* karşılama balonu */
.chatteaser { position: absolute; left: 0; bottom: 86px; width: 250px; padding: 14px 30px 14px 16px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 16px 16px 16px 4px; box-shadow: 5px 5px 0 var(--accent); font-size: 15px; line-height: 1.4; animation: rise .5s ease both; }
.chatteaser b { display: block; font-family: var(--f-display); font-size: 16px; margin-bottom: 2px; }
.chatteaser__x { position: absolute; top: 4px; right: 6px; border: 0; background: none; color: var(--ink-3); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px; }

/* panel */
.chatpanel { position: absolute; left: 0; bottom: 86px; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 8px 8px 0 var(--accent), 0 24px 60px rgba(0, 0, 0, .25); overflow: hidden; transform-origin: bottom left; animation: chat-open .28s cubic-bezier(.2, 1.2, .4, 1) both; }
.chatpanel[hidden], .chatteaser[hidden] { display: none; }
@keyframes chat-open { from { opacity: 0; transform: scale(.85) translateY(12px); } }
.chatpanel__head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: #16130f; color: #f2ede3; }
.chatpanel__avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent), var(--c-hi), var(--c-blue), var(--accent)); flex: none; }
.chatpanel__avatar svg { background: #0d0b09; border-radius: 50%; width: 32px; height: 32px; padding: 3px; }
.chatpanel__avatar .chatfab__eyes ellipse { animation: none; }
.chatpanel__title { flex: 1; min-width: 0; line-height: 1.2; }
.chatpanel__title b { display: block; font-family: var(--f-display); font-size: 18px; }
.chatpanel__title .mono { font-size: 10px; color: #bdb4a5; }
.chatpanel__title i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #3ddc84; margin-right: 4px; vertical-align: 1px; }
.chatpanel__btn { border: 1px solid #4b453c; background: none; color: #f2ede3; border-radius: 999px; padding: 5px 10px; cursor: pointer; font-size: 10px; }
.chatpanel__btn:hover { border-color: var(--accent); color: var(--accent); }
.chatpanel__btn--x { font-family: var(--f-body); font-size: 20px; line-height: 1; padding: 2px 9px 4px; }

.chatlog { flex: 1; overflow-y: auto; padding: 16px 14px 6px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; animation: rise .25s ease both; }
.msg p { margin: 0 0 6px; }
.msg p:last-child { margin-bottom: 0; }
.msg ul { margin: 4px 0 6px; padding-left: 18px; }
.msg li { margin: 2px 0; }
.msg--bot { align-self: flex-start; background: var(--paper-2); border: 1px solid var(--paper-3); border-bottom-left-radius: 4px; }
.msg--user { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; }
.msg--err { border-color: var(--accent); color: var(--accent-ink); }
.msg .cite { display: inline-block; min-width: 18px; padding: 0 5px; margin: 0 1px; border-radius: 999px; background: var(--accent); color: #fff; font-family: var(--f-mono); font-size: 10px; line-height: 17px; text-align: center; text-decoration: none; vertical-align: 2px; }
.msg .cite:hover { background: var(--ink); color: var(--paper); }
.msg__src { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--ink-3); display: grid; gap: 5px; }
.msg__src span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.msg__src a { font-size: 14px; line-height: 1.3; text-decoration: none; display: flex; gap: 6px; }
.msg__src a b { font-family: var(--f-mono); font-size: 10px; color: var(--accent-ink); flex: none; padding-top: 2px; }
.msg__src a:hover { text-decoration: underline; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: typing 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 30% { transform: translateY(-5px); background: var(--accent); } }

.chatsugs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 10px; }
.chatsugs[hidden] { display: none; }
.chatsugs button { border: 1px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 6px 11px; font-family: var(--f-body); font-size: 14px; cursor: pointer; text-align: left; }
.chatsugs button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.chatform { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--paper-3); background: var(--paper-2); }
.chatform textarea { flex: 1; resize: none; max-height: 120px; border: 1px solid var(--paper-3); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 16px; line-height: 1.35; background: var(--paper); color: var(--ink); }
.chatform textarea:focus { outline: none; border-color: var(--accent); }
.chatform__send { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: var(--accent); cursor: pointer; display: grid; place-items: center; transition: transform .15s; }
.chatform__send path { fill: #fff; }
.chatform__send:hover { transform: scale(1.08); }
.chatform__send:disabled { opacity: .45; cursor: wait; transform: none; }
.chatnote { margin: 0; padding: 0 12px 8px; background: var(--paper-2); font-size: 9px !important; color: var(--ink-3); text-align: center; text-transform: none; }

@media (max-width: 520px) {
  .chatbot { left: 14px; bottom: 14px; }
  .chatfab { width: 62px; height: 62px; }
  .chatfab__core { width: 53px; height: 53px; }
  .chatbot.open .chatpanel { position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; border: 0; box-shadow: none; }
  .chatbot.open .chatfab { display: none; }
  .chatteaser { bottom: 76px; }
}
@media print { .chatbot { display: none; } }
