/* ==========================================================================
   Optional modules: Journal, Careers, Downloads, Videos.
   Loaded only on those pages, so the main site stays light.
   ========================================================================== */

/* Journal */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); gap: var(--s4) var(--s3); }
.post { text-decoration: none; display: block; min-width: 0; }
.post .thumb { aspect-ratio: 16 / 10; background: var(--c-soft); overflow: hidden; margin-bottom: .8rem; display: grid; place-items: center; color: var(--c-mute); border-radius: var(--radius); }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post:hover .thumb img { transform: scale(1.04); }
.post .thumb .ms { font-size: 3rem; opacity: .5; }
.post .meta { color: var(--c-accent-dark); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.post h3 { font-size: 1.5rem; margin: .2rem 0 .3rem; }
.post p { color: var(--c-mute); }
.article { max-width: 46rem; padding-bottom: var(--s5); }
.article .meta { color: var(--c-mute); margin-top: var(--s1); }
.article h2 { font-size: 1.7rem; margin: var(--s4) 0 var(--s1); }
.article p, .article ul, .article ol { margin-top: var(--s2); }
.article ul, .article ol { padding-left: 1.3rem; }
.article img { margin-block: var(--s3); }
.article blockquote { border-left: .25rem solid var(--c-accent); padding-left: var(--s2); color: var(--c-mute); margin-top: var(--s2); font-size: 1.15rem; }

/* Careers */
.jobs { display: grid; gap: var(--s2); }
.job { border: 1px solid var(--c-line); padding: var(--s3); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2) var(--s3); align-items: start; border-radius: var(--radius); }
.job h3 { font-size: 1.6rem; }
.job .chips { justify-content: flex-start; margin: .5rem 0; }
.job .chips span { border: 1px solid var(--c-line); padding: .1rem .7rem; font-size: .88rem; color: var(--c-mute); }
.job p { color: var(--c-mute); }
@media (max-width: 40rem) { .job { grid-template-columns: minmax(0, 1fr); } }

/* Downloads */
.dl { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; border: 1px solid var(--c-line); padding: 1.75rem 1.25rem 1.4rem; text-decoration: none; background: #fff; border-radius: var(--radius); transition: border-color .2s, box-shadow .2s, transform .2s; }
.dl:hover { border-color: var(--c-accent); box-shadow: var(--shadow); transform: translateY(-.2rem); }
.dl-icon { width: 4.5rem; height: 4.5rem; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 144, 39, .13); color: var(--c-accent-dark); transition: background .25s, color .25s; }
.dl-icon .ms { font-size: 2.6rem; }
.dl:hover .dl-icon { background: var(--c-accent); color: var(--c-on-accent); }
.dl h3 { font-size: 1.35rem; }
.dl p { color: var(--c-mute); font-size: .96rem; }
.dl .meta { font-size: .8rem; letter-spacing: .08em; color: var(--c-mute); text-transform: uppercase; }
.dl-get { margin-top: auto; padding-top: .4rem; display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; border: 2px solid var(--c-ink); padding: .4rem 1.1rem; transition: background .2s, color .2s; }
.dl:hover .dl-get { background: var(--c-ink); color: #fff; }
.dl-list[data-cols="5"] .dl p, .dl-list[data-cols="6"] .dl p { display: none; }
.dl-list[data-cols="6"] .dl-get span:last-child { display: none; }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: var(--s3); }
.vcard { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; min-width: 0; }
.vcard .thumb { position: relative; aspect-ratio: 16 / 9; background: var(--c-dark); overflow: hidden; margin-bottom: .7rem; display: grid; place-items: center; border-radius: var(--radius); }
.vcard .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .5s, opacity .3s; }
.vcard:hover .thumb img { transform: scale(1.04); opacity: 1; }
.vcard .play { position: relative; width: 3.6rem; height: 3.6rem; display: grid; place-items: center; background: var(--c-accent); color: var(--c-on-accent); border-radius: 50%; box-shadow: var(--shadow); }
.vcard .play .ms { font-size: 2rem; }
.vcard .meta { color: var(--c-accent-dark); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.vcard h3 { font-size: 1.4rem; margin-top: .15rem; }
.vmodal { position: fixed; inset: 0; z-index: 60; background: rgba(10, 12, 14, .94); display: grid; place-items: center; padding: var(--s2); }
.vmodal .box { width: min(100%, 64rem); }
.vmodal .video-embed { margin: 0; }
.vmodal .vclose { position: absolute; top: max(1rem, env(safe-area-inset-top)); right: 1rem; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 3rem; height: 3rem; display: grid; place-items: center; cursor: pointer; }
.vmodal .vclose:hover { background: var(--c-accent); color: var(--c-on-accent); }
