/*
Theme Name: Wellington Lions Club
Theme URI: https://wellingtonlions.co.za/
Author: Dumel
Author URI: https://dumel.co.za/
Description: Block theme for the Wellington Lions Club. Page patterns for Home, What We Do, Honour Roll and Contact Us, plus news templates.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.8
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wellington-lions
*/

:root {
  --wl-line: #E3E8EF;
  --wl-row: #E8EDF3;
  --wl-on-navy: #D6E2F0;
  --wl-foot-text: #DCE6F2;
  --wl-shadow: 0 1px 3px rgba(20, 33, 61, .08);
  /* icons, drawn with CSS mask so they take the colour of `background` */
  --wl-i-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
  --wl-i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
  --wl-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  --wl-i-food: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9h18l-2 12H5L3 9z'/%3E%3Cpath d='M8 9V6a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
  --wl-i-clothes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3l-5 4 3 4 2-1v11h8V10l2 1 3-4-5-4a4 4 0 0 1-8 0z'/%3E%3C/svg%3E");
  --wl-i-award: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='6'/%3E%3Cpath d='M8.5 14L7 22l5-3 5 3-1.5-8'/%3E%3C/svg%3E");
  --wl-i-camp: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20L12 4l9 16H3z'/%3E%3Cpath d='M12 20v-6'/%3E%3C/svg%3E");
  --wl-i-facebook: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z'/%3E%3C/svg%3E");
}

/* ---------- page rhythm ---------- */
/* WordPress puts a gap above each top-level block. Sections must touch. */
.wp-site-blocks > main,
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-template-part { margin-block-start: 0; }
.wp-block-post-content > .wl-section,
.wp-block-post-content > .alignfull { margin-block-start: 0; }
.wl-section { padding-block: clamp(56px, 8vw, 96px); }
.wl-section.wl-tight-top { padding-top: 0; }
.wl-section.wl-tight-top-s { padding-top: 32px; }

/* ---------- type helpers ---------- */
.wl-kicker { font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--blue); margin-bottom: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.wl-more { font-weight: 700; }
.wl-more a { text-decoration: none; }
.wl-more a:hover { text-decoration: underline; }
/* Arrows come from CSS: the site's database cannot store the arrow character
   and saves it as "?". */
.wl-more a::after, .wp-block-post-excerpt__more-link::after { content: "\00a0\2192"; }
.wl-more.wl-back a::after { content: none; }
.wl-more.wl-back a::before { content: "\2190\00a0"; }
.wl-muted { color: var(--wp--preset--color--muted); }

/* ---------- images ---------- */
.wp-block-image { margin-block: 0; }
.wp-block-image img { width: 100%; height: auto; }

/* ---------- buttons ---------- */
.wp-block-button__link { transition: background-color .15s ease, color .15s ease; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(255, 255, 255, .12); }

/* ---------- bands (sections with a background colour) ---------- */
.wl-band-navy { background: var(--wp--preset--color--navy); color: #fff; }
.wl-band-navy h1, .wl-band-navy h2, .wl-band-navy h3 { color: #fff; }
.wl-band-navy p { color: var(--wl-on-navy); }
.wl-band-navy .wl-kicker, .wl-band-navy .wl-gold-heading { color: var(--wp--preset--color--gold); }
.wl-band-navy .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--ink); }
.wl-band-navy .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: #fff; }
.wl-band-navy .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; }
.wl-band-gold { background: var(--wp--preset--color--gold); color: var(--wp--preset--color--ink); }
.wl-band-gold .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--wp--preset--color--navy); }
.wl-band-gold .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: var(--wp--preset--color--navy-dark); }
.wl-band-gold .wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(255, 255, 255, .35); }
.wl-band-soft { background: var(--wp--preset--color--soft); }

/* ---------- home: hero ---------- */
.wl-hero { padding-top: clamp(48px, 7vw, 88px); padding-bottom: 0; }
.wl-hero h1 { font-size: var(--wp--preset--font-size--huge); line-height: 1.04; }
.wl-hero .wl-cols { align-items: flex-end !important; gap: 28px 64px; }
.wl-hero .wl-lead { font-size: 19px; line-height: 1.6; }
.wl-hero-photo { position: relative; z-index: 1; margin-top: clamp(40px, 5vw, 64px) !important; margin-bottom: -110px; }
.wl-hero-photo img { border-radius: 18px; box-shadow: 0 18px 40px rgba(20, 33, 61, .25); }

