/* Front-end theme (Bootstrap 5). The CMS uses Metronic and never loads this file. */

:root {
    --ink: #121829;
    --paper: #F6F7FB;
    --surface: #FFFFFF;
    --cobalt: #2F5BFF;
    --cobalt-dark: #1F43D6;
    --slate: #5B6478;
    --line: #E3E6EF;
    --marker: #FFE58A;

    --font-display: "Bricolage Grotesque", system-ui, sans-serif;
    --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --radius: 14px;

    --bs-body-bg: var(--paper);
    --bs-body-color: var(--ink);
    --bs-body-font-family: var(--font-body);
    --bs-link-color-rgb: 47, 91, 255;
    --bs-link-hover-color-rgb: 31, 67, 214;
    --bs-border-color: var(--line);
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.mono { font-family: var(--font-mono); letter-spacing: 0; }
.text-slate { color: var(--slate); }

:focus-visible {
    outline: 3px solid var(--cobalt);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2000;
    background: var(--ink);
    color: #fff;
    padding: .5rem 1rem;
    border-radius: 8px;
}

/* ---------- Top bar & navigation ---------- */

.topbar {
    /* Own stacking layer above the sticky navbar (z-index 1020) so the language dropdown isn't hidden. */
    position: relative;
    z-index: 1030;
    background: var(--ink);
    color: rgba(255, 255, 255, .72);
    font-size: .8125rem;
    padding: .35rem 0;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    border-radius: 999px;
    padding: .2rem .75rem;
    font-size: .8125rem;
}

.lang-toggle:hover { border-color: rgba(255, 255, 255, .5); }

.lang-menu { min-width: 220px; border-color: var(--line); border-radius: 12px; padding: .4rem; }
.lang-menu .dropdown-item { border-radius: 8px; padding: .5rem .65rem; }
.lang-menu .dropdown-item.active { background: var(--paper); color: var(--ink); font-weight: 600; }

.site-nav {
    background: rgba(246, 247, 251, .92);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
    padding: .85rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--ink);
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--cobalt);
    color: #fff;
    font-size: 1.05rem;
}

.site-nav .nav-link {
    color: var(--slate);
    font-weight: 500;
    position: relative;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: var(--ink); }

.site-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: .5rem;
    right: .5rem;
    bottom: .1rem;
    height: 6px;
    background: var(--marker);
    z-index: -1;
    border-radius: 2px;
}

/* ---------- Buttons ---------- */

.btn { font-weight: 600; border-radius: 10px; }

.btn-ink { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.btn-ink:hover, .btn-ink:focus-visible { background: #000; color: #fff; }

.btn-cobalt { background: var(--cobalt); color: #fff; border: 1px solid var(--cobalt); }
.btn-cobalt:hover, .btn-cobalt:focus-visible { background: var(--cobalt-dark); border-color: var(--cobalt-dark); color: #fff; }

.btn-outline-ink { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline-ink:hover { background: var(--ink); color: #fff; }

.link-arrow, .link-back {
    font-weight: 600;
    text-decoration: none;
    color: var(--cobalt);
}

.link-arrow i { transition: transform .2s ease; display: inline-block; }
.link-arrow:hover i { transform: translateX(3px); }

/* ---------- Hero (signature: highlighter stroke under the last word) ---------- */

.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }

.eyebrow {
    display: inline-block;
    font-size: .78rem;
    text-transform: uppercase;
    color: var(--cobalt);
    border: 1px solid rgba(47, 91, 255, .3);
    border-radius: 999px;
    padding: .25rem .8rem;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.02;
    margin-bottom: 1.25rem;
}

.marker {
    background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 92%, transparent 92%) no-repeat 0 0 / 100% 100%;
    color: inherit;
    padding: 0 .08em;
    animation: marker-sweep .9s cubic-bezier(.65, 0, .35, 1) .35s both;
}

@keyframes marker-sweep {
    from { background-size: 0% 100%; }
    to { background-size: 100% 100%; }
}

.hero-lead {
    font-size: 1.2rem;
    color: var(--slate);
    max-width: 34rem;
    margin-bottom: 2rem;
}

.featured {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 6px);
    overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(18, 24, 41, .35);
    transform: rotate(1.2deg);
    transition: transform .3s ease;
}

.featured:hover { transform: rotate(0deg); }

.featured-media { display: block; aspect-ratio: 16 / 9; background: var(--line); }
.featured-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-body { padding: 1.5rem 1.75rem 1.75rem; }

.featured-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: .5rem 0 .6rem;
}

.featured-title a, .post-card-title a { color: var(--ink); text-decoration: none; }
.featured-title a:hover, .post-card-title a:hover { color: var(--cobalt); }

/* ---------- Sections ---------- */

.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: .75rem;
}

.section-lead { color: var(--slate); font-size: 1.1rem; max-width: 40rem; }

.feature {
    height: 100%;
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(47, 91, 255, .1);
    color: var(--cobalt);
    font-size: 1.4rem;
    margin-bottom: 1.1rem;
}

.feature h3 { font-size: 1.25rem; font-weight: 700; }
.feature p { color: var(--slate); margin-bottom: 0; }

/* ---------- Post cards ---------- */

.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}

