/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

body {
  background-color: #F8F9FA;
  color: #212529;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.card {
  background-color: #ffffff;
}

/*************************************************/
/* GOOGLE FONT */
/*************************************************/
.inter-<uniquifier> {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

/*************************************************/
/* MYRUN ID */
/*************************************************/

.myrun-site { background: #fff; }

/* =========================
   myrun.id premium landing
   ========================= */

.myrun-site {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans JP", sans-serif;
  background: #0b0b0b;
}

.myrun-hero-premium { position: relative; overflow: hidden; }

.myrun-hero-photo{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.06);
  opacity: 0.42; /* adjust 0.25–0.55 depending on photo */
  filter: saturate(0.85) contrast(1.05);
}

/* keep your existing .myrun-hero-bg above the photo */
.myrun-hero-bg{
  position: absolute;
  inset: -80px -40px auto -40px;
  height: 520px;
  z-index: 1;
}

/* ensure content sits above both layers */
.myrun-hero-inner{ position: relative; z-index: 2; }

/* optional: extra dark wash for readability (smoothed, no band) */
.myrun-hero-premium::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.42) 0%,
    rgba(0,0,0,0.58) 55%,
    rgba(0,0,0,0.76) 100%
  );
  z-index: 1;
  pointer-events:none;
}

/* hero (smoothed base gradient + slightly gentler radial fade) */
.myrun-hero-premium{
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      1200px 760px at 50% -10%,
      rgba(255,255,255,0.08),
      rgba(0,0,0,0) 70%
    ),
    linear-gradient(
      180deg,
      #0b0b0b 0%,
      #0a0a0a 72%,
      #080808 100%
    );
  padding: 96px 0 82px;
}

/* hero glow layer (fade out at bottom so it doesn’t “cut” a band) */
.myrun-hero-bg{
  position: absolute;
  inset: -80px -40px auto -40px;
  height: 560px; /* slightly taller reduces visible cutoff */
  pointer-events: none;
  opacity: 0.9;
  transform: scale(1.05) translate3d(0,0,0);
  transition: transform 120ms linear;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,0.20), rgba(255,255,255,0) 62%),
    radial-gradient(circle at 72% 18%, rgba(255,255,255,0.11), rgba(255,255,255,0) 62%),
    radial-gradient(circle at 52% 62%, rgba(201,162,77,0.16), rgba(201,162,77,0) 68%);
  filter: blur(0.2px);

  /* key: soften the bottom edge to remove divider look */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
}

.myrun-hero-inner { position: relative; z-index: 2; }

.myrun-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.18em;
  font-size: 12px;
  text-transform: uppercase;
}

.myrun-kicker-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(201,162,77,0.95);
  box-shadow: 0 0 0 6px rgba(201,162,77,0.14);
  position: relative;
}

/* soft pulse ring */
.myrun-kicker-dot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background: rgba(201,162,77,0.35);
  opacity: 0;
  animation: myrun-pulse 2.8s ease-out infinite;
}

