/* ==========================================================================
   Amnet Resources: White Papers Hub Stylesheet
   Source: white-papers.html (Amnet Thought Leadership Design System)
   Fidelity: 100% visual parity with dedicated Style 1 & Style 2 blocks
   Hardened for Hostinger/mobile overflow (375px) and dynamic JS filtering
   ========================================================================== */

/* ---- Essential Cascade Guards ---- */
[hidden],
.ac[hidden],
.tlc[hidden],
.fnote[hidden] {
    display: none !important;
}

/* ---- Hero Typography & Alignment Overrides ---- */
.hero .hero-grid {
    align-items: center;
}
.hero .lede {
    margin-top: 26px;
}
.hero h1.display.long,
.whx h1.display.long {
    font-size: 36px !important;
    line-height: 1.18 !important;
    letter-spacing: -.01em !important;
    max-width: 24ch !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.hero .wrap,
.whx .wrap {
    padding-top: 28px !important;
}
.whx .wrap {
    padding-bottom: 20px !important;
}
.whx .rg {
    max-width: 270px !important;
}
.hero .crumbs,
.whx .crumbs {
    margin-bottom: 22px !important;
}
.hero .kicker,
.whx .kicker {
    margin-bottom: 16px !important;
}
.hero-grid,
.whg {
    padding-bottom: 36px !important;
    margin-top: 0 !important;
}
.hero .hero-cta,
.whx .hero-cta {
    margin-top: 22px !important;
}
.hero .hero-cta {
    margin-top: 30px;
}
.hero .hive {
    height: 280px !important;
}
.hero .hvs {
    max-width: 400px !important;
}
.hero .rg,
.whx .rg {
    max-width: 300px !important;
}
.hero .tlc,
.hero .sr {
    max-width: 440px;
    margin-left: auto;
    width: 100%;
    min-width: 0;
}
.hero .sr {
    max-width: 300px !important;
}

/* ---- The Library: Hero Timeline Rotator (.tlc) ---- */
.tlc {
    background: #fff;
    border: 1px solid var(--line, #dbdee2);
    border-top: 3px solid var(--accent, #ee5b42);
    position: relative;
    box-sizing: border-box;
}
.tlh {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    border-bottom: 1px solid var(--line, #dbdee2);
}
.hero .tlh {
    padding: 12px 20px !important;
}
.tlh span {
    font-family: var(--mono, 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace);
    font-size: 11px;
    letter-spacing: .16em;
    color: var(--accent, #ee5b42);
}
.tlgo {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue, #0061a8);
    text-decoration: none;
    transition: color .2s ease;
}
.tlgo:hover {
    text-decoration: underline;
    color: var(--accent, #ee5b42);
}
.tl {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}
.tl::before {
    content: "";
    position: absolute;
    left: 29px;
    top: 22px;
    bottom: 22px;
    width: 1px;
    background: var(--line2, #cfd2d7);
}
.hero .tl li:nth-child(n+4) {
    display: none;
}
.tli {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 4px 18px;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid var(--line, #dbdee2);
    padding: 16px 22px;
    cursor: pointer;
    font: inherit;
    color: var(--ink, #1d2024);
    box-sizing: border-box;
}
.hero .tli {
    padding: 12px 20px !important;
}
.tl li:last-child .tli {
    border-bottom: none;
}
.tli::before {
    content: "";
    grid-row: 1/3;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--line2, #cfd2d7);
    margin: 3px 0 0 1px;
    position: relative;
    z-index: 1;
    transition: background .25s, border-color .25s;
}
.tli.on::before {
    background: var(--accent, #ee5b42);
    border-color: var(--accent, #ee5b42);
}
.tld {
    grid-column: 2;
    font-family: var(--mono, 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace);
    font-size: 10.5px;
    letter-spacing: .14em;
    color: var(--muted, #6b6e75);
}
.tlt {
    grid-column: 2;
    font-family: var(--serif, 'Newsreader', Georgia, 'Times New Roman', serif);
    font-size: 18px;
    line-height: 1.25;
    color: var(--ink, #1d2024);
    transition: color .2s;
    overflow-wrap: anywhere;
}
.hero .tlt {
    font-size: 15.5px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tlq {
    grid-column: 2;
    font-size: 14px;
    line-height: 1.5;
    color: var(--body, #454850);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .4s, opacity .4s, margin .4s;
}
.hero .tlq {
    display: none !important;
}
.tli.on .tlq {
    max-height: 80px;
    opacity: 1;
    margin-top: 4px;
}
.tli:hover .tlt {
    color: var(--blue, #0061a8);
}
.tli>i {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 0;
    background: var(--accent, #ee5b42);
}
.tli:focus-visible {
    outline: 2px solid var(--blue, #0061a8);
    outline-offset: -2px;
}

/* ---- Quote Rotator & Secondary Widgets ---- */
.qrot {
    position: relative;
    margin: 0;
    background: #fff;
    border: 1px solid var(--line, #dbdee2);
    border-top: 3px solid var(--accent, #ee5b42);
    padding: 34px 36px 26px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
}
.qmark {
    position: absolute;
    right: 26px;
    top: -6px;
    font-family: var(--serif, 'Newsreader', Georgia, 'Times New Roman', serif);
    font-size: 140px;
    line-height: 1;
    color: var(--accent, #ee5b42);
    opacity: .18;
    pointer-events: none;
}
.qrot blockquote {
    margin: 0;
    flex: 1;
}
.qtx {
    padding-right: 56px;
    font-family: var(--serif, 'Newsreader', Georgia, 'Times New Roman', serif);
    font-size: 30px;
    line-height: 1.22;
    letter-spacing: -.01em;
    color: var(--ink, #1d2024);
    margin: 0;
    transition: opacity .3s, transform .3s;
}
.qrot figcaption {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 22px;
    transition: opacity .3s;
}
.qrot.sw .qtx,
.qrot.sw figcaption {
    opacity: 0;
}
.qrot.sw .qtx {
    transform: translateY(6px);
}
.qby {
    font-family: var(--mono, 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace);
    font-size: 11px;
    letter-spacing: .14em;
    color: var(--muted, #6b6e75);
    text-transform: uppercase;
}
.qsrc {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue, #0061a8);
    text-decoration: none;
}
.qsrc:hover {
    text-decoration: underline;
}
.qdots {
    display: flex;
    gap: 6px;
    margin-top: 22px;
}
.qdots button {
    flex: 1;
    height: 14px;
    background: none;
    border: none;
    padding: 6px 0;
    cursor: pointer;
    position: relative;
}
.qdots button::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 6px;
    height: 2px;
    background: var(--line, #dbdee2);
}
.qdots i {
    position: absolute;
    left: 0;
    top: 6px;
    height: 2px;
    width: 0;
    background: var(--accent, #ee5b42);
}
.qdots button.done i {
    width: 100%;
}
.qdots button:focus-visible {
    outline: 2px solid var(--blue, #0061a8);
}

/* ---- Section 01: Articles & Filtering Container ---- */
.arts {
    padding: 64px 0 72px;
}
.sh2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.sh2 .h2 {
    max-width: 20ch;
}
.sh2 p {
    margin: 10px 0 0;
    font-size: 15px;
    color: var(--muted, #6b6e75);
    max-width: 52ch;
}

/* ---- Topic Filter Chips (.flt2) ---- */
.flt2 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.flt2 button {
    font: inherit;
    font-size: 14px;
    border: 1px solid var(--line2, #cfd2d7);
    background: #fff;
    color: var(--ink, #1d2024);
    padding: 9px 16px;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
    border-radius: 0;
}
.flt2 button sup {
    font-family: var(--mono, 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace);
    font-size: 10px;
    color: var(--muted, #6b6e75);
    margin-left: 2px;
}
.flt2 button:hover {
    border-color: var(--ink, #1d2024);
}
.flt2 button.on {
    background: var(--ink, #1d2024);
    color: #fff;
    border-color: var(--ink, #1d2024);
}
.flt2 button.on sup {
    color: #ffb3a4;
}
.flt2 button:focus-visible {
    outline: 2px solid var(--blue, #0061a8);
    outline-offset: 2px;
}
.fnote {
    font-family: var(--mono, 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace);
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--accent, #ee5b42);
    margin-left: 6px;
}

/* ---- White Papers 3-Column Card Grid (.agrid / .ac) ---- */
.agrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.ac {
    background: #fff;
    border: 1px solid var(--line, #dbdee2);
    transition: transform .3s, box-shadow .3s, opacity .3s;
    min-width: 0;
    box-sizing: border-box;
}
.ac.in {
    animation: cin .4s ease both;
}
@keyframes cin {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.ac:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(29, 32, 36, .1);
}
.ac>a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}
.ac>a:focus-visible {
    outline: 2px solid var(--blue, #0061a8);
    outline-offset: 2px;
}

/* ---- Media Container & Document Artwork Cover ---- */
.ai {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, #2c3440, #1d2024);
}
.ai .cov {
    padding-top: 50px;
}
.ai .cov p {
    font-size: 18px;
}
.ai img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.ac:hover .ai img {
    transform: scale(1.05);
}
.cov {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 8% 8% 7%;
    background: radial-gradient(circle at 88% 12%, rgba(238, 91, 66, .28) 0, rgba(238, 91, 66, 0) 38%),
                repeating-radial-gradient(circle at 88% 12%, rgba(255, 255, 255, .05) 0 1px, transparent 1px 22px),
                linear-gradient(135deg, #2c3440, #1d2024);
}
.cov .cq {
    font-family: var(--serif, 'Newsreader', Georgia, 'Times New Roman', serif);
    font-size: 60px;
    line-height: .6;
    color: var(--accent, #ee5b42);
}
.cov p {
    font-family: var(--serif, 'Newsreader', Georgia, 'Times New Roman', serif);
    font-size: 21px;
    line-height: 1.2;
    color: #fff;
    margin: 0;
    max-width: 22ch;
}
.ai .cov .cb {
    display: none;
}
.cov .cb {
    font-family: var(--mono, 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace);
    font-size: 10.5px;
    letter-spacing: .14em;
    color: #ffb3a4;
    text-transform: uppercase;
}

/* Document Icon Cover (.cov2 / .cov2.doc) */
.cov2 {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    padding: 46px 22px 20px;
    background: radial-gradient(circle at 88% 12%, rgba(238, 91, 66, .32) 0, rgba(238, 91, 66, 0) 40%),
                repeating-radial-gradient(circle at 88% 12%, rgba(255, 255, 255, .05) 0 1px, transparent 1px 22px),
                linear-gradient(135deg, #2c3440, #1d2024);
}
.cov2 b {
    font-family: var(--serif, 'Newsreader', Georgia, 'Times New Roman', serif);
    font-weight: 400;
    font-size: 40px;
    line-height: 1;
    color: #fff;
}
.cov2 span {
    font-family: var(--mono, 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace);
    font-size: 10.5px;
    letter-spacing: .14em;
    color: #ffb3a4;
    text-transform: uppercase;
}
.cov2.doc {
    justify-content: center;
    align-items: center;
}
.cov2.doc i {
    display: block;
    width: 84px;
    height: 108px;
    background: #fff;
    box-shadow: 10px -10px 0 rgba(255, 255, 255, .18), 20px -20px 0 rgba(255, 255, 255, .08);
    position: relative;
}
.cov2.doc i::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 16px;
    height: 7px;
    background: var(--ink, #1d2024);
    box-shadow: 0 14px 0 var(--grey, #ebedf0),
                0 24px 0 var(--grey, #ebedf0),
                0 34px 0 var(--grey, #ebedf0),
                0 44px 0 var(--grey, #ebedf0),
                0 54px 0 var(--grey, #ebedf0);
}
.cov2.doc i::after {
    content: "";
    position: absolute;
    left: 12px;
    width: 30px;
    bottom: 12px;
    height: 5px;
    background: var(--accent, #ee5b42);
}
.ac:hover .cov2.doc i {
    transform: translateY(-4px);
    transition: transform .3s;
}

/* Category Badge & Card Content (.ab) */
.atag {
    position: absolute;
    left: 14px;
    top: 14px;
    background: var(--accent, #ee5b42);
    color: #fff;
    font-family: var(--mono, 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace);
    font-size: 10px;
    letter-spacing: .14em;
    padding: 5px 9px;
    z-index: 2;
}
.ab {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 22px 20px;
    flex: 1;
    min-width: 0;
}
.ab h3 {
    font-family: var(--serif, 'Newsreader', Georgia, 'Times New Roman', serif);
    font-weight: 400;
    font-size: 23px;
    line-height: 1.2;
    margin: 0;
    color: var(--ink, #1d2024);
    overflow-wrap: anywhere;
    word-break: break-word;
}
.ab p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--body, #454850);
    margin: 0;
    overflow-wrap: anywhere;
}
.aby {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--line, #dbdee2);
}
.aby b {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink, #1d2024);
}
.aby span {
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--muted, #6b6e75);
}
.ago {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue, #0061a8);
    transition: transform .2s, color .2s;
}
.ac:hover .ago {
    text-decoration: underline;
    color: var(--accent, #ee5b42);
}

/* ---- Authors Strip (.auth) ---- */
.auth {
    padding: 56px 0;
}
.sh3 {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 48px;
    align-items: end;
    margin-bottom: 26px;
}
.sh3 .eyebrow {
    grid-column: 1/-1;
    margin-bottom: 0;
}
.auth .h2 {
    color: #fff;
}
.sh3 p {
    color: #c9ccd2;
    margin: 0;
    font-size: 16px;
    justify-self: end;
}
.aul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--rule-dark, #2d2f36);
}
.au {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
    background: transparent;
    border: none;
    border-right: 1px solid var(--rule-dark, #2d2f36);
    color: #c9ccd2;
    padding: 22px 18px;
    cursor: pointer;
    font: inherit;
    transition: background .25s;
}
.aul li:last-child .au {
    border-right: none;
}
.au:hover,
.au.on {
    background: #2a2d33;
}
.au:focus-visible {
    outline: 2px solid var(--accent, #ee5b42);
    outline-offset: -2px;
}
.av.sm {
    font-size: 12px;
    letter-spacing: .04em;
}
.av {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--accent, #ee5b42);
    color: #fff;
    font-family: var(--serif, 'Newsreader', Georgia, 'Times New Roman', serif);
    font-size: 18px;
    transition: background .25s;
    background: var(--accent, #ee5b42);
}
.au:hover .av,
.au.on .av.sm {
    font-size: 12px;
    letter-spacing: .04em;
}
.an {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.an b {
    font-family: var(--serif, 'Newsreader', Georgia, 'Times New Roman', serif);
    font-weight: 400;
    font-size: 20px;
    line-height: 1.2;
    color: #fff;
}
.an span {
    font-size: 13px;
    line-height: 1.45;
    color: #a3a7ae;
}
.ac2 {
    margin-top: auto;
    font-family: var(--mono, 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace);
    font-size: 10.5px;
    letter-spacing: .12em;
    color: #ffb3a4;
    text-transform: uppercase;
}

/* ---- Responsive & Viewport Hardening ---- */
@media (prefers-reduced-motion: reduce) {
    .ac.in {
        animation: none;
    }
    .ac:hover {
        transform: none;
    }
    .tli>i {
        transition: none;
    }
    .tli.on .tlq {
        transition: none;
    }
}

@media (max-width: 1100px) {
    .aul {
        grid-template-columns: repeat(3, 1fr);
    }
    .aul li:nth-child(3) .au {
        border-right: none;
    }
    .aul li .au {
        border-bottom: 1px solid var(--rule-dark, #2d2f36);
    }
}

@media (max-width: 1000px) {
    .hero h1.display.long,
    .whx h1.display.long {
        font-size: 27px !important;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .hero .tlc {
        max-width: 100%;
        margin-left: 0;
    }
    .qrot {
        min-height: 0;
        padding: 28px 24px 20px;
    }
    .qtx {
        font-size: 24px;
    }
    .arts {
        padding: 48px 0 56px;
    }
    .agrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    .sh3 {
        grid-template-columns: 1fr;
    }
    .sh3 p {
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .agrid {
        grid-template-columns: minmax(0, 1fr);
    }
    .aul {
        grid-template-columns: 1fr;
    }
    .au {
        border-right: none;
        flex-direction: row;
        align-items: center;
    }
    .ac2 {
        margin-top: 0;
        margin-left: auto;
        white-space: nowrap;
    }
    .an span {
        display: none;
    }
    .flt2 {
        gap: 6px;
    }
    .flt2 button {
        padding: 7px 12px;
        font-size: 13px;
    }
    .hero-grid {
        gap: 24px;
    }
    .sh2 {
        gap: 16px;
    }
}

/* Hostinger 375px Mobile Overflow Guard */
@media (max-width: 375px) {
    .wrap {
        padding-left: 16px;
        padding-right: 16px;
    }
    .hero h1.display.long {
        font-size: 24px !important;
    }
    .hero .tli {
        padding: 10px 14px !important;
        gap: 2px 12px;
    }
    .flt2 button {
        padding: 6px 10px;
        font-size: 12px;
    }
    .ab {
        padding: 18px 16px;
    }
    .ab h3 {
        font-size: 20px;
    }
    .agrid,
    .ac,
    .ac>a {
        min-width: 0;
        width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}
