
/* EDGE&TA demo: KY3-style slide-in menu panel + production colors v4 */
body {
  font-family: "Public Sans","Public Sans Fallback", Arial, sans-serif;
  color: #000;
  background-image: url("https://cdn.edgeta.com/wp-content/uploads/2022/02/backlogo.gif");
  background-attachment: fixed;
}

/* Kadence headers and sidebar are replaced by the CodeBox top bar + panel */
.site-header { display: none !important; }
#secondary.primary-sidebar { display: none !important; }
/* v24: with the sidebar hidden, Kadence's sidebar layout lets a page whose
   content is intrinsically narrow (Club Administration's officer columns)
   shrink toward the right edge, leaving a large empty gap on the left.
   Force every wrapper between the container and the content to fill the
   full container width so all pages start at the same left edge. */
.content-wrap { grid-template-columns: minmax(0, 1fr) !important; }
.site-main, .content-wrap, .content-wrap > article.entry, .entry-content-wrap, .entry-content { width: 100%; max-width: none; }
/* v26: v24's width rules alone did not stretch the article — the shrink
   sits in how .site-main / .content-wrap lay out their child (flex/grid
   item sizing). Force both to plain block layout so the article fills
   the container like it does on text-heavy pages. */
.site-main, .content-wrap { display: block !important; }
.content-wrap > article.entry { margin-left: 0 !important; margin-right: 0 !important; }
.content-container { grid-template-columns: minmax(0, 1fr) !important; }

/* Slim yellow top bar */
.edgeta-topbar {
  position: sticky;
  top: 0;
  z-index: 1500;
  background-color: #ffe400;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px;
  /* v22: the title bar carries the same shadow as the menu panel (same
     blur and strength), cast downward instead of to the right — Josh
     corrected an earlier cut-off message: he asked to ADD it here too. */
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.25);
}
body.admin-bar .edgeta-topbar { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .edgeta-topbar { top: 46px; }
}
.edgeta-menu-btn {
  background-color: #000;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}
.edgeta-menu-btn:hover,
.edgeta-menu-btn:focus { background-color: #a22e2e; }
.edgeta-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #000;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  min-width: 0;
}
.edgeta-brand img { height: 34px; width: auto; flex: 0 0 auto; }
.edgeta-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Dimmed overlay */
.edgeta-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1900;
}
.edgeta-overlay[hidden] { display: none !important; }