/* animation */
@keyframes myrun-pulse {
  0% {
    transform: scale(0.4);
    opacity: 0.8;
  }
  60% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.myrun-hero-title {
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-top: 14px;
  font-size: clamp(2.4rem, 4.3vw, 3.6rem);
}

.myrun-hero-title-muted {
  color: rgba(255,255,255,0.58);
  font-weight: 800;
}

.myrun-hero-subtitle {
  max-width: 66ch;
  margin: 14px auto 0;
  color: rgba(255,255,255,0.72);
  font-size: 1.15rem;
  line-height: 1.6;
}

.myrun-hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.myrun-btn-pill { border-radius: 999px; }

.myrun-btn-primary {
  background: rgba(255,255,255,0.92);
  color: #0b0b0b;
  border: 0;
  box-shadow: 0 14px 36px rgba(0,0,0,0.35);
}
.myrun-btn-primary:hover { background: #fff; color: #0b0b0b; transform: translateY(-1px); }

.myrun-btn-surface {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}
.myrun-btn-surface:hover { background: rgba(255,255,255,0.16); color: #fff; }

.myrun-hero-id { max-width: 720px; margin-left: auto; margin-right: auto; }

.myrun-id-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
}

.myrun-id-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}

.myrun-id-value {
  flex: 1;
  text-align: left;
  color: rgba(255,255,255,0.92);
  font-weight: 800;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.myrun-btn-chip {
  background: rgba(255,255,255,0.92);
  color: #0b0b0b;
  border: 0;
  padding: 6px 12px;
}
.myrun-btn-chip:hover { background: #fff; }

/* sticky CTA */
.myrun-sticky-cta {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(10,10,10,0.66);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  transform: translateY(-110%);
  transition: transform 260ms ease;
  padding: 10px 0;
}
.myrun-sticky-cta.is-visible { transform: translateY(0); }

/* bands */
.myrun-band { background: #0b0b0b; }
.myrun-band-white { background: #fff; }
.myrun-band-alt { background: #f6f7f9; }

.myrun-section { padding-left: 12px; padding-right: 12px; }

.myrun-display {
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}
.myrun-display-muted { color: rgba(0,0,0,0.45); font-weight: 800; }

.myrun-display-sm {
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
}

.myrun-lead { max-width: 68ch; margin-left: auto; margin-right: auto; }

.myrun-stats-wrap { max-width: 980px; margin: 0 auto; }
.myrun-stats-card {
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,0.10);
}

.myrun-stat-block {
  border-radius: 16px;
  padding: 18px 14px;
  background: #fff;
}

.myrun-stat-kicker {
  color: rgba(0,0,0,0.55);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}
.myrun-stat-number {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.35rem;
  margin-top: 4px;
}

.myrun-panel { border-radius: 18px; }
.myrun-panel-title { font-weight: 900; letter-spacing: -0.02em; }

.myrun-kicker-dark {
  color: rgba(0,0,0,0.55);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
}

.myrun-showcase {
  border-radius: 18px;
  background: #0b0b0b;
  color: #fff;
  box-shadow: 0 18px 48px rgba(0,0,0,0.22);
}

.myrun-show-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.myrun-show-label { color: rgba(255,255,255,0.55); font-size: 0.95rem; }
.myrun-show-value { font-weight: 800; letter-spacing: -0.01em; text-align: right; }
.myrun-show-divider { height: 1px; background: rgba(255,255,255,0.10); margin: 14px 0; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 520ms ease, transform 520ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* spacing helpers */
.py-lg-6 { padding-top: 4.25rem !important; padding-bottom: 4.25rem !important; }
.pb-6 { padding-bottom: 4.25rem !important; }

/* MyRun ID dark form placeholders */
.myrun-dark-input::placeholder {
  color: rgba(255,255,255,0.55);
}

/* MyRun ID dark inputs */
.myrun-dark-input {
  min-height: 44px;
  padding: 10px 12px;
  line-height: 1.4;
  font-size: 0.95rem;
}

.myrun-dark-input::placeholder {
  color: rgba(255,255,255,0.55);
}

/* Minimal file uploader */
.myrun-file {
  display: flex;
  align-items: center;
  gap: 10px;
}

.myrun-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.30);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.myrun-file-btn:hover {
  border-color: rgba(255,255,255,0.24);
  background: rgba(0,0,0,0.36);
}

.myrun-file-meta {
  min-width: 0;
  flex: 1;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  line-height: 1.2;
}

.myrun-file-meta strong {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

.myrun-file-actions {
  display: inline-flex;
  gap: 10px;
  font-size: 0.85rem;
}

.myrun-file-actions a,
.myrun-file-actions button {
  background: transparent;
  border: 0;
  padding: 0;
  color: rgba(255,255,255,0.70);
  text-decoration: none;
  cursor: pointer;
}

.myrun-file-actions a:hover,
.myrun-file-actions button:hover {
  color: rgba(255,255,255,0.95);
  text-decoration: underline;
}

.myrun-file-preview {
  margin-top: 8px;
  width: 100%;
  max-height: 120px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  object-fit: cover;
  display: none;
}

/* ===== MyRun ID hero background (Ken Burns) ===== */
.myrun-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;   /* vertical center */
  position: relative;
}

.myrun-hero-inner {
  width: 100%;
  position: relative;
  z-index: 2; /* stays above photo + overlays */
  transform: translateY(-24px);
}

@keyframes myrunKenBurns{
  0%   { transform: scale(1) translate3d(0,0,0); }
  100% { transform: scale(1.08) translate3d(-2%, -2%, 0); }
}

@media (prefers-reduced-motion: reduce){
  .myrun-hero::before{ animation:none; transform:none; }
}

.myrun-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.myrun-powered {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.myrun-powered:hover {
  color: #C9A24D !important;
  text-decoration: underline;
}

/* ===== Title styling ===== */
.myrun-title{
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 800;                 /* bolder than fw-bold */
  line-height: 1.02;
  font-size: clamp(2rem, 5vw, 3.6rem);
  text-shadow: 0 10px 40px rgba(0,0,0,0.45);
}

.myrun-dot{
  display: inline-block;
  width: .32em;
  height: .32em;
  margin: 0 .22em .10em;
  border-radius: 999px;

  background: radial-gradient(
    circle at 30% 30%,
    #fff1b8 0%,
    #d4af37 60%,
    #8a6d1d 100%
  );

  box-shadow:
    0 0 0 0 rgba(212,175,55,0.22),
    0 6px 16px rgba(0,0,0,0.32);

  animation: myrunPulseSlow 5.2s ease-in-out infinite;
}

@keyframes myrunPulseSlow {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(212,175,55,0.22),
      0 6px 16px rgba(0,0,0,0.32);
    opacity: 0.82;
  }

  55% {
    transform: scale(1.18);
    box-shadow:
      0 0 0 .32em rgba(212,175,55,0.10),
      0 10px 26px rgba(0,0,0,0.40);
    opacity: 0.95;
  }

  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(212,175,55,0.22),
      0 6px 16px rgba(0,0,0,0.32);
    opacity: 0.82;
  }
}

@media (prefers-reduced-motion: reduce) {
  .myrun-dot {
    animation: none;
  }
}

#powered-by-rotator {
  display: inline-block;
  min-width: 6ch; /* prevents layout jump */
  transition: opacity 0.6s ease;
  color: #C9A24D; /* gold */
}

.myrun-hero-grid{
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

/* Default: center on wider screens */
.myrun-main{
  display: grid;
  place-items: center;
}

@media (min-width: 1440px) and (orientation: landscape){
  .myrun-main{
    transform: translateY(-80px);
  }
}

@media (min-width: 1024px) and (orientation: landscape){
  .myrun-main{
    transform: translateY(-40px);
  }
}

/* On tall portrait screens, stop vertical centering */
@media (max-width: 991px){
  .myrun-main{
    place-items: start center;     /* top-align vertically, keep centered horizontally */
    padding-top: 20px;
  }
}

/* Even more aggressive for very tall screens if you want */
@media (max-width: 767px){
  .myrun-main{
    padding-top: 30px;
  }
}

/*************************************************/
/* HERO JUMBOTRON */
/*************************************************/
.hero-premium {
  width: 100vw;
  min-height: 65vh;
  margin-top: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  /* keep your full-bleed breakout */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  /* new bits */
  position: relative;
  overflow: hidden;
  background: #000; /* fallback behind image */
}

/* Ken Burns image layer */
.hero-premium::before {
  content: "";
  position: absolute;
  inset: -40px; /* prevents edges during zoom */
  background-image: url(/assets/hashirun-hero-image.webp);
  background-size: cover;
  background-position: center;
  transform: scale(1) translate3d(0, 0, 0);
  animation: heroKenBurns 24s ease-in-out infinite alternate;
  will-change: transform;
}

/* Your existing dark overlay (same opacity as before) */
.hero-premium::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45));
}

/* Keep text above the layers */
.hero-inner {
  max-width: 720px;
  z-index: 2;
  position: relative;
}

.hero-title {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

.hero-actions .btn {
  border-radius: 999px;
}

/* Subtle Ken Burns */
@keyframes heroKenBurns {
  0%   { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(-2%, -2%, 0); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-premium::before {
    animation: none;
    transform: none;
  }
}

/*************************************************/
/* NAVBAR */
/*************************************************/

[id^="review_"] { scroll-margin-top: 90px; }

.navbar {
  min-height: 60px; /* optional but helps consistency */
  top: 0;
  transform: translateZ(0);
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1;
}

.brand-stack {
  position: relative;
  display: inline-block;
  line-height: 0;
  min-width: 6.5ch; /* prevents width jump, tweak if needed */
}

.brand-layer {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  will-change: opacity, transform;
}

.brand-layer.is-active {
  opacity: 1;
}

/* Motion: looks like it's overtaking */
.brand-en {
  transform: translateX(0);
  font-weight: 900;
}

.brand-hash {
  transform: translateX(0);
  font-weight: 900;
}

.brand-jp {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 900;
}

.brand-jp.is-active {
  transform: translateX(0); /* slides into place while fading in */
}

.brand-en.is-active {
  transform: translateX(0);
}

.brand-en.is-exiting {
  transform: translateX(10px); /* slides away while fading out */
}

/* Optional: make JP feel a touch different */
.brand-jp {
  letter-spacing: 0.02em;
}

.hr-logout-tiny {
  font-size: 0.7rem;
  padding: 2px 6px !important;
  line-height: 1.1;
}

.hr-nav-tiny:hover {
  opacity: 1;
}

.footer-brand-wrap {
  display: inline-block; /* key: constrains width to logo + text */
  text-align: center;
}

.footer-brand {
  font-family: "Inter", sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.footer-brand-text {
  line-height: 1;
}

.footer-tagline {
  font-size: 1rem;
  opacity: 0.85;
  line-height: 1.3;
}

.nav-link-minimal {
  line-height: 1;
  padding-top: 0;
  padding-bottom: 0;
  height: 100%;
  display: flex;
  align-items: center;
  transform: translateY(0.5px);
}

.nav-link-minimal:hover {
  color: #000;
}

.nav-link-admin {
  background: #000;
  color: #fff !important;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  transition: background 160ms ease, transform 120ms ease, opacity 120ms ease;
}

/* Hover */
.nav-link-admin:hover {
  background: #111;
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Active / pressed */
.nav-link-admin:active {
  transform: translateY(0);
}

.hr-feed-btn {
  color: #111;
}

.hr-feed-btn:hover {
  color: #000;
}

.hr-feed-unread-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 9px;
  height: 9px;
  background: #dc3545; /* Bootstrap danger red */
  border-radius: 999px;
  border: 2px solid #fff;
  display: none;
}

/*************************************************/
/* FLASH NOTICE MESSAGES */
/*************************************************/

.hr-flash-wrap {
  position: static;
  z-index: auto;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.hr-flash{
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(11,15,25,0.18);
  border: 1px solid rgba(11,15,25,0.10);
  pointer-events: auto;
  margin-bottom: 10px;
}

.hr-flash-inner{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-right: 28px; /* space so text doesn’t sit under the close button */
}

.hr-flash-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 5px;
  flex: 0 0 auto;
}

.hr-flash-dot-success{ background: #198754; }
.hr-flash-dot-danger{ background: #dc3545; }
.hr-flash-dot-warning{ background: #ffc107; }
.hr-flash-dot-info{ background: #0dcaf0; }

.hr-flash-text{
  font-weight: 700;
  line-height: 1.25;
}

/*************************************************/
/* ONBOARDING */
/*************************************************/

/* ===== Onboarding: Race Journey ===== */

.hr-onboarding-body {
  background: #f6f7fb;
}

.hr-onboard-shell {
  min-height: 75vh;
  display: flex;
  align-items: center;     /* vertical center */
  justify-content: center; /* horizontal center */
  padding: 24px;           /* safe spacing on small screens */
  box-sizing: border-box;
}

.hr-onboard-card {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.08);
  padding: 18px 18px 16px 18px;
  position: relative;
  overflow: hidden;
}

.hr-onboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.hr-onboard-brand{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

/* push the close button to the far right */
.hr-onboard-x{
  position: absolute;
  top: 12px;
  right: 12px;

  border: 0;
  background: transparent;
  color: rgba(0,0,0,0.35);
  font-size: 22px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  z-index: 5;
}

.hr-onboard-brand form,
form:has(.hr-onboard-x){
  margin: 0;
}

.hr-onboard-x-form{
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
  z-index: 5;
}

.hr-onboard-x:hover{
  color: rgba(0,0,0,0.75);
  background: rgba(0,0,0,0.05);
}

.hr-onboard-back {
  color: rgba(0,0,0,0.55);
  text-decoration: none;
  font-size: 18px;
  padding: 6px 10px;
}

.hr-onboard-logo {
  width: 18px;
  height: 18px;
  opacity: 0.95;
}

.hr-onboard-kicker {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  font-weight: 700;
}

.hr-onboard-title {
  margin-top: 10px;
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: 800;
}

.hr-onboard-sub {
  color: rgba(0,0,0,0.55);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 10px;
}

.hr-onboard-actions {
  margin-top: 12px;
}

/* Onboarding choice buttons: white until hover, then black */
.hr-onboard-choice{
  background: #fff !important;
  color: #000 !important;
  border: 1px solid rgba(0,0,0,0.18) !important;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.hr-onboard-choice:hover,
.hr-onboard-choice:focus{
  background: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}

.hr-onboard-choice:active{
  transform: translateY(0);
  box-shadow: none;
}

/* Nice keyboard focus */
.hr-onboard-choice:focus-visible{
  outline: 3px solid rgba(0,0,0,0.18);
  outline-offset: 2px;
}

.hr-pill {
  border-radius: 999px;
}

.hr-onboard-footer {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.hr-onboard-later {
  border: 0;
  background: transparent;
  color: rgba(0,0,0,0.35);
  font-size: 12px;
  padding: 8px 10px;
  text-decoration: underline;
}

.hr-onboard-list {
  border-radius: 14px;
  overflow: hidden;
}

.hr-onboard-empty {
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 14px;
  color: rgba(0,0,0,0.55);
  font-size: 14px;
}

/* “page shifts right” animation */
@keyframes hrSlideInRight {
  from { transform: translateX(22px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes hrFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hr-onboard-enter {
  animation: hrFadeIn 220ms ease-out both;
}
.hr-onboard-enter-right {
  animation: hrSlideInRight 240ms ease-out both;
}

/* Onboarding result CTA: always black + visible */
.hr-onboard-add{
  background:#000 !important;
  color:#fff !important;
  border:1px solid #000 !important;
  font-weight:800;
}

.hr-onboard-add:hover,
.hr-onboard-add:focus{
  background:#111 !important;
  color:#fff !important;
  border-color:#111 !important;
}

.hr-onboard-result{
  padding: 12px;
}

.hr-onboard-result-thumb{
  width: 96px;
  min-width: 96px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  background-image: var(--thumb-url);
  background-size: cover;
  background-position: center;
  position: relative;
  border: 1px solid rgba(0,0,0,0.06);
}

.hr-onboard-result-thumb-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.10), rgba(0,0,0,0.35));
}

.hr-onboard-add{
  background: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
}
.hr-onboard-add:hover{
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
}

.hr-onboard-result .btn-dark {
  background-color: #212529;
  border-color: #212529;
  color: #fff;
}

/*************************************************/
/* MEMBER AVATAR */
/*************************************************/

.hr-member-avatar{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.14);
}

.hr-member-avatar-img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.hr-member-avatar-initials{
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(0,0,0,0.65);
}

.hr-member-avatar--completed{
  border-color: rgba(25,135,84,0.35); /* subtle green ring */
}

/*************************************************/
/* ABOUT PAGE */
/*************************************************/
.about-hero {
  position: relative;
  overflow: hidden;

  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  background: #000; /* fallback */
  background-size: cover;
  background-position: center;
}

/* Ken Burns image layer (same image you used) */
.about-hero::before {
  content: "";
  position: absolute;
  inset: -40px; /* prevents edge reveal during zoom */
  background-size: cover;
  background-position: center;
  transform: scale(1) translate3d(0, 0, 0);
  animation: aboutKenBurns 26s ease-in-out infinite alternate;
  will-change: transform;
}

/* Preserve your exact overlay strength */
.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0.50));
}

/* Preserve your inner stacking */
.about-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

/* Subtle Ken Burns */
@keyframes aboutKenBurns {
  0%   { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.07) translate3d(-1.5%, -1.5%, 0); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .about-hero::before {
    animation: none;
    transform: none;
  }
}

.about-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.about-hero-title {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.about-hero-subtitle {
  color: rgba(255,255,255,0.78);
  font-size: 1.1rem;
  line-height: 1.6;
}

.about-kanji {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.about-reading {
  margin-top: 0.4rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.about-meaning {
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

.about-name-card {
  border-radius: 14px;
}

.about-cta {
  border-radius: 14px;
}

/* Primary dark button */
.hr-btn-dark{
  background:#000;
  color:#fff;
  border:1px solid #000;
  border-radius:999px;
  font-weight:600;
  letter-spacing:.01em;
  padding:.6rem 1.4rem;
  transition: all .18s ease;
}

.hr-btn-dark:hover{
  background:#111;
  color:#fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

/* Secondary outline button */
.hr-btn-outline-dark{
  background:transparent;
  color:#000;
  border:1px solid rgba(0,0,0,.25);
  border-radius:999px;
  font-weight:600;
  letter-spacing:.01em;
  padding:.6rem 1.4rem;
  transition: all .18s ease;
}

.hr-btn-outline-dark:hover{
  background:#000;
  color:#fff;
  border-color:#000;
  transform: translateY(-1px);
}

/* Logo evolution divider */
.about-evolution-divider {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 18px 0;
  position: relative;
}

.about-evolution-divider::before,
.about-evolution-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 120px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0,0,0,0.12),
    transparent
  );
}

.about-evolution-divider::before {
  left: -140px;
}

.about-evolution-divider::after {
  right: -140px;
}

.about-evolution-divider-img {
  max-width: 260px;
  width: 100%;
  height: auto;
  opacity: 0.65;
  filter: grayscale(100%);
}

@media (max-width: 576px) {
  .about-evolution-divider::before,
  .about-evolution-divider::after {
    display: none;
  }

  .about-evolution-divider-img {
    max-width: 220px;
  }
}

.about-progress-board{
  border-radius: 18px;
  padding: 10px;
  background: radial-gradient(520px 220px at 20% 15%, rgba(201,162,77,0.14), transparent 60%),
              radial-gradient(520px 240px at 85% 35%, rgba(0,0,0,0.06), transparent 65%),
              rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: blur(8px);
}

.hr-pb-board-demo{
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.92));
}

/* ================================
   PB board layout (base)
   Works for: .hr-pb-board + .hr-pb-board-demo
================================== */

:is(.hr-pb-board, .hr-pb-board-demo){
  container-type: inline-size;
  container-name: pb;
}

:is(.hr-pb-board, .hr-pb-board-demo) .hr-pb-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto; /* label | time | icon (if any) */
  align-items: center;
  column-gap: 12px;
}

:is(.hr-pb-board, .hr-pb-board-demo) :is(.hr-pb-label, .hr-pb-time){
  min-width: 0; /* critical for shrink inside grid/flex */
}

:is(.hr-pb-board, .hr-pb-board-demo) .hr-pb-time{
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  white-space: nowrap;
  max-width: 100%;
}

:is(.hr-pb-board, .hr-pb-board-demo) .hr-flip{
  flex: 0 0 auto;
}

/* Wrapper safety (Safari rounding) */
.about-progress-board{
  overflow: hidden;
  max-width: 100%;
}

/* ================================
   "Stacked" mode (2 lines)
   Reused by container query + optional iPad fallback
================================== */

:is(.hr-pb-board, .hr-pb-board-demo) .hr-pb-dist{
  word-break: keep-all; /* never letter-stack */
}

.pb-stack :is(.hr-pb-board, .hr-pb-board-demo) .hr-pb-row{
  grid-template-columns: 1fr;
  row-gap: 8px;
}

.pb-stack :is(.hr-pb-board, .hr-pb-board-demo) .hr-pb-label{
  word-break: normal;
  overflow-wrap: normal;
}

.pb-stack :is(.hr-pb-board, .hr-pb-board-demo) .hr-pb-time{
  justify-content: flex-start;
  transform: none !important;
}

/* ================================
   Trigger stacked mode when board is narrow (real fix)
================================== */

@container pb (max-width: 340px){
  .pb-stack :is(.hr-pb-board, .hr-pb-board-demo){ } /* no-op so class exists in cascade */
  :root { } /* no-op; keeps some minifiers happy */

  /* apply stacked rules without repeating them */
  .pb-stack{ }
  /* easiest: just re-apply the stacked selectors directly */
  :is(.hr-pb-board, .hr-pb-board-demo){
    /* nothing here */
  }
  :is(.hr-pb-board, .hr-pb-board-demo) .hr-pb-row{
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
  :is(.hr-pb-board, .hr-pb-board-demo) .hr-pb-label{
    word-break: normal;
    overflow-wrap: normal;
  }
  :is(.hr-pb-board, .hr-pb-board-demo) .hr-pb-time{
    justify-content: flex-start;
    transform: none !important;
  }
}

/* ================================
   iPad-ish: slight scale down time when NOT stacked
================================== */

@media (min-width: 768px) and (max-width: 1024px){
  :is(.hr-pb-board, .hr-pb-board-demo) .hr-pb-time{
    transform: scale(0.92);
    transform-origin: right center;
  }
}

/* Optional fallback: if you still want iPad landscape to stack even without container queries */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape){
  :is(.hr-pb-board, .hr-pb-board-demo) .hr-pb-row{
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
  :is(.hr-pb-board, .hr-pb-board-demo) .hr-pb-time{
    justify-content: flex-start;
    transform: none !important;
  }
}

/* PB labels: never break inside words */
:is(.hr-pb-board, .hr-pb-board-demo) :is(.hr-pb-label, .hr-pb-dist){
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none;
}

/*************************************************/
/* WELCOME INDEX (CLEAN) */
/*************************************************/

:root{
  --hr-radius: 18px;
  --hr-text: #0b0f19;
}

/* ===== Section background bands ===== */
.hr-band{ width:100%; }
.hr-band-white{ background:#fff; }
.hr-band-soft{ background:#f7f8fa; }
.hr-band-alt{ background:#fafbfc; }
.hr-band-cta{
  background:
    radial-gradient(900px 300px at 50% 0%, rgba(0,0,0,0.04), rgba(0,0,0,0) 60%),
    #f7f8fa;
}
.hr-band + .hr-band{ border-top:1px solid rgba(0,0,0,0.04); }

/* ===== Hero ===== */
.hr-hero{
  position:relative;
  overflow:hidden;
  height:80vh;
  padding:0;
  display:flex;
  align-items:center;
  color:#fff;
}
.hr-hero-bg{
  position:absolute;
  inset:-12%;
  background-image:url("https://images.unsplash.com/photo-1496163668521-39614a16b23f?q=80&w=2232&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-size:cover;
  background-position:center;
  transform:scale(1.03);
  will-change:transform;
  filter:saturate(1.08) contrast(1.05);
}
.hr-hero-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 600px at 50% 20%, rgba(255,255,255,0.16), rgba(255,255,255,0) 55%),
    linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0.68));
}
.hr-hero-inner{ position:relative; z-index:2; }

.hr-hero-title{
  font-weight:800;
  letter-spacing:-0.04em;
  line-height:1.02;
  font-size:clamp(2.6rem, 6vw, 4.6rem);
  margin:0;
}
.hr-hero-subtitle{
  font-size:1.15rem;
  max-width:720px;
  margin:14px auto 0;
  opacity:.92;
}
.hr-hero-micro{
  margin-top:22px;
  font-size:.92rem;
  opacity:.92;
}

/* hashiRun auth buttons – compact navbar size */
.hr-btn-pill{
  border-radius: 999px;
  padding: .38rem .85rem;   /* ⬅ smaller */
  font-size: .82rem;        /* ⬅ smaller text */
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.1;
  transition: transform .12s ease,
              box-shadow .12s ease,
              background-color .12s ease,
              border-color .12s ease;
}

.hr-btn-pill:hover{
  transform: translateY(-1px);
}

.hr-btn-pill:focus{
  box-shadow: 0 0 0 .15rem rgba(13,110,253,.15);
}

.hr-btn-primary{
  background: #111;
  color: #fff;
  border: 1px solid #111;
}

.hr-btn-primary:hover{
  background: #000;
  border-color: #000;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  color: #fff;
}

.hr-btn-ghost{
  background: rgba(17,17,17,.04);
  border: 1px solid rgba(17,17,17,.10);
  color: #111;
}

.hr-btn-ghost:hover{
  background: rgba(17,17,17,.07);
  border-color: rgba(17,17,17,.16);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  color: #111;
}

.hr-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.18);
  backdrop-filter:blur(8px);
  font-size:.9rem;
}
.hr-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:rgba(255,255,255,0.92);
  box-shadow:0 0 0 6px rgba(255,255,255,0.08);
}
.hr-muted{ opacity:.92; }
.hr-sep{ opacity:.55; }

/* ===== Sections / type ===== */

.hr-display{
  font-weight:800;
  letter-spacing:-0.035em;
  line-height:1.04;
  font-size:clamp(2.1rem, 4vw, 3.2rem);
  margin:0;
  color:var(--hr-text);
}
.hr-display-sm{
  font-weight:800;
  letter-spacing:-0.03em;
  line-height:1.06;
  font-size:clamp(1.8rem, 3.2vw, 2.6rem);
  margin:0;
  color:var(--hr-text);
}
.hr-display-muted{ color:rgba(11,15,25,0.45); }
.hr-lead{ font-size:1.15rem; }

.hr-kicker{
  font-size:.78rem;
  letter-spacing:.18em;
  font-weight:700;
  color:rgba(11,15,25,0.55);
}

/* ===== Panels ===== */
.hr-panel{ background:#fff; }
.hr-panel-title{
  font-weight:800;
  letter-spacing:-0.02em;
  line-height:1.12;
  margin-bottom:10px;
}

/* ===== Image card ===== */
.hr-image-card{ position:relative; overflow:hidden; }
.hr-image-card-bg{
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0.75)),
    url("https://images.unsplash.com/photo-1520975958225-2e8f3bba01b7?auto=format&fit=crop&w=2200&q=70");
  background-size:cover;
  background-position:center;
  transform:scale(1.02);
}
.hr-image-card .card-body{ position:relative; z-index:2; }

/* ===== Sticky CTA ===== */
.hr-sticky-cta{
  position:fixed;
  left:0;
  right:0;
  bottom:14px;
  z-index:1030;
  transform:translateY(120%);
  transition:transform 320ms ease;
  pointer-events:none;
}
.hr-sticky-cta.is-visible{
  transform:translateY(0);
  pointer-events:auto;
}
.hr-sticky-cta > .container{
  background:rgba(255,255,255,0.92);
  border:1px solid rgba(0,0,0,0.10);
  border-radius:16px;
  box-shadow:0 18px 60px rgba(0,0,0,0.18);
  padding:10px 14px;
}

/* ===== Scroll reveal ===== */
.reveal{
  opacity:0;
  transform:translateY(14px);
  transition:opacity 700ms ease, transform 700ms ease;
  will-change:opacity, transform;
}
.reveal.is-visible{
  opacity:1;
  transform:translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  .hr-hero-bg{ transform:none !important; }
  .hr-sticky-cta{ transition:none; }
}

/* ===== Featured grid tiles (3 per row) ===== */
.hr-tile-link{
  text-decoration:none !important;
  color:inherit;
  display:block;
}
.hr-tile{
  overflow:hidden;
  transform:translateY(0);
  transition:transform 220ms ease, box-shadow 220ms ease;
}
.hr-tile:hover{
  transform:translateY(-4px);
  box-shadow:0 20px 60px rgba(0,0,0,0.14) !important;
}
.hr-tile-media{
  position:relative;
  height:160px;
  background-size:cover;
  background-position:center;
}
@media (min-width:992px){
  .hr-tile-media{ height:170px; }
}
.hr-tile-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 240px at 30% 0%, rgba(255,255,255,0.14), rgba(255,255,255,0) 55%),
    linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.62));
}
.hr-tile-badges{
  position:absolute;
  left:12px;
  bottom:12px;
  z-index:2;
}
.hr-tile-kicker{
  position:absolute;
  right:12px;
  top:12px;
  z-index:2;
}
.hr-tile-title{
  font-weight:800;
  letter-spacing:-0.02em;
  line-height:1.08;
  font-size:1.05rem;
  color:var(--hr-text);
}
.hr-tile-meta{
  margin-top:4px;
  color:rgba(11,15,25,0.56);
  font-size:.92rem;
}
.hr-tile-divider{
  height:1px;
  background:rgba(0,0,0,0.06);
  margin:14px 0 12px;
}
.hr-tile-label{
  font-size:.72rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(11,15,25,0.55);
  font-weight:700;
}
.hr-tile-date{
  margin-top:4px;
  font-weight:800;
  letter-spacing:-0.01em;
  color:var(--hr-text);
}
.hr-tile-countdown small{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(11,15,25,0.04);
  border:1px solid rgba(0,0,0,0.06);
  font-weight:700;
}

