.good-days-hero {
  padding: 34px 0 48px;
  background: var(--green);
  color: #fff;
}

.good-days-hero__inner {
  max-width: 900px;
}

.good-days-breadcrumbs {
  margin: 0 0 34px;
  color: #d8e5de;
}

.good-days-breadcrumbs a,
.good-days-breadcrumbs span[aria-current="page"] {
  color: inherit;
}

.good-days-hero .eyebrow {
  color: #f3cf91;
}

.good-days-hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 650;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.good-days-hero__inner > p:last-child {
  max-width: 680px;
  margin: 18px 0 0;
  color: #e1ebe5;
  font-size: 17px;
}

.good-days-tool {
  padding-top: 44px;
}

.purpose-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin-bottom: 24px;
  padding: 4px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  scrollbar-width: thin;
}

.purpose-tabs a {
  flex: 1 0 auto;
  min-height: 42px;
  padding: 9px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.purpose-tabs a:hover {
  color: var(--red-dark);
}

.purpose-tabs a[aria-current="page"] {
  background: var(--surface);
  color: var(--red-dark);
  box-shadow: 0 1px 4px rgba(33, 36, 31, 0.1);
}

.good-days-filter {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(210px, 1fr) auto;
  align-items: end;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.good-days-filter > div {
  display: grid;
  gap: 6px;
}

.good-days-filter label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.good-days-filter input {
  width: 100%;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.good-days-filter input:focus {
  border-color: var(--green);
  outline: 2px solid var(--green-soft);
  outline-offset: 1px;
}

.good-days-filter .button {
  min-height: 44px;
  white-space: nowrap;
}

.good-days-month-nav {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 16px;
  max-width: 360px;
  margin: 36px auto 0;
  text-align: center;
}

.good-days-month-nav .icon-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.good-days-month-nav div {
  display: grid;
}

.good-days-month-nav span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.good-days-month-nav strong {
  font-family: var(--font-display);
  font-size: 24px;
}

.good-days-results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin: 42px 0 20px;
}

.good-days-results-heading h2,
.good-days-method h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 650;
  line-height: 1.2;
}

.good-days-results-heading > p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.good-day-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
}

.good-day-date {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 190px;
  padding: 18px 10px;
  background: var(--green-soft);
  color: var(--green);
  text-align: center;
}

.good-day-date span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.good-day-date strong {
  margin: 5px 0;
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1;
}

.good-day-date small {
  color: var(--muted);
  font-size: 12px;
}

.good-day-content {
  min-width: 0;
  padding: 18px;
}

.good-day-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.good-day-status span {
  padding: 3px 7px;
  border-radius: 3px;
  background: var(--red-soft);
  color: var(--red-dark);
}

.good-day-content h3 {
  margin: 10px 0 14px;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.good-day-content dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.good-day-content dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.good-day-content dt {
  color: var(--muted);
}

.good-day-content dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.good-days-method {
  background: var(--surface-soft);
}

.good-days-method__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 70px;
}

.good-days-method__grid > div > p:last-child {
  color: var(--muted);
}

.good-days-method ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: method;
}

.good-days-method li {
  position: relative;
  min-height: 94px;
  padding: 14px 0 14px 42px;
  border-top: 1px solid var(--line);
  counter-increment: method;
}

.good-days-method li::before {
  content: counter(method, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 800;
}

.good-days-method li strong,
.good-days-method li span {
  display: block;
}

.good-days-method li span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.good-days-notice {
  padding: 22px 0;
  background: var(--green);
  color: #fff;
}

.good-days-notice .container {
  display: flex;
  align-items: baseline;
  gap: 24px;
}

.good-days-notice strong {
  flex: 0 0 auto;
}

.good-days-notice p {
  margin: 0;
  color: #dfeae4;
  font-size: 13px;
}

.good-days-entry {
  padding-top: 56px;
  background: var(--surface-soft);
}

.good-days-entry__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.good-days-entry__grid a {
  position: relative;
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 170px;
  padding: 20px 42px 20px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
}

.good-days-entry__grid a:hover {
  background: var(--green-soft);
}

.good-days-entry__grid strong {
  font-family: var(--font-display);
  font-size: 19px;
}

.good-days-entry__grid span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.good-days-entry__grid svg {
  position: absolute;
  top: 21px;
  right: 17px;
  color: var(--red);
}

@media (max-width: 900px) {
  .good-days-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .good-days-hero {
    padding: 24px 0 36px;
  }

  .good-days-breadcrumbs {
    margin-bottom: 24px;
  }

  .good-days-hero__inner > p:last-child {
    font-size: 15px;
  }

  .good-days-filter {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .good-days-results-heading,
  .good-days-notice .container {
    display: grid;
    align-items: start;
    gap: 10px;
  }

  .good-days-method__grid,
  .good-days-method ol {
    grid-template-columns: 1fr;
  }

  .good-days-method__grid {
    gap: 30px;
  }

  .good-days-entry__grid {
    grid-template-columns: 1fr;
  }

  .good-days-entry__grid a {
    min-height: 126px;
  }
}

@media (max-width: 430px) {
  .good-day-item {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .good-day-date {
    min-height: 184px;
  }

  .good-day-date strong {
    font-size: 42px;
  }

  .good-day-content {
    padding: 15px;
  }

  .good-day-status {
    align-items: flex-start;
    flex-direction: column;
  }
}
