/* 01 / Editorial foundations */
.resources-page { background: radial-gradient(ellipse at 85% 0%,#123f9138,transparent 35%),#05070b; }
.resources-page h1 { max-width: 100%; }
.resources-page h2 { font-size: clamp(1.8rem,3vw,2.8rem); line-height: 1.12; letter-spacing: -.045em; }
.resources-page .breadcrumbs { padding-top: 28px; margin-bottom: 35px; flex-wrap: wrap; }
.resources-page .breadcrumbs span:last-child { max-width: 70ch; }
.resources-page [hidden] { display: none !important; }
.resources-page section[id] { scroll-margin-top: 140px; }
.resource-hero { padding-bottom: 58px; position: relative; border-bottom: 1px solid var(--line); }
.resource-heading { display: grid; grid-template-columns: minmax(0,1fr) 230px; gap: 60px; align-items: center; }
.resources-page .resource-heading h1 { font-size: clamp(2.7rem,5.5vw,5rem); max-width: 850px; }
.resource-heading h1 span { color: var(--orange); }
.resource-heading .hero-copy { max-width: 720px; }
.editorial-stamp { display: grid; border: 1px solid #5273a380; padding: 26px; border-radius: 4px 32px 4px 32px; background: repeating-linear-gradient(0deg,transparent 0 35px,#5273a319 35px 36px),repeating-linear-gradient(90deg,transparent 0 35px,#5273a319 35px 36px),#101e34; font-family: monospace; transform: rotate(3deg); }
.editorial-stamp>span:first-child { color: var(--orange); font-size: 3.8rem; letter-spacing: -.08em; line-height: 1; margin-bottom: 22px; }
.editorial-stamp>span:nth-child(2) { font-size: 1.15rem; letter-spacing: .15em; line-height: 1.4; }
.editorial-stamp i { font-size: .65rem; font-style: normal; color: #a0b8d8; margin-top: 30px; }
.resource-heading { animation: settle .65s ease both; }
@keyframes settle { from { opacity: .2; transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* 02 / Feature and cards */
.featured-section { padding-block: 56px 24px; }
.featured-article { display: grid; grid-template-columns: 1.05fr 1fr; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; background: linear-gradient(135deg,#142039,#0b111c); }
.featured-image { position: relative; min-height: 450px; }
.featured-image img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: center 55%; }
.photo-note { position: absolute; bottom: 18px; left: 18px; padding: 7px 12px; border: 1px solid #ffffff40; border-radius: 5px; background: #05070bd9; font-size: .7rem; color: #d8e0eb; }
.featured-copy { padding: clamp(26px,3.2vw,48px); display: flex; flex-direction: column; align-items: start; justify-content: center; }
.featured-copy h2 { font-size: clamp(1.8rem,2.7vw,2.6rem); margin: 15px 0 20px; }
.featured-copy>p:not(.article-meta) { color: #b8c3d2; }
.featured-copy .btn { margin: 26px 0 20px; }
.featured-copy time { font-size: .78rem; color: var(--muted); }
.library-section { padding-block: 65px; }
.library-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
#filter-status { color: var(--muted); font-size: .85rem; }
.category-filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0; }
.category-filters button { color: #cbd5e1; border: 1px solid #60738b66; background: #101827; padding: 11px 16px; border-radius: 999px; font: 600 .82rem Inter,system-ui,sans-serif; cursor: pointer; transition: color .2s,border-color .2s,background .2s; }
.category-filters button:hover { border-color: var(--orange); }
.category-filters button[aria-pressed=true] { background: var(--orange); border-color: var(--orange); color: #111827; }
.article-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; margin-top: 28px; align-items: stretch; }
.editorial-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #0d1522; transition: transform .2s,border-color .2s; }
.editorial-card:hover, .editorial-card:focus-within { border-color: #f9731680; transform: translateY(-3px); }
.card-image { aspect-ratio: 16/10; overflow: hidden; background: #142039; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-copy { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-category { color: #ffa563; text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; font-weight: 800; margin-bottom: 14px; }
.card-copy h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.025em; }
.card-copy h3 a:hover, .featured-copy h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.card-copy>p:not(.card-category) { margin: 16px 0 24px; color: var(--muted); font-size: .9rem; }
.card-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.read-link { font-size: .85rem; font-weight: 700; color: #ffad69; }
.card-bottom>span { font-size: .72rem; color: var(--muted); white-space: nowrap; }
/* 03 / Bridges and CTAs */
.services-bridge { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; padding-block: 50px; border-block: 1px solid var(--line); }
.services-bridge p { color: var(--muted); }
.services-bridge .section-kicker { color: var(--orange); }
.resource-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(26px,4vw,54px); margin-block: 65px; border: 1px solid #f9731650; border-radius: 26px; background: linear-gradient(120deg,#123f914d,#111b2c 70%,#f9731614); }
.resource-cta p:not(.section-kicker) { color: #b8c3d2; max-width: 550px; margin-top: 18px; }
.resource-cta .btn { flex-shrink: 0; }
/* 04 / Article template */
.article-header { max-width: 960px; padding-block: 24px 45px; }
.article-meta { color: #ffad69; font-size: .76rem; letter-spacing: .04em; display: flex; flex-wrap: wrap; gap: 10px; }
.resources-page.article-page h1 { font-size: clamp(2.3rem,4.3vw,4rem); line-height: 1.08; margin-top: 22px; }
.article-byline { color: var(--muted); font-size: .82rem; margin-top: 22px; }
.direct-answer { border-left: 3px solid var(--orange); margin-top: 32px; padding: 24px 28px; background: linear-gradient(90deg,#14233d,#10182760); border-radius: 0 16px 16px 0; }
.direct-answer p { color: #d4deeb; font-size: 1.05rem; line-height: 1.75; margin-top: 8px; }
.article-layout { display: grid; grid-template-columns: 245px minmax(0,760px); justify-content: space-between; gap: 70px; align-items: start; }
.article-sidebar { position: sticky; top: 140px; }
.toc { border-block: 1px solid var(--line); padding-block: 24px; }
.resources-page .toc h2 { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.toc ol { padding-left: 19px; display: grid; gap: 14px; }
.toc li { color: #aab9cd; padding-left: 5px; font-size: .85rem; line-height: 1.5; }
.toc li::marker { color: var(--orange); }
.toc a:hover { color: white; text-decoration: underline; text-underline-offset: 4px; }
.sidebar-service { display: block; font-size: .85rem; color: #ffad69; margin-top: 26px; }
.article-image { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-bottom: 42px; background: #101827; }
.article-image img { width: 100%; max-height: 440px; height: auto; object-fit: cover; }
.article-image figcaption { font-size: .75rem; line-height: 1.6; color: #aab9cd; padding: 16px 20px; }
.article-body { min-width: 0; color: #c1ccda; font-size: 1.02rem; line-height: 1.85; }
.article-section { margin-block: 0 48px; }
.article-body h2 { color: var(--text); font-size: clamp(1.65rem,2.5vw,2.15rem); margin-bottom: 22px; }
.article-body h3 { color: var(--text); font-size: 1.15rem; line-height: 1.4; margin: 24px 0 12px; }
.article-body p { margin-block: 0 20px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-block: 20px; }
.article-body li { padding-left: 5px; margin-bottom: 12px; }
.article-body li::marker { color: #ffad69; }
.article-body strong { color: #edf2f8; }
.article-body a { color: #ffad69; text-decoration: underline; text-underline-offset: 4px; }
.article-body a:hover { color: #ffd2af; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin-block: 24px; }
.article-body table { border-collapse: collapse; width: 100%; font-size: .9rem; line-height: 1.65; }
.article-body caption { text-align: left; padding: 18px; font-weight: 700; background: #142039; color: #edf2f8; }
.article-body th, .article-body td { text-align: left; vertical-align: top; padding: 16px; border-top: 1px solid var(--line); }
.article-body th { color: #fff; background: #101827; }
.article-body td:first-child { width: 34%; color: #edf2f8; }
.example-box { border: 1px solid #5273a370; background: #101e34; padding: 26px; border-radius: 14px; margin-block: 25px; }
.example-box dt { color: #ffad69; font-weight: 700; font-size: .85rem; margin-top: 18px; }
.example-box dd { margin: 5px 0 18px; }
.faq { border-top: 1px solid var(--line); padding-top: 4px; }
.related-services { background: #101827; padding: 28px; border-radius: 18px; }
.related-reading { margin-top: 65px; padding-top: 40px; border-top: 1px solid var(--line); }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
/* 05 / Responsive and reduced-motion treatments */
@media(max-width:1100px) {
 .article-layout { gap: 35px; grid-template-columns: 210px minmax(0,1fr); }
 .article-grid { grid-template-columns: 1fr 1fr; }
 .resource-heading { grid-template-columns: minmax(0,1fr) 170px; gap: 28px; }
 .editorial-stamp { padding: 20px; }
}
@media(max-width:760px) {
 .resource-heading, .featured-article, .services-bridge, .article-layout { grid-template-columns: 1fr; }
 .editorial-stamp { display: none; }
 .featured-image { min-height: 320px; }
 .featured-copy { padding: 28px; }
 .library-heading { align-items: start; flex-direction: column; }
 .resource-cta { flex-direction: column; align-items: start; }
 .article-sidebar { position: static; }
 .article-layout { gap: 30px; }
 .article-header { padding-top: 0; }
 .direct-answer { padding: 20px; }
 .resources-page section[id] { scroll-margin-top: 110px; }
 .services-bridge { gap: 26px; }
 .resources-page .breadcrumbs { font-size: .72rem; }
}
@media(max-width:520px) {
 .article-grid, .related-grid { grid-template-columns: 1fr; }
 .category-filters { gap: 8px; }
 .category-filters button { padding: 10px 12px; font-size: .75rem; }
 .resource-hero { padding-bottom: 38px; }
 .featured-section { padding-top: 36px; }
 .resource-cta .btn { width: 100%; }
 .article-body { font-size: 1rem; }
 .article-body th, .article-body td { padding: 12px; }
}
@media(prefers-reduced-motion:reduce) {
 .resource-heading { animation: none; }
 .editorial-card { transition: none; }
}
@media print {
 .site-header,.top-bar,.site-footer,.article-sidebar,.related-reading,.resource-cta,.skip-link { display: none; }
 .resources-page { background: white; color: black; }
 .article-layout { display: block; }
 .article-body,.article-body h2,.article-body h3,.article-body strong,.article-body a,.direct-answer p { color: black; }
 .article-image { max-width: 450px; }
}