/* flex truncation helper */
.min-w-0{ min-width:0; }

/* ===== Premium stats (ONE system, with imagery) ===== */
/* Wrapper spacing (fixes “too close to border”) */
.hr-stats-wrap {
  margin-top: 0px;
  margin-bottom: 0;
}

/* Optional: keep a single outer surface if you want */
.hr-stats-card{
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(255,255,255,0.80), rgba(255,255,255,0) 62%),
    rgba(255,255,255,0.92);
  border-radius:22px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.6);
  backdrop-filter:blur(10px);
  padding:18px;
}

/* Stat tile */
.hr-stat-block{
  position:relative;
  overflow:hidden;
  border-radius:18px;
  padding:18px 14px;
  background:rgba(255,255,255,0.92);
  border:1px solid rgba(0,0,0,0.06);
  box-shadow:
    0 18px 50px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.6);
  transform:translateZ(0);
  will-change:transform;
}

/* imagery */
.hr-stat-bg{
  position:absolute;
  inset:0;
  opacity:0.18;
  background-size:cover;
  background-position:center;
  filter:saturate(1.05) contrast(1.08);
  transform:scale(1.08);
}
.hr-stat-glow{
  position:absolute;
  inset:-40%;
  background:radial-gradient(circle at 30% 20%, rgba(255,255,255,0.8), rgba(255,255,255,0) 55%);
  opacity:0.55;
  pointer-events:none;
}

