/* Homepage choices and planner. Content sizes naturally, including at text zoom. */
:where(body[data-page="home"]) .home-usecases { background: #f5f9fb; }
:where(body[data-page="home"]) .home-usecases .home-use-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr);
  gap: 30px;
  align-items: start;
}
:where(body[data-page="home"]) .home-usecases .use-tabs { gap: 10px; }
:where(body[data-page="home"]) .home-usecases .use-tab {
  min-height: 82px;
  padding: 15px 20px;
  gap: 15px;
  flex-wrap: nowrap;
  background: #fff;
  border-color: #d6e4eb;
  border-radius: 14px;
  transform: none;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
:where(body[data-page="home"]) .home-usecases .use-tab:hover {
  background: #f0f9fc;
  border-color: #78b5c8;
  transform: none;
}
:where(body[data-page="home"]) .home-usecases .use-tab[aria-selected="true"] {
  background: #edf8fc;
  border-color: #1686a5;
  box-shadow: inset 4px 0 #007a9a, 0 8px 22px #0b4c6c09;
}
:where(body[data-page="home"]) .home-usecases .use-tab .number {
  order: 0;
  width: 30px;
  height: 30px;
  font-size: 14px;
  color: #526a7b;
  border-color: #d1e2eb;
}
:where(body[data-page="home"]) .home-usecases .use-tab[aria-selected="true"] .number {
  color: #fff;
  background: #007a9a;
  border-color: #007a9a;
}
:where(body[data-page="home"]) .home-usecases .tab-label {
  order: 0;
  min-width: 0;
  flex: 1;
  font-family: var(--body);
  letter-spacing: 0;
}
:where(body[data-page="home"]) .home-usecases .tab-label strong {
  display: block;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 600;
  color: #102d43;
}
:where(body[data-page="home"]) .home-usecases .tab-label small {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: #526a7b;
}
:where(body[data-page="home"]) .home-usecases .use-tab > svg {
  order: 0;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: #007a9a;
}

/* Stack every panel in one grid cell to reserve the tallest natural content.
   Visibility also removes inactive content from focus and accessibility trees.
   The page's later noscript rules intentionally override these scoped rules. */
:where(body[data-page="home"]) .home-usecases .use-panels {
  display: grid;
  min-width: 0;
  align-self: start;
}
:where(body[data-page="home"]) .home-usecases .use-panel {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 18px;
  background: #fff;
  border-color: #d6e4eb;
  box-shadow: 0 14px 35px #113e5809;
}
:where(body[data-page="home"]) .home-usecases .use-panel[hidden] {
  display: flex !important;
  visibility: hidden;
  pointer-events: none;
}
:where(body[data-page="home"]) .home-usecases .use-panel:not([hidden]) { z-index: 1; }
:where(body[data-page="home"]) .home-usecases .use-panel > img {
  display: block;
  width: 100%;
  height: 280px;
  flex: 0 0 auto;
  object-fit: cover;
}
:where(body[data-page="home"]) .home-usecases .use-panel-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 32px 32px;
}
:where(body[data-page="home"]) .home-case-service {
  display: inline-block;
  color: #00728e;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .025em;
  margin-bottom: 10px;
}
:where(body[data-page="home"]) .home-usecases .use-panel h3 {
  font-size: calc(clamp(25px, 2.3vw, 31px) + 2px);
  line-height: 1.3;
  margin: 0;
  letter-spacing: -.035em;
}
:where(body[data-page="home"]) .home-usecases .use-panel p {
  font-size: 18px;
  line-height: 1.75;
  color: #526a7b;
  margin: 14px 0 0;
  min-height: 0;
}
:where(body[data-page="home"]) .home-usecases .use-panel .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 17px 22px;
  align-items: center;
  margin: auto 0 0;
  padding-top: 25px;
}
:where(body[data-page="home"]) .home-usecases .use-panel .btn {
  margin: 0;
  min-height: 48px;
  font-size: 17px;
  white-space: normal;
  text-align: center;
}
:where(body[data-page="home"]) .home-usecases .use-panel .text-link {
  min-height: 44px;
  font-size: 17px;
  white-space: normal;
}
:where(body[data-page="home"]) .home-usecases .home-case-photo-note {
  font-size: 16px;
  line-height: 1.65;
  color: #526a7b;
}

