/*
 * SveikatosRumai.lt — front page (portal layout).
 * Loaded only on the front page (inc/home.php). Uses the colour tokens already
 * present in theme.css: brand red #ff4148, accessible red #d92d35, ink #172033.
 */

@font-face {
  font-family: "Geist";
  src: url("../home/fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  src: url("../home/fonts/geist-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.srh {
  --red: #ff4148;
  --red-ink: #d92d35;
  --red-dark: #b4232a;
  --red-tint: #fff1f1;
  --ink: #172033;
  --ink-2: #344054;
  --muted: #667085;
  --line: #e3e8ef;
  --soft: #f5f7fa;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-hover: 0 8px 24px rgba(16, 24, 40, .08);

  display: block;
  background: #fff;
  color: var(--ink);
  font-family: "Geist", -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.srh *,
.srh *::before,
.srh *::after {
  box-sizing: border-box;
}

.srh h1,
.srh h2,
.srh h3,
.srh p {
  margin: 0;
}

.srh ul,
.srh ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.srh a {
  color: inherit;
  text-decoration: none;
}

.srh .srh-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.srh .sr-i {
  width: 20px;
  height: 20px;
  flex: none;
}

.srh .srh-chev {
  width: 14px;
  height: 14px;
  flex: none;
}

.srh a:focus-visible,
.srh button:focus-visible,
.srh select:focus-visible,
.srh input:focus-visible {
  outline: 2px solid var(--red-ink);
  outline-offset: 2px;
}

.srh .srh-wrap {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- Shared ---------- */

.srh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: var(--red-ink);
  color: #fff !important;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease-out;
}

.srh-btn:hover {
  background: var(--red-dark);
}

.srh-section {
  padding: 56px 0;
}

.srh-section-tight {
  padding: 32px 0;
}

.srh-tint {
  background: var(--soft);
}

.srh-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.srh-head h2 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.01em;
}

.srh-head p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}

.srh-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--red-ink) !important;
  white-space: nowrap;
}

.srh-more:hover {
  color: var(--red-dark) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.srh .srh-star {
  width: 16px;
  height: 16px;
  color: #f5a524;
}

.srh-meta-line {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
}

.srh .srh-meta-line .sr-i {
  width: 16px;
  height: 16px;
}

/* ---------- Hero ---------- */

.srh-hero {
  background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
  border-bottom: 1px solid var(--line);
}

.srh-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 56px;
  align-items: center;
  padding: 48px 0 40px;
}

.srh-hero h1 {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.02em;
}

.srh-hero .srh-lede {
  max-width: 620px;
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
}

.srh-finder {
  margin-top: 28px;
}

.srh-mode {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.srh-tabs {
  position: relative;
  display: flex;
  gap: 4px;
}

.srh-tabs label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 10px 10px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color .15s ease-out, background-color .15s ease-out;
}

.srh-tabs label:hover {
  color: var(--ink);
}

.srh-mode:checked + label {
  background: #fff;
  color: var(--red-ink);
  box-shadow: 0 -1px 0 var(--line), 1px 0 0 var(--line), -1px 0 0 var(--line);
}

.srh-mode:focus-visible + label {
  outline: 2px solid var(--red-ink);
  outline-offset: -2px;
}

.srh-panel {
  display: none;
  align-items: stretch;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 24, 40, .08);
}

/* Doctor search is the default; :has() switches panels without JavaScript. */
.srh-panel-doctor,
.srh-finder:has(#srh-mode-clinic:checked) .srh-panel-clinic,
.srh-finder:has(#srh-mode-article:checked) .srh-panel-article {
  display: flex;
}

.srh-finder:has(#srh-mode-clinic:checked) .srh-panel-doctor,
.srh-finder:has(#srh-mode-article:checked) .srh-panel-doctor {
  display: none;
}

.srh-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 200px;
  min-width: 0;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  transition: border-color .15s ease-out;
}

.srh-field-grow {
  flex: 1 1 260px;
}

.srh-field:focus-within {
  border-color: var(--ink-2);
}

.srh .srh-field input,
.srh .srh-field select {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
  background-color: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  -webkit-appearance: none;
  appearance: none;
}

.srh .srh-field select {
  padding-right: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23667085' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / 12px 8px no-repeat;
  cursor: pointer;
}

.srh-field input::placeholder {
  color: #8a94a6;
}

.srh-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
}

.srh-quick span {
  margin-right: 2px;
  color: var(--muted);
}

.srh-quick a,
.srh-chips a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  color: var(--ink-2);
  transition: border-color .15s ease-out, color .15s ease-out;
}

.srh-quick a:hover,
.srh-chips a:hover {
  border-color: var(--red-ink);
  color: var(--red-ink);
}

.srh-hero-figure {
  margin: 0;
}

.srh-hero-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  border-radius: 16px;
}

.srh-stats {
  border-top: 1px solid var(--line);
  background: #fff;
}

