:root {
  color-scheme: light;
  --canvas: #f3f5f2;
  --paper: #fffefa;
  --surface: #eef2f1;
  --surface-strong: #d8ebe9;
  --blue-soft: #e3ebf0;
  --ink: #18223e;
  --muted: #5d6876;
  --accent: #08766f;
  --accent-dark: #055e59;
  --accent-soft: #d7ece9;
  --line: #cbd4d7;
  --line-strong: #94a3ab;
  --warning: #b87508;
  --warning-soft: #fff2c8;
  --danger: #aa443d;
  --danger-soft: #fff2f0;
  --focus: #075fb9;
  --hard-shadow: #a9bdc1;
  --header-shell: 1120px;
  --home-shell: 1120px;
  --reading-shell: 1080px;
  --radius: 8px;
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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

.home-shell {
  max-width: var(--home-shell);
}

.shell,
.reading-shell {
  max-width: var(--reading-shell);
}

.skip-link {
  position: fixed;
  top: 9px;
  left: 12px;
  z-index: 100;
  padding: 7px 12px;
  transform: translateY(-180%);
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--hard-shadow);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

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

/* Shared shell */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--ink);
  background: rgba(255, 254, 250, .97);
}

.header-inner {
  display: flex;
  min-height: 60px;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: #f0d66f;
  box-shadow: 3px 3px 0 #93b9bb;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 18px;
  font-weight: 850;
  letter-spacing: .05em;
}

.brand-text small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .04em;
}

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

.site-nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  padding-inline: 10px;
  border-radius: 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.site-nav i {
  font-size: 18px;
}

.header-action {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: 2px 2px 0 var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.header-action:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--accent-soft);
}

/* Homepage workbench */

.workbench-stage {
  padding-block: 28px 34px;
  background: var(--canvas);
}

.workbench-frame {
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--hard-shadow);
  animation: workbench-enter 340ms ease-out both;
}

.workbench-titlebar {
  display: grid;
  min-height: 38px;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  padding-inline: 0;
  border-bottom: 1px solid var(--ink);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .06em;
}

