/*
 * SveikatosRumai.lt — sitewide design system: fonts, tokens, header, footer.
 * Replaces assets/css/header-footer.css (kept on disk for rollback).
 */

@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;
}

:root {
  --sr-red: #ff4148;
  --sr-red-ink: #d92d35;
  --sr-red-dark: #b4232a;
  --sr-red-tint: #fff1f1;
  --sr-ink: #172033;
  --sr-ink-2: #344054;
  --sr-muted: #667085;
  --sr-line: #e3e8ef;
  --sr-soft: #f5f7fa;
  --sr-font: "Geist", -apple-system, "Segoe UI", system-ui, sans-serif;
}

body {
  font-family: var(--sr-font);
}

.srx-header,
.srx-footer {
  font-family: var(--sr-font);
  color: var(--sr-ink);
}

.srx-header *,
.srx-footer * {
  box-sizing: border-box;
}

.srx-header ul,
.srx-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.srx-header a,
.srx-footer a {
  color: inherit;
  text-decoration: none;
}

.srx-header p,
.srx-footer p,
.srx-footer h2 {
  margin: 0;
}

.srx-wrap {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.srx-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.srx-skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--sr-ink);
  color: #fff;
  font: 600 14px/1 var(--sr-font);
  text-decoration: none;
}

.srx-skip:focus {
  top: 12px;
}

.srx-header a:focus-visible,
.srx-header button:focus-visible,
.srx-header input:focus-visible,
.srx-footer a:focus-visible {
  outline: 2px solid var(--sr-red-ink);
  outline-offset: 2px;
}

.srx-header .sr-i,
.srx-footer .sr-i {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------- Header ---------- */

.srx-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  box-shadow: 0 1px 0 var(--sr-line);
}

.admin-bar .srx-header {
  top: 32px;
}

.srx-util {
  background: var(--sr-soft);
  border-bottom: 1px solid var(--sr-line);
  font-size: 13px;
  color: var(--sr-muted);
}

.srx-util-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 34px;
}

.srx-util nav {
  display: flex;
  gap: 20px;
}

.srx-util a {
  color: var(--sr-ink-2);
}

.srx-util a:hover {
  color: var(--sr-red-ink);
}

.srx-bar {
  position: relative;
}

.srx-bar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.srx-brand {
  flex: none;
}

.srx-brand img {
  display: block;
  width: 168px;
  height: auto;
}

.srx-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.srx-item {
  position: static;
  display: flex;
  height: 100%;
}

.srx-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--sr-ink);
  font: 600 15px/1 var(--sr-font);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color .15s ease-out, box-shadow .15s ease-out;
}

.srx-link:hover,
.srx-item.is-mega-open > .srx-link {
  color: var(--sr-red-ink);
  box-shadow: inset 0 -2px 0 var(--sr-red-ink);
}

.srx-caret {
  width: 11px;
  height: 8px;
  transition: transform .15s ease-out;
}

.srx-item.is-mega-open .srx-caret {
  transform: rotate(180deg);
}

.srx-mobile-only {
  display: none;
}

.srx-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: none;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
  padding: 24px;
  border: 1px solid var(--sr-line);
  border-radius: 0 0 14px 14px;
  background: #fff;
  box-shadow: 0 24px 48px rgba(16, 24, 40, .12);
}

.srx-item.is-mega-open > .srx-mega {
  display: grid;
}

@media (hover: hover) and (min-width: 901px) {
  .srx-item:hover > .srx-mega,
  .srx-item:focus-within > .srx-mega {
    display: grid;
  }
}

.srx-mega-title {
  margin-bottom: 10px !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--sr-muted);
}

.srx-mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 16px;
}

.srx-mega-grid-3,
.srx-mega-grid-plain {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.srx-mega a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.3;
  color: var(--sr-ink);
  transition: background-color .15s ease-out, color .15s ease-out;
}

.srx-mega a:hover {
  background: var(--sr-soft);
  color: var(--sr-red-ink);
}

.srx-mega-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--sr-red-tint);
  color: var(--sr-ink);
}

.srx-mega-icon .accent {
  stroke: var(--sr-red);
}

.srx-mega-side {
  padding-left: 24px;
  border-left: 1px solid var(--sr-line);
}

.srx-mega a.srx-mega-all {
  display: inline-flex;
  margin-top: 8px;
  font-weight: 600;
  color: var(--sr-red-ink);
}

.srx-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.srx-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 240px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--sr-line);
  border-radius: 8px;
  background: var(--sr-soft);
  color: var(--sr-muted);
  transition: border-color .15s ease-out, background-color .15s ease-out;
}

