/* ═══════════════════════════════════════════════════════════════
   NOTICES (notices.php list: nl-*, notice.php detail: nd-*, the sanitized official body: nt-*)
   Builds on css/character.css (cd-* tokens, panels, tabs, .tb-search, .it-* tiles). Static by design: no loaders or
   entrance animations.
   ═══════════════════════════════════════════════════════════════ */

/* ── Shared chips ───────────────────────────────────────────────── */
.nl-cat {
    display: inline-block;
    padding: 1px 9px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--c, #9fb2d3) 20%, transparent);
    color: var(--c, #9fb2d3);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
    text-decoration: none;
}
.nl-chip { display: inline-block; padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); color: var(--text-2); font-size: 0.7rem; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.nl-chip.is-upd { background: rgba(121, 255, 128, 0.14); color: var(--up); }
.nl-chip.is-old { background: rgba(255, 255, 255, 0.06); color: var(--text-3); }
.nl-chip.is-jp { background: rgba(232, 65, 60, 0.9); color: #fff; }

/* ── List (notices.php) ─────────────────────────────────────────── */
.nl { display: grid; gap: 20px; align-content: start; }
.nl > * { min-width: 0; }
.nl-head { display: grid; gap: 6px; padding-top: 12px; }
.nl-h1 { justify-self: start; font-size: clamp(1.6rem, 4.4vw, 2.2rem); }
.nl-lead { margin: 6px 0 0; color: var(--text-2); }
.nl-tools { display: grid; gap: 10px; margin-bottom: 14px; }
.nl-cats { justify-self: start; border-radius: 14px; }
.nl-cats .cd-tab { text-decoration: none; }
.nl-n { margin-left: 2px; opacity: 0.75; font-weight: 500; }
.nl-row2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.nl-search { flex: 1 1 240px; max-width: 420px; }
.nl-select { padding: 7px 10px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px; background: rgba(0, 0, 0, 0.3); color: var(--text); font: 500 0.9rem/1.2 var(--font-body); }
.nl-select option { background: #111f38; color: #eaf0ff; }
.nl-check { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--text-2); font-size: 0.85rem; cursor: pointer; }
.nl-count { margin: 0; color: var(--text-3); font-size: 0.85rem; }
:root:not(.js) .nl-search, :root:not(.js) .nl-select, :root:not(.js) .nl-check { display: none; }
.nl-pending .nl-list, .nl-pending .nl-count { visibility: hidden; }

.nl-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nl-row a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.2); color: var(--text); text-decoration: none; }
.nl-row a:hover { background: rgba(255, 255, 255, 0.07); }
.nl-th { flex: none; width: 96px; height: auto; aspect-ratio: 120 / 68; border-radius: 6px; object-fit: cover; background: rgba(255, 255, 255, 0.04); }
.nl-main { display: grid; gap: 4px; min-width: 0; }
.nl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.nl-meta time { color: var(--text-3); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.nl-t { font-size: 0.95rem; line-height: 1.35; overflow-wrap: anywhere; }
.nl-empty { margin: 0; padding: 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); color: var(--text-3); text-align: center; }
.nl-more { margin: 14px 0 0; text-align: center; }
.nl-foot { margin-top: 14px; }
@media (max-width: 480px) { .nl-th { width: 72px; } }