.workbench-titlebar strong {
  display: inline-flex;
  align-self: stretch;
  align-items: center;
  gap: 7px;
  padding-inline: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.workbench-titlebar i {
  font-size: 16px;
}

.workbench-titlebar span {
  color: #46586a;
  font-size: 11px;
  font-weight: 750;
}

.workbench-titlebar .freshness-mobile {
  display: none;
}

.workbench-update-link {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 37px;
  align-items: center;
  padding: 0 10px 0 14px;
  border-left: 1px solid rgba(18, 40, 62, .28);
  color: #344b60;
  text-decoration: none;
  transition: background 140ms ease;
}

.workbench-update-link .freshness-desktop,
.workbench-update-link .freshness-mobile {
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 7px;
  letter-spacing: 0;
}

.workbench-update-link .freshness-desktop {
  display: flex;
}

.workbench-update-link b,
.workbench-update-link time,
.workbench-update-link em {
  font-style: normal;
}

.workbench-update-link b {
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-weight: 900;
}

.workbench-update-link time {
  flex: 0 0 auto;
  color: #344b60;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.workbench-update-link em {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbench-update-link i {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 12px;
}

.workbench-update-link:hover,
.workbench-update-link:focus-visible {
  background: rgba(255, 255, 255, .28);
}

.workbench-update-link:hover em,
.workbench-update-link:focus-visible em {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.workbench-main {
  display: grid;
  grid-template-columns: minmax(0, 1.82fr) minmax(300px, .92fr);
}

.query-panel {
  min-width: 0;
  padding: 25px 28px 22px;
}

.query-heading .section-kicker {
  margin-bottom: 6px;
}

.query-heading h1 {
  margin: 0;
  max-width: 650px;
  font-size: clamp(36px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.22;
}

.query-heading > p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.topic-search {
  width: 100%;
  margin-top: 18px;
}

.search-control {
  display: grid;
  min-height: 50px;
  overflow: hidden;
  align-items: stretch;
  grid-template-columns: 43px minmax(0, 1fr) 108px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--accent-soft);
  transition: box-shadow 140ms ease, transform 140ms ease;
}

.search-control:focus-within {
  box-shadow: 3px 3px 0 #e6cd69;
}

.search-control > i {
  align-self: center;
  justify-self: center;
  color: var(--accent-dark);
  font-size: 21px;
}

.search-control input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}

.search-control input::placeholder {
  color: #76808c;
  opacity: 1;
}

.search-control button,
.primary-button {
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 850;
}

.search-control button {
  margin: -1px -1px -1px 0;
  border-radius: 0 6px 6px 0;
  font-size: 15px;
}

.search-control button:hover,
.primary-button:hover {
  background: var(--accent-dark);
}

.topic-directory {
  margin-top: 20px;
}

.search-status {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.topic-list {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.topic-row + .topic-row {
  border-top: 1px solid var(--line);
}

.topic-link {
  display: grid;
  min-height: 62px;
  align-items: center;
  padding: 7px 6px;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  gap: 12px;
  text-decoration: none;
  transition: background-color 140ms ease, transform 140ms ease;
}

.topic-link:hover {
  transform: translateX(2px);
  background: var(--surface);
}

.topic-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--accent-soft);
  box-shadow: 2px 2px 0 #b5cfd0;
  color: var(--accent-dark);
  font-size: 19px;
}

.topic-row:nth-child(2) .topic-icon {
  background: #f4e5aa;
  box-shadow-color: #d8c985;
}

.topic-row:nth-child(3) .topic-icon {
  background: var(--blue-soft);
  box-shadow-color: #bdcbd6;
}

.topic-copy {
  display: grid;
  min-width: 0;
  align-items: center;
  grid-template-columns: minmax(185px, .85fr) minmax(0, 1.15fr);
  gap: 16px;
}

.topic-copy strong {
  font-size: 17px;
  font-weight: 850;
  letter-spacing: .01em;
  line-height: 1.35;
}

.topic-copy small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.topic-caret {
  justify-self: end;
  color: var(--accent-dark);
  font-size: 18px;
}

.search-empty {
  display: grid;
  min-height: 126px;
  align-items: center;
  padding: 18px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.search-empty > i {
  font-size: 25px;
}

.search-empty strong {
  font-size: 16px;
}

.search-empty p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.text-button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: 2px 2px 0 var(--accent-soft);
  color: var(--accent-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.role-switch {
  display: grid;
  min-height: 42px;
  align-items: center;
  margin-top: 12px;
  padding: 5px 7px 5px 11px;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}

.role-switch > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .035em;
}

.role-buttons {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--paper);
}

.role-button {
  min-width: 54px;
  min-height: 29px;
  padding-inline: 10px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.role-button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.role-switch small {
  overflow: hidden;
  color: #405064;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-row:nth-child(4n + 2) .topic-icon {
  background: var(--blue-soft);
  color: #245e7d;
}

.topic-row:nth-child(4n + 3) .topic-icon {
  background: var(--warning-soft);
  color: #875400;
}

.topic-row:nth-child(4n) .topic-icon {
  background: #edf0e8;
  color: #4f6548;
}

.quick-preview {
  min-width: 0;
  border-left: 1px solid var(--ink);
  background: #f8f9f5;
}

.preview-header {
  display: flex;
  min-height: 38px;
  align-items: center;
  padding-inline: 14px;
  border-bottom: 1px solid var(--ink);
  background: var(--blue-soft);
  font-size: 12px;
  letter-spacing: .035em;
}

.preview-grid {
  padding: 0 17px 17px;
}

.preview-column {
  min-width: 0;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}

.preview-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.preview-title-row h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.preview-badge {
  display: grid;
  width: 27px;
  height: 25px;
  flex: 0 0 27px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  color: var(--accent-dark);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
}

.preview-column ol,
.preview-column ul {
  margin: 9px 0 8px;
  padding-left: 20px;
  color: #364456;
  font-size: 12px;
  line-height: 1.55;
}

.preview-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 5px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.preview-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.preview-warning {
  margin-top: 16px;
  padding: 12px 13px;
  border: 1px solid #c18d27;
  border-radius: 6px;
  background: var(--warning-soft);
  box-shadow: 2px 2px 0 #dfc574;
}

.warning-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #875400;
  font-size: 13px;
}

.warning-title i {
  font-size: 18px;
}

.preview-warning p {
  margin: 7px 0 6px;
  color: #394659;
  font-size: 12px;
  line-height: 1.55;
}

.preview-warning small {
  display: block;
  color: #4d5866;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.trust-grid {
  display: grid;
  min-height: 58px;
  align-items: center;
  grid-template-columns: repeat(3, 1fr);
}

.trust-grid div {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-inline: 16px;
  color: #35475b;
  font-size: 13px;
}

.trust-grid div + div {
  border-left: 1px solid var(--line);
}

.trust-grid i {
  color: var(--accent-dark);
  font-size: 18px;
}

.trust-grid time,
.freshness-summary time {
  font-variant-numeric: tabular-nums;
}

.updates-section {
  padding-block: 42px 48px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

.updates-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 20px;
}

.updates-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.3;
}

.updates-head p:last-child {
  max-width: 680px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.updates-center-link {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding-inline: 13px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--hard-shadow);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.updates-center-link:hover {
  background: var(--accent-soft);
}

.official-update-list {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--paper);
}

.official-update-row + .official-update-row {
  border-top: 1px solid var(--line-strong);
}

.official-update-row > a {
  display: grid;
  min-height: 82px;
  align-items: center;
  gap: 18px;
  padding: 13px 14px;
  color: var(--ink);
  grid-template-columns: 165px minmax(0, 1fr) 22px;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}

