:root {
  color-scheme: light;
  --ink: #071a2f;
  --ink-soft: #183754;
  --blue: #315ee7;
  --blue-dark: #2348ba;
  --teal: #0f9f98;
  --teal-soft: #d9f7f3;
  --paper: #ffffff;
  --canvas: #f3f7fb;
  --line: #d9e3ed;
  --line-strong: #b8c9d8;
  --muted: #61758a;
  --danger: #bc3343;
  --warning: #9c6300;
  --shadow: 0 18px 50px rgba(7, 26, 47, 0.09);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --shell: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 3%, rgba(45, 212, 191, 0.12), transparent 23rem),
    linear-gradient(180deg, #f9fbfe 0, var(--canvas) 42rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, select, input[type="checkbox"] { cursor: pointer; }
button:disabled { cursor: not-allowed; }

a { color: inherit; }

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.shell {
  width: min(calc(100% - 32px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 8px;
  color: white;
  background: var(--ink);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid rgba(49, 94, 231, 0.35);
  outline-offset: 2px;
}

.site-header {
  border-bottom: 1px solid rgba(184, 201, 216, 0.65);
  background: rgba(249, 251, 254, 0.84);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: var(--ink);
}

.brand-mark svg { width: 25px; }
.brand-mark circle { stroke: #2dd4bf; }
.brand-mark path { stroke: white; stroke-width: 2.2; }

.header-note {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  min-height: 44px;
  padding: 11px 9px;
  border-radius: 9px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 760;
  text-decoration: none;
}

.site-nav a:hover { color: var(--ink); background: #edf2f7; }

.intro {
  padding-block: 44px 28px;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.15em;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 780px;
  margin: 8px 0 10px;
  font-size: clamp(2.25rem, 8vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.intro-copy {
  max-width: 720px;
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 3.8vw, 1.24rem);
  line-height: 1.55;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid #bde8e3;
  border-radius: 999px;
  color: #086d69;
  background: rgba(217, 247, 243, 0.7);
  font-size: 0.77rem;
  font-weight: 750;
}

.trust-list svg { width: 17px; }

.calculator-shell { padding-bottom: 72px; }

.workspace {
  display: grid;
  gap: 18px;
}

.entry-column { min-width: 0; }

.setup-card,
.day-card,
.advanced-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(255,255,255,.8);
}

.setup-card { padding: 20px; }

.section-heading,
.days-heading,
.results-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.section-heading > div,
.days-heading > div,
.results-topline > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading h2,
.days-heading h2,
.results-topline h2 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.025em;
}

.step-number {
  display: inline-grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: var(--blue);
  background: #edf1ff;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.step-number.light { color: #a7f3e8; background: rgba(255,255,255,.1); }

.text-button,
.quiet-button {
  min-height: 44px;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
}

.text-button:hover,
.quiet-button:hover { text-decoration: underline; }

.setup-grid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 750;
}

.field small { color: var(--muted); font-weight: 600; }

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: white;
  padding: 10px 12px;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

input:hover,
select:hover { border-color: #91a8ba; }

input:focus,
select:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(49, 94, 231, 0.13);
}

input:disabled,
select:disabled {
  cursor: not-allowed;
  color: #8797a7;
  background: #edf2f6;
}

.input-affix,
.input-suffix {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: white;
  overflow: hidden;
}

.input-affix:focus-within,
.input-suffix:focus-within {
  border-color: var(--blue);
  outline: 3px solid rgba(49, 94, 231, 0.13);
}

.input-affix input,
.input-suffix input {
  min-width: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
}

.input-affix b,
.input-suffix b {
  padding-inline: 12px 0;
  color: var(--muted);
  font-size: .9rem;
}

.input-suffix b { padding-inline: 0 12px; }

.days-heading {
  align-items: end;
  margin: 26px 2px 12px;
}

.days-heading p {
  display: none;
  max-width: 290px;
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  text-align: right;
}

.days-grid {
  display: grid;
  gap: 12px;
}

.no-script-note {
  margin: 12px 0 0;
  padding: 14px 16px;
  border: 1px solid #e6c47b;
  border-radius: 12px;
  color: #674b1d;
  background: #fff7e7;
  font-size: .9rem;
}

.day-card {
  position: relative;
  padding: 18px;
  overflow: hidden;
}

.day-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--teal);
  content: "";
  opacity: 0;
  transition: opacity 160ms ease;
}

.day-card.has-time::before { opacity: 1; }
.day-card.has-error { border-color: #e7a8b0; }
.day-card.has-error::before { opacity: 1; background: var(--danger); }
.day-card.is-off { background: #eef3f7; }

.day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.day-title { display: flex; align-items: baseline; gap: 8px; }
.day-title h3 { margin: 0; font-size: 1.02rem; }
.day-date { color: var(--muted); font-size: .75rem; font-weight: 750; text-transform: uppercase; }

.off-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}

.off-toggle input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--blue);
}

.time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.overnight-row {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
}

.overnight-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 720;
}

