/* Spectre fleet site, Modern layout. Colours come from the fleet's palette as --fl-* properties
   (App\Fleet\SiteTheme, printed in the page head). Motion stops under prefers-reduced-motion. */

@keyframes fl-drift { from { background-position: 0 0, 0 0, 0 0; } to { background-position: -400px 200px, -200px 100px, -100px 50px; } }
@keyframes fl-twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes fl-sweep { 0% { transform: translateX(-120%) skewX(-20deg); } 100% { transform: translateX(320%) skewX(-20deg); } }
@keyframes fl-pulse { 0% { box-shadow: 0 0 0 0 rgba(126,226,168,.55); } 70% { box-shadow: 0 0 0 10px rgba(126,226,168,0); } 100% { box-shadow: 0 0 0 0 rgba(126,226,168,0); } }
@keyframes fl-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fl-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.fl { margin: 0; background: var(--fl-bg); color: var(--fl-text); font: 400 16px/1.5 var(--fl-body); }
.fl a { color: inherit; }
.fl a:focus-visible, .fl button:focus-visible { outline: 2px solid var(--fl-accent); outline-offset: 2px; }
.fl-page { min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.fl-page > main { flex: 1 0 auto; }
.fl-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.fl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fl-skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 8px 14px; border-radius: 8px; background: var(--fl-accent); color: var(--fl-on-accent) !important; text-decoration: none; font-weight: 600; }
.fl-skip:focus { top: 12px; }

/* Header and tabs */
.fl-head { position: relative; z-index: 2; background: var(--fl-glass); border-bottom: 1px solid var(--fl-line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.fl-head-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 14px; padding-bottom: 14px; }
.fl-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.fl-emblem { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--fl-accent); box-shadow: 0 0 18px var(--fl-glow), inset 0 0 12px var(--fl-glow);
    display: flex; align-items: center; justify-content: center; font: 800 18px/1 var(--fl-display); color: var(--fl-accent); }
.fl-brand-name { font: 800 21px/1.15 var(--fl-display); letter-spacing: .08em; text-transform: uppercase; overflow-wrap: break-word; min-width: 0; }
.fl-nav { flex: 1 1 520px; display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.fl-nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; color: var(--fl-muted); }
.fl-nav a:hover { color: var(--fl-text); }
.fl-nav a.on { color: var(--fl-accent); font-weight: 600; box-shadow: inset 0 -2px 0 var(--fl-accent); }
.fl-preview { background: var(--fl-panel); border-bottom: 1px solid var(--fl-accent); font-size: 14px; padding: 10px 0; position: relative; z-index: 2; }
.fl-preview a { color: var(--fl-accent); font-weight: 600; }

/* Hero: starfield, planet, orbit ring */
.fl-hero, .fl-pagehead { position: relative; isolation: isolate; }
.fl-hero { padding: 72px 0 64px; }
.fl-pagehead { padding: 56px 0 40px; border-bottom: 1px solid var(--fl-line); }
.fl-stars { position: absolute; inset: 0; z-index: -2; opacity: .7; animation: fl-drift 90s linear infinite;
    background-image: radial-gradient(1.5px 1.5px at 20px 30px, var(--fl-star) 60%, transparent 61%),
        radial-gradient(1px 1px at 90px 120px, var(--fl-star) 60%, transparent 61%),
        radial-gradient(2px 2px at 160px 60px, var(--fl-star) 60%, transparent 61%);
    background-size: 200px 160px, 260px 220px, 340px 300px; }
.fl-planet { position: absolute; z-index: -1; width: 640px; height: 640px; right: -120px; top: -180px; border-radius: 50%; opacity: .9;
    background: radial-gradient(circle at 35% 35%, var(--fl-planet-hi), var(--fl-planet) 55%, transparent 70%); }
.fl-orbit { position: absolute; z-index: -1; width: 900px; height: 900px; right: -250px; top: -310px; border-radius: 50%; border: 1px solid var(--fl-line); opacity: .7; }
.fl-pagehead .fl-planet { width: 420px; height: 420px; right: -90px; top: -230px; }
.fl-hero-in { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.fl-hero-copy { flex: 1 1 560px; min-width: 0; }
.fl-rise { animation: fl-rise .7s ease-out both; }
.fl-stats.fl-rise { animation-delay: .12s; }
.fl-badge { margin: 0 0 14px; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--fl-accent);
    border: 1px solid var(--fl-line); padding: 6px 12px; border-radius: 999px; background: var(--fl-glass); }