.official-update-row > a:hover,
.official-update-row > a:focus-visible {
  background: var(--accent-soft);
}

.official-update-meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 8px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.update-kind {
  display: inline-flex;
  flex: 0 0 100%;
  align-items: center;
  gap: 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .03em;
}

.official-update-copy {
  min-width: 0;
}

.official-update-copy strong,
.official-update-copy small {
  display: block;
}

.official-update-copy strong {
  font-size: 15px;
  line-height: 1.45;
}

.official-update-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.official-update-arrow {
  color: var(--accent-dark);
  font-size: 18px;
}

.update-count {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding-inline: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: #475565;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.update-count-active {
  border-color: var(--accent-dark);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.official-section {
  padding-block: 58px;
  background: var(--paper);
}

.official-grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(380px, 1.14fr);
  gap: 64px;
}

.section-kicker,
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
}

.official-grid h2,
.content-section h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.38;
}

.official-grid > div > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.official-links {
  border-top: 1px solid var(--line-strong);
}

.official-links a {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-inline: 4px;
  border-bottom: 1px solid var(--line);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: padding 140ms ease, background-color 140ms ease;
}

.official-links a:hover {
  padding-inline: 9px;
  background: var(--surface);
}

.official-link-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.35;
}

.official-link-copy strong {
  font-size: 14px;
}

.official-link-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.45;
}

/* Article pages */

.article-page {
  padding-bottom: 60px;
  background: var(--paper);
}

.breadcrumbs {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.breadcrumbs a {
  color: var(--accent-dark);
  font-weight: 800;
  text-underline-offset: 3px;
}

.article-hero {
  max-width: 860px;
  padding-block: 32px 28px;
}

.article-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 3.5vw, 44px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.article-lead {
  max-width: 810px;
  margin: 15px 0 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.article-meta {
  margin: 0;
  color: #66717f;
  font-size: 12px;
  letter-spacing: .02em;
}

.article-meta time {
  white-space: nowrap;
}

.article-meta-date {
  white-space: nowrap;
}

.answer-box {
  display: flex;
  margin: 0 3px 30px 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border: 1px solid var(--ink);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--accent-soft);
}

.answer-box > div {
  min-width: 0;
}

.answer-box h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.4;
}

.answer-label {
  margin: 0 0 5px;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}

.answer-box p:not(.answer-label) {
  margin: 5px 0 0;
  color: #425164;
  font-size: 14px;
  line-height: 1.65;
}

.button-link {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  padding-inline: 13px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--accent-soft);
  box-shadow: 2px 2px 0 var(--hard-shadow);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.button-link:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--hard-shadow);
}

/* Bounded overtime calculator */

.overtime-calculator-page .article-hero,
.guided-check-page .article-hero {
  max-width: 940px;
  padding-block: 25px 21px;
}

.overtime-tool {
  overflow: hidden;
  margin: 0 3px 28px 0;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--hard-shadow);
}

.overtime-tool-heading {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--ink);
  background: var(--accent-soft);
}

.overtime-tool-heading > div {
  min-width: 0;
}

.overtime-tool-heading h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.4;
}

.overtime-tool-heading p:not(.answer-label) {
  margin: 4px 0 0;
  color: #425164;
  font-size: 13px;
  line-height: 1.6;
}

.overtime-tool-heading > a {
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  text-underline-offset: 3px;
}

.overtime-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calculator-step {
  min-width: 0;
  margin: 0;
  padding: 17px 18px 18px;
  border: 0;
}

.calculator-step:nth-child(even) {
  border-left: 1px solid var(--line-strong);
}

.calculator-step:nth-child(n + 3) {
  border-top: 1px solid var(--line-strong);
}

.calculator-step legend {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-size: 15px;
  font-weight: 900;
}

.calculator-step legend span {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  color: var(--accent-dark);
  font-size: 10px;
}

.choice-grid {
  display: grid;
  margin-top: 12px;
  gap: 7px;
}

.choice-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-grid-day {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-card,
.scope-choice {
  display: flex;
  min-width: 0;
  min-height: 50px;
  flex-direction: column;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  line-height: 1.35;
}

.choice-card strong,
.scope-choice strong,
.choice-card small,
.scope-choice small {
  display: block;
  min-width: 0;
}

.choice-card strong,
.scope-choice strong {
  font-size: 13px;
}

.choice-card small,
.scope-choice small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.choice-card-stop,
.scope-choice-stop {
  background: var(--warning-soft);
}

.choice-input:checked + .choice-card,
.choice-input:checked + .scope-choice {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 2px 2px 0 var(--hard-shadow);
  color: #fff;
}

.choice-input:checked + .choice-card small,
.choice-input:checked + .scope-choice small {
  color: #dce5eb;
}

.choice-input:focus-visible + .choice-card,
.choice-input:focus-visible + .scope-choice {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.choice-input[aria-invalid="true"] + .choice-card,
.choice-input[aria-invalid="true"] + .scope-choice,
.calculator-field input[aria-invalid="true"],
.duration-fields input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 2px var(--danger-soft);
}

.calculator-field {
  margin-top: 13px;
}

.calculator-field > label,
.duration-fields label > span {
  display: block;
  margin-bottom: 5px;
  color: #3f4e61;
  font-size: 11px;
  font-weight: 800;
}

.money-control {
  display: grid;
  min-height: 44px;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--paper);
}

