/* grouprides.cc Help Center — look & feel of grouprides.cc (colors and fonts
   from the product's tailwind config). Plain CSS, no build step. */

@font-face {
    font-family: "HK Grotesk";
    src: url("fonts/HKGrotesk-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "HK Grotesk";
    src: url("fonts/HKGrotesk-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --lime: #BDFF00;
    --black: #14140F;
    --black-60: #14140f99;
    --gray-text: #636363;
    --gray: #CFD0D7;
    --gray-light: #EBEBEB;
    --surface: #FFFFFF;
    --bg: #F6F6F3;
    --red: #CC2500;
    --green: #00AB17;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(20, 20, 15, 0.06), 0 4px 16px rgba(20, 20, 15, 0.06);
    --max: 1040px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--black);
    font-family: "HK Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header — like the product's NavigationDesktop: lime bar, black wordmark, icons right */
.topbar { background: var(--lime); color: var(--black); position: sticky; top: 0; z-index: 30; }
.topbar .wrap { display: flex; align-items: center; gap: 4px; height: 68px; }
.brand { display: flex; align-items: center; color: var(--black); }
.brand .logo { width: 152px; height: auto; display: block; }
.topbar-spacer { flex: 1; }
.topbar-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: var(--black);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    border-radius: 999px;
}
.topbar-icon:hover { background: rgba(20, 20, 15, 0.08); }
.topbar-icon svg { width: 24px; height: 24px; }
.topbar-icon .menu-icon { width: 18px; height: 12px; }

/* Menu — like the product's NavigationModal */
.menu-backdrop { position: fixed; inset: 0; background: rgba(20, 20, 15, 0.5); z-index: 40; }
.menu {
    position: fixed;
    z-index: 50;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(480px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    padding: 28px 28px 32px;
}
.menu[hidden], .menu-backdrop[hidden] { display: none; }
.menu-close { position: absolute; top: 12px; right: 12px; background: none; border: 0; padding: 4px; cursor: pointer; color: var(--black); }
.menu-close svg { width: 20px; height: 20px; display: block; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; }
.menu a:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; }
.menu-big li { border-bottom: 1px solid var(--gray-light); padding: 12px 0; font-size: 24px; font-weight: 700; }
.menu-normal { margin-top: 20px !important; }
.menu-normal li { font-size: 18px; font-weight: 700; padding: 3px 0; }
.menu-small { margin-top: 28px !important; }
.menu-small li { font-size: 14px; color: var(--gray-text); padding: 2px 0; }

/* Hero + search */
.hero { background: var(--black); color: #fff; padding: 36px 0 56px; }
.hero h1 {
    font-weight: 700;
    font-size: clamp(30px, 6vw, 52px);
    letter-spacing: -0.01em;
    line-height: 1.05;
    margin: 0 0 22px;
}
.hero.compact { padding: 20px 0 28px; }
.hero.compact h1 { display: none; }
.search { position: relative; max-width: 680px; }
.search input {
    width: 100%;
    border: 2px solid transparent;
    border-radius: 999px;
    padding: 16px 20px 16px 52px;
    font: inherit;
    font-size: 17px;
    color: var(--black);
    background: #fff;
    outline: none;
}
.search input:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(189, 255, 0, 0.25); }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--gray-text); }
.suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    color: var(--black);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 10;
}
.suggest[hidden] { display: none; }
.suggest a {
    display: block;
    padding: 12px 18px;
    text-decoration: none;
    border-top: 1px solid var(--gray-light);
}
.suggest a:first-child { border-top: 0; }
.suggest a:hover, .suggest a.active { background: #f4fbe0; }
.suggest small { display: block; color: var(--gray-text); font-size: 13px; }

/* Main */
main { padding: 28px 0 0; }
h2.section {
    font-size: 20px;
    color: var(--black);
    margin: 32px 0 12px;
}
#view > h2.section:first-child { margin-top: 4px; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}
.card {
    display: block;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 18px;
    text-decoration: none;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--lime); transform: translateY(-1px); }
.card .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--black);
    color: var(--lime);
    display: grid;
    place-items: center;
    margin-bottom: 12px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin: 0 0 4px; font-size: 17px; }
.card p { margin: 0; color: var(--gray-text); font-size: 14px; }
.card .count { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; }