.srh-stats ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.srh-stats li + li {
  border-left: 1px solid var(--line);
}

.srh-stats a {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 18px 20px;
}

.srh-stats li:first-child a {
  padding-left: 0;
}

.srh-stats a:hover b {
  color: var(--red-ink);
}

.srh .srh-stats .sr-i {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 10px;
  background: var(--red-tint);
  color: var(--red-ink);
}

.srh-stats b {
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.srh-stats span {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Specialties ---------- */

.srh-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.srh-spec-grid a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  height: 100%;
  min-height: 80px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: border-color .15s ease-out, box-shadow .15s ease-out;
}

.srh-spec-grid a:hover {
  border-color: #f3b4b7;
  box-shadow: var(--shadow-hover);
}

.srh-spec-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--red-tint);
  color: var(--ink);
}

.srh .srh-spec-icon .sr-i {
  width: 28px;
  height: 28px;
}

.srh-spec-icon .accent {
  stroke: var(--red);
}

.srh-spec-name {
  align-self: end;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.srh-spec-grid a:hover .srh-spec-name {
  color: var(--red-ink);
}

.srh-spec-count {
  align-self: start;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.srh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

/* ---------- Doctors ---------- */

.srh-doctor-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.srh-doctor a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: box-shadow .15s ease-out, border-color .15s ease-out;
}

.srh-doctor a:hover {
  border-color: #f3b4b7;
  box-shadow: var(--shadow-hover);
}

.srh-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--soft);
}

.srh-doctor-body {
  display: grid;
  gap: 2px;
}

.srh-doctor h3 {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
}

.srh-doctor a:hover h3 {
  color: var(--red-ink);
}

.srh-doctor-spec {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.srh-rating {
  font-size: 14px;
  color: var(--ink-2);
}

.srh-rating > span[aria-hidden] {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.srh-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--red-ink);
}

/* ---------- Articles ---------- */

.srh-news {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
}

.srh-news-media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft);
}

.srh-news-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease-out;
}

.srh-news article:hover .srh-news-media img {
  transform: scale(1.03);
}

.srh-news-lead .srh-news-media {
  aspect-ratio: 16 / 9;
}

.srh-news-lead .srh-news-body {
  padding-top: 18px;
}

.srh-tag {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red-ink) !important;
}

.srh-tag:hover {
  text-decoration: underline !important;
}

.srh-news h3 a:hover {
  color: var(--red-ink);
}

.srh-news-lead h3 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
}

.srh-news-lead p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}

.srh-news .srh-date {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.srh-news-list {
  display: grid;
  align-content: start;
}

.srh-news-item {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.srh-news-item:first-child {
  padding-top: 0;
}

.srh-news-item:last-child {
  border-bottom: 0;
}

.srh-news-item .srh-news-media {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
}

.srh-news-item h3 {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
}

.srh-news-item .srh-tag {
  margin-bottom: 4px;
}

.srh-news-item .srh-date {
  margin-top: 6px;
}

/* ---------- Topics ---------- */

.srh-topics {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--soft);
}

.srh-topics .srh-head {
  margin-bottom: 12px;
}

.srh-topics .srh-head h2 {
  font-size: 22px;
}

.srh-topics ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 32px;
}

.srh-topics a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
}

.srh-topics a .srh-chev {
  color: var(--red-ink);
}

.srh-topics a span {
  flex: 1;
}

.srh-topics small {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.srh-topics a:hover span {
  color: var(--red-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Clinics ---------- */

.srh-clinics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.srh-clinic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.srh-clinic a {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: box-shadow .15s ease-out, border-color .15s ease-out;
}

.srh-clinic a:hover {
  border-color: #f3b4b7;
  box-shadow: var(--shadow-hover);
}

.srh-clinic a > .srh-chev {
  color: var(--muted);
}

.srh-clinic-logo {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 10px;
  object-fit: cover;
}

.srh-clinic-logo-empty {
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--muted);
}

.srh .srh-clinic-logo-empty .sr-i {
  width: 28px;
  height: 28px;
}

.srh-clinic-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.srh-clinic h3 {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.srh-clinic a:hover h3 {
  color: var(--red-ink);
}

.srh-clinic-type {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.srh-clinic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 2px;
}

.srh-city-box {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.srh-city-box h3 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
}

.srh-city-box ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
}

.srh-city-box a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.srh-city-box a:hover {
  color: var(--red-ink);
}

.srh-city-box small {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Tools ---------- */

.srh-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.srh-tool-grid a {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: box-shadow .15s ease-out, border-color .15s ease-out;
}

.srh-tool-grid a:hover {
  border-color: #f3b4b7;
  box-shadow: var(--shadow-hover);
}

.srh-tool-grid a > .srh-chev {
  color: var(--muted);
}

.srh-tool-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--red-ink);
  color: #fff;
}

.srh .srh-tool-icon .sr-i {
  width: 30px;
  height: 30px;
}

.srh-tool-body {
  display: grid;
  gap: 2px;
}

.srh-tool-body b {
  font-size: 16px;
  font-weight: 600;
}

.srh-tool-grid a:hover b {
  color: var(--red-ink);
}

.srh-tool-body span {
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

/* ---------- Review CTA ---------- */

.srh-cta {
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 16px;
  background: var(--red-tint);
}

.srh-cta-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}

.srh-cta-body {
  padding: 40px 44px;
}

.srh-cta-body h2 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.srh-cta-body > p {
  max-width: 600px;
  margin-top: 10px;
  color: var(--ink-2);
}

.srh .srh-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
  margin-top: 24px;
  counter-reset: srh-step;
}

