/* The design language of IKANGAI Security Alerts (sec-sen), applied to news. */
@font-face { font-family: Roboto; font-weight: 100 900; font-display: swap;
  src: url(roboto-latin.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: Roboto; font-weight: 100 900; font-display: swap;
  src: url(roboto-latin-ext.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; }

:root { --bg: #F4F5F7; --surface: #fff; --ink: #14161B; --ink-2: #3D424B; --muted: #5F6775; --line: #E4E7EB; --line-2: #D2D6DC;
  --soft: #EFF1F4; --brand: #F22938; --danger: #CF1B2B; --warn: #AD4F00; --warn-bg: #FFF2E2; --calm: #566070;
  --calm-bg: #E9ECF0; --safe: #0A7A50; --safe-bg: #E5F5ED; --night: #12151B; --r: 14px; --r-s: 10px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  --sans: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root { --bg: #0D0F13; --surface: #151820; --ink: #F2F4F7; --ink-2: #C6CBD3; --muted: #9AA2AE;
  --line: #242933; --line-2: #323844; --soft: #1D212A; --brand: #FF4655; --danger: #FF5F6B; --warn: #FFAB57;
  --warn-bg: #2B1E11; --calm: #A6AEBA; --calm-bg: #1F232C; --safe: #3DD598; --safe-bg: #10261D; --night: #161A23; --shadow: none; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
.wrap { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 clamp(1rem, 3.5vw, 2rem); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 9; padding: .5rem 1rem; background: var(--surface); border-radius: var(--r-s); }
.skip:focus { left: 8px; }
.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

/* header and footer */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 1.5rem; height: 4rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 650; text-decoration: none; font-size: 1rem; white-space: nowrap; }
.brand svg { width: 1.3rem; height: 1.5rem; fill: var(--brand); }
.top nav { margin-left: auto; display: flex; align-items: center; gap: .2rem; }
.top nav a { display: block; padding: .5rem .85rem; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; white-space: nowrap; }
.top nav a:hover { color: var(--ink); background: var(--soft); }
.foot { margin-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.25rem; padding-bottom: 1.5rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

main { flex: 1; width: 100%; max-width: 76rem; margin: 0 auto; padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3.5vw, 2rem) 4rem; }

/* type */
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; margin-bottom: .75rem; }
h2 { font-size: 1.08rem; line-height: 1.3; font-weight: 650; letter-spacing: -.01em; margin-bottom: .8rem; }
h3 { font-size: 1.1rem; line-height: 1.3; font-weight: 650; letter-spacing: -.005em; }
p { margin: 0 0 1rem; }
a { color: var(--ink); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8rem; }
.muted { color: var(--muted); font-size: .9rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); }

/* the status of a story: pill and icon tile */
.badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 650; line-height: 1; padding: .36rem .62rem;
  border-radius: 999px; white-space: nowrap; color: var(--calm); background: var(--calm-bg); }
.badge::before { content: ""; width: .42rem; height: .42rem; border-radius: 50%; background: currentColor; }
.badge.official { color: var(--safe); background: var(--safe-bg); }
.badge.confirmed { color: var(--surface); background: var(--ink); }
.badge.rumor { color: var(--warn); background: var(--warn-bg); }
.tile { width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center; background: var(--calm-bg); color: var(--calm); }
.tile .i { width: 1.3rem; height: 1.3rem; }
.tile.official { background: var(--safe-bg); color: var(--safe); }
.tile.confirmed { background: var(--ink); color: var(--surface); }
.tile.rumor { background: var(--warn-bg); color: var(--warn); }

/* the watch: every story is a dot, today's light up */
.watch { --dot: rgba(255,255,255,.22); --hit: #FF4655; position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 2rem;
  align-items: center; margin: 0; padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: 22px; background: var(--night); color: #C9CED6; }
.watch::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50rem 26rem at 88% 45%, rgba(242,41,56,.17), transparent 62%),
  radial-gradient(36rem 18rem at 0 0, rgba(255,255,255,.06), transparent 60%); }