/* Text */
.hr-stat-kicker,
.hr-stat-number,
.hr-stat-sub{
  position:relative;
  z-index:2;
}

.hr-stat-kicker{
  font-size:0.7rem;
  letter-spacing:0.22em;
  text-transform:uppercase;
  font-weight:700;
  color:rgba(11,15,25,0.45);
}
.hr-stat-number{
  margin-top:8px;
  font-size:clamp(2.4rem, 4vw, 3rem);
  font-weight:800;
  letter-spacing:-0.02em;
  color:var(--hr-text);
  line-height:1;
}
.hr-stat-sub{
  margin-top:6px;
  font-size:0.9rem;
  color:rgba(11,15,25,0.55);
}

/* Per-tile images */
.hr-stat--races .hr-stat-bg{
  background-image:url("https://images.unsplash.com/photo-1469395446868-fb6a048d5ca3?q=80&w=2233&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
}
.hr-stat--countries .hr-stat-bg{
  background-image:url("https://images.unsplash.com/photo-1526779259212-939e64788e3c?auto=format&fit=crop&w=1200&q=60");
}
.hr-stat--events .hr-stat-bg{
  background-image:url("https://images.unsplash.com/photo-1502904550040-7534597429ae?auto=format&fit=crop&w=1200&q=60");
}

/* Hover polish */
@media (hover:hover) and (pointer:fine){
  .hr-stat-block{ transition:transform 220ms ease, box-shadow 220ms ease; }
  .hr-stat-block:hover{
    transform:translateY(-3px);
    box-shadow:
      0 26px 80px rgba(0,0,0,0.12),
      inset 0 1px 0 rgba(255,255,255,0.6);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .hr-stat-block{ transition:none !important; }
}

.pb-6 { padding-bottom: 4rem !important; }
.pb-7 { padding-bottom: 5rem !important; }

.hr-explore-more{
  position: relative;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;

  font-weight: 600;
  letter-spacing: -0.01em;

  background: rgba(0,0,0,0.55);
  color: #fff;

  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  backdrop-filter: blur(6px);

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    filter 180ms ease;
}

.hr-explore-more:hover{
  background: rgba(0,0,0,0.65);
  box-shadow: 0 12px 32px rgba(0,0,0,0.22);
  transform: translateY(-1px);
}

.hr-explore-more:active{
  transform: translateY(0);
}

.hr-explore-arrow{
  display: inline-block;
  transition: transform 180ms ease;
}

.hr-explore-more:hover .hr-explore-arrow{
  transform: translateX(4px);
}

.hr-split-image{
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
}

.hr-split-img{
  width: 100%;
  height: auto;
  display: block;
}

.hr-btn-translucent {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  border-color: rgba(255, 255, 255, 0.15);

  color: #fff; /* ← IMPORTANT */
}

.hr-btn-translucent:hover {
  background: rgba(0, 0, 0, 0.9);
  color: #fff; /* keep white on hover */
}

/* Sticky CTA primary button */
.hr-sticky-cta-btn{
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

/* Translucent surface */
.hr-sticky-cta-surface{
  background: rgba(0,0,0,0.68);
  color: #fff;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 10px 32px rgba(0,0,0,0.22);
}

/* Hover polish */
.hr-sticky-cta-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.28);
  filter: brightness(1.05);
}

/* Arrow motion */
.hr-sticky-cta-arrow{
  display: inline-block;
  transition: transform 180ms ease;
}

.hr-sticky-cta-btn:hover .hr-sticky-cta-arrow{
  transform: translateX(4px);
}

/* Mobile refinement */
@media (max-width: 576px){
  .hr-sticky-cta-btn{
    font-size: 0.9rem;
  }
}

.hr-explore-more-black {
  background-color: #000;        /* true black */
  color: #fff;
  border: none;

  font-weight: 800;
  letter-spacing: -0.01em;
  border-radius: 999px;

  box-shadow: 0 18px 60px rgba(0,0,0,0.18);
  transition: transform 180ms ease,
              box-shadow 180ms ease,
              filter 180ms ease;
}

.hr-explore-more-black:hover {
  background-color: #000;        /* keep black */
  color: #fff;
  filter: brightness(1.05);
  transform: translateY(-2px);
}

/*************************************************/
/* RACE SERIES CARDS */
/*************************************************/
.series-hero {
  border-radius: 14px;
  overflow: hidden;
}

.series-hero-image{
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  min-height: 220px; /* keeps it visible on mobile when stacked */
}

@media (min-width: 768px){
  .series-hero-image{ min-height: 100%; } /* fill the full card height on desktop */
}

.series-link {
  word-break: break-word;
}

.race-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.race-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,.10);
}

