/* ============================================================
   Time Duration Calculator — tool-specific styles on base.css.
   No :root / theme; consumes base tokens only.
   ============================================================ */

.tdc-tool { background: var(--bg); transition: background 0.5s; }
.tdc-tool .tool-instructions-wrapper { text-align: center; margin-bottom: 24px; }
.tdc-tool .tool-section-title {
    font-family: var(--font-head); font-weight: 800;
    font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--text);
    margin: 0 0 12px; letter-spacing: -0.3px;
}
.tdc-tool .text-primary-red { color: var(--accent-2); }
.tdc-tool .tool-section-texte {
    color: var(--text-muted); font-size: 0.95rem; line-height: 1.7;
    max-width: 720px; margin: 0 auto;
}

.tdc-panel {
    background: var(--panel-bg); border: 1px solid var(--panel-border);
    border-radius: var(--radius); box-shadow: var(--shadow-soft);
    padding: 24px; max-width: 620px; margin: 0 auto;
}

.tdc-times { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
@media (max-width: 520px) { .tdc-times { grid-template-columns: 1fr; } }

.tdc-field { display: flex; flex-direction: column; gap: 8px; }
.tdc-break-field { margin-bottom: 16px; }
.tdc-input {
    width: 100%; box-sizing: border-box; padding: 12px 14px;
    background: var(--card-bg); color: var(--text);
    border: 1.5px solid var(--border-color); border-radius: var(--radius-sm);
    font-family: var(--font-head); font-size: 1.05rem; font-weight: 600;
}
.tdc-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(231,76,60,0.15); }

.tdc-check { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--text); font-size: 0.9rem; cursor: pointer; }
.tdc-check input { accent-color: var(--purple); cursor: pointer; }

.tdc-result {
    background: var(--gradient-result); color: #fff;
    border-radius: var(--radius); padding: 24px; text-align: center; margin-top: 6px;
}
.tdc-result-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.9; }
.tdc-out-main { font-size: clamp(1.4rem, 5vw, 2rem); font-weight: 800; margin: 8px 0 6px; line-height: 1.2; }
.tdc-out-decimal { font-size: 1rem; font-weight: 700; opacity: 0.95; margin-bottom: 6px; }
.tdc-out-sub { font-size: 0.85rem; opacity: 0.8; font-family: var(--font-mono); }