:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5b6470;
  --line: #d7dee8;
  --paper: #f6f1e8;
  --white: #ffffff;
  --navy: #1d3557;
  --navy-dark: #12243a;
  --blue: #457b9d;
  --gold: #d9a034;
  --gold-dark: #b97b12;
  --cream: #fff8eb;
  --shadow: 0 22px 55px rgba(18, 36, 58, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

body.quote-gated main,
body.quote-gated .footer {
  visibility: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 6px 22px rgba(18, 36, 58, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}

.nav-links a[aria-current="page"] {
  color: var(--gold);
}

.phone-link {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 0;
  padding: 12px 16px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  min-width: max-content;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 104px));
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 36, 58, 0.9), rgba(29, 53, 87, 0.52) 52%, rgba(29, 53, 87, 0.14));
}

.hero-content {
  position: relative;
  width: min(680px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 76px);
  padding-block: 64px 124px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  max-width: 760px;
  font-size: clamp(3rem, 7.4vw, 6.9rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.6;
}

.hero-actions,
.quote-form,
.service-options,
.estimate-grid {
  display: grid;
  gap: 14px;
}

.hero-actions {
  grid-template-columns: repeat(2, minmax(0, max-content));
  margin-top: 30px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  background: var(--gold);
  color: #1d160a;
}

.primary-button:hover {
  background: var(--gold-dark);
  color: var(--white);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: var(--white);
}

.secondary-button.dark-outline {
  border-color: var(--navy);
  color: var(--navy);
}

.secondary-button.dark-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.quote-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 420px);
  gap: 28px;
  align-items: start;
  width: min(1180px, calc(100% - 36px));
  margin: -58px auto 0;
  position: relative;
  z-index: 2;
}

.quote-band.page-layout {
  margin-top: 0;
  margin-bottom: 88px;
}

.quote-panel,
.estimate-panel {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  box-shadow: var(--shadow);
}

.quote-panel {
  padding: clamp(22px, 4vw, 38px);
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.quote-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
}

.form-section {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.form-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.form-section h3 {
  margin: 0 0 16px;
  font-size: 1.15rem;
  color: var(--navy);
}

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

label,
legend {
  color: #31404d;
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #cbd5dd;
  border-radius: 0;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  background: var(--cream);
}

textarea {
  resize: vertical;
}

.service-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-column: 1 / -1;
  margin: 0;
  border: 1px solid #d8e1e7;
  border-radius: 0;
  padding: 16px;
}

.service-options legend {
  padding: 0 8px;
}

.service-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  font-weight: 700;
}

.service-options input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--gold);
}

.full-row {
  grid-column: 1 / -1;
}

.estimate-panel {
  padding: 28px;
  position: sticky;
  top: 98px;
}

.price {
  margin: 8px 0 10px;
  font-size: clamp(2.25rem, 5vw, 3.55rem);
  font-weight: 800;
  color: var(--navy);
}

.estimate-note,
.fine-print {
  color: var(--muted);
  line-height: 1.55;
}

.estimate-grid {
  grid-template-columns: 1fr auto;
  margin: 22px 0;
  padding-block: 18px;
  border-block: 1px solid var(--line);
}

.estimate-grid span {
  color: var(--muted);
}

.process-list {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.process-list article {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.process-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.process-list strong,
.process-list span {
  display: block;
}

.process-list span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.full-width {
  width: 100%;
}

.quote-choice-dialog {
  width: min(560px, calc(100% - 32px));
  border: 0;
  padding: 0;
  background: transparent;
}

.quote-choice-dialog::backdrop {
  background: rgba(18, 36, 58, 0.56);
}

.quote-choice-card {
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.quote-choice-card h2 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
}

.quote-choice-card .lead {
  max-width: none;
  margin-bottom: 0;
  font-size: 1.02rem;
}

.quote-choice-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 26px;
}

.services {
  width: min(1180px, calc(100% - 36px));
  margin: 88px auto;
}

.content-section,
.page-hero,
.cta-band,
.footer {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.page-hero {
  padding: clamp(58px, 10vw, 112px) 0 44px;
}

.page-hero.compact {
  padding-bottom: 30px;
}

.page-hero h1 {
  max-width: 920px;
  color: var(--ink);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  width: min(1060px, calc(100% - 36px));
  padding: 82px 0 6px;
}

.intro-grid .section-heading h2 {
  max-width: 620px;
}

.intro-grid .lead {
  max-width: 430px;
  margin-top: 10px;
}

.feature-grid,
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.feature-grid.content-section {
  width: min(1060px, calc(100% - 36px));
}

.feature-grid.wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
  margin-bottom: 88px;
}

.feature-grid article,
.review-grid article,
.values-list article {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
}

.feature-grid article {
  overflow: hidden;
  min-height: 250px;
  padding: 28px 24px;
}

.feature-grid article > img {
  width: calc(100% + 48px);
  height: 180px;
  margin: -24px -24px 22px;
  object-fit: cover;
  display: block;
}

.feature-grid h3 {
  margin: 24px 0 12px;
}

.feature-grid p,
.review-grid p,
.values-list span {
  color: var(--muted);
  line-height: 1.55;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-block: 88px;
  border-radius: 0;
  padding: clamp(24px, 5vw, 42px);
  background: var(--navy);
  color: var(--white);
}

.image-text-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
  width: min(1060px, calc(100% - 36px));
  margin-top: 94px;
}

