/* Header menu only. 18px. Typhoon sets these items to text-sm (14px). */
.header-nav li.text-sm {
  font-size: 18px;
}

/* No logo. The menu sits in the center of the bar. */
.header-nav {
  justify-content: center;
  padding-right: 2.75rem;
  padding-left: 2.75rem;
}

.header-nav > div:first-child {
  display: none;
}

.header-nav > div:last-child {
  flex-grow: 0;
  justify-content: center;
}

.header-nav ul {
  margin-right: 0;
}

/* Home is an icon. The word sits beside Home Delivery otherwise. */
.home-menu-link {
  justify-content: center;
}

.home-menu-icon {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  stroke: currentColor;
}

/* Menu bar stays this gray in light and dark. The page below follows the toggle. */
header.bg-white,
.mobile-nav.bg-gray-800 {
  background-color: #333;
  color: #f4f4f5;
}

.theme-toggle {
  position: absolute;
  top: 50%;
  right: 0.65rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f4f4f5;
  cursor: pointer;
  transform: translateY(-50%);
}

.theme-toggle:hover {
  color: #27d63e;
}

.theme-toggle:focus-visible {
  outline: 2px solid #27d63e;
  outline-offset: 2px;
}

.theme-toggle-svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  stroke: currentColor;
}

.theme-toggle-sun {
  display: none;
}

html.dark .theme-toggle-moon {
  display: none;
}

html.dark .theme-toggle-sun {
  display: flex;
}

@media (max-width: 767px) {
  .theme-toggle {
    right: 3.25rem;
  }
}

.header-nav > div:last-child > ul > li:not(.border-primary):hover {
  color: #fff;
  border-bottom-color: #27d63e;
}

/* Chosen main-menu item. The green line stays. The label and icon turn gold. */
.header-nav > div:last-child > ul > li.border-primary,
.header-nav > div:last-child > ul > li.border-primary > div > a,
.mobile-nav li.active > div > a {
  color: #C9A227;
}

/* Support pad. White panel and dark labels on the dark bar. */
.header-nav ul.level_1 {
  background-color: #fff;
  color: #1a1a1a;
}

.header-nav ul.level_1 a {
  color: #1a1a1a;
}

.header-nav ul.level_1 li:hover > div > a {
  color: #178025;
}

/* Height steps Typhoon did not build. spacing is 0.25rem, so 10/12/14 are 40/48/56px. */
.h-10 { height: calc(var(--spacing) * 10); }
.h-12 { height: calc(var(--spacing) * 12); }
.h-14 { height: calc(var(--spacing) * 14); }

/* Admin Hero Height is a fixed band. The theme padding would ignore a short value. */
#hero[style*="height:"] {
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

#hero[style*="height:"] > div.relative {
  width: 100%;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

#hero[style*="height:"] h1 {
  font-size: 1.75rem;
  line-height: 1.15;
}

#hero[style*="height:"] .text-lg {
  font-size: 1rem;
  line-height: 1.35;
}

#hero[style*="height:"] .mt-3 {
  margin-top: 0.4rem;
}

#hero[style*="height:"] .mt-8 {
  margin-top: 0.75rem;
}

#hero[style*="height:"] a {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

/* Fixed header is h-12 and covers the page. Start the hero below that bar. */
#hero {
  margin-top: calc(var(--spacing) * 12);
}

/* Home dashboard photo. Height follows the hero. Width stays the photo's own ratio. */
#hero img.background-image[src*="hero-home"] {
  top: 0;
  bottom: 0;
  left: 50%;
  right: auto;
  width: auto;
  height: auto;
  max-width: none;
  aspect-ratio: 999 / 500;
  transform: translateX(-50%);
  object-fit: cover;
}

#hero:has(img.background-image[src*="hero-home"]) > div.absolute {
  top: 0;
  bottom: 0;
  left: 50%;
  right: auto;
  width: auto;
  height: auto;
  aspect-ratio: 999 / 500;
  transform: translateX(-50%);
}

/* Dist 11 product screens. Height follows the hero. Width stays the photo's own ratio. */
#hero img.background-image[src*="hero-hd"],
#hero img.background-image[src*="hero-sc"],
#hero img.background-image[src*="hero-core"] {
  top: 0;
  bottom: 0;
  left: 50%;
  right: auto;
  width: auto;
  height: 100%;
  max-width: none;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: center center;
}