.money-control > span {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--ink);
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.money-control input,
.duration-fields input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.money-control input {
  padding: 8px 11px;
}

.money-control input:disabled {
  background: #f4f5f2;
  color: var(--muted);
  cursor: not-allowed;
}

.money-field > small,
.calculator-helper {
  display: block;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.duration-fields {
  display: grid;
  margin-top: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.duration-fields input {
  padding-inline: 10px;
  border: 1px solid var(--ink);
  border-radius: 5px;
}

.scope-list {
  margin: 11px 0 0;
  padding-left: 19px;
  color: #425164;
  font-size: 11px;
  line-height: 1.65;
}

.scope-options {
  display: grid;
  margin-top: 11px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.scope-choice {
  min-height: 54px;
}

.overtime-submit-row {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 10px 18px;
  border-top: 1px solid var(--ink);
  background: var(--surface);
}

.overtime-submit-row p {
  margin: 0 auto 0 0;
  color: var(--muted);
  font-size: 11px;
}

.overtime-submit-row button {
  min-width: 128px;
  min-height: 44px;
  padding-inline: 18px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--accent);
  box-shadow: 2px 2px 0 var(--hard-shadow);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.overtime-submit-row button:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--hard-shadow);
}

.overtime-result,
.overtime-stop {
  scroll-margin-top: 68px;
  padding: 19px 20px 20px;
  border-top: 1px solid var(--ink);
}

.overtime-result {
  background: #f6fbf8;
}

.overtime-stop {
  border-top-color: var(--warning);
  background: var(--warning-soft);
}

.overtime-result:focus,
.overtime-stop:focus {
  outline: 3px solid var(--focus);
  outline-offset: -4px;
}

.overtime-result > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.overtime-result h3,
.overtime-stop h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
}

.overtime-result output {
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-size: 29px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.overtime-result-facts {
  display: grid;
  margin: 15px 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--paper);
}

.overtime-result-facts > div {
  min-width: 0;
  padding: 10px 12px;
}

.overtime-result-facts > div + div {
  border-left: 1px solid var(--line);
}