.image-text-section img,
.story-photo,
.team-grid img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.image-text-section img {
  aspect-ratio: 16 / 10;
  border-radius: 0;
  box-shadow: var(--shadow);
}

.image-text-section .primary-button {
  margin-top: 14px;
}

.cta-band h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.story-layout,
.application-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 28px;
  margin-bottom: 88px;
}

.story-photo {
  aspect-ratio: 16 / 10;
  margin-bottom: 24px;
  border-radius: 0;
  box-shadow: var(--shadow);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 88px;
}

.team-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
}

.team-grid img {
  aspect-ratio: 4 / 4.6;
}

.team-grid h3,
.team-grid p {
  margin-inline: 20px;
}

.team-grid h3 {
  margin-top: 20px;
  margin-bottom: 6px;
}

.team-grid p {
  margin-bottom: 22px;
  color: var(--muted);
}

.story-layout p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.values-list {
  display: grid;
  gap: 12px;
}

.values-list article {
  padding: 18px 20px;
}

.values-list strong,
.values-list span {
  display: block;
}

.values-list span {
  margin-top: 6px;
}

.review-grid {
  margin-bottom: 0;
}

.review-grid article {
  padding: 24px;
}

.review-metrics {
  width: min(1060px, calc(100% - 36px));
  margin-top: 10px;
  margin-bottom: 26px;
}

.review-grid-expanded {
  width: min(1060px, calc(100% - 36px));
  margin-bottom: 88px;
}

.home-reviews-strip {
  width: min(1060px, calc(100% - 36px));
  margin-top: 94px;
}

.home-review-grid {
  margin-bottom: 28px;
}

.social-review-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.social-icon-button {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(29, 53, 87, 0.18);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(18, 36, 58, 0.08);
}

.social-icon-button svg {
  width: 22px;
  height: 22px;
}

.social-icon-button:hover {
  transform: translateY(-1px);
  background: var(--navy);
  color: var(--white);
}

.stars {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 800;
}