/* Slide-in menu panel: its own object, KY3-style */
.edgeta-panel {
  position: fixed;
  top: 0;
  left: 0;
  height: 100dvh;
  width: 320px;
  max-width: 88vw;
  background-color: #ffe400;
  z-index: 2000;
  overflow-y: auto;
  transform: translateX(-105%);
  transition: transform 0.25s ease;
}
.edgeta-panel[hidden] { display: none !important; }
.edgeta-panel.open { transform: none; }
.edgeta-panel-head {
  background-color: rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 8px 0 17px;
}
.edgeta-panel-title { font-weight: 700; color: #000; }
.edgeta-close-btn {
  background: transparent;
  border: 0;
  color: #000;
  font-size: 30px;
  line-height: 1;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.edgeta-menu { list-style: none; margin: 0; padding: 0; }
.edgeta-menu li { border-bottom: 1px solid rgba(0, 0, 0, 0.15); margin: 0; }
.edgeta-menu li a {
  display: block;
  padding: 12px 17px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 400;
  color: #000;
  text-decoration: none;
}
.edgeta-menu li a:hover,
.edgeta-menu li a:focus {
  background-color: rgba(0, 0, 0, 0.05);
  color: #a22e2e;
}
.edgeta-menu .current-menu-item > a,
.edgeta-menu .current_page_item > a { color: #a22e2e; }
@media (prefers-reduced-motion: reduce) {
  .edgeta-panel { transition: none; }
}

/* Content links: production's blue / red hover. The hover/focus red is
   #e60000 rather than production's exact #ff0000: pure red is 4.00:1 on
   white, under the WCAG AA 4.5:1 minimum; #e60000 passes at 4.81:1 and
   looks identical (accessibility fix approved by Josh, 2026-11-27). */
.entry-content a:not(.wp-block-button__link) { color: #0000ff; }
.entry-content a:not(.wp-block-button__link):hover,
.entry-content a:not(.wp-block-button__link):focus { color: #e60000; }

/* Footer bar */
.site-bottom-footer-wrap { background-color: #ffe400; color: #000; }
.site-bottom-footer-wrap a { color: #000; }
/* v5 hardening: keep Kadence button styles out of the top bar and panel */
.edgeta-menu-btn { background-color: #000 !important; color: #fff !important; }
.edgeta-menu-btn:hover, .edgeta-menu-btn:focus { background-color: #a22e2e !important; }
.edgeta-close-btn { background-color: transparent !important; color: #000 !important; box-shadow: none !important; }
body.admin-bar .edgeta-panel { top: 32px; height: calc(100dvh - 32px); }
@media (max-width: 782px) {
  body.admin-bar .edgeta-panel { top: 46px; height: calc(100dvh - 46px); }
}
/* v6: menu open on load pushes content over; transparent content background */
body { transition: padding-left 0.25s ease; }
body.edgeta-menu-open { padding-left: 320px; }
@media (max-width: 700px) {
  body.edgeta-menu-open { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body { transition: none; }
}
.content-bg, .entry.content-bg, .site-main, #primary {
  background: transparent !important;
  background-color: transparent !important;
}

/* v7: Menu button stays black when focused; focus shown by outline instead */
.edgeta-menu-btn:focus { background-color: #000 !important; outline: 3px solid #a22e2e; outline-offset: 2px; }
/* v8: Menu button exists only while the panel is off screen */
.edgeta-menu-btn[hidden] { display: none !important; }

/* v9: logo and name at the top of the panel, like the production pane */
.edgeta-panel-brand { text-align: center; padding: 18px 16px 12px; }
.edgeta-panel-brand img { display: block; width: 150px; height: auto; margin: 0 auto; }
.edgeta-panel-name { margin: 10px 0 2px; font-size: 17px; line-height: 1.3; font-weight: 700; color: #000; }

/* v10: no Menu title in the panel head; brand block centered */
.edgeta-panel-head { justify-content: flex-end; }
.edgeta-panel-brand { text-align: center; }
.edgeta-panel-brand img { margin-left: auto; margin-right: auto; }
.edgeta-panel-name { text-align: center; }

/* v11: panel scrollbar like the production pane (Themify tf_scrollbar values) */
.edgeta-panel { scrollbar-width: thin; scrollbar-color: rgba(137,137,137,.2) transparent; }
.edgeta-panel::-webkit-scrollbar { width: 10px; }
.edgeta-panel::-webkit-scrollbar-track { background: transparent; }
.edgeta-panel::-webkit-scrollbar-thumb { background-color: rgba(137,137,137,.2); background-clip: padding-box; border: 2px solid transparent; border-radius: 5px; }
.edgeta-panel:hover { scrollbar-color: rgba(137,137,137,.4) transparent; }
.edgeta-panel:hover::-webkit-scrollbar-thumb { background-color: rgba(137,137,137,.4); }
/* v27: Kadence's left-sidebar layout keeps a ~207px first grid track on
   .content-container for the hidden sidebar (measured live: columns
   206.7px + 975.8px on Club Administration) — that empty track is the
   left gap. Kadence's rule outranked the earlier plain .content-container
   override, so outrank it here and make .site-main span every track. */
body.has-left-sidebar .content-container.site-container,
body.has-sidebar .content-container.site-container { grid-template-columns: minmax(0, 1fr) !important; }
.content-container > .site-main { grid-column: 1 / -1 !important; }

/* v12: no shaded strip at the panel top; contents sit higher */
.edgeta-panel-head { background: transparent; padding: 4px 8px 0; }
.edgeta-panel-brand { padding-top: 6px; }
/* v13: page title lives in the yellow top strip; Kadence grey title hero off; panel brand is a home link */
.entry-hero { display: none !important; }
.edgeta-topbar { flex-wrap: wrap; }
.edgeta-page-title { margin: 0 0 0 auto; font-size: 20px; line-height: 1.2; font-weight: 700; color: #000; }
.edgeta-panel-brand-link { display: block; text-decoration: none; color: #000; }
.edgeta-panel-brand-link:hover .edgeta-panel-name { color: #a22e2e; }
/* v14: top strip swapped — page title on the left, logo-only home link on the right */
.edgeta-page-title { margin: 0; }
.edgeta-brand { margin-left: auto; }
/* v15: front-end title override form (editors and above only) */
.edgeta-title-form { margin: 32px 0 8px; padding: 16px; border: 1px dashed rgba(0,0,0,.4); background: rgba(255,228,0,.15); }
.edgeta-title-form-heading { margin: 0 0 8px; font-size: 17px; }
.edgeta-title-form input[type="text"] { max-width: 100%; padding: 6px 8px; }
/* v16: homepage newsletter and Facebook links as one inline list — v19: centered */
.edgeta-home-links { display: flex; flex-wrap: wrap; gap: 8px 40px; justify-content: center; list-style: none; padding-left: 0; }
/* v17: homepage top links and form links as buttons, using Kadence's own button palette variables so they follow the theme's button colors */
.edgeta-home-links a, .edgeta-form-links a { display: inline-block; background: var(--global-palette-btn-bg); color: var(--global-palette-btn); padding: 10px 20px; border-radius: 3px; text-decoration: none; }
.edgeta-home-links a:hover, .edgeta-form-links a:hover { background: var(--global-palette-btn-bg-hover); color: var(--global-palette-btn-hover); }
/* v19: form buttons get the same centered flex layout and spacing as the homepage top links */
.edgeta-form-links { display: flex; flex-wrap: wrap; gap: 8px 40px; justify-content: center; list-style: none; padding-left: 0; }
/* v18: button text colors win over the blue content-link rule, and Kadence Blocks buttons (which bake their own colors) follow the same Kadence button palette */
.entry-content .edgeta-home-links li a, .entry-content .edgeta-form-links li a { color: var(--global-palette-btn); }
.entry-content .edgeta-home-links li a:hover, .entry-content .edgeta-form-links li a:hover { color: var(--global-palette-btn-hover); }
.kb-button { background: var(--global-palette-btn-bg) !important; color: var(--global-palette-btn) !important; }
.kb-button:hover { background: var(--global-palette-btn-bg-hover) !important; color: var(--global-palette-btn-hover) !important; }

/* v28: the ACF/CPT archive listings (Newsletters, Minutes) render as one
   chronological list shown in three columns on wide screens (one column
   on phones), keeping the production pages' multi-column look while the
   reading order stays newest-first. */
.edgeta-archive-list ul { columns: 3; column-gap: 40px; }
@media (max-width: 1000px) { .edgeta-archive-list ul { columns: 2; } }
@media (max-width: 700px) { .edgeta-archive-list ul { columns: 1; } }
.edgeta-archive-list li { break-inside: avoid; }

/* v29: Club Administration officer cards (rendered from the
   club-administrator entries): two columns on wide screens, one on
   phones; the officer photo sits above the name. */
.edgeta-officers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; }
@media (max-width: 700px) { .edgeta-officers { grid-template-columns: 1fr; } }
.edgeta-officer img { max-width: 100%; height: auto; }
.edgeta-officer-name { margin-bottom: 4px; }

/* v30: the Branch List table (rendered from the branch entries):
   simple ruled rows with a bold header, matching the site's tables. */
.edgeta-branch-table { border-collapse: collapse; width: 100%; }
.edgeta-branch-table th, .edgeta-branch-table td { border: 1px solid #999; padding: 6px 10px; text-align: left; }
.edgeta-branch-table thead th { background: #ffe400; }

/* v31: mobile top bar (Josh, 2026-11-27) — first row is the Menu button on
   the left and the tiny logo on the right; the page title takes its own
   full-width row beneath them. (The panel no longer opens on load on
   mobile — see the top bar / panel PHP snippet.) */
@media (max-width: 700px) {
  .edgeta-menu-btn { order: 1; }
  .edgeta-brand { order: 2; margin-left: auto; }
  .edgeta-page-title { order: 3; flex: 1 1 100%; }
}

/* v32: branch single pages — the migrated content holds the state flag and
   the branch logo as plain images in a paragraph and they sat against the
   left edge; center them (Josh, 2026-11-27). */
.single-branch .entry-content img { display: block; margin-left: auto; margin-right: auto; }

/* v33: back arrow in the title bar (deep pages only; printed by the
   top bar snippet). A 40px square target, black on the yellow bar,
   turning the bar's red on hover like its other controls. On mobile
   the arrow shares the page title's row, sitting left of the title,
   so the title's flex basis relaxes from a full row to auto. */
.edgeta-back { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 auto; color: #000; text-decoration: none; }
.edgeta-back:hover { color: #a22e2e; }
@media (max-width: 700px) {
  .edgeta-back { order: 3; }
  .edgeta-page-title { flex: 1 1 auto; min-width: 0; }
}

/* v34: hide Kadence's in-content entry header on single entries. It
   holds only the entry title, which now lives in the yellow title bar
   (see the top bar snippet), so the large in-content heading would
   just repeat it. */
.single .entry-header { display: none !important; }
/* v35-v36 (removed): card thumbnail fixes. The branch cards no
   longer carry a thumbnail at all - the logos render in each
   branch's own page content instead - so the contain/uniform-box
   rules are gone with the element they styled. */

/* v37: committee members across in columns, like production. The
   committees shortcode emits core Columns markup, but the core
   columns stylesheet is never loaded for shortcode output, so the
   members stacked. These rules supply the missing layout: equal
   columns in a row on wide screens, stacked on narrow ones. */
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 1em 2em; margin: 0 0 1.5em; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-column p { margin-top: 0; }
@media (max-width: 700px) {
  .wp-block-column { flex-basis: 100%; }
}

/* v38: half the white space between the title bar and the page
   content (Josh, 2026-11-27). A measuring probe found the gap was
   Kadence's content-area top margin (80px) plus the entry wrap's
   top padding (32px) - 112px on pages, plus the entry content's own
   32px top margin on singles (144px). Each piece is halved, so the
   gap is 56px on pages and 72px on singles. */
.content-area { margin-top: 40px !important; }
.entry-content-wrap { padding-top: 10px !important; }
.single .entry-content { margin-top: 0 !important; }

/* v40 - No empty thumbnail column on branch cards (Josh, 2026-11-27):
   the card's thumbnail no longer renders (see the v35 note), but WP Grid
   Builder still outputs an EMPTY .wpgb-card-media box for posts that have
   a featured image, and the card stylesheet gives that box a 13% column -
   a blank strip at the left of those cards. Hide the empty box and let
   the card content use the full width. */
.wp-grid-builder .wpgb-card-media:empty { display: none !important; }
.wp-grid-builder .wpgb-card-1 .wpgb-card-media:empty + .wpgb-card-content { width: auto !important; }

/* v41 - Branch Contact spacing (Josh, 2026-11-27): the contact lines are
   one tight paragraph (snippet 14); this leaves one blank line's worth of
   space between the "Branch Contact" heading and the block. */
.edgeta-branch-contact { margin-top: 1em !important; }

/* v42 - Homepage section headings are H2 (snippet: page content change,
   2026-11-27) so the heading order does not skip a level under the title
   strip's H1. Keep Kadence's H3 visual size (24px) so the homepage looks
   exactly as before. */
.home .entry-content h2 { font-size: 24px; }

/* v66 - Rounded corner REMOVED (Josh, 2026-11-29): the fillet where the
   open menu panel met the title bar (v43-v45), the scrollbar cover strip
   that masked the panel scrollbar beside it (v23), and the panel
   clip-path that shaped the panel's shadow around the curve (v20/v45)
   are all gone at Josh's direction. The join is a plain square corner
   again: the panel's own box-shadow runs its full height and the panel
   scrollbar shows along the panel's full height. The companion PHP
   snippet no longer prints the corner or cover elements. */

/* v46 - Homepage link lists are plain links again (Josh, 2026-11-27):
   the newsletter/Facebook links (.edgeta-home-links) and the EDGETA
   Forms list (.edgeta-form-links) lose the button styling of v17-v19
   and render as regular text links (production blue, red on hover) in a
   standard list: three columns like the archive lists (v28), LEFT
   aligned instead of centred, collapsing to one column on narrow
   screens. These rules override the v16-v19 flex/button rules above. */
.edgeta-home-links, .edgeta-form-links { display: block; columns: 3; column-gap: 2em; text-align: left; }
.edgeta-home-links li, .edgeta-form-links li { break-inside: avoid; margin: 0 0 0.35em; }
.edgeta-home-links a, .edgeta-form-links a { display: inline; background: none; padding: 0; border-radius: 0; text-decoration: underline; }
.entry-content .edgeta-home-links li a, .entry-content .edgeta-form-links li a { color: #0000ff; }
.edgeta-home-links a:hover, .edgeta-form-links a:hover { background: none; color: #e60000; }
.entry-content .edgeta-home-links li a:hover, .entry-content .edgeta-form-links li a:hover { background: none; color: #e60000; }
@media (max-width: 700px) {
  .edgeta-home-links, .edgeta-form-links { columns: 1; }
}

/* v47 - Top links are buttons again; form links get gold separators
   (Josh, 2026-11-27): the two homepage top links (.edgeta-home-links)
   return to the v16-v18 button look - a centred flex row in the Kadence
   button palette - overriding v46 for that list only. The Forms list
   stays plain links (v46), but each item now carries a gold underline
   (the site's #eab308 accent gold) with a soft gold shadow beneath it,
   giving the links distinction from one another. */
.edgeta-home-links { display: flex; flex-wrap: wrap; gap: 8px 40px; justify-content: center; columns: auto; }
.edgeta-home-links li { margin: 0; }
.edgeta-home-links a { display: inline-block; background: var(--global-palette-btn-bg); color: var(--global-palette-btn); padding: 10px 20px; border-radius: 3px; text-decoration: none; }
.edgeta-home-links a:hover { background: var(--global-palette-btn-bg-hover); color: var(--global-palette-btn-hover); }
.entry-content .edgeta-home-links li a { color: var(--global-palette-btn); }
.entry-content .edgeta-home-links li a:hover { color: var(--global-palette-btn-hover); }
.edgeta-form-links li { border-bottom: 1px solid #eab308; box-shadow: 0 2px 3px -2px rgba(234, 179, 8, 0.8); padding-bottom: 0.3em; }

/* v48 - Homepage top buttons vanished on hover (Josh, 2026-11-27):
   v46's plain-link hover rule clears the background through a
   higher-specificity selector than v47's button hover rule, while the
   text still turned white - white text on no background. Restate the
   button hover at the higher specificity so the red hover background
   (the Kadence button palette's hover colour) wins again. */
.edgeta-home-links a:hover { background: var(--global-palette-btn-bg-hover); color: var(--global-palette-btn-hover); }
.entry-content .edgeta-home-links li a:hover { background: var(--global-palette-btn-bg-hover); color: var(--global-palette-btn-hover); }

/* v49 - Club Administration: Update and Remove buttons on one row
   (Josh, 2026-11-27). Each officer's Remove form follows its ACF edit
   form; measured on the live page, the Remove button's top sits 75px
   below the Update button's top and the Update button is 151px wide,
   so the Remove form is pulled up 75px and shifted 163px right (151 +
   a 12px gap). The matching +75px bottom margin keeps the spacing
   after each pair as it was. Both buttons are 43px tall, so their
   tops aligning puts them on the same row. On narrow screens the
   buttons stack again as before. */
body.page-id-33 form:has(> input[name="officer_id"]) { margin: -75px 0 75px 163px; }
body.page-id-33 form:has(> input[name="officer_id"]) p { margin: 0; }
@media (max-width: 480px) {
  body.page-id-33 form:has(> input[name="officer_id"]) { margin: 0; }
}

/* v50 - Hall of Fame nominee lists (Josh, 2026-11-27): each year's
   inductees are a real list now (snippet 10) instead of names run
   together in one paragraph - a responsive multi-column list with
   breathing room between nominees and between the year groups. */
.edgeta-hof-year { margin: 1.4em 0 0.45em; }
.edgeta-hof-list { columns: 3; column-gap: 2.5em; margin: 0 0 1.6em; padding-left: 1.3em; }
.edgeta-hof-list li { break-inside: avoid; margin-bottom: 0.5em; line-height: 1.45; }
@media (max-width: 900px) { .edgeta-hof-list { columns: 2; } }
@media (max-width: 560px) { .edgeta-hof-list { columns: 1; } }

/* v51 - A year with a single inductee (the "1998 or earlier" group)
   gets a plain full-width list, not columns (Josh, 2026-11-27): with
   columns applied, its one link was confined to a third of the width. */
.edgeta-hof-list:has(> li:only-child) { columns: 1; }

/* v52 - Insurance page: 50px between the two certificate/lease buttons
   (Josh, 2026-11-27). The buttons sit in one flex row; the gap also
   applies if they wrap onto two rows on a narrow screen. Scoped to the
   Insurance page's button block that holds the lease link. */
body.page-id-39 .wp-block-buttons:has(> .wp-block-button > a[href$="/addendum-to-lease-agreement/"]) { gap: 50px !important; }

/* v53 - Anchor scroll offset (Josh, 2026-11-27): a static fallback so
   anchor jumps (FAQ table of contents, #forms, #youthdriver) clear the
   sticky title bar even before the script in snippet 3 measures the
   bar and sets the exact scroll padding on the document element. */
html { scroll-padding-top: 84px; }

/* v54 - FAQ question headings: invisible offset for the Kadence table
   of contents (Josh, 2026-11-27). Kadence's TOC click handler scrolls
   with its own maths that only allows for the WordPress admin bar, so
   clicked-to questions landed hidden under the title bar (measured
   -55px), even though plain anchor jumps honour the v53 scroll
   padding (+14px). Each question heading gets padding-top equal to
   the bar height + 14px, cancelled by the same negative margin-top:
   the layout and the text position do not move, but the heading's box
   starts higher, so Kadence's scroll lands the TEXT below the bar.
   --edgeta-bar-h is published on the root element by snippet 3 and
   tracks the bar's live height (it grows when the title wraps). */
body.page-id-59 .entry-content h3 { padding-top: calc(var(--edgeta-bar-h, 56px) + 14px) !important; margin-top: calc(-1 * (var(--edgeta-bar-h, 56px) + 14px)) !important; }

/* v55 - Table of contents links in the site's link colours (Josh,
   2026-11-27): Kadence's TOC block colours its entry links itself
   (not the site's link blue), so restate them in the same colours as
   every other content link on the site - blue, with the AA red on
   hover/focus. Applies to any Kadence TOC block on the site. */
.kb-table-of-content-nav .kb-table-of-contents__entry { color: #0000ff !important; }
.kb-table-of-content-nav .kb-table-of-contents__entry:hover, .kb-table-of-content-nav .kb-table-of-contents__entry:focus { color: #e60000 !important; }

/* v57 - Mobile adaptations for Josh's desktop spacing values
   (standing rule, Josh 2026-11-27: spacing changes he sets should
   also be made to look good on mobile without being asked).
   - Insurance page buttons (v52, 50px apart on desktop): on phone
     widths the two long buttons stack, and 50px between stacked
     buttons is a hole, so the gap drops to 16px.
   - FAQ "Back to top" links (v56, 50px right of the date on
     desktop): on phone widths the gap drops to 20px so the date,
     gap and link comfortably share one line. */
@media (max-width: 600px) {
  body.page-id-39 .wp-block-buttons:has(> .wp-block-button > a[href$="/addendum-to-lease-agreement/"]) { gap: 16px !important; }
}

/* v60 - Mobile fixes from the phone-width audit (Josh's mobile rule,
   2026-11-27; audit at 305px wide):
   - The Branch Officers table (Position | Name | Contact) ran ~44px
     off the right edge of phone screens, cutting off phone numbers
     and addresses. Fixed layout with sensible column shares, tighter
     padding, slightly smaller text, and long strings (emails, phone
     numbers) allowed to wrap instead of forcing the table wide.
   - The yellow-strip page title inherits Kadence's large H1 size;
     on phones the long homepage title wrapped to four lines of
     yellow. 20px on phones keeps it tidy (desktop unchanged).
   - Store page: the name-badge table split its two columns evenly,
     squeezing the item names while the mostly-shared Price column
     sat wide. Item column gets 62% on phones, padding tightened.
   - The admin-only ACF front-end form tables (e.g. the Committees
     repeater, editors only) overflowed phone screens; contained the
     same way - fixed layout, wrapping cells, inputs capped at 100%. */
@media (max-width: 600px) {
  .edgeta-branch-table { table-layout: fixed; font-size: 14px; }
  .edgeta-branch-table th, .edgeta-branch-table td { padding: 6px 5px; overflow-wrap: anywhere; }
  .edgeta-branch-table th:nth-child(1), .edgeta-branch-table td:nth-child(1) { width: 27%; }
  .edgeta-branch-table th:nth-child(2), .edgeta-branch-table td:nth-child(2) { width: 26%; }
  .edgeta-branch-table th:nth-child(3), .edgeta-branch-table td:nth-child(3) { width: 47%; }
  .edgeta-page-title { font-size: 20px; line-height: 1.3; }
  body.page-id-49 .wp-block-table th:first-child, body.page-id-49 .wp-block-table td:first-child { width: 62%; }
  body.page-id-49 .wp-block-table th, body.page-id-49 .wp-block-table td { padding: 6px 8px; }
  .acf-table { table-layout: fixed; width: 100%; }
  .acf-table th, .acf-table td { overflow-wrap: anywhere; }
  .acf-table input, .acf-table select, .acf-table textarea { max-width: 100%; }
}

/* v61 - Refinements after the v60 phone check (2026-11-27):
   - Officers table: v60 squeezed the three columns until words
     broke mid-word ("Strec ker"). On phones each officer row now
     stacks as a card instead: the Position cell becomes a yellow
     banner line (echoing the desktop header row), then Name, then
     Contact, all full width and normally wrapped. The header row is
     visually hidden but kept in the accessibility tree.
   - ACF edit forms: v60 squeezed those tables too, until buttons
     rendered one letter per line. They now keep their natural
     widths and the form scrolls sideways inside its own box when
     needed; the page itself never scrolls sideways. */
@media (max-width: 600px) {
  .edgeta-branch-table { table-layout: auto; font-size: 15px; }
  .edgeta-branch-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .edgeta-branch-table, .edgeta-branch-table tbody, .edgeta-branch-table tr, .edgeta-branch-table td { display: block; }
  .edgeta-branch-table td { width: auto !important; border: none; padding: 4px 10px; overflow-wrap: break-word; }
  .edgeta-branch-table tr { border: 1px solid #999; margin-bottom: 10px; }
  .edgeta-branch-table td:first-child { background: #ffe400; font-weight: 700; padding: 6px 10px; }
  .acf-form { overflow-x: auto; }
  .acf-table { table-layout: auto; width: auto; }
  .acf-table th, .acf-table td { overflow-wrap: normal; }
  .acf-table input, .acf-table select, .acf-table textarea { max-width: none; }
}

/* v62 - Homepage illustrations on phones (Josh, 2026-11-27): the
   tractor (and the engine below it) float beside their paragraphs
   on desktop, but on a phone the float leaves only a sliver of a
   column for the text to wrap in. On phones each illustration sits
   centred on its own line and its paragraph starts below it.
   Homepage only; desktop floats are unchanged. */
@media (max-width: 600px) {
  body.home .entry-content .wp-block-image figure.alignright,
  body.home .entry-content .wp-block-image figure.alignleft {
    float: none;
    display: block;
    margin: 0 auto 1em;
    text-align: center;
  }
  body.home .entry-content .wp-block-image figure.alignright img,
  body.home .entry-content .wp-block-image figure.alignleft img {
    display: block;
    margin: 0 auto;
  }
}

/* v63 - Title bar on phones (Josh, 2026-11-27):
   - The Menu button loses its word on phones: just the hamburger,
     solid black on a transparent background (hover turns the icon
     red; keyboard focus keeps the red outline from v7). The button
     keeps its "Menu" accessible name via aria-label, and the word
     still shows on desktop.
   - The small logo is pinned to the right end of the bar in every
     state (Josh saw it on the left occasionally): the margin that
     pushes it right is reinforced so nothing can override it, and
     the logo never shrinks. */
@media (max-width: 700px) {
  .edgeta-menu-btn { background-color: transparent !important; color: #000 !important; padding: 10px 12px; }
  .edgeta-menu-btn:hover { background-color: transparent !important; color: #a22e2e !important; }
  .edgeta-menu-btn:focus { background-color: transparent !important; }
  .edgeta-menu-btn-text { display: none; }
  .edgeta-menu-icon { font-size: 24px; line-height: 1; }
}
.edgeta-brand { margin-left: auto !important; flex: 0 0 auto; }

/* v64 - Single-row title bar on phones + wider text column
   (Josh, 2026-11-27; the home page is EXCLUDED from the single-row
   rule at his direction - its long welcome title keeps its own row):
   - Everywhere else the bar is one row: hamburger, back arrow (on
     deep pages), title, logo. The explicit order also fixes the
     back-arrow pages, where the arrow used to land at the far right
     and push the logo inboard (why Josh saw the logo off the right).
   - The title's size is fluid: the top bar snippet prints the
     title's character count as --tchars, and the size is the room
     available divided by that count, so short titles stay large and
     long ones shrink just enough to stay on the line. The cap is
     the usual 20px; with a back arrow there is less room, so the
     formula subtracts more.
   - The text column was inset 48px per side at phone width (a 24px
     offset on the main column plus the wrap's 24px padding, leaving
     209px of text in a 305px viewport). The offset is removed and
     the wrap padding drops to 16px, so text gets ~273px instead. */
@media (max-width: 700px) {
  .edgeta-topbar { padding: 8px 10px; gap: 10px; }
  body:not(.home) .edgeta-menu-btn { order: 1; }
  body:not(.home) .edgeta-back { order: 2; }
  body:not(.home) .edgeta-page-title {
    order: 3;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    font-size: clamp(8px, calc((100vw - 128px) / (var(--tchars, 20) * 0.5)), 20px);
  }
  body:not(.home) .edgeta-topbar:has(.edgeta-back) .edgeta-page-title {
    font-size: clamp(8px, calc((100vw - 178px) / (var(--tchars, 20) * 0.5)), 20px);
  }
  body:not(.home) .edgeta-brand { order: 4; }
}
@media (max-width: 600px) {
  .content-container { padding-left: 0 !important; padding-right: 0 !important; }
  .site-main { margin-left: 0 !important; margin-right: 0 !important; }
  .entry-content-wrap { padding-left: 16px; padding-right: 16px; }
}

/* v65 - Title can never push the logo off the row (Josh's single-row
   rule, verified round): with the title's flex basis at its content
   width, a long title (or a back arrow eating room) made the row's
   total exceed the bar and the logo wrapped to a second row. The
   title now starts from a zero basis and grows into the leftover
   space, so the row is structurally always one line; the fluid size
   gets a touch more safety margin (0.52em per character, more room
   subtracted), and an ellipsis guards the extreme case so text can
   never spill over the logo. */
@media (max-width: 700px) {
  body:not(.home) .edgeta-page-title {
    flex: 1 1 0%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(7px, calc((100vw - 140px) / (var(--tchars, 20) * 0.52)), 20px);
  }
  body:not(.home) .edgeta-topbar:has(.edgeta-back) .edgeta-page-title {
    font-size: clamp(7px, calc((100vw - 190px) / (var(--tchars, 20) * 0.52)), 20px);
  }
}

/* v67 - Constitution and Bylaws table of contents (Josh, 2026-11-29):
   the page gets the same Kadence TOC block as the FAQ page, listing
   its H2 articles, and the same title-bar offset as v54 so TOC clicks
   land the article heading's text below the title bar instead of
   hidden under it (Josh: "remember the note about the titlebar
   offset"). The TOC link colours come from v55, which already covers
   any Kadence TOC block. */
body.page-id-35 .entry-content h2 { padding-top: calc(var(--edgeta-bar-h, 56px) + 14px) !important; margin-top: calc(-1 * (var(--edgeta-bar-h, 56px) + 14px)) !important; }

/* v68 - Links page logo grid (Josh, 2026-11-29): each section's entries
   sit in equal cells in a responsive grid (as many columns as fit,
   down to one on a narrow phone). Every logo gets the same 96px-tall
   area and is scaled to fit inside it without cropping, so wide
   banners and small logos line up uniformly; the entry's description
   text sits under its logo in the same cell. Cells are white cards so
   logos read cleanly over the page's watermark background. Entries
   without a logo (a heading or text link) fill a cell the same way. */
.edgeta-logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 16px; margin: 20px 0 30px; }
.edgeta-logo-cell { background: #fff; border: 1px solid rgba(0, 0, 0, 0.18); border-radius: 8px; padding: 18px 16px 14px; display: flex; flex-direction: column; }
.edgeta-logo-cell .wp-block-image { display: flex; align-items: center; justify-content: center; height: 96px; margin: 0 0 12px; }
.edgeta-logo-cell .wp-block-image a { display: flex; align-items: center; justify-content: center; height: 100%; max-width: 100%; }
.edgeta-logo-cell .wp-block-image img { max-height: 96px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.edgeta-logo-cell p { font-size: 14.5px; line-height: 1.45; margin: 0; }
.edgeta-logo-cell h3 { margin-top: 0; }

/* v69 - Links grid fix: WordPress renders each group block with an
   inner container div, so the cells are children of that container,
   not of the .edgeta-logo-grid div itself - the v68 grid had a single
   item (the container) and the cards stacked in one column. The grid
   now targets the inner container. */
.edgeta-logo-grid > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 16px; }

/* v70 - Links grid, second fix (probe-measured): the outer group div
   was still a grid from v68, so it created phantom columns and the
   inner container (the real grid since v69) sat in the first one at
   283px wide. The outer div is a plain block again; the inner
   container stretches full width and its grid lays the cells out. */
.edgeta-logo-grid { display: block; }

/* v71 - Links grid, equal heights in the last row too (probe-measured):
   Kadence gives group blocks a 32px bottom margin but removes it on
   the last child, so in each section's final row the last card
   stretched 32px taller than its row-mate. The cells' bottom margin
   is zeroed (the grid gap already handles the spacing). */
.edgeta-logo-cell { margin-bottom: 0 !important; }

/* v72 - Wide logo cards (Josh, 2026-11-29): a card whose long
   description would stretch its whole row (AG Manuals in Commercial,
   Bomberger's in Tractors) spans two grid columns instead. Inside
   the wide card the logo takes the first column's space and the
   description sits beside it in the second, so the row stays closer
   to the other rows' height. On phones (one-column grid) the card
   spans the single column and stacks logo over text as usual. */
.edgeta-logo-cell.edgeta-logo-wide { grid-column: span 2; }
.edgeta-logo-wide > .wp-block-group__inner-container { display: flex; align-items: flex-start; gap: 18px; }
.edgeta-logo-wide .wp-block-image { flex: 1 1 0; margin-bottom: 0; }
.edgeta-logo-wide p { flex: 1 1 0; }
@media (max-width: 700px) {
	.edgeta-logo-cell.edgeta-logo-wide { grid-column: span 1; }
	.edgeta-logo-wide > .wp-block-group__inner-container { flex-direction: column; }
	.edgeta-logo-wide .wp-block-image { flex: none; width: 100%; margin-bottom: 12px; }
}


/* ============================================================
   v73 - Center the Links card content vertically (Josh,
   2026-11-29). Cards stretch to the tallest card in their row;
   until now each card's logo and text sat at the top and the
   spare height pooled as empty space at the bottom. The cell
   is a flex column whose only child is the inner container, so
   let that container fill the card (flex: 1) and center its
   stack. Wide cards lay out in a row: filling the height plus
   align-items: center centers the logo and text against each
   other and within the card.
   ============================================================ */
.edgeta-logo-cell:not(.edgeta-logo-wide) > .wp-block-group__inner-container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1 1 auto;
}
.edgeta-logo-cell.edgeta-logo-wide > .wp-block-group__inner-container {
	flex: 1 1 auto;
	align-items: center;
}

/* v74 - Links page: (1) wide logo cards now truly center vertically -
   v73's flex growth did not stretch the inner container on wide cells,
   so the cell becomes a plain block and the inner container takes the
   full card height with its row centered. (2) Hazardous Gas Detectors
   entry matched to production: the company name is a large serif
   gold/orange wordmark (it has no logo graphic), the division line is
   the same serif in gold at text size, and the whole entry is
   centered like production. */
.edgeta-logo-cell.edgeta-logo-wide { display: block; }
.edgeta-logo-cell.edgeta-logo-wide >.wp-block-group__inner-container { height: 100%; box-sizing: border-box; align-items: center; }
.edgeta-logo-cell.edgeta-haz-cell p { text-align: center; }
.edgeta-logo-cell .edgeta-haz-name { font-family: Georgia, "Times New Roman", serif; font-size: 28px; line-height: 1.15; margin: 0 0 2px; }
.edgeta-logo-cell .edgeta-haz-name a { color: #f39c12!important; text-decoration: none; }
.edgeta-logo-cell .edgeta-haz-div { font-family: Georgia, "Times New Roman", serif; font-size: 14.5px; margin: 0 0 6px; }
.edgeta-logo-cell .edgeta-haz-div a { color: #f39c12!important; text-decoration: none; }

/* v75 - Links wide cards: Kadence gives the logo figure a 32px bottom
   margin. Flexbox centers the figure's MARGIN box, so the visible
   logo sat 16px above center while the text paragraph (no such
   margin) centered correctly - the wide cards read as top-heavy.
   Zero the figure margin inside wide cells so logo and text center
   on the same axis. (Single cells are unaffected: there the margin
   sits between logo and text in the column flow.) */
.edgeta-logo-cell.edgeta-logo-wide figure.wp-block-image { margin-bottom: 0; }

/* v76: Safety page (69) - same anchor offset as the FAQ page (v54).
   The Safety page now has a Kadence Table of Contents (H3 entries)
   and Back to top links, so its H3 anchors need the same treatment:
   when a TOC link jumps to a heading, the heading text lands about
   19px below the sticky title bar instead of hiding underneath it. */
body.page-id-69 .entry-content h3 { padding-top: calc(var(--edgeta-bar-h, 56px) + 14px) !important; margin-top: calc(-1 * (var(--edgeta-bar-h, 56px) + 14px)) !important; }

/* v77: Constitution page (35) - the Sections are now H3 headings
   (converted from bold label paragraphs so they appear in the
   Table of Contents under their Articles). They need the same
   anchor offset v67 gave the page's H2 article headings, so TOC
   jumps land the heading below the sticky title bar. */
body.page-id-35 .entry-content h3 { padding-top: calc(var(--edgeta-bar-h, 56px) + 14px) !important; margin-top: calc(-1 * (var(--edgeta-bar-h, 56px) + 14px)) !important; }

/* v79: Menu panel shadow removed (Josh, 2026-11-29). The panel's
   box-shadow (3px 0 16px) painted a vertical shadow line across the
   left edge of the yellow title bar where the open panel meets it -
   Josh circled it on the homepage and asked for it gone. The panel
   rule above now uses a plain 1px right border instead of the
   shadow, so its edge stays defined and the title bar is clean. */
.edgeta-panel { box-shadow: none; }

/* v80: The v79 border still left a visible line at the panel /
   title-bar junction (Josh: "the line is still there"). A measured
   probe showed the remaining band is the panel's own scrollbar
   strip (a pale grey band just inside the panel's right edge) plus
   the v79 border line itself. Both are now gone: no border on the
   panel, and the panel's scrollbar is hidden visually (the panel
   still scrolls by wheel, touch and keyboard). The junction is now
   plain yellow against yellow. */
.edgeta-panel { scrollbar-width: none; }
.edgeta-panel::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* v81: Black scroll dot for the menu panel (Josh, 2026-11-29). With
   the panel's scrollbar hidden (v80), a 10px black dot sits just
   inside the panel's right edge and rides up and down with the
   menu's scroll position (positioned by the companion PHP snippet's
   script). It is hidden unless the menu is open and overflowing -
   the script drives its opacity and top; this rule gives it size,
   colour and horizontal placement (panel width minus 15px, so the
   dot sits 5px inside the panel's right edge). */
.edgeta-scroll-dot { position: fixed; left: calc(min(320px, 88vw) - 11px); top: 8px; width: 4px; height: 40px; border-radius: 0; background-color: rgba(0, 0, 0, 0.15); z-index: 2001; pointer-events: none; opacity: 0; transition: opacity 0.2s ease; }

/* v82: The scroll indicator is a traditional line now, not a dot
   (Josh, 2026-11-29): a 4px black thumb with rounded ends, 6px
   inside the panel's right edge. Its height and position are set
   by the companion PHP snippet's script, like a classic scrollbar
   thumb - height is the visible fraction of the menu. */

/* v83: The scroll line now matches the menu's own divider lines
   (Josh, 2026-11-29): the horizontal separators between menu items
   are 1px solid rgba(0, 0, 0, 0.15), so the scroll thumb is the
   same - a 1px line in that colour, square ends, 7px inside the
   panel's right edge. Height/position still come from the script. */

/* v84: Scroll line widened to 4px (Josh, 2026-11-29: 4x the v83
   width), keeping the divider colour rgba(0, 0, 0, 0.15) and the
   same 7px inset from the panel's right edge. Its track now also
   starts BELOW the title bar - that part is positioned by the
   companion PHP snippet's script using the --edgeta-bar-h height
   the title bar publishes. */

/* v85 - The archive listings (National Newsletters and National
   Meeting Minutes, .edgeta-archive-list) and the Hall of Fame year
   lists (.edgeta-hof-list) get the homepage EDGETA Forms list
   styling (Josh, 2026-11-29): plain underlined blue links, red on
   hover, no bullets, and every entry separated by the same gold
   line with its soft shadow as the forms list (1px solid #eab308
   with box-shadow 0 2px 3px -2px rgba(234, 179, 8, 0.8)), with the
   forms list's item spacing. Their multi-column layouts and the
   responsive column steps (v28, v50) are unchanged. */
.edgeta-archive-list ul { list-style: none; padding-left: 0; }
.edgeta-hof-list { list-style: none; padding-left: 0; }
.edgeta-archive-list li, .edgeta-hof-list li { border-bottom: 1px solid #eab308; box-shadow: 0 2px 3px -2px rgba(234, 179, 8, 0.8); padding-bottom: 0.3em; margin-bottom: 0.35em; }
.edgeta-archive-list a, .edgeta-hof-list a { text-decoration: underline; }
.entry-content .edgeta-archive-list li a, .entry-content .edgeta-hof-list li a { color: #0000ff; }
.entry-content .edgeta-archive-list li a:hover, .entry-content .edgeta-hof-list li a:hover { color: #e60000; }

/* v86 (2026-11-29): Footer paragraphs tightened (Josh) - the four
   footer paragraphs (options text, correspondence line, credit line)
   sat a full paragraph margin apart; pull them closer so the footer
   reads as one compact block. Last paragraph keeps no bottom margin. */
.site-footer .footer-html-inner p { margin: 0 0 0.4em; }
.site-footer .footer-html-inner p:last-child { margin-bottom: 0; }

/* v87 (2026-11-29): Unboxed layout styling (Josh switched the Kadence
   layout from boxed to unboxed). In boxed mode the watermark showed in
   the margins around Kadence's .site box; unboxed makes .site span the
   full width with a solid background (var(--global-palette9)), which
   buried the watermark completely. Retire the boxed presentation: the
   .site wrapper goes transparent so the body's fixed tiled watermark
   (backlogo.gif, set at the top of this snippet) shows through the
   whole page like production, and the entry cards lose the box shadow
   that only made sense around a solid card. */
.site { background: transparent !important; }
.entry.single-entry, .entry.loop-entry { box-shadow: none !important; }

/* v88 (2026-11-29): Branch family menus (printed by the branch family
   snippet on branches 22, 95, 106 and 171) and family header blocks.
   Josh: the same highlight treatment as the homepage Forms list
   (v46/v47 - three columns, plain underlined links, a separator line
   with a soft shadow under each item), but BLUE instead of gold: the
   separator and its shadow use the site's link blue, #0000ff. One
   column on narrow screens, like the Forms list. The current page's
   menu item is bolded. */
.edgeta-branch-menu ul { list-style: none; padding-left: 0; margin: 0 0 1.2em; columns: 3; column-gap: 2em; text-align: left; }
.edgeta-branch-menu li { break-inside: avoid; margin: 0 0 0.35em; border-bottom: 1px solid #0000ff; box-shadow: 0 2px 3px -2px rgba(0, 0, 255, 0.8); padding-bottom: 0.3em; }
.edgeta-branch-menu a { text-decoration: underline; }
.entry-content .edgeta-branch-menu li a { color: #0000ff; }
.entry-content .edgeta-branch-menu li a:hover { color: #e60000; }
.edgeta-branch-menu a[aria-current="page"] { font-weight: 700; }
@media (max-width: 700px) {
  .edgeta-branch-menu ul { columns: 1; }
}
.edgeta-branch-header-title { text-align: center; font-weight: 700; font-size: 1.5em; margin: 0 0 0.4em; }
.edgeta-branch-header-media { text-align: center; }
.edgeta-branch-header-media img { display: inline-block; vertical-align: middle; margin: 0 8px; }
/* v89 (2026-11-29): the branch content-image centring rule (v32) sets
   every image on a branch page to display:block, which stacked the
   family header images vertically. Restate the header row's inline
   layout at matching specificity so the ribbon, logo and John Deere
   images sit side by side again, centred as a group. */
.entry-content .edgeta-branch-header-media img { display: inline-block; }

/* v90 (2026-11-29): Menu panel logo spacing (Josh) - the logo in the
   slide-in menu sat 56px below the top of the page (the 50px
   close-button row plus 6px of brand padding). Josh wants 15px in
   total. The close row is lifted out of the flow and pinned to the
   panel's top-right corner instead (the button keeps its full 44px
   size), and the brand block's top padding becomes the whole gap:
   15px, at every screen width. */
.edgeta-panel-head { position: absolute; top: 0; right: 0; height: auto; }
.edgeta-panel-brand { padding-top: 15px; }

/* v91 (2026-11-29): Hall of Fame single pages (Josh) - centre the
   branch line and the induction year that the Hall of Fame single
   display snippet prints under the banner. */
.edgeta-hof-subtitle, .edgeta-hof-inducted { text-align: center; }

/* v92 (2026-11-30): Event cards (Josh) - the tag line on a card (e.g.
   "National Show") in the same accent red as the card hover color.
   WP Grid Builder compiles the card's terms block with color scheme 3
   (gray); this overrides it with the site's hover red, #e60000.
   (WPGB's own accent-scheme-1 variable is its default blue, #0069ff -
   the red hover on card titles actually comes from this snippet's
   link-hover rule, not from WPGB.) */
.wp-grid-builder.wpgb-grid-2 .wpgb-card-2 .wpgb-block-5 { color: #e60000; }

/* v93 (2026-11-30): WP Grid Builder cards, both grids (Josh) - card
   links in the site's link colors: blue #0000ff at rest (the same blue
   as .entry-content links in this snippet), red #e60000 on hover and
   focus. WPGB compiles its card text blocks with its own color
   schemes (near-black/gray), which left card title links black
   instead of the site blue. */
.wp-grid-builder.wpgb-grid-1 .wpgb-card a, .wp-grid-builder.wpgb-grid-2 .wpgb-card a { color: #0000ff; }
.wp-grid-builder.wpgb-grid-1 .wpgb-card a:hover, .wp-grid-builder.wpgb-grid-1 .wpgb-card a:focus, .wp-grid-builder.wpgb-grid-2 .wpgb-card a:hover, .wp-grid-builder.wpgb-grid-2 .wpgb-card a:focus { color: #e60000; }

/* v94 (2026-11-30): Print styles (Josh) - when a page is printed, the
   menu does not appear, and paragraphs are not split across pages.
   Hides the slide-in menu panel, its overlay, the menu button and the
   scroll dot; the top bar's brand and page title still print, like a
   letterhead. Headings stay with the paragraph that follows them.
   REMOVED later the same day (Josh): the p { break-inside: avoid }
   and heading break-after rules made Chrome's print preview lock up
   on the long pages (his Ctrl+P froze on Safety) - honouring
   keep-together across a huge document sends the previewer into a
   churn. The menu-hiding above stays; paragraphs split normally. */
@media print {
  .edgeta-panel, .edgeta-overlay, .edgeta-menu-btn, .edgeta-scroll-dot { display: none !important; }
}

/* v95 (2026-11-30): Print, full width (Josh) - v94 hid the menu, but
   its space still printed: with the menu open, the body carries
   padding-left: 320px to make room for the panel, and the Kadence
   content container is max-width centred. In print, drop the body
   offset and let the content containers run the full width of the
   page, so a printout takes less paper. */
@media print {
  body { padding-left: 0 !important; }
  .content-container, .content-wrap, .site-main, .entry, .entry-content-wrap, .entry-content { max-width: none !important; width: auto !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
}

/* v96 (2026-11-30): Branch pages (Josh) - 20px of space between the
   state flag and the branch logo. The v32 rule stacks the content
   images as centred blocks but leaves them touching, so adjacent
   content images now get a 20px top margin from the second one on.
   The family header row (v89) is excluded - its images sit side by
   side. The pair is stacked at every width, so the same 20px holds
   on mobile. */
.single-branch .entry-content img + img { margin-top: 20px; }
.single-branch .entry-content .edgeta-branch-header-media img + img { margin-top: 0; }

/* v97 (2026-11-30): Branch page header styling (Josh) - the branch
   name reads as a proper title and the location sits under it; the
   region prints as a badge in the region's colour from the Branch
   Locations map (Southwest red #ff0000, Northwest green #00a933,
   Central blue #0000ff, Eastern gold #c4a747) with white text. The
   branch newsletter link is a centred button in the site colours,
   blue at rest and red on hover/focus like the site's links. */
.single-branch .edgeta-branch-name { text-align: center; font-size: 1.55em; line-height: 1.25; margin: 0.9em 0 0.2em; }
.single-branch .edgeta-branch-info { text-align: center; margin: 0 0 1.2em; }
.single-branch .edgeta-branch-location { font-size: 1.12em; font-weight: 600; }
.single-branch .edgeta-branch-location + .edgeta-region { margin-left: 10px; }
.edgeta-region { display: inline-block; padding: 3px 12px 4px; border-radius: 999px; color: #fff; font-size: 0.95em; font-weight: 700; line-height: 1.35; vertical-align: middle; white-space: nowrap; }
.edgeta-region--southwest-region { background-color: #ff0000; }
.edgeta-region--northwest-region { background-color: #00a933; }
.edgeta-region--central-region { background-color: #0000ff; }
.edgeta-region--eastern-region { background-color: #c4a747; }
.single-branch .edgeta-branch-newsletter { text-align: center; margin: 1.3em 0; }
.edgeta-newsletter-btn { display: inline-block; padding: 12px 26px; border-radius: 6px; background-color: #0000ff; color: #fff !important; font-weight: 700; text-decoration: none; }
.edgeta-newsletter-btn:hover, .edgeta-newsletter-btn:focus { background-color: #e60000; }
@media (max-width: 700px) {
  .single-branch .edgeta-branch-name { font-size: 1.35em; }
}

/* v98 (2026-11-30): Site-wide spacing rhythm (Josh) - too many pages
   read as thrown together where the migrated content and the theme
   defaults leave uneven gaps. This is a base layer only: :where()
   gives it zero specificity, so it fills in where nothing else
   speaks and never overrides a page-specific rule set earlier in
   this snippet. Headings get clear air above and a tight tie to
   what follows; paragraphs, lists and tables share one beat. */
:where(.entry-content) h2 { margin-top: 1.5em; margin-bottom: 0.55em; }
:where(.entry-content) h3 { margin-top: 1.35em; margin-bottom: 0.5em; }
:where(.entry-content) h4 { margin-top: 1.2em; margin-bottom: 0.45em; }
:where(.entry-content) p { margin-bottom: 1em; }
:where(.entry-content) ul, :where(.entry-content) ol { margin-bottom: 1em; }
:where(.entry-content) li { margin-bottom: 0.3em; }
:where(.entry-content) table { margin-top: 0.6em; margin-bottom: 1.2em; }
:where(.entry-content) > :first-child { margin-top: 0; }
.single-branch .edgeta-branch-updated { margin-top: 0.9em; }
.single-branch .edgeta-branch-after { margin-top: 1.2em; }

/* v99 (2026-11-30): Footer shadow (Josh) - the footer carries the
   same shadow as the title bar (v22: 3px offset, 16px blur,
   rgba(0, 0, 0, 0.25)), mirrored to cast upward from its top edge. */
.site-footer { box-shadow: 0 -3px 16px rgba(0, 0, 0, 0.25); }

/* v100 (2026-11-30): the region badge on branch pages is now a link
   to the Branch Locations grid filtered to that region. Keep its
   white text against the entry-content link styles, drop the
   underline, and darken on hover/focus to the Branch Locations map's
   own hover colours. */
.single-branch .edgeta-branch-info a.edgeta-region { color: #fff; text-decoration: none; }
a.edgeta-region--southwest-region:hover, a.edgeta-region--southwest-region:focus { background-color: #b20000; }
a.edgeta-region--northwest-region:hover, a.edgeta-region--northwest-region:focus { background-color: #0c8928; }
a.edgeta-region--central-region:hover, a.edgeta-region--central-region:focus { background-color: #000099; }
a.edgeta-region--eastern-region:hover, a.edgeta-region--eastern-region:focus { background-color: #9f8841; }

/* v101 (2026-11-30): the region tag on the branch listing cards
   (grid 1, Branch Locations and Branch List) gets the same pill
   treatment as the branch-page badge (v97) - rounded pill, white
   bold text, background in the region's Branch Locations map colour
   (Josh). The card's term span carries the region's term id in its
   data-id attribute, which keys the colour: 34 Central, 35 Eastern,
   36 Northwest, 37 Southwest. */
.wp-grid-builder .wpgb-card-1 .wpgb-block-term {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
}
.wp-grid-builder .wpgb-card-1 .wpgb-block-term[data-id="37"] { background-color: #ff0000; }
.wp-grid-builder .wpgb-card-1 .wpgb-block-term[data-id="36"] { background-color: #00a933; }
.wp-grid-builder .wpgb-card-1 .wpgb-block-term[data-id="34"] { background-color: #0000ff; }
.wp-grid-builder .wpgb-card-1 .wpgb-block-term[data-id="35"] { background-color: #c4a747; }

/* v102 (2026-11-30): listing-pill hover, same as the branch pages
   (Josh) - WP Grid Builder's compiled card stylesheet turns the
   region term's text its own accent blue (#0069FF) on hover, which
   looks bad on the coloured pill. Keep the v101 sizing; on hover the
   text stays white and the background darkens to the map's hover
   colour for the region, exactly like the branch-page badge links
   (v100). The data-id attribute selector gives these rules the
   specificity to beat the compiled card rule. */
.wp-grid-builder .wpgb-card-1 .wpgb-block-5 .wpgb-block-term[data-id="37"]:hover { background-color: #b20000; color: #fff; }
.wp-grid-builder .wpgb-card-1 .wpgb-block-5 .wpgb-block-term[data-id="36"]:hover { background-color: #0c8928; color: #fff; }
.wp-grid-builder .wpgb-card-1 .wpgb-block-5 .wpgb-block-term[data-id="34"]:hover { background-color: #000099; color: #fff; }
.wp-grid-builder .wpgb-card-1 .wpgb-block-5 .wpgb-block-term[data-id="35"]:hover { background-color: #9f8841; color: #fff; }

/* v103 (2026-11-30): branch grid cards transparent (Josh) - WP Grid
   Builder's own stylesheet paints each card's body, header and
   footer white; make them transparent so the page background shows
   through the grid, like it does on the rest of the page. Scoped to
   grid 1 (the branch listings); the events grid keeps its cards. */
.wp-grid-builder.wpgb-grid-1 .wpgb-card .wpgb-card-body,
.wp-grid-builder.wpgb-grid-1 .wpgb-card .wpgb-card-header,
.wp-grid-builder.wpgb-grid-1 .wpgb-card .wpgb-card-footer { background: transparent; }

/* v104 (2026-11-30): transparency extended (Josh) - the page
   background shows through the whole grid stack, wrappers and cards
   alike, on BOTH grids (branch listings and events). Extends v103,
   which covered only the branch cards' body/header/footer. */
.wp-grid-builder.wpgb-grid-1, .wp-grid-builder.wpgb-grid-2,
.wp-grid-builder .wpgb-wrapper, .wp-grid-builder .wpgb-main,
.wp-grid-builder .wpgb-layout, .wp-grid-builder .wpgb-viewport,
.wp-grid-builder .wpgb-masonry, .wp-grid-builder .wpgb-card,
.wp-grid-builder .wpgb-card-wrapper, .wp-grid-builder .wpgb-card-inner,
.wp-grid-builder .wpgb-card-content, .wp-grid-builder .wpgb-card-body,
.wp-grid-builder .wpgb-card-header, .wp-grid-builder .wpgb-card-footer { background: transparent; }

/* v105 (2026-11-30): the listing pills are links now (companion JS
   snippet swaps the card term spans for links to the filtered Branch
   Locations grid) - no underline, like the branch-page badge links. */
.wp-grid-builder .wpgb-card-1 a.wpgb-block-term { text-decoration: none; }

/* v106 (2026-11-30): two fixes. (1) Events cards transparent: v104's
   generic card rules only tied WP Grid Builder's own white card
   backgrounds and lost on load order; these grid-2-scoped rules (the
   same strength as the working grid-1 rules in v103) win, so the
   page background shows through the event cards too. (2) Officers
   Updated on one line (Josh): on the branch cards the label (block
   10) and the date (block 6) are separate blocks on separate lines;
   run them inline with the colon after the label, so each card reads
   "Officers Updated: <date>". They are inline, so on narrow screens
   the line simply wraps instead of overflowing. */
.wp-grid-builder.wpgb-grid-2 .wpgb-card .wpgb-card-body,
.wp-grid-builder.wpgb-grid-2 .wpgb-card .wpgb-card-header,
.wp-grid-builder.wpgb-grid-2 .wpgb-card .wpgb-card-footer { background: transparent; }
.wp-grid-builder .wpgb-card-1 .wpgb-block-10 { display: inline; margin: 0; }
.wp-grid-builder .wpgb-card-1 .wpgb-block-10::after { content: ": "; }
.wp-grid-builder .wpgb-card-1 .wpgb-block-6 { display: inline; margin: 0; }

/* v107 (2026-11-30): the Officers Updated merge moved to the
   companion JS snippet (it folds the date into the label element and
   removes the date block - the v106 inline rules alone did not put
   them on one line in WPGB's card layout). Retire the v106 ::after
   colon so it is not doubled after the merged text. */
.wp-grid-builder .wpgb-card-1 .wpgb-block-10::after { content: none; }

/* v108 (2026-11-30): linked listing pills stay white (Josh) - since
   the companion JS snippet turned the card region terms into links,
   the v93 card-link rule (blue at rest, red on hover) outranked the
   v101 pill rule on the anchor. These selectors restore white text
   at rest, on hover and on focus; the per-region hover backgrounds
   (v102) still apply underneath. */
.wp-grid-builder.wpgb-grid-1 .wpgb-card-1 a.wpgb-block-term,
.wp-grid-builder.wpgb-grid-1 .wpgb-card-1 a.wpgb-block-term:hover,
.wp-grid-builder.wpgb-grid-1 .wpgb-card-1 a.wpgb-block-term:focus { color: #fff; }

/* v109 (2026-11-30): Branch Locations (Josh) - 20px of space above
   the officers-update note that follows the branch grid (the last
   paragraph of the page's content); slightly less on phones, per
   Josh's standing mobile spacing adaptation. */
.page-id-899 .entry-content .wp-block-paragraph:last-child { margin-top: 20px; }
@media (max-width: 700px) {
  .page-id-899 .entry-content .wp-block-paragraph:last-child { margin-top: 14px; }
}

/* v110 (2026-11-30): homepage top buttons centred (Josh) - the
   button row is a centred flex list, but the theme's list padding
   (about 33px on the left, none on the right) survived the v16
   padding reset through a stronger selector, so the row centred
   inside the padded box and sat about 17px right of the content
   column's centre. Zero the list's inline padding at a specificity
   that wins. */
.entry-content .edgeta-home-links { padding-left: 0; padding-right: 0; }

/* v111 (2026-11-30): event dates and times stand out (Josh) - the
   start/end date-time blocks on event listing cards (grid 2) and
   the date line on single event pages render bold, slightly
   larger, in the site accent red (#e60000, 4.77:1 on white).
   Flyers on single event pages are centred in the content column. */
.wp-grid-builder.wpgb-grid-2 .wpgb-block-3,
.wp-grid-builder.wpgb-grid-2 .wpgb-block-4,
.edgeta-event-dates {
  font-weight: 700;
  font-size: 1.12em;
  color: #e60000;
}
.edgeta-event-flyer { text-align: center; }
.edgeta-event-flyer img { display: block; margin-left: auto; margin-right: auto; max-width: 100%; height: auto; }

/* v112 (2026-11-30): the Host Branch line joins the date line's
   standout treatment on single event pages (Josh) - same bold,
   size and accent red, so dates and host read as one header
   block. The branch link keeps its underline so it still reads
   as a link. */
.edgeta-event-host { font-weight: 700; font-size: 1.12em; color: #e60000; }
.edgeta-event-host a { color: #e60000; }

/* v113 (2026-11-30): v111/v112 colour fix - on the listing cards
   WP Grid Builder's compiled card CSS sets the date blocks' text
   colour through a stronger selector than v111 used (the bold and
   size applied; the red did not), and the Host Branch link kept
   the content-link blue against v112 the same way. Restate the
   red at higher specificity for both. */
.wp-grid-builder.wpgb-grid-2 .wpgb-card-content.wpgb-scheme-dark .wpgb-block-3,
.wp-grid-builder.wpgb-grid-2 .wpgb-card-content.wpgb-scheme-dark .wpgb-block-4 {
  font-weight: 700;
  font-size: 1.12em;
  color: #e60000;
}
.entry-content .edgeta-event-host a { color: #e60000; }

/* v114 (2026-11-30): the date line and the Host Branch line at
   the top of single event pages are centred (Josh). */
.edgeta-event-dates, .edgeta-event-host { text-align: center; }

/* v90 - "Back to top" links removed site-wide (Josh, 2026-11-30): the
   per-section links on the Constitution, FAQ and Safety pages are gone,
   along with their v56-v59 and v78 styling above, and Kadence's built-in
   Scroll To Top button is enabled instead (theme setting scroll_up). */

/* v91 - Floating table of contents (Josh, 2026-11-30): on pages with a
   Kadence table of contents (Constitution, FAQ, Safety), the menu does
   not auto-open on wide screens. A floating Contents panel takes the
   left column instead (the same 320px offset the open menu uses), and
   the in-page TOC is hidden on wide screens. Opening the menu slides
   it over the Contents panel (the panel's z-index is higher); closing
   it returns to the Contents panel. On narrow screens nothing changes:
   no floating panel, and the in-page TOC shows as before. In print the
   floating panel never appears, the body offset drops, and the in-page
   TOC prints above the content, as it did before. */
.edgeta-toc-float { display: none; }
@media (min-width: 701px) {
  body.edgeta-has-toc { padding-left: 320px; }
  body.edgeta-has-toc .wp-block-kadence-tableofcontents { display: none; }
  .edgeta-toc-float {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    height: 100dvh;
    width: 320px;
    max-width: 88vw;
    z-index: 1400;
    overflow-y: auto;
    background: #ffffff;
    border-right: 1px solid #d9d9d9;
    padding: 16px 18px 20px;
  }
  .edgeta-toc-float[hidden] { display: none !important; }
  body.admin-bar .edgeta-toc-float { top: 32px; height: calc(100dvh - 32px); }
  .edgeta-toc-float-title { font-size: 17px; font-weight: 700; margin: 0 0 8px; color: #000; }
  .edgeta-toc-float-list ul { list-style: none; margin: 0; padding: 0; }
  .edgeta-toc-float-list ul ul { padding-left: 16px; }
  .edgeta-toc-float-list li { margin: 0 0 6px; line-height: 1.35; }
  .edgeta-toc-float-list a { color: #0000ff; text-decoration: underline; }
  .edgeta-toc-float-list a:hover, .edgeta-toc-float-list a:focus { color: #e60000; }
}
@media (max-width: 782px) {
  body.admin-bar .edgeta-toc-float { top: 46px; height: calc(100dvh - 46px); }
}
@media print {
  .edgeta-toc-float { display: none !important; }
  body.edgeta-has-toc { padding-left: 0 !important; }
  body.edgeta-has-toc .wp-block-kadence-tableofcontents { display: block !important; }
}

/* v92 - Contents panel wears the menu's styling (Josh, 2026-11-30):
   "make it look like the menu except instead of the menu links it's
   got the table of contents links." Same yellow (#ffe400), same head
   strip, same row separators, same black 18px links with the dark-red
   hover - only the links point at the page's own sections. Sub-level
   entries indent and step down a size. This block overrides the white
   v91 look for the panel. */
@media (min-width: 701px) {
  .edgeta-toc-float { background: #ffe400; border-right: 0; padding: 0; }
  .edgeta-toc-float-title {
    background: rgba(0, 0, 0, 0.08);
    font-size: 16px;
    margin: 0;
    padding: 15px 17px;
    color: #000;
  }
  .edgeta-toc-float-list li { margin: 0; border-bottom: 1px solid rgba(0, 0, 0, 0.15); line-height: 1.25; }
  .edgeta-toc-float-list ul ul { padding-left: 0; }
  .edgeta-toc-float-list a {
    display: block;
    padding: 12px 17px;
    font-size: 18px;
    color: #000;
    text-decoration: none;
  }
  .edgeta-toc-float-list ul ul a { padding-left: 34px; font-size: 16px; }
  .edgeta-toc-float-list a:hover, .edgeta-toc-float-list a:focus {
    background-color: rgba(0, 0, 0, 0.05);
    color: #a22e2e;
  }
}

/* v93 - Contents scrollbar + mobile contents (Josh, 2026-11-30): the
   floating Contents panel hides its native scrollbar exactly like the
   menu panel does (v80) - it still scrolls by wheel, touch and
   keyboard. On narrow screens there is no floating panel, so the
   in-page Kadence table of contents takes the menu styling instead:
   a yellow block with the dark head strip and black row links with
   separators, sitting in the content where it always did. */
.edgeta-toc-float { scrollbar-width: none; }
.edgeta-toc-float::-webkit-scrollbar { display: none; width: 0; height: 0; }
@media (max-width: 700px) {
  body.edgeta-has-toc .wp-block-kadence-tableofcontents {
    background: #ffe400;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0 0 20px;
  }
  body.edgeta-has-toc .kb-table-of-content-wrap { padding: 0; border: 0; }
  body.edgeta-has-toc .kb-table-of-contents-title-wrap {
    background: rgba(0, 0, 0, 0.08);
    padding: 15px 17px;
  }
  body.edgeta-has-toc .kb-table-of-contents-title { font-weight: 700; color: #000; }
  body.edgeta-has-toc .kb-table-of-content-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  body.edgeta-has-toc .kb-table-of-content-list li {
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    line-height: 1.25;
  }
  body.edgeta-has-toc .kb-table-of-content-list a {
    display: block;
    padding: 12px 17px;
    font-size: 18px;
    color: #000;
    text-decoration: none;
  }
  body.edgeta-has-toc .kb-table-of-content-list ul a { padding-left: 34px; font-size: 16px; }
}

/* v94 - Contents scroll line + mobile link fix (Josh, 2026-11-30): the
   Contents panel's scroll line (companion PHP snippet) reuses the menu
   line's styling but layers under the menu panel, so the menu's own
   line is the one seen while the menu is open. And on narrow screens
   the in-page TOC's links finally take the menu colours: Kadence's
   entry-link rules outrank the v93 selectors, so these use
   !important - black links, no underline, no bullet markers, with the
   menu's dark red on hover/focus. */
#edgetaTocScrollDot { z-index: 1401; }
@media (max-width: 700px) {
  body.edgeta-has-toc .kb-table-of-content-list,
  body.edgeta-has-toc .kb-table-of-content-list li { list-style: none !important; }
  body.edgeta-has-toc .kb-table-of-content-list a {
    color: #000 !important;
    text-decoration: none !important;
  }
  body.edgeta-has-toc .kb-table-of-content-list a:hover,
  body.edgeta-has-toc .kb-table-of-content-list a:focus { color: #a22e2e !important; }
}

/* v95 - Contents scrollspy highlight (Josh, 2026-11-30): the Contents
   entry for the section on screen takes the menu's current-item
   treatment (dark red), plus bold and the hover tint so it reads as a
   highlight. The companion PHP snippet moves the class as the reader
   scrolls and keeps the entry visible inside the panel. */
.edgeta-toc-float-list li.edgeta-toc-current > a {
  color: #a22e2e;
  font-weight: 700;
  background-color: rgba(0, 0, 0, 0.05);
}

/* v115 - Event card dates stay on one line (Josh, 2026-11-30): on the
   event listing cards (grid 2) the start and end date blocks sit side
   by side only because WP Grid Builder's compiled card CSS makes
   their wrapper a flex row. Since WP Compress took over CSS delivery
   (its zapwp CDN plus deferred loading), that stylesheet can be
   blocked or arrive late and the two dates stack on separate lines.
   Restate the same flex rule here, in the site's own inline CSS at
   higher specificity, so the one-line layout no longer depends on
   that file loading. Values match the card CSS exactly. */
.wp-grid-builder.wpgb-grid-2 .wpgb-card-2 .wpgb-block-2 {
  display: flex;
  gap: 8px 8px;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
}