.list {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    text-decoration: none;
    border-top: 1px solid var(--gray-light);
}
.list a:first-child { border-top: 0; }
.list a:hover { background: #f4fbe0; }
.list a span { flex: 1; }
.list a small { display: block; color: var(--gray-text); font-size: 13px; }
.list .chev { color: var(--gray-text); width: 16px; height: 16px; flex: none; }

.crumbs { font-size: 14px; color: var(--gray-text); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.page-title { font-size: clamp(24px, 4vw, 32px); line-height: 1.2; margin: 0 0 6px; }
.page-lead { color: var(--gray-text); margin: 0 0 20px; }

/* Article */
.article {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    max-width: 760px;
}
.article .body p { margin: 0 0 14px; }
.article .body ul, .article .body ol { margin: 0 0 14px; padding-left: 22px; }
.article .body li { margin-bottom: 6px; }
.article .body a { font-weight: 700; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 2px; }
.article .body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88em;
    background: var(--gray-light);
    border-radius: 6px;
    padding: 2px 6px;
    overflow-wrap: anywhere;
}
.article .media { margin: 18px 0 0; }
.article .media img { max-width: 100%; border-radius: 10px; display: block; }
.article .media .video { position: relative; padding-top: 56.25%; border-radius: 10px; overflow: hidden; background: #000; }
.article .media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article .media figcaption { font-size: 13px; color: var(--gray-text); margin-top: 6px; }

.helpful {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--gray-light);
    margin-top: 22px;
    padding-top: 18px;
    font-weight: 700;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 2px solid var(--black);
    background: #fff;
    color: var(--black);
    border-radius: 999px;
    padding: 8px 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover { background: var(--lime); }
.btn.primary { background: var(--black); color: #fff; }
.btn.primary:hover { background: var(--lime); color: var(--black); }
.btn[disabled] { opacity: 0.5; cursor: default; }

/* Contact */
/* Contact hint: deliberately low-key — most answers should come from the FAQ. */
.cta {
    margin-top: 36px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    font-size: 15px;
}
.cta div { flex: 1; min-width: 220px; }
.cta h3 { margin: 0 0 2px; font-size: 16px; }
.cta p { margin: 0; color: var(--gray-text); }
.cta a { font-weight: 700; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 2px; }

.form { display: grid; gap: 14px; max-width: 640px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.form input, .form textarea, .form select {
    font: inherit;
    font-weight: 400;
    border: 1.5px solid var(--gray);
    border-radius: 10px;
    padding: 12px 14px;
    background: #fff;
    color: var(--black);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(189, 255, 0, 0.45); }
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 10px; padding: 12px 14px; font-weight: 700; }
.notice.ok { background: #eef5f0; color: var(--green); }
.notice.err { background: #f8ece8; color: var(--red); }
.form-suggest { background: #f4fbe0; border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.form-suggest[hidden] { display: none; }
.form-suggest ul { margin: 6px 0 0; padding-left: 18px; }
.form-suggest-lead { margin: 0 0 6px; font-weight: 600; }
.form-suggest details { border-top: 1px solid rgba(0, 0, 0, .08); }
.form-suggest details:first-of-type { border-top: 0; }
.form-suggest summary { cursor: pointer; padding: 8px 0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.form-suggest summary:hover { text-decoration-thickness: 2px; }
.form-suggest-body { padding: 0 0 10px; }
.form-suggest-body p, .form-suggest-body ul, .form-suggest-body ol { margin: 0 0 8px; }
.form-suggest-body ul, .form-suggest-body ol { padding-left: 18px; }
.form-suggest-body code { overflow-wrap: anywhere; }

/* Footer — like the product's layout/Footer */
footer { background: #fff; color: var(--black-60); margin-top: 48px; }
.footer-sections { display: flex; flex-wrap: wrap; gap: 32px; padding: 36px 0; border-top: 1px solid var(--gray-light); }
.footer-sections > div { width: 190px; }
.footer-title { color: var(--black); font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.footer-sections ul { list-style: none; margin: 0; padding: 0; }
.footer-sections li { line-height: 1.6; opacity: 0.8; }
.footer-sections a { text-decoration: none; }
.footer-sections a:hover { text-decoration: underline; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0 32px;
    border-top: 1px solid var(--gray-light);
}
.footer-bottom p { margin: 0; }
.footer-right { display: flex; align-items: center; gap: 16px; }
.lang-select {
    background: #fff;
    color: var(--black);
    border: 1.5px solid var(--gray);
    border-radius: 10px;
    padding: 8px 10px;
    font: inherit;
    font-size: 15px;
    width: 140px;
}
.social { color: var(--black-60); display: grid; }
.social:hover { opacity: 0.7; }
.social svg { width: 24px; height: 24px; }

.empty { color: var(--gray-text); }
.loading { color: var(--gray-text); padding: 40px 0; }

@media (max-width: 640px) {
    .hero { padding: 24px 0 36px; }
    .article { padding: 18px; }
}
