/* IKANGAI Vibe Support.
   Colours, radii and type are the same tokens as alerts.ikangai.com, so the two sites read as one family.
   Text comes in four sizes only: 1.16rem lead, 1rem body, .92rem secondary, .84rem labels. */

:root {
  --bg: #F4F5F7; --surface: #fff; --ink: #14161B; --ink-2: #3D424B; --muted: #677080;
  --line: #E4E7EB; --line-2: #D2D6DC; --soft: #EFF1F4; --brand: #F22938;
  --danger: #CF1B2B; --danger-bg: #FDEDEF; --warn: #AD4F00; --warn-bg: #FFF2E2;
  --calm: #566070; --calm-bg: #EDEFF3; --safe: #0A8155; --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;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D0F13; --surface: #151820; --ink: #F2F4F7; --ink-2: #C6CBD3; --muted: #949CA8;
    --line: #242933; --line-2: #323844; --soft: #1D212A; --brand: #FF4655;
    --danger: #FF5F6B; --danger-bg: #2C1519; --warn: #FFAB57; --warn-bg: #2B1E11;
    --calm: #A6AEBA; --calm-bg: #1F232C; --safe: #3DD598; --safe-bg: #10261D;
    --night: #0A0C10; --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 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; overflow-wrap: break-word;
}
::selection { background: color-mix(in srgb, var(--brand) 22%, transparent); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
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; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--ink); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
code { font: .92em var(--mono); background: var(--soft); border: 1px solid var(--line); border-radius: 5px; padding: .06em .3em; }
.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 clamp(1rem, 3.5vw, 2rem); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: .6rem 1rem; background: var(--ink); color: var(--surface); border-radius: var(--r-s); }
.skip:focus { top: .75rem; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: .5rem 1.5rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.brand svg { width: 1.05rem; height: 1.2rem; fill: var(--brand); }
.brand b { color: var(--brand); font-weight: 800; letter-spacing: .05em; }
.top nav { margin-left: auto; display: flex; gap: .2rem; }
.top nav a { 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, .top nav [aria-current] { color: var(--ink); background: var(--soft); }

/* one column, the same on every page */
main { flex: 1; width: 100%; max-width: 46rem; margin: 0 auto; padding: clamp(1.75rem, 4vw, 3rem) clamp(1rem, 3.5vw, 1.5rem) 4rem; }
.intro { margin-bottom: 2rem; }
.intro h1 { margin-bottom: .8rem; }
.lead { font-size: 1.16rem; line-height: 1.6; color: var(--ink-2); }

/* shared pieces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem 1.6rem; box-shadow: var(--shadow); }
.card > h2, .part h2, .item h2 { font-size: 1.14rem; line-height: 1.3; font-weight: 650; letter-spacing: -.01em; }
.meta { font-size: .84rem; color: var(--muted); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.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.critical { color: var(--danger); background: var(--danger-bg); }
.badge.high { color: var(--warn); background: var(--warn-bg); }
.badge.safe { color: var(--safe); background: var(--safe-bg); }
button { font: 600 .92rem/1.2 var(--sans); cursor: pointer; }
button.link { font-weight: 400; color: var(--ink); background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
button.link:hover { text-decoration-color: currentColor; }
button.primary { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border-radius: var(--r-s); border: 1px solid var(--ink); background: var(--ink); color: var(--surface); transition: opacity .15s; }
button.primary:hover { opacity: .86; }
button.primary:active { transform: translateY(1px); }
button.primary .i { width: 1rem; height: 1rem; }
a.out { display: inline-flex; align-items: center; gap: .25rem; }
a.out .i { width: .95rem; height: .95rem; color: var(--muted); }
.note { display: flex; gap: .6rem; font-size: .92rem; color: var(--ink-2); background: var(--soft); border-radius: var(--r-s); padding: .7rem .85rem; }
.note .i { margin-top: .12rem; color: var(--muted); }
.checked { margin-top: 1rem; }

/* notice list */
.list { display: grid; gap: 1rem; }
.item { position: relative; padding: 1.4rem 1.6rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.item:hover { border-color: var(--line-2); box-shadow: 0 2px 4px rgba(16, 24, 40, .05), 0 8px 20px rgba(16, 24, 40, .07); }
.item h2 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -.015em; margin: .75rem 0 .45rem; }
.item h2 a { text-decoration: none; }
.item h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); } /* the whole card is the link */
.item > p { color: var(--ink-2); }
.item-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.go { display: inline-flex; align-items: center; gap: .3rem; font-size: .92rem; font-weight: 600; }
.go .i { width: 1.05rem; height: 1.05rem; transition: transform .15s; }
.item:hover .go .i { transform: translateX(3px); }
[data-progress].started { color: var(--safe); font-weight: 600; }
.filter-note, .made { font-size: .92rem; color: var(--muted); }
.made { margin-top: 1.5rem; padding: 0 .25rem; }

