/* Resources (blog) pages. Uses the variables from style.css. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.res-section{padding-top:clamp(40px,6vw,72px)}

/* Toolbar: type tabs + search */
.res-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;margin-bottom:22px}
.res-types{display:flex;gap:6px;flex-wrap:wrap;background:var(--soft);border:1px solid var(--line);border-radius:14px;padding:5px}
.res-types a{display:inline-flex;align-items:center;gap:7px;font-family:var(--font-h);font-weight:700;font-size:.88rem;padding:9px 14px;border-radius:10px;color:var(--ink)}
.res-types a .ic{width:16px;height:16px;color:var(--sky-btn)}
.res-types a:hover{background:#fff}
.res-types a.active{background:var(--navy);color:#fff}
.res-types a.active .ic{color:var(--sky)}
.res-search{position:relative;flex:0 1 360px}
.res-search .ic{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--muted);width:18px;height:18px}
.res-search input{width:100%;font:inherit;font-size:.95rem;padding:12px 14px 12px 42px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink)}
.res-search input:focus{outline:none;border-color:var(--sky-btn);box-shadow:0 0 0 4px rgba(242,106,16,.15)}

.res-cats{justify-content:flex-start;margin-bottom:36px}
.res-cats a{font-family:var(--font-h);font-weight:700;font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;padding:9px 16px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--ink);transition:.2s}
.res-cats a:hover{border-color:var(--sky-btn);color:var(--sky-btn)}
.res-cats a.active{background:var(--sky-btn);border-color:var(--sky-btn);color:#fff}
.res-count{color:var(--muted);margin:-12px 0 24px}
.res-count a{color:var(--sky-btn);text-decoration:underline;text-underline-offset:2px}

/* Cards */
.res-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column;transition:transform .25s,box-shadow .25s}
.res-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.res-thumb{display:block;border-radius:0;aspect-ratio:16/10}
.res-thumb img{transition:transform .5s}
.res-card:hover .res-thumb img{transform:scale(1.04)}
.res-badge{position:absolute;left:14px;top:14px;z-index:2;display:inline-flex;align-items:center;gap:6px;background:rgba(11,22,40,.78);backdrop-filter:blur(6px);color:#fff;font-family:var(--font-h);font-weight:700;font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;padding:6px 10px;border-radius:999px}
.res-badge .ic{width:14px;height:14px;color:var(--sky)}
.res-play{position:absolute;left:50%;top:50%;z-index:2;transform:translate(-50%,-50%);width:58px;height:58px;border-radius:50%;background:rgba(201,79,8,.92);color:#fff;display:grid;place-items:center;box-shadow:0 10px 30px rgba(0,0,0,.3);transition:transform .2s}
.res-play .ic{width:24px;height:24px;margin-left:3px}
.res-card:hover .res-play,.res-featured:hover .res-play{transform:translate(-50%,-50%) scale(1.08)}
.res-body{padding:22px 24px 24px;display:flex;flex-direction:column;flex:1}
.res-body h3{font-size:1.18rem;margin-bottom:.45em}
.res-body h3 a:hover,.res-featured h2 a:hover{color:var(--sky-btn)}
.res-body > p:not(.tag):not(.eyebrow){color:var(--muted);font-size:.93rem;flex:1}
.res-body .meta{justify-content:space-between}

/* Featured */
.res-featured{display:grid;grid-template-columns:1.15fr 1fr;background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:var(--shadow-lg);margin-bottom:44px}
.res-featured .res-thumb{aspect-ratio:auto;min-height:340px;height:100%}
.res-featured .res-body{padding:clamp(26px,4vw,44px);justify-content:center}
.res-featured h2{font-size:clamp(1.6rem,2.6vw,2.2rem)}
.res-featured .res-body > p:not(.eyebrow){flex:0}
.res-featured .meta{justify-content:flex-start;margin-bottom:22px;border:0;padding:0}
.res-featured .btn{align-self:flex-start}

/* Pagination */
.res-pager{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:44px}
.res-pager a{min-width:44px;height:44px;padding:0 14px;display:grid;place-items:center;border:1px solid var(--line);border-radius:12px;font-family:var(--font-h);font-weight:700;color:var(--ink);background:#fff}
.res-pager a:hover{border-color:var(--sky-btn);color:var(--sky-btn)}
.res-pager a.active{background:var(--navy);border-color:var(--navy);color:#fff}

/* Socials strip */
.res-follow{padding:clamp(48px,7vw,80px) 0}
.res-follow-in{display:grid;grid-template-columns:1fr auto;gap:32px;align-items:center}
.res-follow h2{font-size:clamp(1.6rem,2.8vw,2.3rem)}
.res-follow p:not(.eyebrow){color:var(--muted);margin:0;max-width:520px}
.res-social{display:flex;flex-wrap:wrap;gap:10px}
.res-social a{display:inline-flex;align-items:center;gap:9px;padding:12px 18px;border-radius:12px;background:#fff;border:1px solid var(--line);font-family:var(--font-h);font-weight:700;color:var(--ink);transition:.2s}
.res-social a .ic{width:20px;height:20px;color:var(--sky-btn)}
.res-social a:hover{border-color:var(--sky-btn);transform:translateY(-2px)}

/* Single post */
.res-hero .page-hero-in{padding-bottom:64px}
.res-hero h1{font-size:clamp(2rem,4.2vw,3.2rem);max-width:24ch}
.res-hero .crumbs{flex-wrap:wrap}
.res-hero-meta{display:flex;flex-wrap:wrap;gap:8px 22px;color:#D7DAEE;margin:0;font-size:.95rem}
.res-hero-meta span{display:inline-flex;align-items:center;gap:8px}
.res-hero-meta .ic{color:var(--sky);width:17px;height:17px}
.res-article{padding-top:48px}
.res-wrap{max-width:820px}
.res-wrap > .res-cover:first-child,.res-wrap > .res-video:first-child,.res-wrap > .res-embed:first-child{margin-top:-96px;position:relative;z-index:2}
.res-hero:has(+ .res-article .res-wrap > .res-cover:first-child) .page-hero-in,.res-hero:has(+ .res-article .res-wrap > .res-video:first-child) .page-hero-in,.res-hero:has(+ .res-article .res-wrap > .res-embed:first-child) .page-hero-in{padding-bottom:110px}
.res-cover{aspect-ratio:16/9;margin:0 0 36px;box-shadow:var(--shadow-lg)}
.res-video{margin:0 0 32px;border-radius:var(--radius);overflow:hidden;background:#000;box-shadow:var(--shadow-lg)}
.res-video video{display:block;width:100%;max-height:78vh;background:#000}
.res-embed{position:relative;margin:0 auto 18px;border-radius:var(--radius);overflow:hidden;background:var(--soft);box-shadow:var(--shadow-lg)}
.res-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.res-embed-wide{aspect-ratio:16/9;max-width:100%}
.res-embed-vertical{aspect-ratio:9/16;max-width:380px}
.res-embed-instagram{max-width:440px;height:720px;background:#fff}
.res-embed-tiktok{max-width:340px;height:760px;background:#fff}
.res-embed-post{max-width:520px;height:640px;background:#fff}
.res-prose .res-embed{margin:28px auto;box-shadow:var(--shadow)}
.res-source{text-align:center;margin:0 0 32px}
.res-source a{display:inline-flex;align-items:center;gap:8px;font-family:var(--font-h);font-weight:700;color:var(--sky-btn)}
.res-source .ic{width:18px;height:18px}
.res-lede{font-size:1.2rem;line-height:1.6;color:var(--ink);font-weight:500;border-left:4px solid var(--orange);padding-left:20px;margin:0 0 30px}
.res-prose{font-size:1.06rem;line-height:1.8;color:var(--text)}
.res-prose h2{font-size:clamp(1.45rem,2.4vw,1.85rem);margin:1.8em 0 .55em}
.res-prose h3{font-size:1.25rem;margin:1.6em 0 .5em}
.res-prose h4{font-size:1.05rem;margin:1.4em 0 .4em}
.res-prose p{margin:0 0 1.15em}
.res-prose a{color:var(--sky-btn);text-decoration:underline;text-underline-offset:3px}
.res-prose ul,.res-prose ol{padding-left:1.4em;margin:0 0 1.3em}
.res-prose li{margin-bottom:.45em}
.res-prose ul li::marker{color:var(--orange)}
.res-prose ol li::marker{color:var(--sky-btn);font-weight:700}
.res-prose li[data-list="bullet"]{list-style-type:disc}
.res-prose li[data-list="ordered"]{list-style-type:decimal}
.res-prose blockquote{margin:1.6em 0;padding:18px 22px;background:var(--soft);border-left:4px solid var(--sky-btn);border-radius:0 12px 12px 0;font-size:1.08rem;color:var(--ink)}
.res-prose img{border-radius:14px;margin:1.6em auto;height:auto}
.res-prose figure{margin:1.6em 0}.res-prose figcaption{font-size:.9rem;color:var(--muted);text-align:center}
.res-prose pre{background:var(--navy-950);color:#E6E8F5;padding:16px;border-radius:12px;overflow:auto;font-size:.9rem}
.res-prose table{width:100%;border-collapse:collapse;margin:1.4em 0;font-size:.95rem}
.res-prose th,.res-prose td{border:1px solid var(--line);padding:10px 12px;text-align:left}
.res-prose th{background:var(--soft);font-family:var(--font-h)}
.res-prose .ql-align-center{text-align:center}.res-prose .ql-align-right{text-align:right}.res-prose .ql-align-justify{text-align:justify}
.res-prose .ql-size-small{font-size:.85em}.res-prose .ql-size-large{font-size:1.3em}.res-prose .ql-size-huge{font-size:1.7em}
.res-prose > :first-child{margin-top:0}
.res-prose .ql-ui{display:none}

.res-share{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:40px 0 0;padding:22px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.res-share > span{font-family:var(--font-h);font-weight:700;color:var(--ink);margin-right:6px}
.res-share a,.res-copy{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line);background:#fff;color:var(--ink);cursor:pointer;transition:.2s}
.res-share a:hover,.res-copy:hover{border-color:var(--sky-btn);color:var(--sky-btn)}
.res-share .ic{width:18px;height:18px}
.res-copy{width:auto;display:inline-flex;gap:8px;padding:0 16px;border-radius:999px;font:700 .85rem var(--font-h)}
.res-help{display:flex;gap:20px;align-items:flex-start;margin-top:40px;background:var(--soft);border:1px solid var(--line);border-left:4px solid var(--orange);border-radius:var(--radius);padding:28px}
.res-help .icon-tile{flex:none;margin:0;background:#fff}
.res-help h3{margin-bottom:.35em}
.res-help p{color:var(--muted);margin-bottom:18px}
.res-related-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:32px}
.res-related-head h2{margin:0}
.res-preview-bar{background:#FFF4D6;color:#5C4400;font-size:.92rem;padding:10px 0;border-bottom:1px solid #F1D98A}
.res-preview-bar a{text-decoration:underline;font-weight:600;margin-left:8px}
.res-missing{text-align:center;max-width:560px}

@media (max-width:960px){
  .res-featured{grid-template-columns:1fr}
  .res-featured .res-thumb{min-height:0;aspect-ratio:16/9}
  .res-follow-in{grid-template-columns:1fr}
}
@media (max-width:640px){
  .res-toolbar{flex-direction:column;align-items:stretch}
  .res-search{flex-basis:auto}
  .res-types{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}
  .res-types a{white-space:nowrap}
  .res-cats{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px;scrollbar-width:none}
  .res-cats a{white-space:nowrap}
  .res-prose{font-size:1rem}
  .res-help{flex-direction:column;padding:22px}
  .res-help .btn-row .btn{flex:1;justify-content:center}
  .res-related-head{flex-direction:column;align-items:flex-start;gap:8px}
  .res-wrap > .res-cover:first-child,.res-wrap > .res-video:first-child,.res-wrap > .res-embed:first-child{margin-top:-80px}
  .res-embed-instagram{height:620px}
}
