/* Caldera garden: note pages + index. Tokens come from theme.css. */
.tabs a.tab { color: var(--text-muted); text-decoration: none; }
.tabs a.tab:hover { color: var(--text); }
.g-main { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
.g-crumbs { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: 10px; }
.g-crumbs a { color: var(--text-muted); }
.g-title { font-family: var(--font-display); font-size: 2.1rem; line-height: 1.15; font-weight: 600; margin: 0 0 12px; color: var(--text-strong); }
.g-lede { color: var(--text-muted); margin: 0 0 18px; }
.g-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: var(--text-sm); color: var(--text-muted); padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.g-stage { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: var(--text-xs); text-transform: capitalize; color: var(--text); background: var(--bg-raised); white-space: nowrap; }
.g-evergreen { border-color: var(--accent); }
.g-body { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.7; color: var(--text); overflow-wrap: anywhere; }
.g-body h2, .g-body h3, .g-body h4 { font-family: var(--font-display); color: var(--text-strong); margin: 1.6em 0 .5em; line-height: 1.25; }
.g-body p, .g-body ul, .g-body ol, .g-body blockquote, .g-body pre { margin: 0 0 1em; }
.g-body ul, .g-body ol { padding-left: 1.3em; }
.g-body blockquote { border-left: 3px solid var(--accent); padding: 2px 0 2px 16px; color: var(--text-muted); }
.g-body code { font-family: var(--font-mono); font-size: .85em; background: var(--bg-sunken); padding: 1px 5px; border-radius: 4px; }
.g-body pre { background: var(--bg-sunken); padding: 14px; border-radius: var(--radius-md); overflow-x: auto; }
.g-body pre code { background: none; padding: 0; }
.g-body img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.g-body a.internal { border-bottom: 1px dashed var(--accent-text); text-decoration: none; }
.g-body a.xlink { border-bottom: 1px dashed var(--accent-text); text-decoration: none; }
.g-body .xl-who { font-family: var(--font-body); font-size: .7em; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); vertical-align: 2px; }
.g-body .unlinked { color: var(--text); }
.g-body mark { background: var(--accent-soft); color: inherit; }
.g-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.g-links, .g-xlinks { margin-top: 36px; }
.g-links h2, .g-xlinks h2 { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 600; margin: 0 0 10px; }
.g-list { display: grid; gap: 10px; }
.g-list-profile { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-bottom: 8px; }
.g-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg-raised); color: var(--text); text-decoration: none; }
.g-card:hover { border-color: var(--accent); text-decoration: none; }
.g-card-t { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--text-strong); }
.g-card-x { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.5; }
.g-card-m { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: var(--text-xs); color: var(--text-muted); }
.g-card .g-who { color: var(--accent-text); }
.g-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.g-filter button { font: inherit; font-size: var(--text-sm); color: var(--text-muted); background: var(--bg-raised); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; text-transform: capitalize; }
.g-filter button span { opacity: .7; margin-left: 2px; }
.g-filter button.is-on { color: var(--text); border-color: var(--accent); }
.g-foot { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--text-xs); color: var(--text-muted); display: grid; gap: 6px; line-height: 1.5; }
.g-foot code { font-family: var(--font-mono); }
@media (max-width: 600px) { .g-main { padding: 22px 16px 48px; } .g-title { font-size: 1.7rem; } .g-body { font-size: 1.04rem; } }
