/*
Theme Name: Nad Łyną
Theme URI: https://radiobartoszyce.pl
Author: Nad Łyną
Description: Bartoszyce i okolica: miejsca, ludzie, dźwięki
Version: 1.3
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: nadlyna
*/

:root {
  --nl-line: var(--wp--preset--color--line);
  --nl-bank: 9.5rem;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.wp-block-post-title,
.wp-block-query-title {
  text-wrap: balance;
  overflow-wrap: anywhere;
}

p {
  text-wrap: pretty;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 120ms ease, text-decoration-color 120ms ease;
}

:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--base);
}

.wp-site-blocks > * + * {
  margin-block-start: 0;
}

.wp-site-blocks > footer {
  margin-block-start: 0;
}

/* Nagłówek */

.site-brand {
  gap: 0.75rem;
}

.site-brand .wp-block-site-logo img {
  display: block;
  height: auto;
}

.site-brand:has(.wp-block-site-logo img) .site-brand-text {
  display: none;
}

.site-header .wp-block-navigation a {
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}

.site-header .wp-block-navigation a:hover,
.site-header .wp-block-navigation a:focus-visible {
  border-bottom-color: var(--wp--preset--color--primary);
}

.site-header .wp-block-navigation .current-menu-item > a {
  border-bottom-color: var(--wp--preset--color--accent);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  padding-top: 3rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  gap: 1rem;
  font-size: var(--wp--preset--font-size--large);
  font-family: var(--wp--preset--font-family--brygada-1918);
}

/* Hero: tekst po lewej, fotografia do prawej krawędzi */

.hero.wp-block-media-text {
  margin-top: 0;
}

.hero .wp-block-media-text__content {
  padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem) max(var(--wp--style--root--padding-left), calc((100vw - 1180px) / 2));
}

.hero .wp-block-media-text__media {
  min-height: 560px;
}

.hero .wp-block-media-text__media img {
  border-radius: 0;
}

.hero-text {
  max-width: 34rem;
}

.hero h1 {
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-family: var(--wp--preset--font-family--brygada-1918);
  font-style: italic;
  line-height: 1.35;
}

@media (max-width: 600px) {
  .hero .wp-block-media-text__content {
    padding: 2.5rem var(--wp--style--root--padding-right) 2.5rem var(--wp--style--root--padding-left);
  }
  .hero .wp-block-media-text__media {
    min-height: 300px;
  }
}

/* Lista „brzeg”: data i dział na lewym brzegu, tekst w nurcie */

.bank-list .wp-block-post-template {
  border-top: 1px solid var(--nl-line);
}

.bank-row {
  border-bottom: 1px solid var(--nl-line);
  padding: var(--wp--preset--spacing--40) 0;
  gap: var(--wp--preset--spacing--40);
}

.bank {
  flex: 0 0 var(--nl-bank);
  min-width: 0;
  padding-top: 0.35rem;
  font-size: var(--wp--preset--font-size--small);
  line-height: 1.5;
}

.bank > * + * {
  margin-top: 0.25rem;
}

.stream {
  flex: 1 1 0;
  min-width: 0;
  max-width: 44rem;
}

.stream .wp-block-post-title {
  margin-bottom: 0.5rem;
}

.stream .wp-block-post-excerpt {
  margin-top: 0.5rem;
}

.bank-list-compact .bank-row {
  padding: var(--wp--preset--spacing--30) 0;
}

.bank-list-compact .bank {
  padding-top: 0.2rem;
}

.bank-list-compact .stream .wp-block-post-title {
  margin-bottom: 0;
  font-weight: 400;
}

.bank .wp-block-post-terms a,
.featured-item .wp-block-post-terms a,
.entry-category a {
  text-decoration: none;
  color: var(--wp--preset--color--accent);
}

.bank .wp-block-post-terms a:hover,
.featured-item .wp-block-post-terms a:hover,
.entry-category a:hover {
  text-decoration: underline;
}

.wp-block-post-terms__separator {
  color: var(--wp--preset--color--muted);
}

@media (max-width: 640px) {
  .bank-row {
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--20);
  }
  .bank {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0 1rem;
    padding-top: 0;
  }
  .bank > * + * {
    margin-top: 0;
  }
}

.list-head {
  margin-bottom: var(--wp--preset--spacing--40);
}

.list-lead {
  max-width: 40rem;
  color: var(--wp--preset--color--muted);
}

.bank-pagination {
  margin-top: var(--wp--preset--spacing--40);
  font-size: var(--wp--preset--font-size--small);
  gap: 1rem;
}

.bank-pagination a {
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--nl-line);
  border-radius: 2px;
}

.bank-pagination a:hover {
  border-color: var(--wp--preset--color--primary);
}

.bank-pagination .page-numbers.current {
  padding: 0.35rem 0.6rem;
  font-weight: 600;
}

/* Wyróżnione: zdjęcie i tekst na stronie, bez kart */

.featured-item .wp-block-post-featured-image img {
  display: block;
  width: 100%;
}

