@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
@import url('/assets/admin.css');
@import url('/assets/admin-actions.css');
@import url('/assets/sources.css');
@import url('/assets/rating.css');
@import url('/assets/source-discovery.css');
@import url('/assets/users.css');

:root {
    --bg:#080909;
    --panel:#111313;
    --line:#272a28;
    --muted:#929993;
    --text:#f4f5f2;
    --lime:#c7ff35;
    --green:#52e88b;
}

* {
    box-sizing:border-box;
}

html,
body {
    width:100%;
    max-width:100%;
}

body {
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-family:'DM Sans',sans-serif;
}

a {
    color:inherit;
    text-decoration:none;
}

/* HEADER */

.topbar {
    height:92px;
    border-bottom:1px solid var(--line);
    display:flex;
    align-items:stretch;
    padding:0 max(28px,calc((100vw - 1440px)/2));
    position:sticky;
    top:0;
    background:rgba(8,9,9,.94);
    backdrop-filter:blur(18px);
    z-index:5;
}

.brand {
    display:flex;
    align-items:center;
    gap:13px;
    font:700 17px 'Manrope';
    letter-spacing:.06em;
    min-width:240px;
}

.brand strong {
    color:var(--lime);
}

.brand-mark {
    width:40px;
    height:40px;
    border:1px solid #434840;
    display:grid;
    place-items:center;
    letter-spacing:-.15em;
    font-size:18px;
    transform:rotate(-2deg);
    flex-shrink:0;
}

.brand-mark span {
    color:var(--lime);
}

.status-strip {
    margin-left:auto;
    display:flex;
    min-width:0;
}

.status-strip>div {
    min-width:142px;
    padding:22px 24px;
    border-left:1px solid var(--line);
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:5px;
}

.status-strip small,
.update small {
    color:var(--muted);
    font:600 9px 'Manrope';
    letter-spacing:.1em;
}

.status-strip b {
    font:600 14px 'Manrope';
    white-space:nowrap;
}

.status-strip em {
    color:var(--green);
    font:500 10px 'DM Sans';
    margin-left:5px;
}

.status-strip .clock {
    min-width:104px;
}

.clock b {
    font-size:21px;
}

/* MAIN */

main {
    width:100%;
    max-width:1440px;
    margin:auto;
    padding:0 28px;
    min-width:0;
}

/* HERO */

.hero {
    min-height:390px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:32px;
    border-bottom:1px solid var(--line);
    min-width:0;
}

.hero > * {
    min-width:0;
}

.eyebrow {
    font:700 11px 'Manrope';
    letter-spacing:.2em;
    color:#aeb3ad;
}

.eyebrow span {
    display:inline-block;
    width:34px;
    height:1px;
    background:var(--lime);
    vertical-align:middle;
    margin-right:12px;
}

.hero h1 {
    font:700 clamp(46px,6vw,86px)/.98 'Manrope';
    letter-spacing:-.055em;
    margin:27px 0 22px;
    overflow-wrap:break-word;
}

.hero h1 i {
    font-style:normal;
    color:var(--lime);
}

.lead {
    max-width:630px;
    color:#a8ada7;
    font-size:17px;
    line-height:1.65;
}

.update {
    border:1px solid var(--line);
    min-width:260px;
    padding:22px;
    display:flex;
    align-items:center;
    gap:13px;
}

.update b {
    display:block;
    font:600 14px 'Manrope';
    margin-top:5px;
}

.update button {
    margin-left:auto;
    background:none;
    border:0;
    color:var(--lime);
    font-size:22px;
    cursor:pointer;
}

.pulse {
    width:8px;
    height:8px;
    background:var(--green);
    border-radius:50%;
    box-shadow:0 0 0 6px #52e88b15;
    flex-shrink:0;
}

/* FILTERS */

.filters {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:7px;
    padding:26px 0;
    width:100%;
    max-width:100%;
    min-width:0;
}

.filters button {
    border:1px solid var(--line);
    background:transparent;
    color:#aeb3ad;
    padding:11px 17px;
    font:600 12px 'Manrope';
    cursor:pointer;
    white-space:nowrap;
    max-width:100%;
}

