/*
Theme Name: TyfloPodcast (2026)
Description: Odswiezony motyw TyfloPodcast (bez zmiany ukladu) + poprawki dostepnosci.
Text Domain: tyflopodcast
*/

:root {
    --tp-font-sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --tp-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

    --tp-color-text: #111827;
    --tp-color-muted: #374151;
    --tp-color-bg: #f4f6fb;
    --tp-color-surface: #ffffff;
    --tp-color-border: #d1d5db;
    --tp-color-border-strong: #9ca3af;
    --tp-color-link: #1d4ed8;
    --tp-color-link-hover: #1e40af;
    --tp-color-focus: #285a8a;

    --tp-radius-lg: 16px;
    --tp-radius-md: 12px;
    --tp-radius-sm: 10px;
    --tp-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 30px rgba(0, 0, 0, 0.08);

    --tp-max-width: 910px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--tp-color-bg);
    margin: 0;
}
body {
    background: var(--tp-color-bg);
    font-family: var(--tp-font-sans);
    color: var(--tp-color-text);
    font-size: 16px;
    line-height: 1.6;
    padding: 50px 0 0 0;
    margin: 0;
}
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    clip: auto !important;
    -webkit-clip-path: none;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}
.hidden {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
.hidden:focus {
    clip: auto !important;
    -webkit-clip-path: none;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}
.disabled > a {
    cursor: default;
    text-decoration: none;
}
img {
    border: 0px;
    max-width: 100%;
    height: auto;
}
.searchform label {
    display: inline-block;
    margin-right: 6px;
}
.searchform input[type="search"] {
    max-width: 100%;
}
.searchform input[type="search"],
.searchform input[type="text"],
.searchform input[type="email"],
.searchform textarea {
    padding: 8px 10px;
    border: 1px solid var(--tp-color-border);
    border-radius: var(--tp-radius-sm);
    background: var(--tp-color-surface);
    color: var(--tp-color-text);
}
.searchform input[type="submit"],
input[type="submit"],
button {
    padding: 8px 12px;
    border: 1px solid var(--tp-color-border-strong);
    border-radius: var(--tp-radius-sm);
    background: var(--tp-color-surface);
    color: var(--tp-color-text);
    font-weight: 600;
    cursor: pointer;
}
.searchform input[type="submit"]:hover,
input[type="submit"]:hover,
button:hover {
    background: #eef2ff;
}
.img-replace {
    overflow: hidden;
    position: relative;
    display: block;
    border-radius: clamp(0px, 1vw, var(--tp-radius-lg));
    box-shadow: var(--tp-shadow);
    background: var(--tp-color-surface);
}
.img-replace span {
    width: 100%;
    height: 100%;
    position: absolute;
    display: block;
}
#site-header {
    width: 90%;
    max-width: var(--tp-max-width);
    margin: 0 auto 16px auto;
}
#head {
    margin: 0 auto;
}
.img-replace,
#head {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 150px;
}
#head span {
    top: 0;
    left: 0;
    background: url('img/tyflohead.jpg') center / contain no-repeat;
}
#head a {
    text-decoration: none;
}

@supports (aspect-ratio: 1) {
    .img-replace,
    #head {
        height: auto;
        aspect-ratio: 911 / 150;
    }
}

#site-header .menu {
    margin: 14px 0 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
#site-header .menu a {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--tp-color-border);
    background: var(--tp-color-surface);
    text-decoration: none;
    font-weight: 700;
    color: var(--tp-color-text);
}
#site-header .menu a:hover {
    background: #eef2ff;
    color: var(--tp-color-link-hover);
    text-decoration: none;
}
#breadcrumbs a {
    text-decoration: underline;
}
#breadcrumbs a:hover {
    text-decoration: underline;
}
#breadcrumbs a:last-child {
    font-weight: bold;
}
#content {
    clear: both;
    width: 90%;
    max-width: 910px;
    margin: 0 auto;
    position: relative;
}
.on {
    background: var(--tp-color-surface);
    border: 1px solid var(--tp-color-border);
    border-radius: var(--tp-radius-lg);
    box-shadow: var(--tp-shadow);
    padding: 24px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.lewa {
    flex: 1 1 auto;
    min-width: 0;
}
.prawa {
    flex: 0 0 260px;
    min-width: 0;
    border-left: 1px solid var(--tp-color-border);
    padding-left: 24px;
}
.entry img,
.prawa img {
    display: block;
}
.entry img {
    margin: 0.5rem 0;
}
#foot {
    clear: both;
    margin: 16px auto 0px auto;
    width: 90%;
    max-width: 910px;
    padding: 18px 12px 24px 12px;
    background: transparent;
    font-size: 0.875rem;
    text-align: center;
    color: var(--tp-color-muted);
}
#foot .menu {
    text-align: center;
    margin: 12px 0 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
