/* YesWas chrome (FRONT-A): header on phones, subscribe block, search, home episode list + player facade,
   sticky sidebar, footer, forum button. Loads after base.css.
   Colors introduced here (contrast on the background they sit on):
   #111827 on #fff 17.7 | #181818 on #fff 17.9 | #484848 on #fff 9.7 | #fff on #182879 11.4 | #fff on #0052FF 5.7
   #fff on #131e58 15.1 | #FFD60A focus ring on #000 / #0e1481 > 10 | #182879 focus ring on #fff 11.4 */

/* ---------------------------------------------------------------- subscribe block */

#container .yeswas-subscribe { --ys-text: #111827; --ys-focus: #182879; font-size: 15px; line-height: 1.3; }
#site-home-welcome .yeswas-subscribe,
.page-intro-subscribe .yeswas-subscribe { --ys-focus: #FFD60A; }

.yeswas-subscribe__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.yeswas-subscribe__list > li { margin: 0; padding: 0; list-style: none; }

#container .yeswas-sub-btn {
	display: flex; align-items: center; gap: 12px; box-sizing: border-box; width: 100%;
	min-height: 48px; padding: 8px 14px;
	background: #fff; color: var(--ys-text); border: 1px solid #c9ccd6; border-radius: 10px;
	font: inherit; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer;
	transition: background-color .15s, border-color .15s;
}
#container .yeswas-sub-btn:hover,
#container .yeswas-sub-btn:focus { background: #eef1ff; color: var(--ys-text); border-color: #182879; text-decoration: none; }
#container .yeswas-sub-btn:focus-visible { outline: 3px solid var(--ys-focus); outline-offset: 2px; }
.yeswas-sub-icon { flex: none; display: block; width: 28px; height: 28px; }
.yeswas-sub-btn__text { min-width: 0; overflow-wrap: anywhere; }

/* RSS row: link + copy button side by side */
.yeswas-subscribe__rss { display: flex; gap: 10px; }
.yeswas-subscribe__rss .yeswas-sub-btn { width: auto; flex: 1 1 0; }
#container .yeswas-sub-btn--copy { justify-content: center; text-align: center; background: transparent; color: #fff; border-color: #fff; }
#container .yeswas-sub-btn--copy:hover,
#container .yeswas-sub-btn--copy:focus { background: #fff; color: var(--ys-text); border-color: #fff; }
#container .yeswas-sub-btn--copy.is-copied { background: #fff; color: #0b5d2a; border-color: #fff; }
/* On light backgrounds (sidebar, footer) the copy button is navy on white instead. */
#container .site-column-aside .yeswas-sub-btn--copy,
#container .yeswas-ep-footer .yeswas-sub-btn--copy,
#container #site-footer .yeswas-sub-btn--copy { background: #fff; color: #182879; border-color: #182879; }
#container .site-column-aside .yeswas-sub-btn--copy:hover,
#container .site-column-aside .yeswas-sub-btn--copy:focus,
#container .yeswas-ep-footer .yeswas-sub-btn--copy:hover,
#container .yeswas-ep-footer .yeswas-sub-btn--copy:focus,
#container #site-footer .yeswas-sub-btn--copy:hover,
#container #site-footer .yeswas-sub-btn--copy:focus { background: #182879; color: #fff; border-color: #182879; }
#container .site-column-aside .yeswas-sub-btn--copy.is-copied,
#container .yeswas-ep-footer .yeswas-sub-btn--copy.is-copied,
#container #site-footer .yeswas-sub-btn--copy.is-copied { background: #e7f6ec; color: #0b5d2a; border-color: #0b5d2a; }

/* full: platform per row, two columns where there is room */
.yeswas-subscribe--full .yeswas-subscribe__list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.yeswas-subscribe--full .yeswas-subscribe__rss { grid-column: 1 / -1; }

