/* Resources shares the existing Meddore typography and colour tokens. */
.resources-hub {
  padding: 110px 0 64px;
}
.resources-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  align-items: center;
  gap: 64px;
  padding: 36px 0 64px;
}
.resources-hero h1 {
  margin: 20px 0 24px;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.resources-hero h1 > span { color: var(--accent); }
.resources-hero__intro {
  max-width: 60ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}
.resource-label {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
}
.resource-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.resource-topics a {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
}
.resource-topics a:hover { background: #fff; border-color: var(--accent); }
.resources-note {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}
.resources-note h2 {
  margin: 14px 0 24px;
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.resources-note ul { margin: 0 0 18px; padding: 0; list-style: none; }
.resources-note li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
}
.resources-note li > span { color: var(--accent); font-size: 11px; font-weight: 700; }
.resources-note > a,
.resources-section__heading > a,
.resources-project > a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.resources-section {
  padding: 42px 0 48px;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.resources-section__heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 16px 30px;
  margin-bottom: 26px;
}
.resources-section__heading h2 {
  margin: 9px 0 0;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.resource-card,
.resources-project {
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.resource-card { display: flex; flex-direction: column; }
.resource-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.resource-card__number { color: var(--muted); font-size: 12px; }
.resource-card h3,
.resources-project h3 {
  max-width: 27ch;
  margin: 23px 0 16px;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.resource-card p,
.resources-project p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.resource-card .resource-card__detail { margin: 15px 0 24px; font-size: 13px; }
.resource-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.resource-card__link:hover,
.resources-note > a:hover,
.resources-project > a:hover,
.resources-section__heading > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.resources-project { background: var(--accent-soft); }
.resources-project > a { margin-top: 20px; }
.resources-enquiry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px 40px;
  margin-top: 24px;
  padding: 34px;
  border-radius: 18px;
  background: var(--accent-soft);
}
.resources-enquiry h2 { margin: 10px 0 12px; font-size: 28px; line-height: 1.25; }
.resources-enquiry p { max-width: 62ch; color: var(--muted); font-size: 14px; line-height: 1.8; }
.resources-enquiry .btn { flex-shrink: 0; }
.resource-models { padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.resource-models h2 { margin-top: 12px; }
.resource-models ul { display: grid; gap: 10px; padding: 0; list-style: none; }
.resource-models li { margin: 0; }
.resource-models li > a { display: inline-block; padding: 8px 0; min-height: 44px; }
.resource-back { display: inline-block; padding: 10px 0; margin-top: 16px; font-size: 14px; font-weight: 600; }
.resource-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.resources-hub a:focus-visible,
.resource-models a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
/* The additional navigation item uses the menu on smaller tablets as well. */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-toggle { display: grid; }
  .resources-hero { gap: 30px; }
  .resources-note { padding: 26px; }
}
@media (max-width: 760px) {
  .resources-hub { padding-top: 88px; }
  .resources-hero { grid-template-columns: 1fr; padding: 18px 0 42px; gap: 30px; }
  .resources-hero h1 { margin-top: 18px; letter-spacing: -0.035em; }
  .resources-hero__intro { font-size: 16px; }
  .resources-grid { grid-template-columns: 1fr; gap: 18px; }
  .resources-section { padding: 30px 0 34px; }
  .resource-card,
  .resources-project { padding: 24px; }
  .resources-enquiry { flex-direction: column; align-items: stretch; padding: 24px; }
  .resources-enquiry h2 { font-size: 25px; }
  .resources-enquiry .btn { justify-content: center; }
  .resource-models { padding: 20px; }
}