#hero:has(img.background-image[src*="hero-hd"]) > div.absolute {
  aspect-ratio: 1600 / 488;
}
#hero:has(img.background-image[src*="hero-sc"]) > div.absolute {
  aspect-ratio: 1600 / 520;
}
#hero:has(img.background-image[src*="hero-core"]) > div.absolute {
  aspect-ratio: 1600 / 668;
}

#hero:has(img.background-image[src*="hero-hd"]) > div.absolute,
#hero:has(img.background-image[src*="hero-sc"]) > div.absolute,
#hero:has(img.background-image[src*="hero-core"]) > div.absolute {
  top: 0;
  bottom: 0;
  left: 50%;
  right: auto;
  width: auto;
  height: auto;
  transform: translateX(-50%);
}

#hero:has(img.background-image[src*="hero-hd"]) h1,
#hero:has(img.background-image[src*="hero-sc"]) h1,
#hero:has(img.background-image[src*="hero-core"]) h1,
#hero:has(img.background-image[src*="hero-hd"]) .mt-3,
#hero:has(img.background-image[src*="hero-sc"]) .mt-3,
#hero:has(img.background-image[src*="hero-core"]) .mt-3 {
  color: #1a1a1a;
}

/* Site content column. The hero background stays full width. */
.ir-page {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Column hero. Newspaper fills the band. The screen capture sits on the right. */
#hero:has(.home-hero-row) {
  background: #d5d0c8;
}

#hero:has(.home-hero-row)::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: url("/user/media/newspapers.jpg?v=3") center / cover no-repeat;
  z-index: 0;
}

.home-hero-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  height: 29.25rem;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.home-hero-stack {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  min-width: 0;
  max-width: 34rem;
}

.home-hero-copy {
  background: rgba(255, 255, 255, 0.94);
  padding: 1.25rem 1.5rem;
}

.home-hero-copy h1 {
  margin: 0;
  color: #1a1a1a;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: 3rem;
}

.home-hero-text {
  margin-top: 0.75rem;
  color: #1a1a1a;
  font-size: 1.25rem;
  line-height: 1.45;
}

.home-hero-text p {
  margin: 0;
}

.home-hero-text p + p {
  margin-top: 0.75rem;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

.home-hero-shot {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  min-height: 0;
  max-width: 50%;
  max-height: calc(29.25rem - 9rem);
  height: auto;
  object-fit: contain;
}

@media (max-width: 800px) {
  .home-hero-row {
    flex-wrap: wrap;
    height: auto;
  }

  .home-hero-shot {
    max-width: 100%;
  }

  .home-hero-copy h1 {
    font-size: 2.25rem;
  }
}

.home-band {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.home-band-image-left {
  flex-direction: row-reverse;
}

.home-band-copy {
  position: relative;
  flex: 2 1 0;
  min-width: 0;
}

/* Angled corner mark. The band clips the ribbon ends. The line stays in the corner and the first line of text does not move. */
.home-band-copy:has(.home-band-mark) {
  overflow: hidden;
}

.home-band-mark {
  position: absolute;
  top: 1.55rem;
  right: -3.1rem;
  z-index: 2;
  margin: 0;
  padding: 0.28rem 3.4rem;
  background: #0e3d18;
  color: #fff;
  border-top: 4px solid #c4a35a;
  border-bottom: 4px solid #c4a35a;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transform: rotate(28deg);
  pointer-events: none;
}

.home-band-copy:has(.home-band-mark) .home-band-title,
.home-band-copy:has(.home-band-mark) .home-band-text {
  padding-right: 5.5rem;
}

.home-band-media {
  flex: 1 1 0;
  min-width: 0;
}

.home-band-screen .home-band-copy,
.home-band-screen .home-band-media {
  flex: 1 1 0;
}

.home-band-zoom {
  display: block;
  cursor: zoom-in;
  color: inherit;
  text-decoration: none;
}

.home-band-zoom:focus-visible {
  outline: 2px solid #178025;
  outline-offset: 2px;
}

.home-band-zoom-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  color: #178025;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

.home-band-zoom-icon {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  flex: none;
}

.home-band-zoom:hover .home-band-zoom-hint,
.home-band-zoom:focus-visible .home-band-zoom-hint {
  text-decoration: underline;
}

.glightbox-container.glightbox-clean .gclose,
.glightbox-container.glightbox-clean .gclose:hover {
  background-color: #fff;
  opacity: 1;
  border: 1px solid #1a1a1a;
}

.glightbox-container.glightbox-clean .gclose path {
  fill: #1a1a1a;
}

.home-band-shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d9d9d9;
}

.home-band-title {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 800;
  color: #1a1a1a;
  text-box-trim: trim-start;
  text-box-edge: cap alphabetic;
}

.home-band-text {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: #1a1a1a;
}

.home-band-copy:not(:has(> .home-band-title)) > .home-band-text {
  margin-top: 0;
}

/* A band with no heading starts on the first line of the body. Drop the space above that line so it meets the picture. */
.home-band-text > :first-child {
  margin-top: 0;
}

.home-band-copy:not(:has(> .home-band-title)) > .home-band-text > :first-child {
  text-box-trim: trim-start;
  text-box-edge: cap alphabetic;
}

.home-band-text h3 {
  margin: 1.35rem 0 0.35rem;
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 800;
  color: #1a1a1a;
}

.home-band-text p {
  margin: 0 0 0.75rem;
}

.home-band-text ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.home-band-text li {
  margin-bottom: 0.3rem;
}

.home-band-text a {
  color: #178025;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 800px) {
  .home-band,
  .home-band-image-left {
    flex-direction: column;
  }
}

body.home-plain-hero #delivery,
body.home-plain-hero #stores,
body.home-plain-hero #assistant {
  scroll-margin-top: 4rem;
}

