/* ===== Developer Cheatsheet — GitHub Dark Theme ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Core palette — GitHub Dark */
    --bg: #0d1117;
    --bg-card: #161b22;
    --bg-inset: #1c2128;
    --border: #30363d;
    --border-lit: #484f58;
    --text: #e6edf3;
    --text-dim: #8b949e;
    --accent: #58a6ff;
    --accent-dim: #1f6feb;
    --green: #3fb950;
    --red: #f85149;
    --orange: #d29922;
    --purple: #bc8cff;

    /* Syntax highlighting */
    --kw: #ff7b72;
    /* keywords */
    --str: #a5d6ff;
    /* strings */
    --fn: #d2a8ff;
    /* functions */
    --tp: #79c0ff;
    /* types */
    --cm: #8b949e;
    /* comments */
    --num: #79c0ff;
    /* numbers */
    --op: #ff7b72;
    /* operators */

    /* Tag colors */
    --tag-lang: #58a6ff;
    --tag-db: #3fb950;
    --tag-concept: #bc8cff;
    --tag-fw: #d29922;
    --tag-auth: #f85149;

    /* Layout */
    --max-w: 900px;
    --radius: 8px;
    --radius-sm: 6px;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== Navigation ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(13, 17, 23, .85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    border-radius: var(--radius-sm);
}

.nav-left a {
    font-weight: 600;
    font-size: .95rem;
    color: var(--text);
}

.nav-left a:hover {
    text-decoration: none;
    color: var(--accent);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-right a {
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: color .2s;
}

.nav-right a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* ===== Container / Layout ===== */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 80px 1.5rem 4rem;
}

/* ===== Hero ===== */
.hero {
    text-align: center;
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.02em;
    margin-bottom: .5rem;
}

.hero .subtitle {
    color: var(--text-dim);
    font-size: 1rem;
    font-weight: 400;
}

.hero .tag {
    display: inline-block;
    margin-top: .75rem;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .25rem .65rem;
    border-radius: 20px;
    background: transparent;
}

.tag-lang {
    color: var(--tag-lang);
    border: 1px solid var(--tag-lang);
}

.tag-db {
    color: var(--tag-db);
    border: 1px solid var(--tag-db);
}

.tag-concept {
    color: var(--tag-concept);
    border: 1px solid var(--tag-concept);
}

.tag-fw {
    color: var(--tag-fw);
    border: 1px solid var(--tag-fw);
}

.tag-auth {
    color: var(--tag-auth);
    border: 1px solid var(--tag-auth);
}

/* ===== Table of Contents ===== */
.toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
}

.toc-title {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-dim);
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border);
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .4rem .75rem;
}

.toc-grid a {
    font-size: .85rem;
    color: var(--text-dim);
    padding: .25rem 0;
    transition: color .15s;
}

.toc-grid a:hover {
    color: var(--accent);
    text-decoration: none;
}

.toc-grid a::before {
    content: '#';
    color: var(--border-lit);
    margin-right: .4rem;
    font-weight: 600;
}

/* ===== Section Headers ===== */
.section-header {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--border);
}

.section-header .icon {
    font-size: 0;
    /* hide emoji text */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--accent-dim);
    color: #fff;
    font-weight: 700;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.section-header .icon::before {
    content: '#';
    font-size: .85rem;
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

/* ===== Code Blocks ===== */
pre {
    background: var(--bg-inset);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin: .75rem 0;
    position: relative;
}

pre code,
code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: .82rem;
    line-height: 1.65;
}

code {
    background: var(--bg-inset);
    padding: .15rem .4rem;
    border-radius: 4px;
    font-size: .82rem;
    color: var(--accent);
}

pre code {
    background: none;
    padding: 0;
    color: var(--text);
}

/* ===== Syntax Highlighting ===== */
.kw {
    color: var(--kw);
    font-weight: 500;
}

.str {
    color: var(--str);
}

.fn {
    color: var(--fn);
}

.tp {
    color: var(--tp);
}