.overtime-result-facts dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.overtime-result-facts dd {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.overtime-breakdown {
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.overtime-breakdown li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.overtime-breakdown strong {
  flex: 0 0 auto;
  font-size: 14px;
}

.rounding-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.formula-disclosure {
  margin-top: 13px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.formula-disclosure summary {
  min-height: 42px;
  padding: 9px 2px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.formula-disclosure ol {
  margin: 0;
  padding: 0 0 12px 20px;
  color: #425164;
  font-size: 11px;
  line-height: 1.65;
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.result-actions > span,
.result-actions > a:not(.button-link) {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.result-actions > a:not(.button-link) {
  color: var(--accent-dark);
  font-weight: 800;
  text-underline-offset: 3px;
}

.overtime-stop ul {
  margin: 9px 0 0;
  padding-left: 20px;
  color: #553b17;
  font-size: 12px;
  line-height: 1.7;
}

.guided-result-copy {
  max-width: 760px;
  margin: 6px 0 0;
  color: #425164;
  font-size: 12px;
  line-height: 1.65;
}

.guided-result-facts {
  display: grid;
  margin: 13px 0 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--paper);
  list-style: none;
}

.guided-result-facts li {
  min-width: 0;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
}

.guided-result-facts li + li {
  border-left: 1px solid var(--line);
}

.guided-result-section-label {
  margin-top: 18px;
}

.role-guides-grid {
  margin-top: 18px;
}

.role-guide-card .plain-steps {
  margin-top: 10px;
}

.role-guide-card .plain-steps li {
  min-height: 62px;
  padding-right: 0;
}

.calculator-noscript {
  margin: 0;
  padding: 14px 18px;
  border-top: 1px solid var(--warning);
  background: var(--warning-soft);
  font-size: 12px;
}

.article-layout {
  display: grid;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 44px;
}

.role-paths {
  display: grid;
  margin: 0 0 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--accent-soft);
}

.role-path {
  min-width: 0;
  padding: 16px 18px;
}

.role-path + .role-path {
  border-left: 1px solid var(--ink);
}

.role-label {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-bottom: 7px;
  padding-inline: 8px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.role-path:nth-child(2) .role-label {
  background: var(--blue-soft);
}

.role-path h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
}

.role-path p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.fact-grid {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--surface);
}

.fact-item {
  min-width: 0;
  padding: 14px 16px;
}

.fact-item + .fact-item {
  border-left: 1px solid var(--ink);
}

.fact-item strong,
.fact-item span {
  display: block;
}

.fact-item strong {
  font-size: 18px;
  line-height: 1.35;
}

.fact-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.article-toc {
  position: sticky;
  top: 82px;
  display: flex;
  height: fit-content;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-top-color: var(--ink);
  background: var(--paper);
}

.article-toc strong {
  padding: 10px 11px;
  border-bottom: 1px solid var(--ink);
  background: var(--accent-soft);
  font-size: 12px;
}

.article-toc a {
  min-height: 38px;
  padding: 8px 11px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.article-toc strong + a {
  border-top: 0;
}

.article-toc a:hover {
  background: var(--surface);
  color: var(--accent-dark);
}

.article-body {
  min-width: 0;
}

.content-section {
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.content-section-first {
  padding-top: 8px;
}

.content-section > p:not(.section-kicker) {
  color: #3f4e61;
  font-size: 16px;
  line-height: 1.8;
}

.note-box,
.legal-note {
  margin-top: 22px;
  padding: 17px 19px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}

.note-box strong,
.legal-note strong {
  color: var(--ink);
}

.note-box p,
.legal-note p {
  margin: 5px 0 0;
  color: #425164;
  font-size: 14px;
  line-height: 1.7;
}

.formula-list {
  display: grid;
  margin-top: 21px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.formula-item {
  padding: 17px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}

.formula-item > div span {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
}

.formula-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.formula-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.formula-item code {
  display: block;
  margin-top: 11px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  white-space: normal;
}

.plain-steps {
  margin: 21px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.plain-steps li {
  position: relative;
  display: grid;
  min-height: 68px;
  padding: 14px 10px 14px 50px;
  border-top: 1px solid var(--line);
  counter-increment: steps;
}

.plain-steps li::before {
  position: absolute;
  top: 16px;
  left: 5px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--ink);
  content: counter(steps);
  font-size: 12px;
  font-weight: 900;
}

.plain-steps strong,
.plain-steps span {
  display: block;
}

.plain-steps span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

.check-list {
  margin: 20px 0 0;
  padding-left: 22px;
}

.check-list li {
  padding: 9px 7px 9px 4px;
  border-top: 1px solid var(--line);
  color: #3f4e61;
}

.check-list li::marker {
  color: var(--accent);
}

.table-wrap {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.comparison-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--paper);
}

.comparison-table th,
.comparison-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background: var(--accent-soft);
  font-size: 12px;
}

.comparison-table td {
  font-size: 14px;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.source-registry {
  margin: 21px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.source-registry li {
  padding: 14px 3px;
  border-bottom: 1px solid var(--line);
}

.source-registry a {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.source-registry a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.source-freshness {
  display: block;
  margin-top: 3px;
  color: #44576b;
  font-size: 11px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.source-registry p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Update center */

.updates-hero {
  max-width: 900px;
}

.freshness-panel {
  margin: 0 3px 34px 0;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--hard-shadow);
}

.freshness-panel-heading {
  padding: 19px 20px 15px;
  border-bottom: 1px solid var(--line-strong);
}

.freshness-panel-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
}

.freshness-summary {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.freshness-summary > div {
  min-width: 0;
  padding: 15px 20px;
}

.freshness-summary > div + div {
  border-left: 1px solid var(--line);
}

.freshness-summary dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.freshness-summary dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.freshness-caveat {
  display: grid;
  align-items: start;
  gap: 9px;
  padding: 11px 20px;
  border-top: 1px solid var(--line-strong);
  background: var(--warning-soft);
  grid-template-columns: 20px 1fr;
}

.freshness-caveat i {
  margin-top: 2px;
  color: var(--warning);
  font-size: 18px;
}

.freshness-caveat p {
  margin: 0;
  color: #4e4535;
  font-size: 12px;
  line-height: 1.6;
}

.updates-section-nav {
  display: grid;
  margin-bottom: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.updates-section-nav a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-inline: 15px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.updates-section-nav a + a {
  border-left: 1px solid var(--line-strong);
}

.updates-section-nav a:hover {
  background: var(--accent-soft);
}

.updates-section-nav strong {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  font-size: 11px;
}

.update-stream {
  padding-block: 6px 37px;
  scroll-margin-top: 78px;
}

.update-stream + .update-stream {
  padding-top: 34px;
  border-top: 1px solid var(--line-strong);
}

.update-stream-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.update-stream-heading h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.35;
}

.update-stream-intro {
  max-width: 850px;
  margin: -3px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.update-center-list {
  margin-top: 0;
}

.updates-empty-state {
  display: grid;
  min-height: 118px;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  grid-template-columns: 42px minmax(0, 1fr);
}

.empty-state-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 2px 2px 0 var(--hard-shadow);
  color: var(--accent-dark);
  font-size: 21px;
}

.updates-empty-state strong {
  font-size: 15px;
}

.updates-empty-state p {
  max-width: 830px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.date-meaning,
.publication-policy {
  padding-top: 42px;
  border-top: 1px solid var(--line-strong);
}

.date-definitions {
  margin: 22px 0 0;
  border-top: 1px solid var(--line-strong);
}

.date-definitions > div {
  display: grid;
  gap: 22px;
  padding: 12px 3px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 185px minmax(0, 1fr);
}

.date-definitions dt {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.date-definitions dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.publication-flow {
  display: flex;
  min-height: 58px;
  margin-top: 21px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--accent-soft);
}

.publication-flow span {
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.publication-flow i {
  color: var(--accent-dark);
  font-size: 17px;
}

.notice-gate {
  display: grid;
  margin-top: 20px;
  gap: 24px;
  padding: 14px 3px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  grid-template-columns: 235px minmax(0, 1fr);
}

.notice-gate h3 {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.notice-gate h3 i {
  color: var(--accent-dark);
  font-size: 19px;
}

.notice-gate p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.publication-gates {
  display: grid;
  margin-top: 20px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.publication-gates section {
  padding: 19px 20px 20px 3px;
}

.publication-gates section + section {
  padding-right: 3px;
  padding-left: 20px;
  border-left: 1px solid var(--line-strong);
}

.publication-gates h3 {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  line-height: 1.45;
}

.publication-gates h3 i {
  color: var(--accent-dark);
  font-size: 19px;
}

.publication-gates .check-list {
  margin-top: 14px;
}

.publication-gates .check-list li {
  font-size: 13px;
}

.policy-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--warning);
  background: var(--warning-soft);
  color: #4e4535;
  font-size: 12px;
  line-height: 1.7;
}

.updates-disclaimer {
  margin-top: 38px;
}

.legal-note {
  margin-block: 32px;
  border-left-color: var(--warning);
  background: var(--warning-soft);
}

.next-topic {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}

.next-topic span {
  color: var(--muted);
  font-size: 14px;
}

.next-topic a {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.wage-summary {
  display: grid;
  margin: 0 3px 30px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--accent-soft);
}

.wage-summary div {
  display: grid;
  min-height: 104px;
  place-content: center;
  text-align: center;
}

.wage-summary div + div {
  border-left: 1px solid var(--ink);
}

.wage-summary span,
.wage-summary small {
  color: var(--muted);
  font-size: 12px;
}

.wage-summary strong {
  font-size: 31px;
  line-height: 1.25;
}

.wage-form {
  margin-top: 21px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}

.wage-fields {
  display: grid;
  margin-bottom: 15px;
  grid-template-columns: minmax(170px, .7fr) minmax(240px, 1.3fr);
  gap: 14px;
}

.field label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 800;
}

.field select,
.field input {
  width: 100%;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
}

.input-unit {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.input-unit span {
  margin-left: -38px;
  padding-right: 11px;
  color: var(--muted);
  pointer-events: none;
}

.primary-button {
  min-width: 124px;
  padding-inline: 18px;
  box-shadow: 2px 2px 0 var(--hard-shadow);
}

.wage-result {
  margin-top: 15px;
  padding: 17px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
}

.wage-result[data-result="below"],
.wage-result[data-result="invalid"] {
  border-color: #d39b96;
  background: var(--danger-soft);
}

.wage-result[data-result="equal"],
.wage-result[data-result="above"] {
  border-color: #7caaa7;
  background: var(--accent-soft);
}

.result-label {
  margin: 0;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}

.wage-result h3 {
  margin: 3px 0;
  font-size: 19px;
}

.wage-result p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  padding-block: 27px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-grid strong {
  font-size: 15px;
}

.footer-grid p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-grid nav {
  display: flex;
  gap: 20px;
}

.footer-grid nav a {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

@keyframes workbench-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .workbench-main {
    grid-template-columns: 1fr;
  }

  .quick-preview {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
  }

  .preview-warning {
    grid-column: 1 / -1;
  }

  .official-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .article-toc {
    position: static;
    display: flex;
    overflow-x: auto;
    flex-direction: row;
    border-right: 0;
    border-left: 0;
  }

  .article-toc strong,
  .article-toc a {
    flex: 0 0 auto;
    border-top: 0;
  }

  .article-toc strong {
    border-right: 1px solid var(--ink);
    border-bottom: 0;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 68px;
  }

  body {
    font-size: 15px;
  }

  .header-shell,
  .home-shell,
  .shell,
  .reading-shell {
    width: min(calc(100% - 24px), var(--reading-shell));
  }

  .header-inner {
    min-height: 56px;
    gap: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
    box-shadow: 2px 2px 0 #93b9bb;
    font-size: 16px;
  }

  .brand-text strong {
    font-size: 16px;
    letter-spacing: .02em;
  }

  .brand-text small {
    display: none;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav a {
    min-height: 36px;
    gap: 4px;
    padding-inline: 6px;
    font-size: 11px;
  }

  .site-nav i {
    font-size: 16px;
  }

  .home-page .site-nav a:nth-child(2) {
    display: none;
  }

  .content-page .site-nav {
    display: none;
  }

  .header-action {
    min-height: 36px;
    margin-left: auto;
    padding-inline: 10px;
    font-size: 12px;
  }

  .workbench-stage {
    padding-block: 16px 25px;
  }

  .workbench-frame {
    box-shadow: 3px 3px 0 var(--hard-shadow);
  }

  .workbench-titlebar {
    min-height: 34px;
    font-size: 11px;
  }

  .workbench-titlebar strong {
    padding-inline: 10px 9px;
  }

  .workbench-titlebar .freshness-desktop {
    display: none;
  }

  .workbench-titlebar .freshness-mobile {
    display: inline-flex;
  }

  .workbench-update-link {
    min-height: 33px;
    padding-inline: 8px 7px;
  }

  .workbench-update-link .freshness-mobile {
    gap: 5px;
  }

  .workbench-update-link .freshness-mobile time,
  .workbench-update-link .freshness-mobile em {
    font-size: 10px;
  }

  .query-panel {
    padding: 19px 15px 16px;
  }

  .query-heading h1 {
    font-size: 30px;
    line-height: 1.25;
  }

  .query-heading > p:last-child {
    font-size: 13px;
  }

  .topic-search {
    margin-top: 14px;
  }

  .search-control {
    min-height: 46px;
    grid-template-columns: 36px minmax(0, 1fr) 82px;
    box-shadow: 2px 2px 0 var(--accent-soft);
  }

  .search-control > i {
    font-size: 18px;
  }

  .search-control input,
  .search-control button {
    font-size: 14px;
  }

  .topic-directory {
    margin-top: 17px;
  }

  .role-switch {
    min-height: 0;
    margin-top: 10px;
    padding: 7px;
    grid-template-columns: auto 1fr;
    gap: 6px 9px;
  }

  .role-switch > span {
    padding-left: 3px;
  }

  .role-buttons {
    justify-self: end;
  }

  .role-button {
    min-height: 32px;
  }

  .role-switch small {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .topic-link {
    min-height: 69px;
    grid-template-columns: 34px minmax(0, 1fr) 16px;
    gap: 10px;
  }

  .topic-link:hover {
    transform: none;
  }

  .topic-icon {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }

  .topic-copy {
    display: block;
  }

  .topic-copy strong,
  .topic-copy small {
    display: block;
  }

  .topic-copy strong {
    font-size: 16px;
  }

  .topic-copy small {
    margin-top: 2px;
    font-size: 12px;
  }

  .search-empty {
    min-height: 0;
    padding: 15px;
    grid-template-columns: 28px 1fr;
  }

  .search-empty .text-button {
    grid-column: 2;
    justify-self: start;
  }

  .preview-grid {
    display: block;
    padding-inline: 15px;
  }

  .preview-header {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .trust-grid {
    padding-block: 8px;
    grid-template-columns: 1fr;
  }

  .trust-grid div {
    min-height: 38px;
    justify-content: flex-start;
    padding-inline: 4px;
    font-size: 12px;
  }

  .trust-grid div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .updates-section {
    padding-block: 34px 38px;
  }

  .updates-head {
    display: block;
    margin-bottom: 16px;
  }

  .updates-head h2 {
    font-size: 25px;
  }

  .updates-center-link {
    min-height: 44px;
    margin-top: 16px;
  }

  .official-update-row > a {
    min-height: 0;
    gap: 6px 10px;
    padding: 13px;
    grid-template-columns: minmax(0, 1fr) 20px;
  }

  .official-update-meta {
    grid-column: 1;
  }

  .official-update-meta .update-kind {
    flex-basis: auto;
  }

  .official-update-copy {
    grid-column: 1;
  }

  .official-update-copy strong {
    font-size: 14px;
  }

  .official-update-arrow {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
  }

  .official-section {
    padding-block: 43px;
  }

  .official-grid h2,
  .content-section h2 {
    font-size: 25px;
  }

  .official-links a {
    min-height: 58px;
  }

  .official-link-copy small {
    max-width: 270px;
    font-size: 9px;
  }

  .freshness-panel {
    margin-bottom: 28px;
  }

  .freshness-panel-heading {
    padding: 16px 15px 13px;
  }

  .freshness-panel-heading h2 {
    font-size: 20px;
  }

  .freshness-summary {
    grid-template-columns: 1fr;
  }

  .freshness-summary > div {
    display: flex;
    min-height: 49px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 15px;
  }

  .freshness-summary > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .freshness-summary dd {
    margin: 0;
    font-size: 15px;
  }

  .freshness-caveat {
    padding: 11px 15px;
  }

  .updates-section-nav {
    margin-bottom: 30px;
    grid-template-columns: 1fr;
  }

  .updates-section-nav a {
    min-height: 46px;
  }

  .updates-section-nav a + a {
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .update-stream {
    padding-bottom: 31px;
  }

  .update-stream + .update-stream {
    padding-top: 29px;
  }

  .update-stream-heading {
    align-items: start;
    gap: 10px;
  }

  .update-stream-heading h2 {
    font-size: 22px;
  }

  .updates-empty-state {
    min-height: 0;
    align-items: start;
    gap: 12px;
    padding: 16px;
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .empty-state-icon {
    width: 33px;
    height: 33px;
    font-size: 18px;
  }

  .date-meaning,
  .publication-policy {
    padding-top: 35px;
  }

  .date-definitions > div {
    display: block;
    padding-block: 11px;
  }

  .date-definitions dd {
    margin-top: 3px;
  }

  .publication-flow {
    flex-wrap: wrap;
    gap: 7px;
  }

  .publication-flow span {
    font-size: 11px;
  }

  .notice-gate {
    display: block;
    padding-block: 14px;
  }

  .notice-gate p {
    margin-top: 7px;
  }

  .publication-gates {
    grid-template-columns: 1fr;
  }

  .publication-gates section,
  .publication-gates section + section {
    padding: 17px 3px;
  }

  .publication-gates section + section {
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .source-freshness {
    font-size: 10px;
  }

  .article-page {
    padding-bottom: 44px;
  }

  .breadcrumbs {
    min-height: 43px;
  }

  .article-hero {
    padding-block: 27px 24px;
  }

  .article-hero h1 {
    font-size: 31px;
    line-height: 1.27;
  }

  .article-lead {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.72;
  }

  .answer-box {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 16px;
  }

  .role-paths,
  .fact-grid {
    grid-template-columns: 1fr;
  }

  .role-path + .role-path,
  .fact-item + .fact-item {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .role-path {
    padding: 14px 15px;
  }

  .answer-box h2 {
    font-size: 19px;
  }

  .button-link {
    min-height: 36px;
  }

  .overtime-calculator-page .article-hero,
  .guided-check-page .article-hero {
    padding-block: 20px 17px;
  }

  .overtime-calculator-page .article-hero h1,
  .guided-check-page .article-hero h1 {
    font-size: 30px;
  }

  .overtime-calculator-page .article-meta-separator,
  .guided-check-page .article-meta-separator {
    display: none;
  }

  .overtime-calculator-page .article-meta-date,
  .guided-check-page .article-meta-date {
    display: block;
    margin-top: 4px;
  }

  .overtime-tool {
    margin-bottom: 23px;
  }

  .overtime-tool-heading {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 13px 14px;
  }

  .overtime-tool-heading h2 {
    font-size: 18px;
  }

  .overtime-tool-heading > a {
    min-height: 32px;
    align-content: center;
  }

  .overtime-form-grid {
    grid-template-columns: 1fr;
  }

  .calculator-step {
    padding: 15px 14px 16px;
  }

  .calculator-step:nth-child(even) {
    border-left: 0;
  }

  .calculator-step:nth-child(n + 2) {
    border-top: 1px solid var(--line-strong);
  }

  .choice-grid-day {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-grid-day .choice-card-stop {
    grid-column: 1 / -1;
  }

  .choice-card,
  .scope-choice {
    min-height: 48px;
  }

  .money-control,
  .money-control input,
  .duration-fields input {
    min-height: 44px;
  }

  .scope-options {
    grid-template-columns: 1fr;
  }

  .overtime-submit-row {
    min-height: 62px;
    padding-inline: 14px;
  }

  .overtime-submit-row p:empty {
    display: none;
  }

  .overtime-submit-row button {
    min-width: 118px;
  }

  .overtime-result,
  .overtime-stop {
    padding: 16px 14px 17px;
  }

  .overtime-result > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .overtime-result output {
    font-size: 27px;
  }

  .overtime-result-facts {
    grid-template-columns: 1fr;
  }

  .overtime-result-facts > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .guided-result-facts {
    grid-template-columns: 1fr;
  }

  .guided-result-facts li + li {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .overtime-breakdown li {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .result-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-layout {
    padding-top: 19px;
  }

  .article-toc {
    display: none;
  }

  .content-section {
    padding-block: 33px;
  }

  .content-section > p:not(.section-kicker) {
    font-size: 15px;
  }

  .formula-list,
  .wage-fields {
    grid-template-columns: 1fr;
  }

  .note-box,
  .legal-note,
  .wage-form,
  .wage-result {
    padding: 15px;
  }

  .wage-summary strong {
    font-size: 26px;
  }

  .wage-summary div {
    min-height: 92px;
  }

  .next-topic,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid nav {
    flex-wrap: wrap;
    gap: 10px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
