/* Growler Country Tap List — matches the HTML food menu (.gc-menu) look.
   Everything is scoped under .gct so it won't touch the rest of the theme. */

.gct {
  --gct-bg: #fbf7f1;
  --gct-ink: #1d1a16;
  --gct-muted: #6e655c;
  --gct-rule: #e7ded2;
  --gct-brick: #c2471d;
  --gct-mustard: #e8a317;
  --gct-tint: #f6ead3;
  --gct-dark: #1b1815;
  --gct-display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --gct-head: "Oswald", "Arial Narrow", sans-serif;
  --gct-text: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  background: var(--gct-bg);
  color: var(--gct-ink);
  font-family: var(--gct-text);
  font-size: 16px;
  line-height: 1.45;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 28px;
  border-radius: 0;
}
.gct *, .gct *::before, .gct *::after { box-sizing: border-box; }

/* ---------- Heading ---------- */
.gct-head { text-align: center; margin-bottom: 4px; }
.gct .gct-title {
  margin: 0;
  font-family: var(--gct-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: .95;
  letter-spacing: .02em;
  color: var(--gct-ink);
}
.gct .gct-intro { margin: 6px auto 0; max-width: 640px; color: var(--gct-muted); font-size: .98rem; }

.gct .gct-updated {
  margin: 8px 0 14px;
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gct-muted);
}
.gct .gct-admin-refresh {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--gct-dark);
  color: #fff;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
}
.gct .gct-admin-refresh small { opacity: .7; font-weight: 400; }

/* ---------- Section links ---------- */
.gct-jump {
  position: relative;
  z-index: 30;
  background: var(--gct-bg);
  box-shadow: 0 3px 0 rgba(29, 26, 22, .04);
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 10px 0;
  margin-bottom: 6px;
  border-top: 1px solid var(--gct-rule);
  border-bottom: 1px solid var(--gct-rule);
}

.gct-jump a:first-child { margin-left: auto; }
.gct-jump a:last-child { margin-right: auto; }
.gct .gct-jump a {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 0;
  border-bottom: 3px solid transparent;
  font-family: var(--gct-head);
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gct-ink);
  text-decoration: none;
}
.gct .gct-jump a:hover { background: var(--gct-tint); }
.gct .gct-jump a.is-active {
  border-bottom-color: var(--gct-brick);
  background: var(--gct-tint);
  color: #923514;
}
.gct .gct-jump a:focus-visible { outline: 2px solid var(--gct-brick); outline-offset: -2px; }
.gct .gct-jump a.is-active span { color: inherit; }
.gct .gct-jump a span { color: var(--gct-brick); margin-left: 2px; }

/* ---------- Sections ---------- */
.gct-section { padding-top: 16px; scroll-margin-top: calc(var(--gct-sticky-top, 0px) + var(--gct-nav-height, 70px) + 24px); }
.gct .gct-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 8px;
  font-family: var(--gct-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--gct-ink);
}
.gct .gct-section-title::after {
  content: "";
  flex: 1;
  height: 3px;
  background: var(--gct-rule);
}

/* ---------- Tap rows: two columns on wide screens, one on phones ---------- */
.gct .gct-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: 0 28px;
}
.gct .gct-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 11px 0;
  border-top: 1px solid var(--gct-rule);
}
.gct .gct-tap {
  flex: 0 0 30px;
  width: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--gct-muted);
  font-family: var(--gct-text);
  font-weight: 400;
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
}
.gct .gct-logo {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--gct-rule);
  margin: 0;
}
.gct-body { flex: 1 1 auto; min-width: 0; }
.gct-producer {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gct-brick);
}
.gct-name {
  font-family: var(--gct-head);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--gct-ink);
}
.gct-meta { margin-top: 2px; font-size: .86rem; color: var(--gct-muted); }

.gct-stats {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--gct-head);
  font-weight: 500;
  font-size: .95rem;
  color: var(--gct-brick);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.gct-stats span + span { font-size: .78rem; color: var(--gct-muted); }

/* Just tapped / Almost gone */
.gct-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--gct-text);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.gct-badge--new { background: var(--gct-mustard); color: var(--gct-dark); }
.gct-badge--low { background: var(--gct-brick); color: #fff; }

@media (max-width: 480px) {
  .gct { padding: 18px 14px 22px; border-radius: 0; }
  .gct .gct-logo { width: 36px; height: 36px; }
  .gct .gct-tap { flex-basis: 24px; width: 24px; font-size: .85rem; }
}

/* Keg-level bar — colors come straight from Digital Pour (green → yellow → orange → red) */
.gct-level {
  width: 100%;
  max-width: 180px;
  height: 6px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--gct-rule);
  overflow: hidden;
}
.gct-level span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

/* Pint glass / keg icon */
.gct-icon {
  flex: 0 0 auto;
  display: inline-flex;
  color: var(--gct-ink);
  opacity: .9;
}
.gct-icon svg { display: block; }

/* The logged-in WordPress toolbar must stay above the category navigation. */
body.admin-bar .gct { --gct-sticky-top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .gct { --gct-sticky-top: 46px; }
}