.reviews-feature {
  margin-bottom: 88px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 44px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer strong,
.footer a {
  color: var(--ink);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.service-grid article {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
}

.service-grid article {
  min-height: 240px;
  padding: 24px;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(29, 53, 87, 0.14);
  border-radius: 50%;
  background: rgba(29, 53, 87, 0.05);
  color: var(--navy);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-grid h3 {
  margin: 34px 0 12px;
}

.service-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.home-services {
  width: min(1060px, calc(100% - 36px));
  margin-top: 88px;
  margin-bottom: 88px;
}

.home-services-heading {
  margin-bottom: 26px;
}

.home-service-grid {
  margin-top: 0;
}

.home-service-grid article {
  display: grid;
  align-content: start;
  justify-items: center;
  min-height: 340px;
  padding: 36px 26px 30px;
  text-align: center;
}

.home-service-grid .service-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 10px;
  background: rgba(29, 53, 87, 0.04);
}

.home-service-grid .service-icon svg {
  width: 32px;
  height: 32px;
}

.home-service-grid h3 {
  margin: 18px 0 14px;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.home-service-grid p {
  margin-bottom: 24px;
}

.service-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  margin-top: auto;
  border: 1px solid var(--navy);
  padding: 0 16px;
  color: var(--navy);
  font-weight: 800;
}

.service-link:hover {
  background: var(--navy);
  color: var(--white);
}

.service-category-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 88px;
}

.service-category-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.service-category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-category-copy {
  position: relative;
  display: grid;
  align-content: end;
  gap: 10px;
  min-height: 420px;
  padding: clamp(28px, 5vw, 42px);
  background: linear-gradient(180deg, rgba(18, 36, 58, 0.14), rgba(18, 36, 58, 0.82) 72%, rgba(18, 36, 58, 0.92));
}

.service-category-copy h2 {
  margin-bottom: 0;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
}

.service-category-copy p:last-of-type {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.service-category-copy .primary-button {
  margin-top: 8px;
  width: max-content;
}

.service-category-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 4px;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.service-category-icon svg {
  width: 30px;
  height: 30px;
}

.detail-service-grid {
  margin-top: 0;
  margin-bottom: 88px;
}

.detail-service-grid article {
  min-height: 270px;
  padding-top: 28px;
}

.detail-service-grid .service-icon {
  margin-bottom: 6px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(380px, calc(100% - 36px));
  transform: translateY(18px);
  border-radius: 0;
  padding: 16px 18px;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
  }

  .quote-band {
    grid-template-columns: 1fr;
  }

  .estimate-panel {
    position: static;
  }

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

  .intro-grid,
  .story-layout,
  .application-layout,
  .image-text-section,
  .service-category-card,
  .feature-grid,
  .feature-grid.wide,
  .review-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid .lead {
    max-width: 760px;
    margin-top: 0;
  }

  .service-category-card,
  .service-category-copy {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .phone-link {
    width: 100%;
    text-align: center;
  }

  .hero {
    min-height: 720px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(11, 24, 37, 0.9), rgba(11, 24, 37, 0.45));
  }

  .hero-content {
    align-self: start;
    margin: 0 auto;
    padding-top: 48px;
  }

  .hero-actions,
  .quote-form,
  .form-grid,
  .service-options,
  .service-grid,
  .feature-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .quote-choice-card {
    padding: 22px;
  }

  .quote-band {
    margin-top: -42px;
  }

  .quote-band.page-layout {
    margin-top: 0;
  }

  .cta-band,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

.internal-body {
  background: #eef2f5;
}

.internal-app {
  min-height: 100vh;
}

.login-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 38px;
  align-items: center;
  width: min(980px, calc(100% - 36px));
  min-height: 100vh;
  margin: 0 auto;
}

.login-panel h1 {
  color: var(--navy);
}

.login-form,
.internal-card,
.metric-grid article,
.employee-grid article,
.job-row,
.job-detail-panel,
.job-dialog {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 14px 36px rgba(18, 36, 58, 0.1);
}

.login-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.is-hidden {
  display: none !important;
}

.internal-dashboard {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.internal-sidebar {
  display: flex;
  position: sticky;
  top: 0;
  height: 100vh;
  flex-direction: column;
  gap: 28px;
  padding: 24px;
  background: var(--navy);
  color: var(--white);
}

.internal-brand {
  color: var(--white);
}

.internal-tabs {
  display: grid;
  gap: 8px;
}

.internal-tabs button,
.jobs-toolbar button {
  min-height: 42px;
  border: 1px solid transparent;
  padding: 0 14px;
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.internal-tabs button {
  color: rgba(255, 255, 255, 0.78);
}

.internal-tabs button.is-active,
.internal-tabs button:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
}

.internal-logout {
  margin-top: auto;
}

.internal-main {
  padding: clamp(20px, 4vw, 44px);
}

.internal-header,
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.internal-header {
  margin-bottom: 26px;
}

.internal-header h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  text-transform: uppercase;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.mobile-add-job {
  display: none;
}

.metric-grid article {
  padding: 22px;
}

.metric-grid span {
  display: block;
  color: var(--navy);
  font-size: 2.6rem;
  font-weight: 800;
}

.metric-grid strong {
  color: var(--muted);
}

.internal-card {
  padding: 22px;
}

.internal-card p {
  color: var(--muted);
  line-height: 1.65;
}

.schedule-list,
.job-table,
.employee-grid,
.document-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.schedule-list article,
.document-list article {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(150px, 0.7fr) minmax(180px, 0.8fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--cream);
}

.document-list article {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.schedule-list strong,
.schedule-list span,
.document-list strong,
.document-list span,
.job-row strong,
.job-row span,
.employee-grid strong,
.employee-grid span,
.employee-grid a {
  display: block;
}

.schedule-list span,
.document-list span,
.job-row span,
.employee-grid span,
.employee-grid a {
  margin-top: 4px;
  color: var(--muted);
}

.jobs-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.jobs-toolbar button {
  border-color: var(--line);
  color: var(--navy);
  background: var(--white);
}

.jobs-toolbar button.is-active {
  background: var(--navy);
  color: var(--white);
}

.job-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(140px, 0.7fr) minmax(140px, 0.7fr);
  gap: 16px;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  text-align: left;
  background: var(--white);
  cursor: pointer;
}

.job-row:hover,
.job-row.is-selected {
  border-color: var(--gold);
  box-shadow: inset 4px 0 0 var(--gold), 0 14px 36px rgba(18, 36, 58, 0.12);
}

.job-row p {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: var(--muted);
}

.jobs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
  gap: 18px;
  align-items: start;
}

.job-table {
  margin-top: 0;
}

.job-detail-panel {
  position: sticky;
  top: 24px;
  padding: 22px;
}

.job-detail-panel h3 {
  margin-bottom: 18px;
  font-size: 1.8rem;
}

.detail-section {
  padding-block: 16px;
  border-top: 1px solid var(--line);
}

.detail-section h4 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-section a,
.detail-section li,
.detail-section p,
.detail-section dd {
  color: var(--muted);
  line-height: 1.55;
}

.detail-section a {
  display: block;
}

.document-link {
  font-weight: 800;
  color: var(--navy) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-section ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.detail-section dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-section dl div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
}

.detail-section dt {
  color: var(--ink);
  font-weight: 800;
}

.detail-section dd {
  margin: 0;
}

.empty-state {
  border: 1px dashed var(--line);
  padding: 20px;
  color: var(--muted);
  background: var(--cream);
}

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

.employee-grid article {
  padding: 20px;
}

.job-dialog {
  width: min(840px, calc(100% - 36px));
  border: 0;
  padding: 0;
}

.job-dialog::backdrop {
  background: rgba(18, 36, 58, 0.55);
}

.job-dialog form {
  padding: 26px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.document-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--cream);
}

