.resource-hub {
  --resource-border: #d6dfd3;
  --resource-green: #123c32;
  --resource-muted: #435c50;
  --resource-padding: clamp(17px, 2.8vw, 34px);
  --resource-serif: "Between Visits Serif", Georgia, serif;
  display: grid;
  gap: 20px;
  font-family: "Between Visits Sans", "Segoe UI", system-ui, sans-serif;
}

.resource-grid {
  display: grid;
  gap: 20px;
}

.resource-grid--guides {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: start;
}

.resource-grid--guides:has(#search-output[hidden]) {
  align-items: stretch;
}

.resource-grid--clinic {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: start;
}

.resource-card {
  min-width: 0;
  border: 1px solid var(--resource-border);
  border-radius: 17px;
  background: #fffefa;
  box-shadow: 0 8px 24px #16382e0a;
}

.resource-card[id],
.resource-detail[id] {
  scroll-margin-top: 20px;
}

.resource-card h2 {
  font: 400 clamp(1.85rem, 2.55vw, 2.48rem)/1.04 var(--resource-serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}

.resource-card p {
  color: var(--resource-muted);
}

.resource-search-panel {
  padding: var(--resource-padding);
  border-radius: 16px 16px 0 0;
  background:
    radial-gradient(ellipse at 90% -20%, #377560 0%, transparent 68%),
    var(--resource-green);
  color: #fffef7;
}

.resource-search-panel h2 {
  font-size: clamp(2.35rem, 4.2vw, 3.6rem);
}

.resource-search-panel p {
  margin-top: 8px;
  color: #e5f0e5;
}

.resource-search {
  margin-top: 20px;
}

.resource-search-row {
  display: flex;
  gap: 8px;
}

.resource-search input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fffefa;
  color: var(--ink);
}

.resource-search input::placeholder {
  color: #50675a;
  opacity: 1;
}

.resource-hub .btn {
  border-radius: 8px;
}

.resource-hub .resource-search-submit {
  padding-inline: clamp(13px, 2.6vw, 26px);
  background: #dbeea7;
  color: #16382d;
}

.resource-hub .resource-search-submit:hover {
  background: #e8f5c6;
}

.resource-search-panel :focus-visible {
  outline-color: #e4f3b9;
}

#search-help {
  margin-top: 10px;
  font-size: .875rem;
}

.resource-library-body,
.resource-follow-up,
.resource-service {
  padding: var(--resource-padding);
}

.resource-subheading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 15px;
}

.resource-subheading h3 {
  font: 400 1.55rem/1.14 var(--resource-serif);
}

.resource-subheading a,
.resource-text-button,
.resource-result-actions a,
.resource-ocean-link a,
.resource-fee-note a,
.resource-fee-pdf,
.resource-detail a {
  color: #205645;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: .22em;
}

.resource-subheading a,
.resource-text-button,
.resource-result-actions a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  font-size: .94rem;
}

.resource-text-button {
  padding: 0;
  border: 0;
  background: transparent;
}

.resource-featured-list,
.resource-steps,
.resource-result-list {
  display: grid;
  margin: 12px 0 0;
  padding: 0;
  gap: 9px;
  list-style: none;
}

.resource-featured-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-tile {
  --tile-bg: #f1f5ef;
  --tile-hover: #e6f1e3;
  --tile-border: #d4e0d2;
  display: block;
  padding: 13px 15px;
  border: 1px solid var(--tile-border);
  border-radius: 10px;
  background: var(--tile-bg);
  color: #153d32;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.resource-tile strong {
  display: block;
  font-size: 1.04rem;
  line-height: 1.2;
}

.resource-tile-description,
.resource-featured-tile span,
.resource-result-category {
  display: block;
  margin-top: 4px;
  color: var(--resource-muted);
  font-size: .925rem;
  line-height: 1.36;
}

.resource-tile:focus-visible {
  border-color: #5e846c;
  background: var(--tile-hover);
}

@media (hover: hover) and (pointer: fine) {
  .resource-tile:hover {
    transform: translateY(-3px);
    border-color: #8eac95;
    background: var(--tile-hover);
    box-shadow: 0 9px 18px #173c3321;
  }

  .resource-tile:hover strong {
    text-decoration: underline;
    text-underline-offset: .17em;
  }
}

.resource-featured-tile {
  height: 100%;
}

.resource-featured-tile svg {
  display: block;
  width: 38px;
  height: 38px;
  margin-bottom: 9px;
}

.resource-featured-tile--screening {
  --tile-bg: #faf1e4;
  --tile-hover: #f7ead6;
  --tile-border: #e8dbc6;
}

.resource-featured-tile--diabetes {
  --tile-bg: #ecf4f1;
  --tile-hover: #def0e9;
  --tile-border: #d2e3df;
}

