/*
 * DEEPTASK scoped foundation & typography system.
 * - Normal text: SamsungOne-400 (font-weight: 400, zero synthetic bold).
 * - Headings & emphasized text: SamsungOne-700 (font-weight: 400, zero extra bold).
 * - Responsive scale: Mobile 12px (label 7px) | Tablet / iPad 13px (label 8px) | PC 15px (label 9px).
 * - Never alters WordPress admin core or host theme outside .deeptask-scope.
 */

@font-face {
    font-family: 'SamsungOne-400';
    src: url('../assets/font/SamsungOne-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SamsungOne-700';
    src: url('../assets/font/SamsungOne-700.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@media (min-width: 768px) {
    :root {
        --deeptask-font-size: var(--deeptask-font-size-tablet);
        --deeptask-floating-label-size: var(--deeptask-floating-label-size-tablet);
    }
}

@media (min-width: 1280px) {
    :root {
        --deeptask-font-size: var(--deeptask-font-size-desktop);
        --deeptask-floating-label-size: var(--deeptask-floating-label-size-desktop);
    }
}

@media (min-width: 1280px) and (max-width: 1366px) and (pointer: coarse) and (hover: none) {
    :root {
        --deeptask-font-size: var(--deeptask-font-size-tablet);
        --deeptask-floating-label-size: var(--deeptask-floating-label-size-tablet);
    }
}

.deeptask-scope,
.deeptask-scope * {
    box-sizing: border-box;
    font-synthesis: none;
}

.deeptask-scope {
    font-family: var(--deeptask-font-regular);
    font-size: var(--deeptask-font-size);
    font-weight: 400;
    color: var(--deeptask-color-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Enforce SamsungOne-400 with zero synthetic bold on all regular UI elements */
.deeptask-scope :where(div, p, span, small, label, a, li, ul, ol, em, i, td, legend, button, input, select, textarea, option, code) {
    font-family: var(--deeptask-font-regular);
    font-weight: 400 !important;
}

.deeptask-scope :where(p, label, a, li, td, button, input, select, textarea, option) {
    font-size: var(--deeptask-font-size);
}

/* Headings & emphasized text use native SamsungOne-700 face with font-weight: 400 (no extra bolding) */
.deeptask-scope :where(
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    strong,
    b,
    th,
    .deeptask-admin__title,
    .dt-card__title,
    .dt-kpi-card__value,
    .dt-album-section__title,
    .dt-album-hero__title,
    .dt-auth-card__title,
    .dt-order-card__name,
    .dt-order-card__code,
    .dt-money-row__val,
    .dt-toast,
    .dt-badge,
    .dt-dropdown-group,
    .dt-dropdown-option.is-selected,
    .dt-dropdown-option[aria-selected="true"]
) {
    font-family: var(--deeptask-font-emphasis) !important;
    font-weight: 400 !important;
}

.deeptask-scope h1,
.deeptask-scope h2,
.deeptask-scope h3,
.deeptask-scope h4,
.deeptask-scope h5,
.deeptask-scope h6 {
    margin: 0;
    color: var(--deeptask-color-text);
    font-size: var(--deeptask-font-size);
    line-height: 1.35;
}

/* Preserve Times New Roman serif for printable legal contract paper */
.deeptask-scope :is(.dt-contract-paper, .dt-pub-contract-paper),
.deeptask-scope :is(.dt-contract-paper, .dt-pub-contract-paper) * {
    font-family: var(--deeptask-font-serif) !important;
}

.deeptask-scope :is(.dt-contract-paper, .dt-pub-contract-paper) :where(strong, b, h1, h2, h3, th) {
    font-weight: 700 !important;
}

.deeptask-scope p {
    margin: 0;
}

.deeptask-scope a {
    color: var(--deeptask-color-primary);
    text-decoration: none;
}

.deeptask-scope a:hover {
    color: var(--deeptask-color-primary-hover);
}

.deeptask-scope :focus-visible {
    outline: 2px solid var(--deeptask-color-focus-ring);
    outline-offset: 2px;
}

.deeptask-hidden,
.deeptask-scope [hidden] {
    display: none !important;
}

.deeptask-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .deeptask-scope *,
    .deeptask-scope *::before,
    .deeptask-scope *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.deeptask-scope .dt-load-status {
    grid-column: 1 / -1;
    margin: 0;
    padding: 8px 12px;
    color: var(--deeptask-color-text-muted);
}

.deeptask-scope .dt-load-status:empty {
    display: none;
}


.dt-copy-buffer {
    position: fixed;
    opacity: 0;
    pointer-events: none;
}