/* ---------- home: facts row ---------- */
.wl-facts { padding-top: 150px; padding-bottom: 72px; }
.wl-facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.wl-facts-grid > * { margin: 0; }
.wl-fact { border-top: 3px solid var(--wp--preset--color--gold); padding-top: 16px; }
.wl-fact > * { margin: 0; }
.wl-fact-num { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 34px; line-height: 1.2; color: var(--wp--preset--color--blue); }
.wl-fact p:not(.wl-fact-num) { font-size: 17px; color: var(--wp--preset--color--muted); margin-top: 4px; }

/* ---------- panels and lists ---------- */
.wl-panel { background: var(--wp--preset--color--mist); border-radius: 18px; padding: 32px; }
.wl-panel > * { margin-block: 0; }
.wl-panel > * + * { margin-top: 14px; }
.wl-panel-white { background: #fff; border-radius: 18px; padding: 28px 32px; }
.wl-panel-gold { background: var(--wp--preset--color--gold); }
.wl-panel-gold .wl-kicker { color: var(--wp--preset--color--ink); }
.wl-ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.wl-ticks li { position: relative; padding-left: 30px; }
.wl-ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; background: var(--wp--preset--color--blue);
  -webkit-mask: var(--wl-i-check) center / contain no-repeat; mask: var(--wl-i-check) center / contain no-repeat;
}

/* ---------- icon rows (meeting details) ---------- */
.wl-info { position: relative; padding-left: 42px; }
.wl-info > * { margin: 0; }
.wl-info::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; background: var(--wp--preset--color--blue);
  -webkit-mask: var(--wl-icon) center / contain no-repeat; mask: var(--wl-icon) center / contain no-repeat;
}
.wl-info-when { --wl-icon: var(--wl-i-calendar); }
.wl-info-where { --wl-icon: var(--wl-i-pin); }
.wl-info-label { font-weight: 700; }
.wl-panel-white .wl-info + .wl-info { margin-top: 20px; }

/* ---------- cards (projects) ---------- */
.wl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.wl-cards > * { margin: 0; }
.wl-card { position: relative; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--wl-shadow); padding-bottom: 24px; }
.wl-card > * { margin: 0; }
.wl-card .wp-block-image img { border-radius: 0; }
.wl-card > :not(.wp-block-image) { margin-inline: 22px; }
.wl-card .wl-kicker { font-size: 14px; letter-spacing: .1em; margin-top: 20px; }
.wl-card h3 { margin-top: 8px; }
.wl-card h3 a { color: var(--wp--preset--color--ink); text-decoration: none; }
.wl-card h3 a::after { content: ""; position: absolute; inset: 0; }
.wl-card:hover h3 a { color: var(--wp--preset--color--blue); }

/* ---------- tiles (where the money goes) ---------- */
.wl-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.wl-tiles > * { margin: 0; }
.wl-tile { background: var(--wp--preset--color--mist); border-radius: 16px; padding: 28px; }
.wl-tile > * { margin: 0; }
.wl-tile > * + * { margin-top: 10px; }
.wl-tile::before {
  content: ""; display: block; width: 32px; height: 32px; margin-bottom: 14px; background: var(--wp--preset--color--blue);
  -webkit-mask: var(--wl-icon) center / contain no-repeat; mask: var(--wl-icon) center / contain no-repeat;
}
.wl-tile p { font-size: 17px; line-height: 1.55; color: #333F55; }
.wl-i-food { --wl-icon: var(--wl-i-food); }
.wl-i-clothes { --wl-icon: var(--wl-i-clothes); }
.wl-i-award { --wl-icon: var(--wl-i-award); }
.wl-i-camp { --wl-icon: var(--wl-i-camp); }

/* ---------- partner chips ---------- */
.wl-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; font-weight: 600; }
.wl-chips li { background: #fff; border: 1px solid #D5DEEA; border-radius: 999px; padding: 12px 22px; }

/* ---------- two text blocks side by side ---------- */
.wl-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px 72px; }
.wl-two > * { margin: 0; }
.wl-two h2 { font-size: clamp(26px, 2.8vw, 34px); }
.wl-h-small { font-size: clamp(26px, 2.8vw, 34px) !important; }

/* ---------- section headings with text or a link on the right ---------- */
.wl-head { gap: 16px 48px; margin-bottom: 40px; }
.wl-head > * { margin: 0; }
.wl-head-text > * { margin: 0; }
.wl-head-text > * + * { margin-top: 14px; }