.srx-search:focus-within {
  border-color: var(--sr-ink-2);
  background: #fff;
}

.srx-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: var(--sr-ink);
  font: 400 15px/1 var(--sr-font);
  -webkit-appearance: none;
  appearance: none;
}

.srx-search input::placeholder {
  color: #8a94a6;
}

.srx-search input:focus-visible {
  outline: 0;
}

.srx-icon-btn {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--sr-line);
  border-radius: 8px;
  background: #fff;
  color: var(--sr-ink);
  cursor: pointer;
}

.srx-cta {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--sr-red-ink);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .15s ease-out;
}

.srx-cta:hover {
  background: var(--sr-red-dark);
}

.srx-burger {
  position: relative;
  display: block;
  width: 18px;
  height: 14px;
}

.srx-burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease-out, opacity .2s ease-out, top .2s ease-out;
}

.srx-burger span:nth-child(1) { top: 0; }
.srx-burger span:nth-child(2) { top: 6px; }
.srx-burger span:nth-child(3) { top: 12px; }

.srx-header.is-menu-open .srx-burger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.srx-header.is-menu-open .srx-burger span:nth-child(2) { opacity: 0; }
.srx-header.is-menu-open .srx-burger span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.srx-search-panel {
  padding: 12px 0;
  border-top: 1px solid var(--sr-line);
  background: #fff;
}

.srx-search-panel[hidden] {
  display: none;
}

.srx-search-wide {
  width: 100%;
  height: 48px;
  padding-right: 4px;
}

.srx-search-wide button {
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--sr-red-ink);
  color: #fff;
  font: 600 15px/1 var(--sr-font);
  cursor: pointer;
}

@media (max-width: 1180px) {
  .srx-bar .srx-search {
    display: none;
  }

  .srx-icon-btn.srx-search-toggle {
    display: grid;
  }
}

@media (max-width: 900px) {
  .srx-util {
    display: none;
  }

  .srx-bar-inner {
    height: 64px;
  }

  .srx-brand img {
    width: 148px;
  }

  .srx-cta {
    display: none;
  }

  .srx-icon-btn {
    display: grid;
  }

  .srx-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 64px;
    bottom: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
    padding: 8px 16px 32px;
    overflow-y: auto;
    border-top: 1px solid var(--sr-line);
    background: #fff;
  }

  .admin-bar .srx-nav {
    top: 110px;
  }

  .srx-header.is-menu-open .srx-nav {
    display: flex;
  }

  .srx-item {
    flex-direction: column;
    height: auto;
  }

  .srx-link {
    justify-content: space-between;
    width: 100%;
    height: 54px;
    padding: 0 4px;
    border-bottom: 1px solid var(--sr-line);
    font-size: 16px;
    box-shadow: none !important;
  }

  .srx-mobile-only {
    display: inline-flex;
  }

  .srx-mega,
  .srx-item.is-mega-open > .srx-mega {
    position: static;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    padding: 12px 0 16px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .srx-mega-grid,
  .srx-mega-grid-3,
  .srx-mega-grid-plain {
    grid-template-columns: 1fr 1fr;
  }

  .srx-mega-side {
    padding-left: 0;
    border-left: 0;
  }

  body.sr-mobile-menu-open {
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .srx-mega-grid,
  .srx-mega-grid-3,
  .srx-mega-grid-plain {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */

.srx-footer {
  margin-top: 0;
  padding: 48px 0 24px;
  border-top: 1px solid var(--sr-line);
  background: var(--sr-soft);
  font-size: 15px;
}

.srx-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.srx-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.srx-footer-logo {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
}

.srx-footer-logo img {
  display: block;
  width: 150px;
  height: auto;
}

.srx-footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--sr-ink-2);
}

.srx-footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--sr-red-ink) !important;
}

.srx-footer-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--sr-red-ink);
  border-radius: 8px;
  background: #fff;
  color: var(--sr-red-ink) !important;
  font-size: 14px;
  font-weight: 600;
}

.srx-footer-cta:hover {
  background: var(--sr-red-tint);
}

.srx-footer-col h2 {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--sr-ink);
}

.srx-footer-col li + li {
  margin-top: 8px;
}

.srx-footer-col a {
  font-size: 14px;
  color: var(--sr-ink-2);
}

.srx-footer-col a:hover {
  color: var(--sr-red-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.srx-footer-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px !important;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--sr-line);
  font-size: 13px;
  line-height: 1.5;
  color: var(--sr-ink-2);
}

.srx-footer-note .sr-i {
  color: var(--sr-red-ink);
}

.srx-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--sr-muted);
}

