/*
 * Default theme components (1.2.98). tailwind.min.css holds the utilities;
 * the pieces added in 1.2.98 live here as plain CSS, so the theme still needs
 * no build step to change. Colours are the theme's brand blue and Tailwind's
 * slate.
 */
:root {
    --bht-brand: #2563eb; --bht-brand-700: #1d4ed8; --bht-brand-50: #eff6ff; --bht-brand-100: #dbeafe; --bht-brand-200: #bfdbfe; --bht-brand-300: #93c5fd;
    --bht-ink: #0f172a; --bht-text: #475569; --bht-muted: #64748b; --bht-line: #e2e8f0;
}

/* Header */
.bht-brand-text { min-width: 0; }
/* Header row and logo (1.2.99). The row grows for a large logo instead of
   letting it spill out. Customize → Logo width sets --bh-logo-width (and
   --bh-logo-height: auto); without it the logo is 36px tall, as before. */
.bht-header-row { min-height: 4rem; padding-block: .5rem; gap: 1rem; }
.bht-logo { display: block; flex: none; width: var(--bh-logo-width, auto); height: var(--bh-logo-height, 2.25rem); max-width: min(100%, 60vw); object-fit: contain; }
.bht-brand-text > div:first-child { overflow-wrap: anywhere; }
.bht-search-ico { display: grid; place-items: center; padding-left: 12px; color: #94a3b8; }
.bht-menu-btn { display: grid; place-items: center; width: 44px; height: 44px; }
@media (min-width: 768px) { .bht-menu-btn { display: none; } }
.bht-input-touch { font-size: 16px; min-height: 44px; }
@media (min-width: 768px) { .bht-input-touch { font-size: 15px; min-height: 40px; } }

/* Home: hero */
.bht-hero { position: relative; overflow: hidden; border-bottom: 1px solid #f1f5f9; background:
    radial-gradient(900px 320px at 50% -60px, var(--bht-brand-100), transparent 70%),
    linear-gradient(180deg, #f8fbff, #fff); }
.bht-hero__inner { padding-top: 56px; padding-bottom: 48px; text-align: center; }
.bht-hero__title { margin: 0; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; color: var(--bht-ink); overflow-wrap: anywhere; }
.bht-hero__tagline { margin: 14px auto 0; max-width: 40rem; font-size: 1.125rem; color: var(--bht-text); }
@media (min-width: 1024px) { .bht-hero__inner { padding-top: 72px; padding-bottom: 60px; } }

/* Home: lead post and cards */
.bht-lead, .bht-card { position: relative; background: #fff; border: 1px solid var(--bht-line); border-radius: 20px; overflow: hidden; transition: box-shadow .2s, border-color .2s, transform .2s; }
.bht-lead:hover, .bht-card:hover { border-color: var(--bht-brand-200); box-shadow: 0 18px 40px -24px rgb(37 99 235 / .35); }
.bht-lead { display: grid; grid-template-columns: 1fr; margin-bottom: 40px; }
@media (min-width: 768px) { .bht-lead { grid-template-columns: 1.15fr 1fr; } }
.bht-media { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bht-brand-50); }
.bht-lead .bht-media { aspect-ratio: 16 / 10; }
@media (min-width: 768px) { .bht-lead .bht-media { aspect-ratio: auto; min-height: 300px; } }
.bht-media__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.group:hover .bht-media__img { transform: scale(1.04); }
.bht-media__ph { position: absolute; inset: 0; display: grid; place-items: center;
    background:
        radial-gradient(circle at 20% 15%, rgb(255 255 255 / .7), transparent 45%),
        radial-gradient(circle at 85% 90%, var(--bht-brand-200), transparent 55%),
        linear-gradient(135deg, var(--bht-brand-50), var(--bht-brand-100)); }
.bht-media__ph span { font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif; font-size: 72px; line-height: 1; font-weight: 600; color: var(--bht-brand-300); transition: transform .4s; }
.bht-lead .bht-media__ph span { font-size: 120px; }
.group:hover .bht-media__ph span { transform: scale(1.06); }
.bht-body { padding: 20px 22px 22px; display: flex; flex-direction: column; min-width: 0; }
.bht-lead .bht-body { padding: 28px; justify-content: center; }
@media (min-width: 1024px) { .bht-lead .bht-body { padding: 40px 44px; } }
.bht-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 13px; color: var(--bht-muted); }
.bht-title { margin: 0; font-size: 1.125rem; line-height: 1.35; font-weight: 650; color: var(--bht-ink); overflow-wrap: anywhere; }
.bht-lead .bht-title { font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif; font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.15; letter-spacing: -.015em; }
.bht-title a { color: inherit; text-decoration: none; }
.bht-title a::after { content: ""; position: absolute; inset: 0; } /* the whole card is the link */
.bht-title a:hover { color: var(--bht-brand); }
.bht-excerpt { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--bht-text); }
.bht-lead .bht-excerpt { font-size: 17px; margin-top: 12px; }
.bht-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--bht-brand); text-decoration: none; }
.bht-lead .bht-more { margin-top: 20px; }
.group:hover .bht-more svg { transform: translateX(3px); }
.bht-more svg { transition: transform .2s; }
.bht-section-title { margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--bht-muted); }
.bht-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .bht-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bht-grid { grid-template-columns: repeat(3, 1fr); } }

