:root {
    --home-font: Manrope, Arial, sans-serif;
}

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

[hidden] {
    display: none !important;
}

body.home-page {
    margin: 0;
    background: #fff;
    color: #202832;
    font-family: var(--home-font);
}

.home-page :is(button, input, textarea, select) {
    font-family: inherit;
}

.home-page :focus-visible {
    outline: 3px solid #216bcf;
    outline-offset: 3px;
}

:where(.home-page) a {
    color: inherit;
}

.home-skip-link {
    position: fixed;
    z-index: 10020;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    color: #fff;
    background: #216bcf;
    transform: translateY(calc(-100% - 20px));
}

.home-skip-link:focus {
    transform: none;
}

#main-content {
    scroll-margin-top: 180px;
}

.home-page .po-breadcrumbs {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 184px 20px 18px;
    color: #708196;
    font-size: 14px;
    line-height: 1.5;
}

.home-page .po-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-page .po-breadcrumbs li {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.home-page .po-breadcrumbs li + li::before {
    content: '›';
    margin-right: 10px;
    color: #a3b1c0;
}

.home-page .po-breadcrumbs a {
    color: #216bcf;
    text-decoration: none;
}

.home-page .po-breadcrumbs a:hover {
    text-decoration: underline;
}

.home-page .po-breadcrumbs [aria-current] {
    color: #66778a;
}

.rebar-category-page .home-footer-heading {
    padding: 40px 20px 34px;
}

.rebar-category-page .home-footer-heading h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.rebar-category-page .home-footer-heading p {
    margin: 12px 0 0;
    font-size: 18px;
    line-height: 1.5;
}

@media (max-width: 1199px) and (min-width: 960px) {
    .home-page .po-breadcrumbs {
        padding-top: 138px;
    }
}

@media (max-width: 959px) {
    #main-content {
        scroll-margin-top: 120px;
    }

    .home-page .po-breadcrumbs {
        padding: 86px 20px 14px;
        font-size: 12px;
    }

    .home-page .po-breadcrumbs ol {
        gap: 5px 8px;
    }
}

@media (max-width: 640px) {
    .rebar-category-page .home-footer-heading {
        padding: 30px 20px 22px;
    }

    .rebar-category-page .home-footer-heading h2 {
        font-size: 28px;
    }

    .rebar-category-page .home-footer-heading p {
        font-size: 16px;
        max-width: 340px;
        margin-inline: auto;
    }
}

.cms-content-block {
    max-width: 1200px;
    margin: 0 auto;
    padding: 42px 20px;
    color: #173b66;
    line-height: 1.6;
}

.cms-content-block h2 {
    font-size: 28px;
    margin: 0 0 20px;
}

.cms-content-block img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.cms-prose {
    font-size: 18px;
}

.cms-content-block a.cms-action,
[data-cms-rich] a.cms-rich-button {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 8px;
    background: #216bcf;
    color: #fff;
    text-decoration: none;
}

[data-cms-rich] a.cms-rich-button-outline {
    background: #fff;
    border: 1px solid #216bcf;
    color: #216bcf;
}

[data-cms-rich] a.cms-rich-document {
    color: #216bcf;
    overflow-wrap: anywhere;
}

[data-cms-rich] .cms-rich-media {
    max-width: 100%;
    margin: 24px auto;
}

[data-cms-rich] .cms-rich-media :is(img, video, iframe) {
    display: block;
    max-width: 100%;
    height: auto;
}

[data-cms-rich] .cms-rich-media iframe {
    aspect-ratio: 16 / 9;
    border: 0;
}

[data-cms-rich] figcaption {
    margin-top: 8px;
    text-align: center;
    font-size: 14px;
}

[data-cms-rich] .cms-rich-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

[data-cms-rich] .cms-rich-table :is(td, th) {
    border: 1px solid #d8e3ef;
    padding: 8px 12px;
}

.po-journal {
    padding: 64px 24px;
    background: #f4f6f9;
    color: #172b43;
    scroll-margin-top: 180px;
}

.po-journal-container {
    max-width: 1200px;
    margin: auto;
}

.po-journal a {
    color: inherit;
    text-decoration: none;
}

.po-journal-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 32px;
    margin-bottom: 32px;
}

.po-journal-eyebrow, .po-journal-topic {
    display: block;
    color: #216bcf;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.po-journal-heading h2 {
    font-size: 46px;
    line-height: 1.08;
    letter-spacing: -1.4px;
    margin: 16px 0 0;
}

.po-journal-heading > p {
    font-size: 18px;
    line-height: 1.6;
    color: #63758b;
    margin: 0;
}

.po-journal-stories {
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    gap: 18px 24px;
}

.po-journal-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe6ef;
    border-radius: 16px;
}

.po-journal-image {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    min-width: 0;
}

.po-journal-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s;
}

.po-journal-card:hover img {
    transform: scale(1.025);
}

.po-journal-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.po-journal-card :is(h2, h3) {
    font-size: 21px;
    line-height: 1.22;
    margin: 9px 0 12px;
    letter-spacing: -.3px;
}

.po-journal-card p {
    font-size: 16px;
    line-height: 1.5;
    color: #63758b;
    margin: 0 0 18px;
}

.po-journal-stories .po-journal-card:not(.po-journal-feature) p {
    display: none;
}