.cm {
    color: var(--cm);
    font-style: italic;
}

.num {
    color: var(--num);
}

.op {
    color: var(--op);
}

/* ===== Copy Button ===== */
.code-block {
    position: relative;
}

.copy-btn {
    position: absolute;
    top: .5rem;
    right: .5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: .3rem .6rem;
    border-radius: var(--radius-sm);
    font-size: .7rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s, color .2s, border-color .2s;
}

.code-block:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.copy-btn.copied {
    color: var(--green);
    border-color: var(--green);
}

/* ===== Notes / Tip Boxes ===== */
.note {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: .85rem 1rem;
    margin: .75rem 0;
    font-size: .88rem;
    color: var(--text-dim);
}

.note strong {
    color: var(--accent);
}

.note.warning {
    border-left-color: var(--orange);
}

.note.warning strong {
    color: var(--orange);
}

.note.tip {
    border-left-color: var(--green);
}

.note.tip strong {
    color: var(--green);
}

/* ===== Tables ===== */
.table-wrapper {
    overflow-x: auto;
    margin: .75rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

th {
    background: var(--bg-inset);
    color: var(--text-dim);
    font-weight: 600;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-align: left;
    padding: .6rem .75rem;
    border-bottom: 1px solid var(--border);
}

td {
    padding: .55rem .75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

tr:hover td {
    background: rgba(88, 166, 255, .04);
}

/* ===== Sub-sections ===== */
h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.5rem 0 .5rem;
}

h4 {
    font-size: .92rem;
    font-weight: 600;
    color: var(--text);
    margin: 1rem 0 .4rem;
}

/* ===== Paragraphs & Lists ===== */
p {
    margin: .5rem 0;
    font-size: .92rem;
    color: var(--text-dim);
}

ul,
ol {
    margin: .5rem 0 .75rem 1.25rem;
}

li {
    font-size: .88rem;
    margin-bottom: .3rem;
    color: var(--text-dim);
}

li strong,
li code {
    color: var(--text);
}

/* ===== Back to Top ===== */
.back-top {
    display: block;
    text-align: center;
    margin: 3rem 0 1rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-dim);
}

.back-top:hover {
    color: var(--accent);
    text-decoration: none;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    font-size: .8rem;
    color: var(--text-dim);
}

/* ===== Comparison Grid ===== */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.comparison-grid>div {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}

.comparison-grid h4 {
    margin: 0 0 .5rem;
    color: var(--accent);
}

/* ===== Diagram / Flow Boxes ===== */
.diagram-box,
.flow-diagram {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin: 1rem 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: .82rem;
    text-align: center;
    color: var(--text-dim);
    white-space: pre;
    overflow-x: auto;
}

/* ===== Labels ===== */
.label {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .2rem .5rem;
    border-radius: 4px;
    margin-right: .35rem;
}

.label-green {
    background: rgba(63, 185, 80, .15);
    color: var(--green);
}

.label-red {
    background: rgba(248, 81, 73, .15);
    color: var(--red);
}

.label-blue {
    background: rgba(88, 166, 255, .15);
    color: var(--accent);
}

.label-yellow {
    background: rgba(210, 153, 34, .15);
    color: var(--orange);
}

/* ================================================= */
/* ===== INDEX PAGE ===== */
/* ================================================= */

.index-hero {
    text-align: center;
    padding: 4rem 0 2.5rem;
}

.index-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.03em;
}

.index-hero h1 span {
    color: var(--accent);
}

.index-hero .lead {
    color: var(--text-dim);
    font-size: 1rem;
    margin-top: .5rem;
}

.index-hero .badge {
    display: inline-block;
    margin-top: .75rem;
    background: rgba(88, 166, 255, .1);
    color: var(--accent);
    padding: .3rem .85rem;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    border: 1px solid rgba(88, 166, 255, .2);
}