.bht-empty { text-align: center; padding: 72px 16px; }
.bht-empty__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 18px; background: var(--bht-brand-50); color: var(--bht-brand); }

/* Buttons */
.bht-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--bht-brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.bht-btn:hover { background: var(--bht-brand-700); }
.bht-btn:focus-visible { outline: 2px solid var(--bht-brand); outline-offset: 2px; }

/* 404 */
.bht-404 { max-width: 36rem; margin: 0 auto; padding: 72px 16px 40px; text-align: center; }
.bht-404__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: linear-gradient(135deg, var(--bht-brand-50), var(--bht-brand-100)); color: var(--bht-brand); }
.bht-404__code { margin: 20px 0 0; font-size: 14px; font-weight: 600; letter-spacing: .12em; color: var(--bht-brand); }
.bht-404__title { margin: 6px 0 0; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--bht-ink); }
.bht-404__text { margin: 12px 0 28px; color: var(--bht-text); }
.bht-404__search { display: flex; gap: 8px; }
.bht-404__search input, .bht-foot-search input { flex: 1; min-width: 0; padding: 0 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--bht-ink); }
.bht-404__search input:focus, .bht-foot-search input:focus { outline: 0; border-color: var(--bht-brand); box-shadow: 0 0 0 3px var(--bht-brand-100); }
.bht-404__home { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; font-size: 14px; font-weight: 500; color: var(--bht-muted); text-decoration: none; }
.bht-404__home:hover { color: var(--bht-brand); }
@media (max-width: 480px) { .bht-404__search .bht-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Footer */
.bht-foot-search input { width: 100%; max-width: 16rem; }

/* Post */
.bht-comments-title { display: flex; align-items: center; gap: 10px; }

@media (prefers-reduced-motion: reduce) { .bht-lead, .bht-card, .bht-media__img, .bht-media__ph span, .bht-more svg { transition: none !important; } }

/* Utilities the templates use that the compiled Tailwind file lacks (the
   comment thread's spacing and avatar background were missing before 1.2.98). */
.mt-4 { margin-top: 1rem; }
.min-w-0 { min-width: 0; }
.bg-slate-200 { background-color: #e2e8f0; }

/* Core's menu styles print after the theme's and set a 4px gap, which beat
   the header's gap-6: "Home About" ran together. */
.bh-menu.gap-6 { gap: 1.5rem; }
.bh-menu.gap-6 .bh-menu__link:hover { color: var(--bht-brand); }
