/* ===== base from article template ===== */
*,
*::before,
*::after {
    box-sizing: border-box
}

body {
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    display: block;
    height: auto
}

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

button {
    font: inherit
}


:root {
    --bg: #0e0f12;
    --surface: #14161b;
    --text: #e9ecf1;
    --muted: #b6bdc7;
    --brand: #4ea1ff;
    --accent: #ffbf69;
    --border: #242936;
    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .25);
    --content-w: 1100px;
    --sidebar-w: 320px;
    --gutter: 28px;
    --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
}


body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
background-image: url(/assets/img/hero/infosprout.png);
}


.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(20, 22, 27, .8);
    backdrop-filter: saturate(1.2) blur(12px);
    border-bottom: 1px solid var(--border)
}

.wrap {
    max-width: var(--content-w);
    margin: 0 auto;
    padding: 0 20px
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px
}

.brand {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 700
}

.brand .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--brand);
    display: inline-block
}

.nav a {
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--muted)
}

.nav a:hover {
    background: #1b1e25;
    color: var(--text)
}


/* ===== hero ===== */
.hero {
    padding: 28px 0
}

.hero .panel {
    background: linear-gradient(180deg, #151922 0%, #0e1016 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 22px;
    background-position: 0 40%;
}

.hero h1 {
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    line-height: 1.15;
    margin: .15em 0 .2em;
    text-shadow: 0 0 8px var(--bg);
}

.sub {
    color: var(--muted);
    font-size: 1.05rem
}

.search {
    display: flex;
    gap: 10px;
    margin-top: 16px
}

.search input {
    flex: 1;
    background: #0f131b;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 14px;
    color: var(--text)
}

.search button {
    background: var(--brand);
    border: 0;
    color: #06111f;
    border-radius: 12px;
    padding: 14px 16px;
    font-weight: 700;
    cursor: pointer
}

.search button:hover {
    filter: brightness(1.1)
}


/* ===== layout ===== */
.page {
    display: grid;
    grid-template-columns: 1fr minmax(260px, var(--sidebar-w));
    gap: var(--gutter);
    align-items: start;
    padding: 6px 0 28px
}

@media (max-width: 980px) {
    .page {
        grid-template-columns: 1fr
    }
}


/* ===== sectors grid ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

@media (max-width:1100px) {
    .grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media (max-width:780px) {
    .grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width:520px) {
    .grid {
        grid-template-columns: 1fr
    }
}


.tile {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #0f1218;
    box-shadow: var(--shadow)
}

.tile .imgwrap {
    aspect-ratio: 16/10;
    background: #0f131b
}

.tile img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.tile .meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid var(--border)
}

.tile .name {
    font-weight: 700
}

.tile .count {
    color: var(--muted);
    font-size: .95rem
}

.tile:hover {
    transform: translateY(-1px)
}


/* ===== sidebar cards ===== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden
}

.card h3 {
    font-size: 1.05rem;
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: #dbe6f7
}

.card .inner {
    padding: 12px 16px
}

.list {
    list-style: none;
    margin: 0;
    padding: 0
}

.list li+li {
    margin-top: 10px
}

.list a {
    display: block;
    padding: 8px 6px;
    border-radius: 10px;
    color: #cfe1ff;
    border: 1px solid transparent
}

.list a:hover {
    background: #121827;
    border-color: #283146
}

.ad {
    border: 1px dashed #334;
    border-radius: 14px;
    background: #0f1218;
    color: #9bb0d1;
    text-align: center;
    padding: 14px;
    font-size: .95rem
}


/* ===== sections ===== */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 18px 0 10px
}

.section-head h2 {
    font-size: 1.2rem;
    margin: 0
}

.muted {
    color: var(--muted)
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #10131a;
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: 999px
}