.filters button.active {
    background:var(--lime);
    border-color:var(--lime);
    color:#111;
}

.filters span {
    background:#1c1f1c;
    color:#aaa;
    padding:2px 6px;
    margin-left:5px;
}

.filters .active span {
    background:#111;
    color:var(--lime);
}

/* NEWS GRID */

.news-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
    padding-bottom:80px;
    width:100%;
    min-width:0;
}

.card {
    background:var(--panel);
    border:1px solid var(--line);
    transition:.25s;
    min-width:0;
    max-width:100%;
}

.card:hover {
    transform:translateY(-3px);
    border-color:#51564e;
}

.card>a {
    height:100%;
    display:flex;
    flex-direction:column;
    min-width:0;
}

.image {
    height:210px;
    background:linear-gradient(135deg,#1b201b,#0d0e0d);
    position:relative;
    overflow:hidden;
    min-width:0;
    max-width:100%;
}

.image:after {
    content:'NG';
    position:absolute;
    inset:0;
    display:grid;
    place-items:center;
    color:#2b302a;
    font:800 42px 'Manrope';
}

.image img {
    display:block;
    width:100%;
    max-width:100%;
    height:100%;
    object-fit:cover;
    position:relative;
    z-index:1;
    transition:.4s;
}

.card:hover img {
    transform:scale(1.025);
}

.category {
    position:absolute;
    z-index:2;
    top:15px;
    left:15px;
    background:var(--lime);
    color:#0b0c0b;
    padding:6px 9px;
    font:800 9px 'Manrope';
    letter-spacing:.12em;
    text-transform:uppercase;
}

.content {
    padding:23px;
    display:flex;
    flex-direction:column;
    flex:1;
    min-width:0;
    max-width:100%;
}

.meta {
    display:flex;
    justify-content:space-between;
    gap:12px;
    color:var(--muted);
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.08em;
    min-width:0;
}

.meta > * {
    min-width:0;
}

.meta span {
    color:var(--lime);
    font-weight:700;
}

.content h2 {
    font:700 21px/1.3 'Manrope';
    letter-spacing:-.025em;
    margin:15px 0 12px;
    overflow-wrap:anywhere;
}

.content p {
    color:#9ca19c;
    font-size:14px;
    line-height:1.55;
    margin:0 0 24px;
    overflow-wrap:anywhere;
}

.read {
    margin-top:auto;
    padding-top:18px;
    border-top:1px solid var(--line);
    font-size:12px;
    color:#c6cac4;
}

.read span {
    float:right;
    color:var(--lime);
    font-size:17px;
}

/* FEATURED */

.featured {
    grid-column:span 2;
    min-width:0;
}

.featured>a {
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
    min-width:0;
}

.featured .image {
    height:100%;
    min-height:400px;
}

.featured .content {
    padding:32px;
}

.featured .content h2 {
    font-size:30px;
}

/* EMPTY */

.empty {
    grid-column:1/-1;
    text-align:center;
    border:1px dashed var(--line);
    padding:80px;
    color:var(--muted);
    min-width:0;
}

.empty div {
    color:var(--lime);
    font:800 50px 'Manrope';
}

.empty h2 {
    color:white;
}

code {
    background:#20231f;
    padding:3px 7px;
    overflow-wrap:anywhere;
}

/* FOOTER */

footer {
    border-top:1px solid var(--line);
    width:100%;
    max-width:1440px;
    margin:auto;
    padding:35px 28px;
    display:flex;
    align-items:center;
    gap:30px;
    color:#777;
    font-size:11px;
    min-width:0;
}

.mini {
    min-width:auto;
    margin-right:auto;
}

.mini .brand-mark {
    width:30px;
    height:30px;
    font-size:13px;
}

/* TABLET */

@media(max-width:1000px) {

    .status-strip>div:nth-child(-n+3) {
        display:none;
    }

    .hero {
        min-height:340px;
    }

    .news-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .featured {
        grid-column:span 2;
    }
}