/*
Theme Name: KV Reitsje Him
Theme URI: https://kvreitsjehim.nl/
Author: KV Reitsje Him
Description: Full Site Editing block theme voor KV Reitsje Him.
Version: 0.1.0
Text Domain: kv-reitsjehim
*/

:root { --rh-shadow: 0 12px 34px rgb(64 25 70 / 10%); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 17px; }
body { overflow-x: hidden; font-size: 1rem; }
a { text-underline-offset: .18em; }
.wp-site-blocks { overflow: hidden; }
.wp-site-blocks > header + * { margin-block-start: 0 !important; }
.rh-shell { width: min(1280px, calc(100% - 48px)) !important; max-width: 1280px !important; margin-inline: auto !important; }
.rh-header { position: relative; z-index: 20; min-height: 84px; border-bottom: 1px solid rgb(67 16 76 / 8%); background: rgb(255 255 255 / 96%); box-shadow: 0 8px 28px rgb(45 21 51 / 7%); }
.rh-header__inner { position: relative; display: grid !important; grid-template-columns: 150px minmax(0, 1fr) 150px; gap: 24px; min-height: 84px; align-items: center !important; }
.rh-header .custom-logo, .rh-logo { position: absolute; z-index: 3; top: 5px; left: 0; width: 106px !important; max-height: none; margin: 0 !important; filter: drop-shadow(0 7px 8px rgb(67 16 76 / 26%)); }
.rh-logo img { display: block; width: 106px !important; height: auto; }
.rh-header .wp-block-navigation { grid-column: 2; justify-self: center; color: var(--wp--preset--color--ink); font-family: "DM Sans", "Segoe UI", Arial, sans-serif; font-size: .94rem; font-weight: 650; letter-spacing: -.01em; }
.rh-header .wp-block-navigation__container { gap: 10px; }
.rh-header .wp-block-navigation-item__content { position: relative; padding: 10px 13px; border-radius: 999px; color: inherit; text-decoration: none; transition: color .18s ease, background-color .18s ease, transform .18s ease; }
.rh-header .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--primary); background: var(--wp--preset--color--primary-soft); transform: translateY(-1px); }
.rh-header .current-menu-item > .wp-block-navigation-item__content,
.rh-header .wp-block-navigation-item__content[aria-current="page"] { color: #fff; background: var(--wp--preset--color--primary); box-shadow: 0 6px 15px rgb(103 10 113 / 20%); }
.rh-header .wp-block-navigation-submenu__toggle { display: flex; flex: none; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: -6px; padding: 0; border-radius: 999px; color: inherit; }
.rh-header .wp-block-navigation-submenu__toggle svg { flex: none; width: 12px; height: 12px; }
.rh-header .wp-block-navigation-submenu__toggle svg path { stroke: currentColor; }
.rh-header .wp-block-navigation-submenu__toggle:hover { color: var(--wp--preset--color--primary); background: var(--wp--preset--color--primary-soft); }
.rh-header .wp-block-navigation__submenu-container { top: calc(100% + 8px); min-width: 200px; padding: 8px; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; background: #fff; box-shadow: 0 16px 34px rgb(64 25 70 / 16%); }
.rh-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 10px 14px; border-radius: 9px; white-space: nowrap; }
.rh-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { transform: none; }
.rh-mobile-nav-logo { display: none; }
.rh-join { grid-column: 3; justify-self: end; }
.rh-join .wp-block-button__link { padding: .75rem 1.15rem; border-radius: 999px; background: linear-gradient(135deg, var(--wp--preset--color--primary), #92209a); box-shadow: 0 7px 18px rgb(103 10 113 / 20%); font-family: "DM Sans", "Segoe UI", Arial, sans-serif; font-size: .88rem; transition: transform .18s ease, box-shadow .18s ease; }
.rh-join .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(103 10 113 / 27%); }
.rh-join .wp-block-button__link span { margin-left: .25rem; }
.home .rh-header { border-bottom-color: transparent; box-shadow: none; }
body:not(.home) .wp-site-blocks > main { padding-top: 4.25rem !important; }

.rh-hero { position: relative; min-height: 500px; }
.rh-hero .wp-block-cover__background { background: linear-gradient(90deg, rgb(23 10 26 / 83%), rgb(53 21 58 / 28%) 65%, transparent) !important; opacity: 1 !important; }
.rh-hero .wp-block-cover__inner-container { width: 100%; }
.rh-hero__grid { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(340px, 390px) !important; align-items: center !important; gap: clamp(3rem, 7vw, 7rem); min-height: 590px; padding-block: 82px 105px; }
.rh-hero__content { max-width: 680px; }
.rh-hero h1 { max-width: 680px; margin: 0; font-size: clamp(3.15rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.035em; }
.rh-hero__intro { max-width: 620px; font-size: 1.1rem; }
.rh-card { position: relative; overflow: hidden; border: 1px solid var(--wp--preset--color--line); border-radius: 16px; background: #fff; box-shadow: var(--rh-shadow); }
.rh-match-card { color: var(--wp--preset--color--ink); }
.rh-card__title { display: flex; align-items: center; gap: 14px; padding: 20px 22px 8px; }
.rh-card__title h2 { margin: 0; font-size: 1.1rem; }
.rh-icon { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: white; background: linear-gradient(145deg, var(--wp--preset--color--primary), #9d25a4); box-shadow: 0 6px 14px rgb(103 10 113 / 22%); }
.rh-svg-icon { display: block; width: 29px; height: 29px; }
.rh-match { display: grid !important; grid-template-columns: 82px 1fr; gap: 0 !important; padding: 10px 22px 20px; }
.rh-date { padding-right: 16px; border-right: 1px solid var(--wp--preset--color--line); text-align: center; text-transform: uppercase; }
.rh-date strong { display: block; color: var(--wp--preset--color--primary); font-size: 2rem; line-height: 1; }
.rh-date small { color: var(--wp--preset--color--primary); font-size: .75rem; font-weight: 800; }
.rh-match__detail { padding-left: 18px; }
.rh-match__detail p { margin: .2rem 0; }
.rh-ribbon { position: absolute; z-index: 2; top: 18px; right: -46px; display: flex; width: 260px; align-items: center; justify-content: center; gap: 4px; padding: 4px 0; color: #fff; background: linear-gradient(90deg, var(--wp--preset--color--primary), #a12aa7); box-shadow: 0 3px 9px rgb(103 10 113 / 20%); font-size: .6rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; transform: rotate(22deg); }
.rh-ribbon__icon { width: 12px; height: 12px; }
.rh-location { display: inline-flex; align-items: center; gap: 4px; }
.rh-location-icon { flex: 0 0 15px; width: 15px; height: 15px; color: var(--wp--preset--color--primary); }
.rh-match-card.is-home-match { border-color: rgb(126 25 135 / 32%); background: linear-gradient(145deg, #fff 62%, #fbf1fc); box-shadow: 0 18px 45px rgb(103 10 113 / 18%); }
.rh-match-card.is-home-match .rh-icon { box-shadow: 0 0 0 5px var(--wp--preset--color--primary-soft); }
.rh-card__link { margin: 0; padding: 14px 22px; border-top: 1px solid var(--wp--preset--color--line); font-size: .88rem; font-weight: 700; }
.rh-card__link a { color: var(--wp--preset--color--primary); text-decoration: none; }
.rh-hero__grid > .wp-block-kv-reitsjehim-upcoming-matches { width: 100% !important; max-width: none !important; margin: 0 !important; }
.rh-match-card--dynamic { width: 100%; }

.rh-home-main { position: relative; z-index: 2; margin-top: -48px; padding: 0 0 65px; }
.rh-dashboard { display: grid !important; grid-template-columns: 1.12fr 1fr .78fr !important; align-items: stretch !important; gap: 22px; }
.rh-panel { container-type: inline-size; container-name: rh-panel; min-height: 100%; padding: 24px; }
.rh-section-head { justify-content: space-between; margin-bottom: 15px; }
.rh-section-head h2 { font-size: 1.08rem; }
.rh-section-head a { color: var(--wp--preset--color--primary); font-size: .875rem; font-weight: 700; }
.rh-event { display: grid !important; grid-template-columns: 55px 1fr; gap: 0 !important; min-height: 63px; margin-top: 7px; border-radius: 8px; background: #fdfcfd; box-shadow: 0 3px 10px rgb(40 20 43 / 7%); }
.rh-event.is-home-match { position: relative; overflow: hidden; border: 1px solid rgb(126 25 135 / 24%); background: linear-gradient(100deg, #fff 55%, #fbf1fc); box-shadow: 0 7px 20px rgb(103 10 113 / 12%); }
.rh-event.is-home-match::before { position: absolute; inset: 0 auto 0 0; width: 4px; content: ""; background: linear-gradient(var(--wp--preset--color--primary), #a12aa7); }
.rh-event.is-home-match .rh-date { background: var(--wp--preset--color--primary-soft); }
.rh-event .rh-date { display: grid; padding: 10px 8px; place-content: center; }
.rh-event .rh-date strong { font-size: 1.2rem; }
.rh-event__body { padding: 10px 12px; }
.rh-event__body p { margin: 0; font-size: .875rem; }
.rh-event__body > strong { display: block; margin-top: 4px; font-size: .95rem; line-height: 1.3; }
.rh-event__meta { display: flex; flex-wrap: wrap; gap: 2px 7px; align-items: center; }
.rh-event__meta > span + span::before { color: #a69ba8; content: "·"; }
.rh-matches-list { margin-top: 14px; }
.rh-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.rh-table th, .rh-table td { padding: 7px 7px; text-align: center; }
.rh-table th:nth-child(2), .rh-table td:nth-child(2) { text-align: left; }
.rh-table thead { color: #756b78; font-size: .75rem; text-transform: uppercase; }
.rh-table .is-current { color: var(--wp--preset--color--primary-dark); background: var(--wp--preset--color--primary-soft); }
.rh-competition-panel .kaats-top { margin-top: 10px; font-size: .9rem; }
.rh-competition-panel .kaats-top-list { display: grid; gap: 4px; }
.rh-competition-panel .kaats-top-list li { display: flex; gap: 9px; min-height: 42px; padding: 7px 9px; border: 0; border-radius: 8px; background: #fdfafd; }
.rh-competition-panel .kaats-top-list li:first-child { background: linear-gradient(90deg, var(--wp--preset--color--primary-soft), #fff); }
.rh-competition-panel .kaats-top-rank { min-width: 0; color: var(--wp--preset--color--primary); font-weight: 800; }
.rh-competition-panel .kaats-top-name { flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--wp--preset--color--ink); font-weight: 700; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.rh-competition-panel .kaats-top-pts { flex-shrink: 0; white-space: nowrap; color: var(--wp--preset--color--primary); font-weight: 800; }
.rh-competition-panel .kaats-top-pts::after { content: " pnt"; font-size: .65rem; font-weight: 700; text-transform: uppercase; }

/* Container queries: let the dashboard cards reflow on their own rendered
   width rather than the viewport, so they stay legible at any resolution
   instead of just at the fixed grid breakpoints. */
@container rh-panel (max-width: 300px) {
  .rh-competition-panel .kaats-top-list li { gap: 6px; padding: 6px 8px; font-size: .85rem; }
  .rh-competition-panel .kaats-top-pts::after { content: ""; }
  .rh-event { grid-template-columns: 46px 1fr !important; }
  .rh-event .rh-date strong { font-size: 1rem; }
  .rh-event__body { padding: 8px 10px; }
}
.rh-feature { display: flex; min-height: 100%; padding: 30px; align-items: flex-end; border-radius: 16px; color: white; background: linear-gradient(rgb(103 10 113 / 75%), rgb(103 10 113 / 94%)), url("assets/images/content-2.jpg") center / cover; box-shadow: var(--rh-shadow); }
.rh-feature h2 { margin: 0; }
.rh-feature p { max-width: 220px; }
.rh-feature .wp-block-button__link { color: var(--wp--preset--color--primary); background: white; }

.rh-home-news-heading { align-items: flex-end !important; margin-top: 54px !important; margin-bottom: 18px !important; }
.rh-home-news-heading h2 { margin: .2rem 0 0; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.rh-home-news-heading > p { margin-bottom: .35rem; font-weight: 700; }
.rh-lower { display: grid !important; grid-template-columns: minmax(0, 1fr) 300px !important; align-items: stretch !important; gap: 22px; margin-top: 0; }
.rh-news .wp-block-post-template { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
.rh-news .wp-block-post { overflow: hidden; border: 1px solid var(--wp--preset--color--line); border-radius: 10px; background: #fff; box-shadow: 0 5px 15px rgb(54 23 60 / 6%); }
.rh-news .wp-block-post-featured-image { width: 100% !important; height: 145px; aspect-ratio: auto !important; margin: 0; overflow: hidden; background-position: center; background-size: cover; }
.rh-news .wp-block-post:nth-child(3n+1) .wp-block-post-featured-image { background-image: url("assets/images/content-1.jpg"); }
.rh-news .wp-block-post:nth-child(3n+2) .wp-block-post-featured-image { background-image: url("assets/images/header.jpg"); }
.rh-news .wp-block-post:nth-child(3n) .wp-block-post-featured-image { background-image: url("assets/images/content-2.jpg"); }
.rh-news .wp-block-post-featured-image > a { display: block; width: 100%; height: 100%; }
.rh-news .wp-block-post-featured-image img { width: 100%; height: 145px; object-fit: cover; opacity: 1; }
.rh-news__body { padding: 14px; }
.rh-news .wp-block-post-title { margin: .55rem 0; font-size: 1.08rem; line-height: 1.35; }
.rh-news .wp-block-post-title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.rh-news .wp-block-post-date, .rh-news .wp-block-post-excerpt { color: #6e6471; font-size: .875rem; line-height: 1.55; }
.rh-news .wp-block-post-excerpt__excerpt { margin: 0; }
.rh-news .wp-block-post-excerpt__excerpt { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.rh-archive__header { max-width: 760px; margin: 0 0 2.5rem !important; }
.rh-archive__header h1 { margin: 0 0 .75rem; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.rh-archive__header p:last-child { color: var(--wp--preset--color--muted); font-size: 1.08rem; }
.rh-news-timeline { max-width: 640px; margin-left: 0 !important; margin-right: auto !important; }
.rh-news-timeline__earlier-heading { padding-top: 18px; margin: 6px 0 12px; border-top: 1px solid var(--wp--preset--color--line); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--muted); }

.rh-year-block { margin-bottom: 30px; }
.rh-year-block__title { margin: 0 0 12px; font-family: "Roboto Slab", Georgia, serif; font-weight: 800; font-size: 1.4rem; }
.rh-year-block__title.is-current { color: var(--wp--preset--color--primary); }
.rh-year-block__title.is-past { color: var(--wp--preset--color--primary-dark); }

.rh-timeline { display: grid; grid-template-columns: 14px 1fr; }
.rh-timeline__rail { grid-column: 1; grid-row: 1 / -1; display: flex; justify-content: center; }
.rh-timeline__rail-line { width: 2px; height: 100%; border-radius: 2px; background: var(--wp--preset--color--line); }

.rh-month-group { grid-column: 2; padding-bottom: 20px; }
.rh-month-group:last-child { padding-bottom: 4px; }
.rh-month-label { display: flex; align-items: center; gap: 9px; margin: 0 0 10px -26px; }
.rh-month-label__dot { flex-shrink: 0; width: 8px; height: 8px; margin-left: 19px; border-radius: 50%; background: var(--wp--preset--color--primary); box-shadow: 0 0 0 3px var(--wp--preset--color--primary-soft); }
.rh-month-label__name { font-size: .9rem; font-weight: 700; color: var(--wp--preset--color--muted); }

.rh-news-card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; margin-bottom: 10px; border-radius: 12px; background: #fff; box-shadow: 0 4px 16px rgb(64 25 70 / 8%); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .18s ease, transform .18s ease; }
.rh-news-card:last-child { margin-bottom: 0; }
.rh-news-card:hover { box-shadow: 0 10px 24px rgb(64 25 70 / 14%); transform: translateY(-1px); }
.rh-news-card__thumb { display: flex; align-items: center; justify-content: center; min-height: 84px; background: var(--wp--preset--color--primary-soft); color: #c8b5cb; }
.rh-news-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rh-news-card__thumb svg { width: 22px; height: 22px; }
.rh-news-card__body { padding: 12px 14px 12px 0; min-width: 0; }
.rh-news-card__date { display: block; font-size: .72rem; color: var(--wp--preset--color--muted); margin-bottom: 3px; }
.rh-news-card__badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--wp--preset--color--primary-soft); color: var(--wp--preset--color--primary-dark); font-size: .68rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; vertical-align: middle; }
.rh-news-card__title { display: block; font-weight: 700; font-size: .95rem; line-height: 1.35; margin-bottom: 4px; color: var(--wp--preset--color--ink); }
.rh-news-card__excerpt { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .82rem; line-height: 1.5; color: var(--wp--preset--color--muted); }

.rh-year-row + .rh-year-row { border-top: 1px solid var(--wp--preset--color--line); }
.rh-year-row__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 6px; cursor: pointer; border-radius: 8px; }
.rh-year-row__head:hover { background: var(--wp--preset--color--primary-soft); }
.rh-year-row__head:focus-visible { outline: 2px solid var(--wp--preset--color--primary); outline-offset: -2px; }
.rh-year-row__left { display: flex; align-items: baseline; gap: 8px; }
.rh-year-row__yr { font-family: "Roboto Slab", Georgia, serif; font-weight: 700; font-size: 1.05rem; }
.rh-year-row__cnt { font-size: .82rem; color: var(--wp--preset--color--muted); }
.rh-year-row__head svg { flex-shrink: 0; color: var(--wp--preset--color--muted); transition: transform .18s ease; }
.rh-year-row.is-open .rh-year-row__head svg { transform: rotate(180deg); }
.rh-year-row__panel { display: none; }
.rh-year-row.is-open .rh-year-row__panel { display: block; }
.rh-year-row__body { padding: 6px 6px 20px 26px; }
.rh-year-row__empty { padding: 6px 6px 16px 26px; color: var(--wp--preset--color--muted); font-size: .88rem; }

.rh-news-skeleton { display: grid; grid-template-columns: 96px 1fr; gap: 14px; margin-bottom: 10px; }
.rh-news-skeleton__thumb, .rh-news-skeleton__lines div { background: var(--wp--preset--color--line); border-radius: 6px; }
.rh-news-skeleton__thumb { min-height: 84px; border-radius: 12px; }
.rh-news-skeleton__lines { display: flex; flex-direction: column; gap: 7px; padding-top: 6px; }
.rh-news-skeleton__lines div:nth-child(1) { width: 35%; height: 8px; }
.rh-news-skeleton__lines div:nth-child(2) { width: 80%; height: 11px; }
.rh-news-skeleton__lines div:nth-child(3) { width: 60%; height: 8px; }
.rh-news-skeleton, .rh-news-skeleton * { animation: rh-pulse 1.1s ease-in-out infinite; }

@keyframes rh-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

@media (max-width: 600px) {
  .rh-news-card, .rh-news-skeleton { grid-template-columns: 84px 1fr; gap: 12px; }
  .rh-news-card__thumb, .rh-news-skeleton__thumb { min-height: 72px; }
}

.rh-matches-page > .wp-block-kv-reitsjehim-upcoming-matches { width: 100% !important; max-width: none !important; }
.rh-matches-page > .rh-match-history { width: 100% !important; max-width: none !important; }
.rh-match-detail-page > .rh-match-detail-hero { width: 100% !important; max-width: none !important; }
.rh-matches-archive { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; }
.rh-matches-archive .rh-event { min-height: 92px; margin: 0; border: 1px solid var(--wp--preset--color--line); background: #fff; box-shadow: var(--rh-shadow); }
.rh-matches-empty { padding: 2rem; border-radius: 12px; background: white; }
.rh-competition-page { width: min(1280px, calc(100% - 48px)) !important; max-width: 1280px !important; }
.rh-full-page > .wp-block-post-content { width: 100% !important; max-width: none !important; }
.rh-full-page > .rhf-grid, .rh-full-page > .rhf-detail { width: 100% !important; max-width: none !important; }
.rh-full-page > .rhs-grid { width: 100% !important; max-width: none !important; }
.rh-sponsors-section { margin-top: 54px; padding-bottom: 20px; }
.rh-sponsors-section > .rhs-strip { width: 100% !important; max-width: none !important; }
.rh-sponsors-section > .rh-home-news-heading { width: 100% !important; max-width: none !important; }
.rh-contact-block { padding: 28px clamp(22px, 4vw, 34px); margin: 1.75rem 0; }
.rh-contact-block h2 { margin-top: 0; }
.rh-contact-block p:last-child { margin-bottom: 0; }
.rh-board-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 1.75rem 0; }
.rh-board-grid > * { margin-block-start: 0 !important; }
.rh-board-member { height: 100%; box-sizing: border-box; padding: 24px; }
.rh-board-avatar { position: relative; display: block; overflow: hidden; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 50%; background: var(--wp--preset--color--primary-soft); }
.rh-board-avatar::before, .rh-board-avatar::after { content: ""; position: absolute; left: 50%; background: #75147d; opacity: .5; transform: translateX(-50%); }
.rh-board-avatar::before { top: 11px; width: 20px; height: 20px; border-radius: 50%; }
.rh-board-avatar::after { bottom: -8px; width: 42px; height: 26px; border-radius: 50% 50% 0 0; }
.rh-board-member h3 { margin: 0 0 .2rem; }
.rh-board-member p:last-child { margin-bottom: 0; }
.rh-board-member p a { color: var(--wp--preset--color--primary); }
@media (max-width: 500px) {
  .rh-board-grid { grid-template-columns: 1fr; }
}
.rh-competition-page > .wp-block-post-content { width: 100% !important; max-width: none !important; }
.rh-competition-page > .wp-block-post-content > * { width: 100%; max-width: none; }
.rh-competition-page > .wp-block-post-content > p:first-child { width: 100%; max-width: 820px; margin: -1rem auto 2.25rem 0 !important; color: var(--wp--preset--color--muted); font-size: 1.08rem; line-height: 1.7; text-align: left; }
.rh-competition-page .kaats-competitie { --kaats-border: var(--wp--preset--color--line); --kaats-head: var(--wp--preset--color--primary-dark); margin: 0; font-size: 1rem; }
.rh-competition-page .kaats-head { margin-bottom: 18px; align-items: flex-end; }
.rh-competition-page .kaats-title { margin: 0; color: var(--wp--preset--color--primary-dark); font-size: clamp(1.6rem, 3vw, 2.25rem); }
.rh-competition-page .kaats-season-select label { color: var(--wp--preset--color--muted); font-weight: 700; }
.rh-competition-page .kaats-season-select select { margin-left: 6px; padding: 8px 34px 8px 11px; border: 1px solid var(--wp--preset--color--line); border-radius: 8px; color: var(--wp--preset--color--ink); background: #fff; font: inherit; }
.rh-competition-page .kaats-note,
.rh-competition-page .kaats-hint { max-width: 900px; color: var(--wp--preset--color--muted); font-size: .875rem; line-height: 1.55; }
.rh-competition-page .kaats-table-wrap { overflow: auto; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; background: #fff; box-shadow: var(--rh-shadow); }
.rh-competition-page .kaats-standings th,
.rh-competition-page .kaats-standings td { padding: 12px 16px; border-bottom-color: var(--wp--preset--color--line); }
.rh-competition-page .kaats-standings thead th { position: static; color: #fff; background: linear-gradient(100deg, var(--wp--preset--color--primary-dark), var(--wp--preset--color--primary)); }
.rh-competition-page .kaats-standings tbody tr:nth-child(odd) { background: #fcf9fc; }
.rh-competition-page .kaats-standings tbody tr:hover { background: var(--wp--preset--color--primary-soft); }
.rh-competition-page .kaats-verloop { margin-top: 34px; padding: 26px; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; background: #fff; box-shadow: var(--rh-shadow); }
.rh-competition-page .kaats-verloop h3 { margin-top: 0; }
.rh-competition-page .kaats-competitie > h3 { margin-top: 3rem; color: var(--wp--preset--color--primary-dark); font-size: 1.65rem; }
.rh-competition-page .kaats-date-head { margin: 2rem 0 .75rem; padding-bottom: .55rem; border-bottom-color: var(--wp--preset--color--primary-soft); color: var(--wp--preset--color--primary); font-size: 1rem; }
.rh-competition-page .kaats-matches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rh-competition-page .kaats-match { padding: 13px; border-color: var(--wp--preset--color--line); border-radius: 12px; box-shadow: 0 7px 20px rgb(54 23 60 / 7%); }
.rh-competition-page .kaats-partuur { min-width: 0; padding: 9px; }
.rh-competition-page .kaats-match-score { padding: 0 10px; }
.rh-competition-page .kaats-match-score .kaats-score-eersten { color: var(--wp--preset--color--primary-dark); font-size: 1.2rem; }
.rh-competition-page .kaats-partuur.kaats-winner { border-color: #75ad82; background: #f0f8f2; }
.rh-competition-page .wp-block-button__link { border-radius: 999px; }
.rh-club { min-height: 100%; padding: 30px; border-radius: 16px; color: white; background: radial-gradient(circle at 110% 45%, #ac43ae 0, transparent 38%), linear-gradient(145deg, #64106d, #8b2391); box-shadow: var(--rh-shadow); }
.rh-club ul { padding-left: 1.2rem; line-height: 2; }
.rh-club .wp-block-button.is-style-outline .wp-block-button__link { color: white; border-color: rgb(255 255 255 / 70%); }
.rh-club p a { color: white; text-decoration: underline; }

.rh-footer { padding-top: 38px; color: white; background: linear-gradient(100deg, #491050, #7d1683); }
.rh-footer__grid { display: grid !important; grid-template-columns: 1.25fr .75fr 1fr 1.6fr; align-items: start !important; gap: 36px; padding-bottom: 30px; }
.rh-footer h2 { font-size: 1rem; }
.rh-footer p, .rh-footer li { font-size: .875rem; line-height: 1.65; }
.rh-footer ul { padding: 0; list-style: none; }
.rh-footer a { color: white; text-decoration: none; }
.rh-footer__social { display: flex; gap: 18px; margin-top: .5rem !important; }
.rh-footer__social a { display: inline-flex; align-items: center; gap: 6px; }
.rh-footer__social a:hover { text-decoration: underline; }
.rh-footer__social svg { flex-shrink: 0; width: 16px; height: 16px; }
.rh-footer__bottom { padding-block: 14px; border-top: 1px solid rgb(255 255 255 / 25%); gap: 10px 24px; }
.rh-footer__bottom p { margin: 0; }
.rh-footer__credit { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: rgb(255 255 255 / 80%); text-align: right; }
.rh-footer__credit-label { font-size: .78rem; color: rgb(255 255 255 / 65%); }
.rh-footer__credit-row { display: flex; align-items: center; gap: 8px; }
.rh-footer__credit a { display: inline-flex; align-items: center; }
.rh-footer__credit a:hover { text-decoration: underline; }
.rh-footer__credit img { display: block; height: 20px; width: auto; }

@media (max-width: 1080px) {
	.rh-header__inner { grid-template-columns: 110px 1fr 150px; }
  .rh-header .wp-block-navigation__responsive-container-open { display: flex; }
  .rh-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
	.rh-header .wp-block-navigation { justify-self: end; }
	.rh-header .wp-block-navigation__responsive-container-open { position: relative; align-items: center; gap: 10px; padding: 9px 16px 9px 40px; border: 0; border-radius: 999px; background: var(--wp--preset--color--primary-soft); }
	.rh-header .wp-block-navigation__responsive-container-open svg { display: none; }
	.rh-header .wp-block-navigation__responsive-container-open::before {
		content: "";
		position: absolute;
		left: 16px;
		top: 50%;
		transform: translateY(-50%);
		width: 20px;
		height: 14px;
		background:
			linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)) top / 100% 2px no-repeat,
			linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)) center / 100% 2px no-repeat,
			linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)) bottom / 100% 2px no-repeat;
	}
	.rh-header .wp-block-navigation__responsive-container-open::after { content: "Menu"; color: var(--wp--preset--color--primary); font-weight: 700; font-size: .88rem; }
	.rh-header .wp-block-navigation__responsive-container.is-menu-open { padding: 30px; color: #fff; background: linear-gradient(145deg, var(--wp--preset--color--primary-dark), var(--wp--preset--color--primary)); }
	.rh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 24px; }
	.rh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start; }
	.rh-mobile-nav-logo { display: block; align-self: flex-start; margin: 0 0 30px; }
	.rh-mobile-nav-logo img { display: block; width: 64px; height: auto; }
	.rh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: stretch; gap: 8px; }
	.rh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { width: 100%; padding: 12px 16px; color: #fff; font-size: 1.25rem; }
	.rh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover,
	.rh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle:hover { color: #fff; background: rgb(255 255 255 / 14%); transform: none; }
	.rh-header .wp-block-navigation__responsive-container-close { color: #fff; }
  .rh-matches-archive { grid-template-columns: 1fr; }
  .rh-footer__grid { grid-template-columns: 1fr 1fr; }
}
/* The dashboard's 2-/3-column switch uses its own 1079px boundary (one
   pixel below the shared 1080px header/footer breakpoint above) so the
   third card already joins right at 1080px instead of only above it. */
@media (max-width: 1079px) {
  .rh-dashboard { grid-template-columns: 1fr 1fr !important; }
  .rh-feature { grid-column: 1 / -1; min-height: 240px; }
}
@media (max-width: 900px) {
  .rh-hero__grid { grid-template-columns: 1fr !important; gap: 2.5rem; padding-block: 90px 105px; }
  .rh-hero__grid > .wp-block-kv-reitsjehim-upcoming-matches { max-width: 560px !important; }
}
@media (max-width: 720px) {
  html { font-size: 16px; }
  .rh-shell { width: min(100% - 28px, 600px) !important; }
	.rh-header { min-height: 72px; }
	.rh-header__inner { grid-template-columns: 82px 1fr; gap: 12px; min-height: 72px; }
	.rh-header .custom-logo, .rh-logo { top: 4px; width: 74px !important; max-height: none; }
	.rh-logo img { width: 74px !important; }
	.rh-header .rh-join { display: none !important; }
	body:not(.home) .wp-site-blocks > main { padding-top: 3.75rem !important; }
  .rh-hero__grid, .rh-lower, .rh-news .wp-block-post-template { grid-template-columns: 1fr !important; }
  .rh-home-news-heading { align-items: flex-start !important; flex-direction: column; gap: .35rem; }
	.rh-competition-page { width: min(100% - 28px, 600px) !important; }
	.rh-competition-page .kaats-head { align-items: flex-start; flex-direction: column; }
	.rh-competition-page .kaats-matches { grid-template-columns: 1fr; }
	.rh-competition-page .kaats-standings th, .rh-competition-page .kaats-standings td { padding: 9px 10px; }
	.rh-competition-page .kaats-verloop { display: block; padding: 16px; overflow-x: auto; }
	.rh-competition-page .kaats-verloop .kaats-chart-wrap { min-width: 700px; }
  .rh-hero__grid { gap: 2rem; padding-block: 80px 90px; }
  .rh-feature { grid-column: auto; }
  .rh-news .wp-block-post-featured-image, .rh-news .wp-block-post-featured-image img { height: 190px; }
  .rh-footer__grid { grid-template-columns: 1fr; }
  .rh-footer__bottom { flex-direction: column !important; align-items: flex-start !important; }
  .rh-footer__credit { align-items: flex-start; text-align: left; }
}
/* Below 720px the two dashboard cards (matches + competition) still stack;
   from 720px up they stay side by side spanning the full width, and only
   from 1080px does the third (Van Os feature) card join them. */
@media (max-width: 719px) {
  .rh-dashboard { grid-template-columns: 1fr !important; }
}
.rh-404 { text-align: center; display: flex; flex-direction: column; align-items: center; }
.rh-404__code { margin: 0; color: var(--wp--preset--color--primary-soft); font-family: "Roboto Slab", Georgia, serif; font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: 1; }
.rh-404 h1 { margin: .25rem 0 0; }
.rh-404__intro { max-width: 480px; margin: 1rem 0 2rem; color: var(--wp--preset--color--muted); }

.rh-post-back { margin: 0 0 1rem; }
.rh-post-back a { color: var(--wp--preset--color--primary); font-size: .9rem; font-weight: 700; text-decoration: none; }
.rh-post-back a:hover { text-decoration: underline; }

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
  background: linear-gradient(0deg, rgb(20 8 22 / 90%) 0%, rgb(20 8 22 / 55%) 65%, transparent 100%) !important;
  font-weight: 500;
  text-shadow: 0 1px 2px rgb(0 0 0 / 55%);
  pointer-events: none;
}

.wp-lightbox-overlay .wp-block-image figcaption.rh-lightbox-caption {
  display: block;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 16px 22px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgb(0 0 0 / 82%) 0%, transparent 100%);
  color: #fff;
  font-size: .92rem;
  text-align: center;
  text-shadow: 0 1px 3px rgb(0 0 0 / 55%);
}

.rh-winners-trophy { margin: 1.75rem auto; text-align: center; }
.rh-winners-trophy img { border-radius: 12px; box-shadow: 0 12px 28px rgb(64 25 70 / 16%); }
.rh-winners-trophy figcaption { margin-top: .6rem; color: var(--wp--preset--color--muted); font-size: .82rem; }
.rh-winners { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: 2px 28px; margin-top: .5rem; }
.rh-winners > * { margin-block-start: 0 !important; }
.rh-winners__item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--wp--preset--color--line); }
.rh-winners__year { font-family: "Roboto Slab", Georgia, serif; font-weight: 700; color: var(--wp--preset--color--primary); font-size: .92rem; }
.rh-winners__name { color: var(--wp--preset--color--ink); text-align: right; font-size: .9rem; }

@media (max-width: 720px) {
  .rh-winners { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rh-news-skeleton, .rh-news-skeleton * { animation: none; }
  .rh-year-row__head svg, .rh-news-card { transition: none; }
}
