/* Static copy of the front page (heartlandcyberrange.com, \theme_cyber_range\local\export): what the live page
   gets from Moodle's theme CSS (fonts, Bootstrap reboot, sr-only), cut to what this page uses. style/frontpage.css
   follows this file in home.css; paths under  become relative to the copy. */
@font-face { font-family: 'Metropolis'; font-style: normal; font-display: swap; font-weight: 400;
    src: url('fonts/Metropolis-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Metropolis'; font-style: normal; font-display: swap; font-weight: 700;
    src: url('fonts/Metropolis-Bold.woff2') format('woff2'); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: .9375rem; font-weight: 400; line-height: 1.5; text-align: left; }
[hidden] { display: none !important; }
h1, h2, h3 { margin-top: 0; margin-bottom: .5rem; font-weight: 700; line-height: 1.2; }
/* From the theme (scss/post.scss), as the live page shows them. Card titles there ask for Inter from a CDN; the copy
   loads nothing from outside, so they stay Metropolis. */
h1 { font-size: 2.34375rem; text-transform: uppercase; }
h2 { font-size: 1.875rem; padding: 1em 0 .5em 0; line-height: 50px; }
h3 { font-size: 1.640625rem; }
p { margin-top: 0; margin-bottom: 1rem; }
ul, ol { margin-top: 0; margin-bottom: 1rem; }
strong, b { font-weight: bolder; }
a { color: #0f6cbf; text-decoration: none; background-color: transparent; }
img, svg { vertical-align: middle; }
img { border-style: none; }
pre { margin-top: 0; margin-bottom: 1rem; overflow: auto; font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 87.5%; }
button { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; border-radius: 0; text-transform: none; cursor: pointer; }
button, [type="button"] { -webkit-appearance: button; }
time { display: inline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Public front page: the cyber range's home page (layout/frontpage.php, templates/frontpage.mustache).
   Scoped to body.hcr-home so nothing here reaches any other page. Brand: EKC navy/blues, Metropolis. */

body.hcr-home {
    --hcr-navy: #141a45;
    --hcr-navy-2: #212b66;
    --hcr-blue: #0081c5;
    --hcr-sky: #71b2dc;
    --hcr-green: #6db657;
    --hcr-magenta: #b80b4d;
    --hcr-ink: #1d2340;
    --hcr-muted: #5b6382;
    --hcr-line: #e3e6f0;
    --hcr-soft: #f4f6fb;
    padding-left: 0 !important;
    margin-left: 0 !important;
    background: #fff !important;
    background-image: none !important;
    color: var(--hcr-ink);
    font-family: 'Metropolis', system-ui, sans-serif;
}
body.hcr-home a { text-decoration: none; }
.hcr-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.hcr-skip { position: absolute; left: -9999px; top: 0; z-index: 1100; background: #fff; padding: 8px 12px; }
.hcr-skip:focus { left: 8px; }
body.hcr-home a:focus-visible,
body.hcr-home button:focus-visible { outline: 3px solid var(--hcr-sky); outline-offset: 2px; }

/* Top bar */
.hcr-top { position: sticky; top: 0; z-index: 1000; background: rgba(20, 26, 69, .97); color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.hcr-top-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.hcr-brand { display: flex; align-items: center; gap: 12px; color: #fff !important; }
.hcr-brand img { height: 34px; width: auto; background: #fff; border-radius: 6px; padding: 3px 6px; }
.hcr-brand-name { font-weight: 700; letter-spacing: .2px; white-space: nowrap; }
.hcr-nav { display: flex; gap: 22px; margin-left: 8px; }
.hcr-nav a { color: rgba(255, 255, 255, .78) !important; font-size: .95rem; }
.hcr-nav a:hover { color: #fff !important; }
.hcr-login { margin-left: auto; color: #fff !important; font-size: .92rem; font-weight: 600;
    border: 1px solid rgba(255, 255, 255, .35); border-radius: 6px; padding: 6px 14px; white-space: nowrap; }
.hcr-login:hover { background: rgba(255, 255, 255, .1); }

/* Ticker */
.hcr-ticker { background: #0d1233; border-top: 1px solid rgba(255, 255, 255, .06); font-size: .85rem; }
.hcr-ticker-inner { display: flex; align-items: center; gap: 12px; height: 36px; }
.hcr-ticker-label { color: #fff; background: var(--hcr-magenta); border-radius: 3px; padding: 1px 8px;
    font-weight: 700; font-size: .7rem; letter-spacing: 1px; text-transform: uppercase; flex: none; }
.hcr-ticker-viewport { overflow: hidden; flex: 1; min-width: 0; }
.hcr-ticker-track { display: flex; gap: 40px; margin: 0; padding: 0; list-style: none; white-space: nowrap; width: max-content; }
.hcr-ticker-track li { display: inline-flex; align-items: center; gap: 8px; }
.hcr-ticker-track a { color: #e8ecff !important; }
.hcr-ticker-track a:hover { color: #fff !important; text-decoration: underline; }
.hcr-src { color: var(--hcr-sky); font-size: .75rem; }
.hcr-tag-breaking { color: #ffd2e0; border: 1px solid #ff6f9c; border-radius: 3px; padding: 0 6px; font-size: .7rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.hcr-ticker-moving .hcr-ticker-track { animation: hcr-scroll linear infinite; }
.hcr-ticker-moving .hcr-ticker-viewport:hover .hcr-ticker-track,
.hcr-ticker-moving .hcr-ticker-viewport:focus-within .hcr-ticker-track,
.hcr-ticker-paused .hcr-ticker-track { animation-play-state: paused; }
@keyframes hcr-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hcr-ticker-pause { flex: none; background: transparent; border: 1px solid rgba(255, 255, 255, .25); color: #fff;
    border-radius: 4px; width: 26px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }
.hcr-ticker-paused .hcr-ticker-pause { background: rgba(255, 255, 255, .15); }
.hcr-ticker:not(.hcr-ticker-moving) .hcr-ticker-viewport { overflow-x: auto; }
.hcr-ticker:not(.hcr-ticker-moving) .hcr-ticker-pause { display: none; }

/* Announcement */
.hcr-announce { background: #fff6dc; border-bottom: 1px solid #f0dfa6; color: #5a4300; font-size: .95rem; padding: 10px 0; }

/* Hero */
.hcr-hero { position: relative; color: #fff; padding: 88px 0 40px;
    background: radial-gradient(1100px 500px at 80% 0%, rgba(0, 129, 197, .45), transparent 60%),
                linear-gradient(180deg, rgba(20, 26, 69, .86), rgba(20, 26, 69, .96)),
                url('auth_background.png') center / cover no-repeat;
    overflow: hidden; }
.hcr-hero-inner { max-width: 820px; margin-left: max(0px, calc((100% - 1160px) / 2)); }
.hcr-eyebrow { color: var(--hcr-sky); text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; font-weight: 700; margin: 0 0 14px; }
.hcr-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; font-weight: 800; margin: 0 0 18px; }
.hcr-lead { font-size: 1.2rem; line-height: 1.55; color: rgba(255, 255, 255, .85); max-width: 640px; margin: 0 0 30px; }
.hcr-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hcr-btn { display: inline-block; border-radius: 8px; padding: 12px 22px; font-weight: 700; font-size: 1rem; line-height: 1.2; }
.hcr-btn-primary { background: var(--hcr-blue); color: #fff !important; }
.hcr-btn-primary:hover { background: #006fa9; }
.hcr-btn-ghost { color: #fff !important; border: 1px solid rgba(255, 255, 255, .45); }
.hcr-btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.hcr-btn-light { background: #fff; color: var(--hcr-navy) !important; }
.hcr-stats { display: flex; flex-wrap: wrap; gap: 0; list-style: none; padding: 0; margin: 64px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .14); }
.hcr-stats li { padding: 22px 48px 0 0; display: flex; flex-direction: column; }
.hcr-stat-value { font-size: 2rem; font-weight: 800; color: #fff; }
.hcr-stat-label { color: rgba(255, 255, 255, .7); font-size: .9rem; }

/* Sections */
.hcr-section { padding: 80px 0; }
.hcr-section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--hcr-navy-2); margin: 0 0 12px; }
.hcr-section-lead { color: var(--hcr-muted); font-size: 1.1rem; max-width: 700px; margin: 0 0 40px; }
.hcr-band { background: var(--hcr-soft); }
.hcr-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hcr-card { background: #fff; border: 1px solid var(--hcr-line); border-radius: 12px; padding: 26px 22px;
    transition: transform .15s ease, box-shadow .15s ease; }
.hcr-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20, 26, 69, .08); }
.hcr-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--hcr-navy-2); margin: 16px 0 8px; }
.hcr-card p { color: var(--hcr-muted); margin: 0; line-height: 1.5; }
.hcr-card-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; }
.hcr-card-labs .hcr-card-icon { background: var(--hcr-blue); }
.hcr-card-library .hcr-card-icon { background: var(--hcr-navy-2); }
.hcr-card-ctf .hcr-card-icon { background: var(--hcr-magenta); }
.hcr-card-teams .hcr-card-icon { background: #3f8f2f; }

.hcr-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hcr-steps { padding-left: 1.2rem; margin: 18px 0 28px; color: var(--hcr-muted); font-size: 1.05rem; line-height: 1.6; }
.hcr-steps li { margin-bottom: 10px; }
.hcr-steps strong { color: var(--hcr-ink); }
.hcr-terminal { background: #0d1233; border-radius: 12px; box-shadow: 0 20px 50px rgba(20, 26, 69, .25); overflow: hidden; }
.hcr-terminal-bar { display: flex; gap: 6px; padding: 10px 12px; background: #1a2150; }
.hcr-terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4278; display: block; }
.hcr-terminal pre { margin: 0; padding: 20px; color: #9fe7a0; font-size: .9rem; line-height: 1.6; background: transparent; border: 0; white-space: pre-wrap; }
.hcr-terminal pre span { color: #c9d3ff; }
.hcr-terminal pre b { animation: hcr-blink 1s step-end infinite; }
@keyframes hcr-blink { 50% { opacity: 0; } }

/* Events */
.hcr-events { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.hcr-events li { display: flex; gap: 18px; align-items: center; border: 1px solid var(--hcr-line); border-radius: 12px; padding: 14px 18px; }
.hcr-date { flex: none; width: 58px; text-align: center; background: var(--hcr-navy-2); color: #fff; border-radius: 8px; padding: 6px 0; }
.hcr-date span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--hcr-sky); }
.hcr-date b { font-size: 1.4rem; }
.hcr-events h3 { font-size: 1.05rem; margin: 0 0 2px; color: var(--hcr-ink); }
.hcr-events p, .hcr-empty { color: var(--hcr-muted); margin: 0; }
.hcr-empty { margin-top: 16px; }

/* News */
.hcr-news { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hcr-news li { background: #fff; border: 1px solid var(--hcr-line); border-radius: 12px; padding: 18px 20px; }
.hcr-news-meta { color: var(--hcr-blue); font-size: .8rem; font-weight: 600; margin: 0 0 8px; }
.hcr-news h3 { font-size: 1rem; line-height: 1.4; margin: 0; }
.hcr-news h3 a { color: var(--hcr-ink) !important; }
.hcr-news h3 a:hover { color: var(--hcr-blue) !important; }

/* Partners */
.hcr-logos { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.hcr-logos li { height: 96px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--hcr-line); border-radius: 10px; padding: 12px; }
.hcr-logos img { max-width: 100%; max-height: 64px; width: auto; height: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.hcr-logos a:hover img, .hcr-logos a:focus img { filter: none; opacity: 1; }
.hcr-logo-placeholder { color: #9aa1bb; font-size: .8rem; border: 1px dashed #c8cde0; border-radius: 6px; padding: 18px 10px; width: 100%; text-align: center; }

/* Organisations */
.hcr-orgs { background: linear-gradient(120deg, var(--hcr-navy-2), #0b5d92); color: #fff; padding: 64px 0; }
.hcr-orgs h2 { color: #fff; }
.hcr-orgs p { color: rgba(255, 255, 255, .85); font-size: 1.1rem; max-width: 640px; margin: 0; }
.hcr-orgs-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }

/* Footer */
.hcr-foot { background: var(--hcr-navy); color: rgba(255, 255, 255, .7); padding: 40px 0 28px; font-size: .9rem; }
.hcr-foot-inner { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: start; }
.hcr-foot img { height: 34px; width: auto; background: #fff; border-radius: 6px; padding: 3px 6px; }
.hcr-foot p { margin: 12px 0 0; }
.hcr-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.hcr-foot nav a { color: rgba(255, 255, 255, .85) !important; }
.hcr-foot nav a:hover { color: #fff !important; }
.hcr-foot-std { font-size: .8rem; }
.hcr-foot-std a { color: rgba(255, 255, 255, .6) !important; }
.hcr-copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 16px; }

/* Phone and tablet */
@media (max-width: 991px) {
    .hcr-nav { display: none; }
    .hcr-cards { grid-template-columns: repeat(2, 1fr); }
    .hcr-news { grid-template-columns: 1fr 1fr; }
    .hcr-logos { grid-template-columns: repeat(3, 1fr); }
    .hcr-split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .hcr-wrap { padding: 0 16px; }
    .hcr-brand-name { display: none; }
    .hcr-hero { padding: 56px 0 32px; }
    .hcr-stats li { padding-right: 28px; }
    .hcr-section { padding: 56px 0; }
    .hcr-cards, .hcr-news { grid-template-columns: 1fr; }
    .hcr-logos { grid-template-columns: repeat(2, 1fr); }
    .hcr-orgs-inner { flex-direction: column; align-items: flex-start; }
    .hcr-foot-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .hcr-card, .hcr-logos img { transition: none; }
    .hcr-terminal pre b { animation: none; }
}

/* HCR News: current site announcements, shown on the page and leading the ticker */
.hcr-tag-hcr { color: #fff; background: var(--hcr-blue); border-radius: 3px; padding: 0 6px; font-size: .7rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.hcr-range-news { padding: 48px 0; background: #eef6fc; border-bottom: 1px solid #d6e9f6; }
.hcr-range-news-list { display: grid; gap: 16px; margin-top: 18px; }
.hcr-range-item { background: #fff; border: 1px solid #d6e9f6; border-left: 4px solid var(--hcr-blue); border-radius: 10px; padding: 18px 22px; }
.hcr-range-item:target, .hcr-range-item:focus { outline: 3px solid var(--hcr-sky); outline-offset: 2px; }
.hcr-range-item h3 { font-size: 1.15rem; font-weight: 700; color: var(--hcr-navy-2); margin: 0 0 8px; }
.hcr-range-body { color: var(--hcr-ink); line-height: 1.55; }
.hcr-range-body p:last-child { margin-bottom: 0; }
.hcr-range-body img { max-width: 100%; height: auto; }
.hcr-orgs-mail { margin-top: 10px !important; }
.hcr-orgs-mail a { color: #fff !important; text-decoration: underline !important; }
#hcr-range-news, #hcr-about, #hcr-events, #hcr-news, #hcr-partners, .hcr-range-item { scroll-margin-top: 120px; }
