/* osir.co.uk: Cyber Incident First-Hour Guide */

.ir-scens { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-top: 14px; }
.ir-scen { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 14px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface-solid); color: var(--text); font: inherit; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .15s; min-width: 0; }
.ir-scen:hover { border-color: var(--brand-1); transform: translateY(-1px); }
.ir-scen.is-active { border-color: var(--brand-1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-1) 22%, transparent); }
.ir-scen-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--brand-1) 12%, transparent); color: var(--brand-1); }
.ir-scen-text { display: grid; gap: 3px; min-width: 0; }
.ir-scen-text strong { font-size: 15px; line-height: 1.3; }
.ir-scen-text span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.ir-emergency { margin-top: 14px; }

.ir-meta { margin-top: 10px; }
#ir-guide h2 { font-size: 21px; }
.ir-h { margin-top: 22px; font-size: 16px; font-weight: 780; display: flex; align-items: center; gap: 8px; }
.ir-h::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.ir-h-now::before { background: #dc2626; }
.ir-h-dont::before { background: #d97706; }
.ir-h-next::before { background: #2563eb; }

.ir-check { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; counter-reset: irc; }
.ir-check li { counter-increment: irc; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-solid); transition: background .2s, border-color .2s; }
.ir-check li.is-done { background: rgba(34, 197, 94, .07); border-color: rgba(34, 197, 94, .35); }
.ir-check label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 11px 12px; cursor: pointer; }
.ir-check input { width: 22px; height: 22px; margin-top: 1px; accent-color: #16a34a; }
.ir-check-text { display: grid; gap: 3px; }
.ir-check-text strong { font-size: 15px; }
.ir-check-text strong::before { content: counter(irc) ". "; color: var(--muted); font-weight: 700; }
.ir-check-text span { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.ir-check li.is-done .ir-check-text strong { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text) 35%, transparent); }
.ir-stamp { font-size: 12.5px; font-weight: 700; color: #15803d; font-variant-numeric: tabular-nums; white-space: nowrap; }
:root[data-theme="dark"] .ir-stamp { color: #4ade80; }

.ir-dont { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 7px; color: var(--text-2); }
.ir-dont li::marker { color: #d97706; }
.ir-who { margin-top: 6px; }
.ir-contact-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; font-size: 14px; }
.ir-contact-line { padding: 8px 10px; border-radius: 10px; background: var(--surface-2); overflow-wrap: anywhere; }
.ir-tel { font-weight: 750; color: var(--brand-1); white-space: nowrap; }
.ir-missing { color: var(--muted); font-style: italic; }
.ir-others { margin-top: 16px; }

.ir-official { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.ir-official li { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-solid); min-width: 0; }
.ir-off-head { display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; align-items: baseline; }
.ir-off-head strong { font-size: 14.5px; }
.ir-official p { margin: 4px 0 0; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.ir-link { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.ir-official-sm li { padding: 8px 10px; }

.ir-cfield { border: 0; padding: 0; margin: 12px 0 0; min-width: 0; }
.ir-cfield legend { font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; padding: 0; }
.ir-crow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ir-crow > :first-child { grid-column: 1 / -1; }
.ir-crow .t-input { height: 38px; font-size: 14px; padding: 0 10px; }

.ir-deadline { margin-top: 12px; }
.ir-deadline .u-tiles { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ir-tile-date { font-size: 16px !important; }
.ir-late { margin-top: 8px; color: #b91c1c; font-weight: 650; }
:root[data-theme="dark"] .ir-late { color: #f87171; }
.ir-qs { margin: 16px 0 0; padding-left: 22px; display: grid; gap: 14px; }
.ir-q strong { font-size: 15px; }
.ir-q p { margin: 3px 0 8px; font-size: 13.5px; color: var(--text-2); }
.ir-ico-log { margin-top: 12px; margin-right: 6px; }
#ir-ico-out .t-verdict strong { margin-right: 2px; }

.ir-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-top: 12px; }
.ir-add .t-textarea { min-height: 64px; }
.ir-log { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.ir-entry { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); border-left: 4px solid var(--border-strong); background: var(--surface-solid); min-width: 0; }
.ir-entry.ir-tick { border-left-color: #16a34a; }
.ir-entry.ir-note { border-left-color: var(--brand-1); }
.ir-entry.ir-decision { border-left-color: #d97706; }
.ir-entry-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.ir-entry-time { font-size: 12.5px; font-weight: 750; color: var(--muted); font-variant-numeric: tabular-nums; }
.ir-entry-head .u-copy:first-of-type { margin-left: auto; }
.ir-del { color: var(--muted); }
.ir-entry-text { margin: 4px 0 0; font-size: 14.5px; overflow-wrap: anywhere; white-space: pre-wrap; }
.ir-entry-note { margin: 6px 0 0; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); font-size: 13.5px; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.ir-edit { display: grid; gap: 6px; margin-top: 8px; justify-items: start; }
.ir-edit .t-textarea { min-height: 60px; }

.ir-report { display: none; }

@media (max-width: 700px) {
  .ir-crow { grid-template-columns: 1fr; }
  .ir-add { grid-template-columns: 1fr; }
  .ir-scens { grid-template-columns: 1fr; }
}

@media print {
  body.ir-printing { background: #fff !important; color: #000; }
  body.ir-printing > *:not(main), body.ir-printing main > *:not(#ir-report) { display: none !important; }
  body.ir-printing .ir-report { display: block; font-size: 11pt; line-height: 1.45; color: #000; }
  .ir-report h1 { font-size: 18pt; margin: 0 0 8pt; }
  .ir-report h2 { font-size: 13pt; margin: 14pt 0 6pt; border-bottom: 1px solid #999; padding-bottom: 2pt; }
  .ir-report ul { margin: 0; padding-left: 16pt; }
  .ir-report .ir-r-meta { list-style: none; padding: 0; }
  .ir-report .ir-r-check { list-style: none; padding: 0; }
  .ir-report .ir-r-check li { margin: 2pt 0; }
  .ir-report .ir-r-check li.is-done { color: #14532d; }
  .ir-report table { width: 100%; border-collapse: collapse; }
  .ir-report td { border: 1px solid #999; padding: 4pt 6pt; vertical-align: top; font-size: 10pt; }
  .ir-report td:first-child { width: 30%; white-space: nowrap; }
  .ir-report tr.ir-r-blank td { height: 22pt; }
  .ir-report tr { break-inside: avoid; }
  .ir-r-foot { margin-top: 12pt; font-size: 9pt; color: #555; }
}

/* Links in this page's text */
#ir-app a:not(.btn), .tool-info a { color: var(--brand-1); text-decoration: underline; text-underline-offset: 3px; }
#ir-app a.ir-tel { text-decoration: none; }
#ir-app a.ir-missing { color: var(--muted); }
