/* =============================================================
   THE JOE FAMILY FOUNDATION: SITE STYLES

   How this file is organized (search for the section names):
     1. Fonts and site-wide basics
     2. Top bar: logo, hamburger button, Donate button
     3. Buttons used across the site
     4. Hero (the big photo banner at the top of the home page)
     5. Program cards (the four photo cards under the banner)
     6. "Together We Can" strip
     7. Footer
     8. Screen-size adjustments (tablets and phones)
     9. Main menu and dropdowns
    10. Accessibility helpers
    11. Content pages (the inside pages' heading and two columns)
    12. Listings: News and Workshops (list pages and single items)
    13. Content manager extras (photo sizes, formatted text, preview bar)
    14. Balanced photo-and-text layout (inside pages, stories, workshops)
    15. Flyers: card thumbnails and the large flyer viewer
    16. Meet Our Team (cards for the board, staff and advisors)
    17. More breathing room on large screens, and the "large photo" page layout
    18. The gold theme: heading dividers and photo frames across the site
    19. Photo slideshow (pages with a second or third photo)
    20. Home page photo grid
    21. Contact page form
    22. Gold frames around the menu bar, the content and the footer

   About colors: the codes like #233873 are colors.
     #233873 = the site's navy blue
     #c2410c = the deep orange used for Donate buttons
     #fff    = white
   A code with two extra characters at the end (like #10193455)
   is the same kind of color but partly see-through.

   About "contrast": numbers like 5.2:1 tell how well text stands
   out from what's behind it. 4.5:1 or more is the accessibility
   minimum for normal text; higher is easier to read.
   ============================================================= */

/* =============================================================
   CHANGES IN THIS VERSION (November 11, 2026)
   New hover and focus look for the menus and footer links.
   Each changed spot below is marked "CHANGED:" so you can search for it.

   1. Top menu buttons (.nav-toggle): white box, navy text, 2px white
      ring set 2px out. Was: darker navy box with an orange border.
   2. Dropdown links (.submenu a): navy box, white text, 2px navy ring
      set 2px out (the reverse, because the panels are white). Links now
      sit 6px in from the panel's sides so the ring stays inside.
      Was: light grey on hover, orange outline on focus.
   3. Footer links (.footer-column a): same look as the top menu. The
      box hugs the text. Was: yellow text with an underline.

   Not changed: both Donate buttons, the footer "Get Support" button,
   the hamburger button and the menu text size (10px at the time; see version 4).

   VERSION 3 (November 11, 2026): the keyboard focus ring is now white
   (2px thick, set 2px out), like the menu, on:
     - the logo (section 2)
     - all pill buttons: top bar Donate, both "Get Support" buttons and
       "Learn More About Our Work" (section 3)
     - the cards' "Learn More" links (section 5)
   The buttons also stay pill-shaped on focus (their corners used to go
   square). Their hover and focus colors are unchanged.
   On the "under construction" pages the buttons keep their orange ring,
   because a white ring wouldn't show on the white card.
   Search "CHANGED (version 3)" to find each spot.

   VERSION 4 (November 11, 2026): text size is 12px (was 10px) for
     - the top menu buttons on desktop (section 9, .nav-toggle)
     - the footer links (section 7, .footer-column a)
   The dropdown links (15px) and the hamburger panel (16px) are unchanged.
   With 12px menu text, the full menu shows on windows about 1055px wide
   and up; narrower than that, the hamburger takes over.
   Search "CHANGED (version 4)" to find each spot.

   VERSION 5 (November 11, 2026): the "Powered by IncludeMe A11y" badge
   in the footer is now a link (to https://includemea11y.com/). It looks
   the same, and gets a white ring on hover and keyboard focus (section 7).
   The link itself was added in index.html.
   Search "CHANGED (version 5)".

   VERSION 6 (November 11, 2026): the badge link sits further down, with
   72px of space above it (was 38px). It stays centered (section 7).
   Search "CHANGED (version 6)".

   VERSION 7 (November 11, 2026): every pill button shares one look.
   Solid orange with white text; on hover or keyboard focus it turns
   white with navy text and gets the 2px white ring set 2px out.
   Applies to: top bar Donate, both "Get Support" buttons,
   "Learn More About Our Work" (no longer see-through) and the cards'
   "Learn More" links (now orange pills). Sections 3, 4 and 5.
   On the white "under construction" card, the buttons turn navy instead
   (section 11), since white would be invisible there.
   Search "CHANGED (version 7)".

   VERSION 8 (November 11, 2026): new section 12 (now 11), "Content pages", for
   the inside pages: a heading 10px below the menu and 10px from the
   left, then an image on the left and text on the right (stacked on phones).
   Search "CHANGED (version 8)".

   VERSION 9 (November 11, 2026): removed the old section 11,
   "Under construction" pages (.construction, .construction-card,
   .outline-dark, the theme-about ... theme-involved colors, and the
   navy button hover used on that white card). No page uses them now.
   "Content pages" moved up to become section 11. The notes about
   "under construction" pages in versions 3 and 7 no longer apply.

   VERSION 10 (November 11, 2026): the inside pages' heading and content
   sit further from the menu (36px, was 10px) and from the left and right
   edges (26px, was 10px). Section 11. Search "CHANGED (version 10)".

   VERSION 11 (November 11, 2026): new section 12, "News", for the
   News & Community page: category filter, news cards with an orange
   date badge, and the single-story page. Also a navy focus ring for
   links in the content area (end of section 11), since the yellow
   one is too faint on the off-white page. Search "CHANGED (version 11)".

   VERSION 12 (November 11, 2026): news cards' titles are always
   underlined so they look like links, and turn orange on hover. The
   card pictures now link to their stories too (and zoom slightly on
   hover). The single-story page puts the picture on the left and the
   text on the right. Section 12. Search "CHANGED (version 12)".

   VERSION 13 (November 11, 2026): Workshops & Training pages
   (workshops.php and workshop.php) use the same cards as News.
   Section 12's class names changed from "news-..." to general ones
   (.news-card is now .item-card, .news-date is .date-badge, and so on);
   news pages look exactly the same. New styles for the workshop details
   box, the past-workshop note, and a navy hover for orange buttons on the
   off-white page. Search "CHANGED (version 13)".

   VERSION 14 (November 11, 2026): new section 13 for the content
   manager: the four photo display sizes (Small, Medium, Large, Full
   width), styles for formatted text (headings, lists, links), and the
   yellow preview bar. Search "CHANGED (version 14)".

   VERSION 15 (November 12, 2026): new section 14 balances the photo and
   text on inside pages, news stories and workshops. The photo column is
   narrower (240-420px instead of half the page) and stays in view while
   the text scrolls. Photos are at most 480px tall. Pages without a photo
   use the full width. On wide screens the content area is centered.
   Formatted text gets roomier lines and clearer headings with a short
   orange line. Search "CHANGED (version 15)".

   VERSION 16 (November 12, 2026): a grey "Past event" tag and a white
   page background (both at the end of section 14).

   VERSION 17 (November 16, 2026): new section 15. Card pictures show
   whole flyers (no cropping) with a 1px orange border; the large flyer
   viewer on the News & Events page; "Happening today!" tag and notice.
   Search "CHANGED (version 17)".

   VERSION 18 (November 16, 2026): "Follow JFF" social links on the
   News & Events page (end of the file). Search "CHANGED (version 18)".

   VERSION 19 (November 16, 2026): "Follow JFF" social links in the
   footer of every page (end of the file). Search "CHANGED (version 19)".

   VERSION 20 (November 16, 2026): "Accessibility Statement" and "Privacy
   Policy" links at the bottom of the footer. Search "CHANGED (version 20)".

   VERSION 21 (November 16, 2026): the flyer on a story's own page opens the
   large flyer viewer (end of the file). Search "CHANGED (version 21)".

   VERSION 22 (November 16, 2026): in the large flyer viewer, the gold label
   is centered just above the flyer, and Previous and Next sit beside the
   flyer (section 15). Search "CHANGED (version 22)".

   VERSION 23 (November 16, 2026): bigger flyers in the large viewer (up to
   960px wide), the keyboard tip moved to the top left, 20px between the
   label and the flyer, and a "Past event" label above the flyer on a past
   event's own page. Search "CHANGED (version 23)".

   VERSION 24 (November 17, 2026): new section 16, "Meet Our Team"
   (leadership.php): a card for each person in even rows, grouped under
   headings, with a "View flyer" button that opens the large flyer viewer.
   Search "CHANGED (version 24)".

   VERSION 25 (November 18, 2026): new section 17. On large screens,
   inside pages get more space above the page heading and between the
   heading and the photo. Pages can also use a "large photo" layout (the
   Founder's message uses it): a bigger photo, and the whole page kept
   narrower so the text doesn't stretch across very wide screens.
   Search "CHANGED (version 25)".

   VERSION 26 (November 18, 2026): in the "large photo" layout (the
   Founder's message), the page heading moves to the right column,
   centered above the text, with a gold metallic line under it. The same
   gold line runs under the headings in the text. Search "CHANGED (version 26)".

   VERSION 27 (November 18, 2026): the gold lines in the large-photo layout
   are now a "gold diamond" divider (thin lines fading toward a small gold
   diamond) under the page heading and her message title, and a thin gold
   underline under the other headings. Search "CHANGED (version 27)".

   VERSION 28 (November 18, 2026): in the large-photo layout the photo can
   be up to 540px wide (was 480px), and the page up to 1220px (was 1160px)
   so the text keeps its width. Search "CHANGED (version 28)".

   VERSION 29 (November 18, 2026): a polished gold frame around the photo
   in the large-photo layout, matching the gold diamond dividers.
   Search "CHANGED (version 29)".

   VERSION 30 (November 18, 2026): new section 18, the gold theme across
   the whole site: the gold diamond divider under every H2 heading, a thin
   gold line under the words of H3 and smaller headings, and a gold frame
   around photos and flyers. Search "CHANGED (version 30)".

   VERSION 31 (November 18, 2026): the gold diamond divider under H1 page
   titles too, as wide as the title. Search "CHANGED (version 31)".

   VERSION 33 (November 18, 2026): new section 19, the photo slideshow.
   Inside pages with a second or third photo fade from one to the next.
   Search "CHANGED (version 33)".

   VERSION 34 (November 18, 2026): the slideshow's Pause button moved above
   the photos, on the right. Search "CHANGED (version 34)".

   VERSION 35 (November 18, 2026): all slideshow photos get the same size
   frame, as tall as the tallest, with cream behind any photo that doesn't
   quite fill it. Search "CHANGED (version 35)".

   VERSION 36 (November 18, 2026): a navy caption band under the first
   slideshow photo when it's shorter than the others, filling the space
   instead of cream. Search "CHANGED (version 36)".

   VERSION 37 (November 18, 2026): the slideshow's Pause button is now a
   gold bar attached under the photo frame, as wide as the frame.
   Search "CHANGED (version 37)".

   VERSION 38 (November 18, 2026): a row of circles above the Pause bar,
   one per photo, filled for the photo showing. Search "CHANGED (version 38)".

   VERSION 39 (November 18, 2026): the circles moved inside the gold Pause
   bar, which is taller to hold them. Search "CHANGED (version 39)".

   VERSION 40 (November 18, 2026): new section 20, the photo grid on the
   home page. Search "CHANGED (version 40)".

   VERSION 41 (November 19, 2026): new section 21, the Contact page form.
   Search "CHANGED (version 41)".

   VERSION 42 (November 19, 2026): the Privacy Policy page keeps its text
   to a comfortable reading width. Search "CHANGED (version 42)".

   VERSION 43 (November 19, 2026): new section 22. The menu bar, the page
   content and the footer each get the polished gold frame used around
   photos, with a thin white gap between them. Search "CHANGED (version 43)".

   VERSION 32 (November 18, 2026): removed the thin gold line under H3 and
   smaller headings. Search "CHANGED (version 32)".
   ============================================================= */


