/*
 * Complete ANGIOEDU internal-page styling.
 * Kept as flat CSS so the source remains usable without a Sass build step.
 */

:root {
  --blue: #00657e;
  --deep: #124657;
  --angioedu-heading: #124657;
  --angioedu-dark-teal: #124657;
  --angioedu-filter-action: #00657e;
}

.pill,
.btn {
  min-height: 40px;
  padding: 11px 28px;
  border: 1px solid var(--blue);
  border-radius: 30px;
  background: var(--blue);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
}

.btn:not(.outline),
.pill {
  background: #00657e;
  border-color: #00657e;
}

.site-header.theme-viamedica .nav-header-menu .nav-menu a.active,
.site-header.theme-viamedica .nav-header-menu .nav-menu a.is-active {
  color: var(--deep);
  font-weight: 600;
}

/* Header parity with the ANGIOEDU prototype. */
.site-header.theme-viamedica .nav-header > .container {
  width: 100%;
  max-width: 1500px;
  padding: 0;
}

.site-header.theme-viamedica .nav-header .nav-header-wrapper {
  width: 100%;
  max-width: 1500px;
  min-height: 0;
  padding: 10px 40px 14px;
  gap: 6px 25px;
}

.site-header.theme-viamedica .logo-text__logo img {
  display: block;
  width: auto;
  max-width: 210px;
  max-height: 82px;
}

.site-header.theme-viamedica .nav-header-menu .nav-menu > ul {
  gap: 25px;
  align-items: center;
}

.site-header.theme-viamedica .nav-header-menu .nav-menu > ul > li > a {
  padding: 0;
  color: #686868;
  display: block;
  font-size: 16px;
  line-height: 1.45;
  white-space: nowrap;
}

.site-header.theme-viamedica .nav-header .nav-header-wrapper .menu-icon .button-container.login-container {
  width: auto;
  min-width: 0;
  min-height: 40px;
}

.site-header.theme-viamedica .nav-header .nav-header-wrapper .menu-icon .button-container.login-container a {
  min-height: 40px;
  padding: 8px 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 20px;
}

/* Breadcrumb parity. */
.breadcrumb {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 30px;
  padding: 0 20px;
}

.breadcrumb ol {
  width: 100%;
  margin: 0;
  padding: 24px 0 18px;
  border-bottom: 1px dotted var(--angioedu-line);
  color: #aaaaaa;
  font-size: 16px;
  line-height: 1.45;
}

.breadcrumb ol a {
  color: #888888;
}

/* Shared layout for all primary menu destinations. */
.node--basic-page--news-list,
.node--basic-page--event-list,
.node--basic-page--article-list,
.path-artykuly-sponsorowane-angioedupl .node--basic-page--,
.node--basic-page--magazine-list,
.node--basic-page--lecture-list,
.node--basic-page--book-list,
.contact_page {
  width: 100%;
  max-width: 1400px;
  min-height: 370px;
  margin-right: auto;
  margin-left: auto;
  padding: 0 20px 50px;
  color: var(--angioedu-text);
}

.node--basic-page--event-list > h1,
.path-artykuly-sponsorowane-angioedupl .node--basic-page-- > h1,
.node--basic-page--magazine-list > h1,
.node--basic-page--lecture-list > h1,
.node--basic-page--book-list > h1,
.contact_page h1 {
  margin: 0 0 25px;
  color: var(--angioedu-heading);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

/* The prototype deliberately starts these listings with the filters. */
.node--basic-page--news-list > h1,
.node--basic-page--article-list > h1 {
  display: none;
}

.node--basic-page--news-list .content-with-sidebar,
.node--basic-page--article-list .content-with-sidebar,
.node--basic-page--magazine-list .content-with-sidebar,
.node--basic-page--lecture-list .content-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: start;
}

.node--basic-page--news-list .content-with-sidebar > .content,
.node--basic-page--article-list .content-with-sidebar > .content,
.node--basic-page--magazine-list .content-with-sidebar > .content,
.node--basic-page--lecture-list .content-with-sidebar > .content {
  min-width: 0;
  margin: 0;
}

.node--basic-page--news-list .sidebar,
.node--basic-page--article-list .sidebar,
.node--basic-page--magazine-list .sidebar,
.node--basic-page--lecture-list .sidebar {
  width: auto;
  padding: 35px 30px;
  border: 1px solid var(--angioedu-line);
  background: #ffffff;
  align-self: start;
}