/* ---------- news (query loop) ---------- */
.wl-news-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; gap: 40px 32px !important; }
.wl-news-grid > li { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.wl-news-grid > li > * { margin: 0; }
.wl-news-grid .wp-block-post-featured-image img { border-radius: 14px; }
.wl-news-grid .wp-block-post-date { font-size: 15px; font-weight: 600; color: var(--wp--preset--color--muted); }
.wl-news-grid .type-page .wp-block-post-date { display: none; } /* pages found by a search have no news date */
.wl-news-grid .wp-block-post-title { font-size: 22px; font-weight: 700; line-height: 1.25; }
.wl-news-grid .wp-block-post-title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.wl-news-grid .wp-block-post-title a:hover { color: var(--wp--preset--color--blue); }
.wl-news-grid .wp-block-post-excerpt { font-size: 17px; line-height: 1.6; color: #333F55; }
.wl-news-grid .wp-block-post-excerpt__excerpt { margin: 0; }
.wl-news-grid .wp-block-post-excerpt__more-text { margin: 10px 0 0; }
.wl-news-grid .wp-block-post-excerpt__more-link { font-weight: 700; text-decoration: none; }
.wl-pagination { margin-top: 48px; gap: 16px; font-weight: 700; }
.wl-pagination a { text-decoration: none; }

/* ---------- page hero (inner pages, news) ---------- */
.wl-page-hero { padding-block: clamp(48px, 6vw, 80px); }
.wl-page-hero > * { margin-block: 0; }
.wl-page-hero > * + * { margin-top: 18px; }
/* The intro line stays at the left edge of the content and about 760px wide.
   A max-width would centre it (the constrained layout centres its children). */
.wl-page-hero > p:not(.wl-kicker),
.wl-page-hero .wp-block-term-description { font-size: 19px; line-height: 1.6; padding-right: max(0px, calc(min(100%, var(--wp--style--global--content-size)) - 760px)); }

/* ---------- single news post ---------- */
.wl-post-meta { gap: 6px 16px; font-weight: 600; color: var(--wl-on-navy); }
.wl-band-navy .wp-block-term-description { color: var(--wl-on-navy); }
.wl-post-meta a { color: var(--wp--preset--color--gold); text-decoration: none; }
.wl-post-image img { border-radius: 18px; }
.wl-post-body { padding-top: clamp(40px, 5vw, 64px); }
.wl-post-body .wp-block-post-content img { border-radius: 12px; height: auto; }
.wl-post-body .wp-block-post-content { font-size: 18px; }

/* ---------- honour roll ---------- */
.wl-roll-grid { columns: 340px 3; column-gap: 28px; }
.wl-roll-grid > * { margin: 0 0 28px !important; }
.wl-decade { break-inside: avoid; background: #fff; border-radius: 16px; padding: 26px 28px 18px; box-shadow: var(--wl-shadow); }
.wl-decade > * { margin: 0; }
.wl-decade h2 { font-size: 30px; color: var(--wp--preset--color--blue); padding-bottom: 12px; border-bottom: 3px solid var(--wp--preset--color--gold); }
.wl-roll { margin: 0; }
.wl-roll table { width: 100%; border-collapse: collapse; font-size: 17px; }
.wl-roll td { border: 0; border-bottom: 1px solid var(--wl-row); padding: 11px 0; vertical-align: top; }
.wl-roll td:first-child { color: var(--wp--preset--color--muted); padding-right: 16px; }
.wl-roll td:last-child { font-weight: 700; text-align: right; }

/* ---------- contact ---------- */
.wl-stack { display: flex; flex-direction: column; gap: 20px; }
.wl-stack > * { margin: 0 !important; }
.wl-person { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 21px; }
.wl-contact-card { font-size: 17px; }
.wl-form-card { background: #fff; border: 1px solid var(--wl-line); border-radius: 18px; padding: clamp(24px, 3vw, 36px); box-shadow: 0 10px 30px rgba(20, 33, 61, .08); }
.wl-form-card > h2 { font-size: 28px; margin: 0 0 18px; }

/* Contact Form 7. The form keeps the plugin's own markup; only the look is set here. */
.wpcf7 form > p, .wpcf7 form label { margin: 0 0 18px; }
.wpcf7 label { display: block; font-weight: 600; font-size: 16px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
  display: block; width: 100%; box-sizing: border-box; margin-top: 6px; font: inherit; font-size: 17px; font-weight: 400;
  color: var(--wp--preset--color--ink); background: #fff; border: 1.5px solid #C5D0DE; border-radius: 10px; padding: 13px 14px;
}
.wpcf7 textarea { height: 150px; }
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 2px solid var(--wp--preset--color--blue); outline-offset: 1px; border-color: var(--wp--preset--color--blue); }
.wpcf7 .wpcf7-submit {
  font: inherit; font-weight: 700; font-size: 17px; color: #fff; background: var(--wp--preset--color--blue);
  border: 0; border-radius: 999px; padding: 14px 28px; cursor: pointer;
}
.wpcf7 .wpcf7-submit:hover { background: var(--wp--preset--color--navy); }
.wpcf7 .wpcf7-response-output { margin: 12px 0 0 !important; border-radius: 10px; padding: 12px 14px !important; }
.wpcf7 .wpcf7-spinner { vertical-align: middle; }

/* ---------- map ---------- */
.wl-map iframe { display: block; width: 100%; height: clamp(300px, 34vw, 400px); border: 0; border-radius: 18px; }
/* in the editor, let a click select the block instead of moving the map */
.editor-styles-wrapper .wl-map iframe { pointer-events: none; }

/* ---------- header ---------- */
.wl-header { padding-block: 14px; position: relative; z-index: 20; border-top: 5px solid var(--wp--preset--color--gold); border-bottom: 1px solid var(--wl-line); background: #fff; }
.wl-header-inner { gap: 24px; }
.wl-brand { gap: 14px; min-width: 0; }
.wl-logo { display: block; flex: none; line-height: 0; }
.wl-logo img { width: 60px; height: auto; }
.wl-brand-text { gap: 2px; }
.wl-brand .wp-block-site-title { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 22px; line-height: 1.15; margin: 0; white-space: nowrap; }
.wl-brand .wp-block-site-title a { color: var(--wp--preset--color--blue); text-decoration: none; }
.wl-brand-sub { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--muted); margin: 0; line-height: 1.2; }
.wl-nav { font-size: 17px; font-weight: 600; gap: 6px 26px; }
/* Link colours are set on the menu item (li), not on the link: WordPress's own
   rule makes every menu link "color: inherit" and wins over a rule on the link. */
.wl-nav a { text-decoration: none; }
.wl-nav .wp-block-navigation-item { color: var(--wp--preset--color--ink); }
.wl-nav .wp-block-navigation-item:hover,
.wl-nav .wp-block-navigation-item.current-menu-item { color: var(--wp--preset--color--blue); }
.wl-nav .wp-block-navigation-item__content { padding: 6px 0; border-bottom: 3px solid transparent; }
.wl-nav .current-menu-item > a { border-bottom-color: var(--wp--preset--color--gold); }
.wl-nav .wl-nav-cta.wp-block-navigation-item,
.wl-nav .wl-nav-cta.wp-block-navigation-item:hover { color: #fff; }
.wl-nav .wl-nav-cta.wp-block-navigation-item.current-menu-item { color: var(--wp--preset--color--gold); }
.wl-nav .wl-nav-cta > a { background: var(--wp--preset--color--blue); padding: 11px 20px; border-radius: 999px; border-bottom: 0; }
.wl-nav .wl-nav-cta > a:hover,
.wl-nav .wl-nav-cta.current-menu-item > a { background: var(--wp--preset--color--navy); }

/* open mobile menu: full-width rows with large text */
/* !important: WordPress's own rule for the open menu is more specific. Without
   this the menu is white and the links touch the left edge. */
.wl-nav .wp-block-navigation__responsive-container.is-menu-open { background-color: #fff !important; color: var(--wp--preset--color--ink) !important; padding: 0 24px !important; }
.wl-nav .is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch !important; padding-top: 72px !important; }
.wl-nav .is-menu-open .wp-block-navigation__container { align-items: stretch !important; justify-content: flex-start !important; gap: 0 !important; width: 100%; }
.wl-nav .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--wl-line); }
.wl-nav .is-menu-open .wp-block-navigation-item__content {
  display: block; width: 100%; padding: 16px 0 !important; text-align: left; border: 0;
  font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: 28px; line-height: 1.1;
}
/* In the open menu WordPress forces "color: inherit !important" on every item,
   so the blue goes on the link itself. */
.wl-nav .is-menu-open .wp-block-navigation-item > a:hover,
.wl-nav .is-menu-open .current-menu-item > a,
.wl-nav .is-menu-open .wl-nav-cta > a { color: var(--wp--preset--color--blue) !important; }
.wl-nav .is-menu-open .wl-nav-cta > a { background: none; border-radius: 0; }
.wl-nav .wp-block-navigation__responsive-container-close { top: 16px !important; width: 44px; height: 44px; display: grid; place-items: center; }

/* WordPress shows the hamburger only below 600px. The menu no longer fits
   beside the club name below about 1100px (measured: it needs about 1045px). */
@media (max-width: 1099px) {
  .wl-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .wl-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
  .wl-nav .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; display: grid; place-items: center; }
}

/* ---------- footer ---------- */
.wl-footer { background: var(--wp--preset--color--navy-dark); color: var(--wl-foot-text); padding-top: 72px; font-size: 16px; }
.wl-footer a { color: var(--wl-foot-text); text-decoration: none; }
.wl-footer a:hover { color: var(--wp--preset--color--gold); }
.wl-footer-cols { gap: 40px; }
.wl-footer-cols .wp-block-column > * { margin: 0; }
.wl-footer-cols .wp-block-column > * + * { margin-top: 12px; }
.wl-footer-cols p { line-height: 1.6; }
.wl-foot-logo img { width: 72px; }
.wl-foot-name { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 21px; color: #fff; }
.wl-foot-title { font-family: var(--wp--preset--font-family--body); font-size: 15px !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--gold); }
.wl-foot-links { line-height: 2 !important; }
.wl-foot-fb a { display: inline-flex; align-items: center; gap: 10px; }
.wl-foot-fb a::before {
  content: ""; width: 22px; height: 22px; background: currentColor;
  -webkit-mask: var(--wl-i-facebook) center / contain no-repeat; mask: var(--wl-i-facebook) center / contain no-repeat;
}
.wl-footer-bottom { border-top: 1px solid rgba(220, 230, 242, .2); padding: 24px 0 32px; margin-top: 48px; font-size: 15px; }
.wl-footer-bottom p { margin: 0; }
.wl-footer-bottom a { color: var(--wp--preset--color--gold); }

/* ---------- back to the top button (required on every site) ---------- */
/* The link is the last block of the footer pattern. assets/js/top.js shows it after scrolling. */
.wl-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 48px; height: 48px; border-radius: 50%;
  background: var(--wp--preset--color--blue); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s, background-color .15s ease;
}
.wl-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.wl-top:hover, .wl-top:focus-visible { background: var(--wp--preset--color--navy); color: #fff; }
.wl-top::before {
  content: ""; width: 22px; height: 22px; background: currentColor;
  --wl-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5'/%3E%3Cpath d='M5 12l7-7 7 7'/%3E%3C/svg%3E");
  -webkit-mask: var(--wl-up) center / contain no-repeat; mask: var(--wl-up) center / contain no-repeat;
}
.editor-styles-wrapper .wl-top { display: none; }
@media (max-width: 480px) { .wl-top { right: 14px; bottom: 14px; } }
@media (prefers-reduced-motion: reduce) { .wl-top { transition: none; } }

/* ---------- responsive ---------- */
/* WordPress stacks columns only below 782px. Two-column sections stack sooner. */
@media (max-width: 959px) {
  .wp-block-columns.wl-cols { flex-wrap: wrap !important; }
  .wp-block-columns.wl-cols > .wp-block-column { flex-basis: 100% !important; }
  .wl-hero-photo { margin-bottom: -60px; }
  .wl-facts { padding-top: 100px; }
}
/* footer: two across on tablets, one on phones */
@media (max-width: 1099px) {
  .wp-block-columns.wl-footer-cols { flex-wrap: wrap !important; }
  .wp-block-columns.wl-footer-cols > .wp-block-column { flex-basis: calc(50% - 20px) !important; flex-grow: 0; }
}
@media (max-width: 480px) {
  .wp-block-columns.wl-footer-cols > .wp-block-column { flex-basis: 100% !important; }
  .wl-section { padding-block: 48px; }
  .wl-facts { padding-top: 84px; }
  .wl-brand-sub { display: none; }
  .wl-logo img { width: 46px; }
  .wl-brand .wp-block-site-title { font-size: 18px; }
  .wl-panel, .wl-panel-white { padding: 24px; }
  .wl-cards, .wl-news-grid { grid-template-columns: 1fr !important; }
}