.race-card .card-img-top {
  height: 130px;
  object-fit: cover;
}

.race-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.12), rgba(0,0,0,0));
}

/* When a rating button is selected */
.btn-check:checked + .btn {
  color: #fff;
  background-color: #6c757d; /* Bootstrap secondary */
  border-color: #6c757d;
}

/* selected state */
.btn-check:checked + .btn {
  border-color: #0b0f19;
  background: #0b0f19;
  color: #fff;
}

/* default tinting (unselected) */
.rating-score.rating-low  { border-color: rgba(220,53,69,0.55); color: rgba(220,53,69,0.95); }
.rating-score.rating-mid  { border-color: rgba(108,117,125,0.55); color: rgba(108,117,125,0.95); }
.rating-score.rating-high { border-color: rgba(25,135,84,0.55);  color: rgba(25,135,84,0.95); }

.rating-na {
  border-color: rgba(108,117,125,0.35);
  color: rgba(108,117,125,0.95);
}

/* Hover helps discoverability */
.rating-score:hover,
.rating-na:hover {
  filter: brightness(0.98);
}

/*************************************************/
/* RACE SERIES INDEX */
/*************************************************/
.race-series-card {
  border-radius: 12px;
  overflow: hidden;
}

.race-series-thumb {
  min-height: 84px;
  background-size: cover;
  background-position: center;
}

.race-series-title {
  font-weight: 800;
  line-height: 1.15;
  overflow: visible;
}

.race-series-meta {
  font-size: 0.9rem;
  color: rgba(33, 37, 41, 0.65);
}

.race-series-date {
  font-weight: 800;
}

.race-series-item .card {
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.race-series-item:hover .card {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0,0,0,.10);
}

.countdown {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* Fixed, consistent height */
.hr-race-card{
  height: 96px;               /* consistent on all screens */
  border-radius: 16px;
  overflow: hidden;
}
.hr-race-thumb{
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hr-race-thumb-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.55));
}

/* Badges on image */
.hr-race-badges{
  position:absolute;
  left:10px;
  top:10px;
  z-index:2;
  display:flex;
  gap:6px;
  flex-wrap: wrap;
  max-width: calc(100% - 20px);
}
.hr-badge-pill{
  border-radius: 999px;
  padding: .25rem .5rem;
  font-weight: 700;
  font-size: .72rem;
  opacity: .95;
}

/* Small helper (if not already in your CSS) */
.min-w-0{ min-width: 0; }

/* Past events: slim list rows */
.hr-past-row{
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px; /* less “card-y” */
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.hr-past-link{ text-decoration: none; }

.hr-past-link:hover .hr-past-row{
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.hr-past-thumb{
  width: 64px;
  min-width: 64px;
  height: 58px; /* slim */
  background-size: cover;
  background-position: center;
  position: relative;
}

.hr-past-thumb-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.35));
}

/* More muted typography */
.hr-past-title{
  font-size: 0.95rem;
}

.hr-past-pill{
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.55);
  border: 1px solid rgba(0,0,0,0.08);
}

.hr-past-chevron{
  font-size: 1.3rem;
  color: rgba(0,0,0,0.28);
  line-height: 1;
}

/* Mobile tweaks */
@media (max-width: 576px){
  .hr-past-thumb{
    width: 56px;
    min-width: 56px;
    height: 54px;
  }
}

.hr-past-type-badge{
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  color: rgba(33,37,41,0.65);
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.10);

  padding: 2px 7px;
  border-radius: 999px;
}

.hr-series-item{ 
  margin-bottom: 10px;
}

.hr-series-item:last-child{
  margin-bottom: 0;
}

.race-card-link:hover .race-card {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  transition: all 0.2s ease;
}

/* Subtle CTA hover animation */
.hr-cta-soft {
  transition:
    transform 180ms cubic-bezier(.2,.8,.2,1),
    box-shadow 180ms cubic-bezier(.2,.8,.2,1),
    opacity 180ms ease;
}

.hr-cta-soft:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  opacity: 1;
}

.hr-cta-soft:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Arrow micro-move */
.hr-cta-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hr-cta-arrow {
  display: inline-block;
  transition: transform 180ms ease;
}

.hr-cta-soft:hover .hr-cta-arrow {
  transform: translateX(3px);
}

.hr-pill-link {
  display: inline-block;
  padding: 2px 10px;          /* very thin */
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  background: #0b0f19;        /* soft black, not pure */
  border-radius: 999px;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.hr-pill-link:hover {
  opacity: 1;
  transform: translateY(-0.5px);
  text-decoration: none;
}

/* More noticeable, still clean */
.hr-race-card--live{
  position: relative;
  box-shadow:
    0 14px 34px rgba(0,0,0,0.14),
    0 0 0 1px rgba(17,24,39,0.14),
    0 0 0 6px rgba(34,197,94,0.18);
  transform: translateY(-2px);
}

/* subtle glow sheen (helps it read as “special”) */
.hr-race-card--live::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
  background: radial-gradient(
    1100px 320px at 20% -10%,
    rgba(34,197,94,0.22),
    transparent 55%
  );
  opacity: 0.85;
}

/* LIVE chip (no layout impact) */
.hr-live-chip{
  position:absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17,24,39,0.92);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(34,197,94,0.35);
  box-shadow: 0 8px 18px rgba(0,0,0,0.10);
  backdrop-filter: blur(8px);
}

@media (prefers-reduced-motion: reduce){
  .hr-race-card--live{ transform:none; }
}

/* Turn LIVE countdown into a pill */
.hr-countdown{
  display: inline-block;
}

/* Only when countdown text is exactly "Live!" */
.hr-countdown:where(:not([data-countdown-to])) {
  /* safety fallback, not required */
}

.hr-countdown::after{
  content: "";
}

/* JS sets textContent = "Live!" — style via attribute selector */
.hr-countdown[data-countdown-to].is-live,
.hr-countdown[data-live="1"]{
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: #065f46; /* deep green text */
  background: rgba(34,197,94,0.16);
  border: 1px solid rgba(34,197,94,0.35);

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.35),
    0 4px 12px rgba(0,0,0,0.08);
}

.hr-race-card{
  position: relative; /* needed for pseudo element */
  overflow: hidden;   /* keep glow inside rounded card */
}