.po-journal-read {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.po-journal-read span {
    font-size: 25px;
    color: #216bcf;
}

.po-journal-feature {
    grid-row: span 3;
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
}

.po-journal-feature .po-journal-image {
    border-radius: 15px 15px 0 0;
    flex: 1;
    min-height: 235px;
    max-height: 330px;
}

.po-journal-feature .po-journal-image img {
    aspect-ratio: 1.75;
    max-height: 330px;
}

.po-journal-feature .po-journal-copy {
    padding: 24px;
    flex: 1;
}

.po-journal-feature :is(h2, h3) {
    font-size: 30px;
    line-height: 1.16;
    margin: 12px 0 14px;
}

.po-journal-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-top: 1px solid #d7e0eb;
    margin-top: 28px;
    padding-top: 24px;
    color: #63758b;
    font-size: 14px;
}

.po-journal-foot > a {
    color: #216bcf;
    font-weight: 700;
    white-space: nowrap;
}

.cookie-card {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10010;
    width: 400px;
    max-width: calc(100vw - 32px);
    padding: 22px;
    color: #183e50;
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(232,245,251,.98));
    border: 1px solid #fff;
    border-radius: 20px;
    box-shadow: 0 16px 60px #153e5130;
    font-family: Arial, sans-serif;
}

.cookie-card .cookie-kicker {
    margin: 0 0 10px;
    color: #6991a4;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.cookie-card h2 {
    margin: 0 0 10px;
    color: #163b4c;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -.7px;
}

.cookie-card .cookie-copy {
    margin: 0 0 12px;
    color: #496575;
    font-size: 13px;
    line-height: 1.55;
}

.cookie-card a {
    color: #267997;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-card .cookie-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 18px;
    margin: 0 0 19px;
    font-size: 12px;
    line-height: 1.65;
}

.cookie-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cookie-buttons button {
    min-height: 40px;
    padding: 9px 14px;
    color: #216bcf;
    background: #fff;
    border: 1px solid #cbdcf0;
    border-radius: 9px;
    font: 600 12px/20px Arial, sans-serif;
    cursor: pointer;
}

.cookie-buttons .accept {
    background: #216bcf;
    border-color: #216bcf;
    color: #fff;
}

.cookie-buttons .accept:hover {
    background: #195cb8;
    border-color: #195cb8;
}

.cookie-card .cookie-status:empty {
    display: none;
}

.cookie-settings {
    position: fixed;
    bottom: 12px;
    left: 14px;
    z-index: 10011;
    padding: 9px 14px;
    border: 1px solid #d5e5ec;
    border-radius: 20px;
    background: #fffffff2;
    color: #37657b;
    font: 12px/1.2 Arial, sans-serif;
    cursor: pointer;
}

@media (max-width: 1050px) {
    .po-journal-card {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 14px;
    }

    .po-journal-card :is(h2, h3) {
        font-size: 19px;
    }

    .po-journal-feature :is(h2, h3) {
        font-size: 27px;
    }
}

@media (max-width: 760px) {
    .po-journal {
        padding: 40px 20px;
        scroll-margin-top: 90px;
    }

    .po-journal-heading {
        display: block;
    }

    .po-journal-heading h2 {
        font-size: 36px;
    }

    .po-journal-heading > p {
        margin-top: 20px;
        font-size: 16px;
    }

    .po-journal-stories {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .po-journal-feature {
        grid-row: auto;
    }

    .po-journal-feature .po-journal-image {
        min-height: 0;
        max-height: 300px;
    }

    .po-journal-feature .po-journal-image img {
        height: 270px;
        aspect-ratio: auto;
    }

    .po-journal-card {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .po-journal-foot {
        font-size: 13px;
    }

    .po-journal-foot > span {
        max-width: 220px;
    }
}

@media (min-width: 601px) {
    .cookie-card .cookie-links {
        flex-wrap: nowrap;
        gap: 12px;
        font-size: 11px;
    }

    .cookie-card .cookie-links a {
        white-space: nowrap;
    }
}

@media (max-width: 767px) {
    .cookie-settings {
        bottom: calc(70px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 600px) {
    .cookie-card {
        left: 12px;
        right: 12px;
        bottom: 64px;
        width: auto;
        max-width: none;
        max-height: calc(100dvh - 90px);
        overflow: auto;
        padding: 18px;
        border-radius: 18px;
    }

    .cookie-card h2 {
        font-size: 21px;
    }

    .cookie-card .cookie-links {
        gap: 6px 14px;
        margin-bottom: 16px;
        font-size: 11px;
    }

    .cookie-buttons {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .po-journal-heading h2 {
        font-size: 32px;
        letter-spacing: -.8px;
    }

    .po-journal-card {
        grid-template-columns: 86px minmax(0, 1fr);
        padding: 12px;
        gap: 12px;
    }

    .po-journal-card :is(h2, h3) {
        font-size: 18px;
    }

    .po-journal-topic {
        font-size: 10px;
        letter-spacing: .8px;
    }

    .po-journal-feature {
        padding: 0;
    }

    .po-journal-feature .po-journal-copy {
        padding: 20px;
    }

    .po-journal-feature :is(h2, h3) {
        font-size: 25px;
    }

    .po-journal-feature .po-journal-image img {
        height: 220px;
    }

    .po-journal-card p {
        font-size: 15px;
    }

    .po-journal-read {
        font-size: 13px;
    }

    .po-journal-foot {
        align-items: start;
    }
}