.featured-item .wp-block-post-title {
  margin-top: 0.25rem;
}

/* Pasek działów */

.sections-bar h3 a {
  text-decoration: none;
  color: var(--wp--preset--color--contrast);
  border-bottom: 2px solid var(--wp--preset--color--primary);
  padding-bottom: 0.15rem;
}

.sections-bar h3 a:hover {
  color: var(--wp--preset--color--primary);
  border-bottom-color: var(--wp--preset--color--accent);
}

.sections-bar p {
  color: var(--wp--preset--color--muted);
  max-width: 18rem;
}

/* Ciemny pas: Dawne Bartoszyce */

.dark-band {
  --nl-line: #3B5247;
}

.dark-band a {
  color: var(--wp--preset--color--base);
}

.dark-band a:hover,
.dark-band a:focus-visible {
  color: var(--wp--preset--color--base-soft);
}

.dark-band .wp-block-post-title a {
  color: var(--wp--preset--color--base);
}

.dark-band .wp-block-post-title a:hover {
  color: var(--wp--preset--color--base-soft);
}

.dark-band :focus-visible {
  outline-color: var(--wp--preset--color--base-soft);
}

.band-head {
  margin-bottom: var(--wp--preset--spacing--40);
}

.band-head p {
  margin: 0;
}

.band-more a {
  text-decoration-color: var(--wp--preset--color--accent);
}

.editors-cols p:last-child a {
  font-weight: 600;
}

/* Wpis */

.entry-head {
  margin-bottom: var(--wp--preset--spacing--30);
}

.entry-category {
  margin-bottom: var(--wp--preset--spacing--20);
}

.entry-meta {
  gap: 0.75rem;
  font-size: var(--wp--preset--font-size--small);
}

.entry-meta .wp-block-post-author-name a {
  text-decoration: none;
  color: var(--wp--preset--color--contrast);
  font-weight: 500;
}

.entry-meta .wp-block-post-author-name a:hover {
  color: var(--wp--preset--color--primary);
}

.entry-cover img {
  display: block;
  width: 100%;
}

.entry-content > * + * {
  margin-block-start: 1.25em;
}

.entry-content p {
  max-width: 100%;
}

.entry-content h2 {
  margin-top: 2.25rem;
}

.entry-content h3 {
  margin-top: 1.75rem;
}

.entry-content a {
  text-decoration-color: var(--wp--preset--color--accent);
}

.entry-content a:hover {
  text-decoration-thickness: 2px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.4rem;
}

.entry-content li + li {
  margin-top: 0.4rem;
}

.entry-content figure {
  margin-left: 0;
  margin-right: 0;
}

.entry-content figcaption,
.wp-block-image figcaption,
.wp-element-caption {
  margin-top: 0.5rem;
  color: var(--wp--preset--color--muted);
  font-size: var(--wp--preset--font-size--small);
  text-align: left;
}

.entry-content .wp-block-quote {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.entry-content .wp-block-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--wp--preset--font-family--lexend-deca);
  font-style: normal;
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--muted);
}

.entry-content .wp-block-table table {
  border-collapse: collapse;
}

.entry-content .wp-block-table td,
.entry-content .wp-block-table th {
  border: 1px solid var(--nl-line);
  padding: 0.5rem 0.75rem;
}

.entry-content .wp-block-table th {
  background: var(--wp--preset--color--surface);
  font-weight: 600;
  text-align: left;
}

.entry-tags {
  font-size: var(--wp--preset--font-size--small);
  color: var(--wp--preset--color--muted);
}

.entry-tags a {
  text-decoration: none;
  color: var(--wp--preset--color--contrast);
  border-bottom: 1px solid var(--nl-line);
}

.entry-tags a:hover {
  border-bottom-color: var(--wp--preset--color--primary);
}

.entry-author {
  border-radius: 2px;
}

.entry-author-avatar img {
  border-radius: 2px;
  display: block;
}

.entry-author-name {
  font-family: var(--wp--preset--font-family--brygada-1918);
  font-weight: 600;
}

.entry-author-name a {
  text-decoration: none;
  color: var(--wp--preset--color--contrast);
}

.entry-author-name a:hover {
  color: var(--wp--preset--color--primary);
}

.entry-author .wp-block-post-author-biography {
  color: var(--wp--preset--color--muted);
}

@media (max-width: 480px) {
  .entry-author {
    flex-wrap: wrap;
  }
}

/* Komentarze */

.entry-comments {
  border-top: 1px solid var(--nl-line);
  padding-top: var(--wp--preset--spacing--50);
}

.comment-item {
  border-bottom: 1px solid var(--nl-line);
}

.comment-item .wp-block-comment-author-name {
  font-weight: 600;
}

.comment-item .wp-block-comment-date {
  color: var(--wp--preset--color--muted);
}

.comment-item .wp-block-comment-reply-link a {
  text-decoration: none;
  color: var(--wp--preset--color--accent);
}

