:root {
  --toc-ivory: #f5f2e9;
  --toc-paper: #fffdf8;
  --toc-green: #073f37;
  --toc-green-deep: #052f2a;
  --toc-gold: #c98b2b;
  --toc-ink: #292e2c;
  --toc-muted: #656b68;
  --toc-line: rgba(7, 63, 55, 0.15);
  --toc-serif: Georgia, "Times New Roman", "Songti SC", serif;
}

html,
body {
  min-height: 100%;
}

body {
  color: var(--toc-ink);
  background: var(--toc-ivory);
}

body:not(.worklayer-open) {
  overflow: hidden;
}

body.worklayer-open {
  overflow: hidden;
}

.site-header {
  width: min(780px, calc(100% - 48px));
  height: 82px;
  margin: 0 auto;
  border: 0;
}

.brand {
  gap: 15px;
  color: var(--toc-green);
}

.brand-mark {
  position: relative;
  display: block;
  width: 54px;
  height: 56px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-letter {
  display: block;
  color: var(--toc-green);
  font-family: var(--toc-serif);
  font-size: 58px;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.09em;
}

.brand-glyph {
  display: block;
}

.brand-mark i {
  position: absolute;
  left: 27px;
  bottom: 6px;
  width: 8px;
  height: 8px;
  background: var(--toc-gold);
  transform: rotate(45deg);
}

.brand-wordmark {
  display: grid;
  gap: 4px;
  line-height: 1;
}

.brand-wordmark strong {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 0.19em;
}

.brand-wordmark small {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.27em;
}

.header-actions {
  gap: 0;
}

.language-picker select {
  min-width: 76px;
  min-height: 44px;
  padding: 0 26px 0 10px;
  border: 0;
  border-radius: 0;
  color: var(--toc-green);
  background: transparent;
  font-size: 18px;
  font-weight: 550;
  letter-spacing: 0.08em;
}

.page-shell {
  width: min(780px, calc(100% - 48px));
  height: calc(100svh - 82px);
  min-height: 680px;
  margin: 0 auto;
}

.toc-hero {
  display: flex;
  flex-direction: column;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: clamp(50px, 7.4vh, 78px) 0 clamp(24px, 3vh, 34px);
}

.toc-hero .intro-main {
  padding: 0;
}

.toc-hero .intro-main::before {
  display: none;
}

.toc-hero .eyebrow {
  margin: 0 0 clamp(24px, 3.2vh, 36px);
  color: var(--toc-gold);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.13em;
}

.toc-hero h1,
.toc-hero .intro-main h1 {
  max-width: 740px;
  margin: 0;
  color: var(--toc-green);
  font-family: var(--toc-serif);
  font-size: clamp(54px, 7.3vw, 74px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.048em;
}

.toc-hero .intro-copy {
  max-width: 650px;
  margin: clamp(25px, 3vh, 34px) 0 0;
  color: var(--toc-ink);
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.5;
}

.hero-actions {
  display: grid;
  width: 100%;
  gap: 12px;
  margin-top: clamp(30px, 3.8vh, 42px);
}

.hero-primary,
.hero-secondary {
  font-weight: 700;
}

.hero-primary {
  display: flex;
  width: 100%;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 26px;
  border: 1px solid var(--toc-green);
  border-radius: 11px;
  color: white;
  background: var(--toc-green);
  font-size: 18px;
}

.hero-primary span:first-child {
  margin-inline: auto;
}

.hero-primary span:last-child {
  margin-left: -42px;
  font-size: 34px;
  font-weight: 350;
  line-height: 1;
}

.hero-primary:hover {
  border-color: var(--toc-green-deep);
  background: var(--toc-green-deep);
}

.hero-secondary {
  justify-self: center;
  min-height: 38px;
  padding: 0 3px;
  border: 0;
  border-bottom: 1px solid var(--toc-green);
  border-radius: 0;
  color: var(--toc-green);
  background: transparent;
  font-size: 16px;
}

.toc-hero .trust-list {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: 0;
  margin-top: clamp(23px, 2.8vh, 32px);
}

.toc-hero .trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 26px;
  border: 0;
  border-right: 1px solid var(--toc-line);
  border-radius: 0;
  color: var(--toc-ink);
  background: transparent;
  font-size: 14px;
  font-weight: 450;
}

.toc-hero .trust-list li:last-child {
  border-right: 0;
}

.toc-hero .trust-list li > span:first-child {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--toc-green);
  border-radius: 50%;
  color: var(--toc-green);
  background: transparent;
  font-size: 12px;
}

.home-tracking-card {
  display: block;
  margin-top: auto;
  padding: 24px 30px 26px;
  border: 1px solid var(--toc-line);
  border-radius: 15px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 15px 45px rgba(7, 63, 55, 0.035);
}

.home-tracking-card h2 {
  margin: 0 0 18px;
  color: var(--toc-ink);
  font-size: 21px;
  font-weight: 750;
}

.home-tracking-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  gap: 18px;
}

.home-tracking-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 17px;
  border: 1px solid rgba(7, 63, 55, 0.18);
  border-radius: 9px;
  color: var(--toc-ink);
  background: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.home-tracking-form input::placeholder {
  color: #929694;
}

.tracking-card-action {
  min-height: 54px;
  padding: 0 18px;
  border: 1.5px solid var(--toc-green);
  border-radius: 9px;
  color: var(--toc-green);
  background: transparent;
  font-size: 17px;
  font-weight: 750;
}

.tracking-card-action:hover {
  color: white;
  background: var(--toc-green);
}

.home-recent-button {
  margin-top: 12px;
  padding: 0;
  border: 0;
  color: var(--toc-green);
  background: transparent;
  font-size: 12px;
  text-decoration: underline;
}