/* LIVE overlay */
/* LIVE overlay sweep */
.hr-race-card--live::after{
  content:"";
  position:absolute;
  inset: 0;

  /* start fully off-screen */
  left: -150%;
  width: 300%;

  border-radius: inherit;
  pointer-events:none;
  z-index: 1;

  background: linear-gradient(
    90deg,
    rgba(34,197,94,0.00) 0%,
    rgba(34,197,94,0.10) 25%,
    rgba(34,197,94,0.22) 50%,
    rgba(34,197,94,0.10) 75%,
    rgba(34,197,94,0.00) 100%
  );

  opacity: 0;
  transform: translateX(0);
  animation: hrLiveSweep 11s ease-in-out infinite;
}

@keyframes hrLiveSweep{
  0%   { transform: translateX(0);     opacity: 0; }
  15%  { opacity: 0.45; }
  50%  { transform: translateX(50%);  opacity: 0.65; }
  85%  { opacity: 0.45; }
  100% { transform: translateX(100%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce){
  .hr-race-card--live::after{
    animation:none;
    opacity:0.22;
    transform:none;
  }
}

/*************************************************/
/* RACE SERIES SHOW */
/*************************************************/

/* Base */
.rating-score {
  transition: all 0.15s ease;
  font-weight: 600;
}

/* LOW (1–2) */
.btn-check:checked + .rating-low {
  background: rgba(220, 53, 69, 0.15);
  color: rgb(220, 53, 69);
  border-color: rgba(220, 53, 69, 0.45);
}

/* MID (3) */
.btn-check:checked + .rating-mid {
  background: rgba(0, 0, 0, 0.08);
  color: #212529;
  border-color: rgba(0, 0, 0, 0.25);
}

/* HIGH (4–5) */
.btn-check:checked + .rating-high {
  background: rgba(25, 135, 84, 0.15);
  color: rgb(25, 135, 84);
  border-color: rgba(25, 135, 84, 0.45);
}

/* NA */
.btn-check:checked + .rating-na {
  background: rgba(108, 117, 125, 0.12);
  color: #6c757d;
  border-color: rgba(108, 117, 125, 0.4);
}

/* Hover polish */
.rating-score:hover {
  transform: translateY(-1px);
}

.hr-live-dot{
  display:inline-block !important;
  width:10px !important;
  height:10px !important;
  border-radius:999px !important;
  background:#dc3545 !important;   /* avoid rgba just in case */
  position:relative !important;
  flex:0 0 auto;
  opacity:1 !important;
  visibility:visible !important;
}

.hr-live-dot::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:999px;
  background:rgba(220,53,69,.25);
  animation:hrPulse 1.4s ease-out infinite;
  pointer-events:none;
}

@keyframes hrPulse{
  0%   { transform: scale(0.65); opacity: 0.9; }
  70%  { transform: scale(1.35); opacity: 0.0; }
  100% { transform: scale(1.35); opacity: 0.0; }
}

/* size helpers */
.hr-live-dot--md{ width: 9px; height: 9px; }
.hr-live-dot--lg{ width: 11px; height: 11px; }
.hr-live-dot--sm{ width: 7px; height: 7px; }

/* Offcanvas has rounded corners, and it clips its children */
/* Shared offcanvas panel base */
.hr-offcanvas{
  --hr-canvas-radius: 18px;
  background: #fff;
  overflow: hidden; /* critical: children can't square the corners */
  border: 0;
}

/* From LEFT: round ONLY the inner (right) edge */
.offcanvas-start.hr-offcanvas{
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;

  border-top-right-radius: var(--hr-canvas-radius);
  border-bottom-right-radius: var(--hr-canvas-radius);

  box-shadow: 18px 0 50px rgba(0,0,0,.18);
}

/* From RIGHT: round the inner (left) edge */
.offcanvas-end.hr-offcanvas{
  border-top-left-radius: var(--hr-canvas-radius);
  border-bottom-left-radius: var(--hr-canvas-radius);
  box-shadow: -18px 0 50px rgba(0,0,0,.18);
}

/* Optional: keep header nice if you ever change backgrounds */
.hr-offcanvas .offcanvas-header{
  background: #fff;
}

/* Remove padding so the map can go edge-to-edge */
.hr-offcanvas .offcanvas-body{
  padding: 0 !important;       /* important */
}

/* Map goes full-bleed and does NOT have its own radius */
.hr-offcanvas-map{
  width: 100%;
  height: 560px;
  border: 0;                   /* no border outline */
  border-radius: 0 !important; /* important */
  overflow: hidden;
  background: #f8f9fa;
}

/* Safety: Google Maps inner layers */
.hr-offcanvas-map .gm-style,
.hr-offcanvas-map .gm-style > div{
  border-radius: 0 !important;
}

/*************************************************/
/* USER SAVED RACES PAGE */
/*************************************************/

/* Saved Races page */
.hr-saved-card{
  border-radius: 18px;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.hr-saved-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.14) !important;
}

.hr-saved-thumb{
  width: 140px;
  min-width: 140px;
  position: relative;
  background-size: cover;
  background-position: center;
}
.hr-saved-thumb-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.55));
}

.hr-saved-title{
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hr-saved-heart{
  position:absolute;
  left: 12px;
  bottom: 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(0,0,0,0.78);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}


/*************************************************/
/* RACE SERIES MAP */
/*************************************************/

#raceMap { background: #f8f9fa; }

.hr-iw{
  min-width: 280px;
  max-width: 360px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial;
  color: #0b0f19;
}

.hr-iw-top{
  padding: 10px 12px 8px 12px;
  border-bottom: 1px solid rgba(11,15,25,0.08);
  background: #fff;
}

.hr-iw-kicker{
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(11,15,25,0.55);
  margin-bottom: 6px;
}

.hr-iw-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.hr-iw-title{
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 14px;
  line-height: 1.2;
}

.hr-iw-sub{
  margin-top: 4px;
  font-size: 12px;
  color: rgba(11,15,25,0.55);
  line-height: 1.2;
}

.hr-iw-head-right{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hr-iw-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  min-width: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #0b0f19;
  background: rgba(11,15,25,0.06);
  border: 1px solid rgba(11,15,25,0.08);
}

.hr-iw-close{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(11,15,25,0.10);
  background: rgba(255,255,255,0.95);
  color: rgba(11,15,25,0.75);
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
}
.hr-iw-close:hover{ background: rgba(11,15,25,0.04); }

/* This is the ONLY scroll container */
.hr-iw-body{
  padding: 10px 12px 12px 12px;
  max-height: 210px; /* with 3+ items this will scroll */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}

.hr-iw-list{
  display: grid;
  gap: 6px;
}

.hr-iw-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none !important;
  padding: 10px 10px;
  border-radius: 12px;
  background: #f8f9fa;
  border: 1px solid rgba(11,15,25,0.06);
  color: #0b0f19;
}
.hr-iw-item:hover{ background: #eef1f4; }

.hr-iw-item-title{
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
}

.hr-iw-item-sub{
  margin-top: 3px;
  font-size: 12px;
  color: rgba(11,15,25,0.55);
  line-height: 1.2;
}

.hr-iw-item-cta{
  font-size: 12px;
  font-weight: 800;
  color: rgba(11,15,25,0.70);
  white-space: nowrap;
}
.hr-iw-item-arrow{ margin-left: 6px; color: rgba(11,15,25,0.45); }

/* Google InfoWindow chrome */
.gm-style .gm-style-iw-c{
  padding: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 14px 40px rgba(11,15,25,0.20) !important;
  max-height: none !important;
}

.gm-style .gm-style-iw-c .gm-ui-hover-effect{
  display: none !important;
}

/* Do not clip the content wrapper */
.gm-style .gm-style-iw-d{
  overflow: visible !important;
  padding: 0 !important;
  max-height: none !important;
}

.gm-style .gm-style-iw-t::after{
  box-shadow: 0 10px 22px rgba(11,15,25,0.12) !important;
}

/*************************************************/
/* RACE EVENT SHOW PAGE */
/*************************************************/
.member-avatar{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,0.55);
  border: 2px solid rgba(255,255,255,0.6);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);

  transition: transform 150ms ease;
}

.member-avatar-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-avatar-initials{
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  line-height: 1;
}

.member-avatar--completed{
  border-color: rgba(25,135,84,0.35);
}

.member-chip:hover .member-avatar{
  transform: translateY(-1px);
}

.hr-hero-countdown{
  position:absolute;
  right:14px;
  bottom:14px;
  padding:10px 12px;
  border-radius:999px;
  background:rgba(255,255,255,0.10);
  border:1px solid rgba(255,255,255,0.18);
  color:#fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight:700;
  font-size:0.9rem;
  letter-spacing:.02em;
  line-height:1;
  box-shadow: 0 10px 30px rgba(0,0,0,0.20);
  user-select:none;
  white-space:nowrap;
}

.hr-hero-countdown .muted{
  opacity:.75;
  font-weight:600;
  margin-right:.35rem;
}

.hr-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

/* Distance */
.hr-meta-pill--dark {
  background: rgba(0,0,0,0.85);
  color: #fff;
}

/* Surface */
.hr-meta-pill--light {
  background: rgba(255,255,255,0.85);
  color: #111;
}

/* Location */
.hr-meta-pill--ghost {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.18);
}

