/* notsorry — Interhost-themed status page styling. */
@import url('https://rsms.me/inter/inter.css');

:root {
  --brand: #022e8a;          /* Interhost deep blue */
  --brand-accent: #0276fd;    /* Interhost bright blue */
  --brand-cyan: #1be7ff;      /* Interhost cyan */
  --bg: #f7f9fc;
  --fg: #0f172a;
  --dim: #64748b;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --green: #10b981;
  --yellow: #f59e0b;
  --orange: #f97316;
  --red: #ef4444;
  --blue: #3b82f6;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 15px/1.55 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}
@supports (font-variation-settings: normal) {
  body { font-family: 'Inter var', sans-serif; }
}
a { color: var(--brand-accent); text-decoration: none; }
a:hover { color: var(--brand); text-decoration: underline; }

.container { max-width: 880px; margin: 0 auto; padding: 32px 20px 80px; }
.container.narrow { max-width: 520px; }

h1 { font-size: 28px; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 32px 0 12px; }
h3 { font-size: 16px; margin: 16px 0 8px; }
.dim { color: var(--dim); }
.small { font-size: 12px; }

.brand { text-align: center; margin-bottom: 32px; padding: 8px 0; }
.brand .logo { max-height: 56px; max-width: 320px; height: auto; }
.brand h1 { font-size: 22px; font-weight: 600; margin-top: 14px; color: var(--fg); letter-spacing: -0.02em; }
.brand p { margin: 6px 0 0; }

/* Overall status banner */
.overall {
  display: flex; flex-direction: column; gap: 6px;
  padding: 28px 32px; border-radius: 12px;
  color: white; margin-bottom: 32px;
  box-shadow: 0 4px 12px rgba(2,46,138,.08), 0 1px 3px rgba(0,0,0,.04);
}
.overall .big { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.overall .ts { font-size: 12px; opacity: .9; font-variant-numeric: tabular-nums; }

/* Components */
.component-list { list-style: none; padding: 0; margin: 0;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.component-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-top: 1px solid var(--border);
}
.component-list li:first-child { border-top: 0; }
.component-list .name { font-weight: 500; color: var(--fg); }
.component-list .status-label { margin-left: auto; font-size: 13px; color: var(--dim); }
.component-list .dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(0,0,0,.04); }
.component-group { margin-top: 24px; color: var(--dim); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* Incidents */
.incident {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--dim);
  padding: 16px 20px; border-radius: 6px; margin-bottom: 14px;
}
.incident h3, .incident h4 { margin: 0 0 6px; }
.incident-minor { border-left-color: var(--yellow); }
.incident-major { border-left-color: var(--orange); }
.incident-critical { border-left-color: var(--red); }
.incident-maintenance { border-left-color: var(--blue); }
.incident-resolved { border-left-color: var(--green); opacity: .8; }
.incident .meta { font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.updates { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; }
.updates li { padding: 6px 0; border-top: 1px dashed var(--border); }
.updates li:first-child { border-top: 0; }
.updates-detail { padding-left: 0; }

/* Badges */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  background: var(--dim); color: white;
}
.badge-minor { background: var(--yellow); color: #4a3500; }
.badge-major { background: var(--orange); }
.badge-critical { background: var(--red); }
.badge-maintenance, .badge-status { background: var(--blue); }
.badge-resolved { background: var(--green); }
/* Per-status badge colors (used when class="badge badge-<status>") */
.badge-investigating { background: var(--orange); }
.badge-identified    { background: var(--yellow); color: #4a3500; }
.badge-monitoring    { background: var(--brand-accent); }
.badge-scheduled     { background: #93c5fd; color: #1e3a8a; }  /* light blue */
.badge-underway      { background: var(--brand-accent); }
.badge-complete      { background: var(--green); }
.badge-cancelled     { background: var(--dim); text-decoration: line-through; }
.badge-posted        { background: var(--brand-accent); }
.badge-updated       { background: var(--brand-accent); }

/* Footer */
.footer { text-align: center; color: var(--dim); padding: 32px 16px 24px; font-size: 12px; }
.footer a { color: var(--dim); }

/* Forms / admin */
form label { display: block; margin: 12px 0 4px; }
form input[type=text], form input[type=password], form input[type=email],
form input[type=number], form input[type=url], form input:not([type]),
form textarea, form select {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border);
  border-radius: 6px; font: inherit; background: white;
}
form button, .btn {
  display: inline-block; background: var(--brand); color: white;
  padding: 8px 16px; border: 0; border-radius: 6px; font: inherit;
  cursor: pointer; margin-top: 12px; text-decoration: none;
}
form button:hover, .btn:hover { filter: brightness(0.92); text-decoration: none; }
form button.link, button.link { background: none; color: var(--brand); padding: 4px 8px; }
form button.danger, button.danger { color: var(--red); }
form button.resolve { background: var(--green); }
form .checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0; font-weight: 400; }
form .checkbox-grid label { margin: 0; font-weight: 400; display: flex; align-items: center; gap: 6px; }

.error { background: #fee2e2; color: #991b1b; padding: 10px 14px; border-radius: 6px; margin: 12px 0; }
.warn { background: #fef3c7; color: #92400e; padding: 10px 14px; border-radius: 6px; margin: 12px 0; }
.key-display {
  background: #1a1f29; color: #e6e6e6; padding: 14px 18px;
  border-radius: 6px; overflow: auto; font-size: 14px;
}

/* Admin header (legacy single-line; new pages use .admin-topnav below) */
.admin-header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-header h1 { margin-right: auto; }

/* === Admin top nav (SorryApp-style) === */
.admin-topnav { background: #ffffff; border-bottom: 1px solid var(--border); }
.admin-topnav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 24px;
}
.admin-topnav-home { font-size: 20px; color: var(--fg); text-decoration: none; padding: 4px 8px; }
.admin-topnav-home:hover { color: var(--brand); }
.admin-topnav-title { font-weight: 600; flex: 1; text-align: center; color: var(--fg); }
.admin-topnav-user { white-space: nowrap; }
.admin-topnav .btn-secondary { font-size: 13px; padding: 6px 14px; }
.breadcrumbs { margin: 18px 0 8px; }
.breadcrumbs a { color: var(--brand-accent); }

/* === Notice form (Write a New Notice) === */
.notice-form { max-width: 760px; margin: 24px 0; }
.notice-form > * { margin-bottom: 18px; }
.notice-form fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 16px 20px; background: var(--card-bg); }
.notice-form legend { padding: 0 6px; font-weight: 700; font-size: 15px; }
.notice-form label.full { display: block; }
.notice-form label.full strong { display: block; margin-bottom: 6px; font-size: 14px; }
.notice-form input[type=text], .notice-form input[name=title], .notice-form textarea, .notice-form select,
.notice-form input[type=datetime-local] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font: inherit;
  background: white;
}
.notice-form input[name=title]:focus, .notice-form textarea:focus { outline: 2px solid var(--brand-accent); outline-offset: -1px; }

.notice-type { display: flex; flex-direction: column; gap: 8px; }
.radio-pill {
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
  font-weight: 400;
}
.radio-pill:has(input:checked) { border-color: var(--brand-accent); background: #f0f7ff; }
.radio-pill input { margin: 0; }
.radio-pill strong { font-weight: 600; min-width: 160px; }

.time-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--card-bg);
}
.time-began strong { margin-right: 10px; }
.time-now-pill { display: inline-flex; align-items: center; gap: 12px; }
.time-input input { max-width: 240px; }

.comp-group {
  border-top: 1px solid var(--border); margin-top: 0; padding: 0;
}
.comp-group:first-of-type { border-top: 0; }
.comp-group summary {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 4px; cursor: pointer; list-style: none; user-select: none;
}
.comp-group summary::-webkit-details-marker { display: none; }
.comp-group .expand-icon {
  margin-left: auto; width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--brand-accent); color: var(--brand-accent);
  border-radius: 50%; font-size: 16px; line-height: 1;
  transition: transform .15s;
}
.comp-group[open] .expand-icon { transform: rotate(45deg); }
.group-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; }
.comp-list { list-style: none; padding: 0 0 8px 32px; margin: 0; }
.comp-list li { padding: 4px 0; }
.comp-list label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; }