.resource-follow-up {
  background: linear-gradient(155deg, #eff5ea, #fffefa 76%);
}

.resource-steps {
  margin-top: 18px;
}

.resource-step {
  --tile-bg: #fffefa;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.resource-step-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e5efdb;
  color: var(--resource-green);
  font-size: .94rem;
  font-weight: 750;
}

.resource-ocean-link {
  margin-top: 16px;
  font-size: .94rem;
}

.resource-result-summary {
  margin-top: 3px;
  font-size: .94rem;
}

.resource-result-category {
  margin-bottom: 4px;
  font-size: .85rem;
}

.resource-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 15px;
  margin-top: 12px;
}

.resource-service > p {
  margin-top: 10px;
}

.resource-service .resource-detail {
  padding: 0;
  border-color: var(--resource-border);
}

.resource-detail summary {
  min-height: 46px;
  padding: 11px 0;
  color: var(--resource-green);
}

.resource-detail p {
  padding: 0 0 12px;
}

.resource-fee-note {
  font-size: .94rem;
}

.resource-fees {
  border-block-start: 3px solid #3b725e;
}

.resource-fee-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 12px;
  margin-block: 18px 14px;
}

.resource-fee-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(13px, 2vw, 19px);
  border: 1px solid #cadbd1;
  border-radius: 12px;
  background: #f0f6ef;
}

.resource-fee-option--annual {
  border-color: #e7ddc8;
  background: #faf5e9;
}

.resource-fee-option h3 {
  margin: 0;
  color: var(--resource-green);
  font-size: 1.125rem;
  line-height: 1.2;
}

.resource-fee-option p {
  margin: 0;
}

.resource-fee-option .btn {
  min-height: 44px;
  margin-block-start: auto;
}

.resource-plan-prices {
  width: 100%;
  margin: 0;
  color: var(--resource-green);
}

.resource-plan-prices > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 8px;
  padding-block: 5px;
  border-block-start: 1px solid #e7ddc8;
}

.resource-plan-prices dt {
  font-weight: 750;
}

.resource-plan-prices dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.resource-plan-note {
  font-size: .94rem;
}

.resource-fee-schedule {
  margin-block-start: 22px;
  padding-block-start: 20px;
  border-block-start: 1px solid var(--resource-border);
}

.resource-fee-schedule h3 {
  margin: 0;
  font: 400 clamp(1.5rem, 2.35vw, 1.9rem)/1.1 var(--resource-serif);
}

.resource-fee-schedule > p {
  margin-block: 7px 0;
}

.resource-fee-pdf {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-block: 3px 4px;
}

.resource-fee-schedule .resource-detail {
  margin-block: 0;
  border: 0;
  border-block-start: 1px solid var(--resource-border);
  border-radius: 0;
}

.resource-fee-schedule .fee-table {
  table-layout: fixed;
  margin-block: 3px 12px;
  font-size: 1rem;
}

.resource-fee-schedule .fee-table :is(th, td) {
  padding: 8px 10px;
  vertical-align: top;
  overflow-wrap: break-word;
}

.resource-fee-schedule .fee-table :is(th, td):last-child {
  text-align: end;
  font-variant-numeric: tabular-nums;
}

.resource-fee-schedule .fee-table th[scope="col"]:last-child {
  width: 32%;
}

.resource-fee-schedule .fee-table--comparison :is(th, td):nth-child(2) {
  text-align: end;
  font-variant-numeric: tabular-nums;
}

.resource-fee-schedule .fee-table--comparison th[scope="col"]:nth-child(2) {
  width: 22%;
}

.resource-fee-schedule .fee-table--comparison th[scope="col"]:last-child {
  width: 26%;
}

.resource-fee-description {
  display: block;
  margin-block-start: 3px;
  color: var(--resource-muted);
  font-size: .94rem;
  font-weight: 400;
}

.resource-fee-schedule h4 {
  margin-block: 12px 6px;
  color: var(--resource-green);
  font-size: 1rem;
}

.resource-call {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2px 12px;
  margin-top: 16px;
}

.resource-call span {
  white-space: nowrap;
  font-weight: 750;
}

@media (max-width: 800px) {
  .resource-grid--guides,
  .resource-grid--clinic {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 540px) {
  .resource-fee-schedule .fee-table :is(th, td) {
    padding-inline: 6px;
  }

  .resource-fee-schedule .fee-table th[scope="col"]:last-child {
    width: 39%;
  }

  .resource-fee-schedule .fee-table--comparison th[scope="col"]:nth-child(2) {
    width: 25%;
  }

  .resource-fee-schedule .fee-table--comparison th[scope="col"]:last-child {
    width: 28%;
  }

  .resource-featured-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .resource-featured-tile {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 3px 11px;
    align-items: center;
  }

  .resource-featured-tile svg {
    grid-row: span 2;
    margin: 0;
  }

  .resource-featured-tile span {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .resource-tile {
    transition: none;
  }

  .resource-tile:hover {
    transform: none;
  }
}
