/*
Theme Name: Hungarian Beer
Description: Lightweight block theme for hungarian.beer.
Version: 0.8.5
Requires at least: 7.0
Requires PHP: 8.3
Text Domain: hungarian-beer
*/

:root {
  --hb-canvas: #f7f5f0;
  --hb-surface: #fffefd;
  --hb-mist: #eeece8;
  --hb-line: #d8d2c9;
  --hb-ink: #2b2825;
  --hb-muted: #68635e;
  --hb-malt: #f1e3bf;
  --hb-gold: #936000;
  --hb-blush: #f2e2e1;
  --hb-rose: #9b4648;
  --hb-sand: #ebe2d2;
  --hb-shadow: 0 18px 45px rgb(49 43 37 / 8%);
  --hb-gutter: clamp(1rem, 4vw, 2rem);
  --hb-content-width: 1200px;
  --hb-reading-width: 720px;
  --hb-wide-reading-width: 1040px;
  --hb-home-section-space: clamp(2.5rem, 5vw, 4rem);
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  background: var(--hb-canvas);
}

.hb-archive-page,
.hb-about-page {
  max-width: var(--hb-wide-reading-width);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  padding-top: clamp(2.75rem, 6vw, 4.75rem);
}

.hb-archive-hero,
.hb-about-hero {
  max-width: var(--hb-reading-width);
  padding-bottom: clamp(2.75rem, 6vw, 4.5rem);
}

.hb-archive-hero h1,
.hb-about-hero h1 {
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  font-weight: 500;
  line-height: 1.02;
  margin: 0.22em 0 0.3em;
}

.hb-archive-lead {
  color: var(--hb-muted);
  font-size: clamp(1.08rem, 1.6vw, 1.24rem);
  line-height: 1.62;
  margin: 0;
  max-width: 64ch;
}

.hb-about-content {
  border-top: 1px solid var(--hb-line);
  max-width: var(--hb-reading-width);
  padding-top: clamp(2.75rem, 6vw, 4.75rem);
}

.hb-about-image-placeholder {
  aspect-ratio: 16 / 7;
  border: 1px solid var(--hb-line);
  border-radius: 18px;
  margin-bottom: clamp(2.75rem, 6vw, 4.75rem);
  max-width: var(--hb-wide-reading-width);
}

.hb-about-content > :first-child {
  margin-top: 0;
}

.hb-about-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 0.65em;
}

.hb-about-content h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.55em;
  margin-top: 1.8em;
}

.hb-about-content p,
.hb-about-content li {
  font-size: clamp(1.02rem, 1.3vw, 1.12rem);
  line-height: 1.75;
}

.hb-about-content p {
  margin-bottom: 1.25em;
  margin-top: 0;
}

.hb-about-content ul,
.hb-about-content ol {
  padding-left: 1.35em;
}

.hb-archive-grid {
  border-top: 1px solid var(--hb-line);
  padding-top: clamp(2.75rem, 6vw, 4.75rem);
}

.hb-archive-list {
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.hb-knowledge,
.hb-style-guide {
  max-width: var(--hb-wide-reading-width);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  padding-top: clamp(2.75rem, 6vw, 4.75rem);
}

.hb-knowledge-hero,
.hb-style-header {
  max-width: var(--hb-reading-width);
  padding-bottom: clamp(2.75rem, 6vw, 4.5rem);
}

.hb-knowledge-hero h1,
.hb-style-header h1 {
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  font-weight: 500;
  line-height: 1.02;
  margin: 0.22em 0 0.3em;
}

.hb-knowledge-hero > p:last-child,
.hb-style-lead {
  color: var(--hb-muted);
  font-size: clamp(1.08rem, 1.6vw, 1.24rem);
  line-height: 1.62;
  margin-bottom: 0;
  max-width: 64ch;
}

.hb-knowledge-section,
.hb-style-related {
  border-top: 1px solid var(--hb-line);
  padding: clamp(2.75rem, 6vw, 4.75rem) 0;
}

.hb-knowledge-section > h2,
.hb-style-panel > h2,
.hb-style-prose > h2,
.hb-style-related > h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}