/* tool picker: the dark panel alerts.ikangai.com uses, shown only once there are enough notices to filter */
.picker { display: none; }
.js .picker { display: block; position: relative; isolation: isolate; overflow: hidden; margin-bottom: 1.25rem; padding: 1.4rem 1.5rem 1.5rem; border-radius: 18px; background: var(--night); color: #C9CED6; }
.picker::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(26rem 13rem at 100% 0, rgba(242, 41, 56, .24), transparent 66%), radial-gradient(18rem 10rem at 0 100%, rgba(255, 255, 255, .06), transparent 60%); }
.picker h2 { font-size: 1.14rem; line-height: 1.3; font-weight: 650; letter-spacing: -.01em; margin-bottom: .85rem; color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { position: relative; display: inline-flex; align-items: center; gap: .3rem; padding: .42rem .8rem .42rem .55rem; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .06); color: #E8EAED; font-size: .92rem; font-weight: 500; line-height: 1.2; cursor: pointer; user-select: none; transition: background-color .15s, border-color .15s, color .15s; }
.chip:hover { border-color: rgba(255, 255, 255, .45); }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip .i { width: .95rem; height: .95rem; stroke-width: 2.4; }
.chip .add { color: #8E97A5; }
.chip .on, .chip:has(:checked) .add { display: none; }
.chip:has(:checked) { background: #fff; border-color: #fff; color: #12151B; }
.chip:has(:checked) .on { display: block; }
.chip:has(:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-color-scheme: dark) { .js .picker { border: 1px solid var(--line); } }

/* one notice */
.back { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1rem; font-size: .92rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); }
.back .i { width: 1.05rem; height: 1.05rem; }
.head h1 { font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.15rem); line-height: 1.15; margin: .9rem 0 .8rem; }
.whom { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .92rem; color: var(--muted); }
.tag { font-size: .84rem; font-weight: 500; line-height: 1; padding: .34rem .6rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
.article { padding: 0; margin: 1rem 0; overflow: hidden; }
.part { padding: 1.5rem 1.6rem 1.6rem; }
.part + .part { border-top: 1px solid var(--line); }
.part h2 { margin-bottom: .7rem; }
.part > p { color: var(--ink-2); }
.part > p + p { margin-top: .75rem; }
.part-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 1rem; margin-bottom: .45rem; }
.triage { background: color-mix(in srgb, var(--soft) 45%, var(--surface)); }
.checks { list-style: none; margin: 0 -.7rem; padding: 0; }
.checks label { display: grid; grid-template-columns: 1.15rem minmax(0, 1fr); gap: .8rem; padding: .55rem .7rem; border-radius: var(--r-s); color: var(--ink-2); cursor: pointer; }
.checks label:hover { background: var(--soft); }
.checks input { width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; accent-color: var(--ink); cursor: pointer; }
.checks label:has(:checked) { color: var(--ink); }
.verdict { margin-top: .8rem; font-size: .92rem; color: var(--muted); }
.verdict .yes { display: none; gap: .5rem; font-weight: 550; color: var(--safe); background: var(--safe-bg); border-radius: var(--r-s); padding: .6rem .8rem; }
.verdict .yes .i { margin-top: .1rem; }
.verdict .yes a { color: inherit; text-decoration-color: currentColor; white-space: nowrap; }
.triage:has(:checked) .verdict .no { display: none; }
.triage:has(:checked) .verdict .yes { display: flex; }

/* steps: tick each one off; the page remembers */
.steps { list-style: none; margin: .25rem 0 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 1.4rem 2.85rem; color: var(--ink-2); }
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: .87rem; top: 2.05rem; bottom: .15rem; width: 2px; background: var(--line); }
.step { display: block; cursor: pointer; }
.step input { position: absolute; left: 0; top: -.1rem; width: 1.9rem; height: 1.9rem; margin: 0; opacity: 0; cursor: pointer; }
.num, .steps.plain li::before { position: absolute; left: 0; top: -.1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; font-size: .84rem; font-weight: 700; }
.num { border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink-2); transition: background-color .15s, border-color .15s; }
.num .i { display: none; width: 1.05rem; height: 1.05rem; stroke-width: 2.6; }
.step:hover .num { border-color: var(--ink-2); }
.step:has(:checked) .num { background: var(--safe); border-color: var(--safe); color: #fff; }
.step:has(:checked) .num b { display: none; }
.step:has(:checked) .num .i { display: block; }
.step:has(:checked) .step-text { color: var(--muted); }
.step:has(:focus-visible) .num { outline: 2px solid var(--brand); outline-offset: 2px; }
.steps.plain li::before { content: counter(s); background: var(--ink); color: var(--surface); }
@media (prefers-color-scheme: dark) { .step:has(:checked) .num { color: #0D0F13; } }

/* the message to paste: plain words, not code */
.message { margin-top: .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); overflow: hidden; }
.message-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem .5rem .5rem 1.05rem; border-bottom: 1px solid var(--line); font-size: .84rem; font-weight: 600; color: var(--muted); }
.message button .done, .message button.copied .copy { display: none; }
.message button.copied .done { display: block; }
.message pre { margin: 0; padding: .95rem 1.05rem 1.05rem; font: 1rem/1.55 var(--sans); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }

/* source */
.source > h2 { margin-bottom: .5rem; }
.source .cite { color: var(--ink-2); }
.moments { list-style: none; margin: .9rem 0; padding: 0; display: grid; gap: .4rem; }
.moments a { display: flex; align-items: center; gap: .65rem; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: var(--r-s); text-decoration: none; font-size: .92rem; color: var(--ink-2); transition: background-color .15s, border-color .15s; }
.moments a:hover { background: var(--soft); border-color: var(--line-2); color: var(--ink); }
.moments .i { width: .9rem; height: .9rem; fill: currentColor; stroke-width: 1.2; color: var(--muted); }
.moments b { font: 600 .84rem var(--mono); color: var(--ink); min-width: 3rem; font-variant-numeric: tabular-nums; }
.source h3 { font-size: .92rem; font-weight: 650; margin: 1.1rem 0 .3rem; }
.source h3 + p { font-size: .92rem; color: var(--ink-2); }
.source .note { margin-top: .9rem; }
.more-notices { margin-top: 2.25rem; }
.more-notices h2 { font-size: .84rem; font-weight: 600; color: var(--muted); margin: 0 0 .6rem .25rem; }
.more-notices ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.more-notices a { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; transition: border-color .15s; }
.more-notices a:hover { border-color: var(--line-2); }
.more-notices a > span { flex: 1; min-width: 0; display: grid; gap: .55rem; justify-items: start; }
.more-notices b { font-weight: 600; line-height: 1.35; }
.more-notices .i { width: 1.05rem; height: 1.05rem; color: var(--muted); transition: transform .15s; }
.more-notices a:hover .i { transform: translateX(3px); }

/* tools table */
.table-card { padding: 0; overflow: hidden; }
.tools { width: 100%; border-collapse: collapse; text-align: left; }
.tools th, .tools td { padding: 1rem .9rem; vertical-align: top; }
.tools tr > :first-child { padding-left: 1.4rem; }
.tools tr > :last-child { padding-right: 1.4rem; }
.tools thead th { font-size: .84rem; font-weight: 600; color: var(--muted); padding-block: .75rem; background: color-mix(in srgb, var(--soft) 55%, var(--surface)); border-bottom: 1px solid var(--line); }
.tools tbody tr + tr > * { border-top: 1px solid var(--line); }
.tools tbody th { font-weight: 650; white-space: nowrap; }
.tools tbody th small { display: block; font-size: .84rem; font-weight: 400; color: var(--muted); }
.tools td:nth-child(2), .tools td:nth-child(3) { white-space: nowrap; font-size: .92rem; }
.tools td p { font-size: .92rem; margin-top: .5rem; }
.tools .cell-note { font-size: .84rem; color: var(--muted); }

/* guides */
.guides { display: grid; gap: 1rem; }
.guide > h2 { margin-bottom: .2rem; }
.guide ul { list-style: none; margin: 0; padding: 0; }
.guide li { padding: .9rem 0; border-top: 1px solid var(--line); }
.guide li:first-child { border-top: 0; }
.guide li:last-child { padding-bottom: 0; }
.guide a { text-decoration: none; }
.guide a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.guide b { font-weight: 600; }
.guide .by { display: block; font-size: .84rem; color: var(--muted); }
.guide p { font-size: .92rem; color: var(--ink-2); margin-top: .2rem; }

/* toolbox */
.jump { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 2rem; }
.jump a { padding: .42rem .8rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: .92rem; font-weight: 500; text-decoration: none; transition: border-color .15s, color .15s; }
.jump a:hover { border-color: var(--ink-2); color: var(--ink); }
.kit + .kit { margin-top: 2.5rem; }
.kit > h2 { font-size: 1.3rem; line-height: 1.25; font-weight: 650; letter-spacing: -.015em; }
.kit-intro { color: var(--ink-2); margin: .4rem 0 1rem; }
.kit ul { list-style: none; margin: 0; padding: 0 1.6rem; }
.kit li { padding: 1.15rem 0; }
.kit li + li { border-top: 1px solid var(--line); }
.kit li > a.out { text-decoration: none; }
.kit li > a.out:hover b { text-decoration: underline; text-underline-offset: 3px; }
.kit li b { font-weight: 650; }
.kit li > p { margin-top: .2rem; color: var(--ink-2); }
.kit li > .meta { margin-top: .4rem; color: var(--muted); }
.kit li > .kit-note { font-size: .92rem; color: var(--muted); }
.kit .note { margin-top: .7rem; }
.note.warn { background: var(--warn-bg); color: var(--ink); }
.note.warn .i { color: var(--warn); }
.note.warn a.out { margin-left: .15rem; white-space: nowrap; }
.related { font-size: .92rem; }

/* imprint and plain lists */
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .55rem 1.5rem; margin: 0; }
.facts dt { font-size: .92rem; color: var(--muted); }
.facts dd { margin: 0; }
.plain-list { margin: .7rem 0 0; padding-left: 1.2rem; color: var(--ink-2); }
.plain-list li + li { margin-top: .45rem; }