/* Search & Filter */
.search-filter {
    display: flex;
    gap: .75rem;
    max-width: 600px;
    margin: 2rem auto;
    flex-wrap: wrap;
    justify-content: center;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0 .85rem;
    flex: 1;
    min-width: 250px;
    transition: border-color .2s;
}

.search-box:focus-within {
    border-color: var(--accent);
}

.search-icon {
    color: var(--text-dim);
    margin-right: .6rem;
    display: flex;
    align-items: center;
}

.search-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.search-box input {
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-size: .88rem;
    font-family: inherit;
    padding: .65rem 0;
    width: 100%;
}

.search-box input::placeholder {
    color: var(--text-dim);
}

/* Filter */
.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    justify-content: center;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: .4rem .85rem;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Section Titles */
.section-title {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-dim);
    margin: 2.5rem 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .85rem;
    margin-bottom: 1rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.15rem;
    text-decoration: none;
    color: var(--text);
    transition: border-color .2s, transform .15s;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    text-decoration: none;
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--accent-dim);
    color: #fff;
    font-weight: 700;
    font-size: .78rem;
    border-radius: var(--radius-sm);
    margin-bottom: .25rem;
    letter-spacing: -.02em;
}

/* Icon color variants for index cards */
.card-icon.ci-green {
    background: rgba(63, 185, 80, .18);
    color: var(--green);
}

.card-icon.ci-purple {
    background: rgba(188, 140, 255, .18);
    color: var(--purple);
}

.card-icon.ci-orange {
    background: rgba(210, 153, 34, .18);
    color: var(--orange);
}

.card-icon.ci-red {
    background: rgba(248, 81, 73, .18);
    color: var(--red);
}

.card-icon.ci-blue {
    background: rgba(88, 166, 255, .18);
    color: var(--accent);
}

.card-title {
    font-size: .9rem;
    font-weight: 600;
}

.card-desc {
    font-size: .78rem;
    color: var(--text-dim);
    line-height: 1.4;
}

/* No results */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-dim);
    font-size: .95rem;
    display: none;
}

/* ================================================= */
/* ===== MULTI-COLUMN CHEATSHEET GRID ===== */
/* ================================================= */

/* Wider container for cheatsheet pages */
.sheet-container {
    max-width: 1200px;
}

/* Masonry-style multi-column layout */
.sections-grid {
    column-count: 2;
    column-gap: 1rem;
    margin-top: 1rem;
}

/* Each section becomes a card */
.sections-grid .section {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0 1.15rem 0.75rem;
    margin-bottom: 1rem;
    display: inline-block;
    width: 100%;
    overflow: hidden;
    transition: border-color 0.2s;
}

.sections-grid .section:hover {
    border-color: var(--border-lit);
}

/* Adjust section header inside cards */
.sections-grid .section-header {
    margin: 0.85rem 0 0.5rem;
    padding-bottom: 0.5rem;
}

.sections-grid .section-header h2 {
    font-size: 1.05rem;
}

/* Reduce code block spacing inside cards */
.sections-grid pre {
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
}

.sections-grid pre code {
    font-size: 0.78rem;
    line-height: 1.55;
}

/* Code wrapper positioning for copy button */
.code-wrapper {
    position: relative;
}

/* Tables inside cards */
.sections-grid table {
    font-size: 0.8rem;
}

.sections-grid th {
    font-size: 0.7rem;
    padding: 0.5rem 0.6rem;
}

.sections-grid td {
    padding: 0.4rem 0.6rem;
}

/* Notes inside cards */
.sections-grid .note {
    font-size: 0.82rem;
    padding: 0.7rem 0.85rem;
}

/* Lists inside cards */
.sections-grid ul,
.sections-grid ol {
    margin: 0.4rem 0 0.5rem 1rem;
}

.sections-grid li {
    font-size: 0.82rem;
    margin-bottom: 0.2rem;
}

/* h3/h4 inside cards */
.sections-grid h3 {
    font-size: 0.95rem;
    margin: 1rem 0 0.4rem;
}

.sections-grid h4 {
    font-size: 0.85rem;
    margin: 0.75rem 0 0.3rem;
}

