/* PIousios Resources page — page-specific styles only. */
.reslib-page {
    --res-bg: #fbf7ef;
    --res-paper: #ffffff;
    --res-ink: #18120c;
    --res-muted: #655b52;
    --res-line: #e6d9c8;
    --res-gold: #c78a32;
    --res-gold-dark: #81531d;
    --res-black: #050403;
    background: var(--res-bg);
    color: var(--res-ink);
    font-family: var(--font-sans, Inter, Arial, sans-serif);
    overflow: clip;
}

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

.reslib-page .reslib-wrap {
    width: min(1240px, calc(100% - 48px));
    margin-inline: auto;
}

.reslib-page h1,
.reslib-page h2,
.reslib-page h3 {
    font-family: var(--font-serif, Georgia, serif);
    letter-spacing: -.035em;
}

.reslib-page p {
    line-height: 1.72;
}

.reslib-page a {
    text-decoration: none;
}

.reslib-page a:focus-visible,
.reslib-page button:focus-visible,
.reslib-page input:focus-visible,
.reslib-page summary:focus-visible {
    outline: 3px solid #d7a04f;
    outline-offset: 3px;
}

.reslib-page .reslib-kicker {
    display: inline-flex;
    margin-bottom: 14px;
    color: #e1ad59;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.35;
    text-transform: uppercase;
}

.reslib-page .reslib-dark-kicker {
    color: var(--res-gold-dark);
}

.reslib-page .reslib-btn {
    display: inline-flex;
    min-height: 50px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    border: 1px solid #c28933;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.reslib-page .reslib-btn-gold {
    background: linear-gradient(135deg, #efbc61, #b67725);
    color: #090602;
}

.reslib-page .reslib-btn-outline {
    border-color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .05);
    color: #fff;
}

@media (hover:hover) {
    .reslib-page .reslib-btn:hover {
        transform: translateY(-2px);
    }
}

.reslib-page .reslib-breadcrumb {
    display: flex;
    margin-bottom: 26px;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.reslib-page .reslib-breadcrumb a {
    color: #e4b35f;
}

.reslib-page .reslib-breadcrumb span {
    color: rgba(255,255,255,.72);
}

.reslib-page .reslib-hero {
    position: relative;
    background: var(--res-black);
    color: #fff;
}

.reslib-page .reslib-hero::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(90deg, #050403 0%, #050403 40%, rgba(5,4,3,.78) 57%, rgba(5,4,3,.18) 100%),
        radial-gradient(circle at 78% 36%, rgba(204,135,44,.24), transparent 36%);
    content: "";
    pointer-events: none;
}

.reslib-page .reslib-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 650px;
    grid-template-columns: .96fr 1.04fr;
    align-items: stretch;
}

.reslib-page .reslib-hero-copy {
    display: flex;
    padding: 78px 54px 70px 0;
    flex-direction: column;
    justify-content: center;
}

.reslib-page .reslib-hero-copy h1 {
    max-width: 670px;
    margin: 0 0 22px;
    font-size: clamp(48px, 5vw, 70px);
    line-height: .97;
}

.reslib-page .reslib-hero-copy p {
    max-width: 660px;
    margin: 0 0 16px;
    color: rgba(255,255,255,.82);
    font-size: 16px;
}

.reslib-page .reslib-hero-copy .reslib-lead {
    color: rgba(255,255,255,.94);
    font-size: 17px;
}

.reslib-page .reslib-hero-copy .reslib-lead strong {
    color: #fff;
}

.reslib-page .reslib-hero-actions {
    display: flex;
    margin-top: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.reslib-page .reslib-hero-media {
    position: relative;
    display: flex;
    min-height: 650px;
    overflow: hidden;
    align-items: stretch;
}

.reslib-page .reslib-hero-media > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    filter: saturate(1.03) contrast(1.03);
}

.reslib-page .reslib-resource-strip {
    position: absolute;
    right: 30px;
    bottom: 28px;
    left: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid rgba(225,173,89,.42);
    background: rgba(6,5,4,.82);
    backdrop-filter: blur(7px);
}

