/*
 * RIDE UI layer
 * Small modern polish over the legacy layout. Keep selectors broad enough
 * to catch old forms, but scoped away from CKEditor/CKFinder internals.
 */

:root {
    --ride-bg: #fafafa;
    --ride-surface: #ffffff;
    --ride-border: #d8e0e8;
    --ride-border-strong: #bac8d6;
    --ride-text: #202833;
    --ride-muted: #647284;
    --ride-accent: #a7221e;
    --ride-accent-dark: #691512;
    --ride-accent-soft: #ad3430;
    --ride-danger: #c93535;
    --ride-danger-soft: #fdeaea;
    --ride-radius: 6px;
    --ride-shadow: 0 10px 24px rgba(28, 44, 64, 0.08);
}

body {
    color: var(--ride-text);
}

a {
    color: var(--ride-accent);
}

a:hover {
    color: var(--ride-accent-dark);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="file"],
select,
textarea {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 34px;
    padding: 7px 9px;
    border: 1px solid var(--ride-border-strong);
    border-radius: var(--ride-radius);
    background: var(--ride-surface);
    color: var(--ride-text);
    font: inherit;
    outline: none;
}

textarea {
    min-height: 120px;
}

select {
    padding-right: 28px;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
    border-color: var(--ride-accent);
    box-shadow: 0 0 0 3px rgba(0, 111, 184, 0.16);
}

input[type="submit"],
input[type="button"],
button,
.button,
a.button,
.activate,
.delete {
    display: inline-block;
    min-height: 34px;
    padding: 8px 13px;
    border: 1px solid var(--ride-accent-dark);
    border-radius: var(--ride-radius);
    background: var(--ride-accent);
    color: #fff !important;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover,
.button:hover,
a.button:hover,
.activate:hover {
    background: var(--ride-accent-dark);
    color: #fff !important;
    text-decoration: none;
}

.delete,
.delete:visited {
    border-color: #9e2626;
    background: var(--ride-danger);
}

.delete:hover {
    border-color: #8b2020;
    background: #aa2b2b;
}

label {
    cursor: pointer;
}

table {
    border-collapse: collapse;
}

div#header .ride-header-slider {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #111;
}

div#header .ride-header-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    white-space: normal;
    transition: margin-left 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

div#header .ride-header-slide {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

div#header .ride-header-slide img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    border: 0;
}

div#content #data h1 {
    color: var(--ride-text);
    font-size: 24px;
    line-height: 1.25;
}

div#content #data .news {
    overflow: hidden;
}

.ride-feed-thumb {
    position: relative;
    display: block;
    float: left;
    width: 112px;
    height: 84px;
    margin: 0 14px 10px 0;
    overflow: hidden;
    background: #e7ecf2;
    border-radius: 6px;
}

.ride-feed-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ride-feed-thumb.is-fallback img {
    display: none;
}

@media (max-width: 820px) {
    div#header .ride-header-slider {
        height: 190px;
    }
}

div#content .border_h4 {
    margin-top: 18px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--ride-border);
    color: var(--ride-text);
    font-size: 15px;
}

.admin-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 12px 0 16px;
    padding: 12px;
    background: var(--ride-bg);
    border: 1px solid var(--ride-border);
    border-radius: var(--ride-radius);
}

.admin-filter-form select,
.admin-filter-form input[type="submit"] {
    margin: 0;
}

.admin-list-table {
    width: 100%;
    margin-top: 10px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: var(--ride-surface);
    border: 1px solid var(--ride-border);
    border-radius: var(--ride-radius);
}

.admin-list-table td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--ride-border);
    vertical-align: top;
}

.admin-list-table tr:first-child td {
    background: var(--ride-bg);
    color: var(--ride-muted);
    font-size: 12px;
    text-transform: uppercase;
}

.admin-list-table tr:last-child td {
    border-bottom: 0;
}

.admin-list-table tr:hover td {
    background: #fbfdff;
}

.admin-row-actions {
    white-space: nowrap;
}

.admin-row-actions a {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 7px;
    border-radius: 4px;
    background: var(--ride-accent-soft);
    text-decoration: none;
}

.admin-side-menu {
    margin-top: 8px;
}

.admin-menu-list {
    margin: 0 0 14px;
    padding: 0;
}

.admin-menu-list li {
    margin: 0 0 6px;
}