.hb-style-family-grid {
  display: grid;
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hb-style-family,
.hb-style-panel,
.hb-context-card {
  background: var(--hb-surface);
  border: 1px solid var(--hb-line);
  border-radius: 18px;
  box-shadow: var(--hb-shadow);
  padding: clamp(1.35rem, 2.5vw, 1.75rem);
}

.hb-style-family h3 {
  font-size: clamp(1.45rem, 2.2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}

.hb-style-family h3 a,
.hb-style-family li a {
  color: var(--hb-ink);
  text-decoration: none;
}

.hb-style-family > p,
.hb-sensory-grid p {
  color: var(--hb-muted);
  line-height: 1.62;
}

.hb-style-family ul {
  border-top: 1px solid var(--hb-line);
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0.65rem 0 0;
}

.hb-style-family li {
  align-items: baseline;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  padding: 0.48rem 0;
}

.hb-style-family li span {
  color: var(--hb-muted);
  font-size: 0.78rem;
  text-align: right;
}

.hb-style-panel {
  margin-bottom: 1.25rem;
}

.hb-style-panel > h2 {
  margin-top: 0;
}

.hb-fact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.hb-fact-grid > div {
  border-top: 1px solid var(--hb-line);
  padding-top: 0.8rem;
}

.hb-fact-grid dt {
  color: var(--hb-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.hb-fact-grid dd {
  font-size: 1.05rem;
  margin: 0;
}

.hb-sensory-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hb-sensory-grid h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.hb-sensory-grid p {
  margin-top: 0;
}

.hb-style-prose {
  margin: clamp(2.5rem, 6vw, 4.5rem) auto;
  max-width: var(--hb-reading-width);
}

.hb-style-prose > p,
.hb-single-shell .wp-block-post-content > p {
  margin-bottom: 1.45em;
  margin-top: 0;
}

.hb-style-prose > p,
.hb-style-prose > ul,
.hb-style-prose > ol,
.hb-single-shell .wp-block-post-content {
  font-size: clamp(1.0625rem, 1.2vw, 1.125rem);
  line-height: 1.76;
}

.hb-style-image {
  border-radius: 18px;
  box-shadow: var(--hb-shadow);
  height: auto;
  margin-bottom: 1.5rem;
  max-height: 460px;
  object-fit: cover;
  width: 100%;
}

.hb-context-card {
  margin-top: 2.5rem;
}

.hb-context-card h2 {
  font-weight: 500;
  margin: 0.2rem 0;
}

@media (max-width: 900px) {
  .hb-style-family-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hb-fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .hb-fact-grid,
  .hb-sensory-grid {
    grid-template-columns: 1fr;
  }
}

.wp-site-blocks {
  overflow-x: clip;
}

/* Page sections provide their own spacing. WordPress's global block gap would
   otherwise insert a canvas-coloured strip between template parts. */
.wp-site-blocks > * {
  margin-block-start: 0;
}

.hb-layout,
.hb-site-header,
.hb-site-footer,
.wp-site-blocks > main.wp-block-group,
.wp-site-blocks > .wp-block-group {
  box-sizing: border-box;
  padding-left: var(--hb-gutter);
  padding-right: var(--hb-gutter);
}

.hb-layout {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--hb-content-width);
  width: 100%;
}

a {
  text-underline-offset: 0.18em;
  transition: color 160ms ease;
}

.hb-site-header {
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hb-line);
  box-shadow: 0 6px 24px rgb(49 43 37 / 4%);
  position: relative;
  z-index: 10;
}

.hb-header-inner {
  align-items: center;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  grid-template-columns: auto minmax(0, 1fr);
  margin-left: auto;
  margin-right: auto;
  max-width: var(--hb-content-width);
  position: relative;
  width: 100%;
}

.hb-brand-logo {
  flex: 0 0 auto;
  margin: 0;
}

.hb-brand-logo img {
  height: auto;
  transition: transform 180ms ease;
}

.hb-brand-logo a:hover img,
.hb-brand-logo a:focus-visible img {
  transform: translateY(-2px);
}

.hb-header-actions {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  justify-content: flex-end;
  min-width: 0;
}

.hb-primary-nav ul,
.hb-language-switcher ul {
  align-items: center;
  display: flex;
  gap: clamp(0.7rem, 1.7vw, 1.35rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.hb-primary-nav li,
.hb-language-switcher li,
.hb-mobile-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hb-primary-nav li::marker,
.hb-language-switcher li::marker,
.hb-mobile-nav li::marker {
  content: "";
}

.hb-primary-nav a,
.hb-language-switcher a {
  color: var(--hb-ink);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  padding: 0.45rem 0.15rem;
  text-decoration: none;
}

.hb-primary-nav a:hover,
.hb-primary-nav a:focus-visible,
.hb-language-switcher a:hover,
.hb-language-switcher a:focus-visible {
  color: var(--hb-gold);
}

.hb-language-switcher {
  border-left: 1px solid var(--hb-line);
  padding-left: 1rem;
}

.hb-language-switcher .current-lang a {
  color: var(--hb-gold);
  font-weight: 650;
}

.hb-language-switcher a {
  align-items: center;
  display: inline-flex;
  gap: 0.38rem;
  white-space: nowrap;
}

.hb-language-flag {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 0.92rem;
  line-height: 1;
}

.hb-mobile-nav {
  display: none;
}

.hb-content-frame {
  border-top: 1px solid var(--hb-line);
}

/* The homepage starts directly at the header; section backgrounds provide
   their own visual separation without an additional grey seam. */
.hb-homepage {
  margin-top: 0;
}

.hb-homepage > :first-child {
  border-top: 0;
  margin-top: 0;
}

.hb-hero {
  background: linear-gradient(135deg, var(--hb-surface), #f8f1df 70%, var(--hb-malt));
  border-bottom: 1px solid var(--hb-line);
  color: var(--hb-ink);
  overflow: hidden;
  position: relative;
}

.hb-hero > .wp-block-group__inner-container,
.hb-hero-grid,
.hb-hero-copy {
  position: relative;
  z-index: 1;
}

.hb-hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  padding-bottom: var(--hb-home-section-space);
  padding-top: var(--hb-home-section-space);
}

.hb-eyebrow {
  color: var(--hb-gold);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.035em;
}

.hb-hero h1 {
  color: var(--hb-ink);
  font-size: clamp(3rem, 5.8vw, 5.25rem);
  font-weight: 500;
  line-height: 0.98;
  margin: 0.25em 0;
  max-width: 760px;
}

.hb-hero p:not(.hb-eyebrow) {
  color: var(--hb-muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 680px;
}

.hb-section-heading {
  border-bottom: 1px solid var(--hb-line);
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  font-weight: 500;
  padding-bottom: 0.45rem;
}

.hb-image-placeholder,
.hb-entry-image-placeholder,
.hb-archive-image-placeholder a,
.hb-style-family-placeholder,
.hb-style-image-placeholder,
.hb-about-image-placeholder {
  align-items: flex-end;
  background-color: var(--hb-sand);
  background-image: linear-gradient(145deg, rgb(255 254 253 / 12%), rgb(43 40 37 / 12%)), repeating-linear-gradient(45deg, transparent 0 18px, rgb(255 255 255 / 18%) 18px 19px);
  color: var(--hb-muted);
  display: flex;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  padding: 1rem;
}

.hb-archive-image-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: 11px;
  overflow: hidden;
}

.hb-archive-image-placeholder a {
  color: var(--hb-muted);
  height: 100%;
  text-decoration: none;
}

.hb-entry-image,
.hb-entry-image-placeholder {
  aspect-ratio: 4 / 3;
  display: block;
  margin: 0 0 1.25rem;
  overflow: hidden;
}

.hb-entry-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hb-style-family-placeholder {
  aspect-ratio: 16 / 9;
  border-radius: 11px;
  margin-bottom: 1.5rem;
}

.hb-style-image-placeholder,
.hb-style-image {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: var(--hb-reading-width);
  object-fit: cover;
  overflow: hidden;
  width: 100%;
}

.hb-hero-image {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--hb-line);
  border-radius: 22px;
  box-shadow: var(--hb-shadow);
}

.hb-directory-card {
  background: var(--hb-surface);
  border: 1px solid var(--hb-line);
  border-radius: 18px;
  box-shadow: var(--hb-shadow);
  box-sizing: border-box;
  padding: clamp(1.25rem, 3vw, 2rem);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.hb-directory-card:nth-child(2),
.wp-block-column:nth-child(2) .hb-directory-card {
  background: var(--hb-malt);
}

.hb-directory-card:hover {
  border-color: #bcb5ab;
  box-shadow: 0 22px 55px rgb(49 43 37 / 12%);
  transform: translateY(-4px);
}

.hb-directory-card h3 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 500;
  margin: 0 0 1rem;
}

.hb-directory-card p {
  margin-bottom: 0;
}

.hb-directory-card a {
  color: var(--hb-ink);
  text-decoration: none;
}

.hb-entry-grid .wp-block-post,
.hb-archive-grid .wp-block-post,
.hb-entry-card {
  background: var(--hb-surface);
  border: 1px solid var(--hb-line);
  border-radius: 16px;
  box-shadow: 0 12px 35px rgb(49 43 37 / 6%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.hb-archive-grid .wp-block-post {
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
}

.hb-archive-grid .wp-block-post-featured-image {
  margin: 0 0 1.25rem;
}

.hb-entry-grid .wp-block-post-featured-image img,
.hb-archive-grid .wp-block-post-featured-image img,
.hb-entry-image img {
  border-radius: 11px;
}

.hb-entry-grid .wp-block-post-title,
.hb-archive-grid .wp-block-post-title,
.hb-entry-card h3 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 500;
}

.hb-archive-grid .wp-block-post-title {
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
  line-height: 1.15;
  margin: 0 0 0.7rem;
}

.hb-entry-grid .wp-block-post-title a,
.hb-archive-grid .wp-block-post-title a,
.hb-entry-card h3 a {
  color: var(--hb-ink);
  text-decoration: none;
}

.hb-entry-grid .wp-block-post-excerpt,
.hb-archive-grid .wp-block-post-excerpt,
.hb-entry-excerpt {
  color: var(--hb-muted);
  flex-grow: 1;
}

.hb-archive-grid .wp-block-post-excerpt {
  font-size: 1rem;
  line-height: 1.62;
  margin: 0;
}

.hb-archive-grid .wp-block-post-excerpt__more-link {
  display: inline-block;
  font-weight: 600;
  margin-top: 0.85rem;
}

.hb-archive-pagination {
  border-top: 1px solid var(--hb-line);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
}

.hb-single-shell {
  background: var(--hb-surface);
  border: 1px solid var(--hb-line);
  border-radius: 20px;
  box-shadow: var(--hb-shadow);
  margin-left: auto;
  margin-right: auto;
  max-width: 880px;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.hb-single-shell > .wp-block-post-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.04;
  margin-bottom: 0.4em;
  margin-top: 0;
}

.hb-single-shell > .wp-block-post-excerpt {
  color: var(--hb-muted);
  font-size: clamp(1.08rem, 1.7vw, 1.25rem);
  line-height: 1.62;
  margin-bottom: 2rem;
}

.hb-single-shell .wp-block-post-featured-image {
  margin-bottom: clamp(2rem, 5vw, 3rem);
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.hb-single-shell .wp-block-post-featured-image img {
  border-radius: 14px;
}

.hb-single-shell .wp-block-post-content > h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.55em;
  margin-top: 1.8em;
}

.hb-single-shell .wp-block-post-content > h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 0.5em;
  margin-top: 1.65em;
}

.hb-single-shell .wp-block-post-content > ul,
.hb-single-shell .wp-block-post-content > ol {
  margin-bottom: 1.5em;
  padding-left: 1.3em;
}

.hb-single-shell .wp-block-post-content li + li {
  margin-top: 0.5em;
}

.hb-single-shell .wp-block-quote {
  border-left: 3px solid var(--hb-gold);
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem clamp(1rem, 3vw, 1.5rem);
}

.hb-entry-taxonomies {
  border-top: 1px solid var(--hb-line);
  color: var(--hb-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding-top: 1.25rem;
}

.hb-content-frame .wp-block-post {
  background: var(--hb-surface);
  border: 1px solid var(--hb-line);
  border-radius: 14px;
  margin-bottom: 1.5rem;
  padding: clamp(1rem, 3vw, 2rem);
}

.wp-element-button,
.wp-block-button__link,
.hb-button {
  border: 1px solid var(--hb-gold);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgb(147 96 0 / 14%);
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.78rem 1.35rem;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover,
.hb-button-primary:hover {
  background: #744900;
  border-color: #744900;
  box-shadow: 0 10px 25px rgb(147 96 0 / 22%);
  transform: translateY(-1px);
}

.hb-button-primary {
  background: var(--hb-gold);
  color: #fff;
}

.hb-button-secondary {
  background: var(--hb-surface);
  color: var(--hb-ink);
}

.hb-button-secondary:hover {
  background: var(--hb-mist);
  color: var(--hb-ink);
}

.hb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hb-section {
  padding-bottom: var(--hb-home-section-space);
  padding-top: var(--hb-home-section-space);
}

.hb-home-directory .hb-section-heading {
  margin: 0 0 clamp(2rem, 4vw, 2.75rem);
}

.hb-home-directory .hb-directory-grid {
  align-items: stretch;
}

.hb-section-alternate {
  background: var(--hb-surface);
}

.hb-directory-grid,
.hb-entry-grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hb-directory-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hb-home-concept {
  background: var(--hb-surface);
  border-bottom: 1px solid var(--hb-line);
  border-top: 1px solid var(--hb-line);
}

.hb-home-split,
.hb-home-map-grid {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 7vw, 6rem);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
}

.hb-home-prose {
  max-width: 620px;
}

.hb-home-prose h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  margin: 0.2em 0 0.35em;
}

.hb-home-prose > p:not(.hb-eyebrow) {
  color: var(--hb-muted);
  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
  line-height: 1.7;
}

.hb-home-note {
  border-left: 3px solid var(--hb-gold);
  margin-top: 1.5rem;
  padding-left: 1.15rem;
}

.hb-concept-image {
  aspect-ratio: 5 / 4;
  border: 1px solid var(--hb-line);
  border-radius: 18px;
}

.hb-home-map-section {
  background: var(--hb-mist);
  border-bottom: 1px solid var(--hb-line);
  border-top: 1px solid var(--hb-line);
}

.hb-home-map-grid {
  gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: minmax(260px, 0.8fr) minmax(420px, 1.2fr);
}

.hb-map-preview {
  background-color: #e8e3d8;
  background-image: linear-gradient(31deg, transparent 47%, rgb(147 96 0 / 13%) 48% 51%, transparent 52%), linear-gradient(149deg, transparent 44%, rgb(104 99 94 / 14%) 45% 47%, transparent 48%);
  border: 1px solid var(--hb-line);
  border-radius: 20px;
  box-shadow: var(--hb-shadow);
  aspect-ratio: 16 / 10;
  display: block;
  min-height: 0;
  overflow: hidden;
  position: relative;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.hb-map-preview:hover,
.hb-map-preview:focus-visible {
  border-color: var(--hb-gold);
  box-shadow: 0 20px 48px rgb(49 43 37 / 13%);
  transform: translateY(-2px);
}

.hb-map-preview-marker {
  background: var(--hb-gold);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 8px;
  box-shadow: 0 5px 14px rgb(43 40 37 / 22%);
  height: 30px;
  position: absolute;
  transform: rotate(-45deg);
  width: 30px;
}

.hb-map-preview-marker-one { left: 27%; top: 38%; }
.hb-map-preview-marker-two { background: var(--hb-rose); left: 54%; top: 57%; }
.hb-map-preview-marker-three { left: 72%; top: 28%; }

.hb-map-preview-label {
  background: rgb(255 254 253 / 90%);
  bottom: 1rem;
  color: var(--hb-muted);
  font-size: 0.78rem;
  font-weight: 600;
  left: 1rem;
  max-width: calc(100% - 2rem);
  padding: 0.45rem 0.65rem;
  position: absolute;
}

.hb-entry-card {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.hb-entry-card h3 {
  margin-bottom: 0.5rem;
}

.hb-entry-image {
  display: block;
}

.hb-entry-image img {
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.hb-entry-image-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: 11px;
  margin-bottom: 1rem;
  text-decoration: none;
}

.hb-text-link {
  color: var(--hb-gold);
  font-weight: 600;
}

.is-style-outline .wp-block-button__link:hover {
  background: var(--hb-mist);
  border-color: var(--hb-muted);
  color: var(--hb-ink);
}

.hb-site-footer {
  border-top: 1px solid var(--hb-line);
  color: var(--hb-muted);
}

.hb-map-page {
  max-width: var(--hb-content-width);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  padding-top: clamp(2.75rem, 6vw, 4.75rem);
}

.hb-map-intro {
  border-bottom: 1px solid var(--hb-line);
  margin-bottom: clamp(2.75rem, 6vw, 4.75rem);
  max-width: var(--hb-reading-width);
  padding-bottom: clamp(2.75rem, 6vw, 4.5rem);
}

.hb-map-intro h1 {
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  font-weight: 500;
  line-height: 1.02;
  margin: 0.22em 0 0.3em;
}

.hb-map-intro > p:last-child {
  color: var(--hb-muted);
  font-size: clamp(1.08rem, 1.6vw, 1.24rem);
  line-height: 1.62;
  margin: 0;
  max-width: 64ch;
}

.hb-map-shell {
  align-items: stretch;
  background: var(--hb-surface);
  border: 1px solid var(--hb-line);
  border-radius: 22px;
  box-shadow: var(--hb-shadow);
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr);
  min-height: 680px;
  overflow: hidden;
}

.hb-map-sidebar {
  border-right: 1px solid var(--hb-line);
  max-height: 760px;
  overflow-y: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.hb-map-field {
  display: grid;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.hb-map-field input,
.hb-map-field select {
  appearance: none;
  background: var(--hb-canvas);
  border: 1px solid var(--hb-line);
  border-radius: 10px;
  color: var(--hb-ink);
  font: inherit;
  font-weight: 400;
  min-height: 46px;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

.hb-map-field input:focus,
.hb-map-field select:focus,
.hb-map-reset:focus-visible,
.hb-map-near:focus-visible,
.hb-map-result-focus:focus-visible {
  outline: 3px solid rgb(147 96 0 / 24%);
  outline-offset: 2px;
}

.hb-map-types {
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0 0 1rem;
  padding: 0;
}

.hb-map-types legend {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  width: 100%;
}

.hb-map-types label {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
}

.hb-map-reset {
  background: transparent;
  border: 0;
  color: var(--hb-gold);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding: 0.25rem 0;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.hb-map-past {
  align-items: center;
  display: flex;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.hb-map-tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

.hb-map-tools .hb-map-reset {
  margin-bottom: 0;
}

.hb-map-near {
  background: var(--hb-gold);
  border: 1px solid var(--hb-gold);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
}

.hb-map-near:disabled {
  cursor: wait;
  opacity: 0.6;
}

.hb-map-results-heading {
  align-items: baseline;
  border-top: 1px solid var(--hb-line);
  display: flex;
  justify-content: space-between;
  padding-top: 1.25rem;
}

.hb-map-results-heading h2 {
  font-size: 1.45rem;
  margin: 0 0 1rem;
}

.hb-map-results-heading span {
  background: var(--hb-malt);
  border-radius: 999px;
  color: var(--hb-ink);
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 1.8rem;
  padding: 0.15rem 0.5rem;
  text-align: center;
}

.hb-map-results {
  display: grid;
  gap: 0.75rem;
}

.hb-map-result {
  border: 1px solid var(--hb-line);
  border-radius: 12px;
  padding: 0.8rem;
}

.hb-map-result-focus {
  align-items: flex-start;
  background: transparent;
  border: 0;
  color: var(--hb-ink);
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 0.7rem;
  padding: 0;
  text-align: left;
  width: 100%;
}

.hb-map-result-badge {
  align-items: center;
  background: var(--hb-gold);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 1.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  height: 1.8rem;
  justify-content: center;
}

.hb-map-result-badge-pub {
  background: var(--hb-rose);
}

.hb-map-result-badge-event,
.hb-map-marker-event {
  background: #5b6472;
}

.hb-map-result-body {
  display: grid;
  line-height: 1.4;
}

.hb-map-result-body > span {
  color: var(--hb-muted);
  font-size: 0.84rem;
}

.hb-map-result > .hb-text-link {
  display: inline-block;
  font-size: 0.85rem;
  margin-left: 2.5rem;
  margin-top: 0.4rem;
}

.hb-map-canvas {
  min-height: 680px;
  width: 100%;
  z-index: 1;
}

.hb-map-marker-wrap {
  background: transparent;
  border: 0;
}

.hb-map-marker {
  align-items: center;
  background: var(--hb-gold);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 8px;
  box-shadow: 0 5px 14px rgb(43 40 37 / 24%);
  color: #fff;
  display: flex;
  font: 700 0.76rem/1 var(--wp--preset--font-family--sans);
  height: 30px;
  justify-content: center;
  transform: rotate(-45deg);
  width: 30px;
}

.hb-map-marker > span {
  transform: rotate(45deg);
}

.hb-map-marker-pub {
  background: var(--hb-rose);
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: rgb(241 227 191 / 72%);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background: var(--hb-gold);
  color: #fff;
  font-family: var(--wp--preset--font-family--sans);
  font-weight: 700;
}

.hb-map-popup img {
  border-radius: 8px;
  display: block;
  height: 110px;
  margin-bottom: 0.7rem;
  object-fit: cover;
  width: 100%;
}

.hb-map-popup h3 {
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}

.hb-map-popup p {
  line-height: 1.45;
  margin: 0 0 0.55rem;
}

.hb-map-popup-meta,
.hb-map-message {
  color: var(--hb-muted);
}

.hb-flag-rule {
  background: linear-gradient(to right, #b75d60 0 33.33%, #fff 33.33% 66.66%, #4f7964 66.66% 100%);
  border: 1px solid rgb(43 40 37 / 8%);
  border-radius: 999px;
  display: block;
  height: 6px;
  margin: 0 auto 1.5rem;
  max-width: 110px;
}

@media (max-width: 900px) {
  .hb-header-inner {
    gap: 1rem;
  }

  .hb-brand-logo img {
    width: 132px !important;
  }

  .hb-primary-nav {
    display: none;
  }

  .hb-mobile-nav {
    display: block;
    position: static;
  }

  .hb-mobile-nav summary {
    align-items: center;
    color: var(--hb-ink);
    cursor: pointer;
    display: inline-flex;
    gap: 0.45rem;
    font-weight: 600;
    list-style: none;
    padding: 0.5rem 0;
  }

  .hb-mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .hb-mobile-nav summary::before {
    color: var(--hb-gold);
    content: "☰";
    font-size: 1rem;
    line-height: 1;
  }

  .hb-mobile-nav[open] nav {
    background: var(--hb-surface);
    border: 1px solid var(--hb-line);
    border-radius: 14px;
    box-shadow: var(--hb-shadow);
    left: 0;
    max-height: min(60vh, 420px);
    min-width: 0;
    overflow-y: auto;
    padding: 0.75rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.65rem);
    width: auto;
    z-index: 20;
  }

  .hb-mobile-nav ul {
    display: grid;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .hb-mobile-nav a {
    color: var(--hb-ink);
    display: block;
    padding: 0.55rem 0.7rem;
    text-decoration: none;
  }

  .hb-directory-grid,
  .hb-entry-grid,
  .hb-archive-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hb-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hb-hero-grid,
  .hb-home-split {
    grid-template-columns: 1fr;
  }

  .hb-hero-image,
  .hb-concept-image {
    max-width: 620px;
  }

  .hb-map-shell {
    grid-template-columns: 1fr;
  }

  .hb-map-sidebar {
    border-bottom: 1px solid var(--hb-line);
    border-right: 0;
    max-height: none;
  }

  .hb-map-canvas {
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  .hb-home-map-grid {
    gap: 2rem;
    grid-template-columns: 1fr;
  }

  .hb-map-preview {
    max-width: 620px;
  }
}

@media (max-width: 720px) {
  .hb-site-header {
    padding-bottom: 0.85rem !important;
    padding-top: 0.85rem !important;
  }

  .hb-brand-logo img {
    width: 112px !important;
  }

  .hb-header-actions {
    gap: 0.75rem;
  }

  .hb-language-switcher {
    padding-left: 0.75rem;
  }

  .hb-language-switcher ul {
    gap: 0.55rem;
  }

  .hb-language-switcher a {
    font-size: 0.86rem;
  }

  .hb-hero {
    min-height: 410px;
  }

  .hb-hero h1 {
    font-size: clamp(2.7rem, 13vw, 4.25rem);
  }

  .hb-directory-grid,
  .hb-entry-grid {
    grid-template-columns: 1fr;
  }

  .hb-knowledge,
  .hb-style-guide,
  .hb-about-page,
  .hb-map-page {
    padding-top: 2.5rem;
  }

  .hb-knowledge-hero,
  .hb-style-header,
  .hb-about-hero,
  .hb-map-intro {
    padding-bottom: 2.75rem;
  }

  .hb-about-content {
    padding-top: 2.75rem;
  }

  .hb-map-shell {
    border-radius: 16px;
  }

  .hb-map-canvas {
    min-height: 440px;
  }
}

@media (max-width: 560px) {
  .hb-archive-list {
    grid-template-columns: 1fr;
  }

  .hb-archive-page {
    padding-bottom: 4rem;
    padding-top: 2.5rem;
  }

  .hb-archive-hero {
    padding-bottom: 2.5rem;
  }
}

@media (max-width: 620px) {
  .hb-style-family-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hb-header-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hb-header-actions {
    justify-content: center;
    width: 100%;
  }

  .hb-language-switcher {
    margin-left: 0.25rem;
  }

  .hb-style-family,
  .hb-style-panel,
  .hb-context-card,
  .hb-single-shell {
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
