/* The Rangers R2 — active base styles; v0.4.3 header geometry lives in v043-layout.css. */
:root {
  --r2-red: #e21c23;
  --r2-blue: #1261ad;
  --r2-ink: #191c22;
  --r2-muted: #5b6470;
  --r2-light: #f1f5fa;
  --r2-max: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; overflow-x: clip; background: #edf1f5; color: var(--r2-ink); font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--r2-blue); }
.r2-shell { width: min(calc(100% - 48px), var(--r2-max)); max-width: var(--r2-max); margin-inline: auto; }
.r2-shell > * { min-width: 0; }
/* All three social icons are locally hosted SVGs, never third-party embeds. */
.r2-socials { display: flex; align-items: center; flex-shrink: 0; gap: 9px; }
.r2-social { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; text-decoration: none; transition: transform .15s ease; }
.r2-social img { display: block; width: 34px; height: 34px; border-radius: 9px; }
.r2-social:hover { transform: translateY(-2px); }
.r2-social:focus-visible, .r2-button:focus-visible, .r2-v043-menu-button:focus-visible { outline: 3px solid #ffd000; outline-offset: 3px; }
/* Site remains within the same 1280px canvas across every page. */
/* Hero owns the overhanging badge; hiding it in the old header avoids two logos. */
body:has(.r2-hero) .r2-v043-brand { visibility: hidden; }
.r2-hero { position: relative; z-index: 35; isolation: isolate; display: flex; align-items: center; min-height: clamp(280px, 27.4vw, 350px); overflow: visible; background: #194258; color: #fff; }
.r2-hero__brand { position: absolute; top: -94px; left: max(24px, calc((100% - var(--r2-max)) / 2)); z-index: 6; display: block; width: 184px; line-height: 0; }
.r2-hero__brand img { display: block; width: 184px; height: auto; max-width: none; filter: drop-shadow(0 3px 3px rgb(0 0 0 / 23%)); }
.r2-hero__brand:focus-visible { outline: 3px solid #ffcf21; outline-offset: 3px; }
.r2-hero--subpage { min-height: clamp(205px, 19.2vw, 246px); }
.r2-hero__image, .r2-hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.r2-hero__image { z-index: -2; display: block; max-width: none; object-fit: cover; object-position: var(--r2-hero-focus-x, 50%) var(--r2-hero-focus-y, 68%); }
.r2-hero[data-r2-mirror="true"] .r2-hero__image { transform: scaleX(-1); }
.r2-hero[data-r2-copy-side="right"] .r2-hero__inner { display: flex; justify-content: flex-end; }
.r2-hero[data-r2-copy-side="right"] .r2-hero__copy { width: min(100%, 490px); }
.r2-hero[data-r2-copy-side="right"] .r2-hero__shade { background: linear-gradient(270deg, rgb(5 16 28 / 91%) 0%, rgb(5 16 28 / 75%) 31%, rgb(5 16 28 / 13%) 76%, rgb(5 16 28 / 6%) 100%); }
.r2-hero__shade { z-index: -1; background: linear-gradient(90deg, rgb(5 16 28 / 86%) 0%, rgb(5 16 28 / 67%) 28%, rgb(5 16 28 / 16%) 74%, rgb(5 16 28 / 8%) 100%); }
.r2-hero__inner { position: relative; width: min(calc(100% - 48px), var(--r2-max)); padding-block: 45px; }
.r2-hero__copy { max-width: 610px; }
.r2-hero h1 { margin: 0 0 18px; padding-left: 18px; font-size: clamp(34px, 4.1vw, 60px); line-height: 1.06; font-style: italic; font-weight: 850; letter-spacing: -.035em; text-wrap: balance; }
.r2-hero--subpage h1 { font-size: clamp(34px, 3.8vw, 54px); }
.r2-hero p { max-width: 540px; margin: 0 0 22px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; }
.r2-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.r2-button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 7px; font-size: 15px; font-weight: 750; text-decoration: none; }
.r2-button--red { background: var(--r2-red); color: #fff; }
.r2-button--light { background: #fff; color: var(--r2-blue); }
.r2-button:hover { filter: brightness(.94); }
/* Club values and content share the same alignment boundaries. */
.r2-values { background: var(--r2-light); border-bottom: 1px solid #e1e7ed; }
.r2-values__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 18px; padding-block: 18px; }
.r2-value { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 750; }
.r2-value span { color: var(--r2-red); font-size: 23px; }
.r2-section { padding-block: clamp(28px, 3.4vw, 44px); }
.r2-section__title { margin: 0 0 22px; padding-left: 16px; font-size: clamp(25px, 2.25vw, 32px); font-weight: 800; line-height: 1.2; }
.r2-notice { padding: 23px 26px; border-left: 5px solid var(--r2-blue); border-radius: 12px; background: var(--r2-light); }
.r2-notice strong { font-size: 20px; }
.r2-notice p { margin: 6px 0 0; }
.r2-promo { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 60%); min-height: 220px; overflow: hidden; border-radius: 12px; background: linear-gradient(100deg, #eef4fa, #fff); }
.r2-promo__image { min-height: 245px; background: url('../images/accommodation/rangers-honkbalveld-overzicht-vanaf-verhoogd-punt.webp') center / cover no-repeat; }
.r2-promo__copy { align-self: center; padding: 25px clamp(20px, 3vw, 36px); }
.r2-promo__copy h2 { position: relative; padding-left: 17px; margin: 0 0 11px; font-size: clamp(24px, 2.4vw, 31px); font-weight: 800; }
.r2-promo__copy p { margin: 0 0 16px; }
/* Rangers angled title motif, shared by all hero, section and invitation titles. */
.r2-hero h1, .r2-section__title { position: relative; }
.r2-hero h1::before, .r2-section__title::before, .r2-promo__copy h2::before,
.r2-article .r2-vereniging-role h3::before,
.r2-article .r2-vereniging-tile h3::before,
.r2-vereniging-explore > h2::before, .r2-vereniging-volunteers > h2::before {
  content: ""; position: absolute; top: .02em; left: 0;
  width: 7px; height: var(--r2-slash-height, 1.1em); transform: skew(-16deg); background: var(--r2-red);
}
@media (min-width: 721px) {
  .r2-promo__image { clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%); }
}
/* News cards work from three columns to one without extra whitespace. */
.r2-news-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.r2-news-card { display: flex; flex-direction: column; min-width: 0; padding: 20px; border: 1px solid #e0e6ec; border-radius: 11px; background: #fff; box-shadow: 0 2px 9px rgb(14 32 55 / 7%); }
.r2-news-card time { margin-bottom: 8px; color: var(--r2-muted); font-size: 12px; }
.r2-news-card h3 { margin: 0 0 12px; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.25; }
.r2-news-card h3 a { color: var(--r2-ink); text-decoration: none; }
.r2-news-card h3 a:hover { text-decoration: underline; }
.r2-news-card__excerpt { flex: 1; margin: 0 0 16px; font-size: 14px; line-height: 1.55; }
.r2-news-card__bottom { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: auto; padding-top: 13px; border-top: 1px solid #edf1f5; }
.r2-news-card__thumb { flex: 0 0 auto; display: block; width: 108px; height: 72px; overflow: hidden; border-radius: 7px; background: var(--r2-light); }
.r2-news-card__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.r2-news-card__more { padding-bottom: 4px; font-size: 14px; font-weight: 750; text-decoration: none; }
.r2-news-card__more:hover { text-decoration: underline; }
.r2-news-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 28px; }
.r2-news-pagination .page-numbers { padding: 9px 13px; border: 1px solid #dce4ee; border-radius: 7px; text-decoration: none; }
.r2-news-pagination .current { background: var(--r2-blue); color: #fff; }
.r2-sponsor-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; }
.r2-sponsor-card { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 112px; padding: 15px; border: 1px solid #e2e8ee; border-radius: 10px; background: #fff; box-shadow: 0 1px 6px rgb(0 0 0 / 4%); }
.r2-sponsor-card { flex-direction: column; gap: 8px; min-height: 158px; padding: 14px 9px 11px; color: var(--r2-ink); text-align: center; text-decoration: none; }
.r2-sponsor-card__logo { width: 100%; height: 100px; display: flex; align-items: center; justify-content: center; }
.r2-sponsor-card__logo img { display: block; width: auto; height: auto; max-height: 92px; max-width: 94%; object-fit: contain; }
.r2-sponsor-card--podotherapie-heerhugowaard .r2-sponsor-card__logo img { max-height: 90px; max-width: 120px; }
.r2-sponsor-card--psychologenpraktijk-uniek .r2-sponsor-card__logo img { max-height: 94px; max-width: 190px; }
.r2-sponsor-card--mway-professional-design .r2-sponsor-card__logo img { max-height: 105px; }
.r2-sponsor-card__name { display: block; color: #27323e; font-size: 12px; font-weight: 650; line-height: 1.3; }
.r2-sponsor-card--linked:hover { border-color: #a5c6e9; box-shadow: 0 4px 16px rgb(18 97 173 / 12%); transform: translateY(-1px); }
.r2-sponsor-card--linked:focus-visible { outline: 3px solid #ffcf21; outline-offset: 2px; }
.r2-team-intro { margin: 0 0 25px; max-width: 780px; font-size: 18px; }
.r2-team-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.r2-team-card { overflow: hidden; border: 1px solid #dfe7ee; border-radius: 12px; box-shadow: 0 2px 10px rgb(0 0 0 / 6%); }
.r2-team-card__body { padding: 18px; }
.r2-team-card__body h2 { margin: 0 0 6px; font-size: 21px; }
.r2-team-card__body h2 a { color: var(--r2-ink); text-decoration: none; }
.r2-team-card__body p { margin: 0 0 13px; }
.r2-team-card__link { font-weight: 700; text-decoration: none; }

/* All content shares a 1280px canvas. Text is centered within a readable line length. */
.r2-article { margin-block: 48px 55px; }
.r2-article .wp-block-post-content { width: 100%; max-width: 100%; margin-inline: auto; line-height: 1.75; }
.r2-article .wp-block-post-content > :where(p, h2, h3, h4, ul, ol, blockquote, form, table) { width: 100%; max-width: 920px; margin-inline: auto; }
.r2-article .wp-block-post-content > :where(figure, .wp-block-image, .wp-block-gallery, .wp-block-columns, .wp-block-shortcode, .wp-block-html) { max-width: 100%; margin-inline: auto; }
.r2-article .wp-block-post-content > .wp-block-image img { max-width: 100%; }
.r2-article .wp-block-post-content :where(.wpcf7, .wpforms-container, .wp-block-shortcode) { max-width: 920px; margin-inline: auto; }
.r2-article .wp-block-post-content :where(.wpcf7, .wpforms-container) { width: 100%; }
.r2-article .wpforms-container :where(input:not([type=radio]):not([type=checkbox]), select, textarea) { max-width: 100%; }
.r2-article .wpforms-container .wpforms-field { padding-block: 9px; }
.r2-article :where(.wpcf7, .wpforms-container) input:focus-visible { outline: 2px solid var(--r2-blue); outline-offset: 2px; }

.r2-article .wp-block-post-content > :where(p, h2, h3, ul, ol, figure, form, table) { max-width: 100%; }
.r2-article .wp-block-post-content .alignwide, .r2-article .wp-block-post-content .alignfull { max-width: var(--r2-max); }
.r2-article .wp-block-post-featured-image img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 12px; }
/* Sponsors page is a full-width editorial canvas, not the 920px text column.
   Other pages keep the readable content width and existing Site Editor settings. */
.r2-article--sponsors .wp-block-post-content,
body.r2-sponsors-page .r2-article .wp-block-post-content { width: 100%; max-width: 100%; }
.r2-article--sponsors .wp-block-post-content > :where(*),
body.r2-sponsors-page .r2-article .wp-block-post-content > :where(.r2-sponsor-grid, .r2-v070-sponsor-cta, .alignwide) {
  width: 100%; max-width: 100%;
}
.r2-article--sponsors .r2-sponsor-grid,
.r2-article--sponsors .r2-v070-sponsor-cta,
body.r2-sponsors-page .r2-sponsor-grid,
body.r2-sponsors-page .r2-v070-sponsor-cta { width: 100%; max-width: none; }
/* Keep legacy Contact Form 7 layout usable without touching the plugin's fields. */
.r2-article input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), .r2-article textarea, .r2-article select { max-width: 100%; }
.r2-article .wpcf7 input:not([type="submit"]), .r2-article .wpcf7 textarea { width: 100%; padding: 10px 12px; border: 1px solid #c8d0dc; border-radius: 6px; font: inherit; }
.r2-article .wpcf7 input[type="submit"] { padding: 11px 22px; border: 0; border-radius: 6px; background: var(--r2-red); color: #fff; font: inherit; font-weight: 750; cursor: pointer; }
.r2-footer { padding: 35px 0; margin-top: 46px; color: #fff; background: var(--r2-blue); }
.r2-footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 26px; }
.r2-footer strong { font-size: 15px; }
.r2-footer p { margin: 10px 0; font-size: 14px; }
.r2-footer a { color: #fff; }
.r2-footer__end { justify-self: end; text-align: right; }
.r2-footer__end .r2-socials { justify-content: flex-end; margin-top: 12px; }
.r2-socials--footer .r2-social, .r2-socials--footer .r2-social img { width: 42px; height: 42px; }
.r2-footer__contact .r2-footer__privacy { margin-top: 13px; }
/* Frame every page at 1280px without stretching headers beyond the content. */
.wp-site-blocks { width: min(100%, var(--r2-max)); margin-inline: auto; background: #fff; min-height: 100vh; box-shadow: 0 5px 18px rgb(18 38 64 / 6%); }
.wp-site-blocks > * { margin-block-start: 0; }
.r2-hero__inner { width: min(calc(100% - 48px), var(--r2-max)); }
.r2-hero--subpage .r2-hero__image { object-position: var(--r2-hero-focus-x, 50%) var(--r2-hero-focus-y, 72%); }
.r2-value-icon { width: 26px; height: 26px; flex: 0 0 26px; object-fit: contain; }
/* Theme navigation becomes mobile before the links crowd out the three social icons. */
@media (max-width: 1120px) {
  .r2-news-cards { gap: 14px; }
  .r2-team-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .r2-news-card { padding: 16px; }
  .r2-sponsor-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  /* Mobile hero badge is hidden in v0.9.8: the header's logo is visible. */
  .r2-hero__brand { display: none; }
  /* Right-sided compositions collapse to a stable left-aligned mobile layout. */
  .r2-hero[data-r2-copy-side="right"] .r2-hero__inner { display: block; }
  .r2-hero[data-r2-copy-side="right"] .r2-hero__shade { background: linear-gradient(90deg, rgb(5 16 28 / 88%) 0%, rgb(5 16 28 / 62%) 48%, rgb(5 16 28 / 22%) 100%); }
  .r2-shell, .r2-hero__inner { width: min(calc(100% - 30px), var(--r2-max)); }
  .r2-socials { gap: 5px; }
  .r2-social, .r2-social img { width: 29px; height: 29px; }
  .r2-hero { min-height: 360px; }
  .r2-hero--subpage { min-height: 245px; }
  .r2-hero__image { object-position: var(--r2-hero-focus-x, 57%) var(--r2-hero-focus-y, 45%); }
  .r2-hero__shade { background: linear-gradient(90deg, rgb(5 16 28 / 86%) 0%, rgb(5 16 28 / 60%) 46%, rgb(5 16 28 / 25%) 100%); }
  .r2-hero__inner { padding-block: 34px; }
  .r2-hero h1 { font-size: clamp(33px, 8vw, 44px); }
  .r2-values__inner { justify-content: flex-start; gap: 14px 22px; }
  .r2-value { font-size: 12px; }
  .r2-value span { font-size: 18px; }
  .r2-value-icon { width: 22px; height: 22px; flex-basis: 22px; }
  .r2-news-cards { grid-template-columns: 1fr; }
  .r2-team-grid { grid-template-columns: 1fr; }
  .r2-news-card { padding: 17px; }
  .r2-promo { grid-template-columns: 1fr; }
  .r2-promo__image { min-height: 175px; }
  .r2-promo__copy { padding: 24px; }
  .r2-sponsor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .r2-sponsor-card { min-height: 146px; }
  .r2-sponsor-card__logo { height: 94px; }
  .r2-sponsor-card__name { font-size: 11px; }
  /* v0.9.11 mobile footer: three contact/privacy links at left, larger socials right; quick links remain 2x5. */
  .r2-footer { padding: 25px 0 28px; margin-top: 32px; }
  .r2-footer__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "contact socials" "quick quick";
    gap: 20px 12px;
  }
  .r2-footer__grid > div:first-child { grid-area: contact; min-width: 0; }
  .r2-footer__quick { grid-area: quick; min-width: 0; }
  .r2-footer__end { grid-area: socials; grid-column: auto; justify-self: end; align-self: start; text-align: right; }
  .r2-footer__end .r2-socials { gap: 5px; flex-wrap: nowrap; }
  .r2-footer__end .r2-social, .r2-footer__end .r2-social img { width: 38px; height: 38px; }
  .r2-footer p { font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
  .r2-footer strong { font-size: 14px; }
  .r2-footer__contact .r2-footer__privacy { margin-top: 13px; }

  .r2-article { margin-top: 35px; }
}
@media (max-width: 385px) {
  /* Club logo is in the mobile header grid; no overlay-position workaround. */
  .r2-social, .r2-social img { width: 27px; height: 27px; }
  .r2-hero__actions { align-items: flex-start; flex-direction: column; }
  .r2-hero--home { min-height: 415px; }
}
@media (prefers-reduced-motion: reduce) { .r2-social { transition: none; } }


/* Clinics: original text remains intact in WP; PHP relocates the embedded
 * opening image after both intro paragraphs during front-end rendering. */
.page-id-1185 .r2-article .wp-block-post-content { max-width: 100%; }
.page-id-1185 .r2-clinics-intro { max-width: 1080px; margin: 0 auto 28px; }
.page-id-1185 .r2-clinics-intro > p { margin: 0 0 14px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.7; }
.page-id-1185 .r2-clinic-photo { width: 100%; max-width: 100%; margin: 20px auto 34px; overflow: hidden; border-radius: 12px; }
.page-id-1185 .r2-clinic-photo img { display: block; width: 100% !important; max-width: 100% !important; height: auto !important; max-height: 560px; object-fit: cover; object-position: center; }
.page-id-1185 .r2-article .wp-block-table { width: 100%; max-width: 100%; overflow-x: auto; margin: 0 auto 28px; -webkit-overflow-scrolling: touch; }
.page-id-1185 .r2-article .wp-block-table table { width: 100%; min-width: 620px; border-collapse: collapse; }
.page-id-1185 .r2-article .wp-block-table th,
.page-id-1185 .r2-article .wp-block-table td { padding: 12px 14px; border: 1px solid #dce4ee; vertical-align: top; text-align: left; }
.page-id-1185 .r2-article .wp-block-table tbody tr:first-child { background: var(--r2-light); }
.page-id-1185 .r2-article .wp-block-table tbody tr:nth-child(even) { background: #fbfdff; }

@media (max-width: 720px) {
  .page-id-1185 .r2-clinic-photo { margin-bottom: 24px; }
  .page-id-1185 .r2-clinic-photo img { max-height: none; }
}

/* Clinics introduction must precede the full-width photograph; preserve the
 * existing WP photo and actual table; the image is not replaced with stock. */
.page-id-1185 .r2-article .r2-clinic-photo { display: block; width: 100% !important; max-width: 100% !important; margin: 22px auto 28px !important; overflow: hidden; border-radius: 12px; }
.page-id-1185 .r2-article .r2-clinic-photo img { display: block; width: 100% !important; height: auto !important; max-width: none !important; max-height: 520px; object-fit: cover; object-position: center 45%; }

/* v0.9.4: consistent Clinics lead without changing the image-order adapter. */
.page-id-1185 .r2-article .wp-block-post-content > p:nth-child(-n+2) {
  max-width: 920px; width: 100%; margin-inline: auto;
  margin-block: 0 18px; font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.7; color: #283744;
}
.page-id-1185 .r2-article .wp-block-post-content > p:first-child { margin-top: 8px; }
