/* Free HR calculators (ADR-0093) — builds on the fl-/fx- styles in docapps.css,
   like the holidays pages. Colours come from the site tokens; the few fixed
   tints have a [data-theme="dark"] twin. */
.tl-wrap { max-width: 980px; }
.tl-hero { text-align: center; margin: 0 auto 22px; max-width: 800px; }
.tl-hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.2; letter-spacing: -.02em; color: var(--navy-900); margin: 12px 0 8px; }

.tl-calc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 10px 30px rgba(30, 30, 30, .06); }
.tl-grid2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.tl-inputs { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tl-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tl-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tl-field label, .tl-fieldset legend { font-size: .82rem; font-weight: 600; color: var(--navy-900); }
.tl-calc input[type=number], .tl-calc input[type=date], .tl-calc input[type=time], .tl-calc .vp-text, .tl-calc select {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 1rem; background: var(--card); color: var(--ink); min-width: 0; }
.tl-calc input:focus, .tl-calc select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.tl-fieldset { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px 12px; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tl-fieldset legend { padding: 0 6px; }
.tl-fieldset legend .muted { font-weight: 400; }
.tl-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.tl-day label { font-size: .74rem; }
.tl-check { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--ink); }
.tl-help { font-size: .82rem; color: var(--muted); margin: -4px 0 0; }
.tl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tl-r { text-align: end; font-variant-numeric: tabular-nums; }
.tl [hidden] { display: none !important; }

.tl-result { background: linear-gradient(135deg, rgba(12, 100, 174, .07), rgba(12, 100, 174, .02)); border: 1px solid rgba(12, 100, 174, .25);
  border-radius: 14px; padding: 18px; min-width: 0; }
[data-theme="dark"] .tl-result { background: rgba(111, 178, 239, .07); border-color: rgba(111, 178, 239, .3); }
.tl-big-l { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.tl-big { margin: 4px 0 12px; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 750; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.15; overflow-wrap: anywhere; }
[data-theme="dark"] .tl-big { color: var(--accent-on-dark); }
.tl-dl { margin: 0; display: grid; gap: 0; }
.tl-dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.tl-dl dt { color: var(--muted); }
.tl-dl dd { margin: 0; font-weight: 600; color: var(--ink); text-align: end; font-variant-numeric: tabular-nums; }
.tl-note { font-size: .82rem; color: var(--muted); margin: 10px 0 0; }
.tl-note:empty { display: none; }
.tl-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.tl-copied { font-size: .85rem; color: var(--accent); font-weight: 600; }

/* the time card */
.tl-tc { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.tl-tc-head, .tl-tc-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr) 100px 130px; gap: 8px; align-items: center; }
.tl-tc-head { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 0 2px; }
.tl-tc-day { font-weight: 600; color: var(--navy-900); font-size: .92rem; }
.tl-tc-h { font-weight: 600; color: var(--ink); font-size: .9rem; }

.tl-article { margin-top: 30px; }
.tl-formula li { margin-bottom: 6px; }
.tl-faq { margin-top: 10px; }
.tl-ctacard { margin: 24px 0; }
.tl-ctacard h2, .tl-more h2 { font-size: 1.3rem; color: var(--navy-900); margin: 0 0 12px; }
.tl-more { margin: 30px 0 14px; }
.tl-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tl-card-h { display: flex; align-items: center; gap: 10px; }
.tl-card-h [class*="fa-"] { color: var(--accent); font-size: 1.15rem; }
.tl-card-lg { padding: 18px; gap: 8px; }
.tl-go { margin-top: auto; font-size: .88rem; font-weight: 600; color: var(--accent); }
.tl-grid { margin-bottom: 30px; }
.tl-disclaimer { margin: 10px 0 60px; }

@media (max-width: 820px) {
  .tl-grid2 { grid-template-columns: 1fr; }
  .tl-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tl-tc-head { display: none; }
  .tl-tc-row { grid-template-columns: 1fr 1fr 80px; grid-template-areas: "day day h" "in out br"; padding: 10px 0; border-top: 1px solid var(--line); }
  .tl-tc-day { grid-area: day; }
  .tl-tc-row input[type=time]:nth-of-type(1), .tl-tc-row > .vp:nth-child(3) { grid-area: in; }
  .tl-tc-row input[type=time]:nth-of-type(2), .tl-tc-row > .vp:nth-child(5) { grid-area: out; }
  .tl-tc-row input[type=number] { grid-area: br; }
  .tl-tc-h { grid-area: h; }
}
@media (max-width: 480px) {
  .tl-calc { padding: 16px; }
  .tl-tc-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 58px; gap: 6px; }
  .tl-tc-row input { padding: 9px 6px; font-size: .92rem; }
  .tl-row2 { grid-template-columns: 1fr; }
  .tl-days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media print {
  header.vn, footer.footer, .fl-crumbs, .tl-actions, .tl-article, .tl-ctacard, .tl-more, .tl-disclaimer, .hp-guides, #veeLauncher { display: none !important; }
  .tl-calc { box-shadow: none; border: 0; }
}