/* compact: sidebar and footer */
.yeswas-subscribe--compact .yeswas-subscribe__list { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.yeswas-subscribe--compact .yeswas-sub-btn { min-height: 44px; padding: 6px 12px; font-size: 14px; gap: 10px; }
.yeswas-subscribe--compact .yeswas-sub-icon { width: 24px; height: 24px; }
.yeswas-subscribe--compact .yeswas-subscribe__rss { grid-column: 1 / -1; }

/* band: one wrapping row inside the blue strip */
.yeswas-subscribe--band .yeswas-subscribe__list { display: flex; flex-wrap: wrap; gap: 10px; }
#container .yeswas-subscribe--band .yeswas-sub-btn { width: auto; min-height: 44px; padding: 6px 14px 6px 10px; font-size: 14px; }
.yeswas-subscribe--band .yeswas-sub-icon { width: 24px; height: 24px; }
.yeswas-subscribe--band .yeswas-subscribe__rss { flex: 0 0 auto; gap: 10px; }
#container .yeswas-subscribe--band .yeswas-subscribe__rss .yeswas-sub-btn { width: auto; flex: 0 0 auto; }

/* hero (black) right column */
#site-home-welcome .widget-title { color: #fff; font-size: 1.125rem; margin-bottom: 1rem; }

/* ---------------------------------------------------------------- search form */

.yeswas-search { display: flex; gap: 0; width: 100%; }
#container .yeswas-search__field { flex: 1 1 auto; min-width: 0; width: auto; min-height: 44px; padding: 8px 12px; border: 1px solid #5b6070; border-right: 0; border-radius: 8px 0 0 8px; background: #fff; color: #181818; font-size: 16px; }
#container .yeswas-search__field:focus { border-color: #182879; box-shadow: inset 0 0 0 1px #182879; outline: none; }
#container .yeswas-search__submit { flex: 0 0 auto; min-height: 44px; padding: 8px 16px; border-radius: 0 8px 8px 0; background: #182879; color: #fff; font-size: 15px; font-weight: 600; border: 1px solid #182879; }
#container .yeswas-search__submit:hover,
#container .yeswas-search__submit:focus { background: #131e58; color: #fff; border-color: #131e58; }
#container .yeswas-search__submit:focus-visible { outline: 3px solid #182879; outline-offset: 2px; }
#site-main .page-title + .yeswas-search,
#site-main .archives-content + .yeswas-search { margin-bottom: 2rem; }
.yeswas-mobile-search { margin-bottom: 1.25rem; }
#site-mobile-menu .yeswas-search__field { border-color: #fff; }
#site-mobile-menu .yeswas-search__submit { background: #fff; color: #182879; border-color: #fff; }
#container #site-mobile-menu .yeswas-search__submit:hover,
#container #site-mobile-menu .yeswas-search__submit:focus { background: #eef1ff; color: #182879; }
#container #site-mobile-menu .yeswas-search__submit:focus-visible { outline-color: #FFD60A; }
#site-mobile-menu .yeswas-search { display: flex; }

/* ---------------------------------------------------------------- forum button (was red, 13px, 4.0:1) */

#container a.buttonik {
	display: inline-block; box-sizing: border-box;
	min-height: 48px; padding: 14px 28px; margin: 0;
	background: #182879; color: #fff; border-radius: 8px;
	font-size: 16px; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none;
}
#container a.buttonik strong { font-weight: 700; }
#container a.buttonik:hover,
#container a.buttonik:focus { background: #131e58; color: #fff; text-decoration: underline; }
#container a.buttonik:focus-visible { outline: 3px solid #182879; outline-offset: 2px; }

/* ---------------------------------------------------------------- sticky sidebar (inner pages) */

@media (min-width: 769px) and (min-height: 720px) {
	.site-section-wrapper-main > .site-column-aside > .site-column-wrapper { position: sticky; top: 24px; }
}

/* ---------------------------------------------------------------- home episode list */