/* A useful planning guide, with native controls and a distinct result card. */
:where(body[data-page="home"]) .home-planner { background: #fff; }
:where(body[data-page="home"]) .home-planner-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}
:where(body[data-page="home"]) .home-planner-controls,
:where(body[data-page="home"]) .home-planner-result {
  min-width: 0;
  padding: 32px;
  border: 1px solid #d6e4eb;
  border-radius: 18px;
}
:where(body[data-page="home"]) .home-planner-controls { background: #f8fbfc; }
:where(body[data-page="home"]) .home-planner-controls fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
:where(body[data-page="home"]) .home-planner-controls legend {
  margin-bottom: 25px;
  padding: 0;
  color: #102d43;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.025em;
}
:where(body[data-page="home"]) .planner-field { margin: 0 0 25px; }
:where(body[data-page="home"]) .planner-field:last-child { margin-bottom: 0; }
:where(body[data-page="home"]) [data-time-controls] {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #d6e4eb;
}
:where(body[data-page="home"]) .planner-field label {
  display: block;
  margin-bottom: 9px;
  color: #102d43;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}
:where(body[data-page="home"]) .planner-field select,
:where(body[data-page="home"]) .planner-field input[type="number"] {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #b6cbd7;
  border-radius: 9px;
  background-color: #fff;
  color: #102d43;
  font: inherit;
  font-size: 19px;
  line-height: 1.5;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
:where(body[data-page="home"]) .planner-field select { padding-right: 30px; }
:where(body[data-page="home"]) .planner-field small {
  display: block;
  margin-top: 9px;
  color: #526a7b;
  font-size: 16px;
  line-height: 1.65;
}
:where(body[data-page="home"]) .planner-range-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px 15px;
}
:where(body[data-page="home"]) .planner-range-row output {
  color: #00728e;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
:where(body[data-page="home"]) .planner-field input[type="range"] {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  accent-color: #007a9a;
}
:where(body[data-page="home"]) .home-planner-result {
  background: #fff;
  border-top: 4px solid #007a9a;
  box-shadow: 0 14px 40px #153d580a;
}
:where(body[data-page="home"]) .home-planner-controls[hidden] + .home-planner-result {
  grid-column: 1 / -1;
}
:where(body[data-page="home"]) .home-planner-result h3 {
  color: #102d43;
  font-size: calc(clamp(27px, 2.7vw, 35px) + 2px);
  line-height: 1.3;
  letter-spacing: -.035em;
  margin: 0 0 13px;
}
:where(body[data-page="home"]) .home-planner-result > p {
  max-width: 70ch;
  font-size: 18px;
  line-height: 1.75;
  color: #526a7b;
  margin: 0;
}
:where(body[data-page="home"]) .planner-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0;
  padding: 22px;
  border-radius: 12px;
  background: #eef7fb;
}
:where(body[data-page="home"]) .planner-metrics .metric { min-width: 0; margin: 0; }
:where(body[data-page="home"]) .planner-metrics dt {
  font-size: 16px;
  line-height: 1.5;
  color: #526a7b;
  margin-bottom: 7px;
}
:where(body[data-page="home"]) .planner-metrics dd {
  margin: 0;
  color: #102d43;
  font-family: var(--display);
  font-size: calc(clamp(22px, 2.4vw, 30px) + 2px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
:where(body[data-page="home"]) .planner-timing { margin-bottom: 25px; }
:where(body[data-page="home"]) .planner-timeline {
  display: flex;
  gap: 3px;
  min-height: 16px;
  overflow: hidden;
  border-radius: 20px;
  background: #e4edf2;
}
:where(body[data-page="home"]) .planner-timeline > span { min-width: 0; }
:where(body[data-page="home"]) .planner-timeline [data-part="session"],
:where(body[data-page="home"]) .planner-legend .swatch.session { background: #102d43; }
:where(body[data-page="home"]) .planner-timeline [data-part="buffer"],
:where(body[data-page="home"]) .planner-legend .swatch.buffer { background: #007f9f; }
:where(body[data-page="home"]) .planner-timeline [data-part="minimum"],
:where(body[data-page="home"]) .planner-legend .swatch.minimum {
  background: repeating-linear-gradient(135deg, #bfdce7 0 4px, #e4f2f7 4px 8px);
}
:where(body[data-page="home"]) .planner-legend {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 17px 0 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #526a7b;
}
:where(body[data-page="home"]) .planner-legend li { display: flex; align-items: flex-start; gap: 10px; }
:where(body[data-page="home"]) .planner-legend .swatch {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  margin-top: .35em;
  border-radius: 3px;
  border: 1px solid #102d4320;
}
:where(body[data-page="home"]) .home-planner-result .planner-note {
  margin: 24px 0 0;
  padding: 18px 20px;
  background: #f6f9fb;
  border-left: 3px solid #8dbbce;
  border-radius: 0 8px 8px 0;
  font-size: 17px;
  line-height: 1.7;
}
:where(body[data-page="home"]) .planner-note p { margin: 0; }
:where(body[data-page="home"]) .planner-office-path {
  margin: 26px 0;
  padding: 0;
  list-style: none;
  counter-reset: office-step;
}
:where(body[data-page="home"]) .planner-office-path li {
  position: relative;
  counter-increment: office-step;
  padding: 0 0 20px 43px;
  margin-left: 14px;
  border-left: 1px solid #d6e4eb;
}
:where(body[data-page="home"]) .planner-office-path li:last-child { padding-bottom: 0; border-color: transparent; }
:where(body[data-page="home"]) .planner-office-path li::before {
  content: counter(office-step);
  position: absolute;
  left: -15px;
  top: 0;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  color: #00728e;
  background: #edf7fb;
  border: 1px solid #bddce8;
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
}
:where(body[data-page="home"]) .planner-office-path strong {
  display: block;
  font-size: 18px;
  line-height: 1.6;
  color: #102d43;
}
:where(body[data-page="home"]) .planner-office-path li > span {
  display: block;
  margin-top: 4px;
  font-size: 17px;
  line-height: 1.65;
  color: #526a7b;
}
:where(body[data-page="home"]) .planner-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  align-items: center;
  margin-top: 26px;
}
:where(body[data-page="home"]) .planner-result-actions .btn {
  min-height: 48px;
  font-size: 17px;
  white-space: normal;
  text-align: center;
}
:where(body[data-page="home"]) .planner-result-actions .text-link {
  min-height: 44px;
  font-size: 17px;
  white-space: normal;
}
:where(body[data-page="home"]) .planner-disclaimer {
  max-width: 95ch;
  margin: 23px 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: #526a7b;
}
:where(body[data-page="home"]) .planner-disclaimer a,
:where(body[data-page="home"]) .home-planner noscript a {
  color: #006e8c;
  text-decoration: underline;
  text-underline-offset: 3px;
}
:where(body[data-page="home"]) .planner-error {
  margin: 20px 0 0;
  padding: 13px 15px;
  border: 1px solid #d4a398;
  border-radius: 8px;
  background: #fff5f2;
  color: #8b2c1d;
  font-size: 17px;
  line-height: 1.6;
}
:where(body[data-page="home"]) .planner-field [aria-invalid="true"] { border-color: #a83d2a; }
:where(body[data-page="home"]) .planner-status.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
:where(body[data-page="home"]) .home-usecases :is(button, a, [role="tabpanel"]):focus-visible,
:where(body[data-page="home"]) .home-planner :is(input, select, a):focus-visible {
  outline: 3px solid #007a9a;
  outline-offset: 4px;
}
:where(body[data-page="home"]) .home-usecases .use-panel:focus-visible { outline-offset: 5px; }
:where(body[data-page="home"]) .planner-field :is(input, select):focus-visible {
  border-color: #007a9a;
  box-shadow: 0 0 0 3px #007a9a0e;
}

@media (max-width: 900px) {
  :where(body[data-page="home"]) .home-usecases .home-use-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 22px; }
  :where(body[data-page="home"]) .home-usecases .use-tab { padding: 15px; gap: 11px; }
  :where(body[data-page="home"]) .home-usecases .use-tab .number { width: 26px; height: 26px; }
  :where(body[data-page="home"]) .home-usecases .use-panel-content { padding: 25px; }
  :where(body[data-page="home"]) .home-planner-grid { grid-template-columns: 1fr; }
  :where(body[data-page="home"]) .home-planner-controls,
  :where(body[data-page="home"]) .home-planner-result { padding: 28px; }
}
@media (max-width: 600px) {
  :where(body[data-page="home"]) .home-usecases .home-use-grid { grid-template-columns: 1fr; gap: 23px; }
  :where(body[data-page="home"]) .home-usecases .use-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  :where(body[data-page="home"]) .home-usecases .use-tab {
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: 132px;
    padding: 16px 13px;
    gap: 12px 8px;
    align-content: start;
    align-items: start;
  }
  :where(body[data-page="home"]) .home-usecases .use-tab .number { grid-column: 1; grid-row: 1; }
  :where(body[data-page="home"]) .home-usecases .use-tab > svg { grid-column: 2; grid-row: 1; align-self: center; width: 18px; height: 18px; }
  :where(body[data-page="home"]) .home-usecases .use-tab .tab-label { grid-column: 1 / -1; grid-row: 2; }
  :where(body[data-page="home"]) .home-usecases .tab-label strong { font-size: 18px; line-height: 1.45; }
  :where(body[data-page="home"]) .home-usecases .tab-label small { font-size: 16px; }
  :where(body[data-page="home"]) .home-usecases .use-tab[aria-selected="true"] { box-shadow: inset 0 3px #007a9a, 0 6px 20px #007a9a09; }
  :where(body[data-page="home"]) .home-usecases .use-panel > img { height: 235px; }
  :where(body[data-page="home"]) .home-usecases .use-panel-content { padding: 24px 22px; }
  :where(body[data-page="home"]) .home-usecases .use-panel h3 { font-size: 29px; }
  :where(body[data-page="home"]) .home-usecases .use-panel .actions { gap: 13px; width: 100%; }
  :where(body[data-page="home"]) .home-usecases .use-panel .actions .btn { width: 100%; justify-content: center; }
  :where(body[data-page="home"]) .home-planner-grid { gap: 20px; }
  :where(body[data-page="home"]) .home-planner-controls,
  :where(body[data-page="home"]) .home-planner-result { padding: 24px 21px; border-radius: 15px; }
  :where(body[data-page="home"]) .home-planner-controls legend { font-size: 23px; }
  :where(body[data-page="home"]) .planner-metrics { padding: 18px 15px; gap: 14px; }
  :where(body[data-page="home"]) .planner-metrics dd { font-size: 26px; }
  :where(body[data-page="home"]) .home-planner-result .planner-note { padding: 16px; }
  :where(body[data-page="home"]) .planner-result-actions { align-items: stretch; gap: 13px; }
  :where(body[data-page="home"]) .planner-result-actions .btn { width: 100%; justify-content: center; }
  :where(body[data-page="home"]) .planner-office-path li { padding-left: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  :where(body[data-page="home"]) .home-usecases .use-tab,
  :where(body[data-page="home"]) .planner-field select,
  :where(body[data-page="home"]) .planner-field input { transition: none; }
}
@media print {
  :where(body[data-page="home"]) .home-usecases .use-tabs,
  :where(body[data-page="home"]) .home-planner-controls { display: none; }
  :where(body[data-page="home"]) .home-usecases .home-use-grid,
  :where(body[data-page="home"]) .home-usecases .use-panels,
  :where(body[data-page="home"]) .home-planner-grid { display: block; }
  :where(body[data-page="home"]) .home-usecases .use-panel[hidden] { display: none !important; }
  :where(body[data-page="home"]) .home-usecases .use-panel,
  :where(body[data-page="home"]) .home-planner-result { box-shadow: none; break-inside: avoid; }
}