/* footer */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.25rem; padding-bottom: 1.5rem; }
.foot span { display: inline-flex; align-items: center; gap: .45rem; }
.foot .i { color: var(--safe); }
.foot .legal-links { flex-wrap: wrap; gap: .4rem 1.25rem; }
.foot a { color: inherit; }

@media (max-width: 40rem) {
  .top { position: static; }
  .top .wrap { flex-wrap: wrap; padding-block: .7rem .45rem; }
  .top nav { margin-left: -.6rem; width: calc(100% + 1.2rem); overflow-x: auto; scrollbar-width: none; gap: 0; }
  .top nav a { padding: .55rem .5rem; font-size: .84rem; }
  html { scroll-padding-top: 1rem; }
  .card, .item { padding: 1.2rem 1.15rem; }
  .card.article, .card.table-card { padding: 0; }
  .kit ul.card { padding: 0 1.15rem; }
  .part { padding: 1.3rem 1.15rem 1.4rem; }
  .item h2 { font-size: 1.2rem; }
  .steps li { padding-left: 2.6rem; }
  /* the table becomes one block per tool */
  .tools thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tools, .tools tbody, .tools tr, .tools th, .tools td { display: block; }
  .tools tr { padding: 1.15rem; }
  .tools tbody tr + tr { border-top: 1px solid var(--line); }
  .tools tbody tr + tr > * { border-top: 0; }
  .tools tr > * { padding: 0 !important; }
  .tools tbody th { font-size: 1.14rem; margin-bottom: .6rem; }
  .tools td { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0 .75rem; padding-block: .3rem !important; white-space: normal !important; }
  .tools td::before { content: attr(data-label); font-size: .84rem; color: var(--muted); padding-top: .1rem; }
  .tools td > * { justify-self: start; grid-column: 2; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts dd { margin-bottom: .7rem; }
}
@media print {
  .top, .picker, .foot, .back, .more-notices, .message button, .skip, .go { display: none !important; }
  body { background: #fff; }
  .card, .item { box-shadow: none; break-inside: avoid; }
}