.home-tracking-status {
  min-height: 0;
  margin: 9px 0 0;
  color: #a33a2b;
  font-size: 12px;
}

.home-tracking-status:empty {
  display: none;
}

.hero-footnote {
  margin: clamp(22px, 2.8vh, 30px) 0 0;
  color: var(--toc-muted);
  font-size: 13px;
  text-align: center;
  letter-spacing: 0.015em;
}

body > footer {
  display: none;
}

.desk {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: none;
  width: 100%;
  height: 100dvh;
  margin: 0;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: #f5f7f5;
  box-shadow: none;
}

.desk.open {
  display: block;
}

.desk-close {
  position: fixed;
  z-index: 55;
  top: 14px;
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(7, 63, 55, 0.17);
  border-radius: 50%;
  color: var(--toc-green);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(7, 63, 55, 0.09);
  font-size: 25px;
  font-weight: 350;
  line-height: 1;
}

.service-switcher {
  position: sticky;
  z-index: 52;
  top: 0;
  padding-right: 72px;
}

.service-switcher .tab.active,
.primary-button,
.handoff-card .followup-submit {
  background: var(--toc-green);
}

.receipt {
  border-color: rgba(201, 139, 43, 0.28);
  background: #fbf5e9;
}

.receipt > span {
  color: var(--toc-gold);
}

.receipt-actions,
.ai-tracking-actions {
  flex-wrap: wrap;
  align-items: center;
}

.receipt-actions .text-button {
  min-height: 38px;
  padding: 0 8px;
}

.ai-tracking-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.recent-item {
  border-color: var(--toc-line);
  background: var(--toc-paper);
}

.recent-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 620px) {
  .site-header {
    width: auto;
    height: 70px;
    margin: 0 24px;
  }

  .brand {
    gap: 10px;
  }

  .brand > .brand-wordmark {
    display: grid !important;
  }

  .brand-mark {
    width: 38px;
    height: 42px;
  }

  .brand-letter {
    font-size: 43px;
  }

  .brand-mark i {
    left: 19px;
    bottom: 7px;
    width: 6px;
    height: 6px;
  }

  .brand-wordmark {
    gap: 2px;
  }

  .brand-wordmark strong {
    font-size: 14px;
  }

  .brand-wordmark small {
    font-size: 6px;
  }

  .language-picker select {
    min-width: 58px;
    min-height: 38px;
    padding: 0 17px 0 5px;
    font-size: 14px;
  }

  .page-shell {
    width: auto;
    height: calc(100svh - 70px);
    min-height: 650px;
    margin: 0 24px;
  }

  .toc-hero {
    padding: clamp(48px, 8vh, 68px) 0 clamp(20px, 2.7vh, 28px);
  }

  .toc-hero .eyebrow {
    margin-bottom: clamp(22px, 3vh, 28px);
    font-size: 10px;
  }

  .toc-hero h1,
  .toc-hero .intro-main h1 {
    max-width: 340px;
    font-size: clamp(43px, 12.2vw, 50px);
    line-height: 1.02;
  }

  .toc-hero .intro-copy {
    max-width: 335px;
    margin-top: clamp(20px, 2.6vh, 25px);
    font-size: 16px;
    line-height: 1.53;
  }

  .hero-actions {
    gap: 9px;
    margin-top: clamp(24px, 3.2vh, 31px);
  }

  .hero-primary {
    min-height: 58px;
    padding: 0 20px;
    font-size: 15px;
  }

  .hero-primary span:last-child {
    margin-left: -32px;
    font-size: 28px;
  }

  .hero-secondary {
    min-height: 34px;
    font-size: 14px;
  }

  .toc-hero .trust-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-top: clamp(18px, 2.5vh, 24px);
  }

  .toc-hero .trust-list li {
    justify-content: center;
    gap: 5px;
    padding: 0 7px;
    font-size: 10px;
    white-space: nowrap;
  }

  .toc-hero .trust-list li:first-child {
    justify-content: flex-start;
    padding-left: 0;
  }

  .toc-hero .trust-list li:last-child {
    justify-content: flex-end;
    padding-right: 0;
  }

  .toc-hero .trust-list li > span:first-child {
    width: 20px;
    height: 20px;
    font-size: 9px;
  }

  .home-tracking-card {
    padding: 18px 19px 19px;
    border-radius: 13px;
  }

  .home-tracking-card h2 {
    margin-bottom: 14px;
    font-size: 18px;
  }

  .home-tracking-form {
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 10px;
  }

  .home-tracking-form input,
  .tracking-card-action {
    min-height: 48px;
  }

  .home-tracking-form input {
    padding: 0 12px;
    font-size: 13px;
  }

  .tracking-card-action {
    padding: 0 8px;
    font-size: 14px;
  }

  .hero-footnote {
    margin-top: clamp(18px, 2.4vh, 24px);
    font-size: 11px;
  }

  .service-switcher {
    padding-right: 62px;
  }

  .panel {
    min-height: calc(100dvh - 86px);
  }

  .receipt-actions,
  .ai-tracking-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recent-item-actions {
    width: 100%;
    justify-content: space-between;
  }

  .receipt-actions .secondary-button,
  .receipt-actions .text-button,
  .ai-tracking-actions .text-button {
    width: 100%;
    min-height: 42px;
    padding: 0 8px;
    border: 1px solid var(--toc-line);
    border-radius: 9px;
  }
}

@media (max-height: 730px) and (max-width: 620px) {
  body:not(.worklayer-open) {
    overflow-y: auto;
  }

  .page-shell {
    height: auto;
  }

  .toc-hero {
    min-height: 660px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-primary,
  .hero-secondary,
  .tracking-card-action {
    transition: none;
  }
}