/* =============================================================
   1. FONTS AND SITE-WIDE BASICS
   ============================================================= */

/* Loads the two fonts from Google Fonts:
   DM Sans (the main font) and Kalam (the handwritten-looking font). */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Kalam:wght@400;700&display=swap');

/* Default for the whole site: DM Sans font, white text, navy background
   (the navy shows at the sides on very wide screens). */
:root { font-family: "DM Sans", sans-serif; color: #fff; background: #233873; }

/* Makes widths include padding and borders, so sizes add up the way you'd expect. */
* { box-sizing: border-box; }

/* Scrolls smoothly when you click a link to another spot on the same page. */
html { scroll-behavior: smooth; }

/* Removes the browser's default space around the page, and keeps the
   page from squeezing narrower than 320px (the smallest phones). */
body { margin: 0; min-width: 320px; }

/* Links use the color of the text around them, with no underline. */
a { color: inherit; text-decoration: none; }

/* Stops phones from flashing a grey box when a button or link is tapped. */
button, a { -webkit-tap-highlight-color: transparent; }

/* Keyboard focus: a thick yellow ring around the link or button you've
   tabbed to. Only shows for keyboard users, not mouse clicks.
   (Some parts of the site override this with their own focus style.) */
a:focus-visible, button:focus-visible { outline: 3px solid #ffd166; outline-offset: 3px; border-radius: 4px; }

/* The page itself: no wider than 1500px, centered, with an off-white
   background and a soft shadow at its sides. Anything that sticks out
   past its edges is cut off. */
.site { max-width: 1500px; margin: auto; overflow: hidden; background: #f6f5ef; box-shadow: 0 0 60px #10193455; }


/* =============================================================
   2. TOP BAR: LOGO, HAMBURGER BUTTON, DONATE BUTTON
   ============================================================= */

/* The navy bar across the top. It's 72px tall and lays the logo, menu
   and Donate button out in a row, centered top to bottom.
   "z-index" keeps it (and its dropdowns) on top of the page below. */
.topbar { position: relative; z-index: 20; height: 72px; padding: 0 20px; background: #233873; display: flex; align-items: center; gap: 16px; }

/* The logo link (circle + foundation name). It's 205px wide and never shrinks. */
.brand { width: 205px; display: flex; align-items: center; gap: 11px; font-size: 11px; line-height: 1.05; flex-shrink: 0; }

/* CHANGED (version 3): logo focus ring is white, like the menu. Before: the site's yellow ring
   (3px thick, 3px out, from the a:focus-visible rule in section 1). */
/* Logo on keyboard focus: a 2px white ring set 2px out. */
.brand:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* The orange "JFF" circle in the logo. */
.brand-mark { width: 44px; height: 44px; border: 1px solid #f4a62a; border-radius: 50%; display: grid; place-items: center; color: #f4a62a; font-family: Georgia, serif; font-style: italic; font-size: 15px; }

/* The hamburger (three-line) button. Hidden until the menu switches
   to hamburger mode (see section 8). */
.menu-button { display: none; width: 27px; height: 27px; padding: 4px 2px; border: 0; background: transparent; flex-direction: column; justify-content: space-around; cursor: pointer; }

/* The three white lines inside the hamburger button. */
.menu-button span { display: block; width: 23px; height: 2px; border-radius: 999px; background: #fff; }

/* Hamburger button on mouse hover: a faint white square behind it. */
.menu-button:hover { background: #ffffff1f; border-radius: 4px; }


/* =============================================================
   3. BUTTONS USED ACROSS THE SITE
   "donate" and "outline" are the two class names used on pill buttons
   (Donate, Get Support, Learn More About Our Work). Since version 7
   they look exactly the same.
   ============================================================= */

/* CHANGED (version 7): all pill buttons now share one look.
   Before: "Get Support" and Donate were orange and turned darker orange
   on hover; "Learn More About Our Work" was see-through with a white border
   and turned white with navy text on hover.
   Now every one is solid orange, and on hover or keyboard focus turns
   white with navy text and gets the 2px white ring set 2px out. */

/* Shared look for every pill button: pill-shaped, bold, text centered,
   deep orange with white text (5.2:1) and a soft shadow.
   Movement and color changes animate over 0.2 seconds. */
.donate, .outline { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 13px; font-weight: 800; transition: transform .2s, background .2s, color .2s; }
.donate, .outline { background: #c2410c; color: #fff; padding: 13px 22px; box-shadow: 0 5px 15px #16161624; }

/* Every pill button lifts up 2px when the mouse is over it. */
.donate:hover, .outline:hover { transform: translateY(-2px); }

/* Every pill button on hover or keyboard focus: white with navy text (11:1),
   and a 2px white ring set 2px out, so a navy gap shows between them.
   border-radius: 999px keeps them pill-shaped (the a:focus-visible rule in
   section 1 would otherwise square the corners), so the ring follows the pill. */
.donate:hover, .donate:focus-visible,
.outline:hover, .outline:focus-visible { background: #fff; color: #233873; outline: 2px solid #fff; outline-offset: 2px; border-radius: 999px; }

/* Space between a button's words and its little icon (♥ or →). */
.donate span, .outline span { margin-left: 8px; }

/* The smaller Donate button in the top bar: tighter, smaller text,
   stays on one line and never gets squeezed. It has a 2px orange border. */
.donate.small { padding: 9px 18px; white-space: nowrap; font-size: 11px; flex-shrink: 0; border: 2px solid #c2410c; }

/* CHANGED (version 7): top bar Donate on hover or focus now matches the
   other buttons: white with navy text, and its border turns white too.
   Before: white with orange text and an orange border. */
.topbar .donate.small:hover,
.topbar .donate.small:focus-visible { background: #fff; color: #233873; border-color: #fff; }


/* =============================================================
   4. HERO (THE BIG PHOTO BANNER ON THE HOME PAGE)
   ============================================================= */

/* The banner area: at least 335px tall, and grows taller if the text
   inside is enlarged. Dark grey shows while the photo loads. */
.hero { min-height: 335px; position: relative; display: flex; align-items: flex-start; background: #222; } /* grows if text is enlarged */

/* The banner photo: fills the whole banner and crops the edges instead of
   stretching. The two numbers pick which part of the photo stays in view. */
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% top; }

/* A dark fade over the left side of the photo so the white text is readable. */
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #131b24ee 0%, #121c27c7 32%, transparent 62%), linear-gradient(0deg, #18203555, transparent 60%); }

/* The block of text on the left of the banner (heading, paragraph, buttons). */
.hero-copy { position: relative; z-index: 1; margin: 14px 26px 24px; width: 520px; max-width: calc(100% - 52px); }

/* The small gold line above the heading ("Advocacy begins with belonging"),
   in spaced-out capital letters. */
.kicker { margin: 0 0 4px !important; color: #ffb532; font-size: 11px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* The main heading. Its size grows with the screen width, between 28px and 40px. */
.hero h1 { margin: 0 0 13px; font-size: clamp(28px, 3vw, 40px); line-height: .99; letter-spacing: -.025em; }

/* The gold word in the heading ("Communities."). */
.hero h1 em { color: #ffc14a; font-style: normal; }

/* The paragraph under the heading. */
.hero-copy > p { max-width: 470px; margin: 0; font-size: 12px; line-height: 1.36; }

/* The row of buttons under the paragraph, with space between them. */
.actions { display: flex; gap: 14px; margin-top: 17px; }

/* CHANGED (version 7): removed the see-through look for "Learn More About Our Work".
   It was: .outline { padding: 11px 20px; border: 1px solid #fff; background: #1118; }
   The button now gets the orange look from section 3. */

/* The tilted handwritten note on the right ("Strong Families. Brighter Futures."). */
.hero-message { position: absolute; right: 38px; top: 18px; font: 25px/1.02 "Kalam"; transform: rotate(-7deg); text-shadow: 1px 2px 3px #111; }
/* CHANGED (contrast): a see-through navy panel behind the note, so the white
   and gold words stay readable on bright parts of the banner photo
   (was about 1:1 on the light leaves; now over 7:1). */
.hero-message { background: #101d2bcc; padding: 8px 14px 10px; border-radius: 8px; }

/* The gold word in that note ("Futures."). */
.hero-message b { color: #ffbe32; font-weight: 700; }

/* "REAL PEOPLE. REAL STORIES. REAL IMPACT." in the bottom right,
   with an orange line on its left. */
.impact-note { position: absolute; right: 38px; bottom: 24px; border-left: 3px solid #ff9d27; padding-left: 12px; font-size: 11px; line-height: 1.5; letter-spacing: .08em; }
/* CHANGED (contrast): the same navy panel behind "REAL PEOPLE. REAL STORIES.
   REAL IMPACT." (was as low as 1.6:1 over the light part of the photo). */
.impact-note { background: #101d2bcc; padding: 6px 12px; }


/* =============================================================
   5. PROGRAM CARDS (THE FOUR PHOTO CARDS UNDER THE BANNER)
   ============================================================= */

/* The row of cards: four equal columns on a light grey background. */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 16px 24px; background: #e9eaeb; }

/* One card: at least 210px tall, rounded corners, a soft shadow. */
.service-card { position: relative; min-height: 210px; border-radius: 7px; overflow: hidden; box-shadow: 0 3px 9px #16203c3d; }

/* The card's photo fills the whole card and crops instead of stretching. */
.service-card > img { position: absolute; width: 100%; height: 100%; object-fit: cover; }

/* A colored fade over each photo so the white text is readable.
   The first card is blue; the next three lines give cards 2, 3 and 4
   their own colors (green, purple, brown). */
/* CHANGED (contrast): each card's color fade now stays dark across the whole
   text area (about three-quarters of the card) and fades out after it.
   Before, it faded much sooner, so the small gold tagline and the
   description dropped below 4.5:1 over light photos. It was:
   .card-shade { ... linear-gradient(90deg, #153c66ed 0%, #133966b5 50%, transparent 100%), ... }
   card 2: linear-gradient(90deg, #25463ded, #294f41a8 60%, transparent)
   card 3: linear-gradient(90deg, #251d4bed, #2518469c 60%, transparent)
   card 4: linear-gradient(90deg, #704222ed, #8c4d2699 65%, transparent) */
.card-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #153c66f0 0%, #133966e0 72%, transparent 100%), linear-gradient(0deg, #122f50d8, transparent 70%); }
.service-card:nth-child(2) .card-shade { background: linear-gradient(90deg, #25463df0, #213f34e0 72%, transparent); }
.service-card:nth-child(3) .card-shade { background: linear-gradient(90deg, #251d4bf0, #1f1640e0 72%, transparent); }
.service-card:nth-child(4) .card-shade { background: linear-gradient(90deg, #5a3419f0, #5a3419e0 72%, transparent); }

/* The text area of a card. It takes up the left 73% of the card. */
.card-content { position: relative; padding: 14px 16px; width: 73%; }

/* The round cream icon at the top of each card. */
.icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: #faf8ed; color: #24437d; margin-bottom: 9px; }

/* Size for an icon drawing, if you swap a symbol for an SVG image later. */
.icon svg { width: 31px; height: 31px; }

/* The card title (e.g. "Project RISE"). */
.card-content h2 { font-size: 20px; line-height: 1.02; margin: 0 0 4px; }

/* The gold tagline under the title (e.g. "Healing. Support. Opportunity."). */
.card-content b { display: block; font-size: 10px; color: #ffd063; margin-bottom: 5px; }

/* The short description. */
.card-content p { font-size: 10px; line-height: 1.25; margin: 0 0 7px; }

/* CHANGED (version 7): the cards' "Learn More →" links look like the other
   pill buttons: solid orange with white text (5.2:1).
   Before: no background (just white text), with a -9px left margin
   that lined the text up with the text above. */
/* The "Learn More →" link: a small orange pill. */
.card-content a { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: #c2410c; color: #fff; font-size: 10px; font-weight: 800; transition: background .2s, color .2s; }

/* "Learn More" on hover or keyboard focus: white pill with navy text. */
.card-content a:hover, .card-content a:focus-visible { background: #fff; color: #233873; text-decoration: none; }

/* "Learn More" on hover or keyboard focus also gets a 2px white ring set 2px out,
   and stays pill-shaped. (Version 3 added this for focus; version 7 added hover.) */
.card-content a:hover, .card-content a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 999px; }


/* =============================================================
   6. "TOGETHER WE CAN" STRIP
   ============================================================= */

/* The cream strip under the cards. Its items sit in a row, spread evenly. */
.beliefs { min-height: 74px; color: #233873; display: flex; align-items: center; justify-content: space-between; padding: 8px 31px; gap: 18px; background: #faf9f3; }

/* The tilted handwritten "Together We Can ♡". */
.script { font: 22px/1 "Kalam"; transform: rotate(-5deg); min-width: 125px; }

/* Each belief ("Stronger Families", "Inclusive Communities", ...). */
.belief { font-size: 10px; font-weight: 700; text-align: center; white-space: nowrap; }

/* The symbol above each belief (✦, ◇, ∞). */
.belief span { display: block; color: #2d4b83; font-size: 20px; margin-bottom: 3px; }

/* The quote at the end of the strip, in italic Georgia. */
blockquote { margin: 0; font-family: Georgia, serif; font-size: 12px; font-style: italic; line-height: 1.4; }


/* =============================================================
   7. FOOTER
   ============================================================= */

/* The navy footer area. */
footer { background: #233873; padding: 58px 24px 44px; min-height: 340px; }

/* The footer layout: the foundation's intro on the left (a bit wider),
   then four columns of links. No wider than 1040px, centered. */
.footer-grid { max-width: 1040px; margin: auto; display: grid; grid-template-columns: 1.45fr repeat(4, 1fr); gap: 55px; }

/* The foundation's name in the footer. */
.footer-intro h2 { font-size: 17px; line-height: 1.05; margin: 0 0 18px; }

/* The paragraphs in the footer intro. */
.footer-intro p { font-size: 10px; line-height: 1.45; }

/* The gold tagline ("Empowering Families. Promoting Healing. ..."). */
.footer-intro .gold { color: #ffbc39; }

/* Space above the footer's "Get Support" button. */
.footer-intro .donate { margin-top: 10px; }

/* "Need Help? Start Here." under that button. */
.footer-intro small { display: block; margin-top: 7px; font-size: 10px; }

/* Column headings (About, Programs, Advocacy, Trainings) with a gold line under them. */
.footer-column h3 { display: inline-block; font-size: 13px; margin: 0 0 12px; padding-bottom: 7px; border-bottom: 2px solid #f9b528; }

/* CHANGED: footer links (change 3). Before, these two lines were:
   .footer-column a { display: block; font-size: 10px; margin: 0; padding: 6px 0; min-height: 24px; }
   .footer-column a:hover { color: #ffba34; }
   .footer-column a:hover, .footer-column a:focus-visible { color: #ffd166; text-decoration: underline; text-underline-offset: 3px; } */
/* Each footer link sits on its own line and is at least 24px tall, so it's
   easy to tap (WCAG 2.2). The box hugs the text, with 8px of side padding
   pulled back by a -8px margin so the text still lines up with the heading. */
/* CHANGED (version 4): footer link text is 12px. Before: 10px. */
.footer-column a { display: block; width: fit-content; font-size: 12px; margin: 0 0 0 -8px; padding: 6px 8px; min-height: 24px; border-radius: 4px; }
/* Footer link on hover or keyboard focus: same look as the top menu.
   White box, navy text, and a 2px white ring set 2px out. */
.footer-column a:hover, .footer-column a:focus-visible { background: #fff; color: #233873; outline: 2px solid #fff; outline-offset: 2px; }

/* CHANGED (version 5): the badge is now a link to includemea11y.com.
   Added display: block (a link needs it to be centered and sized like before),
   plus a hover and focus style. Before: it was plain text, not a link. */
/* The white "Powered by IncludeMe A11y" badge link, centered at the bottom. */
/* CHANGED (version 6): 72px of space above the badge (was 38px), so it sits
   further below the rest of the footer. "auto" on the left and right centers it. */
.a11y-badge { display: block; width: fit-content; margin: 72px auto 0; padding: 7px 13px; border-radius: 5px; background: #fff; color: #233873; font-size: 10px; font-weight: 700; }
/* Badge on hover or keyboard focus: a 2px white ring set 2px out, like the
   footer links. Its white background and navy text stay the same. */
.a11y-badge:hover, .a11y-badge:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 5px; }

/* For people who've asked their device to reduce motion:
   no smooth scrolling and no button animations. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .donate, .outline { transition: none; }
}


/* =============================================================
   8. SCREEN-SIZE ADJUSTMENTS (TABLETS AND PHONES)
   ============================================================= */

/* Hamburger mode. menu.js adds the class "is-collapsed" to the top bar
   at 125% browser zoom and above, or whenever the full menu wouldn't fit.
   Then the logo takes up the free space and the hamburger button appears.
   (The menu panel itself is styled in section 9.) */
.topbar.is-collapsed .brand { width: auto; flex: 1; }
.topbar.is-collapsed .menu-button { display: flex; }

/* Screens 1050px wide or narrower (tablets, small laptops):
   cards go to two per row, and the beliefs are hidden to save space. */
@media (max-width: 1050px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .beliefs .belief { display: none; }
}

/* Screens 720px wide or narrower (phones, small tablets). */
@media (max-width: 720px) {
  /* Slightly shorter top bar with less side padding. */
  .topbar { height: 68px; padding: 0 16px; }
  /* Taller banner, with the text moved to the bottom. */
  .hero { min-height: 525px; align-items: flex-end; }
  /* Shows a slightly different part of the banner photo. */
  .hero > img { object-position: 78% top; }
  /* The dark fade now runs from the bottom up, behind the text. */
  /* CHANGED (contrast): the dark fade reaches higher, behind the small gold
     line at the top of the text. It was:
     .hero-shade { background: linear-gradient(0deg, #101d2bf5 8%, #101d2bbd 65%, transparent); } */
  .hero-shade { background: linear-gradient(0deg, #101d2bf5 8%, #101d2bd0 72%, transparent); }
  /* The text block uses the full width. */
  .hero-copy { margin: 24px 20px 25px; width: auto; max-width: none; }
  /* Fixed heading and paragraph sizes for phones. */
  .hero h1 { font-size: 32px; }
  .hero-copy > p { font-size: 11px; }
  /* Hides the handwritten note and "REAL PEOPLE..." to save space. */
  .hero-message, .impact-note { display: none; }
  /* Cards go to one per row. */
  .services { grid-template-columns: 1fr; padding: 14px; gap: 12px; }
  .service-card { min-height: 235px; }
  /* Tighter padding in the "Together We Can" strip; smaller quote. */
  .beliefs { padding: 13px 20px; }
  blockquote { font-size: 10px; }
  /* Footer: less space on top, link columns two per row,
     and the intro stretches across the full width above them. */
  footer { padding-top: 40px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-intro { grid-column: 1 / -1; }
}

/* Screens 420px wide or narrower (small phones). */
@media (max-width: 420px) {
  /* Slightly smaller logo text and circle. */
  .brand { font-size: 10px; }
  .brand-mark { width: 40px; height: 40px; }
  /* Narrower top bar Donate button. */
  .donate.small { padding: 9px 12px; }
  /* Banner buttons stack on top of each other. */
  .actions { align-items: flex-start; flex-direction: column; gap: 9px; }
  /* Banner gets a bit taller to fit the stacked buttons. */
  .hero { min-height: 570px; }
  /* Hides "Together We Can" to save space. */
  .script { display: none; }
  /* Less space between footer columns. */
  .footer-grid { gap: 24px; }
}

/* The symbol inside each card's round icon: a large, bold Georgia character. */
.icon { font-family: Georgia, serif; font-size: 28px; font-weight: 700; }


/* =============================================================
   9. MAIN MENU AND DROPDOWNS
   Desktop: each section is a button that opens a white dropdown panel.
   Hamburger mode: the hamburger opens the whole menu as a panel,
   and each section opens in place underneath it (an "accordion").
   menu.js handles opening, closing, arrow keys and Escape.
   ============================================================= */

/* The menu area. It fills the space between the logo and Donate,
   and pushes the menu to the right. */
.main-nav { flex: 1; display: flex; align-items: center; justify-content: flex-end; }

/* The list of sections, in a row, with no bullets. */
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }

/* Each section. Its dropdown is positioned relative to it. */
.nav-item { position: relative; }

/* A thin white divider line between sections. */
.nav-item + .nav-item { border-left: 1px solid #fff9; }

/* The section buttons (About Us, Programs & Services, ...).
   - Text stays on the lines set in the HTML (no extra wrapping).
   - A see-through 2px border holds space, so nothing shifts if a border appears.
   - Color and movement changes animate over 0.2 seconds.
   - font-size here is the menu text size on desktop. */
.nav-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 3px; padding: 4px 7px; white-space: nowrap;
  border: 2px solid transparent; border-radius: 4px; /* reserves space so the open state doesn't shift the layout */
  background: transparent; color: #fff;
  /* CHANGED (version 4): menu text is 12px on desktop. Before: 10px.
     (In the hamburger panel it's 16px; that's set in the hamburger section below.) */
  font: inherit; font-size: 12px; font-weight: 700; line-height: 1.15; text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

/* The small down arrow after each section name. It's drawn with borders
   and uses the text's color, so it turns navy along with the text. */
.nav-toggle::after {
  content: ""; flex-shrink: 0;
  border-top: .35em solid currentColor; border-left: .3em solid transparent; border-right: .3em solid transparent;
  transition: transform .2s ease;
}

/* The arrow flips to point up while that section's dropdown is open. */
.nav-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }

/* CHANGED: top menu buttons (change 1). Before:
   background: #1a2550; border-color: #ff5f0f; color: #fff; outline: none; */
/* Section button on hover, keyboard focus, or while its dropdown is open:
   white box with navy text (11:1), and a 2px white ring set 2px out,
   so a navy gap shows between the box and the ring. It also lifts up 1px. */
.nav-toggle:hover,
.nav-toggle:focus-visible,
.nav-toggle[aria-expanded="true"] {
  background: #fff; color: #233873;
  outline: 2px solid #fff; outline-offset: 2px;
  transform: translateY(-1px);
}

/* The dropdown panel: white, rounded, with a soft shadow, 8px below the
   button and at least 250px wide. It sits on top of the page. */
.submenu {
  position: absolute; top: calc(100% + 8px); left: 3px; z-index: 30;
  min-width: 250px; margin: 0; padding: 8px 0; list-style: none;
  background: #fff; border: 1px solid rgba(0, 0, 0, .175); border-radius: 6px;
  box-shadow: 0 10px 28px rgba(16, 25, 52, .22);
}

/* A dropdown is hidden until its button is clicked. */
.submenu[hidden] { display: none; }

/* The last two sections' dropdowns open toward the left,
   so they don't run off the right side of the screen. */
.nav-item:nth-last-child(-n+2) > .submenu { left: auto; right: 3px; }

/* Each link in a dropdown: its own line, dark text on white (15:1),
   Verdana font, and no wrapping. */
.submenu a {
  display: block; padding: 9px 20px;
  color: #1f2533; /* 15:1 on white */
  font-family: Verdana, Geneva, Tahoma, sans-serif; font-size: 15px; font-weight: 600; line-height: 1.3;
  white-space: nowrap;
}

/* CHANGED: dropdown links (change 2). Before:
   .submenu a:hover { background: #e9ecef; color: #1f2533; }
   .submenu a:focus-visible { background: #e9ecef; outline: 3px solid #ff5f0f; outline-offset: -3px; border-radius: 0; } */
/* Dropdown links sit 6px in from the panel's sides, so the ring
   (2px out + 2px thick) stays inside the white panel. */
.submenu a { margin: 0 6px; border-radius: 4px; }
/* Dropdown link on hover or keyboard focus: the reverse of the top menu,
   since the panel is white. Navy box with white text (11:1),
   and a 2px navy ring set 2px out. */
.submenu a:hover,
.submenu a:focus-visible { background: #233873; color: #fff; outline: 2px solid #233873; outline-offset: 2px; }

/* The link for the page you're on (menu.js marks it):
   navy text with an orange bar on its left. */
.submenu a[aria-current="page"] { color: #233873; box-shadow: inset 4px 0 0 #ff5f0f; }

/* For people who've asked their device to reduce motion:
   menu buttons don't animate or lift, but the arrow still flips when open. */
@media (prefers-reduced-motion: reduce) {
  .nav-toggle, .nav-toggle::after { transition: none; transform: none; }
  .nav-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
}

/* ── Hamburger mode: the whole menu becomes a panel under the top bar ── */

/* The menu panel: hidden until the hamburger is clicked. It drops down
   under the top bar, full width, navy, and scrolls if it's taller than the screen. */
.topbar.is-collapsed .main-nav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  max-height: calc(100vh - 72px); overflow-y: auto;
  padding: 8px 16px 16px;
  background: #233873; border-top: 1px solid #fff3;
  box-shadow: 0 14px 28px rgba(16, 25, 52, .35);
}

/* Shows the panel when the hamburger has opened it. */
.topbar.is-collapsed .main-nav.is-open { display: block; }

/* Sections stack top to bottom instead of sitting in a row. */
.topbar.is-collapsed .nav-list { flex-direction: column; align-items: stretch; }

/* Divider lines go between rows instead of between columns. */
.topbar.is-collapsed .nav-item + .nav-item { border-left: 0; border-top: 1px solid #fff3; }

/* Section buttons stretch across the panel, with bigger text (16px),
   the name on the left and the arrow on the right. */
.topbar.is-collapsed .nav-toggle { width: 100%; justify-content: space-between; margin: 4px 0; padding: 12px 10px; font-size: 16px; text-align: left; }

/* Section buttons don't lift up in the panel. */
.topbar.is-collapsed .nav-toggle:hover, .topbar.is-collapsed .nav-toggle:focus-visible, .topbar.is-collapsed .nav-toggle[aria-expanded="true"] { transform: none; }

/* Dropdowns open in place under their section (pushing the rest down)
   instead of floating, with no shadow or border. */
.topbar.is-collapsed .submenu, .topbar.is-collapsed .nav-item:nth-last-child(-n+2) > .submenu {
  position: static; min-width: 0; margin: 4px 0 12px;
  box-shadow: none; border: 0;
}

/* Dropdown links in the panel: bigger text (16px), and long names may wrap. */
.topbar.is-collapsed .submenu a { white-space: normal; padding: 11px 16px; font-size: 16px; }

/* The hamburger button keeps a faint white square behind it while the panel is open. */
.topbar.is-collapsed .menu-button[aria-expanded="true"] { background: #ffffff1f; border-radius: 4px; }

/* Section names go back to one line in the panel (ignores the <br> line breaks). */
.topbar.is-collapsed .nav-toggle br { display: none; }


/* =============================================================
   10. ACCESSIBILITY HELPERS
   ============================================================= */

/* "Skip to main content" link: hidden above the top of the screen
   until a keyboard user presses Tab, then it slides into view. */
.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  padding: 10px 16px; border: 3px solid #c2410c; border-radius: 4px;
  background: #fff; color: #233873; font-size: 14px; font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* After using the skip link, focus lands on the main content.
   This keeps a focus ring from being drawn around the whole page. */
main:focus { outline: none; }

/* Text that screen readers read aloud but that's hidden on screen
   (e.g. "about Project RISE" after "Learn More"). */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}


/* =============================================================
   11. CONTENT PAGES
   CHANGED (version 8): new section. The layout for the inside pages
   (Our Story, IEP Support, ...): a heading, then two columns with an
   image on the left and text on the right. On phones the columns
   stack, with the image on top.
   ============================================================= */

/* CHANGED (version 10): more space around the content. Before: 10px on
   the top, left and right (padding: 10px 10px 48px).
   The page's content area: 36px below the menu, and 26px from the left
   and right edges, which lines it up with the text in the home page banner.
   Room at the bottom before the footer. Dark text on the off-white page (15:1). */
.page-content { padding: 36px 26px 56px; color: #1f2533; }

/* The page heading. Its size grows with the screen, between 28px and 40px.
   No space above it, so the content area's top padding sets its distance from the menu. */
.page-content h1 { margin: 0 0 20px; color: #233873; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.02em; }

/* Two equal columns side by side, 32px apart, both starting at the top. */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }

/* The image fills its column's width, keeps its shape, and has rounded corners. */
.two-col img { display: block; width: 100%; height: auto; border-radius: 8px; }

/* The paragraphs: 16px text with roomy line spacing. "65ch" keeps lines
   to about 65 characters, which is easier to read on wide screens. */
.two-col p { margin: 0 0 16px; max-width: 65ch; font-size: 16px; line-height: 1.6; }

/* Screens 720px wide or narrower: one column, image on top, text below. */
@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; gap: 20px; }
}

/* CHANGED (version 11): keyboard focus on links in the content area: a 2px navy ring set 2px out.
   The site's yellow ring (section 1) is too faint on the off-white page. */
.page-content a:focus-visible { outline: 2px solid #233873; outline-offset: 2px; }


/* =============================================================
   12. LISTINGS: NEWS AND WORKSHOPS
   CHANGED (version 11): new section. The News & Community page
   (news.php) and the single-story page (news-item.php).
   CHANGED (version 13): the class names here were renamed from
   "news-..." to general names (e.g. .news-card is now .item-card),
   because the Workshops pages use the same cards. They look the same.
   ============================================================= */

/* The sentence under the page heading: slightly larger grey text (7.5:1). */
.page-intro { max-width: 65ch; margin: 0 0 24px; color: #4a5163; font-size: 17px; line-height: 1.6; }

/* ── Category filter (All / News / Community Announcements) ── */

/* The row of filter buttons, wrapping onto a second line if needed. */
.filter-buttons ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
/* CHANGED (launch): the "Current & upcoming | Past" switch sits just above
   the category buttons, with less space under it. */
.view-switch ul { margin-bottom: 14px; }

/* One filter button: a pill with a navy border and navy text. */
.filter-buttons a { display: inline-flex; align-items: center; min-height: 24px; padding: 8px 16px; border: 2px solid #233873; border-radius: 999px; color: #233873; font-size: 14px; font-weight: 700; }

/* Filter button on hover, and the one that's currently chosen:
   fills navy with white text (11:1). */
.filter-buttons a:hover,
.filter-buttons a[aria-current="page"] { background: #233873; color: #fff; }

/* Filter button on keyboard focus: the navy ring follows the pill shape. */
.filter-buttons a:focus-visible { border-radius: 999px; }

/* "Latest updates" heading above the cards. */
.list-heading { margin: 0 0 16px; color: #233873; font-size: 22px; }

/* ── News cards ── */

/* The list of cards, stacked with space between, no bullets. */
.card-list { display: grid; gap: 24px; max-width: 1100px; margin: 0; padding: 0; list-style: none; }

/* One card: picture on the left (280px wide), text on the right.
   White with rounded corners, a thin border and a soft shadow. */
.item-card { display: grid; grid-template-columns: 280px 1fr; overflow: hidden; background: #fff; border: 1px solid #e3e5ea; border-radius: 10px; box-shadow: 0 3px 12px #16203c1f; }

/* CHANGED (version 12): the picture area is now a link to the story.
   The picture area. The date badge is placed on top of it.
   overflow: hidden keeps the zoomed picture inside the area on hover. */
.item-card-media { position: relative; display: block; min-height: 210px; overflow: hidden; background: #dfe2ea; }

/* The picture fills its area and crops instead of stretching.
   It zooms in slightly over 0.3 seconds when the mouse is over it. */
.item-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.item-card-media:hover img { transform: scale(1.05); }

/* For people who've asked their device to reduce motion: no zoom. */
@media (prefers-reduced-motion: reduce) {
  .item-card-media img { transition: none; }
  .item-card-media:hover img { transform: none; }
}

/* The orange date badge in the picture's top left corner:
   the month small on top, the day large underneath. White on deep orange (5.2:1). */
.date-badge { position: absolute; top: 12px; left: 12px; min-width: 56px; padding: 7px 10px 8px; border-radius: 8px; background: #c2410c; color: #fff; text-align: center; font-size: 24px; font-weight: 800; line-height: 1; box-shadow: 0 3px 8px #16161633; }
.date-badge span { display: block; margin-bottom: 3px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

/* The text side of the card. */
.item-card-body { padding: 20px 24px 22px; }

/* CHANGED (version 12): titles are always underlined, so they look clickable.
   Before: underlined only on hover.
   The story title: a navy, underlined link. On hover it turns orange (5.2:1)
   and the underline gets thicker. Hovering the picture does the same,
   so it's clear the picture and title go to the same place. */
.item-card-body h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.2; }
.item-card-body h3 a { color: #233873; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.item-card-body h3 a:hover,
.item-card:has(.item-card-media:hover) h3 a { color: #c2410c; text-decoration-thickness: 2px; }

/* The line with the full date and the category tag, in grey (7.5:1). */
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; color: #4a5163; font-size: 14px; }

/* The category tag: a cream pill with brown text (7.6:1), like a label. */
.tag { display: inline-block; padding: 3px 10px; border: 1px solid #f4a62a; border-radius: 999px; background: #fff4dc; color: #7a3e00; font-size: 12px; font-weight: 700; }

/* On the story page the tag is a link: underlined on hover, and pill-shaped on focus. */
a.tag:hover { text-decoration: underline; }
a.tag:focus-visible { border-radius: 999px; }

/* The short summary on the card. */
.item-excerpt { max-width: 65ch; margin: 0 0 14px; color: #1f2533; font-size: 16px; line-height: 1.6; }

/* CHANGED (version 13): the rest of this section is new, for the workshop pages.
   (The "Read more" rule after it is unchanged.) */

/* Plain text links inside paragraphs on content pages (ones without a class
   of their own, like "contact us" or "See upcoming ... sessions"):
   bold, navy and underlined so they look clickable; orange on hover. */
.page-content p a:not([class]) { color: #233873; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.page-content p a:not([class]):hover { color: #c2410c; }

/* "Past workshops" heading: extra space above it to separate it from upcoming ones. */
.list-heading-past { margin-top: 48px; }

/* The message shown when there's nothing in a list yet. */
.list-empty { max-width: 65ch; font-size: 16px; line-height: 1.6; }

/* A workshop's details on its own page (Date, Time, Location, Cost):
   labels in bold navy on the left, answers on the right. */
.item-details { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0 0 24px; padding: 18px 20px; background: #fff; border: 1px solid #e3e5ea; border-radius: 10px; font-size: 16px; line-height: 1.5; }
.item-details dt { color: #233873; font-weight: 700; }
.item-details dd { margin: 0; }

/* The note on a past workshop's page, with an orange bar on its left. */
.item-notice { padding: 12px 16px; border-left: 4px solid #c2410c; background: #fff; border-radius: 0 8px 8px 0; }

/* Orange pill buttons inside the content area (like Register) on hover or
   keyboard focus: navy with white text (11:1) and a navy ring. The usual white
   hover (section 3) would disappear against the off-white page. */
.page-content .donate:hover,
.page-content .donate:focus-visible { background: #233873; color: #fff; outline-color: #233873; }

/* "Read more →" and "Back to all news": bold navy underlined links
   that turn orange on hover (both 5:1 or more on white and off-white). */
.read-more, .back-link { color: #233873; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.read-more:hover, .back-link:hover { color: #c2410c; }

/* ── One story (news-item.php) ── */

/* CHANGED (version 12): the story page uses the two-column layout from
   section 11, with the picture on the left and the text on the right
   (stacked on phones). Before: one column, at most 760px wide, with the
   picture above the text.
   Space between the date line and the two columns. */
.item-article .item-meta { margin-bottom: 24px; }

/* The story's picture: rounded corners like the cards. */
.item-article-image { border-radius: 10px; }

/* The story's paragraphs: a little larger, with roomy line spacing. */
.item-article p:not(.item-meta) { margin: 0 0 18px; font-size: 17px; line-height: 1.7; }

/* Screens 720px wide or narrower: each card stacks, picture on top. */
@media (max-width: 720px) {
  .item-card { grid-template-columns: 1fr; }
  .item-card-media { min-height: 0; aspect-ratio: 16 / 9; }
  .item-card-body { padding: 18px 18px 20px; }
  .item-card-body h3 { font-size: 20px; }
}


/* =============================================================
   13. CONTENT MANAGER EXTRAS
   CHANGED (version 14): new section, used by the content manager.
   ============================================================= */

/* Photo display sizes chosen in the content manager. The photo is never
   wider than its space; these set the most it can grow to. */
.img-size-small  { display: block; width: 100%; max-width: 400px; height: auto; }
.img-size-medium { display: block; width: 100%; max-width: 800px; height: auto; }
.img-size-large  { display: block; width: 100%; max-width: 1200px; height: auto; }
.img-size-full   { display: block; width: 100%; height: auto; }

/* Formatted text from the content manager (story and page text) */
.rich-text h2 { margin: 24px 0 10px; color: #233873; font-size: 24px; line-height: 1.2; }
.rich-text h3 { margin: 20px 0 8px; color: #233873; font-size: 19px; }
.rich-text ul, .rich-text ol { max-width: 65ch; margin: 0 0 18px; padding-left: 24px; font-size: 16px; line-height: 1.6; }
.rich-text li { margin-bottom: 6px; }
.rich-text a { color: #233873; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.rich-text a:hover { color: #c2410c; }

/* The yellow bar shown to logged-in editors while previewing drafts */
.preview-banner { padding: 10px 20px; background: #ffd166; color: #1f2533; font-size: 15px; text-align: center; }
.preview-banner a { color: #1f2533; font-weight: 700; text-decoration: underline; }


/* =============================================================
   14. BALANCED PHOTO-AND-TEXT LAYOUT
   CHANGED (version 15): new section. Improves the two-column layout
   on inside pages, news stories and workshops. These rules come last,
   so they take over from the earlier .two-col rules in section 11.
   ============================================================= */

/* The page can scroll the photo along with long text (see "sticky" below).
   "clip" cuts off overflow like "hidden" did, but still allows that.
   Browsers that don't know "clip" keep using "hidden". */
.site { overflow: hidden; overflow: clip; }

/* Photo column and text column. The photo column is between 240px and 420px
   wide (about a third of the page); the text gets the rest. 48px between them. */
.two-col { grid-template-columns: minmax(240px, 420px) minmax(0, 1fr); gap: 48px; }

/* The photo stays in view while you scroll through long text, 24px from the
   top of the screen, instead of leaving an empty column beside the text. */
.two-col > div:first-child { position: sticky; top: 24px; }

/* Photos never get taller than 480px; taller photos are trimmed
   evenly top and bottom instead of stretching. A soft shadow lifts them. */
.two-col img { max-height: 480px; object-fit: cover; box-shadow: 0 6px 20px #16203c26; }

/* No photo chosen: the text uses the full width, with no empty column. */
.two-col:has(> div:first-child:empty) { grid-template-columns: minmax(0, 1fr); }
.two-col > div:first-child:empty { display: none; }

/* Text column: lines no longer than about 70 characters (easier to read),
   and a little more space between lines. */
.two-col .rich-text { max-width: 70ch; }
.two-col .rich-text p, .two-col .rich-text li { font-size: 17px; line-height: 1.7; }
.two-col .rich-text p { max-width: none; }

/* A workshop's details box lines up with the text below it */
.two-col .item-details { max-width: 70ch; }

/* Formatted text starts level with the top of the photo */
.rich-text > :first-child { margin-top: 0; }

/* Headings in formatted text: more space above them to separate topics,
   and a short orange line underneath (decoration only). */
.rich-text h2 { margin: 44px 0 14px; font-size: 26px; }
.rich-text h2::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 10px; border-radius: 2px; background: #c2410c; }
.rich-text h3 { margin: 28px 0 8px; }

/* Space between the page heading and the columns */
.page-content h1 { margin-bottom: 28px; }

/* The content area is at most 1240px wide and centered, so on wide
   screens the empty space is shared evenly on both sides. */
.page-content { max-width: 1240px; margin: 0 auto; }

/* Medium-size screens (tablets, small laptops): a narrower photo column */
@media (max-width: 1000px) {
  .two-col { grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 32px; }
}

/* Phones: photo on top, no taller than 280px, and it scrolls normally */
@media (max-width: 720px) {
  .two-col { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .two-col > div:first-child { position: static; }
  .two-col img { max-height: 280px; }
  .rich-text h2 { margin-top: 36px; font-size: 22px; }
}
/* A grey "Past event" tag on news cards for events whose date has passed */
.tag-past { border-color: #b6bccb; background: #eef0f5; color: #4a5163; }

/* Page background: white instead of cream.
   For a very slight off-white, change #ffffff to #fcfcfa. */
.site { background: #ffffff; }


/* =============================================================
   15. FLYERS: CARD THUMBNAILS AND THE LARGE FLYER VIEWER
   CHANGED (version 17): new section.
   - Card pictures show the whole flyer (8.5 x 11 or any shape),
     never cropped, with a 1px orange border.
   - The large flyer viewer on the News & Events page.
   ============================================================= */

/* ── Card thumbnails (news and workshop cards) ── */

/* The picture column is 240px wide; the text gets the rest */
.item-card { grid-template-columns: 240px minmax(0, 1fr); }

/* The picture area: white, with 16px of space around the flyer.
   Its height now follows the flyer's own shape instead of a fixed box. */
.item-card-media { min-height: 0; padding: 16px; background: #fff; overflow: visible; align-self: start; }

/* The flyer itself: full width of its area, natural height (no cropping),
   never taller than 420px, with a 1px orange border. The old zoom on hover is off. */
.item-card-media img { position: static; display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; border: 1px solid #c2410c; transition: none; }
.item-card-media:hover img { transform: none; }

/* The date badge sits just below the flyer, on one line ("NOV 21"),
   so it never covers the flyer's own words */
.item-card-media .date-badge { position: static; display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; margin-top: 10px; padding: 5px 12px; font-size: 18px; }
.item-card-media .date-badge span { display: inline; margin: 0; }

/* Flyers that open the large viewer: a magnifying-glass pointer, a soft
   shadow on hover, and a navy ring for keyboard focus (drawn inside the card). */
.item-card-media[data-flyer-index] { cursor: zoom-in; }
.item-card-media[data-flyer-index]:hover img { box-shadow: 0 6px 18px #16203c40; }
.item-card-media[data-flyer-index]:focus-visible { outline: 3px solid #233873; outline-offset: -6px; border-radius: 10px; }

/* Phones: the picture sits on top, at most 260px wide, centered */
@media (max-width: 720px) {
  .item-card { grid-template-columns: minmax(0, 1fr); }
  .item-card-media { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; }
  .item-card-media img { max-width: 260px; }
}

/* On a story's or workshop's own page, the flyer shows whole (no cropping),
   up to 640px tall, with the same 1px orange border */
.item-article .two-col img { width: auto; max-width: 100%; height: auto; max-height: 640px; object-fit: contain; border: 1px solid #c2410c; border-radius: 0; box-shadow: none; background: #fff; }

/* "Latest updates" heading with the "View all flyers larger" button beside it */
.list-heading-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; max-width: 1100px; margin-bottom: 16px; }
.list-heading-row .list-heading { margin: 0; }
.view-all-flyers { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border: 2px solid #233873; border-radius: 999px; background: #fff; color: #233873; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.view-all-flyers:hover { background: #233873; color: #fff; }
.view-all-flyers:focus-visible { outline: 2px solid #233873; outline-offset: 2px; }

/* "Happening today!" tag on cards: orange with white text (5.2:1) */
.tag-today { border-color: #c2410c; background: #c2410c; color: #fff; }

/* "This event is happening today!" at the top of an event's own page:
   a gold bar with dark text (12:1) */
.today-notice { display: inline-block; margin: 0 0 16px; padding: 8px 16px; border-left: 5px solid #c2410c; border-radius: 0 8px 8px 0; background: #ffd166; color: #1f2533; font-size: 17px; font-weight: 800; }

/* ── The large flyer viewer ── */

/* While the viewer is open, the page behind doesn't scroll */
html.fv-open { overflow: hidden; }

/* The viewer fills the screen with an almost solid dark navy (white text 15:1) */
.flyer-viewer { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 16px 20px 20px; border: 0; background: rgba(12, 17, 36, .96); color: #fff; }
.flyer-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.flyer-viewer::backdrop { background: rgba(0, 0, 0, .6); }

/* CHANGED (version 22): the label moved from the top left to just above the
   flyer, centered; Previous and Next now sit beside the flyer instead of at
   the screen's edges. */
/* Top row: "2 of 5" and the ✕, on the right */
.fv-top { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
/* CHANGED (version 23): the keyboard tip moved to the top left (it was under
   the flyer), which leaves more room for the flyer. It takes the free space
   on the left, so "2 of 5" and the ✕ stay on the right. */
.fv-top .fv-hint { flex: 1; margin: 0; text-align: left; }
/* The small gold label, centered just above the flyer (12:1) */
.fv-label { margin: 0 0 20px; color: #ffd166; font-size: 15px; font-weight: 800; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.fv-count { margin: 0; font-size: 15px; }
.fv-close { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.fv-close:hover { background: #fff; color: #0c1124; }

/* Middle: Previous, the flyer, Next, centered as a group with 32px between them,
   so the buttons sit close to the flyer but don't touch it */
.fv-stage { display: flex; align-items: center; justify-content: center; gap: 32px; min-height: 0; }
.fv-figure { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 1 auto; min-width: 0; min-height: 0; height: 100%; margin: 0; }
/* The flyer: as large as fits the screen, keeping its shape, with a 1px orange border.
   CHANGED (version 23): bigger. The two numbers that set its size:
   - 960px = the widest it can be (was 760px)
   - 100vh - 220px = the screen's height minus room for the label, title and
     buttons (was 260px). A smaller number here = a taller flyer; below about
     200px the title can be pushed off the bottom of shorter laptop screens. */
.fv-image { display: block; width: auto; height: auto; max-width: min(100%, 960px); max-height: calc(100vh - 220px); object-fit: contain; border: 1px solid #c2410c; background: #fff; }
.fv-figure figcaption { margin-top: 14px; text-align: center; }
.fv-title { margin: 0 0 6px; color: #fff; font-size: 22px; line-height: 1.2; }
.fv-more { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.fv-more:hover { color: #ffd166; }
.fv-more[hidden] { display: none; } /* CHANGED (version 24): hidden for team flyers, which have no story */

/* Previous and Next: white outlined pills that fill white on hover */
.fv-step { min-height: 48px; padding: 10px 18px; border: 2px solid #fff; border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: 16px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.fv-step:hover { background: #fff; color: #0c1124; }

/* Keyboard focus in the viewer: a thick gold ring (12:1 on the dark background) */
.flyer-viewer button:focus-visible, .flyer-viewer a:focus-visible { outline: 3px solid #ffd166; outline-offset: 3px; }

/* The keyboard tip at the bottom (light grey, 9:1) */
.fv-hint { margin: 0; color: #c9cedb; font-size: 14px; }

/* Phones: Previous and Next move under the flyer, side by side, and the keyboard tip is hidden */
@media (max-width: 720px) {
  .flyer-viewer { padding: 12px; }
  .fv-stage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 16px; }
  .fv-figure { grid-column: 1 / -1; grid-row: 1; }
  .fv-prev { grid-row: 2; grid-column: 1; }
  .fv-next { grid-row: 2; grid-column: 2; }
  .fv-image { max-height: calc(100vh - 270px); }
  .fv-hint { display: none; }
}

/* CHANGED (version 18): "Follow JFF for the latest updates: Facebook" on the
   News & Events page. The links are bold, navy and underlined, with space between. */
.follow-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: -8px 0 24px; color: #4a5163; font-size: 16px; }
.follow-links a { color: #233873; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.follow-links a:hover { color: #c2410c; }

/* CHANGED (version 19): "Follow JFF: Facebook" in the footer of every page,
   centered above the IncludeMe badge. White underlined links on navy (11:1),
   gold on hover, and the same white ring as other footer links on keyboard focus. */
.footer-follow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px; margin: 40px 0 0; color: #fff; font-size: 15px; font-weight: 700; }
.footer-follow a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-follow a:hover { color: #ffd166; }
.footer-follow a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.footer-follow + .a11y-badge { margin-top: 20px; }

/* CHANGED (version 20): "Accessibility Statement" and "Privacy Policy" links
   at the very bottom of the footer, centered, white and underlined (11:1). */
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 20px; font-size: 14px; }
.footer-legal a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: #ffd166; }
.footer-legal a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* CHANGED (version 21): the flyer on a story's own page opens the large
   flyer viewer. A magnifying-glass pointer and a soft shadow on hover, a navy
   ring for keyboard focus, and a small grey hint under it (7.5:1). */
.item-article-flyer { display: inline-block; max-width: 100%; cursor: zoom-in; }
.item-article-flyer:hover img { box-shadow: 0 6px 18px #16203c40; }
.item-article-flyer:focus-visible { outline: 3px solid #233873; outline-offset: 4px; }
.flyer-hint { margin: 8px 0 0; color: #4a5163; font-size: 14px; }

/* CHANGED (version 23): "Past event: July 20, 2026" above the flyer on
   a past event's own page. A grey label (7.5:1) with a grey bar on its left. */
.flyer-past-label { display: inline-block; margin: 0 0 12px; padding: 6px 12px; border-left: 4px solid #8a93a6; border-radius: 0 6px 6px 0; background: #eef0f5; color: #4a5163; font-size: 15px; font-weight: 700; }


/* =============================================================
   16. MEET OUR TEAM
   CHANGED (version 24): new section, for leadership.php. Every person
   gets the same size card, so the rows line up evenly: a square photo
   (or their initials), their name, title, a short bio, and "View flyer".
   The cards wrap to fit the screen: four across on wide screens,
   then three, two, and one on phones.
   ============================================================= */

/* The short introduction under the heading, kept to a comfortable line length */
.team-intro { max-width: 70ch; margin-bottom: 8px; }

/* Each group (Board of Directors, ...): space above it, and a heading with
   a short orange line under it, like headings in formatted text */
.team-group { margin-top: 40px; }
.team-group h2 { margin: 0 0 22px; padding-bottom: 10px; color: #233873; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; position: relative; }
.team-group h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 2px; background: #c2410c; }

/* The grid of cards. Each card is at least 220px wide; as many fit
   across as the screen allows, all the same width, 28px apart. */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }

/* One card: white, a light grey edge, rounded corners and a soft shadow.
   The body grows so every card in a row is the same height. */
.team-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #e3e5ea; border-radius: 12px; box-shadow: 0 3px 12px #16203c1f; scroll-margin-top: 24px; }

/* The photo area: a navy square. Photos fill it (cropped from the top, so
   faces stay in view) and zoom slightly on hover when they open a flyer. */
.team-photo { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #233873; }
.team-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .3s ease; }
a.team-photo { cursor: zoom-in; }
a.team-photo:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .team-photo img { transition: none; }
  a.team-photo:hover img { transform: none; }
}

/* No photo yet: the person's initials, large and gold on navy (8.6:1) */
.team-initials { position: absolute; inset: 0; display: grid; place-items: center; color: #ffd166; font-size: 64px; font-weight: 800; letter-spacing: .04em; }

/* The words under the photo. A gold line separates them from the photo. */
.team-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; border-top: 4px solid #ffd166; }

/* Name: navy, bold (12:1). Title: deep orange, bold (5.2:1). Bio: dark grey (7.5:1). */
.team-card-body h3 { margin: 0 0 6px; color: #233873; font-size: 20px; line-height: 1.25; }
.team-role { margin: 0 0 12px; color: #c2410c; font-size: 15px; font-weight: 700; line-height: 1.4; }
.team-bio { margin: 0 0 14px; color: #4a5163; font-size: 15px; line-height: 1.55; }

/* "View flyer": an outlined navy button pushed to the bottom of the card,
   so the buttons line up across a row. Fills navy with white text on hover
   and keyboard focus; the navy focus ring from section 11 also shows. */
.team-flyer-link { align-self: flex-start; margin-top: auto; padding: 8px 16px; border: 2px solid #233873; border-radius: 6px; color: #233873; font-size: 15px; font-weight: 700; text-decoration: none; }
.team-flyer-link:hover,
.team-flyer-link:focus-visible { background: #233873; color: #fff; }

/* Phones: cards a little closer together */
@media (max-width: 600px) {
  .team-grid { gap: 20px; }
}


/* =============================================================
   17. MORE BREATHING ROOM ON LARGE SCREENS, AND THE "LARGE PHOTO" LAYOUT
   CHANGED (version 25): new section.
   ============================================================= */

/* Large screens (1000px and wider), every inside page:
   - 56px of space between the menu bar and the page heading (was 36px)
   - 40px between the page heading and the photo and text (was 28px)
   Phones and tablets keep the tighter spacing, where screen space is short. */
@media (min-width: 1000px) {
  .page-content { padding-top: 56px; }
  .page-content h1 { margin-bottom: 40px; }
}

/* The "large photo" layout. A page file turns it on with
   $pageLayout = 'large-photo'; (see founder-exec-dir.php).
   - The whole page (heading, photo and text) is at most 1220px wide and
     centered, so on very wide screens it stops growing and the extra
     space is shared evenly on both sides.
   - The photo column can grow to 540px (other pages: 420px).
   - The photo can be up to 640px tall (other pages: 480px), so it isn't cropped.
   - The text column is at most 560px wide, about 62 characters a line (other pages: 70).
   To make the photo bigger or smaller, change 540px (and 1220px by the same
   amount, so the text keeps its width). To let the text run
   wider, change 560px in both places (here and the page heading below),
   or 1220px for the whole page. */
.page-content.large-photo { max-width: 1220px; } /* CHANGED (version 28): was 1160px */
.large-photo .two-col { grid-template-columns: minmax(260px, 540px) minmax(0, 1fr); gap: 56px; } /* CHANGED (version 28): photo was 480px */
.large-photo .two-col img { max-height: 640px; object-fit: contain; }
.large-photo .two-col .rich-text { max-width: 560px; }

/* CHANGED (version 26): where things sit in the large-photo layout.
   The photo fills the left column, top to bottom. On the right: the page
   heading on top, the text below it. No space between the heading row and
   the text row (the heading's own spacing takes care of that). */
.large-photo .two-col {
  grid-template-areas: "photo heading" "photo text";
  grid-template-rows: auto 1fr;
  row-gap: 0;
}
.large-photo .page-heading { grid-area: heading; }
.large-photo .page-photo { grid-area: photo; position: sticky; top: 24px; }
.large-photo .page-photo:empty { display: none; }
.large-photo .two-col .rich-text { grid-area: text; }

/* CHANGED (version 26): the page heading, centered over the text and as
   wide as the text, with 32px of space before the gold line and 32px after it. */
.large-photo .page-heading { max-width: 560px; margin: 0 0 32px; padding-bottom: 32px; text-align: center; position: relative; }

/* CHANGED (version 27): the "gold diamond" divider, under the page heading
   and under her message title (decoration only). Two thin gold lines fade
   in from the ends toward a small polished-gold diamond in the middle.
   - The line: transparent at the ends, bright gold (#e6b422) by 35% of the
     way in, light gold (#f5d76e) next to the diamond, with a 32px gap for it.
   - The diamond: a 10px square turned on its corner, shaded light to dark gold.
   To make the lines thicker, change "height: 2px". To make the diamond
   bigger, change both 10px values (and -4px to about half the new size, minus 1). */
.large-photo .page-heading::after,
.large-photo .rich-text > h2:first-child::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; width: auto; height: 2px; margin: 0; border-radius: 0;
  background: linear-gradient(90deg, transparent, #e6b422 35%, #f5d76e calc(50% - 16px),
    transparent calc(50% - 16px), transparent calc(50% + 16px),
    #f5d76e calc(50% + 16px), #e6b422 65%, transparent);
}
.large-photo .page-heading::before,
.large-photo .rich-text > h2:first-child::before {
  content: ""; position: absolute; left: calc(50% - 5px); bottom: -4px; width: 10px; height: 10px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #fff3b0, #e6b422 50%, #a67c00);
}

/* CHANGED (version 29): a polished gold frame around the photo, in the same
   gold shades as the diamond divider: dark gold in the corners, bright gold
   along the sides, and a light shine in the middle. The frame is 8px thick
   (the "padding") with a soft shadow. Photos should be cropped without a
   border of their own, so the gold frame sits right against the picture. */
.large-photo .page-photo img {
  display: block; width: 100%; height: auto; max-width: 100%;
  box-sizing: border-box; padding: 8px; border-radius: 6px;
  background: linear-gradient(135deg, #a67c00, #e6b422 18%, #f5d76e 38%, #fff3b0 50%, #f5d76e 62%, #e6b422 82%, #a67c00);
  box-shadow: 0 6px 20px #6b4f0030;
}

/* The first heading in the text (her message title): centered, as wide as
   the text, with the divider 24px below its words. The same 32px of space
   sits above it (below the page heading's divider) as below its own divider,
   before "Dear Friends". Its line breaks come from the content manager:
   Shift + Enter in the heading. */
.large-photo .rich-text > h2:first-child { position: relative; width: auto; margin: 0 0 32px; padding-bottom: 24px; text-align: center; }

/* CHANGED (version 32): the thin gold line under H3 headings (The House
   That JFF Built, Our Mission, ...) was removed. */

/* Medium-size screens: keep the photo a reasonable size beside the text */
@media (max-width: 1000px) {
  .large-photo .two-col { grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); column-gap: 36px; }
}

/* Phones: one column. The heading comes first, then the photo, then the text. */
@media (max-width: 720px) {
  .large-photo .two-col { grid-template-columns: minmax(0, 1fr); grid-template-areas: "heading" "photo" "text"; row-gap: 24px; }
  .large-photo .page-photo { position: static; }
  .large-photo .page-heading { margin-bottom: 0; padding-bottom: 24px; }
  .large-photo .two-col img { max-height: 420px; }
}


/* =============================================================
   18. THE GOLD THEME ACROSS THE SITE
   CHANGED (version 30): new section. The same gold as the Founder's page:
   - H2 headings (the main headings inside a page): the gold diamond
     divider under them, as wide as the heading's words.
   - H3 and smaller headings: no line (CHANGED, version 32: removed).
   - Photos and flyers on inside pages, stories and workshops: a polished
     gold frame. Card pictures on the News & Events and Workshops lists
     get a thinner one.
   - H1 page titles: the same gold diamond divider, as wide as the title
     (CHANGED, version 31).
   Not changed: the home page, the footer, team cards, and the dark flyer viewer.
   ============================================================= */

/* CHANGED (version 31): H1 page titles get the gold diamond divider too,
   exactly as wide as the title's words, 20px below them. (The Founder's
   page keeps its own wider, centered divider from section 17.) */
.page-content h1:not(.page-heading) { position: relative; width: fit-content; max-width: 100%; padding-bottom: 20px; }
.page-content h1:not(.page-heading)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #e6b422 30%, #f5d76e calc(50% - 16px),
    transparent calc(50% - 16px), transparent calc(50% + 16px),
    #f5d76e calc(50% + 16px), #e6b422 70%, transparent);
}
.page-content h1:not(.page-heading)::before {
  content: ""; position: absolute; left: calc(50% - 5px); bottom: -4px; width: 10px; height: 10px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #fff3b0, #e6b422 50%, #a67c00);
}

/* ── H2: the gold diamond divider ──
   Which H2s: headings in page text, "Latest updates" / "Upcoming workshops",
   and the group headings on the team page. The heading is only as wide as
   its words (but at least 240px, so short headings still get a proper
   divider), with the divider 18px below the words. */
.rich-text h2,
.list-heading,
.team-group h2 { position: relative; width: fit-content; min-width: min(100%, 240px); max-width: 100%; padding-bottom: 18px; }

/* The two thin lines, fading in from the ends toward the diamond.
   (Replaces the short orange lines.) */
.rich-text h2::after,
.list-heading::after,
.team-group h2::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; width: auto; height: 2px; margin: 0; border-radius: 0;
  background: linear-gradient(90deg, transparent, #e6b422 30%, #f5d76e calc(50% - 14px),
    transparent calc(50% - 14px), transparent calc(50% + 14px),
    #f5d76e calc(50% + 14px), #e6b422 70%, transparent);
}

/* The diamond in the middle: an 8px square turned on its corner */
.rich-text h2::before,
.list-heading::before,
.team-group h2::before {
  content: ""; position: absolute; left: calc(50% - 4px); bottom: -3px; width: 8px; height: 8px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #fff3b0, #e6b422 50%, #a67c00);
}

/* The heading row on News & Events lines up with the heading's text, not its divider */
.list-heading-row { align-items: flex-end; }

/* ── Gold frames on photos ──
   Inside pages, stories and workshops: an 8px polished gold frame (the
   "padding"), dark gold in the corners and a light shine through the
   middle, with a soft shadow. Replaces the thin orange border on flyers. */
.two-col img,
.item-article .two-col img {
  box-sizing: border-box; padding: 8px; border: 0; border-radius: 6px;
  background: linear-gradient(135deg, #a67c00, #e6b422 18%, #f5d76e 38%, #fff3b0 50%, #f5d76e 62%, #e6b422 82%, #a67c00);
  box-shadow: 0 6px 20px #6b4f0030;
}

/* Card pictures on the News & Events and Workshops lists: a thinner,
   4px gold frame, so the small pictures aren't crowded */
.item-card-media img { box-sizing: border-box; padding: 4px; border: 0;
  background: linear-gradient(135deg, #a67c00, #e6b422 18%, #f5d76e 38%, #fff3b0 50%, #f5d76e 62%, #e6b422 82%, #a67c00); }


/* =============================================================
   19. PHOTO SLIDESHOW
   CHANGED (version 33): new section. When a page has a second or third
   photo (in the content manager), the photos sit stacked in the same spot
   and photo-fader.js fades from one to the next every 5 seconds.
   ============================================================= */

/* The photos share one spot. The spot is as tall as the tallest photo,
   so the text beside it doesn't jump when the photo changes. Each photo
   is centered at the top of the spot. */
.photo-fader { display: grid; justify-items: center; align-items: start; }

/* CHANGED (version 35): each photo sits in a frame of the same size: as
   wide as the column, and as tall as the tallest photo's shape (set by
   page.php as --slide-ratio), but never taller than 640px. The frame is
   the polished gold one (8px), with the photo inside.
   A frame is see-through until its photo is the one showing, then fades in
   over 1.2 seconds while the last one fades out. To make the fade slower
   or faster, change 1.2s. */
.two-col .photo-fader .fade-slide {
  grid-area: 1 / 1; position: relative; box-sizing: border-box; overflow: hidden;
  width: min(100%, calc(640px * var(--slide-ratio, .8))); aspect-ratio: var(--slide-ratio, .8);
  padding: 8px; border-radius: 6px;
  background: linear-gradient(135deg, #a67c00, #e6b422 18%, #f5d76e 38%, #fff3b0 50%, #f5d76e 62%, #e6b422 82%, #a67c00);
  box-shadow: 0 6px 20px #6b4f0030;
  opacity: 0; transition: opacity 1.2s ease-in-out;
}
.two-col .photo-fader .fade-slide.is-active { opacity: 1; }
.two-col .photo-fader .fade-slide:not(.is-active) { pointer-events: none; }

/* Behind the photo: a warm cream. Photos made to the same shape fill the
   frame completely; if one is a little off, cream shows at its edges
   instead of a gap. */
.photo-fader .slide-fill { position: absolute; inset: 8px; background: #f5ecda; }

/* The photo itself: whole, centered in the frame, never stretched or cut.
   (Turns off the gold frame photos get elsewhere: the frame is the box around it.) */
.two-col .photo-fader .slide-photo {
  position: relative; display: block; width: 100%; height: 100%; max-width: none; max-height: none;
  object-fit: contain; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
}

/* CHANGED (version 36): the navy caption band under the FIRST photo, when
   that photo is shorter than the others. The photo sits at the top of the
   frame, whole, and the navy band fills the rest of the frame below it.
   The caption is centered: its first line in gold capitals (8.6:1 on navy),
   the other lines in white (12:1). A small gold diamond sits above it. */
.two-col .photo-fader .fade-slide.has-band { display: flex; flex-direction: column; margin: 0; }
.two-col .photo-fader .has-band .slide-photo { position: static; flex: none; height: auto; }
.photo-fader .slide-band {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 24px 20px; background: #233873; text-align: center;
}
.photo-fader .slide-band::before {
  content: ""; width: 10px; height: 10px; margin-bottom: 8px; transform: rotate(45deg);
  background: linear-gradient(135deg, #fff3b0, #e6b422 50%, #a67c00);
}
.photo-fader .band-lead { color: #ffd166; font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.photo-fader .band-line { color: #fff; font-size: 18px; font-weight: 600; line-height: 1.35; }

/* Reduced motion: no fade (the slideshow also starts paused for them) */
@media (prefers-reduced-motion: reduce) {
  .two-col .photo-fader .fade-slide { transition: none; }
}

/* CHANGED (version 37): the Pause / Play button is a gold bar attached to
   the bottom of the photo frame, exactly as wide as the frame, so it looks
   like part of it. The photos and the bar share a wrapper (.fader-wrap)
   that's as wide as the frame and carries the shadow for both.
   Colors: dark navy text (#1b2a57) on bright-to-light gold, at least 7.2:1
   contrast everywhere on the bar. On hover and keyboard focus it turns
   navy with gold text (7.7:1), plus a navy focus ring. */
.fader-wrap {
  width: min(100%, calc(640px * var(--slide-ratio, .8))); margin: 0 auto;
  border-radius: 6px; box-shadow: 0 6px 20px #6b4f0030;
}
.fader-wrap .photo-fader { justify-items: stretch; }
.two-col .fader-wrap .photo-fader .fade-slide { width: 100%; box-shadow: none; border-radius: 6px 6px 0 0; }
.fader-toggle {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin: 2px 0 0; padding: 10px 16px; border: 0; border-radius: 0 0 6px 6px; /* 2px gap between the photo frame and the bar */
  border-top: 1px solid #a67c00;
  background: linear-gradient(90deg, #e6b422, #f5d76e 30%, #fff3b0 50%, #f5d76e 70%, #e6b422);
  color: #1b2a57; font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .02em; cursor: pointer;
}
.fader-toggle[hidden] { display: none; }
.fader-toggle:hover,
.fader-toggle:focus-visible { background: #233873; color: #ffd166; }
.fader-toggle:focus-visible { outline: 3px solid #233873; outline-offset: 3px; }

/* CHANGED (version 38): the circles, one per photo, centered in the gold
   bar (version 39). Each is a 14px circle with a 2px black outline. The circle for the photo showing fills in black,
   fading in and out over 1.2 seconds along with its photo. */
.fader-dots { display: flex; justify-content: center; gap: 12px; }
.fader-dot { width: 14px; height: 14px; box-sizing: border-box; border: 2px solid #000; border-radius: 50%; background: transparent; transition: background-color 1.2s ease-in-out; }
.fader-dot.is-on { background: #000; }

/* CHANGED (version 39): the gold bar is taller and holds the circles on top,
   with the icon and words under them. On hover and keyboard focus the bar
   turns navy, and the circles turn gold to match the words. */
.fader-toggle { flex-direction: column; gap: 8px; padding: 12px 16px; }
.fader-words { display: flex; align-items: center; justify-content: center; gap: 10px; }
.fader-toggle:hover .fader-dot,
.fader-toggle:focus-visible .fader-dot { border-color: #ffd166; }
.fader-toggle:hover .fader-dot.is-on,
.fader-toggle:focus-visible .fader-dot.is-on { background: #ffd166; }
@media (prefers-reduced-motion: reduce) {
  .fader-dot { transition: none; }
}

/* The little icon before the words: two bars (pause) while it's playing,
   a triangle (play) once it's paused. Drawn with CSS, in the text color. */
.fader-icon { position: relative; width: 12px; height: 14px; flex: none; }
.fader-icon::before,
.fader-icon::after { content: ""; position: absolute; top: 0; width: 4px; height: 14px; background: currentColor; }
.fader-icon::before { left: 0; }
.fader-icon::after { right: 0; }
.fader-toggle.is-paused .fader-icon::after { display: none; }
.fader-toggle.is-paused .fader-icon::before {
  left: 1px; width: 0; height: 0; background: none;
  border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor;
}


/* =============================================================
   20. HOME PAGE PHOTO GRID
   CHANGED (version 40): new section. Six photos edge to edge across the
   page, 3 across and 2 rows, with thin white lines between them.
   Every photo is trimmed to the same shape (3 wide by 2 tall), keeping
   the middle-top of the photo, where faces usually are.
   ============================================================= */
.photo-grid { background: #fff; }
.photo-grid ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 0; padding: 0; list-style: none; }
.photo-grid li { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #e9eaeb; }
.photo-grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

/* The optional photo credit: small, dark grey (7.5:1), right under the grid */
.photo-grid-credit { margin: 0; padding: 6px 16px 8px; color: #4a5163; font-size: 12px; text-align: right; }
.photo-grid-credit a { color: #233873; text-decoration: underline; text-underline-offset: 2px; }
.photo-grid-credit a:hover { color: #c2410c; }
.photo-grid-credit a:focus-visible { outline: 2px solid #233873; outline-offset: 2px; }

/* Phones: 2 across (3 rows) */
@media (max-width: 720px) {
  .photo-grid ul { grid-template-columns: repeat(2, 1fr); }
}


/* =============================================================
   21. CONTACT PAGE FORM
   CHANGED (version 41): new section, for contact.php. Text on the left,
   the form on the right in a white box with a gold top edge.
   ============================================================= */
.contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; }
.contact-form-box { padding: 28px 30px 30px; background: #fff; border: 1px solid #e3e5ea; border-top: 6px solid #e6b422; border-radius: 10px; box-shadow: 0 4px 16px #16203c14; }
.contact-form-heading { margin: 0 0 18px; color: #233873; font-size: 24px; }

/* Each field: its label in bold navy above the box. "(required)" is part of the
   label, so it doesn't rely on color or a star. */
.contact-form .field { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 6px; color: #233873; font-size: 16px; font-weight: 700; }
.contact-form .req, .contact-form .opt { color: #4a5163; font-size: 14px; font-weight: 400; }
.field-hint { margin: -2px 0 8px; color: #4a5163; font-size: 14px; line-height: 1.45; }

/* The boxes: dark grey edges (contrast 4.6:1 against white, so they're easy to see),
   and a thick navy ring when you're typing in one */
.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block; box-sizing: border-box; width: 100%; padding: 11px 12px;
  border: 2px solid #6b7280; border-radius: 6px; background: #fff; color: #1f2937; font: inherit; font-size: 16px;
}
.contact-form textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible { outline: 3px solid #233873; outline-offset: 2px; border-color: #233873; }

/* A field with a mistake: a thicker dark red edge and a message with a warning
   sign above the box (dark red, 6.9:1), so it's not shown by color alone */
.contact-form [aria-invalid="true"] { border-color: #b42318; border-width: 3px; }
.field-error { margin: 0 0 8px; color: #b42318; font-size: 15px; font-weight: 700; }

/* The Send button: solid orange with white text (5.2:1), like the site's
   other main buttons; white with navy text on hover and keyboard focus */
.contact-submit { margin-top: 6px; padding: 13px 30px; border: 2px solid #c2410c; border-radius: 999px; background: #c2410c; color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.contact-submit:hover,
.contact-submit:focus-visible { background: #fff; color: #233873; border-color: #233873; }
.contact-submit:focus-visible { outline: 3px solid #233873; outline-offset: 3px; }
.contact-form .contact-submit + .field-hint { margin-top: 16px; }
.contact-form .field-hint a { color: #233873; font-weight: 700; }

/* The message box at the top: thank-you (green edge) or problems (red edge) */
.form-status { margin-bottom: 24px; padding: 18px 20px; border-radius: 8px; border-left: 6px solid; }
.form-status h2 { margin: 0 0 8px; font-size: 20px; color: #1f2937; }
.form-status p { margin: 0 0 8px; }
.form-status ul { margin: 0; padding-left: 20px; }
.form-status a { color: #233873; font-weight: 700; }
.form-status:focus { outline: 3px solid #233873; outline-offset: 3px; }
.form-sent { background: #ecfdf3; border-color: #067647; }
.form-problem { background: #fef3f2; border-color: #b42318; }

/* The newsletter checkbox: a large, easy-to-hit box beside its label */
.contact-form .check-field { display: flex; align-items: flex-start; gap: 12px; }
.contact-form .check-field input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; padding: 0; accent-color: #233873; }
.contact-form .check-field label { margin: 0; font-weight: 400; color: #1f2937; line-height: 1.45; }
.contact-form .check-field input:focus-visible { outline: 3px solid #233873; outline-offset: 2px; }

/* The robot trap: moved off the screen (not display:none, which some robots notice) */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Phones: one column, form under the text */
@media (max-width: 720px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contact-form-box { padding: 22px 18px; }
}


/* CHANGED (version 42): policy pages (Privacy Policy): the text stays at a
   comfortable reading width (about 72 characters a line), with a little
   more space between sections */
.policy-text { max-width: 72ch; }
.policy-text p { line-height: 1.7; }
.policy-text h2 { margin-top: 36px; }
.policy-text code { padding: 1px 5px; background: #f1f2f4; border-radius: 4px; font-size: .95em; }


/* =============================================================
   22. GOLD FRAMES AROUND THE MENU BAR, THE CONTENT AND THE FOOTER
   CHANGED (version 43): new section. The same polished gold as the frame
   around photos (dark gold corners, bright gold sides, a light shine in
   the middle), drawn as the border of each of the three big sections,
   so the page reads as three framed panels.
   - Frame thickness: --frame-size (6px). Phones use 4px.
   - Space between the panels: --frame-gap (6px of white).
   To turn the frames off, delete this whole section.
   ============================================================= */
.site { --frame-size: 4px; --frame-gap: 6px; padding: var(--frame-gap); background: #fff; }

.site > .topbar,
.site > main,
.site > footer {
  border: var(--frame-size) solid #c2410c; /* Donate button orange */
}
.site > main,
.site > footer { margin-top: var(--frame-gap); }

@media (max-width: 720px) {
  .site { --frame-size: 4px; --frame-gap: 4px; }
}
/* The home page's services section (the four cards under the big photo):
   an orange line across its top, the same orange and thickness as the frames */
.services { border-top: var(--frame-size, 6px) solid #c2410c; }
/* The logo: a 2px white line set 2px out, on mouse hover and on keyboard focus,
   matching the menu links */
.brand:hover,
.brand:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }
/* Every orange button and link-button: a 1px white border around it.
   (Donate, the home page's hero buttons, the cards' Learn More links,
   the footer's Get Support, and the Contact form's Send button.) */
.donate, .outline, .donate.small, .card-content a, .contact-submit { border: 1px solid #fff; }
/* A heading with nothing in it never shows (or its gold divider) */
.rich-text h2:empty, .rich-text h3:empty, .rich-text h4:empty { display: none; }

/* =============================================================
   23. TEAM MEMBER PAGES (version 44, November 21, 2026)
   Paste everything below at the very end of styles.css.
   ============================================================= */

/* The card's "Read more about [name]" button: an outlined navy button
   across the bottom of the card, centered; it fills navy with white text
   on hover and keyboard focus */
.team-more-link {
  align-self: stretch; margin-top: auto; padding: 10px 14px;
  border: 2px solid #233873; border-radius: 6px;
  color: #233873; font-size: 15px; font-weight: 700; line-height: 1.35;
  text-align: center; text-decoration: none;
}
.team-more-link:hover,
.team-more-link:focus-visible { background: #233873; color: #fff; }

/* A team member's own page (team-member.php): a "Back to Meet Our Team"
   link, then their photo on the left and their name, title, group and
   biography on the right */
.member-back { margin: 0 0 18px; }
.member-back a { color: #233873; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.member-back a:hover { color: #c2410c; }
.member-layout { grid-template-columns: minmax(220px, 380px) minmax(0, 1fr); gap: 48px; align-items: start; }

/* No photo yet: their initials, gold on navy, in a square */
.member-initials { display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 6px; background: #233873; color: #ffd166; font-size: 96px; font-weight: 800; letter-spacing: .04em; }

/* Under the name: their title in bold orange (5.2:1), then their group in grey (7.5:1) */
.member-role { margin: 0 0 4px; color: #c2410c; font-size: 20px; font-weight: 700; line-height: 1.35; }
.member-group { margin: 0 0 24px; color: #4a5163; font-size: 15px; }
.member-bio { max-width: 68ch; }

/* Phones: photo on top, a bit smaller */
@media (max-width: 720px) {
  .member-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .member-photo { max-width: 320px; }
}

/* Contact form: "What is this about?" is a group of checkboxes (version 45).
   The group has no border; its question looks like the other labels.
   The boxes sit in two columns on wider screens, one on phones. */
.contact-form .check-group { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.contact-form .check-group legend { margin-bottom: 10px; padding: 0; color: #233873; font-size: 16px; font-weight: 700; }
.contact-form .check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.contact-form .check-grid .check-field { margin: 0; }
@media (max-width: 720px) {
  .contact-form .check-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Roomier checkboxes on the Contact form (version 46): each box is 24 by 24
   (the WCAG 2.2 minimum target size), with 16px between rows and 24px
   between columns, on every screen size */
.contact-form .check-grid { gap: 16px 24px; }
.contact-form .check-field input { width: 24px; height: 24px; margin-top: 0; }
.contact-form .check-field label { padding-top: 1px; }