.node--basic-page--news-list .sidebar h2,
.node--basic-page--article-list .sidebar h2,
.node--basic-page--magazine-list .sidebar h2,
.node--basic-page--lecture-list .sidebar h2 {
  margin: 0 0 25px;
  color: var(--angioedu-heading);
  font-size: 28px;
  font-weight: 800;
}

/* Shared filter controls. */
.node--basic-page--news-list .news-list-filters,
.node--basic-page--event-list .event-listing .filters,
.node--basic-page--article-list .article-listing .filters,
.node--basic-page--lecture-list .lecture-listing .filters,
.node--basic-page--book-list .book-list-filters {
  position: relative;
  z-index: 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 28px 0 32px;
  padding: 24px 28px;
  background: var(--angioedu-light);
}

.node--basic-page--news-list .news-list-filters::before,
.node--basic-page--news-list .news-list-filters::after,
.node--basic-page--event-list .event-listing .filters::before,
.node--basic-page--event-list .event-listing .filters::after,
.node--basic-page--article-list .article-listing .filters::before,
.node--basic-page--article-list .article-listing .filters::after,
.node--basic-page--lecture-list .lecture-listing .filters::before,
.node--basic-page--lecture-list .lecture-listing .filters::after,
.node--basic-page--book-list .book-list-filters::before,
.node--basic-page--book-list .book-list-filters::after {
  content: none;
}

.node--basic-page--news-list .news-list-filters input:not([type="submit"]),
.node--basic-page--news-list .news-list-filters select,
.node--basic-page--event-list .filters input:not([type="checkbox"]),
.node--basic-page--event-list .filters select,
.node--basic-page--article-list .filters input:not([type="checkbox"]),
.node--basic-page--article-list .filters select,
.node--basic-page--lecture-list .filters input:not([type="checkbox"]),
.node--basic-page--lecture-list .filters select,
.node--basic-page--book-list .book-list-filters input:not([type="submit"]),
.node--basic-page--book-list .book-list-filters select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  box-sizing: border-box;
  padding: 9px 14px;
  border: 1px solid #e1e1e1;
  border-radius: 24px;
  background-color: #ffffff;
  color: #666666;
  font-size: 14px;
  line-height: 20px;
}