/* ── Detail (notice.php) ────────────────────────────────────────── */
.nd { display: grid; gap: 16px; align-content: start; }
.nd > * { min-width: 0; }
.nd-crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; color: var(--text-3); font-size: 0.85rem; }
.nd .nd-crumbs a { color: var(--text-2); text-decoration: none; }
.nd .nd-crumbs a:hover { color: #fff; text-decoration: underline; }
.nd-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 992px) { .nd-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.nd-main { display: grid; gap: 14px; }
.nd-side { display: grid; gap: 16px; min-width: 0; }
.nd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 8px; }
.nd-meta time { color: var(--text-3); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.nd-title { margin: 0; font: 400 clamp(1.25rem, 3.6vw, 1.7rem)/1.3 var(--font-display); color: #fff; overflow-wrap: anywhere; }
.nd-note { margin: 6px 0 0; color: var(--up); font-size: 0.85rem; font-weight: 600; }
.nd-old { margin: 8px 0 0; padding: 8px 12px; border-radius: 8px; background: rgba(255, 165, 82, 0.12); color: var(--enh); font-size: 0.88rem; }
.nd .nd-old a { color: #fff; font-weight: 600; }
.nd-banner { display: block; width: 100%; height: auto; border-radius: 10px; }
.nd-official { margin: 0; }
.nd-h2 { margin-bottom: 14px; font-size: 1.15rem; }
.nd-rel { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nd-rel a { display: grid; gap: 1px; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); color: var(--text); text-decoration: none; }
.nd-rel a:hover { background: rgba(255, 255, 255, 0.09); }
.nd-rel small { color: var(--acc2); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.cd-jp .nd-rel small { letter-spacing: 0; }
.nd-rel span { font-size: 0.9rem; line-height: 1.3; overflow-wrap: anywhere; }
.nd-tiles { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nd-tiles .it-tile .it-ic { width: 52px; }
.nd-vers { display: grid; gap: 4px; margin: 0; padding-left: 20px; font-size: 0.88rem; }
.nd .nd-vers a { color: var(--acc2); text-decoration: none; }
.nd .nd-vers a:hover { text-decoration: underline; }
.nd-vers .is-here > span { color: #fff; font-weight: 600; }
.nd-vers small { margin-left: 4px; color: var(--text-3); }
.nd-vers small.is-latest { color: var(--up); }
.nd-facts { display: grid; gap: 8px; margin: 0; font-size: 0.86rem; }
.nd-facts > div { display: grid; gap: 1px; }
.nd-facts dt { color: var(--text-3); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.cd-jp .nd-facts dt { letter-spacing: 0; }
.nd-facts dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.nd-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nd-nav-a { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--panel-border); border-radius: 10px; background: var(--panel-bg); color: var(--text); text-decoration: none; }
.nd-nav-a:hover { border-color: var(--acc2); }
.nd-nav-a small { color: var(--text-3); font-size: 0.75rem; }
.nd-nav-a span { font-size: 0.88rem; line-height: 1.3; overflow-wrap: anywhere; }
.nd-nav-a.is-next { text-align: right; }

/* ── The official body, on a light sheet like the game's notice window ── */
.nt-body {
    padding: 18px 16px;
    border-radius: 10px;
    background: #f6f4ee;
    color: #23262f;
    font-size: 0.95rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
@media (min-width: 576px) { .nt-body { padding: 24px 26px; } }
.nt-body p, .nt-body .nt-p { margin: 0 0 12px; }
.nt-body a { color: #0b61c4; }
.nt-body hr { margin: 16px 0; border: 0; border-top: 1px solid rgba(0, 0, 0, 0.18); opacity: 1; }
.nt-body ul, .nt-body ol { margin: 0 0 12px; padding-left: 22px; }
.nt-body .nt-h { margin: 20px 0 12px; padding: 6px 12px; border-radius: 6px; background: #2b3246; color: #fff; font: 700 1.05rem/1.35 var(--font-body); }
.nt-body .nt-h u { text-decoration: none; }
.nt-body .nt-h2 { margin: 16px 0 8px; padding-left: 10px; border-left: 4px solid #e8413c; color: #1b1e27; font: 700 1rem/1.35 var(--font-body); }
.nt-body .nt-cap { margin: 12px 0 6px; font-weight: 700; }
.nt-body .nt-red { color: #e00000; }
.nt-body .nt-ext { word-break: break-all; }
.nt-body .nt-tw { margin: 0 0 12px; overflow-x: auto; }
.nt-body table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.nt-body th, .nt-body td { padding: 6px 8px; border: 1px solid rgba(0, 0, 0, 0.25); vertical-align: top; }
.nt-body th { background: rgba(0, 0, 0, 0.07); }
.nt-body img { max-width: 100%; height: auto; }
.nt-body .nt-banner { display: block; width: 100%; margin: 0 0 12px; border-radius: 6px; }
.nt-body .nt-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; margin: 8px 0 14px; }
.nt-body .nt-fig { margin: 0 0 12px; text-align: center; }
.nt-body .nt-figs .nt-fig { margin: 0; }
.nt-body .nt-fig img { display: block; width: 100%; border-radius: 6px; background: #dcd8cc; }
.nt-body .nt-fig-memory img { max-width: 420px; margin: 0 auto; }
.nt-body figcaption { margin-bottom: 4px; color: #4a4f5e; font-size: 0.8rem; font-weight: 700; }
.nt-body .nt-lost { display: block; padding: 18px 10px; border: 1px dashed rgba(0, 0, 0, 0.3); border-radius: 6px; color: #6a6f7e; font-size: 0.8rem; }
.nt-body .nt-note { color: #4a4f5e; font-size: 0.85rem; }
