/* The pages under the Nexus menu: User Guides, Known Issues, Status. Loaded after css/blog.css. */
.guide-read { max-width: 860px; }
.dl-size { font-weight: 500; opacity: .75; margin-left: .45em; font-size: .88em; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.blog-hero .guide-read > p + p { margin-top: 1rem; max-width: 60ch; }

/* Guide list */
.guide-list { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.guide-card { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line-2); }
.guide-num { font: 500 2.1rem/1 var(--serif); color: var(--ember); padding-top: .2rem; }
.guide-card h2 { font-size: clamp(1.35rem, 2.6vw, 1.65rem); margin-bottom: .35rem; }
.guide-card h2 a:hover { color: var(--ember); }
.guide-links { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin-top: .7rem; font-size: .95rem; }
.guide-links .link { text-underline-offset: 4px; }
.more-coming { margin-top: 40px; padding: 26px 28px; border: 1px solid var(--ember-line); border-radius: 14px; background: linear-gradient(180deg, rgba(255,157,26,.06), transparent); }
.more-coming h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-bottom: .6rem; }
.more-coming p + p { margin-top: .7rem; }

/* Guide page */
.guide-head { padding-bottom: 20px; }
.guide-toc { margin: 8px 0 28px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); }
.guide-toc summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--text); list-style: none; }
.guide-toc summary::-webkit-details-marker { display: none; }
.guide-toc summary::after { content: "+"; float: right; color: var(--ember); font-weight: 400; }
.guide-toc details[open] summary::after { content: "\2212"; }
.guide-toc ol { margin: 0; padding: 0 18px 16px 40px; columns: 2; column-gap: 28px; font-size: .95rem; }
.guide-toc li { break-inside: avoid; padding: .2rem 0; }
.guide-toc a { color: var(--text-2); }
.guide-toc a:hover { color: var(--ember); }
.guide-body h2 { scroll-margin-top: 90px; }
.guide-body h3 { scroll-margin-top: 90px; }
.guide-body figure { margin: 1.6em 0; }
.guide-body .shot { display: inline-block; max-width: 100%; cursor: zoom-in; vertical-align: top; }
.guide-body .shot img { border: 1px solid var(--line-2); border-radius: 10px; width: auto; max-width: 100%; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.guide-body .shot.wide, .guide-body .shot.wide img { width: 100%; }
.guide-body .shot:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; border-radius: 10px; }
.callout { border: 1px solid var(--line-2); border-left: 3px solid var(--ember); border-radius: 10px; background: var(--surface); padding: 16px 20px; font-size: 1rem; line-height: 1.7; }
.callout > * + * { margin-top: .7em; }
.callout-title { font: 600 .8rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ember); }
.callout-quickstart { border-color: var(--ember-line); border-left-color: var(--ember); background: linear-gradient(180deg, rgba(255,157,26,.08), var(--surface)); }
.callout-note { border-left-color: #8fb3d9; }
.callout-note .callout-title { color: #8fb3d9; }
.callout-warning { border-left-color: #f0805f; }
.callout-warning .callout-title { color: #f0805f; }
.callout ol, .callout ul { padding-left: 1.3em; }

/* Shared bits for the live pages (Known Issues, Status) */
.hub-note { font-size: .95rem; color: var(--text-3); }
.hub-loading { color: var(--text-3); padding: 18px 0; }
.hub-error { color: #f0a08a; padding: 12px 0; }
.chip { display: inline-flex; align-items: center; gap: .4rem; font: 600 .76rem/1 var(--sans); letter-spacing: .02em; padding: .38rem .65rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.area::before { display: none; }
.chip.s-investigating { color: #f0b35f; border-color: rgba(240,179,95,.4); }
.chip.s-in-progress { color: #ff9d1a; border-color: var(--ember-line); }
.chip.s-fix-coming { color: #8fd0a6; border-color: rgba(143,208,166,.4); }
.chip.s-fixed { color: #6fcf8f; border-color: rgba(111,207,143,.4); }

/* Forms on these pages (selects and text areas look like the inputs) */
.field select, .field textarea { font: 1rem var(--sans); color: var(--text); background: var(--bg); border: 1px solid var(--field-line); border-radius: 10px; padding: .8rem .95rem; width: 100%; }
.field textarea { resize: vertical; line-height: 1.55; min-height: 3.2em; }
.field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; border-color: var(--ember); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); opacity: .8; }

/* Known Issues */
.ki-tools { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-bottom: 18px; }
.ki-count { color: var(--text-3); font-size: .95rem; margin-bottom: 10px; }
.ki-h { font-size: clamp(1.45rem, 2.8vw, 1.8rem); margin: 44px 0 14px; }
.ki-list { display: grid; gap: 14px; }
.ki-card { border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); padding: 20px 22px; scroll-margin-top: 96px; }
.ki-card:target { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(255,157,26,.15); }
.ki-card h3 { font-size: 1.28rem; margin: .7rem 0 .45rem; }
.ki-card p { font-size: 1rem; }
.ki-card p + p { margin-top: .55rem; }
.ki-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.ki-work { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(255,157,26,.06); border: 1px solid var(--ember-line); }
.ki-work-h { font: 600 .78rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ember); margin-bottom: .35rem; }
.ki-foot { margin-top: 12px; font-size: .88rem !important; color: var(--text-3); }
.report-card h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: .5rem; }
.report-card > p + p { margin-top: .6rem; }
.report-form { display: grid; gap: 16px; margin-top: 22px; }
.report-actions { display: flex; gap: 12px; }
.dupes { border: 1px dashed var(--ember-line); border-radius: 10px; padding: 12px 14px; }
.dupes-h { font-size: .93rem; color: var(--text); margin-bottom: .4rem; }
.dupes ul { padding-left: 1.2em; font-size: .95rem; }
.dupes li + li { margin-top: .3rem; }
.dupes-status { color: var(--text-3); font-size: .88rem; }
.rf-done { margin-top: 20px; padding: 18px 0 4px; }
.rf-done:focus { outline: none; }
.rf-done h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.rf-done .btn { margin-top: 14px; }

/* Status */
.st-hero h1 { margin-bottom: 1.2rem; }
.st-banner { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); margin-bottom: 1.4rem; }
.st-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--text-3); margin-top: .45rem; flex: 0 0 auto; }
.st-state { font: 500 clamp(1.3rem, 2.6vw, 1.6rem)/1.3 var(--serif); color: var(--text); }
.st-detail { font-size: .95rem; color: var(--text-2); margin-top: .25rem; }
.st-up { border-color: rgba(111,207,143,.45); }
.st-up .st-dot { background: #6fcf8f; box-shadow: 0 0 0 6px rgba(111,207,143,.14); }
.st-slow .st-dot, .st-minor .st-dot { background: #f0b35f; box-shadow: 0 0 0 6px rgba(240,179,95,.14); }
.st-slow, .st-minor { border-color: rgba(240,179,95,.45); }
.st-down { border-color: rgba(240,128,95,.55); }
.st-down .st-dot { background: #f0805f; box-shadow: 0 0 0 6px rgba(240,128,95,.16); }
.st-maint { border-color: rgba(143,179,217,.45); }
.st-banner.st-maint .st-dot { background: #8fb3d9; box-shadow: 0 0 0 6px rgba(143,179,217,.14); }
.st-checking .st-dot { animation: st-pulse 1.2s ease-in-out infinite; }
@keyframes st-pulse { 50% { opacity: .35; } }
.st-card { border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); padding: 18px 22px; margin-bottom: 12px; }
.st-card h3 { font-size: 1.22rem; margin: .5rem 0 .3rem; }
.st-card > p + p, .st-body p + p { margin-top: .55rem; }
.st-card ul { padding-left: 1.3em; margin-top: .5rem; }
.st-card li + li { margin-top: .3rem; }
.st-card li::marker { color: var(--ember); }
.st-update h3 { margin-top: .1rem; }
.st-update details { margin-top: .4rem; }
.st-update summary { cursor: pointer; color: var(--ember); font-weight: 600; font-size: .95rem; }
.st-when { font-size: .9rem; color: var(--text-3); }
.st-incident.sev-major { border-color: rgba(240,128,95,.55); }
.st-incident.sev-minor { border-color: rgba(240,179,95,.45); }
.st-done { opacity: .7; }
.st-live { border-color: rgba(143,179,217,.55); }
.st-timeline { list-style: none; margin: 14px 0 0; padding: 0 0 0 16px; border-left: 2px solid var(--line-2); }
.st-timeline li + li { margin-top: 12px; }
.st-note-h { font: 600 .85rem/1.3 var(--sans); color: var(--text); }
.st-empty { padding: 4px 0 6px; }
.st-foot { margin-top: 44px; color: var(--text-2); }
.chip.st-chip-investigating, .chip.st-chip-identified { color: #f0b35f; border-color: rgba(240,179,95,.4); }
.chip.st-chip-monitoring, .chip.st-chip-planned { color: #8fb3d9; border-color: rgba(143,179,217,.4); }
.chip.st-chip-live { color: #8fb3d9; border-color: rgba(143,179,217,.6); }
.chip.st-chip-resolved { color: #6fcf8f; border-color: rgba(111,207,143,.4); }
.chip.st-chip-cancelled { color: var(--text-3); }

/* Admin pages */
.adm-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .92rem; color: var(--text-3); margin-bottom: 1.4rem; }
.adm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.adm-head .ki-h { margin-bottom: 14px; }
.adm-card { border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); padding: 18px 20px; margin-bottom: 12px; }
.adm-card.adm-new { border-color: var(--ember-line); }
.adm-card h3 { font-size: 1.2rem; margin: .4rem 0; }
.adm-meta { font-size: .88rem; color: var(--text-3); margin-top: .4rem; word-break: break-word; }
.adm-label { font: 600 .8rem/1.2 var(--sans); color: var(--text-2); margin-top: .6rem; }
.adm-pre { white-space: pre-wrap; word-break: break-word; font-size: .98rem; margin-top: .3rem; }
.adm-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.adm-new-row { margin: 18px 0 8px; }
.adm-form { display: grid; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.adm-danger { color: #ff8a6a !important; }
.adm-closed { margin-top: 36px; }
.adm-closed summary { cursor: pointer; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.adm-check { padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--text-2); }

@media (max-width: 640px) {
  .guide-card { grid-template-columns: 1fr; gap: 6px; }
  .guide-num { font-size: 1.4rem; }
  .guide-toc ol { columns: 1; }
  .more-coming { padding: 20px; }
  .ki-tools { grid-template-columns: 1fr; }
  .ki-card, .st-card, .adm-card { padding: 16px; }
  .st-banner { padding: 16px; }
}
