/* ==========================================================================
   Amnet Resources: White Paper Single Post / Reader Stylesheet
   Source: white-paper Inner page.html (Amnet Thought Leadership Design System)
   Fidelity: 100% visual parity with dedicated Style 1 block
   Hardened for Lead-Capture Gating Flow, Instant PDF Access & 375px Viewports
   ========================================================================== */

/* ---- Essential Cascade Guards ---- */
[hidden],
.dl[hidden],
.more[hidden],
.form-error[hidden] {
    display: none !important;
}

/* ---- Single Post Hero Section (.ahero) ---- */
.ahero {
    background: var(--mist, #f2f4f7);
    border-bottom: 1px solid var(--line, #dbdee2);
}
.ahero .wrap {
    padding-top: 28px !important;
    padding-bottom: 32px !important;
}
.ahero .crumbs {
    margin-bottom: 22px !important;
}
.ahero .atag2 {
    margin: 0 0 14px !important;
}
.ahg {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 56px;
    align-items: center !important;
}
.atag2 {
    display: inline-block;
    background: var(--accent, #ee5b42);
    color: #fff;
    font-family: var(--mono, 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace);
    font-size: 10.5px;
    letter-spacing: .14em;
    padding: 5px 10px;
    text-decoration: none;
    transition: background .2s ease;
}
.atag2:hover {
    background: var(--ink, #1d2024);
    color: #fff;
}
.ahero h1 {
    font-family: var(--serif, 'Newsreader', Georgia, 'Times New Roman', serif);
    font-weight: 400;
    font-size: 34px !important;
    line-height: 1.18 !important;
    letter-spacing: -.015em;
    margin: 0 0 20px !important;
    max-width: 26ch !important;
    text-wrap: balance;
    overflow-wrap: anywhere;
    word-break: break-word;
    color: var(--ink, #1d2024);
}
.stand {
    font-size: 19px;
    line-height: 1.6;
    color: var(--body, #454850);
    margin: 0 0 30px;
    max-width: 52ch;
}

/* Byline Metadata (.byl) */
.byl {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0 26px;
    border-top: 1px solid var(--line2, #cfd2d7);
    flex-wrap: wrap;
}
.bdt {
    font-family: var(--mono, 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace);
    font-size: 11px;
    letter-spacing: .12em;
    color: var(--muted, #6b6e75);
    text-transform: uppercase;
}
.av2 {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--ink, #1d2024);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--serif, 'Newsreader', Georgia, 'Times New Roman', serif);
    font-size: 19px;
}
.av2.sm {
    font-size: 12px;
}
.byl .av2,
.abio .av2 {
    display: grid;
    color: #fff;
    font-size: 19px;
    line-height: 1;
}
.byl .av2.sm,
.abio .av2.sm {
    font-size: 12px;
}
.byl b {
    display: block;
    font-size: 15px;
    color: var(--ink, #1d2024);
}
.byl span {
    display: block;
    font-size: 13px;
    color: var(--muted, #6b6e75);
    line-height: 1.45;
}

/* Optional Post Artwork Media (.aimg / .cov) */
.aimg {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, #2c3440, #1d2024);
    margin-bottom: -60px;
    box-shadow: 0 20px 40px rgba(29, 32, 36, .14);
}
.aimg img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.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: 90px;
    line-height: .6;
    color: var(--accent, #ee5b42);
}
.cov p {
    font-family: var(--serif, 'Newsreader', Georgia, 'Times New Roman', serif);
    font-size: 32px;
    line-height: 1.2;
    color: #fff;
    margin: 0;
    max-width: 22ch;
}
.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;
}

/* ---- Lead-Capture & Gating Form Card (.dl#download) ---- */
.dl {
    background: var(--ink, #1d2024);
    border-top: 3px solid var(--accent, #ee5b42);
    box-shadow: 0 24px 48px rgba(29, 32, 36, .2);
    color: #fff;
    padding: 24px 26px 26px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}
.dl::before {
    content: "";
    position: absolute;
    right: -110px;
    top: -140px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(238, 91, 66, .28), rgba(238, 91, 66, 0) 62%),
                repeating-radial-gradient(circle, rgba(255, 255, 255, .05) 0 1px, transparent 1px 22px);
    pointer-events: none;
}
.dl h3 {
    position: relative;
    margin: 0 0 4px;
    font-family: var(--mono, 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace);
    font-weight: 400;
    font-size: 11px;
    letter-spacing: .16em;
    color: var(--accent, #ee5b42);
    text-transform: uppercase;
}
.dl p {
    position: relative;
    margin: 0 0 18px;
    font-family: var(--serif, 'Newsreader', Georgia, 'Times New Roman', serif);
    font-size: 22px;
    line-height: 1.3;
}
.dl label {
    position: relative;
    display: block;
    margin-bottom: 12px;
}
.dl label span {
    display: block;
    font-family: var(--mono, 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace);
    font-size: 10px;
    letter-spacing: .14em;
    color: #a3a7ae;
    margin-bottom: 6px;
}
.dl input {
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: none;
    border-bottom: 1px solid #4a4e56;
    color: #fff;
    font: inherit;
    font-size: 15px;
    padding: 8px 0;
    transition: border-color .25s;
    border-radius: 0;
}
.dl input:focus {
    outline: none;
    border-color: var(--accent, #ee5b42);
}
.dl .btn-accent {
    position: relative;
    margin-top: 8px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}
.dl .form-error {
    color: #ff9482;
    font-size: 12px;
    margin-top: 4px;
    font-family: var(--sans, 'Libre Franklin', sans-serif);
    display: none;
}
.dl .form-error.show {
    display: block;
}

/* Success State & Instant Download CTA */
.dl .ok {
    position: relative;
    display: none;
    font-family: var(--serif, 'Newsreader', Georgia, 'Times New Roman', serif);
    font-size: 22px;
    line-height: 1.35;
}
.dl.done form {
    display: none;
}
.dl.done .ok {
    display: block;
}
.dl-instant-btn,
.dl .ok .btn-accent {
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-top: 18px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
    border-radius: 0;
}

/* ---- Reading Section & Layout Grid (.read / .rgrid) ---- */
.read {
    padding: 52px 0 64px !important;
    background: #fff;
}
.rgrid {
    display: grid;
    grid-template-columns: 220px minmax(0, 680px) 1fr;
    gap: 56px;
}

/* Sticky Share Rail (.rail / .share) */
.rail {
    position: sticky;
    top: 150px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.rail .lb2 {
    font-family: var(--mono, 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace);
    font-size: 10.5px;
    letter-spacing: .14em;
    color: var(--muted, #6b6e75);
}
.rail .meter {
    height: 2px;
    background: var(--line, #dbdee2);
    position: relative;
}
.rail .meter i {
    position: absolute;
    left: 0;
    top: 0;
    height: 2px;
    width: 0;
    background: var(--accent, #ee5b42);
}
.rail .pc {
    font-family: var(--serif, 'Newsreader', Georgia, 'Times New Roman', serif);
    font-size: 30px;
    color: var(--ink, #1d2024);
    line-height: 1;
}
.share {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line, #dbdee2);
}
.share a,
.share button {
    font: inherit;
    font-size: 14px;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid var(--line, #dbdee2);
    padding: 11px 0;
    color: var(--ink, #1d2024);
    text-decoration: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color .2s ease;
}
.share a:hover,
.share button:hover {
    color: var(--blue, #0061a8);
}
.share button:focus-visible,
.share a:focus-visible {
    outline: 2px solid var(--blue, #0061a8);
    outline-offset: 2px;
}

/* ---- Body Article Prose & Executive Slot (.body / .slot) ---- */
.body {
    font-size: 18px;
    line-height: 1.75;
    color: var(--body, #454850);
    min-width: 0;
}
.body h2 {
    font-family: var(--serif, 'Newsreader', Georgia, 'Times New Roman', serif);
    font-weight: 400;
    font-size: 30px;
    line-height: 1.2;
    color: var(--ink, #1d2024);
    margin: 40px 0 14px;
    overflow-wrap: anywhere;
}
.body h2:first-of-type {
    margin-top: 0;
}
.body p {
    margin: 0 0 22px;
    overflow-wrap: anywhere;
}

/* Abstract & Key Takeaways Container (.slot / .takeaways) */
.slot {
    border: 1.5px dashed var(--line2, #cfd2d7);
    background: var(--mist, #f2f4f7);
    padding: 26px 28px;
    margin: 0 0 30px;
}
.slot b {
    display: block;
    font-family: var(--mono, 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace);
    font-size: 11px;
    letter-spacing: .14em;
    color: var(--accent, #ee5b42);
    margin-bottom: 10px;
    text-transform: uppercase;
}
.slot p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    color: var(--muted, #6b6e75);
}
.takeaways {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.takeaways li {
    position: relative;
    padding-left: 22px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--body, #454850);
}
.takeaways li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent, #ee5b42);
}

/* Secondary Typography Elements inside Body */
.pq {
    margin: 36px 0;
    padding: 6px 0 6px 28px;
    border-left: 3px solid var(--accent, #ee5b42);
}
.pq p {
    font-family: var(--serif, 'Newsreader', Georgia, 'Times New Roman', serif);
    font-size: 30px;
    line-height: 1.25;
    color: var(--ink, #1d2024);
    margin: 0 0 10px;
}
.pq cite {
    font-style: normal;
    font-family: var(--mono, 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace);
    font-size: 11px;
    letter-spacing: .14em;
    color: var(--muted, #6b6e75);
}
.disc {
    font-size: 14px;
    color: var(--muted, #6b6e75);
    border-top: 1px solid var(--line, #dbdee2);
    padding-top: 16px;
    margin-top: 34px;
}
.abio {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--mist, #f2f4f7);
    padding: 24px;
    margin-top: 28px;
}
.abio .lb2 {
    font-family: var(--mono, 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace);
    font-size: 10.5px;
    letter-spacing: .14em;
    color: var(--accent, #ee5b42);
    margin-bottom: 6px;
}
.abio b {
    display: block;
    font-family: var(--serif, 'Newsreader', Georgia, 'Times New Roman', serif);
    font-weight: 400;
    font-size: 22px;
    color: var(--ink, #1d2024);
    margin-bottom: 4px;
}
.abio div>span {
    display: block;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--body, #454850);
}
.mrow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 4px;
}

/* ---- Previous / Next Navigation (.pn) ---- */
.pn {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1.5px solid var(--ink, #1d2024);
    margin-top: 44px;
}
.pn a {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 0;
    text-decoration: none;
    color: var(--ink, #1d2024);
    transition: padding .25s;
    min-width: 0;
}
.pn a+a {
    text-align: right;
    border-left: 1px solid var(--line, #dbdee2);
    padding-left: 20px;
}
.pn a:hover .ph2 {
    color: var(--blue, #0061a8);
}
.pn .pl {
    font-family: var(--mono, 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace);
    font-size: 10.5px;
    letter-spacing: .14em;
    color: var(--muted, #6b6e75);
}
.pn .ph2 {
    font-family: var(--serif, 'Newsreader', Georgia, 'Times New Roman', serif);
    font-size: 20px;
    line-height: 1.25;
    transition: color .2s;
    overflow-wrap: anywhere;
}

/* ---- Related White Papers Section (section.dark.more / .mgrid) ---- */
.more {
    padding: 56px 0;
    background: var(--ink, #1d2024);
    color: #fff;
}
.more .mhd {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 24px;
}
.more .h2 {
    color: #fff;
}
.more .tl2 {
    color: #ffb3a4;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease;
}
.more .tl2:hover {
    text-decoration: underline;
    color: #fff;
}
.mgrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--rule-dark, #2d2f36);
}
.mc {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 22px 22px 0;
    text-decoration: none;
    color: #c9ccd2;
    border-right: 1px solid var(--rule-dark, #2d2f36);
    transition: background .25s, padding .25s;
    min-width: 0;
}
.mc+.mc {
    padding-left: 22px;
}
.mc:last-child {
    border-right: none;
}
.mc:hover {
    background: #2a2d33;
    padding-left: 22px;
}
.mt2 {
    font-family: var(--mono, 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace);
    font-size: 10.5px;
    letter-spacing: .14em;
    color: #ffb3a4;
    text-transform: uppercase;
}
.mh {
    font-family: var(--serif, 'Newsreader', Georgia, 'Times New Roman', serif);
    font-size: 21px;
    line-height: 1.25;
    color: #fff;
    overflow-wrap: anywhere;
}
.mb {
    font-size: 13px;
    color: #a3a7ae;
}
.mg {
    margin-top: auto;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

/* ---- Responsive & Viewport Hardening ---- */
@media (max-width: 1100px) {
    .rgrid {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 40px;
    }
    .rgrid > .sp {
        display: none;
    }
}

@media (max-width: 1000px) {
    .ahero h1 {
        font-size: 26px !important;
    }
    .ahg {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .stand {
        font-size: 17px;
    }
    .aimg {
        margin-bottom: -40px;
    }
    .aimg .cov p {
        font-size: 22px;
    }
    .read {
        padding: 48px 0 48px !important;
    }
    .rgrid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .rail {
        position: static;
        order: 2;
    }
    .rail .meter,
    .rail .pc,
    .rail .lb2:first-child {
        display: none;
    }
    .body {
        font-size: 17px;
    }
    .pq p {
        font-size: 24px;
    }
    .mgrid {
        grid-template-columns: 1fr;
    }
    .mc,
    .mc+.mc {
        padding: 18px 0;
        border-right: none;
        border-bottom: 1px solid var(--rule-dark, #2d2f36);
    }
    .mc:hover {
        padding-left: 12px;
    }
    .more .mhd {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .pn {
        grid-template-columns: 1fr;
    }
    .pn a+a {
        text-align: left;
        border-left: none;
        border-top: 1px solid var(--line, #dbdee2);
        padding-left: 0;
    }
    .dl {
        padding: 20px 18px 22px;
    }
    .dl p {
        font-size: 19px;
    }
}

/* Hostinger 375px Mobile Overflow Guard */
@media (max-width: 375px) {
    .wrap {
        padding-left: 16px;
        padding-right: 16px;
    }
    .ahero h1 {
        font-size: 23px !important;
    }
    .byl {
        gap: 10px;
    }
    .bdt {
        font-size: 10px;
    }
    .dl {
        padding: 18px 14px 20px;
    }
    .dl p {
        font-size: 18px;
    }
    .dl input {
        font-size: 14px;
    }
    .body h2 {
        font-size: 24px;
    }
    .slot {
        padding: 20px 18px;
    }
    .pn .ph2 {
        font-size: 18px;
    }
    .rgrid,
    .body,
    .dl,
    .mc {
        min-width: 0;
        width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}