/*************************************************/
/* USER PROFILE */
/*************************************************/
/* =============================== */
/* Profile avatar                  */
/* =============================== */

.hr-profile-hero{
  background-image:
    radial-gradient(1200px 500px at 15% 25%, rgba(255,255,255,0.12), rgba(255,255,255,0)),
    linear-gradient(rgba(0,0,0,0.62), rgba(0,0,0,0.62)),
    var(--hero-bg-url);
  background-size: cover;
  background-position: center;
}

.hr-hero-kicker{
  letter-spacing: .12em;
  opacity: .85;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hr-hero-title{
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hr-hero-meta{
  opacity: .85;
}

.hr-hero-chip{
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28);
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 12px;
}

@media (max-width: 576px){
  .hr-profile-hero{
    background-position: center 35%;
  }
}

.profile-avatar{
  width: 74px;
  height: 74px;
  border-radius: 999px;
  overflow: hidden;
  display: block;
  position: relative;
  flex: 0 0 auto;

  /* from inline styles */
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.55);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* If you still want the subtle background photo tint BEHIND the real avatar image.
   Remove this whole :after block if you don't want it. */
.profile-avatar:after{
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1520975958225-2e8f3bba01b7?q=80&w=600&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  pointer-events: none;
}

.profile-avatar-link{
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 1; /* keeps link above :after */
}

.profile-avatar-img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1; /* keeps image above :after */
}

/* =============================== */
/* Shared utilities                */
/* =============================== */

.min-w-0{ min-width: 0; }

/* Optional: stop list-group adding weird rounded corners between items */
.list-group .list-group-item { border-radius: 14px; }

/* =============================== */
/* Slim, consistent list cards     */
/* (normalize hr-row vs upcoming)  */
/* =============================== */

.hr-row-card,
.hr-upcoming-card{
  height: 92px;
  background: #fff;
  overflow: hidden;
}

@media (min-width:768px){
  .hr-row-card,
  .hr-upcoming-card{ height: 96px; }
}

.hr-row-thumb,
.hr-upcoming-thumb{
  width: 96px;
  min-width: 96px;
  background-size: cover;
  background-position: center;
  position: relative;
}

@media (min-width:768px){
  .hr-row-thumb,
  .hr-upcoming-thumb{
    width: 112px;
    min-width: 112px;
  }
}

.hr-row-thumb-overlay,
.hr-upcoming-thumb-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.45));
}

/* Reuse badge style */
.hr-status-badge{
  border-radius: 999px;
  font-weight: 700;
  padding: 0.35rem 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* =============================== */
/* Click affordance                */
/* =============================== */

.hr-card-link,
.hr-upcoming-link{
  cursor: pointer;
}

.hr-card-link .hr-row-card,
.hr-upcoming-link .hr-upcoming-card{
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hr-card-link:hover .hr-row-card,
.hr-upcoming-link:hover .hr-upcoming-card{
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.hr-card-link:active .hr-row-card,
.hr-upcoming-link:active .hr-upcoming-card{
  transform: translateY(0);
}

/* =============================== */
/* Status band on top of cards     */
/* =============================== */

.hr-status-band{
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 14px 14px 0 0;
}

.hr-status-text{ white-space: nowrap; }

/* Default = desktop */
.hr-status-band{ display: none; }
.hr-status-inline{ display: inline-flex; }

/* Mobile */
@media (max-width: 576px){
  .hr-status-band{
    display: flex;
    align-items: center;
    padding: 6px 10px;
    color: #fff;
  }

  .hr-status-band.bg-warning{ color: #212529; }

  .hr-status-inline{ display: none; }
}

.hr-status-text,
.hr-status-badge{
  white-space: nowrap;
}

/* #IRUN card styling */
.about-irun-card{
  border: 1px solid rgba(13,110,253,0.10);
  box-shadow: 0 10px 26px rgba(13,110,253,0.10);
}
.about-irun-bg{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(700px 220px at 18% 10%, rgba(13,110,253,0.14), transparent 60%),
    radial-gradient(520px 220px at 90% 40%, rgba(25,135,84,0.10), transparent 60%);
  opacity: 1;
}
.about-irun-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  font-size: 1.05rem;
  letter-spacing: .04em;
  white-space: nowrap;
}

.hr-verified-emoji{
  color:#d4af37;
  line-height:1;
  display:inline-flex;
  align-items:center;
}

/* Not following */
.hr-follow-btn{
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-weight: 700;
}
.hr-follow-btn:hover{
  background: #111;
  color: #fff;
}

/* Following */
.hr-following-btn{
  border: 1px solid #0a7a3d;
  background: #0a7a3d;
  color: #fff;
  font-weight: 800;
}
.hr-following-btn:hover{
  filter: brightness(0.95);
}

/* Floating circular cheer badge that overlaps the card corner */
.hr-cheer-float{
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 30;

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  background: #fff;

  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  border: 1px solid rgba(0,0,0,.08);

  /* prevents anything inside from affecting layout */
  line-height: 1;
  padding: 0;
}

/* Force the rendered control to be a perfect centered square */
.hr-cheer-float > *{
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Target common button outputs from Rails/Bootstrap */
.hr-cheer-float .btn,
.hr-cheer-float button,
.hr-cheer-float a{
  all: unset;                 /* nukes bootstrap padding/line-height */
  box-sizing: border-box;

  width: 28px;
  height: 28px;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 999px;
  cursor: pointer;

  /* optional: keep it clickable */
  pointer-events: auto;
}

/* If your partial uses an emoji or text */
/* DO NOT globally style all spans in the float */
.hr-cheer-float .btn,
.hr-cheer-float button,
.hr-cheer-float a{
  font-size: 16px;
  line-height: 1;
}

/* Smaller cheer count */
.hr-cheer-count{
  font-size: 11px;
  line-height: 1;
  margin-left: 3px;   /* small spacing from icon */
  opacity: .75;
}

/* If your partial uses SVG icons */
.hr-cheer-float svg{
  width: 16px;
  height: 16px;
  display: block;
}

/* If your partial uses <i> icons (font-awesome / bootstrap icons) */
.hr-cheer-float i{
  font-size: 16px;
  line-height: 1;
  display: block;
}

/* Floating circular badge (outer circle) */
.hr-cheer-float{
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 30;

  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  background: #fff;

  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);

  /* this is the “breathing room” so it doesn’t feel tight */
  padding: 4px;

  line-height: 1;
}

.hr-cheer-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  height: 34px;          /* pick your size */
  min-width: 34px;       /* ensures perfect circle at low counts */
  padding: 0 10px;       /* gives room for 2–3 chars */
  border-radius: 999px;  /* circle/pill */
  white-space: nowrap;   /* never wrap */
}

.hr-cheer-count{
  font-size: 12px;
  line-height: 1;
  font-variant-numeric: tabular-nums; /* keeps numbers same width */
}

.hr-cheer-btn:hover{
  background: rgba(0,0,0,.04);
}

.hr-cheer-btn:active{
  transform: scale(0.96);
}

/* Icon sizing */
.hr-cheer-btn i{
  font-size: 16px;
  line-height: 1;
  display: block;
}

/* Filled state styling (optional emphasis) */
.hr-cheer-btn.is-cheered i{
  /* keep default color unless you want to tint it */
  /* color: #111; */
}

/* Disabled cheer should not look clickable */
.hr-cheer-btn.is-disabled,
.hr-cheer-btn:disabled{
  cursor: default !important;
  pointer-events: none;         /* extra safety */
  opacity: 0.55;                /* optional: make it look disabled */
}

/* Also prevent hover/active effects when disabled */
.hr-cheer-btn.is-disabled:hover,
.hr-cheer-btn:disabled:hover{
  background: transparent !important;
}

.hr-cheer-btn.is-disabled:active,
.hr-cheer-btn:disabled:active{
  transform: none !important;
}

.hr-cheer-btn.is-cheered i.bi-hand-thumbs-up-fill{
  color: #d4af37;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

/* Keep disabled button muted, but let the filled icon stay gold */
.hr-cheer-btn.is-disabled{
  opacity: 1; /* remove the global fade */
}

.hr-cheer-btn.is-disabled i{
  opacity: 0.55; /* fade only the icon by default */
}

/* If it’s the filled thumb, force gold and full opacity */
.hr-cheer-btn.is-disabled i.bi-hand-thumbs-up-fill{
  color: #d4af37;
  opacity: 1;
}

/* PB Flight Board (Stimulus-powered, Turbo-safe) */
.hr-pb-board{
  background:#fff;
  color:#0b0f19;
}

.hr-pb-grid{ display:grid; gap:10px; }

.hr-pb-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px;
  border-radius:12px;
  background: rgba(11,15,25,0.03);
  border: 1px solid rgba(11,15,25,0.08);
}

.hr-pb-label{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:120px;
}
.hr-pb-dist{ font-weight:800; line-height:1.1; }
.hr-pb-hint{ font-size:12px; opacity:.7; line-height:1.1; }

.hr-pb-time{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  white-space:nowrap;
}

.hr-pb-sep{
  width:10px;
  text-align:center;
  opacity:.6;
  font-weight:900;
  transform: translateY(-1px);
}

/* Flip tile */
.hr-flip{
  width:24px;
  height:34px;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  position:relative;
  background:#fff;
  border:1px solid rgba(11,15,25,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(11,15,25,0.06);
  perspective: 900px;
  overflow:hidden;
}

/* subtle divider */
.hr-flip::after{
  content:"";
  position:absolute;
  left:0; right:0;
  top:50%;
  height:1px;
  background: rgba(11,15,25,0.10);
  transform: translateY(-0.5px);
  pointer-events:none;
  z-index:5;
}

.hr-flip-card{
  width:100%;
  height:100%;
  position:relative;
  transform-style: preserve-3d;
}

.hr-flip-face{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  letter-spacing:.5px;
  backface-visibility:hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.hr-flip-front{
  background: rgba(255,255,255,0.96);
  transform: rotateX(0deg);
}

.hr-flip-back{
  background: rgba(255,255,255,0.92);
  transform: rotateX(180deg);
}

/* animate the whole card (reliable across browsers) */
.hr-flip.is-flipping .hr-flip-card{
  animation: hrFlipCard var(--pb-dur, 700ms) cubic-bezier(.25,.8,.25,1);
}

@keyframes hrFlipCard{
  0%   { transform: rotateX(0deg); }
  100% { transform: rotateX(-180deg); }
}

@media (prefers-reduced-motion: reduce){
  .hr-flip.is-flipping .hr-flip-card{ animation:none !important; }
}

/* Mobile */
@media (max-width: 420px){
  .hr-pb-label{ min-width: 92px; }
  .hr-flip{ width: 20px; height: 28px; border-radius: 7px; }
  .hr-pb-row{ padding: 10px 10px; }
  .hr-pb-sep{ width: 8px; }
}

.hr-hero-iconbtn{
  border-radius: 999px;
  padding: .4rem .55rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
}

.hr-hero-iconbtn.dropdown-toggle::after{
  display: none; /* hide caret */
}

/* Follow QR modal sizing */
#followQrModal .hr-follow-qr-dialog{
  max-width: min(520px, calc(100vw - 1.5rem));
  margin: .75rem auto;
}

/* This controls the visible QR size */
#followQrModal .hr-qr-wrap{
  width: min(78vw, 320px);   /* pick your max size */
  margin-inline: auto;
}

/* Make a perfect square “frame” */
/* QR container */
#followQrModal .hr-qr-shell{
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #fff;
  padding: 12px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  display: grid;
  place-items: center;
}

/* Only the QR code SVG should fill the shell */
#followQrModal .hr-qr-code svg{
  width: 100%;
  height: 100%;
  display: block;
}

