.litter-page {
  --litter-navy: #132f45;
  --litter-navy-soft: #e7eff5;
  --litter-teal: #16766c;
  --litter-teal-dark: #0f5b54;
  --litter-teal-soft: #e3f3f0;
  --litter-coral: #a34755;
  --litter-coral-soft: #fae9ec;
  --litter-gold: #8b6217;
  --litter-gold-soft: #fff3d4;
  --litter-border: #c9d7df;
  --litter-surface: #eef4f7;
  --litter-text: #172334;
}

.litter-page main {
  overflow: hidden;
}

.litter-page .card-friendly {
  border-radius: 8px;
}

.litter-intro,
.litter-calculator-band {
  background: var(--litter-surface);
}

.litter-intro {
  border-bottom: 1px solid var(--litter-border);
}

.litter-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
  gap: 2rem;
  align-items: end;
}

.litter-lead {
  max-width: 850px;
  color: #3c515f;
  font-size: 1.08rem;
}

.litter-quick-answer {
  max-width: 960px;
  padding-left: 1rem;
  color: #263f4d;
  border-left: 4px solid var(--litter-teal);
}

.litter-intro-note {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--litter-border);
  border-radius: 8px;
}

.litter-note-icon,
.litter-form-icon,
.litter-content-icon {
  display: inline-flex;
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  color: var(--litter-teal-dark);
  background: var(--litter-teal-soft);
  border: 1px solid #bcded8;
  border-radius: 50%;
  font-size: 1.05rem;
}

.litter-note-icon .bi,
.litter-form-icon .bi,
.litter-content-icon .bi,
.litter-result-actions .bi,
.litter-related-links .bi,
.litter-puppy-marker .bi {
  display: inline-block;
  width: 1em;
  min-width: 1em;
  line-height: 1;
  text-align: center;
}

.litter-tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(430px, 1.06fr);
  gap: 1.25rem;
  align-items: stretch;
}

#calculator,
#litterResultHeading {
  scroll-margin-top: 7rem;
}

.litter-form-card,
.litter-result-card {
  overflow: hidden;
  border-color: var(--litter-border);
}

.litter-form-card .form-control,
.litter-form-card .form-select,
.litter-form-card .input-group-text {
  min-height: 50px;
  border-color: #c2d1da;
  border-radius: 7px;
}

.litter-form-card .input-group .form-control {
  border-radius: 7px 0 0 7px;
}

.litter-form-card .input-group-text {
  min-width: 56px;
  justify-content: center;
  color: #425968;
  background: #f4f8fa;
  border-radius: 0 7px 7px 0;
  font-weight: 700;
}

.litter-form-card .form-control:focus,
.litter-form-card .form-select:focus {
  border-color: var(--litter-teal);
  box-shadow: 0 0 0 0.22rem rgba(22, 118, 108, 0.16);
}

.litter-unit-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(58px, 1fr));
  gap: 3px;
  padding: 3px;
  background: #e4edf2;
  border: 1px solid #c5d4dd;
  border-radius: 7px;
}

.litter-unit-button {
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  color: #405462;
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-weight: 800;
}

.litter-unit-button.is-active {
  color: #ffffff;
  background: var(--litter-teal);
}

.litter-unit-button:focus-visible {
  outline: 3px solid rgba(22, 118, 108, 0.28);
  outline-offset: 2px;
}

.litter-form-help {
  min-height: 2.8rem;
  padding: 0.65rem 0.75rem;
  color: #495f6c;
  background: #f4f8fa;
  border-left: 3px solid var(--litter-teal);
  border-radius: 0 6px 6px 0;
}

.litter-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.litter-form-actions .btn {
  min-height: 46px;
}

.litter-form-note {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding-top: 1rem;
  color: #5a6d79;
  border-top: 1px solid var(--litter-border);
}

.litter-result-card {
  min-height: 610px;
  color: #edf6fa;
  background: var(--litter-navy);
  border-color: var(--litter-navy);
}

.litter-result-card .section-label,
.litter-result-card .text-muted {
  color: #bed0db !important;
}

.litter-result-card h2,
.litter-result-card h3,
.litter-result-card h4,
.litter-result-card strong {
  color: #ffffff;
}

.litter-result-placeholder {
  display: grid;
  min-height: 540px;
  place-items: center;
  color: #deebf1;
  text-align: center;
}

.litter-result-placeholder-inner {
  max-width: 430px;
}

.litter-placeholder-icon {
  display: inline-flex;
  width: 4rem;
  height: 4rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #ffffff;
  background: #1e5c62;
  border: 1px solid #4c7b81;
  border-radius: 50%;
  font-size: 1.45rem;
}

.litter-result-center {
  margin: 0;
  color: #ffffff;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.12;
}

.litter-puppy-markers {
  display: flex;
  min-height: 34px;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.8rem 0 1rem;
}

.litter-puppy-marker {
  display: inline-flex;
  width: 1.85rem;
  height: 1.85rem;
  align-items: center;
  justify-content: center;
  color: #ffcf78;
  background: #244a60;
  border: 1px solid #456b7e;
  border-radius: 50%;
  font-size: 0.82rem;
}

.litter-range-box {
  padding: 0.85rem 1rem;
  background: #20495a;
  border: 1px solid #456c7d;
  border-radius: 7px;
}

.litter-range-label {
  display: block;
  margin-bottom: 0.2rem;
  color: #bfd5df;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.litter-range-box strong {
  display: block;
  font-size: 1.35rem;
}

.litter-result-context {
  padding: 0.8rem 0;
  color: #d4e3e9;
  border-bottom: 1px solid #345569;
}

.litter-breakdown {
  margin-top: 0.9rem;
  border-top: 1px solid #345569;
}