.node--basic-page--news-list .news-list-filters input[type="submit"],
.node--basic-page--event-list .filters button,
.node--basic-page--article-list .filters__submit button,
.node--basic-page--lecture-list .filters__submit button,
.node--basic-page--book-list .book-list-filters input[type="submit"] {
  width: auto;
  min-width: 158px;
  min-height: 40px;
  margin: 0;
  padding: 9px 28px;
  border: 1px solid var(--angioedu-filter-action);
  border-radius: 30px;
  background: var(--angioedu-filter-action);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.node--basic-page--news-list .news-list-filters input[type="submit"]:hover,
.node--basic-page--event-list .filters button:hover,
.node--basic-page--article-list .filters__submit button:hover,
.node--basic-page--lecture-list .filters__submit button:hover,
.node--basic-page--book-list .book-list-filters input[type="submit"]:hover {
  border-color: var(--angioedu-dark-teal);
  background: var(--angioedu-dark-teal);
}

/* Aktualnosci. */
.node--basic-page--news-list .news-list-filters,
.node--basic-page--news-list .news-list {
  max-width: 900px;
}

.node--basic-page--news-list .news-list-filters form {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.node--basic-page--news-list .news-list-filters > .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.node--basic-page--news-list .news-list-filters .form-element {
  display: flex;
  gap: 15px;
  margin: 0;
  align-items: center;
}

.node--basic-page--news-list .news-list-filters label {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 400;
}

.node--basic-page--news-list .news-list-filters select {
  width: 226px;
  min-height: 46px;
  padding: 11px 42px 11px 18px;
  font-size: 16px;
}

.node--basic-page--news-list .news-list-filters input[type="submit"] {
  min-width: 112px;
  padding: 11px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.node--basic-page--news-list .news-list article {
  margin: 0 0 30px;
  padding: 0 0 35px;
  border-bottom: 1px dotted var(--angioedu-line);
}

.node--basic-page--news-list .news-list article .news__title {
  margin: 0 0 22px;
  color: var(--angioedu-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.node--basic-page--news-list .news-list article .news__title a {
  color: inherit;
}

.node--basic-page--news-list .news-list article .news-teaser-wrapper {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  gap: 28px;
  height: auto;
}

.node--basic-page--news-list .news-list article .news-teaser-image,
.node--basic-page--news-list .news-list article .news-teaser-image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.node--basic-page--news-list .news-list article .news-teaser-content {
  display: flex;
  min-height: 100%;
  padding: 0;
  flex-direction: column;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.45;
}

.node--basic-page--news-list .news-list article .date {
  width: auto;
  height: auto;
  margin: 0 0 26px;
  color: #6b6b6b;
  font-size: 14px;
  line-height: 1.45;
}

.node--basic-page--news-list .news-list article .body {
  margin: 0 0 18px;
}

/* Shared outline detail actions. */
.node--basic-page--news-list .news-list article .button,
.node--basic-page--event-list .event-item .button,
.node--basic-page--article-list .article--teaser .button,
.path-artykuly-sponsorowane-angioedupl .article--teaser .button,
.node--basic-page--magazine-list .magazine-summary .button,
.node--basic-page--lecture-list .lecture__button .button,
.node--basic-page--book-list .book-info .button {
  display: inline-flex;
  width: auto;
  min-width: 0;
  min-height: 40px;
  height: auto;
  padding: 11px 28px;
  border: 1px solid var(--angioedu-accent);
  border-radius: 30px;
  background: #ffffff;
  color: var(--angioedu-dark-teal);
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.node--basic-page--news-list .news-list article .button:hover,
.node--basic-page--event-list .event-item .button:hover,
.node--basic-page--article-list .article--teaser .button:hover,
.path-artykuly-sponsorowane-angioedupl .article--teaser .button:hover,
.node--basic-page--magazine-list .magazine-summary .button:hover,
.node--basic-page--lecture-list .lecture__button .button:hover,
.node--basic-page--book-list .book-info .button:hover {
  border-color: var(--angioedu-dark-teal);
  background: #edf4f6;
  color: var(--angioedu-dark-teal);
  text-decoration: none;
}

/* Footer parity with the prototype. */
body > footer[role="contentinfo"],
.dialog-off-canvas-main-canvas > footer[role="contentinfo"] {
  margin-top: 45px;
  background: #080808;
  color: #dddddd;
}

.footer.theme-viamedica .footer__content {
  padding: 65px 30px 20px;
  background: #080808;
  color: #dddddd;
}

.footer.theme-viamedica .footer__content > .container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  max-width: 1320px;
  margin: 0 auto;
}

.footer.theme-viamedica .footer__content .title {
  margin: 0 0 30px;
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.footer.theme-viamedica .footer__content a,
.footer.theme-viamedica .footer__content p {
  color: #dddddd;
}

.footer.theme-viamedica .footer__content p {
  line-height: 1.9;
}

.footer.theme-viamedica .footer__copyright {
  min-height: 0;
  padding: 20px 30px;
  background: #080808;
  color: #dddddd;
}

/* Kalendarium. */
.node--basic-page--event-list .event-listing {
  display: block;
  width: 100%;
}

.node--basic-page--event-list .event-listing .filters {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.node--basic-page--event-list .filters > .title {
  width: 100%;
  margin: 0;
  padding: 0;
  color: #767a84;
  font-size: 18px;
  font-weight: 700;
}

.node--basic-page--event-list .filters > .col {
  display: contents;
}

.node--basic-page--event-list .filters .filter {
  display: flex;
  width: auto;
  gap: 15px;
  min-height: 40px;
  margin: 0;
  align-items: center;
}

.node--basic-page--event-list .filters .filter + .filter {
  margin-top: 0;
}

.node--basic-page--event-list .filters .filter label {
  width: auto;
  color: var(--angioedu-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.node--basic-page--event-list .filters .filter select {
  width: auto;
  min-width: 170px;
  min-height: 45px;
  padding: 11px 18px;
  border-radius: 25px;
  color: #555555;
  font-size: 16px;
}

.node--basic-page--event-list .filters .filter input:not([type="checkbox"]) {
  width: 190px;
  min-height: 45px;
  padding: 11px 18px;
  border-radius: 25px;
  color: #555555;
  font-size: 16px;
}

.node--basic-page--event-list .filters input[type="checkbox"] {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 3px 3px 3px 4px;
  border: 1px solid #dcdcdc;
  border-radius: 50%;
  background: #ffffff;
  appearance: none;
}

.node--basic-page--event-list .filters input[type="checkbox"]:checked {
  border: 6px solid var(--angioedu-accent);
}

.node--basic-page--event-list .filters button {
  width: auto;
  min-width: 112px;
  padding: 11px 28px;
}

.node--basic-page--event-list .events {
  width: 100%;
}

.node--basic-page--event-list .event-item {
  position: relative;
  margin: 0;
  padding: 25px 0;
  border-bottom: 1px solid var(--angioedu-line);
}

.node--basic-page--event-list .event-item__content-wrapper {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 30px;
  padding: 0;
  background: #ffffff;
  align-items: center;
}

.node--basic-page--event-list .event-item__image {
  display: grid;
  width: 140px;
  min-width: 0;
  height: 140px;
  min-height: 140px;
  margin: 0;
  border: 1px solid #e7e7e7;
  background: #f3f3f3;
  place-items: center;
}

.node--basic-page--event-list .event-item__image img {
  display: block;
  width: 100%;
  height: 140px;
  max-height: 210px;
  object-fit: contain;
}

.node--basic-page--event-list .event-item__image img:not([src]),
.node--basic-page--event-list .event-item__image img[src=""] {
  display: none;
}

.node--basic-page--event-list .event-item__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 30px;
  align-items: center;
}

.node--basic-page--event-list .event-item__content .title-wrapper,
.node--basic-page--event-list .event-item__content .description,
.node--basic-page--event-list .event-item__content .place {
  grid-column: 1;
}

.node--basic-page--event-list .event-item__content .title {
  margin: 8px 0;
  color: var(--angioedu-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.node--basic-page--event-list .event-item__content .date,
.node--basic-page--event-list .event-item__content .place {
  margin: 5px 0;
  color: #6b6b6b;
  font-size: 14px;
  line-height: 1.45;
}

.node--basic-page--event-list .event-item__content .description {
  margin: 5px 0;
  color: var(--angioedu-text);
  font-weight: 400;
  line-height: 1.45;
}

.node--basic-page--event-list .event-item__content .row {
  display: contents;
  margin: 0;
  padding: 0;
  border: 0;
}

.node--basic-page--event-list .event-item__content .button {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin: 0;
  align-self: center;
  justify-self: end;
}

/* Scientific and sponsored articles. */
.node--basic-page--article-list .article-listing {
  width: 100%;
  max-width: 900px;
}

.node--basic-page--article-list .article-listing .filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 28px;
}

.node--basic-page--article-list .filters__title,
.node--basic-page--lecture-list .filters__title {
  margin: 0 0 20px;
  color: #666666;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.node--basic-page--article-list .filters__title {
  grid-column: 1 / -1;
  margin: 0;
  color: #767a84;
}

.node--basic-page--article-list .filters__items {
  display: contents;
}

.node--basic-page--article-list .filters__items .filters-item {
  min-width: 0;
  flex: none;
}

.node--basic-page--article-list .filters-item__filter {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.node--basic-page--article-list .filters-item__filter label {
  color: var(--angioedu-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
}

.node--basic-page--article-list .filters input:not([type="checkbox"]),
.node--basic-page--article-list .filters select {
  min-height: 45px;
  padding: 11px 18px;
  border-radius: 25px;
  color: #555555;
  font-size: 16px;
  line-height: normal;
}

.node--basic-page--article-list .filters input:not([type="checkbox"]) {
  min-height: 47px;
  line-height: 23.2px;
}

.node--basic-page--article-list .filters__submit {
  justify-self: start;
}

.node--basic-page--article-list .filters__submit button {
  display: inline-flex;
  min-width: 112px;
  min-height: 40px;
  padding: 11px 28px;
  align-items: center;
  justify-content: center;
  border-color: var(--blue);
  background: var(--blue);
  line-height: 20.3px;
}

.node--basic-page--article-list .articles {
  width: 100%;
}

.node--basic-page--article-list .article--teaser,
.path-artykuly-sponsorowane-angioedupl .article--teaser {
  margin: 0 0 30px;
  padding: 18px 0 38px;
  border-bottom: 1px dotted var(--angioedu-line);
  color: var(--angioedu-text);
  font-size: 16px;
  line-height: 1.45;
}

.node--basic-page--article-list .article--teaser .article__title,
.path-artykuly-sponsorowane-angioedupl .article--teaser .article__title {
  margin: 0 0 22px;
  color: var(--angioedu-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.node--basic-page--article-list .article--teaser .article__title a,
.path-artykuly-sponsorowane-angioedupl .article--teaser .article__title a {
  color: inherit;
}

.node--basic-page--article-list .article-item__content,
.path-artykuly-sponsorowane-angioedupl .article-item__content {
  margin-bottom: 18px;
}

.path-artykuly-sponsorowane-angioedupl .field--name-field-sponsor,
.path-artykuly-sponsorowane-angioedupl .sponsor-label {
  display: block;
  margin: 0 0 14px;
  color: #607880;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.path-artykuly-sponsorowane-angioedupl .node--basic-page-- .articles,
.path-artykuly-sponsorowane-angioedupl .node--basic-page-- #article-listing,
.path-artykuly-sponsorowane-angioedupl .node--basic-page-- .article-listing {
  width: 100%;
  max-width: none;
}

.path-artykuly-sponsorowane-angioedupl .article--teaser .button {
  margin-top: 4px;
  line-height: 20.3px;
}

/* Czasopisma. */
.node--basic-page--magazine-list .magazine-list {
  width: 100%;
  max-width: 900px;
}

.node--basic-page--magazine-list .magazine-list article {
  margin: 30px 0 0;
  padding: 0 0 35px;
  border-bottom: 0;
}

.node--basic-page--magazine-list .magazine-list-node-wrapper {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.node--basic-page--magazine-list .magazine-list .magazine-list-node-wrapper .cover-image,
.node--basic-page--magazine-list .magazine-list .magazine-list-node-wrapper .cover-image img {
  display: block;
  width: 155px;
  min-width: 155px;
  max-width: 100%;
  height: auto;
}

.node--basic-page--magazine-list .magazine-list .magazine-list-node-wrapper .magazine-summary {
  min-width: 0;
  padding: 0;
}

.node--basic-page--magazine-list .magazine-list .magazine-list-node-wrapper .magazine-summary .title {
  margin: 0;
  padding: 0;
  color: var(--angioedu-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
}

.node--basic-page--magazine-list .magazine-list .magazine-list-node-wrapper .magazine-summary .summary {
  margin: 30px 0;
  padding: 0;
  color: var(--angioedu-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.node--basic-page--magazine-list .magazine-list .magazine-list-node-wrapper .magazine-summary .summary p {
  margin: 0;
}

.node--basic-page--magazine-list .magazine-list .magazine-list-node-wrapper .magazine-summary .button {
  display: inline-flex;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 40px;
  margin: 0;
  padding: 11px 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--angioedu-accent);
  border-radius: 30px;
  background: #ffffff;
  color: var(--angioedu-dark-teal);
  font-size: 14px;
  font-weight: 700;
  line-height: 20.3px;
}

/* E-wyklady. */
.node--basic-page--lecture-list .lecture-listing {
  width: 100%;
  max-width: 900px;
}

.node--basic-page--lecture-list .lecture-listing .filters {
  margin: 20px 0 50px;
  padding: 20px 12px;
}

.node--basic-page--lecture-list .filters__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 24px;
  margin: 0 0 20px;
}

.node--basic-page--lecture-list .filters__items .filters-item {
  min-width: 0;
  flex: none;
}

.node--basic-page--lecture-list .filters-item__filter {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.node--basic-page--lecture-list .filters-item__filter label {
  color: var(--angioedu-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
}

.node--basic-page--lecture-list .lectures {
  display: grid;
  width: 100%;
  gap: 50px;
}

.node--basic-page--lecture-list .node--type-lecture.node--view-mode-teaser {
  margin: 0;
  padding: 0;
}

.node--basic-page--lecture-list .node--type-lecture.node--view-mode-teaser .lecture__wrapper {
  display: grid;
  grid-template-columns: 45% minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.node--basic-page--lecture-list .lecture__thumbnail-wrapper,
.node--basic-page--lecture-list .lecture__thumbnail,
.node--basic-page--lecture-list .lecture__thumbnail .field__item {
  width: 100%;
}

.node--basic-page--lecture-list .lecture__thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 312 / 196;
  background: #f1f4f6;
}

.node--basic-page--lecture-list .lecture__thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.node--basic-page--lecture-list .lecture__play-button-wrapper {
  display: none;
}

.node--basic-page--lecture-list .lecture__details-wrapper h2 {
  margin: 0 0 6px;
  color: var(--angioedu-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.node--basic-page--lecture-list .lecture__details-wrapper h2 a {
  color: inherit;
}

.node--basic-page--lecture-list .lecture__date,
.node--basic-page--lecture-list .lecture__authors {
  margin: 0 0 15px;
  color: #6b6b6b;
  font-size: 14px;
  line-height: 1.45;
}

.node--basic-page--lecture-list .lecture__teaser {
  margin: 0 0 3px;
  color: var(--angioedu-text);
  font-size: 16px;
  line-height: 1.25;
}

.node--basic-page--lecture-list .lecture__teaser p {
  margin: 0;
}

.node--basic-page--lecture-list .lecture__authors {
  margin-bottom: 22px;
}

.node--basic-page--lecture-list .lecture__button .button {
  min-width: 140px;
  min-height: 36px;
  padding: 8px 24px;
}

/* Literatura. */
.node--basic-page--book-list .book-list-filters form {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.node--basic-page--book-list .book-list-filters .form-element {
  display: flex;
  gap: 15px;
  margin: 0;
  align-items: center;
}

.node--basic-page--book-list .book-list-filters label {
  margin: 0;
  padding: 0;
  color: var(--angioedu-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.node--basic-page--book-list .book-list-filters .form-element:first-child select {
  width: 227px;
}

.node--basic-page--book-list .book-list-filters input[type="text"] {
  width: 190px;
  max-width: 190px;
  min-height: 47px;
  padding: 11px 18px;
  border-radius: 25px;
  color: #555555;
  font-size: 16px;
  line-height: 23.2px;
}

.node--basic-page--book-list .book-list-filters select {
  min-height: 45px;
  padding: 11px 18px;
  border-radius: 25px;
  color: #555555;
  font-size: 16px;
  line-height: normal;
}

.node--basic-page--book-list .book-list-filters input[type="submit"] {
  min-width: 112px;
  min-height: 40px;
  padding: 11px 28px;
  border-color: var(--blue);
  background: var(--blue);
  line-height: 20.3px;
}

.node--basic-page--book-list .book-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  width: 100%;
  max-width: none;
  margin: 32px 0 30px;
  padding: 0;
}

.node--basic-page--book-list .book-list .book-list-node .book-list-node-wrapper {
  display: grid;
  grid-template-columns: 44% minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.node--basic-page--book-list .book-list .book-list-node .book-list-node-wrapper .side-image,
.node--basic-page--book-list .book-list .book-list-node .book-list-node-wrapper .book-info {
  grid-column: auto;
}

.node--basic-page--book-list .book-list .book-list-node .book-list-node-wrapper .book-info {
  display: block;
  min-width: 0;
}

.node--basic-page--book-list .side-image img {
  display: block;
  width: 176px;
  max-width: 100%;
  height: 304px;
  margin: 0 auto 20px;
  object-fit: contain;
  object-position: center top;
}

.node--basic-page--book-list .book-list .book-list-node .book-list-node-wrapper .book-info .title {
  margin: 0 0 18px;
  color: var(--angioedu-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

.node--basic-page--book-list .book-list .book-list-node .book-list-node-wrapper .book-info .description {
  margin: 0 0 14px;
  color: var(--angioedu-text);
  font-size: 14px;
  line-height: 1.45;
}

.node--basic-page--book-list .book-list .book-list-node .book-list-node-wrapper .book-info .description > div {
  margin: 0 0 14px;
}

.node--basic-page--book-list .book-list .book-list-node .book-list-node-wrapper .book-info .button {
  display: inline-flex;
  width: auto;
  min-width: 0;
  min-height: 40px;
  height: auto;
  padding: 9px 15px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--angioedu-accent);
  border-radius: 30px;
  background: #ffffff;
  color: var(--angioedu-dark-teal);
  font-size: 14px;
  font-weight: 700;
  line-height: 20.3px;
}

/* Contact. */
.contact_page .content-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  margin-top: 50px;
  align-items: start;
}

.contact_page .content {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}

.contact_page .paragraph--type--contact-info {
  margin: 0;
  color: var(--angioedu-text);
}

.contact_page .paragraph--type--contact-info h1 {
  margin-top: 20px;
}

.contact_page .contact_form {
  width: 100% !important;
  margin: 0 0 30px;
}

.contact_page .contact_form .block-scm-contact {
  position: relative;
  padding: 40px;
  background: var(--angioedu-light);
  color: var(--angioedu-text);
}

.contact_page .contact_form .block-scm-contact::after {
  content: none;
}

.contact_page .contact_form .block-scm-contact h1 {
  margin: 0 0 19px;
}

.contact_page .contact_form form.contact-form {
  display: flex;
  gap: 0 12px;
  flex-wrap: wrap;
}

.contact_page .contact_form form.contact-form .form-item {
  margin: 0 0 18px;
}

.contact_page .contact_form form.contact-form .form-item-phone,
.contact_page .contact_form form.contact-form .form-item-email {
  flex: 1 1 calc(50% - 6px);
}

.contact_page .contact_form form.contact-form .form-type-textarea,
.contact_page .contact_form form.contact-form .form-type-checkbox,
.contact_page .contact_form form.contact-form .form-actions {
  width: 100%;
}

.contact_page .contact_form form.contact-form label {
  display: block;
  margin: 22px 0 6px;
  padding: 0;
  color: var(--angioedu-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.contact_page .contact_form form.contact-form input:not([type="checkbox"]):not([type="submit"]),
.contact_page .contact_form form.contact-form textarea {
  width: 100%;
  height: auto;
  min-height: 47px;
  box-sizing: border-box;
  padding: 11px 18px;
  border: 1px solid #e1e1e1;
  border-radius: 25px;
  background: #ffffff;
  color: #555555;
  font-size: 16px;
  line-height: 23.2px;
}

.contact_page .contact_form form.contact-form textarea {
  height: 120px;
  min-height: 120px;
  border-radius: 20px;
  resize: vertical;
}

.contact_page .contact_form form.contact-form .form-type-checkbox {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14px;
}

.contact_page .contact_form form.contact-form input[type="checkbox"] {
  width: 22px;
  min-width: 22px;
  height: 22px;
  margin: 0;
}

.contact_page .contact_form form.contact-form .form-submit {
  display: inline-flex;
  min-height: 40px;
  height: auto;
  margin: 24px 0 0;
  padding: 11px 28px;
  align-items: center;
  justify-content: center;
  border-color: var(--angioedu-accent);
  border-radius: 30px;
  background: var(--angioedu-accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 20.3px;
}

/* Circular prototype pagination for all child-theme listings. */
.pager {
  display: flex;
  margin: 40px 0;
  justify-content: center;
}

.pager .pager__items {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  justify-content: center;
}

.pager .pager__items .pager__item,
.pager .pager__items .pager__item + .pager__item {
  display: grid;
  width: 40px;
  min-width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--angioedu-line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--angioedu-accent);
  place-items: center;
  line-height: 1;
}

.pager .pager__items .pager__item a {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 0;
  color: inherit;
  place-items: center;
}

.pager .pager__items .pager__item.is-active {
  border-color: var(--angioedu-accent);
  background: var(--angioedu-accent);
  color: #ffffff;
}

@media (max-width: 1100px) {
  .site-header.theme-viamedica .nav-header .nav-header-wrapper {
    padding-right: 24px;
    padding-left: 24px;
    gap: 6px 15px;
  }

  .site-header.theme-viamedica .nav-header-menu .nav-menu > ul {
    gap: 18px;
  }

  .site-header.theme-viamedica .nav-header-menu .nav-menu > ul > li > a {
    font-size: 14px;
  }

  .node--basic-page--book-list .book-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .node--basic-page--news-list .sidebar,
  .node--basic-page--article-list .sidebar,
  .node--basic-page--magazine-list .sidebar,
  .node--basic-page--lecture-list .sidebar {
    padding: 25px 20px;
  }

  .node--basic-page--lecture-list .filters-item__filter {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .node--basic-page--article-list .article-listing .filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .site-header.theme-viamedica .nav-header .nav-header-wrapper {
    padding-right: 16px;
    padding-left: 16px;
  }

  .footer.theme-viamedica .footer__content {
    padding: 40px 20px 20px;
  }

  .footer.theme-viamedica .footer__content > .container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer.theme-viamedica .footer__content .title {
    font-size: 25px;
  }

  .node--basic-page--news-list,
  .node--basic-page--event-list,
  .node--basic-page--article-list,
  .path-artykuly-sponsorowane-angioedupl .node--basic-page--,
  .node--basic-page--magazine-list,
  .node--basic-page--lecture-list,
  .node--basic-page--book-list,
  .contact_page {
    padding: 0 20px 30px;
  }

  .node--basic-page--news-list .content-with-sidebar,
  .node--basic-page--article-list .content-with-sidebar,
  .node--basic-page--magazine-list .content-with-sidebar,
  .node--basic-page--lecture-list .content-with-sidebar,
  .contact_page .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .node--basic-page--news-list .sidebar,
  .node--basic-page--article-list .sidebar,
  .node--basic-page--magazine-list .sidebar,
  .node--basic-page--lecture-list .sidebar {
    margin-top: 25px;
  }

  .node--basic-page--news-list .news-list-filters,
  .node--basic-page--event-list .event-listing .filters,
  .node--basic-page--article-list .article-listing .filters,
  .node--basic-page--lecture-list .lecture-listing .filters,
  .node--basic-page--book-list .book-list-filters {
    margin-top: 20px;
    padding: 20px;
  }

  .node--basic-page--news-list .news-list-filters form,
  .node--basic-page--book-list .book-list-filters form {
    align-items: stretch;
  }

  .node--basic-page--news-list .news-list-filters .form-element:first-child,
  .node--basic-page--book-list .book-list-filters .form-element {
    width: 100%;
  }

  .node--basic-page--news-list .news-list-filters select,
  .node--basic-page--book-list .book-list-filters select,
  .node--basic-page--book-list .book-list-filters input:not([type="submit"]) {
    width: 100%;
  }

  .node--basic-page--book-list .book-list-filters .form-element {
    justify-content: space-between;
  }

  .node--basic-page--book-list .book-list-filters select,
  .node--basic-page--book-list .book-list-filters input:not([type="submit"]) {
    width: 60%;
    max-width: none;
  }

  .node--basic-page--news-list .news-list article .news-teaser-wrapper {
    grid-template-columns: 1fr;
  }

  .node--basic-page--news-list .news-list article .news-teaser-content {
    min-height: 0;
  }

  .node--basic-page--news-list .news-list article .date {
    margin-bottom: 16px;
  }

  .node--basic-page--event-list .event-listing .filters,
  .node--basic-page--article-list .filters__items,
  .node--basic-page--lecture-list .filters__items {
    grid-template-columns: 1fr;
  }

  .node--basic-page--book-list .book-list {
    grid-template-columns: 1fr;
  }

  .node--basic-page--event-list .filters .filter {
    grid-template-columns: minmax(110px, 40%) minmax(0, 1fr);
  }

  .node--basic-page--event-list .event-item__content-wrapper {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }

  .node--basic-page--event-list .event-item__image {
    width: 80px;
    height: 80px;
    min-height: 80px;
  }

  .node--basic-page--event-list .event-item__image img {
    height: 80px;
  }

  .node--basic-page--event-list .event-item__content {
    grid-template-columns: 1fr;
  }

  .node--basic-page--event-list .event-item__content .button {
    grid-column: 1;
    grid-row: auto;
    margin-top: 10px;
    justify-self: start;
  }

  .node--basic-page--magazine-list .magazine-list-node-wrapper {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 20px;
  }

  .node--basic-page--magazine-list .magazine-list .magazine-list-node-wrapper .cover-image,
  .node--basic-page--magazine-list .magazine-list .magazine-list-node-wrapper .cover-image img {
    width: 120px;
    min-width: 120px;
  }

  .node--basic-page--magazine-list .magazine-list .magazine-list-node-wrapper .magazine-summary .summary {
    margin: 16px 0;
  }

  .contact_page .content-with-sidebar {
    gap: 25px;
    margin-top: 20px;
  }

  .contact_page .contact_form .block-scm-contact {
    padding: 25px;
  }
}

@media (max-width: 520px) {
  .node--basic-page--lecture-list .node--type-lecture.node--view-mode-teaser .lecture__wrapper {
    grid-template-columns: 1fr;
  }

  .node--basic-page--lecture-list .lectures {
    gap: 40px;
  }

  .node--basic-page--lecture-list .lecture__details-wrapper h2 {
    font-size: 19px;
  }

  .node--basic-page--book-list .book-list-node-wrapper {
    grid-template-columns: 44% minmax(0, 1fr);
  }
}

@media (max-width: 460px) {
  .node--basic-page--event-list .filters .filter,
  .node--basic-page--article-list .filters-item__filter,
  .node--basic-page--lecture-list .filters-item__filter {
    grid-template-columns: 1fr;
  }

  .node--basic-page--magazine-list .magazine-list-node-wrapper {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .node--basic-page--magazine-list .magazine-list .magazine-list-node-wrapper .cover-image,
  .node--basic-page--magazine-list .magazine-list .magazine-list-node-wrapper .cover-image img {
    width: 100px;
    min-width: 100px;
  }

  .node--basic-page--magazine-list .magazine-list .magazine-list-node-wrapper .magazine-summary .button {
    padding-right: 16px;
    padding-left: 16px;
  }

  .contact_page .contact_form form.contact-form .form-item-phone,
  .contact_page .contact_form form.contact-form .form-item-email {
    flex-basis: 100%;
  }
}