.comment-form label {
  display: block;
  font-size: var(--wp--preset--font-size--small);
  margin-bottom: 0.25rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.wp-block-search__input,
.site-search input {
  font: inherit;
  color: var(--wp--preset--color--contrast);
  background: var(--wp--preset--color--base);
  border: 1px solid var(--wp--preset--color--muted);
  border-radius: 2px;
  padding: 0.6rem 0.75rem;
  width: 100%;
  max-width: 100%;
}

.comment-form textarea {
  min-height: 9rem;
}

.comment-form input:focus,
.comment-form textarea:focus,
.wp-block-search__input:focus {
  outline: 2px solid var(--wp--preset--color--accent);
  outline-offset: 1px;
  border-color: var(--wp--preset--color--accent);
}

.comment-form .form-submit input {
  font: inherit;
  font-weight: 600;
  font-size: var(--wp--preset--font-size--small);
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
  border: 0;
  border-radius: 2px;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
}

.comment-form .form-submit input:hover {
  background: var(--wp--preset--color--accent);
}

.comment-form-cookies-consent {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: var(--wp--preset--font-size--small);
}

.comment-form-cookies-consent label {
  display: inline;
  margin: 0;
}

.wp-block-search__button {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
  border: 0;
  border-radius: 2px;
  padding: 0.6rem 1rem;
  font: inherit;
  font-weight: 600;
  font-size: var(--wp--preset--font-size--small);
  cursor: pointer;
}

.wp-block-search__button:hover {
  background: var(--wp--preset--color--accent);
}

/* Stopka */

.site-footer p {
  margin: 0;
}

.site-footer .footer-legal a {
  text-decoration: none;
  color: var(--wp--preset--color--muted);
}

.site-footer .footer-legal a:hover,
.site-footer .footer-legal a:focus-visible {
  color: var(--wp--preset--color--primary);
  text-decoration: underline;
}

.site-footer .wp-block-group > .wp-block-group > p + p {
  margin-top: 0.25rem;
}

/* Wyrównanie do lewej we wszystkich listach i tytułach */

.wp-block-post-title,
.wp-block-query-title,
.wp-block-post-excerpt {
  text-align: left;
}

.wp-block-post-excerpt__more-link {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: var(--wp--preset--font-size--small);
  text-decoration: none;
  color: var(--wp--preset--color--primary);
  border-bottom: 1px solid var(--wp--preset--color--primary);
}

.wp-block-post-excerpt__more-link:hover {
  color: var(--wp--preset--color--accent);
  border-bottom-color: var(--wp--preset--color--accent);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* O nas: sylwetki autorow (media-text, naprzemiennie) */
.author-card {
  margin-top: var(--wp--preset--spacing--50);
  padding-bottom: var(--wp--preset--spacing--50);
  border-bottom: 1px solid var(--wp--preset--color--line);
  gap: var(--wp--preset--spacing--50);
}
.author-card .wp-block-media-text__media {
  aspect-ratio: 4 / 5;
  max-height: 340px;
}
.author-card .wp-block-media-text__media img {
  border-radius: 2px;
}
.author-card .wp-block-media-text__content {
  padding: 0;
}
.author-card h3 {
  margin-top: 0;
  margin-bottom: var(--wp--preset--spacing--20);
}
.author-card + .author-card {
  margin-top: 0;
}
.author-card:last-of-type {
  border-bottom: 0;
}
@media (max-width: 600px) {
  .author-card .wp-block-media-text__media {
    max-height: 260px;
    aspect-ratio: 3 / 2;
  }
}

/* Pasek i okno cookies (gdpr-cookie-compliance): kolory i krój z motywu */
#moove_gdpr_cookie_info_bar,
#moove_gdpr_cookie_modal,
.gdpr_cookie_settings_shortcode_content {
  font-family: var(--wp--preset--font-family--lexend-deca, inherit) !important;
}
#moove_gdpr_cookie_info_bar {
  background: var(--wp--preset--color--secondary) !important;
  color: var(--wp--preset--color--base-soft) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content p,
#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content a {
  color: var(--wp--preset--color--base-soft) !important;
}
#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content a.mgbutton,
#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content button.mgbutton,
#moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-modal-footer-content .moove-gdpr-button-holder a.mgbutton,
#moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-modal-footer-content .moove-gdpr-button-holder button.mgbutton {
  background-color: var(--wp--preset--color--primary) !important;
  border-color: var(--wp--preset--color--primary) !important;
  color: var(--wp--preset--color--base) !important;
  border-radius: 2px !important;
  font-weight: 500 !important;
}
#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content a.mgbutton:hover,
#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content button.mgbutton:hover {
  background-color: var(--wp--preset--color--accent) !important;
  border-color: var(--wp--preset--color--accent) !important;
}
#moove_gdpr_cookie_info_bar span[data-href] > u.change-settings-button,
#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content button.change-settings-button {
  color: var(--wp--preset--color--base) !important;
}
#moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-modal-close i,
#moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-modal-close span.gdpr-icon {
  background-color: var(--wp--preset--color--secondary) !important;
  border-color: var(--wp--preset--color--secondary) !important;
}