.overnight-toggle input { width: 18px; min-height: 18px; accent-color: var(--blue); }

.overnight-badge {
  display: none;
  padding: 4px 8px;
  border-radius: 999px;
  color: #0a706b;
  background: var(--teal-soft);
  font-size: .7rem;
  font-weight: 850;
}

.overnight-badge.is-visible { display: inline-flex; }

.breaks-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.break-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(102px, .9fr) 44px;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid #dce8eb;
  border-radius: 13px;
  background: #f5fbfa;
}

.break-row .field { font-size: .72rem; }
.break-row input,
.break-row select { min-height: 44px; }

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
}

.icon-button:hover { color: var(--danger); background: #fff0f1; }
.icon-button svg { width: 19px; }

.add-break-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  border: 0;
  color: #08736f;
  background: transparent;
  font-size: .8rem;
  font-weight: 850;
}

.add-break-button::before {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 7px;
  background: var(--teal-soft);
  content: "+";
  font-size: 1rem;
}

.day-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.day-message {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.35;
}

.day-message.error { color: var(--danger); font-weight: 750; }
.day-message.warning { color: var(--warning); }

.day-total { flex: 0 0 auto; text-align: right; }
.day-total span { display: block; color: var(--muted); font-size: .7rem; font-weight: 700; }
.day-total strong { display: block; font-size: 1.14rem; font-variant-numeric: tabular-nums; }
.day-total small { color: var(--muted); font-size: .7rem; }
.stale-total { opacity: .58; }

.calculation-details { grid-column: 1 / -1; margin-top: 8px; }
.calculation-details summary { min-height: 44px; color: var(--blue); font-size: .72rem; font-weight: 780; cursor: pointer; }
.calculation-details p { margin: 2px 0 0; color: var(--muted); font-size: .72rem; }

.advanced-card { margin-top: 14px; overflow: hidden; }
.advanced-card > summary {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-size: .9rem;
  font-weight: 820;
  cursor: pointer;
  list-style: none;
}
.advanced-card > summary::-webkit-details-marker { display: none; }
.advanced-card > summary > span:first-child { display: flex; align-items: center; gap: 9px; }
.summary-hint { color: var(--muted); font-size: .72rem; font-weight: 650; }
.advanced-body { display: grid; gap: 16px; padding: 0 18px 18px; }
.setting-block { padding-top: 15px; border-top: 1px solid var(--line); }

.switch-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: start;
  gap: 10px;
  cursor: pointer;
}

.switch-row > input { position: absolute; opacity: 0; pointer-events: none; }
.switch {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #cbd7e1;
  transition: 160ms ease;
}
.switch::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 5px rgba(7,26,47,.2);
  content: "";
  transition: 160ms ease;
}
.switch-row > input:checked + .switch { background: var(--blue); }
.switch-row > input:checked + .switch::after { transform: translateX(18px); }
.switch-row > input:focus-visible + .switch { outline: 3px solid rgba(49,94,231,.25); outline-offset: 2px; }
.switch-row b { display: block; font-size: .86rem; }
.switch-row small { display: block; margin-top: 2px; color: var(--muted); font-size: .72rem; font-weight: 550; }