.srh-steps li {
  counter-increment: srh-step;
  position: relative;
  padding-left: 40px;
}

.srh-steps li::before {
  content: counter(srh-step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--red-ink);
  font-size: 14px;
  font-weight: 700;
}

.srh-steps h3 {
  font-size: 16px;
  line-height: 28px;
  font-weight: 600;
}

.srh-steps p {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}

.srh-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 28px;
}

/* ---------- About ---------- */

.srh-about {
  border-top: 1px solid var(--line);
}

.srh-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: start;
}

.srh-about h2 {
  font-size: 22px;
  font-weight: 700;
}

.srh-about p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}

.srh-about ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.srh-about li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}

.srh-about li a .sr-i {
  color: var(--red-ink);
}

.srh-about li a:hover {
  color: var(--red-ink);
  text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .srh-hero-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
  }

  .srh-spec-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .srh-doctor-grid {
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .srh-doctor {
    scroll-snap-align: start;
  }

  .srh-clinics {
    grid-template-columns: 1fr;
  }

  .srh-topics ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .srh-cta {
    grid-template-columns: 340px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .srh-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 32px;
  }

  .srh-hero-figure {
    display: none;
  }

  .srh-panel {
    flex-wrap: wrap;
  }

  .srh-field,
  .srh-field-grow,
  .srh-panel .srh-btn {
    flex: 1 1 100%;
  }

  .srh-stats ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .srh-stats li:nth-child(3) {
    border-left: 0;
  }

  .srh-stats li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .srh-stats li:nth-child(3) a {
    padding-left: 0;
  }

  .srh-news,
  .srh-about-grid,
  .srh-cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .srh-cta-img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .srh-tool-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .srh .srh-wrap {
    width: calc(100% - 32px);
  }

  .srh-section {
    padding: 40px 0;
  }

  .srh-section-tight {
    padding: 24px 0;
  }

  .srh-hero h1 {
    font-size: 32px;
  }

  .srh-hero .srh-lede {
    font-size: 16px;
  }

  .srh-tabs label {
    padding: 0 10px;
    font-size: 14px;
  }

  .srh .srh-tabs label .sr-i {
    display: none;
  }

  .srh-quick {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: calc(100% + 32px);
    margin-left: -16px;
    padding: 0 16px 4px;
    scrollbar-width: none;
  }

  .srh-quick a,
  .srh-quick span {
    flex: none;
    white-space: nowrap;
  }

  .srh-stats a {
    grid-template-columns: 1fr;
    padding: 14px 12px;
  }

  .srh .srh-stats .sr-i {
    display: none;
  }

  .srh-stats b {
    font-size: 20px;
  }

  .srh-stats span {
    font-size: 13px;
  }

  .srh-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .srh-head h2 {
    font-size: 23px;
  }

  .srh-spec-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .srh-spec-grid a {
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: 64px;
    padding: 12px 14px;
  }

  .srh-spec-icon {
    width: 40px;
    height: 40px;
  }

  .srh .srh-spec-icon .sr-i {
    width: 24px;
    height: 24px;
  }

  .srh-spec-name {
    font-size: 15px;
  }

  .srh .srh-doctor-grid {
    grid-template-columns: repeat(5, 75%);
    width: calc(100% + 32px);
    margin-left: -16px;
    padding-inline: 16px;
    scroll-padding-inline: 16px;
  }

  .srh-news-lead h3 {
    font-size: 21px;
  }

  .srh-news-item {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
  }

  .srh-news-item h3 {
    font-size: 16px;
  }

  .srh-topics {
    padding: 20px 16px;
  }

  .srh-topics ul {
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
  }

  .srh-clinic-list {
    grid-template-columns: 1fr;
  }

  .srh-cta-body {
    padding: 28px 20px;
  }

  .srh-cta-body h2 {
    font-size: 23px;
  }

  .srh .srh-steps {
    grid-template-columns: 1fr;
  }

  .srh-actions .srh-btn {
    width: 100%;
  }

  .srh-about ul {
    grid-template-columns: 1fr;
  }
}

/* Contrast on light-grey surfaces (AA). */
.srh-hero,
.srh-tint,
.srh-topics,
.srh-cta {
  --red-ink: #b4232a;
}

.srh .srh-star {
  color: #d97706;
}