.yeswas-page-num { font-weight: 400; font-size: .6em; }
.yeswas-episode-list .yeswas-episode__body > * { margin-top: 0; margin-bottom: 0; }
.yeswas-episode-list .entry-tagline { margin-bottom: .75rem; }
.yeswas-episode-list .entry-title { margin-bottom: .5rem; }
.yeswas-episode-list .entry-title a:hover,
.yeswas-episode-list .entry-title a:focus { text-decoration: underline; }
.yeswas-episode__excerpt {
	color: #484848; font-size: .9375rem; line-height: 1.6;
	display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.yeswas-episode-list .yeswas-player { margin-top: 1.125rem; }

/* click-to-load player */
.yeswas-player { max-width: 640px; }
.yeswas-player.is-loaded iframe { display: block; width: 100%; border: 0; border-radius: 10px; }
.yeswas-player audio { display: block; width: 100%; }
#container .yeswas-player__btn {
	display: flex; align-items: center; justify-content: flex-start; gap: 16px; box-sizing: border-box; width: 100%;
	min-height: 96px; padding: 0 16px 0 0; overflow: hidden;
	background: #fff; color: #181818; border: 1px solid #c9ccd6; border-radius: 12px;
	font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
#container .yeswas-player__btn:hover,
#container .yeswas-player__btn:focus { background: #fff; color: #181818; border-color: #182879; box-shadow: 0 2px 10px rgba(24, 40, 121, .15); }
#container .yeswas-player__btn:focus-visible { outline: 3px solid #182879; outline-offset: 2px; }
.yeswas-player__media { position: relative; flex: none; width: 96px; height: 96px; background: #182879; }
.yeswas-player__art { display: block; width: 96px; height: 96px; object-fit: cover; }
.yeswas-player__play {
	position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
	display: flex; align-items: center; justify-content: center; padding-left: 3px; box-sizing: border-box;
	background: #182879; color: #fff; border: 2px solid #fff; border-radius: 50%;
	transition: transform .15s;
}
.yeswas-player__btn:hover .yeswas-player__play { transform: scale(1.08); }
.yeswas-player__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 15px; line-height: 1.35; }
.yeswas-player__text strong { font-weight: 700; }
.yeswas-player__title { color: #484848; font-size: 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.yeswas-player__fallback { display: inline-block; padding: 10px 0; }

/* ---------------------------------------------------------------- footer */

.yeswas-footer { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 56px; }
#site-footer .yeswas-footer .widget-title { margin-bottom: 1.25rem; font-size: 1.125rem; }
.yeswas-footer--links-only { grid-template-columns: 1fr; } /* the subscribe block was already printed higher on the page */
/* Links-only footer: one centred row instead of a lonely column with an empty right half (Paweł, 2026-10-27).
   The heading stays for screen readers; the nav already has aria-label. */
.yeswas-footer--links-only .yeswas-footer__col--links > .widget-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#site-footer .yeswas-footer--links-only .yeswas-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; }
.yeswas-footer__links { list-style: none; margin: 0; padding: 0; }
.yeswas-footer__links li { margin: 0; }
#site-footer .yeswas-footer__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; }

/* ---------------------------------------------------------------- header on small screens */

@media (max-width: 768px) {
	/* Logo and Menu button on one row; the opened menu drops below (display: contents lets it wrap as a flex row). */
	.site-section-wrapper-masthead { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 16px; }
	.site-section-wrapper-masthead > * { text-align: left; }
	#site-logo { flex: 0 1 auto; min-width: 0; }
	#site-section-primary-menu { display: contents; }
	#site-mobile-menu-toggle { margin-left: auto; }
	/* border-box: with content-box the 1.25rem padding pushed the panel 40px past the right edge on phones. */
	#site-mobile-menu { flex: 0 0 100%; box-sizing: border-box; max-width: 100%; margin: 1rem 0 0; padding: 1.25rem; }
	#container #site-mobile-menu-toggle .site-toggle-anchor { min-height: 44px; padding: .75rem 1rem; }
	#site-masthead { padding: .75rem 0; }
}
@media (max-width: 600px) {
	#site-logo .custom-logo { max-height: 48px; width: auto; max-width: 100%; }
}
@media (max-width: 640px) {
	.yeswas-footer { grid-template-columns: 1fr; gap: 32px; }
	.yeswas-subscribe--full .yeswas-subscribe__list { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
	.yeswas-subscribe--band .yeswas-subscribe__list { display: grid; grid-template-columns: 1fr; }
	#container .yeswas-subscribe--band .yeswas-sub-btn { width: 100%; }
	#container .yeswas-subscribe--band .yeswas-subscribe__rss .yeswas-sub-btn { width: auto; flex: 1 1 0; }
	.yeswas-player__media, .yeswas-player__art { width: 80px; height: 80px; }
	#container .yeswas-player__btn { min-height: 80px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.yeswas-player__play, .yeswas-sub-btn, .yeswas-player__btn { transition: none; }
}

/* Close state of the mobile menu button: an X icon (icomoon has none) and the label "Zamknij". */
#site-mobile-menu-toggle .site-toggle-icon-close svg { display: block; width: 1em; height: 1em; }

/* Five menu items next to the logo need tighter gaps between 769 and 1100px (541px of labels + 4 x 24px > 622px). */
@media (min-width: 769px) and (max-width: 1100px) {
	#site-primary-menu > li { margin-left: 16px; }
	#site-primary-menu > li:first-child { margin-left: 0; }
}
