/* styles.css — ARK Wiki Template (full) */
:root{
  --bg:#0f1115;
  --surface:#151924;
  --surface-2:#1a1f2d;
  --text:#e6ebf5;
  --muted:#9aa3b2;
  --brand:#7dcfff;
  --accent:#89d185;
  --warn:#f4d35e;
  --bad:#ff6b6b;
  --good:#67e8a9;
  --border:rgba(255,255,255,.08);
  --ring:rgba(125,207,255,.35);
}

@media (prefers-color-scheme: light){
  :root{ --bg:#f7f8fb; --surface:#ffffff; --surface-2:#f1f4fb; --text:#0b1020; --muted:#4a5568; --border:rgba(0,0,0,.08); --ring:rgba(30,144,255,.25); }
}
:root[data-theme="light"]{ --bg:#f7f8fb; --surface:#ffffff; --surface-2:#f1f4fb; --text:#0b1020; --muted:#4a5568; --border:rgba(0,0,0,.08); --ring:rgba(30,144,255,.25); }
:root[data-theme="dark"]{}

*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--text);font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif}

a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
code,kbd{background:var(--surface-2);border:1px solid var(--border);padding:.1rem .35rem;border-radius:.35rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}

.skiplink{position:absolute;left:-9999px;top:-9999px}
.skiplink:focus{left:1rem;top:1rem;background:var(--surface);padding:.5rem 1rem;border-radius:.5rem;z-index:1000}

.topbar{position:sticky;top:0;z-index:500;display:flex;gap:1rem;align-items:center;justify-content:space-between;background:rgba(0,0,0,.3);backdrop-filter:saturate(120%) blur(8px);border-bottom:1px solid var(--border);padding:.6rem 1rem}
.brand{display:flex;align-items:center;gap:.6rem;font-weight:700;letter-spacing:.3px}
.ark-cube{filter:drop-shadow(0 0 6px var(--ring))}
.brand-text{font-size:1.05rem}
.top-actions{display:flex;align-items:center;gap:.5rem}
.search input{background:var(--surface);border:1px solid var(--border);border-radius:.5rem;padding:.45rem .7rem;color:var(--text);min-width:16rem;outline:none}
.search input:focus{box-shadow:0 0 0 .2rem var(--ring);border-color:transparent}
.ghost{background:transparent;border:1px solid var(--border);color:var(--text);padding:.45rem .7rem;border-radius:.5rem;cursor:pointer}
.ghost:hover{background:var(--surface)}

.layout{display:grid;grid-template-columns:260px 1fr;gap:1.2rem;max-width:1200px;margin:0 auto;padding:1rem}
.sidebar{position:sticky;top:3.2rem;align-self:start;height:max-content;background:var(--surface);border:1px solid var(--border);border-radius:.75rem;padding:1rem}
.toc-title{font-weight:700;margin-bottom:.5rem}
#toc{list-style:none;padding-left:0;margin:0}
#toc li{margin:.25rem 0}
#toc li.h3{padding-left:.8rem;font-size:.95rem;color:var(--muted)}
.side-card{margin-top:1rem;padding-top:1rem;border-top:1px dashed var(--border)}
.side-card-title{font-weight:700;margin-bottom:.25rem}
.linklist{list-style:none;margin:0;padding:0}
.linklist li{margin:.2rem 0}

.content{display:block;min-width:0}
.breadcrumb ol{display:flex;gap:.4rem;list-style:none;padding:0;margin:0 0 .6rem 0;color:var(--muted);font-size:.9rem;flex-wrap:wrap}
.breadcrumb a{color:var(--muted)}
.breadcrumb li::after{content:"›";margin:0 .3rem;color:var(--muted)}
.breadcrumb li:last-child::after{content:""}

.page-header{background:linear-gradient(180deg,rgba(125,207,255,.12),transparent 55%);padding:1rem;border-radius:.75rem;border:1px solid var(--border);margin-bottom:1rem;position:relative}
.lede{color:var(--muted);margin:.3rem 0 0 0}
.badge{display:inline-block;background:var(--accent);color:#0c111b;padding:.15rem .5rem;border-radius:.5rem;font-weight:700;font-size:.8rem;margin-left:.35rem}
.badge.outline{background:transparent;border:1px solid var(--accent);color:var(--accent)}

.infobox{float:right;clear:right;margin:0 0 1rem 1rem;background:var(--surface);border:1px solid var(--border);border-radius:.75rem;min-width:260px;max-width:320px}
.infobox-title{padding:.75rem 1rem;border-bottom:1px solid var(--border);font-weight:700}
.infobox-grid{display:grid;grid-template-columns:auto 1fr;gap:.4rem 1rem;padding:1rem}
.infobox-grid dt{color:var(--muted)}
.infobox-grid dd{margin:0}

h1,h2,h3{scroll-margin-top:5rem}
section{background:var(--surface);border:1px solid var(--border);border-radius:.75rem;padding:1rem;margin:0 0 1rem 0}
.note{color:var(--muted);font-size:.95rem}
.checklist{margin:.5rem 0 0 0}
.checklist li{margin:.25rem 0}

.table-wrap{overflow:auto;border-radius:.6rem;border:1px solid var(--border)}
.table{width:100%;border-collapse:separate;border-spacing:0}
.table th,.table td{padding:.6rem .75rem;border-bottom:1px solid var(--border);vertical-align:top}
.table thead th{position:sticky;top:0;background:var(--surface-2);z-index:1}
.table tr:last-child td{border-bottom:0}
.table.compact th,.table.compact td{padding:.45rem .6rem}

.status{display:inline-block;padding:.1rem .45rem;border-radius:.4rem;font-weight:700;font-size:.8rem;border:1px solid var(--border)}
.status.good{background:rgba(103,232,169,.15);color:var(--good);border-color:rgba(103,232,169,.35)}
.status.warn{background:rgba(244,211,94,.15);color:var(--warn);border-color:rgba(244,211,94,.35)}
.status.idle{background:rgba(154,163,178,.15);color:var(--muted)}

.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}
.card{background:var(--surface-2);border:1px solid var(--border);border-radius:.75rem;padding:1rem}
.pilllist{display:flex;flex-wrap:wrap;gap:.35rem;padding:0;margin:.6rem 0 0 0;list-style:none}
.pill{background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:.2rem .6rem;font-size:.85rem}

.grid.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem;padding-left:1.1rem}
.featurelist{columns:2;gap:1rem;padding-left:1.2rem}
.tag{background:var(--surface-2);border:1px solid var(--border);padding:.1rem .4rem;border-radius:.35rem;font-size:.8rem;color:var(--muted)}

.expander{background:var(--surface-2);border:1px solid var(--border);border-radius:.6rem;padding:.6rem .8rem;margin:.6rem 0}
.expander summary{font-weight:700;cursor:pointer}
.expander[open]{box-shadow:0 0 0 .2rem var(--ring) inset}

.page-footer{padding:.6rem 0 0 0}
.foot-grid{display:flex;justify-content:space-between;align-items:center;gap:1rem}
.muted{color:var(--muted)}
.right{text-align:right}

@media (max-width: 980px){
  .layout{grid-template-columns:1fr}
  .sidebar{position:relative;top:auto;order:2}
  .infobox{float:none;margin:0 0 1rem 0;max-width:none}
  .cards{grid-template-columns:1fr}
  .featurelist{columns:1}
}