.admin-menu-list a {
    display: block;
    padding: 9px 11px;
    background: var(--ride-surface);
    border: 1px solid var(--ride-border);
    border-radius: var(--ride-radius);
    color: var(--ride-text);
    text-decoration: none;
}

.admin-menu-list a:hover {
    background: var(--ride-accent-soft);
    border-color: #acd1eb;
    color: var(--ride-accent-dark);
}

.admin-message {
    margin: 10px 0 14px;
    padding: 10px 12px;
    background: var(--ride-danger-soft);
    border: 1px solid #f1b5b5;
    border-radius: var(--ride-radius);
    color: var(--ride-danger);
}

.admin-calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0;
    padding: 10px;
    background: var(--ride-bg);
    border: 1px solid var(--ride-border);
    border-radius: var(--ride-radius);
}

.admin-calendar-toolbar a {
    padding: 7px 10px;
    background: var(--ride-accent);
    border-radius: var(--ride-radius);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.admin-event-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin: 12px 0 24px;
    border: 1px solid var(--ride-border);
    border-radius: var(--ride-radius);
    overflow: hidden;
}

.admin-calendar-head,
.admin-calendar-day {
    min-height: 82px;
    padding: 8px;
    border-right: 1px solid var(--ride-border);
    border-bottom: 1px solid var(--ride-border);
    background: #fff;
}

.admin-calendar-head {
    min-height: auto;
    background: #111;
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.admin-calendar-day.is-empty {
    background: var(--ride-bg);
}

.admin-calendar-day.has-event {
    background: var(--ride-accent-soft);
}

.admin-calendar-day strong {
    display: block;
    margin-bottom: 6px;
}

.admin-calendar-day a {
    display: block;
    margin: 3px 0;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
}

.admin-event-form {
    display: grid;
    gap: 8px;
    margin: 0 0 20px;
    padding: 14px;
    background: var(--ride-bg);
    border: 1px solid var(--ride-border);
    border-radius: var(--ride-radius);
}

.admin-event-form label {
    font-weight: 700;
}

.admin-event-form input[type="text"] {
    width: 100%;
}

.admin-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-event-actions {
    margin-top: 8px;
}

#shop_empty,
.radius_all {
    border-radius: var(--ride-radius);
}

div#content #side #login,
div#content #side #search {
    border-radius: 0 0 var(--ride-radius) var(--ride-radius);
}

div#content #side #to_login {
    display: none;
}

div#content #side #search_box {
    float: none;
    box-sizing: border-box;
    width: 350px;
    height: auto;
    margin: 0 0 0;
    padding: 12px 12px 8px;
    background: var(--ride-accent);
    color: #fff;
    text-align: left;
    border-radius: var(--ride-radius) var(--ride-radius) 0 0;
}

div#content #side #search_box h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
}

div#content #side #side_search,
div#content #side .ride-side-search {
    display: block;
    float: none;
    box-sizing: border-box;
    width: 350px;
    height: auto;
    margin-bottom: 12px;
    padding: 12px;
    background: var(--ride-surface);
    border: 1px solid var(--ride-border);
    border-top: 0;
    color: var(--ride-text);
}

div#content #side #search_fields {
    display: flex;
    gap: 8px;
    width: auto;
    margin: 0;
    padding: 0;
}

div#content #side #search_fields #search_ {
    flex: 1;
    min-width: 0;
    width: auto;
}

div#content #side #search_fields #go_search {
    display: block;
    flex: 0 0 92px;
    width: 92px;
    min-height: 34px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid var(--ride-accent-dark);
    background: var(--ride-accent);
    color: #fff !important;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

div#content #side #search_fields #go_search:hover {
    background: var(--ride-accent-dark);
}

.search-page-form {
    display: flex;
    gap: 8px;
    margin: 0 0 16px;
}

.search-page-form input[type="search"] {
    flex: 1;
}

.search-count {
    color: var(--ride-muted);
}

.search-result {
    padding: 12px 0;
    border-bottom: 1px solid var(--ride-border);
}

.search-result h2 {
    margin: 0 0 4px;
    font-size: 18px;
}

.search-result p {
    margin: 5px 0 0;
}

.search-meta {
    color: var(--ride-muted);
    font-size: 12px;
}

div#menu ul li.menu-auth {
    float: right;
    position: relative;
}

div#menu > ul {
    overflow: visible;
}

div#menu ul li.menu-auth a,
div#menu ul li.menu-auth a:visited {
    margin-top: 8px;
    margin-left: 6px;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--ride-radius);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
}

