.rgrm-listing { width: 100%; max-width: none !important; --rgrm-blue: var(--rg-blue, #586b7d); --rgrm-accent: var(--rg-petrol, #2e6668); --rgrm-orange: var(--rg-orange, #d36a35); --rgrm-soft: var(--rg-soft, #ebebe6); --rgrm-ink: var(--rg-ink, #111); }
.page .rg-content > .rgrm-listing ~ * { max-width: none; }
.rgrm-filters { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)) auto auto; gap: 12px; align-items: end; margin: 0 0 32px; padding: 20px; background: #fff; border: 1px solid rgba(88,107,125,.18); }
.rgrm-filters label span { display: block; margin-bottom: 5px; color: var(--rgrm-blue); font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.rgrm-filters select { width: 100%; min-height: 43px; padding: 8px; border: 1px solid #c8cccf; background: #fff; }
.rgrm-filter-button { min-height: 43px; padding: 8px 18px; border: 0; background: var(--rgrm-blue); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.rgrm-filter-button:hover { background: var(--rgrm-orange); }
.rgrm-reset { min-height: 43px; display: inline-flex; align-items: center; padding: 8px; color: var(--rgrm-blue); font-weight: 700; }
.rgrm-reset:hover, .rgrm-card h3 a:hover { color: var(--rgrm-orange); }
.rgrm-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.rgrm-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid rgba(88,107,125,.16); box-shadow: 0 14px 34px rgba(17,17,17,.055); }
.rgrm-card-media { position: relative; min-height: 132px; display: grid; place-items: center; overflow: hidden; background: var(--rgrm-blue); color: rgba(255,255,255,.8); font-size: .64rem; font-weight: 800; letter-spacing: .12em; }
.rgrm-card-media img { width: 100%; height: 132px; object-fit: cover; filter: saturate(.78); }
.rgrm-type { position: absolute; right: 11px; bottom: 11px; padding: 5px 9px; border-radius: 999px; background: var(--rgrm-orange); color: #fff; font-size: .64rem; font-weight: 800; }
.rgrm-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 15px; }
.rgrm-region { display: inline-flex; margin: 0 0 10px; padding: 4px 7px; background: var(--rgrm-soft); color: var(--rgrm-blue); font-size: .74rem; font-weight: 650; line-height: 1.3; }
body.page .rg-content .rgrm-card h3 { margin: 0 0 10px; font-size: 1rem; line-height: 1.16; letter-spacing: -.015em; }
.rgrm-stats-line { display: flex; flex-wrap: wrap; gap: 5px 9px; margin-bottom: 10px; color: #59616a; font-size: .74rem; line-height: 1.35; }
.rgrm-level { display: inline-flex; margin-bottom: 10px; padding: 4px 8px; border-radius: 999px; background: #f0eee5; font-size: .65rem; font-weight: 800; line-height: 1.35; }
.rgrm-guides, .rgrm-location { margin: 0 0 7px; color: #59616a; font-size: .76rem; line-height: 1.4; }
.rgrm-card-actions { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 5px; margin-top: auto; padding-top: 9px; }
.rgrm-card-actions a { display: flex; min-height: 36px; align-items: center; justify-content: center; padding: 5px 7px; border: 1px solid var(--rgrm-blue); border-radius: 999px; color: var(--rgrm-blue); font-size: .7rem; font-weight: 750; line-height: 1.15; text-align: center; }
.rgrm-card-actions a:hover { border-color: var(--rgrm-orange); background: var(--rgrm-orange); color: #fff; }
.rgrm-empty { padding: 25px; border-left: 3px solid var(--rgrm-blue); background: #fff; }
.rgrm-route { margin-top: 48px; }
.rgrm-track { min-height: 300px; display: grid; place-items: center; margin: 22px 0; background: #25363b; color: rgba(255,255,255,.7); }
.rgrm-track svg { width: 100%; max-height: 430px; padding: 20px; }
.rgrm-track polyline { fill: none; stroke: #aeb9c2; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.rgrm-track circle { fill: #586b7d; stroke: #fff; stroke-width: 3; }
.rgrm-komoot { min-height: 360px; margin-top: 22px; }
.rgrm-komoot iframe { width: 100%; height: min(700px, 75vh); border: 0; background: var(--rgrm-soft); }
.rgrm-registration {
  --rgrm-blue: var(--rg-blue, #586b7d);
  --rgrm-orange: var(--rg-orange, #d36a35);
  --rgrm-soft: var(--rg-soft, #ebe7dc);
  position: relative;
  max-width: 760px;
  margin-top: 42px;
  padding: clamp(22px, 4vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(88,107,125,.18);
  border-top: 4px solid var(--rgrm-orange);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(250,248,242,.96));
  box-shadow: 0 18px 42px rgba(31,34,30,.1);
  isolation: isolate;
}
.rgrm-registration::after {
  position: absolute;
  z-index: 0;
  right: -48px;
  bottom: -54px;
  width: 245px;
  height: 245px;
  background: url("images/rawgravel-compass-watermark.png") center / contain no-repeat;
  content: "";
  opacity: .045;
  pointer-events: none;
}
.rgrm-registration > * { position: relative; z-index: 1; }
.rgrm-public-riders dd { margin-top: .45rem; }
.rgrm-public-riders ul { display: flex; margin: 0; padding: 0; flex-wrap: wrap; gap: .38rem; list-style: none; }
.rgrm-public-riders li { display: inline-flex; align-items: center; min-height: 25px; padding: .22rem .55rem; border: 1px solid rgba(211,106,53,.24); border-radius: 999px; background: rgba(211,106,53,.08); color: var(--rgrm-ink, #171916); font-size: .72rem; font-weight: 750; }
.rgrm-public-riders li::before { width: 5px; height: 5px; margin-right: .38rem; border-radius: 50%; background: var(--rgrm-orange); content: ""; }
.rgrm-public-riders dd > span { color: #73776f; font-size: .72rem; font-weight: 500; }
.rgrm-registration h2 { margin: .25rem 0 .65rem !important; font-size: 1.35rem !important; }
.rgrm-registration-count { display: inline-flex; gap: .35rem; margin: 0 0 1.2rem; padding: .38rem .7rem; border: 1px solid rgba(88,107,125,.12); border-radius: 999px; background: rgba(235,231,220,.78); color: var(--rgrm-blue); font-size: .78rem; }
.rgrm-registration-form { display: grid; gap: .8rem; }
.rgrm-registration-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.rgrm-registration-form label > span { display: block; margin-bottom: .25rem; color: var(--rgrm-blue); font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.rgrm-registration-form input:not([type="checkbox"]) { width: 100%; padding: .72rem .8rem; border: 1px solid #aeb7bd; border-radius: 11px; background: rgba(255,255,255,.96); font: inherit; font-size: .88rem; box-shadow: inset 0 1px 2px rgba(24,27,24,.035); transition: border-color .2s ease, box-shadow .2s ease; }
.rgrm-registration-form input:not([type="checkbox"]):focus { border-color: var(--rgrm-orange); outline: 0; box-shadow: 0 0 0 3px rgba(211,106,53,.15); }
.rgrm-terms-check { display: flex; gap: .55rem; align-items: flex-start; padding: .65rem .7rem; border: 1px solid rgba(88,107,125,.1); border-radius: 10px; background: rgba(235,231,220,.42); font-size: .78rem; line-height: 1.45; }
.rgrm-terms-check > span { margin: 0 !important; color: inherit !important; font-size: inherit !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; }
.rgrm-terms-check input { margin-top: .25rem; accent-color: var(--rgrm-orange); }
.rgrm-terms-check a { color: var(--rgrm-orange) !important; font-weight: 800; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
.rgrm-terms-check a:hover, .rgrm-terms-check a:focus-visible { color: #a8471e !important; text-decoration-thickness: 2px; }
.rgrm-terms-check a:focus-visible { outline: 2px solid var(--rgrm-orange); outline-offset: 3px; }
.rgrm-registration button, .rgrm-cancel-form button, .rgrm-checkin button { width: fit-content; min-height: 38px; padding: .52rem .85rem; border: 0; border-radius: 999px; background: var(--rgrm-blue); color: #fff; font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; }
.rgrm-registration button:hover, .rgrm-registration button:focus-visible { background: var(--rgrm-orange); color: #fff; }
.rgrm-message { padding: .75rem; border-left: 3px solid var(--rgrm-blue); background: var(--rgrm-soft); font-size: .82rem; }
.rgrm-message--error { border-color: #9a3f32; background: #f0ded8; }
.rgrm-hp { position: absolute !important; left: -9999px !important; }
.rgrm-cancel-form, .rgrm-checkin { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--rgrm-soft); }
.rgrm-cancel-code { margin-top: 1.35rem; padding: .9rem 1rem; border: 1px solid rgba(88,107,125,.14); border-radius: 12px; background: rgba(255,255,255,.62); }
.rgrm-cancel-form h3 { margin: 0 0 .7rem; font-size: 1rem; }
.rgrm-cancel-code summary, .rgrm-checkin summary { cursor: pointer; color: var(--rgrm-blue); font-size: .82rem; font-weight: 800; }
.rgrm-cancel-code[open] summary { margin-bottom: .8rem; }
.rgrm-cancel-code .rgrm-registration-form { max-width: 380px; }
.rgrm-checkin-list { display: grid; gap: .45rem; margin: .8rem 0; }
.rgrm-checkin-list label { display: flex; gap: .55rem; align-items: flex-start; }
.rgrm-checkin-list small { display: block; color: #59616a; }
.rgrm-checkin-confirm { display: flex; gap: .55rem; align-items: flex-start; margin: .8rem 0; padding: .75rem; background: var(--rgrm-soft); font-size: .78rem; line-height: 1.45; }
.rgrm-checkin-confirm input { margin-top: .25rem; }
@media (max-width: 1100px) { .rgrm-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) { .rgrm-filters { grid-template-columns: repeat(2, 1fr); } .rgrm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .rgrm-cards, .rgrm-filters { grid-template-columns: minmax(0, 1fr); }
  .rgrm-cards { gap: 12px; }
  .rgrm-card-media, .rgrm-card-media img { height: 145px; min-height: 145px; }
  .rgrm-card-body { padding: 14px; }
  body.page .rg-content .rgrm-card h3 { font-size: .98rem; }
  .rgrm-card-actions a { min-height: 40px; font-size: .72rem; }
  .rgrm-registration { margin-top: 28px; padding: 18px; border-radius: 13px; }
  .rgrm-registration::after { right: -42px; bottom: -38px; width: 175px; height: 175px; opacity: .04; }
  .rgrm-registration-fields { grid-template-columns: 1fr; }
	.rgrm-public-riders ul { gap: .3rem; }
}
