:root {
  --bg: #0f1117; --surface: #1a1d27; --border: #2a2d3a;
  --text: #e2e4ed; --muted: #6b7280; --accent: #4f8ef7;
  --green: #22c55e; --red: #ef4444; --yellow: #f59e0b; --purple: #a78bfa;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text);
       font-family: 'Segoe UI', system-ui, sans-serif; line-height: 1.6; padding: 2rem 1rem; }
.page { max-width: 820px; margin: 0 auto; }

nav { font-size: .8rem; color: var(--muted); margin-bottom: 2rem; }
nav a { color: var(--accent); text-decoration: none; }
nav a:hover { text-decoration: underline; }

header { border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
         color: var(--accent); margin-bottom: .4rem; }
h1 { font-size: 1.5rem; font-weight: 700; }
.meta { font-size: .8rem; color: var(--muted); margin-top: .4rem; }

h2 { font-size: .9rem; font-weight: 700; color: var(--accent); text-transform: uppercase;
     letter-spacing: .06em; margin: 2rem 0 .75rem; padding-bottom: .35rem;
     border-bottom: 1px solid var(--border); }
h3 { font-size: .875rem; font-weight: 600; color: var(--yellow); margin: 1.25rem 0 .5rem; }
p  { font-size: .875rem; color: var(--muted); margin-bottom: .75rem; }

.cards { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.card { display: flex; justify-content: space-between; align-items: center;
        padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--border);
        border-radius: 8px; text-decoration: none; color: var(--text);
        transition: border-color .15s; }
.card:hover { border-color: var(--accent); }
.card-left h3 { font-size: .95rem; font-weight: 600; margin: 0 0 .25rem; color: var(--text); }
.card-left p  { font-size: .8rem; color: var(--muted); margin: 0; }
.card-right   { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.ticket { font-size: .75rem; color: var(--muted); font-family: monospace; }
.arrow  { color: var(--muted); }

code { font-family: 'Cascadia Code','Fira Code',monospace; font-size: .8rem;
       background: #252836; padding: .1em .35em; border-radius: 3px; color: #a5b4fc; }

.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; font-weight: 700;
         letter-spacing: .06em; text-transform: uppercase; padding: .2rem .55rem;
         border-radius: 99px; }
.badge-done     { background: #14532d; color: var(--green); }
.badge-progress { background: #1e3a5f; color: var(--accent); }
.badge-planned  { background: #2d1b69; color: var(--purple); }
.badge-open     { background: #292524; color: var(--yellow); }

.doc-body { font-size: .9rem; line-height: 1.8; }
.doc-body h2 { font-size: 1rem; }
.doc-body p  { color: var(--text); margin-bottom: 1rem; }
.doc-body ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.doc-body li { font-size: .875rem; margin-bottom: .3rem; }

footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--border);
         font-size: .75rem; color: var(--muted); }

/* Collapsible subgroup */
.card-group summary { list-style: none; display: block; cursor: pointer; }
.card-group summary::-webkit-details-marker { display: none; }
.card-group summary .card { cursor: pointer; }
.group-arrow { color: var(--muted); display: inline-block; transition: transform .15s ease; }
.card-group[open] .group-arrow { transform: rotate(90deg); }
.sub-cards { display: flex; flex-direction: column; gap: .5rem; padding-top: .5rem; margin-left: .75rem; }