/* A viewport-level copy escapes theme containers that block position:sticky. */
.gct.gct-floating-nav { position: fixed; z-index: 9990; display: none; margin: 0; padding: 0; max-width: none; border: 0; border-radius: 0; }
.gct.gct-floating-nav.is-visible { display: block; }
.gct.gct-floating-nav .gct-jump { position: static; margin: 0; box-shadow: 0 4px 12px rgba(29,26,22,.1); }
.gct .gct-legend { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 20px 0 24px; padding: 16px 0; border-top: 1px solid var(--gct-rule); }
.gct .gct-legend-glasses { display: flex; flex: 0 0 auto; gap: 8px; }
.gct .gct-legend p { margin: 0; max-width: 480px; font-size: .9rem; color: var(--gct-muted); line-height: 1.6; }
.gct .gct-legend strong { color: var(--gct-ink); }
@media (max-width: 480px) {
  .gct .gct-legend { align-items: flex-start; gap: 14px; }
}

/* Decorative scroll-to-sip glass: not a real keg-level indicator. */
.gct.gct-experience { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 36px; }
.gct .gct-main { min-width: 0; }
.gct .gct-beer-rail { position: relative; min-width: 0; }
.gct-beer-stage { position: relative; width: 220px; aspect-ratio: 927 / 1697; pointer-events: none; }
.gct-beer-stage img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; margin: 0; border: 0; padding: 0; }
.gct-beer-stage .gct-beer-full { clip-path: inset(var(--gct-drain, 0%) 0 0 0); }
.gct-beer-stage.gct-beer-floating { position: fixed; z-index: 5; }
@media (max-width: 800px) {
  .gct.gct-experience { display: block; }
  .gct .gct-beer-rail { display: none; }
  .gct-beer-stage, .gct-beer-stage.gct-beer-floating { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gct-beer-stage .gct-beer-full { clip-path: none; }
}

/* Desktop categories stay on one line, including the floating copy. */
@media (min-width: 801px) {
  .gct .gct-jump { flex-wrap: nowrap; justify-content: center; overflow-x: hidden; scrollbar-width: none; gap: 2px; }
  .gct .gct-jump::-webkit-scrollbar { display: none; }
  .gct .gct-jump a { flex: 0 1 auto; min-width: 0; padding: 10px 8px; text-align: center; font-size: 12px; letter-spacing: 0; }
  .gct .gct-jump a:first-child { margin-left: 0; }
  .gct .gct-jump a:last-child { margin-right: 0; }
}

/* Intro leads; refresh time is secondary information. */
.gct .gct-intro { max-width: 680px; margin-top: 12px; font-size: 1.1rem; font-weight: 500; line-height: 1.55; color: var(--gct-ink); }
.gct .gct-updated { font-size: .72rem; font-weight: 400; letter-spacing: .02em; text-transform: none; color: var(--gct-muted); }
.gct .gct-legend { gap: 10px; align-items: center; }
.gct .gct-key-label { flex: 0 0 auto; font-size: .88rem; }
.gct .gct-key-glass { display: inline-flex; flex: 0 0 auto; }
.gct .gct-key-glass svg { width: 30px; height: 42px; }
.gct .gct-legend p { max-width: 300px; font-size: .88rem; line-height: 1.45; color: var(--gct-ink); }
@media (max-width: 480px) {
  .gct .gct-legend { gap: 8px; }
}

/* Compact mobile categories; also applies to the floating sticky copy. */
@media (max-width: 800px) {
  .gct .gct-jump { flex-wrap: nowrap; justify-content: center; gap: 0; overflow-x: hidden; scrollbar-width: none; }
  .gct .gct-jump::-webkit-scrollbar { display: none; }
  .gct .gct-jump a { flex: 0 1 auto; min-width: 0; margin: 0; padding: 12px 4px; font-size: 11px; letter-spacing: 0; text-align: center; }
  .gct .gct-jump a:first-child { margin-left: 0; }
  .gct .gct-jump a:last-child { margin-right: 0; }
  .gct .gct-jump a span { margin-left: 1px; }
}
@media (max-width: 360px) {
  .gct .gct-jump a { padding-right: 3px; padding-left: 3px; font-size: 10px; }
}

/* Desktop-only width. Override WordPress theme block width constraints. */
@media (min-width: 1024px) {
  .gct:not(.gct-floating-nav) {
    box-sizing: border-box;
    width: min(1440px, calc(100vw - 64px)) !important;
    min-width: min(1440px, calc(100vw - 64px)) !important;
    max-width: none !important;
    margin-left: calc((100% - min(1440px, calc(100vw - 64px))) / 2) !important;
    margin-right: 0 !important;
  }
}

/* Spacious desktop categories; flex shares available width across live categories. */
@media (min-width: 1024px) {
  .gct .gct-jump { width: 100%; gap: 0; }
  .gct .gct-jump a {
    flex: 1 1 0;
    padding: 16px 12px;
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.3;
  }
  .gct .gct-legend {
    justify-content: flex-start;
    margin-left: 0;
    margin-right: 0;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .gct .gct-legend p { max-width: none; }
}

/* Readable supporting drink information on desktop. */
@media (min-width: 1024px) {
  .gct .gct-producer {
    font-size: 1rem;
    line-height: 1.4;
    letter-spacing: .04em;
  }
  .gct .gct-meta {
    margin-top: 5px;
    font-size: 1.0625rem;
    line-height: 1.5;
    color: #514a42;
  }
  .gct .gct-stats span + span { font-size: .9375rem; }
}

/* Readable mobile categories, including the floating sticky copy. */
@media (max-width: 800px) {
  .gct .gct-jump { gap: 0; width: 100%; }
  .gct .gct-jump a {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 54px;
    padding: 8px 2px;
    font-size: clamp(13px, 3.5vw, 16px);
    line-height: 1.2;
    letter-spacing: 0;
  }
  .gct .gct-jump a span { display: block; margin-left: 0; font-size: 12px; line-height: 1.2; }
}
