/* Houston Beekeepers Association
   Colours: honey yellow for action, near-black for type and dark bands,
   pale honey for light bands. Type: Montserrat headings, Open Sans text. */

:root {
  --ink: #1e1a14;
  --text: #3d372e;
  --muted: #5e5547;
  --honey: #f5b700;
  --honey-dark: #e0a600;
  --honey-pale: #fff6dd;
  --honey-soft: #fff0c2;
  --link: #7a4a00;
  --link-hover: #4f3000;
  --line: #eadfc8;
  --night: #1e1a14;
  --night-deep: #14110d;
  --on-dark: #e9e2d3;
  --on-dark-muted: #cfc6b4;
  --radius: 14px;
  --head: "Montserrat", "Trebuchet MS", Arial, sans-serif;
  --body: "Open Sans", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 17px/1.6 var(--body); overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.12; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; }
h2 { font-size: clamp(25px, 3.2vw, 32px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 800; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 20; }
.skip:focus { top: 12px; }
.pre { white-space: pre-line; }
.preview-bar { background: var(--ink); color: var(--honey); text-align: center; font: 600 14px/1.4 var(--body); padding: 8px 16px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.band { padding: clamp(40px, 6vw, 64px) 0; }
.band.tint { background: var(--honey-pale); }
.band.dark { background: var(--night); color: var(--on-dark); }
.band.dark h2, .band.dark h3 { color: #fff; }
.band.line { border-top: 1px solid var(--line); }
.kicker { margin: 0 0 12px; font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--link); }
.kicker.on-dark { color: var(--honey); }
.lead { font-size: 19px; max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; border: 2px solid transparent; font: 700 15px/1.2 var(--head); text-decoration: none; cursor: pointer; text-align: center; }
.btn.honey { background: var(--honey); color: var(--ink); }
.btn.honey:hover { background: var(--honey-dark); color: var(--ink); }
.btn.ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.ghost-light { border-color: #fff; color: #fff; }
.btn.ghost-light:hover { background: #fff; color: var(--ink); }
.btn.big { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.more { font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Header */
.top { background: #fff; border-bottom: 1px solid #efe6d2; position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font: 800 17px/1.15 var(--head); }
.brand img { border-radius: 8px; object-fit: contain; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 0; }
.nav a:not(.btn):hover { color: var(--link); }
.nav a[aria-current="page"] { color: var(--link); box-shadow: inset 0 -3px 0 var(--honey); }
.nav .btn { min-height: 44px; padding: 0 18px; }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; background: transparent; color: var(--ink); border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }

@media (max-width: 960px) {
  .brand { font-size: 15px; }
  .brand .mark, .brand img { width: 38px; height: 38px; }
  .menu-btn { display: inline-flex; }
  .top-in { flex-wrap: wrap; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 12px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid #efe6d2; font-size: 17px; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--honey); padding-left: 14px; }
  .nav .btn { margin-top: 12px; min-height: 50px; }
}

/* Home hero */
.hero { background: var(--honey-pale); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: clamp(36px, 6vw, 64px); padding-bottom: clamp(36px, 6vw, 64px); }
.hero h1 { font-size: clamp(34px, 4.6vw, 50px); }
.hero .lead { margin-bottom: 28px; }
.hero-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; display: block; }
.comb { width: 100%; height: auto; display: block; max-height: 380px; }
@media (max-width: 760px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-pic { order: 2; }
  .comb { max-height: 220px; }
  .hero .btn-row .btn { flex: 1 1 100%; }
}

/* Cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); }
.where { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 40px; align-items: start; }
.where-map iframe, .where-placeholder, .where-photo { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 18px; background: #fff; }
.where-photo { object-fit: cover; margin-bottom: 18px; }
.where-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; color: var(--ink); text-decoration: none; border: 2px dashed #e6d6ad; }
.where-place { font-size: 18px; margin: 0 0 14px; }
.where-side .prose { margin-bottom: 16px; }
@media (max-width: 820px) { .where { grid-template-columns: minmax(0, 1fr); } }
.link-groups h4 { font: 700 16px/1.3 var(--head); margin: 0 0 6px; color: var(--ink); }
.link-groups ul { margin: 0; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius); border: 1.5px solid var(--line); background: #fff; }
.card h3 { margin: 0; }
.card p { margin: 0; }
.card .more { margin-top: auto; padding-top: 4px; }
a.card { text-decoration: none; color: var(--text); }
a.card:hover { border-color: var(--honey); box-shadow: 0 6px 18px rgba(30, 26, 20, .08); }
a.card .more { color: var(--link); }
.card.dark { background: var(--night); border-color: var(--night); color: var(--on-dark); }
.card.dark h3 { color: #fff; }
.card.dark .more { color: var(--honey); }
a.card.dark:hover { border-color: var(--honey); }
.card.pale { background: var(--honey-pale); border-color: var(--honey-pale); }
.ic { width: 48px; height: 48px; border-radius: 12px; background: var(--honey-soft); color: var(--link); display: flex; align-items: center; justify-content: center; flex: none; }
.card.dark .ic, .ic.solid { background: var(--honey); color: var(--ink); }
.tag { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--link); }
.date { font-size: 14px; color: var(--muted); margin-top: -6px !important; }
.links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 20px; padding-top: 4px; }
.soon { color: var(--muted); font-style: italic; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }

/* Next meeting */
.meeting-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 40px; }
.meeting-text { flex: 1 1 520px; }
.meeting h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 8px; }
.nm-title { font-size: 20px; font-weight: 700; color: var(--honey); margin-bottom: 16px; }
.nm-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.nm-facts li { display: flex; gap: 8px; align-items: flex-start; }
.nm-facts .icon { flex: none; margin-top: 3px; }
.nm-note { margin: 16px 0 0; color: var(--on-dark-muted); font-size: 15px; }

/* Split layouts */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: start; }
.split.wide-left { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
@media (max-width: 820px) { .split, .split.wide-left { grid-template-columns: minmax(0, 1fr); } }
.panel { background: #fff; border-radius: 16px; padding: 26px; border: 1.5px solid var(--line); }
.tint .panel { border-color: #fff; }

/* Prose (text from the editor) */
.prose { max-width: 720px; }
.prose h2 { font-size: 26px; margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose > :first-child { margin-top: 0; }
.prose.small { font-size: 15px; }

/* Lists */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--link); flex: none; margin-top: 3px; }
.cols { columns: 2 260px; column-gap: 40px; padding-left: 1.2em; }
.cols li { break-inside: avoid; margin-bottom: .4em; }
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.agenda li:last-child { border-bottom: 0; }
.agenda b { font-family: var(--head); color: var(--ink); white-space: nowrap; }

/* Prices */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.price { background: #fff; border-radius: 12px; padding: 16px; text-align: center; border: 1.5px solid var(--line); }
.price b { display: block; font: 800 30px/1.1 var(--head); color: var(--ink); }
.price span { font-size: 15px; }

/* Swarm page */
.tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px 32px; }
.tip { display: flex; gap: 14px; align-items: flex-start; }
.tip .icon { color: var(--link); flex: none; }
.tip strong { color: var(--ink); }
.tip p { margin: 4px 0 0; }
.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.strip p { margin: 0; font-size: 18px; flex: 1 1 480px; }
.strip strong { color: var(--honey); }
.more-apps { margin-top: 20px; border-top: 1px solid #efe6d2; padding-top: 14px; }
.more-apps summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.more-apps dl { margin: 10px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; }
.more-apps dt { font-weight: 700; }
.more-apps dd { margin: 0; }
.more-apps code { font-size: 15px; background: var(--honey-pale); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .more-apps dl { grid-template-columns: 1fr; gap: 2px; } .more-apps dd { margin-bottom: 10px; } }
.fine { font-size: 14px; color: var(--muted); }

/* Calendar */
.seasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.season h3 { margin-bottom: 2px; }
.season .note { font-weight: 700; color: var(--link); margin-bottom: 8px; }
.season ul { margin: 0; padding-left: 1.2em; }
.season li { margin-bottom: .3em; }

/* People and partners */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.person { text-align: center; }
.person img, .avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; }
.avatar { background: var(--honey-soft); color: var(--link); font: 800 34px/1 var(--head); }
.person h3 { margin-bottom: 2px; font-size: 19px; }
.person p { margin: 0; }
.partner-logo { height: 76px; width: auto; max-width: 210px; object-fit: contain; align-self: flex-start; }

/* Forms */
.hba-form { max-width: 760px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-bottom: 18px; align-items: end; }
.field.wide, .field:has(textarea), .field:has(fieldset), .field:has(.choice) { grid-column: 1 / -1; }
@media (max-width: 600px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.field label, .field legend { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; font-size: 16px; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #cdbf9f; border-radius: 10px; font: 16px/1.4 var(--body); color: var(--ink); background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--honey); outline-offset: 0; border-color: var(--ink); }
.choices { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.choice { display: inline-flex !important; align-items: center; gap: 10px; font-weight: 400 !important; color: var(--text) !important; min-height: 44px; }
.choice input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; }
.req { color: #a33b00; }
.form-note { font-size: 14px; color: var(--muted); }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: #1f5f2a; }
.form-status.err { color: #8a2c00; }
.hp { position: absolute; left: -9999px; }

/* Calendar, directory and signup */
.cal-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 15px; }
.cal-links .icon { color: var(--link); }
.cal-links a { font-weight: 700; }
.cal-links.on-dark, .cal-links.on-dark .icon { color: var(--on-dark-muted); }
.cal-links.on-dark a { color: var(--honey); }
.nm-cal { margin: 14px 0 0; }
.empty { display: flex; gap: 16px; align-items: center; color: var(--muted); }
.empty .icon { color: var(--link); flex: none; }
.empty p { margin: 0; }
.seller-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.cal-embed { position: relative; border-radius: 14px; overflow: hidden; border: 1.5px solid var(--line); }
.cal-embed iframe { display: block; width: 100%; height: 520px; border: 0; }
.signup { background: var(--honey); color: var(--ink); padding: 28px 0; }
.signup p { font-size: 17px; }
.signup strong { color: var(--ink); }
.signup .btn.honey { background: var(--ink); color: #fff; }
.signup .btn.honey:hover { background: #000; color: #fff; }

/* Footer */
.foot { background: var(--night-deep); color: var(--on-dark-muted); font-size: 15px; }
.foot a { color: var(--on-dark); text-decoration: none; }
.foot a:hover { color: var(--honey); text-decoration: underline; }
.foot-in { display: flex; flex-wrap: wrap; gap: 28px 64px; padding-top: 44px; padding-bottom: 28px; }
.foot-in > div { display: flex; flex-direction: column; gap: 8px; }
.foot-in strong { color: #fff; font-family: var(--head); }
.foot-brand { flex: 1 1 260px; }
.nowrap { white-space: nowrap; }
.tax-note { margin: 16px 0 0; font-size: 15px; color: var(--on-dark-muted); }
.foot-logo { width: 112px; height: 112px; object-fit: contain; background: #fff; border-radius: 14px; padding: 10px; margin-bottom: 6px; }
.foot-base { border-top: 1px solid #2e2820; padding-top: 16px; padding-bottom: 28px; font-size: 13px; }

@media (prefers-reduced-motion: no-preference) {
  a.card { transition: border-color .15s, box-shadow .15s; }
}
@media print {
  .top, .foot, .btn-row { display: none; }
}