/* Center overlay */
#followQrModal .hr-qr-logo{
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  pointer-events: none;
}

/* Badge is fine, but tighten it a bit on desktop */
#followQrModal .hr-qr-logo-badge{
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,.10);
  display: grid;
  place-items: center;
}

/* Desktop: make logo smaller */
#followQrModal .hr-qr-logo-svg{
  width: 28px;     /* <-- smaller */
  height: 28px;    /* deterministic */
  display: block;
  color: #000;
}

/* Mobile: allow a bit larger */
@media (max-width: 576px){
  #followQrModal .hr-qr-logo-svg{
    width: 34px;
    height: 34px;
  }
  #followQrModal .hr-qr-logo-badge{
    padding: 10px;
  }
}

/* Top-right QR button in profile hero */
.hr-profile-hero .hr-hero-qrbtn{
  z-index: 20;
  pointer-events: auto;

  position: absolute;
  top: 12px;
  right: 12px;

  /* make it a clean circle-ish pill with tight padding */
  width: 44px;
  height: 44px;
  padding: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  line-height: 0; /* avoids baseline weirdness */
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

/* If your hero uses an overlay, make it ignore taps */
.hr-profile-hero::before,
.hr-profile-hero::after,
.hr-profile-hero .hr-row-thumb-overlay,
.hr-profile-hero .hr-hero-overlay{
  pointer-events: none;
}

/* Size the Bootstrap icon */
.hr-profile-hero .hr-hero-qr-icon{
  font-size: 22px; /* bigger */
  line-height: 1;
  display: block; /* prevents inline centering quirks */
}

/* Slightly larger on desktop */
@media (min-width: 768px){
  .hr-profile-hero .hr-hero-qrbtn{
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
  }

  .hr-profile-hero .hr-hero-qr-icon{
    font-size: 24px;
  }
}

/* Make the QR shell a positioning context */
.hr-qr-shell{
  position: relative;
  display: block;
}

/* Ensure the SVG scales to the shell width cleanly */
.hr-qr-shell svg{
  width: 100%;
  height: auto;
  display: block;
}

.hr-qr-logo{
  position:absolute;
  left:50%;
  top:50%;
  translate:-50% -50%;          /* better than transform for subpixel issues */
  pointer-events:none;
}

.hr-qr-logo-badge{
  background:#fff;
  padding:10px;                 /* use px, not % (reduces fractional sizing) */
  border-radius:12px;
  box-shadow:0 4px 10px rgba(0,0,0,.10);

  display:flex;
  align-items:center;
  justify-content:center;
}

.hr-qr-logo-svg{
  width:44px;
  max-width:14vw;   /* scale up gently on small screens */
  min-width:26px;  /* never get too tiny */
  height:auto;
  display:block;
  color:#000;
}

/* On very small screens, shrink logo a bit */
@media (max-width: 420px){
  .hr-qr-logo{
    width: 20%;
    padding: 4%;       /* was 7% */
    border-radius: 10px;
  }
}

/*************************************************/
/* REGISTRATION EDIT */
/*************************************************/

/* Container */
.hr-email-pref { max-width: 720px; }

.hr-email-stops > div { text-align: center; }
.hr-email-stops > div:first-child { text-align: left; }
.hr-email-stops > div:last-child { text-align: right; }

/* Slider track fill */
.hr-email-range {
  --pct: 0%;
  height: 1.35rem;
}

.hr-email-controls{
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
}

.hr-email-arrow{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(11,15,25,0.10);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  color: rgba(11,15,25,0.85);
  cursor: pointer;
  user-select: none;
}

.hr-email-arrow:hover{
  background: rgba(11,15,25,0.04);
}

.hr-email-arrow:active{
  transform: translateY(1px);
}

.hr-email-arrow:disabled{
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.hr-email-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    rgba(11,15,25,0.85) 0%,
    rgba(11,15,25,0.85) var(--pct),
    rgba(11,15,25,0.12) var(--pct),
    rgba(11,15,25,0.12) 100%
  );
}

.hr-email-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    rgba(11,15,25,0.85) 0%,
    rgba(11,15,25,0.85) var(--pct),
    rgba(11,15,25,0.12) var(--pct),
    rgba(11,15,25,0.12) 100%
  );
}

.hr-avatar-img {
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.hr-avatar-img:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

/* Prevent segmented privacy buttons from overflowing */
.hr-seg {
  display: flex;        /* override btn-group inline-flex behavior */
  width: 100%;
}

.hr-seg > .btn {
  flex: 1 1 0;          /* each segment shares the row evenly */
  min-width: 0;         /* critical: allows flex items to shrink */
  white-space: nowrap;  /* keeps labels on one line */
  padding-left: .6rem;  /* a little tighter so it fits nicely */
  padding-right: .6rem;
}

/* Optional: on very narrow screens, allow wrap instead of overflow */
@media (max-width: 420px) {
  .hr-seg { flex-wrap: wrap; }
  .hr-seg > .btn { flex: 1 1 33.333%; }
}

/*************************************************/
/* LEGAL */
/*************************************************/
.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.legal-content p,
.legal-content li {
  line-height: 1.7;
  color: #444;
}

.legal-content ul {
  padding-left: 1.2rem;
}

.legal-content strong {
  color: #111;
}

/* LEGAL HERO */
.hr-legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(120px, 18vh, 180px) 0 96px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.hr-legal-hero-bg {
  position: absolute;
  inset: -10%;
  background-image: url("https://images.unsplash.com/photo-1502904550040-7534597429ae?auto=format&fit=crop&w=2000&q=60");
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.08);
}

.hr-legal-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      1200px 520px at 50% 20%,
      rgba(255,255,255,0.18),
      rgba(255,255,255,0) 60%
    ),
    linear-gradient(
      rgba(0,0,0,0.72),
      rgba(0,0,0,0.88)
    );
}

.hr-legal-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hr-legal-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  opacity: 0.85;
}

.hr-legal-title {
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin: 0;
}

.hr-legal-subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 640px;
  margin-inline: auto;
}

/*************************************************/
/* FOOTER */
/*************************************************/
.hashirun-footer {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  background-image:
    linear-gradient(rgba(0,0,0,0.70), rgba(0,0,0,0.70)),
    url("https://images.unsplash.com/photo-1518770503887-693a00951e1a?q=80&w=1625&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.footer-overlay {
  backdrop-filter: saturate(120%);
}

.footer-brand {
  font-family: "Inter", sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.footer-tagline {
  margin-top: 0.5rem;
  font-size: 1rem;
  opacity: 0.85;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  opacity: 0.75;
}

.footer-social {
  opacity: 0.85;
}

.footer-social-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.footer-social-icon {
  font-size: 1.2rem;
}

.footer-social-handle {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