.srx-footer-bottom a:hover {
  color: var(--sr-red-ink);
}

@media (max-width: 1000px) {
  .srx-footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .srx-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .srx-wrap {
    width: calc(100% - 32px);
  }

  .srx-footer {
    padding-top: 36px;
  }

  .srx-footer-top {
    gap: 28px 20px;
  }
}

/* ---------- Breadcrumbs (sr_breadcrumbs) ---------- */

body .sr-breadcrumb-wrap {
  border-bottom: 0;
  background: #fff;
  font-family: var(--sr-font);
}

body .sr-breadcrumb-wrap .sr-breadcrumbs,
html body.single-doctor .sr-breadcrumb-wrap .sr-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 2px;
  width: min(1200px, 100% - 48px);
  height: auto;
  min-height: 0;
  color: var(--sr-muted);
  margin-inline: auto;
  padding: 14px 0 0;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  scrollbar-width: none;
}

body .sr-breadcrumb-wrap .sr-breadcrumbs::-webkit-scrollbar {
  display: none;
}

body .sr-breadcrumbs a,
body .sr-breadcrumbs span,
body .sr-breadcrumbs strong {
  flex: none;
  color: var(--sr-muted);
  text-decoration: none;
}

body .sr-breadcrumbs a {
  font-weight: 500;
  padding: 2px 4px;
  border-radius: 4px;
}

body .sr-breadcrumbs a:hover {
  color: var(--sr-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body .sr-breadcrumbs .sr-breadcrumb-home {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-left: 0;
}

body .sr-breadcrumbs .sr-breadcrumb-home svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body .sr-breadcrumbs .sr-breadcrumb-separator {
  display: inline-block;
  width: 14px;
  height: 14px;
  overflow: hidden;
  color: transparent;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3.5 10.5 8 6 12.5' fill='none' stroke='%2398a2b3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

body .sr-breadcrumbs strong {
  max-width: 48ch;
  padding: 2px 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
  color: var(--sr-ink-2);
}

/* The page hero right below starts white, so the trail reads as part of it. */
body .sr-breadcrumb-wrap + main .srp-hero,
body .sr-breadcrumb-wrap + .srp .srp-hero,
body .sr-breadcrumb-wrap + main.srp > .srp-hero:first-child {
  padding-top: 20px;
}

@media (max-width: 640px) {
  body .sr-breadcrumb-wrap .sr-breadcrumbs {
    width: calc(100% - 32px);
    padding-top: 12px;
  }

  body .sr-breadcrumbs strong {
    max-width: 55vw;
  }
}

/* Red text on the light-grey footer needs the darker shade for AA. */
.srx-footer {
  --sr-red-ink: #b4232a;
}

/* ---------- Setupad placements (from the WordPress theme) ---------- */
.sr-setupad-top-wrap,
.sr-setupad-bottom-wrap { width: min(1200px, 100% - 48px); margin: 12px auto 18px; }
.sr-setupad-slot { display: grid; place-items: center; text-align: center; overflow: hidden; }
.sr-setupad-top,
.sr-setupad-bottom { min-height: 120px; }
.sr-setupad-inarticle { margin: 24px 0; }
.sr-setupad-pair { display: grid; grid-template-columns: repeat(2, minmax(250px, 300px)); justify-content: center; gap: 20px; min-height: 250px; }
.sr-setupad-box { min-height: 250px; }
.sr-setupad-sidebar { min-height: 300px; margin: 0 0 16px; }
.sr-setupad-sticky { position: fixed; z-index: 50; left: 50%; bottom: 0; transform: translateX(-50%); width: min(728px, 100%); min-height: 50px; text-align: center; }
.sr-setupad-sticky:empty, .sr-setupad-sticky:not(:has(iframe)) { min-height: 0; }
.sr-setupad-mobile { display: none; }
@media (max-width: 1000px) {
  .sr-setupad-desktop { display: none !important; }
  .sr-setupad-mobile { display: grid; }
  .sr-setupad-top-wrap,
  .sr-setupad-bottom-wrap { width: min(100% - 32px, 340px); margin: 10px auto 16px; }
  .sr-setupad-top,
  .sr-setupad-bottom,
  .sr-setupad-box { min-height: 250px; }
  .sr-setupad-inarticle { margin: 22px -4px; }
  .sr-setupad-sticky { width: min(320px, 100%); }
}

/* Footer "Slapukų nustatymai" (reopens the consent window). */
.srx-cookie-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.srx-cookie-btn:hover { color: var(--sr-red-ink); }
.srx-cookie-btn:focus-visible { outline: 2px solid var(--sr-red-ink); outline-offset: 2px; border-radius: 2px; }