.fl-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--fl-ok); animation: fl-pulse 2s infinite; }
.fl-title { margin: 0 0 18px; font: 800 clamp(40px, 8.4vw, 76px)/.98 var(--fl-display); letter-spacing: -.01em; text-transform: uppercase;
    text-shadow: 0 0 40px var(--fl-glow); overflow-wrap: break-word; }
.fl-title-page { margin: 0; font-size: clamp(34px, 6.4vw, 56px); }
.fl-lede { margin: 0 0 32px; font-size: 20px; color: var(--fl-muted); max-width: 560px; }
.fl-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.fl-btn { position: relative; overflow: hidden; display: inline-block; text-decoration: none; padding: 16px 28px; border-radius: 12px; font-weight: 700; font-size: 17px;
    transition: transform .2s ease, box-shadow .2s ease; }
.fl-btn:hover { transform: translateY(-2px); }
.fl a.fl-btn-main { background: var(--fl-accent); color: var(--fl-on-accent); box-shadow: 0 8px 30px var(--fl-glow); }
.fl a.fl-btn-alt { border: 1px solid var(--fl-accent); color: var(--fl-text); background: var(--fl-glass); }
.fl-sweep { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: rgba(255,255,255,.28); pointer-events: none;
    transform: translateX(-120%) skewX(-20deg); animation: fl-sweep 6s ease-in-out infinite; }
.fl-stats { flex: 1 1 320px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fl-stat { background: var(--fl-glass); border: 1px solid var(--fl-line); border-radius: 16px; padding: 20px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    box-shadow: 0 0 26px -8px var(--fl-glow); }
.fl-stat-v { font: 800 38px/1.15 var(--fl-display); color: var(--fl-accent); text-shadow: 0 0 22px var(--fl-glow); }
.fl-stat-l { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--fl-muted); }

/* Ticker */
.fl-ticker { border-top: 1px solid var(--fl-line); border-bottom: 1px solid var(--fl-line); background: var(--fl-glass); overflow: hidden; }
.fl-ticker-track { display: flex; width: max-content; padding: 12px 0; font-size: 14px; white-space: nowrap; animation: fl-ticker 40s linear infinite; }
.fl-ticker:hover .fl-ticker-track { animation-play-state: paused; }
.fl-tick { padding-right: 48px; color: var(--fl-muted); }
.fl-tick b { color: var(--fl-accent); font-weight: 600; }

