/* Media, Development, Careers and News: extra pieces on top of the HN Group website stylesheet (site.css, unchanged). */
.loading { padding: 6rem 24px; color: var(--muted); }
.page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.6rem, 6vw, 4.5rem); }
.page-hero h1 { max-width: 18ch; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .head-steps { position: absolute; right: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); bottom: 5rem; width: min(260px, 26%); pointer-events: none; }
@media (max-width: 820px) { .page-hero .head-steps { display: none; } }
.narrow { max-width: 720px; }
.center { text-align: center; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: minmax(0, 1fr); } }
.card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
a.card { color: var(--text); text-decoration: none; display: block; }
a.card:hover, .company-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 34px rgba(85, 20, 180, .12); }
.card h3 { margin-top: .4rem; }
.card-number { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0; }
.panel h3 { margin-top: 0; }
.empty { grid-column: 1 / -1; text-align: center; }
.callout { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.callout h2 { margin-bottom: .3rem; }
.callout p { margin: 0; }
.callout-card .btn { margin-top: .4rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; margin: .4rem 0 1rem; }
.check input { width: auto; margin: .3rem 0 0; accent-color: var(--accent); flex: none; }
.choices { border: 1px solid var(--border); border-radius: 14px; padding: .8rem 1rem; margin: 0 0 1rem; }
.choices legend { font-weight: 700; padding: 0 .3rem; }
.choices .check { margin: .3rem 0; }
.back-link { display: inline-block; font-weight: 700; text-decoration: none; margin-bottom: 1.2rem; }
.notice { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; background: var(--navy); color: #fff; padding: .8rem 1.2rem; border-radius: 999px; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.notice:focus { outline: none; }
.article-body, .job-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.article { margin-top: 1.5rem; }
.article .btn-small { margin-bottom: 1rem; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; padding: 1.2rem 1.4rem .4rem; margin-bottom: 1rem; }
.kind-news .filters, .kind-careers .filters { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 720px) { .filters, .kind-news .filters, .kind-careers .filters { grid-template-columns: minmax(0, 1fr); } }

/* Careers */
.stats-band { padding: 0 0 1rem; margin-top: -1.5rem; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow); display: grid; }
.stat strong { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: var(--accent); font-weight: 800; }
.stat span { color: var(--muted); font-weight: 600; margin-top: .4rem; }
@media (max-width: 620px) { .stats { grid-template-columns: minmax(0, 1fr); } }
.job-card { display: flex !important; flex-direction: column; gap: .2rem; }
.job-card h3 { margin: .8rem 0 .2rem; }
.job-card-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.job-logo img { height: 30px; width: auto; max-width: 150px; object-fit: contain; object-position: left; }
.job-salary { font-weight: 700; margin: .4rem 0 0; }
.job-foot { margin: auto 0 0; padding-top: 1rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); }
.job-foot .link-arrow { color: var(--accent); font-weight: 700; }
.company-card { display: flex; flex-direction: column; }
.company-card-logo img { height: 46px; width: auto; max-width: 100%; object-fit: contain; object-position: left; margin-bottom: 1rem; }
.company-card p { flex: 1; }
.company-card-foot { flex: none !important; display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 0; }
.steps-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; counter-reset: none; }
@media (max-width: 980px) { .steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps-list { grid-template-columns: minmax(0, 1fr); } }
.step-number { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.job-hero h1 { max-width: 22ch; margin-top: 1rem; }
.job-hero-brand .job-logo img { height: 40px; }
.job-facts { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.job-facts li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: .55rem .9rem; display: grid; }
.job-facts span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.job-split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.job-split #apply { position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (max-width: 900px) { .job-split { grid-template-columns: minmax(0, 1fr); } .job-split #apply { position: static; } }
.progress { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; counter-reset: stage; }
.progress li { counter-increment: stage; font-size: .82rem; font-weight: 700; color: var(--muted); border-top: 4px solid var(--border); padding-top: .5rem; }
.progress li.done { border-color: var(--accent); color: var(--text); }
.progress li.now { border-color: var(--accent); color: var(--accent); }
@media (max-width: 560px) { .progress { grid-template-columns: minmax(0, 1fr); } }
.status-card { margin-top: 1.2rem; }
.status-card:focus { outline: none; }

/* Staff administration */
.admin-user { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.admin-user img, .avatar-initials { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.avatar-initials { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.admin-user p { margin: 0; }
.admin-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-left: auto; }
.admin-row { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--border); }
.admin-row strong { display: block; margin-top: .3rem; }
.admin-row p { margin: 0; }
.admin-split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }

@media (prefers-reduced-motion: reduce) { .card, a.card:hover, .company-card:hover { transition: none; transform: none; } }