.notice-form label.checkbox { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; }

.form-actions {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: #fafbfc; border: 1px solid var(--border); border-radius: 8px;
}
.form-actions .btn-primary { padding: 11px 24px; }

/* History page search */
.history-search { display: flex; gap: 10px; align-items: center; margin: 20px 0; }
.history-search input[type=search] {
  flex: 1; max-width: 480px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 999px; font: inherit; background: white;
}

/* Static markdown pages (privacy / maintenance / errors / badge) */
.static-page { max-width: 760px; margin: 32px auto; }
.static-page h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 18px; }
.static-body { font-size: 15px; line-height: 1.65; }
.static-body h1, .static-body h2 { font-size: 22px; margin: 24px 0 10px; }
.static-body h3 { font-size: 17px; margin: 18px 0 8px; }
.static-body p { margin: 0 0 12px; }
.static-body ul, .static-body ol { margin: 10px 0 16px; padding-left: 26px; }
.static-body li { margin-bottom: 4px; }
.static-body code { background: #f4f6f8; padding: 1px 6px; border-radius: 4px; }
.static-body pre { background: #1a1f29; color: #e6e6e6; padding: 14px; border-radius: 6px; overflow: auto; font-size: 13px; }

/* Activity summary stat cards on admin tenant detail */
.activity-summary { margin: 24px 0 36px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px;
  margin-top: 12px;
}
.stat-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 18px 20px;
}
.stat-label { color: var(--dim); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.stat-value {
  font-size: 36px; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); line-height: 1;
  margin: 8px 0 12px;
}
.stat-delta {
  display: inline-block; padding: 2px 8px; border-radius: 12px;
  background: #d1fae5; color: #047857;
  font-size: 11px; font-weight: 700; vertical-align: middle; margin-left: 6px;
}
.stat-breakdown {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--border); padding-top: 10px;
}
.stat-breakdown li {
  display: flex; justify-content: space-between; padding: 3px 0;
  font-size: 13px; color: var(--dim);
}
.stat-breakdown li span { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Publisher type picker (admin) */
.publisher-types {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px;
  margin-top: 12px;
}
.publisher-type-card {
  display: block; padding: 16px 18px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px;
  text-decoration: none; color: var(--fg);
  transition: border-color .15s, transform .15s;
}
.publisher-type-card:hover {
  border-color: var(--brand-accent); transform: translateY(-1px); text-decoration: none;
}
.publisher-type-card strong { display: block; font-size: 15px; margin-bottom: 4px; }

/* Template picker on the notice form */
.template-picker {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 14px; background: #f0f7ff; border: 1px solid #c7e0ff; border-radius: 8px;
}
.template-picker label { margin: 0; display: flex; align-items: center; gap: 10px; flex: 1; }
.template-picker select { flex: 1; max-width: 480px; }

/* Current Status radios — SorryApp-style coloured dots */
.status-radios { display: flex; gap: 14px; flex-wrap: wrap; }
.status-radio {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px;
  font-weight: 500; cursor: pointer;
}
.status-radio input { margin: 0; }
.status-radio span::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 8px; vertical-align: middle;
}
.status-investigating span::before { background: var(--orange); }
.status-identified    span::before { background: var(--yellow); }
.status-monitoring    span::before { background: var(--brand-accent); }
.status-resolved      span::before { background: var(--green); }
.status-scheduled     span::before { background: #93c5fd; }   /* light blue */
.status-underway      span::before { background: var(--brand-accent); }
.status-complete      span::before { background: var(--green); }
.status-cancelled     span::before { background: var(--dim); }
.status-posted        span::before { background: var(--brand-accent); }
.status-updated       span::before { background: var(--brand-accent); }
.status-cancelled span { text-decoration: line-through; opacity: .7; }
.status-radio:has(input:checked) { border-color: var(--brand-accent); background: #f0f7ff; }

/* Publication & notification block */
.publication { background: var(--card-bg); }
.publication .radio-pill { background: white; }
.publication legend { font-size: 15px; }

/* Grid table */
.grid { width: 100%; border-collapse: collapse; margin-bottom: 12px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.grid th, .grid td { padding: 8px 12px; text-align: left; border-top: 1px solid var(--border); font-size: 14px; }
.grid th { background: #fafbfc; font-weight: 600; border-top: 0; }
.grid tr.dim { color: var(--dim); }

.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 0; }
.inline-form input, .inline-form select { width: auto; }

details summary { cursor: pointer; padding: 8px 0; color: var(--brand); }

pre { background: #1a1f29; color: #e6e6e6; padding: 14px; border-radius: 6px; overflow: auto; font-size: 13px; }
code { font-family: ui-monospace, SFMono-Regular, monospace; }

@media (max-width: 600px) {
  .component-list .status-label { display: none; }
  .checkbox-grid { grid-template-columns: 1fr; }
}

/* === SorryApp-style layout: topnav + clean hero + group cards === */

body { background: #ffffff; }

.topnav { background: #ffffff; border-bottom: 1px solid var(--border); }
.topnav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 24px;
}
.brand-link {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--fg); font-weight: 600;
}
.brand-link:hover { text-decoration: none; }
.brand-logo { height: 32px; width: auto; }
.brand-tag { color: var(--dim); font-weight: 500; font-size: 14px; }
.topnav-links { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.topnav-links a { color: var(--fg); font-weight: 500; font-size: 14px; }
.topnav-links a:hover { color: var(--brand); }
.btn-subscribe {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border: 1px solid var(--border); border-radius: 999px;
  color: var(--fg) !important; font-weight: 500;
}
.btn-subscribe:hover { border-color: var(--brand); color: var(--brand) !important; text-decoration: none; }

/* Centered hero with status icon */
.hero {
  background: #ffffff;
  padding: 56px 24px 72px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 96px; height: 96px; border-radius: 50%;
  margin-bottom: 18px;
}
.hero-operational     .hero-icon { color: var(--green); }
.hero-maintenance     .hero-icon { color: var(--blue); }
.hero-degraded        .hero-icon { color: var(--yellow); }
.hero-partial_outage  .hero-icon { color: var(--orange); }
.hero-major_outage    .hero-icon { color: var(--red); }
.hero-title {
  font-size: 30px; font-weight: 700; line-height: 1.2; margin: 0 0 10px;
  letter-spacing: -0.02em; color: var(--fg);
}
@media (min-width: 600px) { .hero-title { font-size: 38px; } }
.hero-sub { margin: 0; font-size: 16px; color: var(--dim); }
.hero-sub a { color: var(--brand-accent); }

.container { max-width: 1100px; padding: 32px 24px 80px; }

/* Section blocks (SorryApp uses big spaced sections with bold titles) */
.section { margin: 36px 0; }
.section-title {
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 18px;
  color: var(--fg);
}

/* Group cards (collapsible, 2-column grid like SorryApp) */
.group-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 740px) {
  .group-grid { grid-template-columns: 1fr; }
}
.group-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 0;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.group-card[open] { box-shadow: 0 2px 6px rgba(15,23,42,.06); }
.group-card summary {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; cursor: pointer;
  list-style: none; user-select: none;
}
.group-card summary::-webkit-details-marker { display: none; }
.group-expand {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--brand-accent); color: var(--brand-accent);
  font-size: 18px; font-weight: 400; line-height: 1; flex-shrink: 0;
  transition: transform .15s;
}
.group-card[open] .group-expand { transform: rotate(45deg); }
.group-name { font-weight: 600; font-size: 16px; flex: 1; color: var(--fg); }
.group-indicator { flex-shrink: 0; display: inline-flex; }
.group-indicator-operational    { color: var(--green); }
.group-indicator-maintenance    { color: var(--blue); }
.group-indicator-degraded       { color: var(--yellow); }
.group-indicator-partial_outage { color: var(--orange); }
.group-indicator-major_outage   { color: var(--red); }
.group-card .component-list {
  border-top: 1px solid var(--border); border-radius: 0;
  margin: 0; box-shadow: none; border-left: 0; border-right: 0; border-bottom: 0;
}
.group-card .component-list li { padding: 12px 20px; }

/* Notice cards (Active incidents / Upcoming maintenance / Recent notices) */
.notice-tag {
  display: inline-block; padding: 3px 10px; border-radius: 4px;
  background: var(--blue); color: white; font-size: 11px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px;
}
.notice-tag-resolved { background: var(--green); }
.notice-time { margin: 4px 0 0; }

/* Notice cards (replaces .incident style for the homepage) */
.notice {
  background: var(--card-bg); border: 1px solid var(--border);
  border-left: 4px solid var(--dim);
  padding: 18px 22px; border-radius: 8px; margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.notice-title { margin: 6px 0 4px; font-size: 17px; }
.notice-title a { color: var(--fg); }
.notice-title a:hover { color: var(--brand); }
.notice-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.notice-components { margin: 4px 0; }
.notice-synopsis { margin: 8px 0 0; font-size: 14px; color: var(--fg); }
.notice-minor { border-left-color: var(--yellow); }
.notice-major { border-left-color: var(--orange); }
.notice-critical { border-left-color: var(--red); }
.notice-maintenance { border-left-color: var(--blue); }
.notice-resolved { border-left-color: var(--green); }

/* Subscribe section (homepage CTA) */
.subscribe-section {
  margin-top: 48px; padding: 32px 28px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px;
  text-align: center;
}
.subscribe-section p { margin: 0 0 12px; color: var(--dim); }
.subscribe-section .btn-primary { margin-top: 10px; padding: 12px 28px; font-size: 15px; }

.footer-meta { text-align: center; margin: 32px 0 0; }

.btn-primary {
  display: inline-block; padding: 10px 22px; background: var(--brand); color: white !important;
  border-radius: 6px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font: inherit;
}
.btn-primary:hover { filter: brightness(0.92); text-decoration: none; }
.btn-secondary {
  display: inline-block; padding: 8px 18px; background: var(--card-bg); color: var(--brand);
  border-radius: 6px; font-weight: 600; text-decoration: none; border: 1px solid var(--border);
}

/* === Single-notice page (SorryApp-style) === */
.notice-header {
  background: #f4f6f8;
  border-bottom: 1px solid var(--border);
  padding: 40px 24px 28px;
}
.notice-header::before {
  /* The thin brand bar on top of the title in SorryApp */
  content: ""; display: block;
  width: 40px; height: 4px; background: var(--brand-accent); border-radius: 2px;
  margin: 0 auto 14px;
}
.notice-header-inner { max-width: 1100px; margin: 0 auto; }
.notice-header .breadcrumbs { margin: 0 0 6px; }
.notice-header .breadcrumbs a { color: var(--brand-accent); }
.notice-header-row {
  display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap;
}
.notice-header-text { flex: 1; min-width: 280px; }
.notice-detail-title {
  font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
  margin: 0 0 10px;
}
@media (min-width: 700px) { .notice-detail-title { font-size: 38px; } }
.notice-detail-time {
  margin: 0; color: var(--dim); font-size: 15px; font-variant-numeric: tabular-nums;
}
.notice-detail-time svg { color: var(--dim); }

/* Status pill at top-right of header */
.notice-status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  background: white; border: 1px solid var(--brand-accent); color: var(--brand-accent);
  white-space: nowrap;
}
.notice-status-pill::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor;
}
.notice-status-investigating { color: var(--orange); border-color: var(--orange); }
.notice-status-identified    { color: #b45309; border-color: var(--yellow); }
.notice-status-monitoring    { color: var(--brand-accent); border-color: var(--brand-accent); }
.notice-status-resolved      { color: var(--green); border-color: var(--green); }
.notice-status-scheduled     { color: var(--brand-accent); border-color: var(--brand-accent); }
.notice-status-underway      { color: var(--brand-accent); border-color: var(--brand-accent); }
.notice-status-complete      { color: var(--green); border-color: var(--green); }
.notice-status-cancelled     { color: var(--dim); border-color: var(--dim); text-decoration: line-through; }
.notice-status-posted        { color: var(--brand-accent); border-color: var(--brand-accent); }
.notice-status-updated       { color: var(--brand-accent); border-color: var(--brand-accent); }

/* 2-col body: notice text on left, components sidebar on right */
.notice-detail-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px;
  max-width: 1100px; padding: 36px 24px 80px;
}
@media (max-width: 800px) {
  .notice-detail-layout { grid-template-columns: 1fr; gap: 24px; }
}

/* Each update is its own block; status label on top, body below, author footer */
.update-block { margin-bottom: 36px; }
.update-block:last-child { margin-bottom: 0; }
.update-status {
  font-size: 18px; font-weight: 700; margin: 0 0 14px; padding-bottom: 6px;
  border-bottom: 2px solid currentColor; display: inline-block;
}
.update-status-investigating { color: var(--orange); }
.update-status-identified    { color: #b45309; }
.update-status-monitoring    { color: var(--brand-accent); }
.update-status-resolved      { color: var(--green); }
.update-status-scheduled     { color: var(--brand-accent); }
.update-status-underway      { color: var(--brand-accent); }
.update-status-complete      { color: var(--green); }
.update-status-cancelled     { color: var(--dim); }
.update-status-posted        { color: var(--brand-accent); }
.update-status-updated       { color: var(--brand-accent); }

.update-message { line-height: 1.6; font-size: 15px; color: var(--fg); }
.update-message p { margin: 0 0 12px; }
.update-message ul, .update-message ol { margin: 8px 0 16px; padding-left: 24px; }
.update-message li { margin-bottom: 4px; }
.update-message strong { font-weight: 600; }
.update-message a { color: var(--brand-accent); }
.update-message code {
  background: #f4f6f8; padding: 1px 6px; border-radius: 4px; font-size: 13px;
}
.update-author { margin-top: 14px; padding-top: 8px; border-top: 1px dashed var(--border); }

/* Sidebar */
.notice-sidebar { font-size: 14px; }
.sidebar-title {
  font-size: 16px; font-weight: 700; margin: 0 0 12px;
}
.sidebar-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 20px;
}
.sidebar-group {
  margin: 14px 0 6px; font-size: 14px; font-weight: 600; color: var(--fg);
}
.sidebar-card > .sidebar-group:first-child { margin-top: 0; }
.sidebar-comp-list { list-style: none; padding-left: 8px; margin: 0; }
.sidebar-comp-list li {
  padding: 4px 0; color: var(--brand-accent); font-weight: 500;
}

/* Page footer (single-notice page only) */
.page-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 18px 0; }
.page-footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
}
.page-footer a { color: var(--dim); }
.page-footer a:hover { color: var(--brand); }

.subscribe-form fieldset {
  border: 1px solid var(--border); border-radius: 8px; padding: 14px 18px; margin: 18px 0;
  background: var(--card-bg);
}
.subscribe-form legend { padding: 0 6px; font-weight: 600; font-size: 14px; }
.subscribe-form label.radio, .subscribe-form label.checkbox {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 4px 14px 4px 0; font-weight: 400;
}
.subscribe-form .component-picker {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin-top: 8px;
}
.subscribe-form .component-picker h4 {
  grid-column: 1 / -1; margin: 12px 0 4px;
  color: var(--dim); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
}

.flash { padding: 14px 18px; border-radius: 8px; margin: 16px 0; }
.flash-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.flash-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.flash-info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

@media (max-width: 600px) {
  .subscribe-form .component-picker { grid-template-columns: 1fr; }
}