@media (max-width: 900px) {
  .login-panel,
  .internal-dashboard,
  .metric-grid,
  .employee-grid,
  .document-fields,
  .jobs-layout,
  .schedule-list article,
  .job-row {
    grid-template-columns: 1fr;
  }

  .job-detail-panel {
    position: static;
  }

  .internal-sidebar {
    position: static;
    height: auto;
  }
}

@media (max-width: 720px) {
  .internal-body {
    background: #f4f6f8;
  }

  .login-panel {
    align-content: center;
    min-height: 100dvh;
    padding-block: 24px;
  }

  .login-panel h1 {
    font-size: 3.4rem;
  }

  .internal-dashboard {
    display: block;
    padding-bottom: 84px;
  }

  .internal-sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    height: auto;
    gap: 12px;
    padding: 12px;
    box-shadow: 0 8px 22px rgba(18, 36, 58, 0.24);
  }

  .internal-brand .brand-mark {
    width: 46px;
    height: 46px;
    font-size: 0.95rem;
  }

  .internal-brand small {
    display: none;
  }

  .internal-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .internal-tabs button {
    min-width: max-content;
    min-height: 46px;
    padding: 0 14px;
    border-color: rgba(255, 255, 255, 0.16);
    text-align: center;
  }

  .internal-logout {
    display: none;
  }

  .internal-main {
    padding: 18px 14px 0;
  }

  .internal-header {
    align-items: flex-start;
    margin-bottom: 18px;
  }

  .internal-header h2 {
    font-size: 2.6rem;
  }

  .internal-header #openJobForm {
    display: none;
  }

  .mobile-add-job {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 30;
    display: inline-flex;
    min-width: 150px;
    min-height: 54px;
    box-shadow: 0 16px 34px rgba(18, 36, 58, 0.28);
  }

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

  .metric-grid article {
    padding: 18px;
  }

  .metric-grid span {
    font-size: 2.25rem;
  }

  .internal-card,
  .job-detail-panel,
  .login-form {
    box-shadow: 0 10px 24px rgba(18, 36, 58, 0.08);
  }

  .card-header {
    align-items: stretch;
    flex-direction: column;
  }

  .card-header .secondary-button {
    width: 100%;
  }

  .schedule-list article {
    gap: 12px;
    padding: 16px;
  }

  .jobs-toolbar {
    position: sticky;
    top: 118px;
    z-index: 15;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-inline: -14px;
    padding: 10px 14px;
    background: #f4f6f8;
  }

  .jobs-toolbar button {
    min-height: 44px;
    padding-inline: 8px;
    text-align: center;
  }

  .jobs-layout {
    gap: 14px;
  }

  .job-row {
    gap: 12px;
    padding: 16px;
    min-height: 128px;
  }

  .job-row p {
    display: none;
  }

  .job-detail-panel {
    margin-top: 2px;
    padding: 18px;
  }

  .job-detail-panel h3 {
    font-size: 1.55rem;
  }

  .detail-section dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .detail-section a,
  .employee-grid a {
    min-height: 38px;
    align-content: center;
  }

  .employee-grid article {
    padding: 18px;
  }

  .document-list article {
    grid-template-columns: 1fr;
  }

  .job-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
  }

  .job-dialog form {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    max-height: 100dvh;
    overflow-y: auto;
    padding: 20px 16px 96px;
  }

  .document-fields {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .dialog-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
    background: var(--white);
    border-top: 1px solid var(--line);
  }

  .dialog-actions button {
    min-height: 50px;
  }
}

@media (max-width: 430px) {
  .metric-grid,
  .jobs-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .internal-tabs button {
    min-height: 44px;
  }

  .mobile-add-job {
    right: 10px;
    bottom: 10px;
    min-width: calc(100% - 20px);
  }
}