/* Sections and sim cards */
.fl-section { padding-top: 36px; padding-bottom: 12px; }
.fl-section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.fl-h2 { margin: 0; font: 800 30px/1.2 var(--fl-display); text-transform: uppercase; letter-spacing: .04em; overflow-wrap: break-word; }
.fl-h2-sm { font-size: 22px; }
.fl a.fl-more { font-size: 15px; color: var(--fl-accent); text-decoration: none; font-weight: 500; }
.fl a.fl-more:hover, .fl a.fl-card-link:hover { text-decoration: underline; }
.fl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.fl-card { position: relative; background: var(--fl-surface); border: 1px solid var(--fl-line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.fl-card:hover { transform: translateY(-6px); border-color: var(--fl-accent); box-shadow: 0 14px 34px -10px var(--fl-glow); }
.fl-art { --fl-angle: 120deg; position: relative; height: 150px; background: linear-gradient(var(--fl-angle), var(--fl-art1), var(--fl-art2)); }
.fl-card:nth-child(3n+2) .fl-art { --fl-angle: 160deg; }
.fl-card:nth-child(3n) .fl-art { --fl-angle: 200deg; }
/* A ship's own picture on its card (the fleet's copy, App\Fleet\ShipPictures) in place of the drawn art; its emblem small in a corner */
.fl-art.fl-art-pic { background: var(--fl-panel); opacity: 1; overflow: hidden; }
.fl-art-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.fl-art-emblem { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 4px;
    border-radius: 10px; background: rgba(0,0,0,.5); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.fl-art-emblem img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.fl-row-emblem { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; vertical-align: middle; margin-right: 8px; }
.fl-row-emblem img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.fl-glint { position: absolute; border-radius: 50%; background: #fff; animation: fl-twinkle 4s ease-in-out infinite; }
.fl-glint.g1 { width: 3px; height: 3px; top: 30px; left: 40px; }
.fl-glint.g2 { width: 2px; height: 2px; top: 70px; left: 180px; animation-delay: 1.3s; }
.fl-glint.g3 { width: 2px; height: 2px; top: 112px; left: 96px; animation-delay: 2.5s; }
.fl-glint.g4 { width: 3px; height: 3px; top: 44px; right: 34px; animation-delay: .7s; }
.fl-card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.fl-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fl-chips:empty { display: none; }
.fl-chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--fl-line); color: var(--fl-muted); }
.fl-chip-ok { display: inline-flex; align-items: center; gap: 6px; border-color: transparent; background: var(--fl-ok-bg); color: var(--fl-ok); }
.fl-chip-ok .fl-dot { width: 6px; height: 6px; }
.fl-card-title { margin: 0; font: 700 22px/1.25 var(--fl-display); overflow-wrap: break-word; }
.fl-meta { margin: 0; font-size: 14px; color: var(--fl-muted); }
.fl-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fl a.fl-card-link { margin-top: auto; font-size: 15px; font-weight: 600; color: var(--fl-accent); text-decoration: none; }

/* News, citation, events, community link */
.fl-split { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 36px; padding-bottom: 12px; }
.fl-split-main { flex: 999 1 560px; min-width: 0; }
.fl-split-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.fl-news { display: flex; flex-direction: column; gap: 14px; }
.fl-narrow { max-width: 860px; }
.fl-news-item { display: flex; gap: 18px; background: var(--fl-surface); border: 1px solid var(--fl-line); border-radius: 16px; padding: 18px;
    transition: transform .25s ease, border-color .25s ease; }
.fl-news-item:hover { transform: translateY(-3px); border-color: var(--fl-accent); }
.fl-news-body { min-width: 0; }
.fl-news-body h3 { margin: 4px 0; font-size: 19px; line-height: 1.3; overflow-wrap: break-word; }
.fl-news-body p { margin: 0 0 6px; font-size: 15px; color: var(--fl-muted); white-space: pre-line; overflow-wrap: break-word; }
.fl-date { flex: none; align-self: flex-start; min-width: 64px; text-align: center; border-radius: 12px; padding: 8px; background: var(--fl-panel); }
.fl-date-m { display: block; font-size: 12px; letter-spacing: .1em; color: var(--fl-muted); text-transform: uppercase; }
.fl-date-d { font: 800 26px/1.1 var(--fl-display); color: var(--fl-accent); }
.fl-kind { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--fl-accent); font-weight: 600; }
.fl-cite { position: relative; overflow: hidden; border-radius: 16px; padding: 22px; background: var(--fl-panel); border: 1px solid var(--fl-accent); box-shadow: 0 0 30px var(--fl-glow); }
.fl-cite-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--fl-accent); }
.fl-cite-name { font: 800 24px/1.2 var(--fl-display); margin: 6px 0 2px; overflow-wrap: break-word; }
.fl-cite-text { font-size: 14px; color: var(--fl-muted); }
/* The ships' latest posts (shared/_post): cards side by side where there is room */
.fl-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.fl-post h3 a { color: inherit; text-decoration: none; }
.fl-post h3 a:hover, .fl-post h3 a:focus-visible { color: var(--fl-accent); text-decoration: underline; }
.fl-post .fl-chip { vertical-align: middle; white-space: nowrap; }
.fl-box { background: var(--fl-surface); border: 1px solid var(--fl-line); border-radius: 16px; padding: 20px; }
.fl-box h2 { margin: 0 0 12px; font-size: 18px; }
.fl-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fl-event { display: flex; gap: 12px; align-items: center; }
.fl-event-date { flex: none; border: 1px solid var(--fl-accent); border-radius: 10px; padding: 6px 10px; text-align: center; min-width: 52px; }
.fl-event-d { display: block; font-weight: 800; font-size: 20px; line-height: 1.2; color: var(--fl-accent); }
.fl-event-t { display: block; font-size: 15px; }
.fl a.fl-link-card { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 18px 20px; transition: transform .25s ease, border-color .25s ease; }
.fl a.fl-link-card:hover { transform: translateY(-3px); border-color: var(--fl-accent); }
.fl-link-card svg { flex: none; color: var(--fl-accent); }
.fl-link-card .fl-meta { display: block; }