@media (prefers-color-scheme: dark) { .watch { border: 1px solid var(--line); } }
@media (min-width: 56rem) { .watch { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.watch h1 { color: #fff; font-size: clamp(2rem, 1.2rem + 2.6vw, 3rem); letter-spacing: -.03em; }
.watch .eyebrow { color: #9BA3B0; }
.watch .sub { font-size: 1.05rem; max-width: 33rem; margin-bottom: 1.4rem; }
.watch.small { display: block; padding: clamp(1.25rem, 3vw, 2rem); }
.watch.small h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.4rem); }
.watch.small .sub { margin: 0; }
.tallies { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.3rem; }
.tally { display: inline-flex; align-items: baseline; gap: .5rem; padding: .55rem .9rem; border-radius: 12px; font-size: .85rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); }
.tally b { color: #fff; font-size: 1.35rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.tally.official b { color: #5FE0AE; }
.tally.rumor b { color: #FFB466; }
.tally.zero { opacity: .6; }
.tally.zero b { color: inherit; }
.pulse { display: flex; align-items: center; gap: .65rem; font-size: .85rem; color: #9BA3B0; margin: 0; }
.pulse i { width: .55rem; height: .55rem; border-radius: 50%; background: #3DD598; animation: ping 2.6s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61,213,152,.55); } 75%, 100% { box-shadow: 0 0 0 .55rem rgba(61,213,152,0); } }
.field-wrap { margin: 0; min-width: 0; }
.field { display: block; width: 100%; aspect-ratio: 16/10; }
.field-wrap figcaption { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: .9rem; font-size: .78rem; color: #9BA3B0; }
.key { display: inline-flex; align-items: center; gap: .45rem; }
.key::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: rgba(255,255,255,.32); }
.key.hit::before { background: var(--hit); box-shadow: 0 0 0 3px rgba(255,70,85,.25); }

/* search */
.search { position: relative; margin-top: 1rem; }
.search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.search input { display: block; width: 100%; padding: .85rem 1.1rem; font: 400 1rem/1.45 var(--sans); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.search input:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 9%, transparent); }
.search ::placeholder { color: var(--muted); opacity: 1; }
#results { position: absolute; z-index: 4; left: 0; right: 0; margin: .4rem 0 0; padding: 0; list-style: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: 0 24px 48px -16px rgba(0,0,0,.35); max-height: 26rem; overflow: auto; }
#results:empty { display: none; }
#results a { display: block; padding: .7rem 1.1rem; text-decoration: none; line-height: 1.35; font-weight: 550; border-top: 1px solid var(--line); }
#results li:first-child a { border-top: 0; }
#results a:hover { background: var(--soft); }
#results small { display: block; font-weight: 400; color: var(--muted); margin-top: .15rem; }

/* board */
.board { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 62rem) { .board { grid-template-columns: minmax(0, 1fr) 21rem; gap: 1.75rem; align-items: start; } }
.feed { display: grid; gap: .85rem; align-content: start; min-width: 0; }
aside.col { display: grid; gap: 1rem; }
aside.col .card { padding: 1.25rem 1.35rem; }

.story { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 1rem; padding: 1.25rem 1.35rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.story h2, .story h3 { font-size: 1.1rem; line-height: 1.3; font-weight: 650; letter-spacing: -.005em; margin: 0 0 .45rem; }
.story h2 a, .story h3 a { text-decoration: none; }
.story h2 a:hover, .story h3 a:hover { text-decoration: underline; text-decoration-color: var(--line-2); }
.story p { margin: 0 0 .7rem; font-size: .96rem; color: var(--ink-2); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; margin-bottom: .6rem; }
.meta { font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.meta a { color: inherit; text-decoration: none; }
.meta a:hover { color: var(--ink); text-decoration: underline; }
.updated { color: var(--brand); font-weight: 600; }
@media (prefers-color-scheme: light) { .updated { color: var(--danger); } }
.story .why { font-size: .93rem; }
.why b { color: var(--ink); font-weight: 600; }

/* sources: a dot per source */
.sources { display: flex; align-items: center; gap: .55rem; font-size: .82rem; color: var(--muted); }
.dots { display: inline-flex; gap: .22rem; }
.dots i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--brand); }

.lead { display: block; padding: clamp(1.4rem, 3vw, 2rem); }
.lead > .tile { display: none; }
.story.lead h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.14; letter-spacing: -.02em; margin-bottom: .7rem; }
.lead .dek { font-size: 1.1rem; line-height: 1.5; }
.lead .why { font-size: 1rem; }
.seconds { display: grid; gap: .85rem; }
@media (min-width: 42rem) { .seconds { grid-template-columns: 1fr 1fr; } }
.seconds .story { display: block; }
.seconds .story > .tile { display: none; }
.dayhead { display: flex; align-items: center; justify-content: space-between; margin: 1.25rem 0 -.1rem; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dayhead a { color: inherit; text-decoration: none; }
.dayhead a:hover { color: var(--ink); }
.day { display: grid; gap: .85rem; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.filters button { padding: .5rem .95rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink-2);
  font: 600 .88rem/1.2 var(--sans); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.filters button:hover { border-color: var(--ink-2); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.more { margin: 1rem 0 0; font-weight: 500; font-size: .92rem; }
.empty { margin: 0; color: var(--ink-2); }

/* sidebar */
.legend { margin: 0; font-size: .88rem; line-height: 1.45; }
.legend dt { margin-top: .85rem; }
.legend dt:first-child { margin-top: 0; }
.legend dd { margin: .35rem 0 0; color: var(--muted); }
.note { margin: .9rem 0 0; font-size: .84rem; line-height: 1.45; color: var(--muted); }
.topics { margin: 0; padding: 0; list-style: none; font-size: .93rem; }
.topics li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-top: 1px solid var(--line); }
.topics li:first-child { border-top: 0; padding-top: 0; }
.topics a { text-decoration: none; font-weight: 500; }
.topics a:hover { text-decoration: underline; }
.topics span { color: var(--muted); font-variant-numeric: tabular-nums; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { padding: .35rem .7rem; border-radius: 999px; background: var(--soft); font-size: .84rem; font-weight: 500; text-decoration: none; color: var(--ink-2); }
a.tag:hover { background: var(--ink); color: var(--surface); }

/* one story */
.issue { max-width: 50rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.issue > * { margin: 0; }
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); }
.back .i { width: 1.05rem; height: 1.05rem; }
.head { padding: 1.6rem 1.75rem; }
.head.official { background: linear-gradient(170deg, var(--safe-bg), var(--surface) 55%); }
.head.rumor { background: linear-gradient(170deg, var(--warn-bg), var(--surface) 55%); }
.head h1 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.3rem); margin: .85rem 0 .7rem; }
.standfirst { font-size: 1.14rem; line-height: 1.5; color: var(--ink-2); margin: 0 0 .9rem; }
.head .meta { margin: 0; }
.article { padding: 0; overflow: hidden; }
.part { padding: 1.5rem 1.75rem; border-top: 1px solid var(--line); }
.part:first-child { border-top: 0; }
.part h2 { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.part p { color: var(--ink-2); line-height: 1.65; max-width: 68ch; }
.part p:last-child { margin-bottom: 0; }
.part.body p { font-size: 1.08rem; line-height: 1.7; color: var(--ink); margin-bottom: 1.15rem; }
.part.body p:last-child { margin-bottom: 0; }
.links { margin: 0; padding: 0; list-style: none; line-height: 1.45; }
.links li { padding: .6rem 0; border-top: 1px solid var(--line); }
.links li:first-child { border-top: 0; padding-top: 0; }
.links li:last-child { padding-bottom: 0; }
.links a { text-decoration: none; }
.links a:hover { text-decoration: underline; }
.links small { display: block; font-size: .8rem; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 1.1rem 1.5rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: .42rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--brand); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: .23rem; top: 1.2rem; bottom: -.1rem; width: 2px; background: var(--line); }
.timeline time { font-size: .82rem; color: var(--muted); }
.timeline p { margin: .1rem 0 0; }
.disclosure { font-size: .84rem; line-height: 1.5; color: var(--muted); padding: 0 .25rem; }
.disclosure a { color: inherit; }
.related { margin-top: 1rem; }
.related > h2 { margin-bottom: .85rem; }
.related-grid { display: grid; gap: .85rem; }
@media (min-width: 42rem) { .related-grid { grid-template-columns: 1fr 1fr; } }
.related-grid .story { display: block; }
.related-grid .story > .tile { display: none; }
.related-grid h3 { font-size: 1rem; }

.briefs { padding: 0; }
.briefs ul { margin: 0; padding: 0; list-style: none; }
.briefs li { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.5rem; border-top: 1px solid var(--line); }
.briefs li:first-child { border-top: 0; }
.briefs a { text-decoration: none; line-height: 1.4; color: var(--ink-2); }
.briefs a:hover { text-decoration: underline; }
.briefs b { display: block; color: var(--ink); font-weight: 650; }
.briefs span { color: var(--muted); font-variant-numeric: tabular-nums; }

@media (max-width: 40rem) {
  .top .wrap { gap: .75rem; }
  .top nav a { padding: .45rem .6rem; font-size: .86rem; }
  .top nav .wide { display: none; }
}
@media (max-width: 36rem) {
  .story { grid-template-columns: minmax(0, 1fr); padding: 1.15rem; }
  .story > .tile { display: none; }
  .part, .head { padding: 1.25rem 1.15rem; }
  .briefs li { padding: .85rem 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { *, ::before { animation: none !important; transition: none !important; } }
@media print { .top, .foot, .side, .filters, .search { display: none; } }