.sections-grid p {
    font-size: 0.85rem;
}

/* ── Collapsible Content ── */
.section-content {
    position: relative;
    overflow: hidden;
}

.section-content.needs-expand {
    /* max-height is set dynamically via JS */
}

.section-content.needs-expand::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--bg-card));
    pointer-events: none;
    z-index: 1;
}

.section-content.expanded {
    max-height: none !important;
}

.section-content.expanded::after {
    display: none;
}

/* Show more / Show less button */
.section-expand-btn {
    display: none;
    width: 100%;
    background: transparent;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--accent);
    padding: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.15s, border-color 0.15s;
}

.section-expand-btn.visible {
    display: block;
}

.section-expand-btn:hover {
    background: rgba(88, 166, 255, 0.08);
    border-color: var(--accent);
}

/* Search-hidden sections in grid */
.sections-grid .section.search-hidden {
    display: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    nav {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .index-hero h1 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.1rem;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .toc-grid {
        grid-template-columns: 1fr 1fr;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    /* Single column on tablets */
    .sheet-container {
        max-width: var(--max-w);
    }

    .sections-grid {
        column-count: 1;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 70px 1rem 3rem;
    }

    .toc-grid {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .search-filter {
        flex-direction: column;
    }

    .search-box {
        min-width: 100%;
    }

    .sections-grid {
        column-count: 1;
    }
}

/* ──────────────────────────────────────────────────
   Spotlight Search Overlay
   ────────────────────────────────────────────────── */

.spotlight-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: min(20vh, 160px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
}

.spotlight-overlay.spotlight-open {
    opacity: 1;
    visibility: visible;
}

.spotlight-modal {
    width: 90%;
    max-width: 620px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(0.96) translateY(-8px);
    transition: transform 0.15s;
}

.spotlight-open .spotlight-modal {
    transform: scale(1) translateY(0);
}

.spotlight-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.spotlight-search-icon {
    width: 20px;
    height: 20px;
    stroke: var(--text-dim);
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
}

.spotlight-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
}

.spotlight-input::placeholder {
    color: var(--text-dim);
}

.spotlight-esc {
    font-size: 0.7rem;
    padding: 2px 6px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-dim);
    background: var(--bg);
    flex-shrink: 0;
}

.spotlight-results {
    max-height: 380px;
    overflow-y: auto;
    padding: 8px 0;
}

.spotlight-cat {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    padding: 10px 16px 4px;
}

.spotlight-item {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background 0.08s;
}

.spotlight-item:hover,
.spotlight-active {
    background: rgba(88, 166, 255, 0.08);
    border-left-color: var(--accent);
}

.spotlight-item-title {
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 2px;
}

.spotlight-item-desc {
    font-size: 0.78rem;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotlight-item mark {
    background: rgba(88, 166, 255, 0.25);
    color: var(--accent);
    border-radius: 2px;
    padding: 0 1px;
}

.spotlight-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.spotlight-footer {
    display: flex;
    gap: 16px;
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    font-size: 0.72rem;
    color: var(--text-dim);
}

.spotlight-footer kbd {
    display: inline-block;
    font-size: 0.68rem;
    padding: 1px 5px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--bg);
    margin: 0 2px;
    font-family: inherit;
}

/* Spotlight trigger button in nav */
.spotlight-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 10px;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
    transition: border-color 0.15s, color 0.15s;
    margin-right: 8px;
}

.spotlight-trigger:hover {
    border-color: var(--accent);
    color: var(--text);
}

.spotlight-trigger svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.spotlight-trigger kbd {
    font-size: 0.7rem;
    padding: 1px 5px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--bg-card);
    font-family: inherit;
}

@media (max-width: 600px) {

    .spotlight-trigger-text,
    .spotlight-trigger kbd {
        display: none;
    }

    .spotlight-trigger {
        padding: 5px 8px;
    }

    .spotlight-modal {
        width: 96%;
    }
}