div#menu ul li.menu-auth a:hover,
div#menu ul li.menu-auth a.active {
    background: var(--ride-accent);
    border-color: var(--ride-accent);
    color: #fff;
}

div#menu ul li.menu-auth + li.menu-auth a {
    border-left: 1px solid rgba(255,255,255,0.18);
}

div#menu ul li.menu-settings .menu-settings-list {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 12000;
    min-width: 160px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid rgba(255,255,255,0.14);
    background: #111111;
    box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}

div#menu ul li.menu-settings:hover .menu-settings-list,
div#menu ul li.menu-settings:focus-within .menu-settings-list {
    display: block;
}

div#menu ul li.menu-settings .menu-settings-list li {
    float: none;
}

div#menu ul li.menu-settings .menu-settings-list a,
div#menu ul li.menu-settings .menu-settings-list a:visited {
    display: block;
    margin: 0;
    padding: 9px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    white-space: nowrap;
}

div#menu ul li.menu-settings .menu-settings-list a:hover {
    background: var(--ride-accent);
}

.ride-modal {
    display: none;
    position: fixed;
    z-index: 20000;
    inset: 0;
}

.ride-modal.is-open {
    display: block;
}

.ride-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 15, 24, 0.68);
}

.ride-modal-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    box-sizing: border-box;
    width: 420px;
    max-width: calc(100% - 30px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 22px;
    transform: translate(-50%, -50%);
    background: var(--ride-surface);
    border-radius: 8px;
    box-shadow: var(--ride-shadow);
}

#register_popup .ride-modal-panel {
    width: 620px;
}

.ride-login-panel {
    width: 430px;
}

.ride-modal-panel h2 {
    margin: 0 0 8px;
    color: var(--ride-text);
    font-size: 20px;
}

.ride-modal-lead {
    margin: 0 0 16px;
    color: var(--ride-muted);
    line-height: 1.45;
}

.ride-modal-note {
    margin: 0 0 16px;
    padding: 10px;
    background: var(--ride-accent-soft);
    border: 1px solid #c8e0f2;
    border-radius: var(--ride-radius);
    color: var(--ride-text);
    line-height: 1.45;
}

.ride-modal-panel h3 {
    margin: 14px 0 8px;
    font-size: 16px;
}

.ride-modal-close {
    position: absolute;
    right: 10px;
    top: 10px;
    min-height: 28px;
    width: 28px;
    padding: 0;
    border-radius: 50%;
}

.ride-modal-panel label {
    display: block;
    margin: 10px 0 4px;
    color: var(--ride-text);
    font-weight: 700;
}

.ride-modal-panel label small {
    display: block;
    margin-top: 2px;
    color: var(--ride-muted);
    font-weight: 400;
}

.ride-modal-panel input[type="text"],
.ride-modal-panel input[type="password"] {
    width: 100%;
}

.ride-modal-actions {
    margin-top: 16px;
}

.ride-inline-fields {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ride-inline-fields input {
    width: 96px;
}

.ride-check-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 4px;
}

.ride-check-grid label {
    margin: 0;
    padding: 8px;
    background: var(--ride-bg);
    border: 1px solid var(--ride-border);
    border-radius: var(--ride-radius);
    font-weight: 700;
}

.ride-help-box {
    margin-top: 14px;
    padding: 12px;
    background: #fbfdff;
    border: 1px solid var(--ride-border);
    border-radius: var(--ride-radius);
}

.ride-help-box p {
    margin: 8px 0 0;
    color: var(--ride-muted);
    line-height: 1.4;
}

#register_message {
    display: block;
    margin-top: 10px;
    color: var(--ride-muted);
}

#message {
    display: block;
    margin-top: 10px;
    color: var(--ride-muted);
}

body.home-page {
    background: #fafafa;
    scroll-behavior: smooth;
}

.home-page div#page {
    width: 100%;
    margin: 0;
}

.home-page #footer {
    max-width: 100%;
    margin: 0 auto;
    float: none;
    position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
}

.home-hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    position: sticky;
    top: 0;
    z-index: 0;
    background-position: center;
    background-size: cover;
    background-color: #111;
    color: #fff;
    will-change: transform;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.72));
}

.home-hero-content {
    position: relative;
    z-index: 2;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto 80px;
    transform: translateY(0);
    transition: transform 0.7s ease, opacity 0.7s ease;
}

.home-hero h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 74px;
    line-height: 0.95;
}