/* Home only. Four entity panels under the hero, two columns. */
.home-panels-band {
  background: #d4d4d8;
}

.ir-icon-band {
  background: #808080;
}

.announce-band {
  background: #178025;
  border-top: 3px solid #d4af37;
  border-bottom: 3px solid #d4af37;
  margin-top: calc(var(--spacing) * 12);
  padding: 0.7rem 1.25rem;
}

body:has(.announce-band) #hero {
  margin-top: 0;
}

.announce {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

.announce-title {
  margin: 0 0 0.2rem;
  color: #fff;
  font-size: 1.125rem;
  line-height: 1.25;
  font-weight: 800;
}

.announce-text {
  color: #fff;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.announce-text p {
  margin: 0;
}

.announce-text p + p {
  margin-top: 0.75rem;
}

body.home-plain-hero .home-panels-title {
  margin: 0 0 1.25rem;
  color: #1a1a1a;
  font-size: 1.75rem;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
}

body.home-plain-hero .home-panels-title:has(+ .home-panels-subtitle) {
  margin-bottom: 0;
}

body.home-plain-hero .home-panels-subtitle {
  max-width: 40rem;
  margin: 0.5rem auto 1.25rem;
  color: #1a1a1a;
  font-size: 1.0625rem;
  line-height: 1.55;
  text-align: center;
}

body.home-plain-hero .home-panels-note {
  grid-column: 1 / -1;
  justify-self: center;
  box-sizing: border-box;
  width: 67%;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 0.75rem;
  color: #1a1a1a;
  font-size: 1.0625rem;
  line-height: 1.55;
  text-align: center;
}

body.home-plain-hero .home-panels-note p {
  margin: 0;
}

body.home-plain-hero .home-panels-note p + p {
  margin-top: 0.75rem;
}

body.home-plain-hero .home-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  body.home-plain-hero .home-panels {
    grid-template-columns: 1fr 1fr;
  }
}

body.home-plain-hero .home-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  background: #fff;
  border: 1px solid #d9d9d9;
  padding: 1.25rem 1.25rem 1.5rem;
}

body.home-plain-hero .home-panel-icon {
  color: #178025;
  line-height: 0;
}

body.home-plain-hero .home-panel-svg {
  width: 2.5rem;
  height: 2.5rem;
  stroke: currentColor;
  stroke-width: 1.5;
}

body.home-plain-hero .home-panel-title {
  margin: 0.85rem 0 0;
  color: #1a1a1a;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}

body.home-plain-hero .home-panel-text {
  flex: 1 1 auto;
  margin: 0.6rem 0 1.25rem;
  color: #1a1a1a;
  font-size: 1rem;
  line-height: 1.45;
}

/* Small icon and subtitle row. Links jump to the bands under it. */
.ir-icon-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 1.5rem;
}

.ir-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 10.5rem;
  padding: 0.9rem 0.75rem 0.8rem;
  background: #fff;
  border-radius: 0.65rem;
  text-align: center;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}

.ir-icon-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #178025;
  line-height: 0;
}

.ir-icon-svg {
  width: 1.75rem;
  height: 1.75rem;
  stroke: currentColor;
  stroke-width: 1.5;
}

.ir-icon-link:hover {
  color: #178025;
}