.setting-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 12px 0 0 54px; }
.setting-inline.is-disabled { opacity: .52; }
.compact input { min-height: 44px; }
.rounding-field { padding-top: 15px; border-top: 1px solid var(--line); }
.legal-note { margin: 0; padding: 12px 14px; border-radius: 12px; color: #674b1d; background: #fff7e7; font-size: .74rem; }

.results-card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-lg);
  color: white;
  background:
    linear-gradient(145deg, rgba(49,94,231,.24), transparent 40%),
    radial-gradient(circle at 95% 5%, rgba(45,212,191,.3), transparent 12rem),
    var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.results-card::after {
  position: absolute;
  right: -42px;
  bottom: -62px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(255,255,255,.025), 0 0 0 48px rgba(255,255,255,.018);
  content: "";
  pointer-events: none;
}

.future-ad-slot:not([hidden]) {
  display: grid;
  min-height: 280px;
  margin-top: 24px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #f7fafc;
  font-size: .75rem;
}

.results-topline { position: relative; z-index: 1; }
.results-topline h2 { font-size: 1.13rem; }
.save-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(167, 243, 232, .25);
  border-radius: 999px;
  color: #a7f3e8;
  background: rgba(15,159,152,.13);
  font-size: .66rem;
  font-weight: 800;
}
.save-status.error { color: #ffd3d7; border-color: rgba(255,211,215,.25); background: rgba(188,51,67,.2); }

.hero-total {
  position: relative;
  z-index: 1;
  margin: 28px 0 24px;
}
.hero-total span,
.pay-total span { display: block; color: #aebed0; font-size: .76rem; font-weight: 720; }
.hero-total strong {
  display: block;
  margin-top: 2px;
  font-size: clamp(3.2rem, 15vw, 5rem);
  line-height: 1;
  letter-spacing: -.065em;
  font-variant-numeric: tabular-nums;
}
.hero-total small { color: #9fb1c4; font-size: .76rem; }

.result-list { position: relative; z-index: 1; margin: 0; }
.result-list div {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.result-list dt { color: #afc0d0; font-size: .78rem; }
.result-list dd { margin: 0; font-weight: 780; font-variant-numeric: tabular-nums; }

.pay-total {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 15px;
  background: rgba(255,255,255,.07);
}
.pay-total strong { display: block; margin-top: 2px; font-size: 1.9rem; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.pay-total small { display: block; margin-top: 3px; color: #aebed0; font-size: .68rem; }

.results-actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-size: .83rem;
  font-weight: 850;
  transition: transform 140ms ease, background 140ms ease;
}
.primary-button { border: 1px solid #2dd4bf; color: var(--ink); background: #2dd4bf; }
.primary-button:hover:not(:disabled) { background: #5eead4; transform: translateY(-1px); }
.secondary-button { border: 1px solid rgba(255,255,255,.25); color: white; background: rgba(255,255,255,.06); }
.secondary-button:hover:not(:disabled) { background: rgba(255,255,255,.12); transform: translateY(-1px); }
.primary-button:disabled,
.secondary-button:disabled { opacity: .42; }
.primary-button svg,
.secondary-button svg { width: 18px; }

.privacy-details { position: relative; z-index: 1; margin-top: 15px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.privacy-details summary { min-height: 44px; color: #a7f3e8; font-size: .75rem; font-weight: 800; cursor: pointer; }
.privacy-details p { margin: 4px 0 0; color: #b9c7d5; font-size: .72rem; }
.utility-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }
.utility-actions .quiet-button { min-height: 44px; padding: 0; color: #aebed0; font-size: .7rem; }
.utility-actions .danger { color: #ffb5bd; }

.guide-section {
  display: grid;
  gap: 28px;
  padding-block: 74px;
  border-top: 1px solid var(--line);
}
.guide-intro h2,
.content-section h2 { margin: 8px 0 12px; font-size: clamp(1.6rem, 5vw, 2.5rem); line-height: 1.12; letter-spacing: -.04em; }
.guide-intro p,
.content-main p { color: var(--muted); }
.guide-grid { display: grid; gap: 12px; }
.guide-grid article { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.75); }
.guide-grid article > span { color: var(--teal); font-size: .7rem; font-weight: 900; letter-spacing: .1em; }
.guide-grid h3 { margin: 20px 0 7px; font-size: 1rem; }
.guide-grid p { margin: 0; color: var(--muted); font-size: .84rem; }

.content-section { display: grid; gap: 34px; padding-block: 24px 88px; }
.content-main h2 { margin-top: 38px; font-size: 1.55rem; }
.content-main h2:first-child { margin-top: 0; }
.content-main p { max-width: 760px; }
.faq h2 { font-size: 1.55rem; letter-spacing: -.035em; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 58px; padding: 17px 0; font-weight: 760; cursor: pointer; }
.faq p { margin: -4px 0 18px; color: var(--muted); font-size: .88rem; }

.site-footer { color: white; background: var(--ink); }
.footer-inner { display: flex; flex-direction: column; gap: 18px; padding-block: 30px; }
.footer-inner p { margin: 0; }
.footer-inner span,
.footer-disclaimer { color: #9fb1c4; font-size: .78rem; }
.footer-disclaimer a { color: inherit; }

.legal-page {
  max-width: 780px;
  padding-block: clamp(48px, 8vw, 96px);
}
.legal-page h1 { margin-bottom: 20px; }
.legal-page h2 { margin-top: 34px; font-size: 1.35rem; }
.legal-page p { color: var(--muted); line-height: 1.75; }
.legal-page a { color: var(--blue); font-weight: 750; }
.legal-page code { padding: 2px 6px; border-radius: 5px; color: var(--ink); background: #e8eef7; }

.page-hero {
  max-width: 920px;
  padding-block: clamp(48px, 9vw, 92px) 34px;
}

.page-hero h1 { max-width: 900px; }
.page-hero p { max-width: 720px; color: var(--ink-soft); font-size: clamp(1.02rem, 3vw, 1.24rem); }

.home-tools,
.home-guides { padding-block: 58px 76px; }
.home-guides { border-top: 1px solid var(--line); }
.section-copy { max-width: 700px; margin-bottom: 25px; }
.section-copy h2 { margin: 8px 0 10px; font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -.045em; }
.section-copy p { color: var(--muted); }
.tool-card-grid { display: grid; gap: 14px; }
.tool-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 28px rgba(7,26,47,.05);
}
.tool-card.featured { color: white; background: linear-gradient(145deg, #173965, var(--ink)); }
.tool-kicker { color: var(--teal); font-size: .68rem; font-weight: 900; letter-spacing: .12em; }
.tool-card.featured .tool-kicker { color: #73e4d4; }
.tool-card h3 { margin: 24px 0 9px; font-size: 1.45rem; letter-spacing: -.035em; }
.tool-card h3 a { text-decoration: none; }
.tool-card p { margin-bottom: 22px; color: var(--muted); font-size: .88rem; }
.tool-card.featured p { color: #bac9d8; }
.card-action { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; margin-top: auto; color: var(--blue); font-size: .82rem; font-weight: 850; text-decoration: none; }
.tool-card.featured .card-action { color: #73e4d4; }
.guide-link-grid { display: grid; gap: 10px; }
.guide-link { display: flex; min-height: 92px; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 19px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; text-decoration: none; }
.guide-link:hover { border-color: #9bb1c4; box-shadow: 0 8px 24px rgba(7,26,47,.05); }
.guide-link strong, .guide-link small { display: block; }
.guide-link small { margin-top: 4px; color: var(--muted); font-size: .78rem; }
.guide-link b { color: var(--blue); font-size: 1.2rem; }
.promise-strip { color: white; background: var(--ink); }
.promise-grid { display: grid; gap: 1px; padding-block: 38px; }
.promise-grid div { padding: 15px 0; }
.promise-grid strong, .promise-grid span { display: block; }
.promise-grid span { margin-top: 5px; color: #aebed0; font-size: .8rem; }

.mini-tool-section { padding-bottom: 64px; }
.mini-tool-grid, .overtime-workspace { display: grid; gap: 16px; }
.mini-tool-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow); }
.mini-tool-card h2 { margin: 14px 0 20px; font-size: 1.25rem; letter-spacing: -.03em; }
.compact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-result { margin-top: 22px; padding: 20px; border-radius: 17px; color: white; background: var(--ink); }
.mini-result span, .mini-result small, .mini-result strong { display: block; }
.mini-result span, .mini-result small { color: #aebed0; font-size: .76rem; }
.mini-result strong { margin: 4px 0; font-size: clamp(2.5rem, 12vw, 4.5rem); line-height: 1; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.privacy-callout { margin-top: 14px; padding: 14px 18px; border: 1px solid #bde8e3; border-radius: 13px; color: #086d69; background: var(--teal-soft); font-size: .82rem; }
.four-up { grid-template-columns: 1fr 1fr; }
.compact-result { position: relative; top: auto; }
.result-equation { position: relative; z-index: 1; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); color: #b9c7d5; font-size: .76rem; }

.article-layout { display: grid; gap: 34px; padding-block: 30px 88px; }
.article-body { max-width: 780px; }
.article-body h2 { margin: 38px 0 12px; font-size: clamp(1.35rem, 4vw, 1.8rem); letter-spacing: -.035em; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin-top: 27px; }
.article-body p, .article-body li { color: var(--ink-soft); line-height: 1.75; }
.article-body a { color: var(--blue); font-weight: 720; }
.article-body li + li { margin-top: 8px; }
.article-aside { height: fit-content; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,.78); }
.article-aside strong, .article-aside a { display: block; }
.article-aside a { min-height: 44px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--blue); font-size: .8rem; font-weight: 760; text-decoration: none; }
.formula-card { display: grid; gap: 5px; margin: 20px 0; padding: 18px; border-left: 4px solid var(--teal); border-radius: 0 13px 13px 0; background: white; box-shadow: 0 8px 25px rgba(7,26,47,.05); }
.formula-card span { color: var(--ink-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84rem; }
.source-box { display: grid; gap: 8px; margin-top: 34px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
.source-box a { font-size: .82rem; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
.conversion-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.conversion-table th, .conversion-table td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; }
.conversion-table th { color: var(--muted); background: #f4f7fa; font-size: .72rem; text-transform: uppercase; }
.conversion-table td:nth-child(even) { color: var(--blue); font-weight: 800; }
.pending-field { padding: 16px; border: 1px solid #e6c47b; border-radius: 12px; background: #fff7e7; }

/* Premium editorial system */
.content-page { background: radial-gradient(circle at 86% 4%, rgba(45,212,191,.11), transparent 27rem), linear-gradient(180deg, #fbfcff, #f2f6fa 52rem); }
.breadcrumbs { display: flex; gap: 8px; align-items: center; padding-top: 24px; color: var(--muted); font-size: .72rem; font-weight: 720; }
.breadcrumbs a { color: var(--blue); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.page-hero { max-width: 900px; padding-block: 42px 34px; margin-left: max(16px, calc((100vw - var(--shell)) / 2)); }
.page-hero h1 { max-width: 900px; margin-block: 10px 16px; font-size: clamp(2.65rem, 8vw, 5.4rem); }
.page-hero > p { max-width: 740px; margin: 0; color: var(--ink-soft); font-size: clamp(1.05rem, 2.3vw, 1.35rem); line-height: 1.55; }
.article-layout { padding-bottom: 84px; }
.article-body { min-width: 0; max-width: 800px; }
.article-body > p { max-width: 74ch; }
.article-body h2 { display: flex; gap: 11px; align-items: baseline; margin-top: 52px; font-size: clamp(1.55rem, 4vw, 2.05rem); }
.article-body h3 { font-size: 1.14rem; letter-spacing: -.025em; }
.section-index { color: var(--teal); font-size: .7rem; font-weight: 900; letter-spacing: .08em; }
.direct-answer { position: relative; margin-bottom: 42px; padding: 24px 24px 24px 28px; border: 1px solid rgba(49,94,231,.17); border-radius: 20px; background: linear-gradient(135deg, rgba(49,94,231,.07), rgba(45,212,191,.08)), #fff; box-shadow: 0 15px 42px rgba(7,26,47,.07); overflow: hidden; }
.direct-answer::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(var(--blue), var(--teal)); content: ""; }
.direct-answer span, .example-label, .aside-label, .context-cta span, .comparison-card > span, .principle-strip span { color: var(--teal); font-size: .67rem; font-weight: 900; letter-spacing: .13em; }
.direct-answer p { margin: 8px 0 0; color: var(--ink); font-size: clamp(1.05rem, 2.4vw, 1.24rem); line-height: 1.62; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-top: 52px; }
.section-heading-row h2 { margin: 0; }
.download-link, .primary-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 11px 15px; border-radius: 11px; color: white !important; background: var(--ink); font-size: .76rem !important; font-weight: 800 !important; text-decoration: none; white-space: nowrap; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.download-link:hover, .primary-button:hover { transform: translateY(-2px); background: var(--blue-dark); box-shadow: 0 9px 24px rgba(49,94,231,.18); }
.dense-table td, .dense-table th { padding-block: 8px; }
.conversion-table caption, .data-table caption { padding: 13px 15px; color: var(--ink-soft); background: #f8fafc; font-size: .76rem; font-weight: 720; text-align: left; }
.table-note { margin: 10px 4px 0; color: var(--muted) !important; font-size: .76rem; }
.data-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table thead th { color: var(--muted); background: #f3f6fa; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.data-table tbody th { color: var(--ink); font-size: .84rem; }
.data-table td { color: var(--ink-soft); font-size: .83rem; }
.featured-formula { margin-block: 18px 26px; padding: 22px 24px; border-left-width: 5px; }
.featured-formula strong { font-size: 1rem; }
.featured-formula span { margin-top: 4px; color: var(--blue); font-size: clamp(.83rem, 2vw, .98rem); }
.example-card { margin: 24px 0; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 12px 38px rgba(7,26,47,.06); }
.example-card.subdued { background: #f8fbfd; }
.example-card h3 { margin: 8px 0 18px; }
.example-card > p { margin: 14px 0 0; color: var(--muted); font-size: .77rem; }
.calculation-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.calculation-steps li { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 !important; padding: 12px 0; border-bottom: 1px solid var(--line); }
.calculation-steps span { color: var(--ink-soft); font-size: .82rem; }
.calculation-steps strong { color: var(--ink); font-size: .88rem; text-align: right; font-variant-numeric: tabular-nums; }
.process-list { display: grid; gap: 10px; margin: 20px 0 26px; padding: 0; counter-reset: process; list-style: none; }
.process-list li { position: relative; margin: 0 !important; padding: 17px 18px 17px 56px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.8); counter-increment: process; }
.process-list li::before { position: absolute; top: 16px; left: 17px; display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; color: var(--blue); background: rgba(49,94,231,.09); content: counter(process, decimal-leading-zero); font-size: .63rem; font-weight: 900; }
.process-list strong, .process-list span { display: block; }
.process-list span { margin-top: 2px; color: var(--muted); font-size: .79rem; }
.comparison-grid { display: grid; gap: 12px; margin-block: 20px 28px; }
.comparison-card, .mini-fact { padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.comparison-card.right { border-top: 4px solid var(--teal); }
.comparison-card.wrong { border-top: 4px solid #d27b64; }
.comparison-card.wrong > span { color: #aa4c37; }
.comparison-card strong { display: block; margin: 7px 0 4px; font-size: 1.15rem; }
.comparison-card p, .mini-fact p { margin: 0; color: var(--muted); font-size: .79rem; line-height: 1.55; }
.mini-fact strong { display: block; margin-bottom: 5px; }
.note-card { margin: 22px 0; padding: 18px 20px; border: 1px solid rgba(15,159,152,.2); border-radius: 15px; background: rgba(217,247,243,.48); }
.note-card.warning { border-color: #ead6a7; background: #fff9ed; }
.note-card p { margin: 4px 0 0; color: var(--ink-soft); font-size: .82rem; }
.principle-strip { display: grid; gap: 1px; margin: 22px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.principle-strip div { padding: 19px; background: white; }
.principle-strip strong { display: block; margin-top: 6px; font-size: .95rem; }
.context-cta { display: grid; gap: 18px; align-items: center; margin: 46px 0; padding: 25px; border-radius: 22px; color: white; background: radial-gradient(circle at 94% 0, rgba(45,212,191,.3), transparent 14rem), var(--ink); box-shadow: var(--shadow); }
.context-cta h2 { margin: 7px 0 5px; color: white; font-size: 1.45rem; }
.context-cta p { margin: 0; color: #b8c8d8; font-size: .82rem; }
.context-cta .primary-button { background: white; color: var(--ink) !important; }
.editorial-faq { border-top: 1px solid var(--line); }
.editorial-faq details { border-bottom: 1px solid var(--line); }
.editorial-faq summary { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 20px; color: var(--ink); font-weight: 790; cursor: pointer; list-style: none; }
.editorial-faq summary::after { color: var(--teal); content: "+"; font-size: 1.2rem; }
.editorial-faq details[open] summary::after { content: "−"; }
.editorial-faq p { padding: 0 28px 18px 0; }
.source-box { margin-top: 48px; border-left: 4px solid var(--teal); }
.article-aside { top: 24px; }
.article-aside .aside-label { margin-bottom: 7px; }
.article-aside > small { display: block; margin-top: 14px; color: var(--muted); font-size: .67rem; line-height: 1.55; }

@media (min-width: 620px) {
  .comparison-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comparison-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .principle-strip { grid-template-columns: 1fr 1fr; }
  .context-cta { grid-template-columns: 1fr auto; padding: 30px; }
}

@media (max-width: 619px) {
  .section-heading-row { align-items: stretch; flex-direction: column; }
  .download-link { align-self: start; }
  .data-table th, .data-table td { padding: 11px 12px; font-size: .76rem; }
  .calculation-steps li { align-items: flex-start; }
}

.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 (min-width: 560px) {
  .setup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results-actions { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-disclaimer { text-align: right; }
}

@media (max-width: 520px) {
  .site-nav a:nth-child(2) { display: none; }
  .site-nav a { padding-inline: 6px; }
}

@media (min-width: 720px) {
  .shell { width: min(calc(100% - 48px), var(--shell)); }
  .intro { padding-block: 62px 34px; }
  .days-heading p { display: block; }
  .days-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .advanced-body { grid-template-columns: 1fr 1fr; }
  .rounding-field, .legal-note { grid-column: 1 / -1; }
  .guide-section { grid-template-columns: .8fr 1.6fr; }
  .guide-grid { grid-template-columns: repeat(3, 1fr); }
  .content-section { grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); }
  .tool-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-card.featured { grid-column: span 2; }
  .guide-link-grid { grid-template-columns: 1fr 1fr; }
  .promise-grid { grid-template-columns: repeat(3, 1fr); }
  .promise-grid div { padding: 10px 24px; border-left: 1px solid rgba(255,255,255,.12); }
  .promise-grid div:first-child { padding-left: 0; border-left: 0; }
  .mini-tool-grid, .overtime-workspace { grid-template-columns: 1fr 1fr; align-items: start; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 250px; align-items: start; }
  .article-aside { position: sticky; top: 24px; }
}

@media (min-width: 1040px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 350px; align-items: start; gap: 22px; }
  .results-card { position: sticky; top: 18px; }
  .setup-card { padding: 22px; }
  .setup-grid { grid-template-columns: 1.15fr .8fr .8fr .8fr; }
  .tool-card.featured { grid-column: auto; }
  .four-up { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Growth tools: compact input/result workspace shared by five distinct calculators. */
.growth-home { padding-top: 18px; }
.growth-card-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.growth-tool { padding-bottom: 18px; }
.growth-workspace { display: grid; gap: 18px; align-items: start; }
.growth-inputs { padding: clamp(20px, 4vw, 30px); }
.growth-inputs h2 { margin: 8px 0 22px; }
.growth-fields { gap: 14px; }
.growth-fields .check-field { display: flex; min-height: 50px; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink-soft); background: white; font-size: .78rem; font-weight: 730; }
.growth-fields .check-field input { width: 20px; height: 20px; accent-color: var(--blue); }
.growth-results { position: relative; }
.growth-results .hero-total strong { overflow-wrap: anywhere; }
.growth-results .results-actions button { border: 1px solid rgba(255,255,255,.18); color: white; background: rgba(255,255,255,.08); }
.growth-results .results-actions button:hover { background: rgba(255,255,255,.16); }
.form-error { display: none; margin: 16px 0 0; color: #a63b2b; font-size: .78rem; font-weight: 750; }
.has-error .form-error { display: block; }
.has-error .hero-total strong { color: #ffc9bd; }
.holiday-breakdown { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); }
.holiday-breakdown h3 { margin: 0 0 8px; color: white; font-size: .83rem; }
.holiday-breakdown ul { margin: 0; padding: 0; list-style: none; }
.holiday-breakdown li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; color: #c5d3df; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .7rem; }
.holiday-breakdown strong { color: white; font-variant-numeric: tabular-nums; }

@media (min-width: 720px) {
  .growth-workspace { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); }
  .growth-results { position: sticky; top: 18px; }
}

@media print {
  @page { margin: 14mm; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .site-header,
  .breadcrumbs,
  .intro-copy,
  .trust-list,
  .setup-card,
  .days-heading,
  .advanced-card,
  .results-actions,
  .privacy-details,
  .utility-actions,
  .guide-section,
  .content-section,
  .site-footer,
  .add-break-button,
  .off-toggle,
  .icon-button,
  .overnight-toggle,
  .calculation-details { display: none !important; }
  .article-aside,
  .download-link,
  .context-cta,
  .growth-inputs,
  .growth-results .results-actions { display: none !important; }
  .intro { padding: 0 0 12px; }
  h1 { font-size: 24pt; }
  .workspace { display: block; }
  .days-grid { display: grid; grid-template-columns: 1fr; gap: 6px; }
  .day-card { break-inside: avoid; padding: 10px 12px; border-radius: 6px; box-shadow: none; }
  .day-header { margin-bottom: 5px; }
  .time-grid { grid-template-columns: 1fr 1fr; }
  .field > span:first-child { font-size: 8pt; }
  input, select { min-height: 28px; padding: 2px 5px; border: 0; }
  .break-row { padding: 4px; }
  .day-footer { margin-top: 4px; padding-top: 4px; }
  .results-card { margin-top: 12px; padding: 16px; border: 2px solid #071a2f; border-radius: 8px; color: #000; background: #fff; box-shadow: none; }
  .results-card::after { display: none; }
  .results-topline h2,
  .hero-total strong,
  .result-list dd,
  .pay-total strong { color: #000; }
  .hero-total { margin: 10px 0; }
  .hero-total strong { font-size: 30pt; }
  .hero-total span,
  .hero-total small,
  .result-list dt,
  .pay-total span,
  .pay-total small { color: #333; }
  .pay-total { border-color: #bbb; background: #f7f7f7; }
  .result-list div { border-color: #ddd; }
}