.home-hero p {
    max-width: 620px;
    margin: 0;
    font-size: 22px;
    line-height: 1.35;
}

.home-section-inner {
    width: min(1120px, calc(100% - 40px));
    min-height:95vh;
    margin: 0 auto;
}

.home-intro,
.home-menu-row,
.home-news-section,
.home-calendar-section {
    position: relative;
    z-index: 2;
    padding: 74px 0;
}

.home-intro {
    background: #fff;
}

.home-menu-row {
    position: sticky;
    top: 0;
    z-index: 5000;
    padding: 0;
    background: #fafafa;
}

.home-intro h2,
.home-news-section h2,
.home-calendar-section h2 {
    margin: 0 0 22px;
    color: var(--ride-text);
    font-size: 34px;
    line-height: 1.15;
}

.home-intro p {
    max-width: 850px;
    color: #444444;
    font-size: 18px;
    line-height: 1.65;
}

.home-page div#menu {
    position: relative;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.45s ease;
    will-change: opacity, transform;
}

.home-page.home-menu-visible div#menu {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.home-page div#menu ul {
    max-width: 1120px;
    margin: 0 auto;
}

.home-news-section {
    background: #f5f7fa;
}

.home-news-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
    gap: 24px;
}

.home-news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ride-border);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-news-card:hover {
    transform: translateY(-2px);
    border-color: rgba(210, 31, 38, 0.28);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.13);
}

.home-news-card-media {
    display: block;
    aspect-ratio: 16 / 9;
    background: #d8dee8;
    overflow: hidden;
}

.home-news-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.22s ease;
}

.home-news-card-media.is-fallback {
    position: relative;
    background: #e7ecf2;
}

.home-news-card-media.is-fallback img {
    display: none;
}

.home-news-card-media.is-fallback::before,
.ride-feed-thumb.is-fallback::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    transform: translate(-50%, -50%);
    border: 5px solid rgba(0, 111, 184, 0.48);
    border-radius: 50%;
    background:
        linear-gradient(90deg, transparent 45%, rgba(0, 111, 184, 0.48) 45%, rgba(0, 111, 184, 0.48) 55%, transparent 55%),
        linear-gradient(0deg, transparent 45%, rgba(0, 111, 184, 0.48) 45%, rgba(0, 111, 184, 0.48) 55%, transparent 55%);
}

.home-news-card-media.is-fallback::after,
.ride-feed-thumb.is-fallback::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 42px;
    height: 72px;
    transform: translate(-50%, -50%);
    border-left: 4px solid rgba(0, 111, 184, 0.38);
    border-right: 4px solid rgba(0, 111, 184, 0.38);
    border-radius: 50%;
}

.home-news-card-media.fallback-video::before,
.ride-feed-thumb.fallback-video::before {
    width: 82px;
    height: 54px;
    border: 5px solid rgba(0, 111, 184, 0.48);
    border-radius: 12px;
    background: none;
}

.home-news-card-media.fallback-video::after,
.ride-feed-thumb.fallback-video::after {
    left: calc(50% + 46px);
    width: 0;
    height: 0;
    border: 18px solid transparent;
    border-left-color: rgba(0, 111, 184, 0.48);
    border-right: 0;
    border-radius: 0;
}

.home-news-card-media.fallback-competition::before,
.ride-feed-thumb.fallback-competition::before {
    width: 62px;
    height: 54px;
    border: 5px solid rgba(0, 111, 184, 0.48);
    border-top: 0;
    border-radius: 0 0 18px 18px;
    background: none;
}

.home-news-card-media.fallback-competition::after,
.ride-feed-thumb.fallback-competition::after {
    width: 96px;
    height: 82px;
    border: 5px solid rgba(0, 111, 184, 0.38);
    border-top: 0;
    border-bottom: 5px solid rgba(0, 111, 184, 0.48);
    border-radius: 0 0 28px 28px;
    background:
        linear-gradient(rgba(0, 111, 184, 0.48), rgba(0, 111, 184, 0.48)) center 62px / 36px 5px no-repeat,
        linear-gradient(rgba(0, 111, 184, 0.48), rgba(0, 111, 184, 0.48)) center 70px / 58px 5px no-repeat;
}

.ride-feed-thumb.is-fallback::before {
    width: 42px;
    height: 42px;
    border-width: 4px;
}

.ride-feed-thumb.is-fallback::after {
    width: 25px;
    height: 42px;
    border-left-width: 3px;
    border-right-width: 3px;
}