.litter-breakdown-row {
  display: grid;
  grid-template-columns: minmax(145px, 0.7fr) minmax(0, 1.3fr);
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #345569;
}

.litter-breakdown-row span:first-child {
  color: #bcd1db;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.litter-breakdown-row span:last-child {
  color: #ffffff;
}

.litter-brachy-note {
  padding: 0.75rem;
  margin: 0.85rem 0;
  color: #fff0c9;
  background: #59461e;
  border: 1px solid #80672b;
  border-radius: 7px;
}

.litter-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.litter-result-actions .btn {
  display: inline-flex;
  min-width: 104px;
  min-height: 44px;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  color: var(--litter-navy);
  background: #ffffff;
  border-color: #ffffff;
}

.litter-result-actions .btn:hover,
.litter-result-actions .btn:focus-visible {
  color: #ffffff;
  background: var(--litter-teal);
  border-color: #8bc5bd;
}

.litter-method-details {
  margin-top: 0.65rem;
  border-top: 1px solid #345569;
}

.litter-method-details summary {
  min-height: 46px;
  padding: 0.8rem 0;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
}

.litter-method-details p {
  color: #d2e1e8;
}

.litter-fact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--litter-border);
  border-radius: 8px;
}

.litter-fact-strip > div {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
}

.litter-fact-strip > div + div {
  border-left: 1px solid var(--litter-border);
}

.litter-fact-strip strong,
.litter-fact-strip p span {
  display: block;
}

.litter-fact-strip p span {
  margin-top: 0.15rem;
  color: #5d6e78;
  font-size: 0.88rem;
}

.litter-table-shell {
  overflow-x: auto;
  border: 1px solid var(--litter-border);
  border-radius: 8px;
}

.litter-table {
  min-width: 680px;
}

.litter-table thead th {
  color: #ffffff;
  background: var(--litter-navy);
  border-color: #2f5369;
}

.litter-table th,
.litter-table td {
  padding: 0.8rem 0.9rem;
  border-color: #d5e0e6;
}

.litter-table tbody tr:nth-child(even) > * {
  background: #f3f7f9;
}

.litter-factor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.litter-factor-item {
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--litter-border);
  border-radius: 8px;
}

.litter-factor-item h3 {
  margin: 0.8rem 0 0.45rem;
}

.litter-factor-item p {
  color: #536773;
}

.litter-explain-band {
  background: #f2f7f9;
  border-top: 1px solid #d7e1e7;
  border-bottom: 1px solid #d7e1e7;
}

.litter-imaging-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.litter-imaging-item {
  padding-left: 1rem;
  border-left: 4px solid var(--litter-teal);
}

.litter-imaging-item.is-counting {
  border-left-color: var(--litter-coral);
}

.litter-safety {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  padding: 1.35rem;
  color: #fff6e7;
  background: #614521;
  border: 1px solid #7c5c2d;
  border-radius: 8px;
}

.litter-safety h2,
.litter-safety h3 {
  color: #ffffff;
}

.litter-safety ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.litter-faq-section .accordion-item {
  overflow: hidden;
  border-color: var(--litter-border);
}

.litter-faq-section .accordion-button {
  color: var(--litter-text);
  font-weight: 800;
}

.litter-faq-section .accordion-button:not(.collapsed) {
  color: var(--litter-teal-dark);
  background: var(--litter-teal-soft);
}

.litter-related {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--litter-border);
}

.litter-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.litter-related-links a {
  display: inline-flex;
  min-height: 44px;
  gap: 0.45rem;
  align-items: center;
  padding: 0.6rem 0.8rem;
  color: var(--litter-teal-dark);
  background: #ffffff;
  border: 1px solid #abc9c5;
  border-radius: 7px;
  font-weight: 800;
  text-decoration: none;
}

.litter-related-links a:hover,
.litter-related-links a:focus-visible {
  color: #ffffff;
  background: var(--litter-teal);
}

@media (max-width: 991.98px) {
  .litter-intro-grid,
  .litter-tool-grid,
  .litter-safety {
    grid-template-columns: 1fr;
  }

  .litter-tool-grid {
    align-items: start;
  }

  .litter-result-card {
    min-height: 0;
  }

  .litter-result-placeholder {
    min-height: 330px;
  }

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

  .litter-related {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .litter-intro-grid {
    gap: 1.25rem;
  }

  .litter-fact-strip,
  .litter-factor-grid,
  .litter-imaging-grid {
    grid-template-columns: 1fr;
  }

  .litter-fact-strip > div + div {
    border-top: 1px solid var(--litter-border);
    border-left: 0;
  }

  .litter-breakdown-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .litter-result-center {
    font-size: 2rem;
  }
}

@media (max-width: 430px) {
  .litter-page h1 {
    font-size: 2rem;
  }

  .litter-form-actions .btn,
  .litter-result-actions .btn {
    width: 100%;
  }

  .litter-unit-switch {
    width: 100%;
  }
}

@media print {
  .litter-page .site-navbar,
  .litter-page .offcanvas,
  .litter-page footer,
  .litter-page .breadcrumb,
  .litter-page .litter-form-card,
  .litter-page .litter-result-actions,
  .litter-page .litter-related,
  .litter-page .litter-faq-section {
    display: none !important;
  }

  .litter-page .litter-tool-grid {
    display: block;
  }

  .litter-page .litter-result-card {
    min-height: 0;
    color: #000000;
    background: #ffffff;
    border: 1px solid #8b99a2;
  }

  .litter-page .litter-result-card *,
  .litter-page .litter-result-card h2,
  .litter-page .litter-result-card strong {
    color: #000000 !important;
  }
}