#customers,
#locations,
#publication-info,
#draws,
#billing,
#reports,
#utilities,
#route-info,
#combined-route-list,
#turn-by-turn-list,
#route-optimizer,
#maintain-directions,
#maintain-positions,
#copy-move-between-routes,
#hd-route-list,
#sc-route-list,
#assistant,
#publisher-hub,
#publishers-utils,
#publication-ids,
#send,
#employee-info,
#preferences,
#definitions,
#daily-reports,
#est-weekly-draw,
#abc-report,
#route-definitions,
#publications,
#deposit-report,
#print-calendar,
#remove-draw-information,
#audit-trail {
  scroll-margin-top: 4.5rem;
}

.ir-footer {
  background: #333;
  border-top: 1px solid #333;
  color: #f4f4f5;
  font-size: 0.95rem;
  line-height: 1.45;
}

.ir-footer-stack {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
  text-align: center;
}

.ir-footer-stack p {
  margin: 0 0 0.45rem;
}

.ir-footer-stack p:last-child {
  margin-bottom: 0;
}

.ir-footer-name {
  font-weight: 800;
}

.ir-footer-tag {
  font-style: italic;
}

.ir-footer a {
  color: #27d63e;
  font-weight: 700;
  text-decoration: none;
}

.ir-contact-form {
  max-width: 36rem;
  margin-inline: auto;
}

#work + div .text-gray-500 {
  color: #178025;
}

.ir-contact-form .home-band-text {
  margin-bottom: 1.25rem;
}

.ir-contact-form .form-input,
.ir-contact-form .form-textarea,
.ir-contact-form .form-button {
  border-radius: 0;
}

.ir-contact-form label {
  color: #1a1a1a;
  font-weight: 700;
}

.ir-contact-form .notices {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid #178025;
  border-radius: 0;
  background: #e8f6ea;
  color: #1a1a1a;
}

.ir-contact-form .notices p {
  margin: 0;
}

body.home-plain-hero .home-panel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0.55rem 1rem;
  border-radius: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

/* Dark page. The menu bar and footer stay #333. */
html.dark body {
  background-color: #1a1a1a;
  color: #f4f4f5;
}

html.dark .bg-white {
  background-color: #1a1a1a;
}

html.dark .bg-gray-100 {
  background-color: #242424;
}

html.dark .home-band-title,
html.dark .home-band-text,
html.dark .home-band-text h3,
html.dark body.home-plain-hero .home-panels-title,
html.dark body.home-plain-hero .home-panels-subtitle,
html.dark body.home-plain-hero .home-panel-title,
html.dark body.home-plain-hero .home-panel-text,
html.dark .ir-contact-form label {
  color: #f4f4f5;
}

html.dark .home-band-text a,
html.dark .home-band-zoom-hint,
html.dark .ir-icon-link:hover,
html.dark .header-nav ul.level_1 li:hover > div > a {
  color: #3dce55;
}

html.dark .home-band-shot,
html.dark body.home-plain-hero .home-panel {
  border-color: #3a3a3a;
}

html.dark .home-hero-copy {
  background: rgba(26, 26, 26, 0.94);
}

html.dark .home-hero-copy h1,
html.dark .home-hero-text {
  color: #f4f4f5;
}

html.dark .home-panels-band {
  background: #2a2a2a;
}

html.dark .ir-icon-band {
  background: #3a3a3a;
}

html.dark .ir-icon-link,
html.dark body.home-plain-hero .home-panel,
html.dark body.home-plain-hero .home-panels-note {
  background: #1a1a1a;
  color: #f4f4f5;
  border-color: #3a3a3a;
}

html.dark .header-nav ul.level_1 {
  background-color: #2a2a2a;
  color: #f4f4f5;
}

html.dark .header-nav ul.level_1 a {
  color: #f4f4f5;
}

html.dark .ir-contact-form .form-input,
html.dark .ir-contact-form .form-textarea {
  background-color: #1a1a1a;
  color: #f4f4f5;
  border-color: #3a3a3a;
}

html.dark .ir-contact-form .notices {
  background: #14301a;
  color: #f4f4f5;
}

html.dark #work + div .text-gray-500 {
  color: #3dce55;
}

html.dark h1,
html.dark h2,
html.dark h3,
html.dark .prose,
html.dark .text-gray-900,
html.dark .text-gray-800,
html.dark .text-gray-700,
html.dark .text-gray-600,
html.dark .text-gray-500,
html.dark .text-black {
  color: #f4f4f5;
}