.ride-feed-thumb.fallback-video::before {
    width: 48px;
    height: 32px;
    border-width: 4px;
    border-radius: 9px;
}

.ride-feed-thumb.fallback-video::after {
    left: calc(50% + 28px);
    border-width: 12px;
    border-right: 0;
}

.ride-feed-thumb.fallback-competition::before {
    width: 38px;
    height: 32px;
    border-width: 4px;
    border-top: 0;
    border-radius: 0 0 12px 12px;
}

.ride-feed-thumb.fallback-competition::after {
    width: 58px;
    height: 48px;
    border-width: 4px;
    border-top: 0;
    border-bottom-width: 4px;
    border-radius: 0 0 18px 18px;
    background:
        linear-gradient(rgba(0, 111, 184, 0.48), rgba(0, 111, 184, 0.48)) center 36px / 24px 4px no-repeat,
        linear-gradient(rgba(0, 111, 184, 0.48), rgba(0, 111, 184, 0.48)) center 43px / 38px 4px no-repeat;
}

.home-news-card:hover .home-news-card-media img {
    transform: scale(1.035);
}

.home-news-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.home-news-card-featured .home-news-card-body {
    padding: 26px;
}

.home-side-articles {
    display: grid;
    gap: 14px;
}

.home-side-articles .home-news-card {
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr);
    min-height: 142px;
}

.home-side-articles .home-news-card-media {
    aspect-ratio: auto;
    height: 100%;
}

.home-side-articles .home-news-card-body {
    padding: 16px;
}

.home-news-card h3 {
    margin: 0 0 10px;
    line-height: 1.2;
}

.home-news-card-featured h3 {
    font-size: 30px;
}

.home-side-articles h3 {
    font-size: 18px;
}

.home-news-card p {
    color: #526173;
    line-height: 1.5;
}

.home-kicker {
    margin: 0 0 10px;
    color: var(--ride-muted) !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.home-read-more {
    display: inline-block;
    margin-top: 12px;
    padding: 9px 13px;
    background: var(--ride-accent);
    border-radius: 6px;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
}

.home-calendar-section {
    background: #fff;
}

.home-calendar-titlebar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.home-calendar-titlebar h2 {
    margin-bottom: 0;
}

.home-calendar-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f5f7fa;
    border: 1px solid var(--ride-border);
    border-radius: 8px;
}

.home-calendar-picker label {
    margin: 0;
    color: var(--ride-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.home-calendar-picker select {
    min-width: 104px;
}

.home-calendar-picker input[type="submit"] {
    min-height: 38px;
}

.home-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border: 1px solid var(--ride-border);
    border-radius: 8px;
    overflow: hidden;
}

.home-calendar-head,
.home-calendar-day {
    min-height: 92px;
    padding: 10px;
    border-right: 1px solid var(--ride-border);
    border-bottom: 1px solid var(--ride-border);
    background: #fff;
}

.home-calendar-head {
    min-height: auto;
    background: #111;
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.home-calendar-day:nth-child(7n) {
    border-right: 0;
}

.home-calendar-day.is-empty {
    background: #f5f7fa;
}

.home-calendar-day.has-event {
    background: var(--ride-accent-soft);
}

.home-calendar-day.is-today {
    outline: 3px solid var(--ride-accent);
    outline-offset: -3px;
    background: #fff7e6;
}

.home-calendar-day strong {
    display: block;
    margin-bottom: 7px;
}

.home-calendar-day.is-today strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    background: var(--ride-accent);
    border-radius: 50%;
    color: #fff;
}

.home-calendar-day a {
    display: block;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
}

.home-calendar-empty {
    color: var(--ride-muted);
}

@media (max-width: 820px) {
    .home-hero h1 {
        font-size: 46px;
    }

    .home-hero p,
    .home-intro p {
        font-size: 16px;
    }

    .home-news-grid {
        grid-template-columns: 1fr;
    }

    .home-calendar-titlebar,
    .home-calendar-picker {
        align-items: stretch;
        flex-direction: column;
    }

    .home-calendar-picker select,
    .home-calendar-picker input[type="submit"] {
        width: 100%;
    }

    .home-side-articles .home-news-card {
        grid-template-columns: 1fr;
    }

    .home-side-articles .home-news-card-media {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .home-calendar {
        overflow-x: auto;
        grid-template-columns: repeat(7, 130px);
    }

    .home-page div#menu ul li.menu-auth {
        float: left;
    }
}