/* Inner pages */
.fl-panel { background: var(--fl-surface); border: 1px solid var(--fl-line); border-radius: 18px; padding: 28px; }
.fl-prose { max-width: 860px; font-size: 17px; line-height: 1.65; overflow-wrap: break-word; }
.fl-prose > :first-child { margin-top: 0; }
.fl-prose > :last-child { margin-bottom: 0; }
.fl-prose p, .fl-prose ul { margin: 0 0 1em; }
.fl-prose ul { padding-left: 1.3em; }
.fl-prose h2 { margin: 1.4em 0 .4em; font: 700 24px/1.25 var(--fl-display); }
.fl-prose a, .fl-plain-list a { color: var(--fl-accent); }
.fl-group-head { margin-bottom: 18px; }
.fl-group-head .fl-meta { margin-top: 6px; max-width: 860px; }
.fl-leaders { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.fl-leaders b { color: var(--fl-accent); font-weight: 600; margin-right: 4px; }
.fl-depth-2, .fl-depth-3 { padding-left: 48px; }
.fl-plain-list { margin: 0; padding-left: 1.2em; line-height: 1.9; }

/* Footer */
.fl-foot { border-top: 1px solid var(--fl-line); margin-top: 48px; background: var(--fl-glass); }
.fl-foot-in { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--fl-muted); }

/* Phones */
@media (max-width: 700px) {
    .fl-wrap { padding-left: 16px; padding-right: 16px; }
    .fl-head-in { gap: 10px 16px; }
    .fl-nav { flex-basis: 100%; }
    .fl-nav a { padding: 7px 9px; }
    .fl-brand-name { font-size: 18px; }
    .fl-hero { padding: 44px 0 40px; }
    .fl-hero-in { gap: 28px; }
    /* Up and out of the way, dimmer: its bright side never sits behind the text */
    .fl-planet { width: 300px; height: 300px; right: -150px; top: -150px; opacity: .6; }
    .fl-orbit { width: 520px; height: 520px; right: -230px; top: -200px; }
    .fl-pagehead { padding: 40px 0 28px; }
    .fl-pagehead .fl-planet { width: 280px; height: 280px; right: -120px; top: -160px; }
    .fl-lede { font-size: 18px; margin-bottom: 26px; }
    .fl-btn { padding: 14px 22px; font-size: 16px; }
    .fl-stat { padding: 16px; }
    .fl-stat-v { font-size: 32px; }
    .fl-h2 { font-size: 25px; }
    .fl-grid { grid-template-columns: minmax(0, 1fr); }
    .fl-news-item { gap: 14px; padding: 14px; }
    .fl-date { min-width: 54px; padding: 6px; }
    .fl-panel { padding: 20px; }
    .fl-prose { font-size: 16px; }
    .fl-depth-2, .fl-depth-3 { padding-left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .fl-stars, .fl-glint, .fl-sweep, .fl-dot, .fl-ticker-track, .fl-rise { animation: none; }
    .fl-sweep { display: none; }
    .fl-card, .fl-btn, .fl-news-item, .fl a.fl-link-card { transition: none; }
    .fl-card:hover, .fl-btn:hover, .fl-news-item:hover, .fl a.fl-link-card:hover { transform: none; }
    .fl-ticker-track { width: auto; flex-wrap: wrap; white-space: normal; gap: 6px 0; padding: 12px 24px; }
    .fl-tick[data-copy] { display: none; }
}

/* The fleet's own pictures: the banner behind the hero (shaded so the text stays readable), the emblem in its ring */
.fl-hero-img { position: absolute; inset: 0; z-index: -3; background-size: cover; background-position: center; }
.fl-hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--fl-bg) 10%, rgba(0,0,0,0) 85%), linear-gradient(0deg, var(--fl-bg), rgba(0,0,0,0) 45%); opacity: .92; }
.fl-hero-pic .fl-planet, .fl-hero-pic .fl-orbit { display: none; }
.fl-emblem-pic { overflow: hidden; padding: 0; }
.fl-emblem-pic img { width: 100%; height: 100%; object-fit: cover; }

/* History: the timeline */
.fl-timeline { list-style: none; margin: 0; padding: 0 0 0 30px; border-left: 2px solid var(--fl-line); }
.fl-tl-item { position: relative; padding: 0 0 28px; }
.fl-tl-node { position: absolute; left: -39px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--fl-bg); border: 2px solid var(--fl-accent); box-shadow: 0 0 14px var(--fl-glow); }
.fl-tl-node.now { background: var(--fl-accent); }
.fl-tl-title { margin: 4px 0 6px; font: 700 20px/1.3 var(--fl-display); overflow-wrap: break-word; }
.fl-tl-item .fl-meta { margin-bottom: 6px; }
@media (max-width: 700px) { .fl-hero-img::after { background: linear-gradient(0deg, var(--fl-bg) 20%, rgba(0,0,0,0)), linear-gradient(90deg, var(--fl-bg), rgba(0,0,0,0)); opacity: .9; } }