#foot .menu .spc {
    margin-left: auto;
}
#foot .menu li {
    display: inline-flex;
    padding: 0;
    border: 0;
}
#foot .menu li a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 10px;
    border-radius: var(--tp-radius-sm);
    text-decoration: none;
}
#foot .menu li a:hover {
    text-decoration: underline;
    background: #eef2ff;
}
.pgntn-page-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px 10px;
    border-radius: var(--tp-radius-sm);
    border: 1px solid var(--tp-color-border);
    background: var(--tp-color-surface);
    text-decoration: none !important;
    color: var(--tp-color-text) !important;
}
.pgntn-page-pagination .page-numbers:hover {
    background: #eef2ff;
    color: var(--tp-color-link-hover) !important;
}
.pgntn-page-pagination .page-numbers.current {
    color: var(--tp-color-text) !important;
    background: var(--tp-color-surface) !important;
    border: 2px solid var(--tp-color-text) !important;
}
#menu {
    margin: 16px 0 0 0;
    padding: 12px;
    background: var(--tp-color-surface);
    border: 1px solid var(--tp-color-border);
    border-radius: var(--tp-radius-lg);
    box-shadow: var(--tp-shadow);
}
#menu h2 {
    margin: 0 0 8px 0;
    font-size: 1.125rem;
}
.menulewe ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.menulewe li {
    position: relative;
}
.menulewe a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 10px;
    border-radius: var(--tp-radius-sm);
    text-decoration: none;
    color: var(--tp-color-text);
    font-weight: 700;
}
.menulewe a:hover {
    background: #eef2ff;
    color: var(--tp-color-link-hover);
    text-decoration: underline;
}
.menulewe ul.sub-menu {
    background: var(--tp-color-surface);
    margin: 0;
    padding: 6px;
    float: none;
    min-width: 12rem;
    width: auto;
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    z-index: 1000;
    border: 1px solid var(--tp-color-border);
    border-radius: var(--tp-radius-md);
    box-shadow: var(--tp-shadow);
}
.menulewe li:hover > ul.sub-menu,
.menulewe li:focus-within > ul.sub-menu {
    display: block;
}
.menulewe ul.sub-menu li {
    line-height: 20px;
    padding: 0;
    float: none;
}
.menulewe ul.sub-menu a {
    display: block;
    padding: 8px 10px;
    border-radius: var(--tp-radius-sm);
    font-weight: 600;
}
ul.menuprawe {
    font-size: 11pt;
    list-style: none;
    display: inline;
    margin-right: 15px;
    margin-top: 0px;
}
.menuprawe li {
    height: 24px;
    float: left;
    padding: 15px 5px 10px 10px;
}
div.pliki,
ul.pliki {
    margin-top: 10px;
}
.leady li {
    margin-bottom: 10px;
    border-bottom: 1px dotted #c0c0c0;
}
.menuprawe li a,
.menuprawe li a:visited {
    height: 34px;
    display: block;
}
#foot a {
    color: var(--tp-color-link);
}
a {
    color: var(--tp-color-link);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    text-decoration-thickness: from-font;
}
:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid var(--tp-color-focus);
    outline-offset: 2px;
}
#main-content:focus {
    outline: 3px solid var(--tp-color-focus);
    outline-offset: 6px;
}
a:hover {
    text-decoration: underline;
    color: var(--tp-color-link-hover);
}
a.link {
    font-size: 11px;
}
.tip {
    margin: 0 0 0 26px;
    padding: 0;
}
.tip span {
    font-weight: bold;
}
hr.dot {
    border: 10px solid #fff;
}
h1,
.h1 {
    font-size: 2rem;
    margin: 0.75em 0 0.4em 0;
    font-weight: 800;
    letter-spacing: -0.015em;
}
h2,
.h2 {
    font-size: 1.5rem;
    margin: 1.2em 0 0.5em 0;
    font-weight: 800;
    letter-spacing: -0.01em;
}
h3,
h2,
h4,
.h5,
h2.a,
h3.p,
h3.r {
    font-weight: bold;
}
.h5 {
    font-size: 1.125rem;
    margin: 1.1em 0 0.5em 0;
}

