/* Shared tokens, nav, hero, tabs and the code viewer are in shared/site.css. */

.tab-content { display: none; animation: fadeUp 0.35s ease both; }
.tab-content.active { display: block; }
.tab-note { font-size: 0.875rem; color: var(--muted); margin-bottom: 20px; line-height: 1.6; }

/* ── Islands demo ── */
.islands-panel { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.islands-toolbar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px;
    background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border);
}
.islands-btn {
    font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted);
    background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 6px;
    padding: 6px 14px; cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.islands-btn:hover:not(:disabled) { color: var(--text); background: rgba(255,255,255,0.08); }
.islands-btn:disabled { opacity: 0.35; cursor: default; }
#islandsRun { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
.islands-status { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); margin-left: auto; }
.islands-status b { color: var(--accent); }
.islands-grid-wrap { display: flex; justify-content: center; padding: 24px; }
.islands-grid { display: grid; gap: 3px; }
.island-cell {
    width: 32px; height: 32px; border-radius: 5px; cursor: pointer; padding: 0;
    background: color-mix(in oklab, var(--text) 4%, transparent); border: 1px solid var(--border);
    transition: background 0.15s, border-color 0.2s;
}
.island-cell.land { background: color-mix(in oklab, var(--text) 16%, transparent); }
.island-cell.visiting { background: var(--accent); border-color: var(--accent); }
.island-cell.done0 { background: #22c55e; border-color: #22c55e; }
.island-cell.done1 { background: #38bdf8; border-color: #38bdf8; }
.island-cell.done2 { background: #f472b6; border-color: #f472b6; }
.island-cell.done3 { background: #fbbf24; border-color: #fbbf24; }
.island-cell.done4 { background: #a78bfa; border-color: #a78bfa; }
.islands-hint { padding: 0 16px 16px; font-size: 0.875rem; color: var(--muted); text-align: center; }

/* ── Pattern cards ── */
.ds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ds-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; transition: border-color 0.2s; }
.ds-card:hover { border-color: var(--accent); }
.ds-icon { font-size: 1.4rem; margin-bottom: 12px; }
.ds-title { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; color: var(--text); }
.ds-desc { font-family: var(--font-mono); font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
.ds-desc code { color: var(--accent); background: var(--accent-dim); padding: 1px 6px; border-radius: 4px; font-size: 0.875rem; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 640px) {
    .ds-grid { grid-template-columns: 1fr; }
    .island-cell { width: 26px; height: 26px; }
}