.post-card:hover { box-shadow: 0 18px 40px -24px rgba(18, 24, 41, .45); transform: translateY(-3px); }

.post-card-media { display: block; aspect-ratio: 3 / 2; background: var(--line); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }

.post-card-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    color: var(--cobalt);
    background: linear-gradient(135deg, rgba(47, 91, 255, .12), rgba(255, 229, 138, .5));
}

.post-card-body { padding: 1.25rem 1.4rem 1.5rem; }
.post-card-title { font-size: 1.2rem; font-weight: 700; margin: .5rem 0; line-height: 1.3; }

.post-card-summary {
    color: var(--slate);
    font-size: .975rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--slate);
    text-transform: uppercase;
}

.post-category {
    position: relative;
    z-index: 2;
    color: var(--cobalt);
    text-decoration: none;
    font-weight: 500;
}

/* ---------- Blog index ---------- */

.page-head { padding: clamp(2.5rem, 5vw, 4rem) 0 1rem; }

.page-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    margin-bottom: .5rem;
}

.search-form {
    position: relative;
    display: flex;
    gap: .5rem;
    max-width: 34rem;
}

.search-form .bi-search {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate);
}

.search-form .form-control {
    padding: .75rem 1rem .75rem 2.6rem;
    border-radius: 10px;
    border-color: var(--line);
    background: var(--surface);
}

.search-form .form-control:focus { border-color: var(--cobalt); box-shadow: 0 0 0 .2rem rgba(47, 91, 255, .15); }

.category-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }

.pill {
    font-size: .875rem;
    font-weight: 500;
    padding: .35rem .95rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--slate);
    text-decoration: none;
}

.pill:hover { color: var(--ink); border-color: var(--ink); }
.pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.site-pagination .page-link { color: var(--ink); border-color: var(--line); }
.site-pagination .page-item.active .page-link { background: var(--ink); border-color: var(--ink); color: #fff; }

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--slate);
}

.empty-state i { font-size: 2.5rem; display: block; margin-bottom: .75rem; }

/* ---------- Article ---------- */

.narrow { max-width: 760px; }
.article-head { padding: clamp(2rem, 5vw, 3.5rem) 0 2rem; }

.article-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.08;
    margin: .75rem 0 1rem;
}

.article-byline { display: flex; flex-wrap: wrap; gap: 1.25rem; color: var(--slate); font-size: .95rem; }
.article-byline .mono { font-size: .8rem; align-self: center; }

.article-image {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: calc(var(--radius) + 6px);
    margin-bottom: 2.5rem;
}

.notice {
    background: #FFF8DB;
    border: 1px solid #F2E2A0;
    border-radius: 10px;
    padding: .75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: .95rem;
}

.prose { font-size: 1.125rem; line-height: 1.75; padding-bottom: 3rem; }
.prose h2 { font-size: 1.65rem; font-weight: 700; margin: 2.25rem 0 .75rem; }
.prose h3 { font-size: 1.3rem; font-weight: 700; margin: 1.75rem 0 .5rem; }
.prose .lead { font-size: 1.3rem; color: var(--slate); }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.prose blockquote {
    border-left: 4px solid var(--marker);
    padding: .25rem 0 .25rem 1.25rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin: 2rem 0;
}
.prose blockquote p { margin: 0; }

/* ---------- CTA, footer, errors ---------- */

.cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: var(--cobalt);
    color: rgba(255, 255, 255, .85);
    border-radius: calc(var(--radius) + 6px);
    padding: clamp(2rem, 4vw, 3rem);
}

.cta-title { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }

.site-footer {
    background: var(--ink);
    color: #fff;
    padding: 3.5rem 0 1.5rem;
}

.site-footer .brand { color: #fff; }
.footer-muted { color: rgba(255, 255, 255, .6); }

.footer-heading {
    font-family: var(--font-mono);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 1rem;
}

.footer-links li { margin-bottom: .45rem; }
.footer-links a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer-links a:hover { color: var(--marker); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    font-size: .875rem;
    color: rgba(255, 255, 255, .55);
}

.error-code { font-size: 1rem; color: var(--cobalt); margin-bottom: .5rem; }

@media (max-width: 991.98px) {
    .site-nav .btn-ink { margin-top: .75rem; }
    .featured { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- CMS pages (Views/Page) ---------- */

.page-cover { position: relative; background: var(--ink); overflow: hidden; }
.page-cover-image { display: block; width: 100%; height: clamp(220px, 38vw, 460px); object-fit: cover; }
.page-cover.has-title .page-cover-image { opacity: .55; }

.page-cover-text {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2.5rem 0 clamp(1.5rem, 4vw, 3rem);
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent);
}

.page-cover-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.08;
    margin: 0 0 .5rem;
    color: #fff;
}

.page-cover-subtitle { font-size: clamp(1rem, 2vw, 1.25rem); margin: 0; max-width: 44rem; color: rgba(255, 255, 255, .85); }

.page-body { padding-top: 2.5rem; }
.page-body .prose { padding-bottom: 2rem; }
.page-section + .page-section,
.page-body > .row + .page-section { border-top: 1px solid var(--line); padding-top: 2.5rem; }
.page-section > :first-child,
.page-intro .prose > :first-child,
.page-band .prose > :first-child,
.page-sidebar > :first-child { margin-top: 0; }
.page-band .prose > :last-child,
.page-sidebar > :last-child { margin-bottom: 0; }
.page-intro { padding: clamp(2rem, 5vw, 3.5rem) 0 1rem; }
.page-band .prose, .page-intro .prose { padding-bottom: 0; }

.page-sidebar {
    position: sticky;
    top: 6rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    font-size: 1rem;
}

.prose table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .75rem; }

/* ---- GEO (author, summary, FAQ, sources) ---- */
.article-byline a { color: inherit; }
.byline-role { color: var(--slate); }
.tldr {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 4px solid var(--cobalt);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin: 0 0 1.75rem;
}
.tldr p { margin: .25rem 0 0; }
.tldr-label { font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cobalt-dark); }
.geo-faq, .geo-sources { margin: 0 0 2rem; }
.geo-faq h2, .geo-sources h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.faq-item { border-top: 1px solid var(--line); padding: 1rem 0 .25rem; }
.faq-item h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 .5rem; }
.geo-sources ol { padding-left: 1.25rem; }
.source-meta { color: var(--slate); font-size: .9rem; margin-left: .35rem; }
.author-box {
    display: flex; gap: 1rem; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.25rem; margin: 2rem 0 3rem;
}
.author-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.author-label { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); }
.author-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; text-decoration: none; }
.author-role { color: var(--slate); font-size: .95rem; }
.author-bio { margin: .5rem 0 0; font-size: .98rem; }

/* ---------- Static home page (Views/Home/Index.cshtml) ---------- */

.home-hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.home-hero .carousel-item img { max-height: 560px; object-fit: cover; }
.home-product { padding: 2rem 1.75rem; }
.home-product img { max-width: 100%; height: 240px; object-fit: contain; }
.home-card { height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.home-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.home-card h3 { font-size: 1.1rem; font-weight: 700; margin: 0; padding: 1rem 1.25rem; }
.home-moment { width: 100%; border-radius: var(--radius); object-fit: cover; }
.home-event { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.home-event img { width: 100%; height: 100%; object-fit: cover; }
.home-event-body { padding: 1.75rem; align-self: center; }
.home-store { display: grid; place-items: center; height: 84px; padding: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.home-store img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 767.98px) { .home-event { grid-template-columns: 1fr; } }