.reslib-page .reslib-strip-card {
    display: grid;
    padding: 15px 12px;
    grid-template-areas: "icon title" "icon desc";
    grid-template-columns: 40px 1fr;
    align-items: center;
    gap: 2px 10px;
    border-right: 1px solid rgba(225,173,89,.25);
}

.reslib-page .reslib-strip-card:last-child {
    border-right: 0;
}

.reslib-page .reslib-strip-icon {
    display: flex;
    width: 38px;
    height: 38px;
    grid-area: icon;
    align-items: center;
    justify-content: center;
    border: 1px solid #e1ad59;
    border-radius: 50%;
    color: #e1ad59;
    font-size: 16px;
}

.reslib-page .reslib-strip-card strong {
    grid-area: title;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    line-height: 1.2;
    text-transform: uppercase;
}

.reslib-page .reslib-strip-card small {
    grid-area: desc;
    color: rgba(255,255,255,.74);
    font-size: 11px;
    line-height: 1.35;
}

.reslib-page .reslib-tabs {
    overflow-x: auto;
    border-bottom: 1px solid var(--res-line);
    background: var(--res-bg);
}

.reslib-page .reslib-tabs-inner {
    display: flex;
    gap: 0;
}

.reslib-page .reslib-tabs a {
    display: inline-flex;
    min-width: max-content;
    min-height: 58px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--res-line);
    background: #fff;
    color: #3d2c1b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

@media (hover:hover) {
    .reslib-page .reslib-tabs a:hover {
        background: #f4ebde;
        color: #6f4618;
    }
}

.reslib-page #featured-resources,
.reslib-page #models-resource,
.reslib-page #brands-resource,
.reslib-page #agency-resource,
.reslib-page #insights-resource,
.reslib-page #tools-resource {
    scroll-margin-top: 120px;
}

.reslib-page .reslib-section {
    padding: 82px 0;
    background: var(--res-paper);
}

.reslib-page .reslib-tools-section {
    background: #fbfaf7;
}

.reslib-page .reslib-section-head {
    margin-bottom: 34px;
}

.reslib-page .reslib-split-head {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
    gap: 36px;
}

.reslib-page .reslib-section-head h2 {
    max-width: 590px;
    margin: 0;
    font-size: clamp(38px, 4vw, 52px);
    line-height: 1.02;
}

.reslib-page .reslib-section-head p {
    max-width: 560px;
    margin: 0;
    color: var(--res-muted);
    font-size: 15px;
}

