.btsrch-page .penci-header-wrap > header { margin-bottom: 0 !important; }
.btsrch {
    --ink: #17262b;
    --paper: #fff;
    --line: #e7e3dc;
    --gold: #edb84f;
    --link: #774500;
    --muted: #5e6368;
    --gutter: max(5.35vw, calc((100% - 1250px) / 2));
    --hero-padding: 70px;
    --hero-title-size: clamp(48px, 7.25vw, 104px);
    --hero-description-size: 17px;
    color: var(--ink);
    background: #f9f6ef;
    font-family: Roboto, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}
.btsrch *, .btsrch *::before, .btsrch *::after { box-sizing: border-box; }
.btsrch :is(h1,h2,h3,p) { color: inherit; margin: 0; font-family: inherit; }
.btsrch .btsrch-hero { position: relative; overflow: hidden; margin: 0; background: #201912; color: #fff; }
.btsrch .btsrch-hero-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 55%; }
.btsrch-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(16,14,13,.937),rgba(21,16,14,.804) 29%,rgba(28,20,15,.267) 62%,transparent); }
.btsrch-hero-inner { position: relative; z-index: 1; padding: var(--hero-padding) var(--gutter); }
.btsrch-tag .btsrch-hero-inner {
    /* Reserve the shared height even when the tag has a short title and no description. */
    min-height: calc(2 * var(--hero-padding) + 2.08 * var(--hero-title-size) + 3.1 * var(--hero-description-size) + 128.8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.btsrch .btsrch-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: #ffd781; font-size: 11px; line-height: 1.8; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.btsrch-eyebrow::before { content: ""; width: 24px; height: 1px; flex: 0 0 24px; background: currentColor; }
.btsrch .btsrch-hero h1 { color: #fff; font-family: Roboto, system-ui, sans-serif; font-size: var(--hero-title-size); font-weight: 800; line-height: 1.04; letter-spacing: -.064em; text-transform: none; }
.btsrch-tag .btsrch-hero h1 { overflow-wrap: anywhere; }
.btsrch .btsrch-hero-description { max-width: 390px; margin-top: 24px; color: #f1eae0; font-family: Roboto, system-ui, sans-serif; font-size: var(--hero-description-size); line-height: 1.55; font-weight: 400; }
.btsrch-hero-actions { display: flex; align-items: center; margin-top: 25px; }
.btsrch .btsrch-hero-action { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 15px; border: 1px solid transparent; border-radius: 4px; background: var(--gold); color: #34291d; font: 700 14px/1.25 Roboto, system-ui, sans-serif; text-decoration: none; }
.btsrch .btsrch-hero-action:hover { background: #f0bb51; color: #23180b; }
.btsrch #btsrch-query { scroll-margin-top: 90px; }
.btsrch-tag #btsrch-tag-posts { scroll-margin-top: 90px; }
.btsrch-wrap { padding: 40px var(--gutter); }
.btsrch .btsrch-wrap h2 { color: var(--ink); font-family: inherit; font-size: clamp(28px, 3vw, 42px); margin-bottom: 18px; line-height: 1.12; font-weight: 800; letter-spacing: -.035em; text-transform: none; }
.btsrch .btsrch-form { display: flex; gap: 12px; margin: 0 0 25px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 8px 24px rgba(23,24,28,.10); }
.btsrch .btsrch-form input { flex: 1; min-width: 0; height: 50px; padding: 10px 15px; margin: 0; color: var(--ink); background: #fff; border: 1px solid #b9c0c8; border-radius: 6px; font: inherit; font-size: 16px; box-shadow: none; }
.btsrch .btsrch-form button { min-height: 46px; padding: 11px 28px; border: 1px solid var(--gold); border-radius: 4px; background: var(--gold); color: #23180b; font: inherit; font-weight: 750; line-height: 1.2; cursor: pointer; }
.btsrch .btsrch-form button:hover { background: #f0bb51; border-color: #f0bb51; }
.btsrch .btsrch-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.btsrch .btsrch-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 16px; border-radius: 6px; color: var(--ink); font-weight: 650; text-decoration: none; }
.btsrch .btsrch-tabs a:hover { background: #f1e7d7; }
.btsrch .btsrch-tabs [aria-current="page"] { background: var(--gold); }
.btsrch .btsrch-summary { margin: 17px 0; color: var(--muted); font-size: 16px; }
.btsrch .btsrch-section { margin-top: 28px; }
.btsrch-tag .btsrch-section { margin-top: 0; }
.btsrch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.btsrch-card { overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); min-width: 0; box-shadow: 0 2px 6px rgba(20,20,20,.03); }
.btsrch-card .btsrch-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); }
.btsrch-card .btsrch-card-link:focus-visible { outline-offset: -4px; }
.btsrch-photo { aspect-ratio: 1.85; overflow: hidden; }
.btsrch .btsrch-photo img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.btsrch-card-body { display: flex; flex: 1; flex-direction: column; gap: 9px; padding: 16px; align-items: flex-start; }
.btsrch .btsrch-kind { color: #695700; font-size: 11px; letter-spacing: .11em; font-weight: 800; text-transform: uppercase; }
.btsrch .btsrch-card h3 { color: var(--ink); font-family: inherit; font-size: 21px; line-height: 1.25; font-weight: 750; letter-spacing: -.018em; text-transform: none; overflow-wrap: anywhere; }
.btsrch-card p { color: #555c61; font-size: 14px; line-height: 1.5; }
.btsrch-card-action { color: var(--link); margin-top: auto; font-size: 14px; font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.btsrch-card-link:hover .btsrch-card-action { color: #482900; }
.btsrch-feature .btsrch-card-link { flex-direction: row; }
.btsrch-feature .btsrch-photo { flex: 0 0 43%; }
.btsrch-feature .btsrch-card-body { justify-content: center; padding: clamp(20px, 4vw, 38px); }
.btsrch-feature .btsrch-card-action { margin-top: 6px; }
.btsrch .btsrch-feature h3 { font-size: clamp(25px, 3.6vw, 38px); }
.btsrch-pages { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.btsrch-pages a { padding: 8px 15px; border: 1px solid var(--line); border-radius: 6px; color: var(--link); background: var(--paper); }
.btsrch-empty { margin-top: 24px; }
.btsrch-empty a { color: var(--link); text-decoration: underline; }
.btsrch :focus-visible { outline: 3px solid #9b5a05; outline-offset: 2px; }
.btsrch-screen-reader { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 800px) {
    .btsrch { --hero-padding: 48px; }
    .btsrch-wrap { padding-block: 32px; }
}
@media (max-width: 720px) {
    .btsrch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .btsrch-feature .btsrch-card-link { flex-direction: column; }
    .btsrch-feature .btsrch-photo { flex-basis: auto; aspect-ratio: 2.1; }
}
@media (max-width: 560px) {
    .btsrch { --hero-padding: 42px; --hero-title-size: clamp(36px, 9vw, 48px); --hero-description-size: 16px; }
    .btsrch .btsrch-hero h1 { letter-spacing: -.05em; }
    .btsrch .btsrch-hero-image { object-position: 64% 55%; }
    .btsrch-wrap { padding-block: 28px; }
    .btsrch .btsrch-form { gap: 8px; padding: 14px; }
    .btsrch .btsrch-form input { height: 46px; padding: 10px; }
    .btsrch .btsrch-form button { padding-inline: 16px; font-size: 14px; }
}
@media (max-width: 490px) {
    .btsrch-grid { grid-template-columns: minmax(0, 1fr); }
    .btsrch .btsrch-tabs a { padding-inline: 11px; }
}
/* Keep the photo crop aligned on phones where the Beer Reviews actions wrap. */
@media (max-width: 405px) {
    .btsrch .btsrch-hero-inner { min-height: calc(313.4px + max(74.88px, 18.72vw)); }
}
@media (max-width: 362px) {
    .btsrch .btsrch-hero-inner { min-height: 413px; }
}
