@media (max-width: 767px) {

.WALayoutSingleLine .WaLayoutTable {
  display: table;
}

.WALayoutSingleLine .WaLayoutTable .WaLayoutItem
{
  display: table-cell;
  width: auto !important;
}

.WALayoutSingleLine .WaLayoutTable .WaLayoutItem ~ .WaLayoutItem {
  margin-top: 0;
}

}

/* COMBINE fonts for members.combinebh.org (Wild Apricot).
   Paste at the very BOTTOM of Website > CSS, AFTER the last closing brace } of the existing code. If it lands
   inside the @media (max-width: 767px) { ... } block, the fonts only apply on phones.
   Steps: docs/wild-apricot-fonts.md. Fonts are SIL OFL, same files as the public site (static/fonts).

   Before pasting, the three .woff2 files must be in the Wild Apricot Resources folder at these
   paths (Website > Files):
     /resources/Fonts/newsreader-latin-wght-normal.woff2
     /resources/Fonts/newsreader-latin-wght-italic.woff2
     /resources/Fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2
*/

/* 1. Load the fonts (variable fonts: one file covers weights 200 to 800) */
@font-face {
  font-family: 'Newsreader';
  src: url('/resources/Fonts/newsreader-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/resources/Fonts/newsreader-latin-wght-italic.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  src: url('/resources/Fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* 2. All text: Atkinson Hyperlegible Next (the public site's UI font).
      Why not just "body { font-family }": Wild Apricot's theme sets its own font directly on links, list items,
      spans, form labels, calendar cells and more, and those ignore a rule on body. This rule matches every element
      and is written with several :not(...) parts on purpose: they raise its specificity above the theme's own rules
      without needing !important, so fonts an editor sets inside page content still work.
      The :not(...) list skips the icon elements (Font Awesome <i> tags, .icon, the lightbox buttons) so icons
      keep their icon font. Icons drawn with ::before (login and menu icons) are not matched by this rule anyway. */
body *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.icon):not(.lb-download):not(.lb-close):not(.lb-prev):not(.lb-next) {
  font-family: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 3. Headings (h1 to h6, including gadget titles, form titles and the page title): Newsreader.
      Same :not(...) list, so it outranks rule 2. */
body h1:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.icon):not(.lb-download):not(.lb-close):not(.lb-prev):not(.lb-next),
body h2:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.icon):not(.lb-download):not(.lb-close):not(.lb-prev):not(.lb-next),
body h3:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.icon):not(.lb-download):not(.lb-close):not(.lb-prev):not(.lb-next),
body h4:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.icon):not(.lb-download):not(.lb-close):not(.lb-prev):not(.lb-next),
body h5:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.icon):not(.lb-download):not(.lb-close):not(.lb-prev):not(.lb-next),
body h6:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.icon):not(.lb-download):not(.lb-close):not(.lb-prev):not(.lb-next) {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
}

/* 3b. Text inside a heading (bold, italic, links, spans) keeps the heading font. Without this, rule 2 would turn
       the <strong>, <em> and <span> inside a heading back into Atkinson. */
body h1 *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.icon):not(.lb-download):not(.lb-close):not(.lb-prev):not(.lb-next),
body h2 *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.icon):not(.lb-download):not(.lb-close):not(.lb-prev):not(.lb-next),
body h3 *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.icon):not(.lb-download):not(.lb-close):not(.lb-prev):not(.lb-next),
body h4 *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.icon):not(.lb-download):not(.lb-close):not(.lb-prev):not(.lb-next),
body h5 *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.icon):not(.lb-download):not(.lb-close):not(.lb-prev):not(.lb-next),
body h6 *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.icon):not(.lb-download):not(.lb-close):not(.lb-prev):not(.lb-next) {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
}

/* 4. The few elements whose theme rule still wins (the Events calendar buttons and the old <font> tag).
      These use !important. */
body a.listModeLink,
body a.weekButtonLink,
body a.monthButtonLink,
body a.DecDateButton,
body a.todayButton,
body a.incDateButton,
body font {
  font-family: 'Atkinson Hyperlegible Next', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* 4b. The old <font> tag inside a heading is Newsreader too (this beats rule 4, which sets all <font> tags to Atkinson). */
body h1 font,
body h2 font,
body h3 font,
body h4 font,
body h5 font,
body h6 font {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif !important;
}

/* 4c. THE SITE HEADER. The text you type in the header (the COMBINE name line, the audience line, the tagline) sits in an <h1>,
       and the Wild Apricot editor does not offer Newsreader, and writes its own inline font-family on some of these elements.
       An inline style beats normal CSS, so this rule uses !important. It sets the font, bold weight and the 0.03em letter
       spacing the public site uses for its COMBINE name. It does not change size or color: set those in the editor
       (the public site shows the name at about 26 px; the editor currently has 30 px). */
body .WaPlaceHolderHeader h1,
body .WaPlaceHolderHeader h1 * {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif !important;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* 5. If some text still shows an old font, find its selector with the browser's Inspect tool and add it to rule 4
      with !important. Check icons afterwards: if an icon turns into a letter or box, add its class to the :not(...) list. */