.reslib-page .reslib-section-head > a {
    color: var(--res-gold-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.reslib-page .reslib-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.reslib-page .reslib-feature-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    border: 1px solid var(--res-line);
    background: #fff;
    box-shadow: 0 18px 40px rgba(30,20,10,.07);
}

.reslib-page .reslib-feature-card figure {
    height: 250px;
    margin: 0;
    overflow: hidden;
    background: #111;
}

.reslib-page .reslib-feature-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

@media (hover:hover) {
    .reslib-page .reslib-feature-card:hover img {
        transform: scale(1.025);
    }
}

.reslib-page .reslib-feature-card > div {
    display: flex;
    padding: 24px 24px 28px;
    flex: 1;
    flex-direction: column;
}

.reslib-page .reslib-feature-card span {
    display: block;
    margin-bottom: 9px;
    color: var(--res-gold-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.reslib-page .reslib-feature-card h3 {
    margin: 0 0 11px;
    font-size: 28px;
    line-height: 1.08;
}

.reslib-page .reslib-feature-card p {
    margin: 0 0 18px;
    color: var(--res-muted);
    font-size: 14px;
}

.reslib-page .reslib-feature-card a,
.reslib-page .reslib-tool-grid a {
    margin-top: auto;
    color: var(--res-gold-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.reslib-page .reslib-insight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--res-black);
    color: #fff;
}

.reslib-page .reslib-insight-photo {
    min-height: 590px;
    overflow: hidden;
}

.reslib-page .reslib-insight-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.reslib-page .reslib-insight-copy {
    display: flex;
    padding: 82px clamp(30px, 6vw, 88px);
    flex-direction: column;
    justify-content: center;
}

.reslib-page .reslib-insight-copy h2 {
    max-width: 650px;
    margin: 0 0 18px;
    font-size: clamp(40px, 4.3vw, 56px);
    line-height: 1.02;
}

.reslib-page .reslib-insight-copy > p {
    max-width: 610px;
    margin: 0 0 30px;
    color: rgba(255,255,255,.8);
    font-size: 15px;
}

.reslib-page .reslib-insight-list {
    display: grid;
    margin-bottom: 30px;
    gap: 16px;
}

.reslib-page .reslib-insight-list article {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: start;
    gap: 13px;
}

.reslib-page .reslib-insight-list span {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e1ad59;
    border-radius: 50%;
    color: #e1ad59;
    font-size: 12px;
    font-weight: 800;
}

.reslib-page .reslib-insight-list h3 {
    margin: 0 0 4px;
    color: #fff;
    font-family: var(--font-sans, Inter, Arial, sans-serif);
    font-size: 16px;
    letter-spacing: 0;
}

.reslib-page .reslib-insight-list p {
    margin: 0;
    color: rgba(255,255,255,.74);
    font-size: 13px;
}

.reslib-page .reslib-tool-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.reslib-page .reslib-tool-grid article {
    display: flex;
    min-height: 285px;
    padding: 26px;
    flex-direction: column;
    border: 1px solid var(--res-line);
    background: #fff;
    box-shadow: 0 16px 34px rgba(30,20,10,.05);
}

.reslib-page .reslib-tool-grid article > span {
    display: flex;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f4eadb;
    color: var(--res-gold-dark);
}

.reslib-page .reslib-tool-grid svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.reslib-page .reslib-tool-grid h3 {
    margin: 0 0 9px;
    font-family: var(--font-sans, Inter, Arial, sans-serif);
    font-size: 18px;
    letter-spacing: 0;
}

.reslib-page .reslib-tool-grid p {
    margin: 0 0 18px;
    color: var(--res-muted);
    font-size: 14px;
}

.reslib-page .reslib-faq {
    padding: 74px 0 84px;
    background: #fff;
}

.reslib-page .reslib-faq-grid {
    display: grid;
    grid-template-columns: .78fr 1.22fr;
    gap: 64px;
}

.reslib-page .reslib-faq h2 {
    margin: 0;
    font-size: clamp(38px, 4vw, 50px);
    line-height: 1.02;
}

.reslib-page .reslib-faq-list {
    display: grid;
    gap: 10px;
}

.reslib-page .reslib-faq-list details {
    border: 1px solid var(--res-line);
    background: #fff;
}

.reslib-page .reslib-faq-list summary {
    position: relative;
    display: flex;
    min-height: 58px;
    padding: 15px 54px 15px 18px;
    align-items: center;
    color: var(--res-ink);
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
    list-style: none;
}

.reslib-page .reslib-faq-list summary::-webkit-details-marker {
    display: none;
}

.reslib-page .reslib-faq-list summary::after {
    position: absolute;
    right: 16px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid #c99d60;
    border-radius: 50%;
    color: var(--res-gold-dark);
    content: "+";
    font-size: 17px;
    font-weight: 500;
}

.reslib-page .reslib-faq-list details[open] summary::after {
    content: "−";
}

.reslib-page .reslib-faq-list details p {
    margin: 0;
    padding: 0 18px 18px;
    color: var(--res-muted);
    font-size: 14px;
}

.reslib-page .reslib-faq-list details p a {
    color: var(--res-gold-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.reslib-page .reslib-newsletter {
    padding: 52px 0;
    background: linear-gradient(135deg, #a9671d, #cf9135);
    color: #fff;
}

.reslib-page .reslib-newsletter-inner {
    display: grid;
    grid-template-columns: 1fr minmax(360px, 520px);
    align-items: center;
    gap: 38px;
}

.reslib-page .reslib-newsletter span {
    display: block;
    margin-bottom: 8px;
    color: #fff2d3;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.reslib-page .reslib-newsletter h2 {
    margin: 0 0 8px;
    font-size: clamp(32px, 3.3vw, 40px);
    line-height: 1.05;
}

.reslib-page .reslib-newsletter p {
    max-width: 680px;
    margin: 0;
    color: rgba(255,255,255,.9);
    font-size: 14px;
}

.reslib-page .reslib-newsletter-form {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 158px;
    gap: 10px;
}

.reslib-page .reslib-email-input,
.reslib-page .reslib-submit {
    min-height: 54px;
    border-radius: 0;
    font: inherit;
}

.reslib-page .reslib-email-input {
    width: 100%;
    border: 1px solid rgba(255,255,255,.62);
    background: rgba(255,255,255,.12);
    color: #fff;
    padding: 0 15px;
    font-size: 14px;
}

.reslib-page .reslib-email-input::placeholder {
    color: rgba(255,255,255,.82);
}

.reslib-page .reslib-submit {
    border: 1px solid #050403;
    background: #050403;
    color: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.reslib-page .reslib-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.reslib-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1120px) {
    .reslib-page .reslib-resource-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .reslib-page .reslib-strip-card:nth-child(2) {
        border-right: 0;
    }

    .reslib-page .reslib-strip-card:nth-child(-n+2) {
        border-bottom: 1px solid rgba(225,173,89,.25);
    }

    .reslib-page .reslib-split-head {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .reslib-page .reslib-feature-grid,
    .reslib-page .reslib-tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .reslib-page .reslib-wrap {
        width: min(100% - 36px, 760px);
    }

    .reslib-page .reslib-hero-grid,
    .reslib-page .reslib-insight,
    .reslib-page .reslib-faq-grid,
    .reslib-page .reslib-newsletter-inner {
        grid-template-columns: 1fr;
    }

    .reslib-page .reslib-hero-grid {
        min-height: 0;
    }

    .reslib-page .reslib-hero-copy {
        padding: 54px 0 34px;
    }

    .reslib-page .reslib-hero-media {
        min-height: 540px;
    }

    .reslib-page .reslib-hero::before {
        background: linear-gradient(180deg, #050403 0%, #050403 44%, rgba(5,4,3,.16) 72%, rgba(5,4,3,.06) 100%);
    }

    .reslib-page .reslib-section {
        padding: 64px 0;
    }

    .reslib-page .reslib-insight-copy {
        padding: 54px 28px;
    }

    .reslib-page .reslib-faq {
        padding: 62px 0;
    }

    .reslib-page .reslib-faq-grid {
        gap: 30px;
    }

    .reslib-page .reslib-tabs-inner {
        width: max-content;
        margin: 0;
        padding: 0 18px;
    }
}

@media (max-width: 640px) {
    .reslib-page .reslib-wrap {
        width: calc(100% - 28px);
    }

    .reslib-page .reslib-hero-copy {
        padding-top: 40px;
    }

    .reslib-page .reslib-hero-copy h1 {
        font-size: 38px;
    }

    .reslib-page .reslib-hero-copy p,
    .reslib-page .reslib-hero-copy .reslib-lead {
        font-size: 14px;
    }

    .reslib-page .reslib-hero-actions,
    .reslib-page .reslib-newsletter-form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .reslib-page .reslib-btn,
    .reslib-page .reslib-submit {
        width: 100%;
    }

    .reslib-page .reslib-hero-media {
        min-height: 470px;
    }

    .reslib-page .reslib-resource-strip {
        right: 14px;
        bottom: 14px;
        left: 14px;
        grid-template-columns: repeat(2, 1fr);
    }

    .reslib-page .reslib-strip-card {
        padding: 11px;
        grid-template-columns: 34px 1fr;
    }

    .reslib-page .reslib-strip-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .reslib-page .reslib-strip-card strong {
        font-size: 11px;
    }

    .reslib-page .reslib-strip-card small {
        font-size: 11px;
    }

    .reslib-page .reslib-feature-grid,
    .reslib-page .reslib-tool-grid {
        grid-template-columns: 1fr;
    }

    .reslib-page .reslib-feature-card figure {
        height: 230px;
    }

    .reslib-page .reslib-tool-grid article {
        min-height: 0;
    }

    .reslib-page .reslib-section-head h2,
    .reslib-page .reslib-insight-copy h2,
    .reslib-page .reslib-faq h2 {
        font-size: 34px;
    }

    .reslib-page .reslib-newsletter {
        padding: 42px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reslib-page *,
    .reslib-page *::before,
    .reslib-page *::after {
        scroll-behavior: auto;
        transition-duration: .01ms;
        animation-duration: .01ms;
        animation-iteration-count: 1;
    }
}
