/* Recreated from the 2019–2022 goldratt.pl stylesheet (Hugo 0.54.0),
   with layout fixes for fixed-header overlap, figure captions, responsive columns,
   and extended monograph sections. */

@font-face {
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/noto-sans-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/noto-sans-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Noto Serif';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/noto-serif-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Noto Serif';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/noto-serif-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Noto Serif';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/noto-serif-400-italic.woff2') format('woff2');
}

html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
}

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

body {
    margin: 0;
    background-color: #f3f3f3;
    color: #333;
    padding: 0;
    font: 16px/1.7 'Noto Serif', Georgia, serif;
}

h1,
h2,
h3,
h4,
nav,
footer ul,
th,
figcaption,
cite {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

a:link,
a:visited {
    color: #5a7c83;
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover,
a:active,
a:focus {
    color: #343434;
    text-decoration: underline;
}

/* Outer & inner paper sheet */
.outer-wrapper {
    margin: 0 auto;
    width: 100%;
}

@media screen and (min-width: 768px) {
    .outer-wrapper {
        width: 740px;
        box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    }
}

@media screen and (min-width: 1024px) {
    .outer-wrapper {
        width: 1118px;
    }
}

.inner-wrapper {
    background-color: #fff;
}

/* Header & navigation */
header {
    position: relative;
    background-color: #fff;
    padding-top: 24px;
    text-align: center;
}

@media screen and (min-width: 768px) {
    header {
        padding-top: 40px;
    }
}

.site-title {
    display: inline-block;
    background: #fff url('/logo.svg') center center no-repeat;
    background-size: 130px 55px;
    margin-bottom: 20px;
    width: 130px;
    height: 55px;
}

@media screen and (min-width: 768px) {
    .site-title {
        margin-bottom: 32px;
    }
}

.site-title span {
    position: absolute;
    margin: -1px;
    padding: 0;
    border: 0;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.contact {
    position: absolute;
    top: 28px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #343434;
    opacity: 0.8;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.contact:hover,
.contact:focus {
    opacity: 1;
    color: #5a7c83;
}

.contact svg {
    fill: currentColor;
}

@media screen and (min-width: 768px) {
    .contact {
        top: 48px;
        right: 50px;
    }
}

nav ul,
footer ul {
    margin: 0;
    padding: 0;
    border-top: 1px solid #f2f2f2;
    border-bottom: 1px solid #f2f2f2;
    list-style: none;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-align: center;
}

nav li,
footer li {
    display: block;
}

@media screen and (min-width: 768px) {
    nav li,
    footer li {
        display: inline-block;
    }
}

nav li a,
footer li a {
    display: inline-block;
    color: #343434;
    padding: 10px 12px;
    text-decoration: none;
    text-transform: uppercase;
}

@media screen and (min-width: 768px) {
    nav li a,
    footer li a {
        padding: 15px 1.25em;
    }
}

nav li a:hover,
nav li a:focus,
nav li a:active,
nav li a[aria-current="page"],
footer li a:hover,
footer li a:focus,
footer li a:active {
    color: #5a7c83;
    text-decoration: none;
}

nav li a[aria-current="page"] {
    font-weight: 700;
}

/* Hero figure */
.hero-img {
    margin: 0;
    position: relative;
}

.hero-img-frame {
    max-height: 240px;
    overflow: hidden;
    background-color: #1a1a1a;
}

@media screen and (min-width: 768px) {
    .hero-img-frame {
        max-height: 500px;
    }
}

.hero-img img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.hero-img figcaption {
    padding: 8px 25px 0;
    font-size: 0.78rem;
    color: #666;
    text-align: right;
    font-style: italic;
}

@media screen and (min-width: 768px) {
    .hero-img figcaption {
        padding: 10px 60px 0;
    }
}

/* Main headings */
main h1 {
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.2rem;
    line-height: 1.35;
    text-align: center;
    margin: 1.4em 20px 1.2em;
    color: #222;
}

@media screen and (min-width: 1024px) {
    main h1 {
        font-size: 2.35rem;
    }
}

main h1:after {
    content: '';
    display: block;
    background-color: #474747;
    width: 3em;
    height: 2px;
    margin: 0.5em auto 0;
    font-size: 32px;
}

main h2 {
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    color: #474747;
    margin: 2.2em 0 1.4em;
}

@media screen and (min-width: 768px) {
    main h2 {
        font-size: 1.25rem;
    }
}

main h3 {
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #2b2b2b;
    margin: 1.4em 0 0.45em;
}

/* Homepage two-column layout */
.home-page-content {
    padding-bottom: 45px;
}

.home-columns {
    padding: 0 25px;
}

@media screen and (min-width: 768px) {
    .home-columns {
        padding: 0 60px;
    }
}

@media screen and (min-width: 1024px) {
    .home-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 56px;
        padding: 10px 75px 25px;
        align-items: start;
    }
}

.col-6 p {
    margin: 0 0 1.15em;
    font-size: 0.95rem;
}

.home-section-divider {
    border: 0;
    border-top: 1px solid #ececec;
    margin: 20px 25px 10px;
}

@media screen and (min-width: 768px) {
    .home-section-divider {
        margin: 25px 60px 15px;
    }
}

@media screen and (min-width: 1024px) {
    .home-section-divider {
        margin: 30px 75px 20px;
    }
}

.focusing-steps {
    margin: 0.75em 0 1.25em;
    padding-left: 1.35em;
    font-size: 0.94rem;
}

.focusing-steps li {
    margin-bottom: 0.45em;
    padding-left: 0.25em;
}

.domain-pillars {
    margin: 0.5em 0 1.15em;
    padding-left: 1.2em;
    font-size: 0.94rem;
}

.domain-pillars li {
    margin-bottom: 0.65em;
}

/* Table on homepage */
table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #333;
    font-size: 0.88rem;
    margin: 0.5em 0 1.5em;
}

table a:link,
table a:visited {
    color: #506e75;
}

thead {
    border: 1px solid #333;
}

th {
    background-color: #333;
    color: #fff;
    text-align: left;
    padding: 0.55rem 0.7rem;
    border-right: 1px solid #fff;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

th[align="right"],
td[align="right"] {
    text-align: right;
}

th:last-child {
    border-right: 0;
}

tbody tr:nth-child(2n+1) {
    background-color: #edecec;
}

tbody tr td {
    padding: 0.55rem 0.7rem;
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
    vertical-align: top;
}

tbody tr td:last-child {
    border-right: 0;
}

/* Inner pages (/zasady-teorii-ograniczen, /cytaty, /ksiazki) */
.inner-page-content {
    padding: 10px 25px 45px;
}

@media screen and (min-width: 768px) {
    .inner-page-content {
        padding: 15px 60px 55px;
    }
}

@media screen and (min-width: 1024px) {
    .inner-page-content {
        padding: 20px 75px 65px;
    }
}

/* Zasady page */
.zasady-wrapper {
    max-width: 780px;
    margin: 0 auto;
}

.zasady-wrapper .hero-img {
    margin-bottom: 1.8em;
}

.zasady-wrapper .hero-img-frame {
    max-height: 460px;
}

.zasady-wrapper .hero-img figcaption {
    padding: 8px 0 0;
}

.zasady-intro {
    font-size: 0.98rem;
    color: #3a3a3a;
    margin-bottom: 1.6em;
}

.zasady-list {
    margin: 1.5em 0 2.2em;
    padding-left: 1.4em;
    font-size: 0.98rem;
    line-height: 1.72;
}

.zasady-list li {
    margin-bottom: 1.25em;
    padding-left: 0.35em;
}

.zasady-list li strong {
    display: block;
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.04rem;
    color: #222;
    margin-bottom: 0.2em;
}

.zasady-flow-box {
    background-color: #f9f9f9;
    border-left: 3px solid #5a7c83;
    padding: 18px 24px;
    margin: 2em 0;
    font-size: 0.95rem;
}

.zasady-flow-box h2 {
    text-align: left;
    margin: 0 0 0.6em;
    font-size: 1.02rem;
}

.zasady-flow-box ul {
    margin: 0.6em 0 0;
    padding-left: 1.25em;
}

.zasady-flow-box li {
    margin-bottom: 0.45em;
}

.zasady-cta {
    margin-top: 2.2em;
    padding-top: 1.5em;
    border-top: 1px solid #f2f2f2;
    font-size: 0.96rem;
}

.zasady-cta p {
    margin: 0.5em 0;
}

/* Cytaty page */
.quote-card {
    margin: 0;
    padding: 18px 15px;
}

blockquote {
    margin: 0;
    padding: 0;
    font-family: Georgia, 'Noto Serif', serif;
    font-size: 1.15rem;
    line-height: 1.62;
    font-style: italic;
    color: #2b2b2b;
}

blockquote:before {
    content: '„';
}

blockquote:after {
    content: '”';
}

.quote-source {
    display: block;
    margin-top: 8px;
    font-size: 0.78rem;
    font-style: normal;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #777;
}

.intro-quote-wrap {
    max-width: 780px;
    margin: 10px auto 30px;
    padding: 20px 20px 28px;
    text-align: center;
    border-bottom: 1px solid #f2f2f2;
}

.intro-quote {
    font-size: 1.28rem;
}

@media screen and (min-width: 768px) {
    .intro-quote-wrap {
        padding: 30px 40px 36px;
    }
    .intro-quote {
        font-size: 1.36rem;
    }
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px 44px;
    margin-top: 10px;
}

.flex-container .quote-card {
    flex-basis: 100%;
    text-align: center;
    padding: 18px 14px;
    border-bottom: 1px solid #f5f5f5;
}

@media screen and (min-width: 768px) {
    .flex-container .quote-card {
        flex-basis: 44%;
    }
}

/* Książki page */
.book-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 32px 28px;
    max-width: 860px;
    margin: 1.8em auto 2.8em;
    justify-items: center;
}

@media screen and (min-width: 768px) {
    .book-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

.book-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 175px;
    text-align: center;
    text-decoration: none;
}

.book-card picture {
    display: contents;
}

.book-card img {
    display: block;
    height: 220px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    background: #fff;
}

.book-card:hover img,
.book-card:focus img {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.book-card span {
    margin-top: 12px;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.84rem;
    line-height: 1.35;
    color: #343434;
}

.book-card:hover span {
    color: #5a7c83;
    text-decoration: underline;
}

.reading-guide {
    max-width: 820px;
    margin: 0 auto 2.8em;
    background-color: #f9f9f9;
    border-left: 3px solid #5a7c83;
    padding: 20px 26px;
    font-size: 0.95rem;
}

.reading-guide h2 {
    text-align: left;
    margin: 0 0 0.7em;
    font-size: 1.05rem;
}

.reading-guide ul {
    margin: 0;
    padding-left: 1.25em;
}

.reading-guide li {
    margin-bottom: 0.55em;
}

.book-descriptions {
    max-width: 820px;
    margin: 0 auto;
}

.book-detail {
    padding: 1.35em 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.book-detail:last-child {
    border-bottom: 0;
}

.book-detail h3 {
    margin: 0 0 0.35em;
    font-size: 1.05rem;
}

.book-detail .book-meta {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666;
    margin-bottom: 0.5em;
}

.book-detail p {
    margin: 0;
}

.publisher-note {
    text-align: center;
    margin-top: 2.4em;
    padding-top: 1.5em;
    border-top: 1px solid #f2f2f2;
    font-size: 0.95rem;
}

.book-actions {
    margin-top: 0.65em;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.82rem;
    color: #666;
}

.book-actions a {
    font-weight: 700;
}

.b2b-capture-grid {
    max-width: 820px;
    margin: 2.6em auto 1em;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.b2b-box {
    background-color: #f9f9f9;
    border: 1px solid #e6e6e6;
    border-left: 3px solid #5a7c83;
    padding: 24px 28px;
    font-size: 0.94rem;
}

.b2b-box h2 {
    text-align: left;
    margin: 0 0 0.55em;
    font-size: 1.08rem;
    color: #222;
}

.b2b-box p {
    margin: 0 0 1em;
}

.b2b-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px 20px;
    margin-top: 1em;
}

@media screen and (min-width: 768px) {
    .b2b-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.b2b-field {
    display: flex;
    flex-direction: column;
}

.b2b-field-full {
    grid-column: 1 / -1;
}

.b2b-field label {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #333;
    margin-bottom: 5px;
}

.b2b-field input,
.b2b-field select,
.b2b-field textarea {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.9rem;
    padding: 9px 11px;
    border: 1px solid #c8c8c8;
    background-color: #fff;
    color: #222;
    border-radius: 0;
}

.b2b-field input:focus,
.b2b-field select:focus,
.b2b-field textarea:focus {
    outline: none;
    border-color: #5a7c83;
}

.b2b-consent {
    grid-column: 1 / -1;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #555;
    margin-top: 2px;
}

.b2b-consent label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

.b2b-consent input[type="checkbox"] {
    margin-top: 3px;
}

.b2b-submit {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background-color: #333;
    color: #fff;
    border: 1px solid #333;
    padding: 11px 22px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.b2b-submit:hover,
.b2b-submit:focus {
    background-color: #5a7c83;
    border-color: #5a7c83;
}

.b2b-confirmation {
    display: none;
    max-width: 820px;
    margin: 0 auto 2em;
    padding: 18px 24px;
    background-color: #eef5f6;
    border-left: 3px solid #5a7c83;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.92rem;
    color: #222;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Słownik page */
.glossary-wrapper {
    max-width: 820px;
    margin: 0 auto;
}

.glossary-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    justify-content: center;
    margin: 0 0 2.2em;
    padding: 12px 18px;
    background-color: #f9f9f9;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.glossary-section-title {
    text-align: left;
    border-bottom: 1px solid #333;
    padding-bottom: 0.35em;
    margin: 2.2em 0 0.8em;
}

.glossary-item {
    padding: 1.15em 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.glossary-item:last-of-type {
    border-bottom: 0;
}

.glossary-item h3 {
    margin: 0 0 0.2em;
    font-size: 1.03rem;
    color: #222;
}

.glossary-meta {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.45em;
}

.glossary-item p {
    margin: 0;
}

/* Footer */
footer {
    background-color: #fff;
}

.footer-privacy {
    margin: 0;
    padding: 20px 25px 0;
    text-align: center;
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.82rem;
    color: #555;
    line-height: 1.5;
}

@media screen and (min-width: 768px) {
    .footer-privacy {
        padding: 24px 75px 0;
    }
}

.footer-privacy a {
    color: #5a7c83;
    text-decoration: underline;
}

.footer-privacy a:hover,
.footer-privacy a:focus,
.footer-privacy a:active {
    color: #474747;
}

.author {
    margin: 0;
    padding: 20px 25px 35px;
    text-align: right;
    font-size: 0.88rem;
    color: #555;
    overflow: hidden;
}

@media screen and (min-width: 768px) {
    .author {
        padding: 22px 75px 40px;
    }
}

.author a {
    color: #5a7c83;
    text-decoration: none;
}

.author a:hover,
.author a:focus,
.author a:active {
    color: #474747;
    text-decoration: underline;
}

.social-facebook {
    float: left;
    color: #343434;
    opacity: 0.75;
    transition: opacity 0.15s ease;
}

.social-facebook:hover {
    opacity: 1;
}

.social-facebook svg {
    fill: currentColor;
}

/* Monograph Chapters (/zagadnienia/ and chapter pages) */
.chapter-wrapper {
    max-width: 820px;
    margin: 0 auto;
}

.chapter-lead {
    background-color: #f9f9f9;
    border-left: 3px solid #5a7c83;
    padding: 18px 22px;
    margin: 0 0 1.8em;
    font-size: 0.98rem;
}

.chapter-lead p:last-child {
    margin-bottom: 0;
}

.chapter-wrapper h2 {
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 0.3em;
    margin: 2em 0 0.8em;
}

.chapter-table-wrap {
    overflow-x: auto;
    margin: 1.3em 0 1.6em;
}

.chapter-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.chapter-table th,
.chapter-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e6e6e6;
    text-align: left;
    vertical-align: top;
}

.chapter-table th {
    background-color: #f6f6f6;
    border-bottom: 2px solid #333;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #222;
}

.chapter-formula {
    background-color: #f6f8f9;
    border: 1px solid #e2eaec;
    padding: 14px 18px;
    margin: 1.2em 0;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.93rem;
    color: #222;
}

.chapter-faq-item {
    padding: 1em 0;
    border-bottom: 1px solid #eeeeee;
}

.chapter-faq-item:last-of-type {
    border-bottom: 0;
}

.chapter-faq-item h3 {
    margin: 0 0 0.35em;
    font-size: 1rem;
    color: #222;
}

.chapter-faq-item p {
    margin: 0;
    font-size: 0.94rem;
}

.chapter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 1.4em 0 2.2em;
}

@media screen and (min-width: 768px) {
    .chapter-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.chapter-card {
    display: block;
    padding: 18px 20px;
    border: 1px solid #e6e6e6;
    background-color: #fafafa;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.chapter-card:hover,
.chapter-card:focus {
    border-color: #5a7c83;
    background-color: #fff;
}

.chapter-card h3 {
    margin: 0 0 0.35em;
    font-size: 0.98rem;
}

.chapter-card p {
    margin: 0;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.55;
}

.chapter-card-meta {
    display: inline-block;
    margin-bottom: 6px;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5a7c83;
}

.chapter-breadcrumb {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin: 0 0 1.4em;
    text-align: center;
}

