/* ==========================================================================
   KRIN — Themes layer
   Light / Dark / Custom. Custom values are injected as CSS variables on :root
   by js/ds/theme.js; this file only handles transitions and theme specifics.
   ========================================================================== */

html {
    transition: background-color var(--ds-duration-base) var(--ds-ease-standard),
                color var(--ds-duration-base) var(--ds-ease-standard);
}

body,
.ds-sidebar,
.ds-header,
.ds-card,
.card,
table.data th,
.ds-table th {
    transition: background-color var(--ds-duration-base) var(--ds-ease-standard),
                border-color var(--ds-duration-base) var(--ds-ease-standard),
                color var(--ds-duration-base) var(--ds-ease-standard);
}

/* Theme swatch preview used in the theme customizer */
.ds-theme-swatch {
    width: 100%;
    height: 42px;
    border-radius: var(--ds-radius-sm);
    border: 1px solid var(--ds-border-base);
    background: linear-gradient(135deg, var(--ds-brand-500), var(--ds-brand-700));
    box-shadow: var(--ds-shadow-xs);
}

.ds-token-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--ds-space-3); }
.ds-token {
    border: 1px solid var(--ds-border-subtle);
    border-radius: var(--ds-radius-sm);
    padding: var(--ds-space-3);
    background: var(--ds-surface-base);
    font-size: var(--ds-font-size-xs);
}
.ds-token__value { font-family: var(--ds-font-family-mono); direction: ltr; color: var(--ds-text-muted); }
.ds-color-dot {
    display: inline-block; width: 100%; height: 30px; border-radius: var(--ds-radius-xs);
    border: 1px solid var(--ds-border-subtle); margin-bottom: var(--ds-space-2);
}

/* Print: reduce chrome */
@media print {
    .ds-sidebar,
    .ds-header,
    .ds-footer,
    .admin-nav,
    .ds-toasts { display: none !important; }
    .ds-content { padding: 0; }
    body { background: #fff; }
}