.aud,
.post {
    padding: 16px 0;
    border-bottom: 1px solid var(--tp-color-border);
}
.aud:last-child,
.post:last-child {
    border-bottom: 0;
}
.aud h2 {
    margin-top: 0;
}
.aud h2 a {
    color: inherit;
    text-decoration: none;
}
.aud h2 a:hover {
    text-decoration: underline;
    color: var(--tp-color-link-hover);
}
.container {
    max-width: 100%;
}

div.pliki,
ul.pliki {
    margin-top: 12px;
    padding-left: 0;
}
.pliki > li,
.pliki > div {
    list-style: none;
    margin: 10px 0;
    padding: 12px;
    border: 1px solid var(--tp-color-border);
    border-radius: var(--tp-radius-md);
    background: #f9fafb;
}
.plik {
    margin: 0;
}
.plik a {
    font-weight: 700;
}

.ccstopka {
    border-top: 1px solid var(--tp-color-border);
    margin-top: 24px;
    padding-top: 16px;
    clear: both;
    color: var(--tp-color-muted);
}
.cclogo,
.ccdisc {
    float: none;
    width: auto;
    height: auto;
}
.cclogo img {
    margin: 0 auto;
}
.ccdisc {
    margin-top: 8px;
    font-size: 0.875rem;
}
.clrbth {
    clear: both;
}

.categories {
    margin: 0;
    padding: 0;
}
.categories li {
    margin: 6px 0;
}
.categories a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 8px;
    border-radius: var(--tp-radius-sm);
    text-decoration: none;
    color: var(--tp-color-text);
    font-weight: 600;
}
.categories a:hover {
    text-decoration: underline;
    background: #eef2ff;
    color: var(--tp-color-link-hover);
}

.rss {
    margin: 0.5rem 0 1rem 0;
}
.rss a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--tp-color-border);
    background: var(--tp-color-surface);
    text-decoration: none;
    font-weight: 700;
    color: var(--tp-color-text);
}
.rss a::before {
    content: "";
    width: 16px;
    height: 16px;
    background: url('img/ico-rss.png') center / contain no-repeat;
    flex: 0 0 16px;
}
.rss a:hover {
    background: #eef2ff;
    color: var(--tp-color-link-hover);
    text-decoration: none;
}
.count {
    margin: 0.5rem 0 1.25rem 0;
    color: var(--tp-color-muted);
}

audio {
    width: 100%;
    max-width: 100%;
}
.play-time-link {
    font-weight: 700;
}

#comments {
    margin-top: 24px;
}
#commentslist {
    margin: 0;
    padding: 0;
}
#commentslist li {
    list-style: none;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--tp-color-border);
    border-radius: var(--tp-radius-md);
    background: #f9fafb;
}
#commentslist .comment-meta {
    color: var(--tp-color-muted);
    font-size: 0.875rem;
}
#comments textarea,
#comments input[type="text"],
#comments input[type="email"],
#comments input[type="url"] {
    width: 100%;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--tp-color-border);
    border-radius: var(--tp-radius-sm);
    background: var(--tp-color-surface);
    color: var(--tp-color-text);
}
pre,
code {
    font-family: var(--tp-font-mono);
}
pre {
    padding: 12px;
    border-radius: var(--tp-radius-md);
    background: #0b1220;
    color: #f9fafb;
    overflow: auto;
}
code {
    padding: 0 0.25em;
    border-radius: 6px;
    background: #eef2ff;
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
@media (max-width: 1200px) {
    #site-header, #content, #foot {
        width: 95%;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    #site-header, #content, #foot {
        width: 100%;
        max-width: none;
        padding: 0 10px;
    }
    .on {
        flex-direction: column;
        padding: 18px;
        gap: 18px;
    }
    .prawa {
        flex: 1 1 auto;
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--tp-color-border);
        padding-top: 18px;
    }
    .menulewe ul {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .menulewe a {
        justify-content: center;
        width: 100%;
    }
    .menulewe ul.sub-menu {
        position: static;
        min-width: 0;
        border: 0;
        box-shadow: none;
        padding: 0 0 0 14px;
        margin-top: 4px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px 0 0 0;
    }
}
