/* Edmonton Cycle Club — refreshed styles
   Mobile-first; a single breakpoint switches the nav to a horizontal bar. */

:root {
  /* Palette carried over from the original edmontoncycleclub.org stylesheet */
  --green-700: #17375D; /* was --green-700; now the site's dark navy (old menu bar) */
  --green-600: #538ED5; /* was --green-600; now the site's mid blue (old title block) */
  --green-100: #C5D9F1; /* was --green-100; now the site's light blue (old menu hover) */
  --ink: #1c211f;
  --ink-soft: #4a544e;
  --paper: #fbfbf9;
  --paper-raised: #ffffff;
  --line: #dfe4e0;
  --amber: #9a6400;
  --amber-bg: #fdf0d6;
  --red: #a5271f;
  --red-bg: #fbe8e6;
  --footer-bg: #cccccc;
  --radius: 10px;
  --max-width: 68rem;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: var(--green-700);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--green-600);
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-700);
  color: #fff;
  padding: 0.75em 1em;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* Header / nav */

.site-header {
  background: var(--green-600);
  color: #fff;
}

.site-header__bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__logo {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

/* Desktop-only shortcut strip; hidden on mobile, where the hamburger is
   the only way into navigation (see the min-width: 760px block below). */
.menu-bar {
  display: none;
  list-style: none;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  margin: 0;
  padding: 0;
}

.menu-bar a,
.menu-bar__soon {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.menu-bar a {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.menu-bar a:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.menu-bar__soon {
  color: rgba(255, 255, 255, 0.5);
}

.nav-toggle {
  position: relative;
  margin-left: auto;
}

.nav-toggle__button {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.6rem;
  cursor: pointer;
  border-radius: 6px;
}

.nav-toggle__button::-webkit-details-marker {
  display: none;
}

.nav-toggle__button span {
  width: 22px;
  height: 2px;
  background: #fff;
  display: block;
}

.nav-toggle[open] .nav-toggle__button {
  background: rgba(255, 255, 255, 0.12);
}

.nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: var(--paper-raised);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  min-width: 14rem;
  padding: 0.5rem;
  z-index: 20;
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.nav__item a,
.nav__item--soon {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
}

.nav__item a:hover {
  background: var(--green-100);
  color: var(--green-700);
}

.nav__item a[aria-current="page"] {
  font-weight: 700;
  color: var(--green-700);
}

.nav__item--soon {
  color: #9aa39d;
  cursor: default;
}

@media (min-width: 760px) {
  .site-header__logo {
    width: 84px;
    height: 84px;
  }

  .menu-bar {
    display: flex;
  }

  .nav-toggle__button {
    display: none;
  }

  .nav-toggle {
    display: contents;
  }

  .nav {
    all: unset;
    display: flex !important;
    order: 3;
    margin-left: auto;
  }

  .nav__list {
    flex-direction: row;
    gap: 0.25rem;
  }

  .nav__item a,
  .nav__item--soon {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0.75rem;
  }

  .nav__item a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
  }

  .nav__item a[aria-current="page"] {
    color: #fff;
    text-decoration: underline;
  }

  .nav__item--soon {
    color: rgba(255, 255, 255, 0.45);
  }
}

/* Layout */

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.hero {
  padding: 1rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.hero__tagline {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 760px) {
  .page-grid {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

.whats-new {
  background: var(--green-100);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.whats-new h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

.whats-new ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* Diary */

.notice-box {
  background: var(--amber-bg);
  border: 1px solid #e8cf9a;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.notice-box ul {
  margin: 0;
  padding-left: 1.1rem;
}

.notice-box li + li {
  margin-top: 0.5rem;
}

.diary-callout {
  color: var(--ink-soft);
}

.diary-callout--emphasis {
  color: var(--red);
  font-weight: 600;
}

.diary-section {
  margin-top: 2.5rem;
}

.diary-section > h2 {
  border-bottom: 2px solid var(--green-600);
  padding-bottom: 0.35rem;
}

.diary-month {
  margin-top: 2rem;
}

.diary-month h3 {
  color: var(--ink-soft);
}

.diary-empty {
  color: var(--ink-soft);
  margin-top: 1rem;
}

.ride-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.ride-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green-600);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.ride-card--cancelled {
  border-left-color: var(--red);
}

.ride-card--postponed {
  border-left-color: var(--amber);
}

.ride-card--draft {
  border-left-color: #9aa39d;
  border-style: dashed;
  background: #f4f4f2;
}

.ride-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.ride-card__date {
  margin: 0;
  font-weight: 700;
}

.ride-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.ride-card__badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.ride-card__badge--cancelled {
  background: var(--red-bg);
  color: var(--red);
}

.ride-card__badge--postponed {
  background: var(--amber-bg);
  color: var(--amber);
}

.ride-card__badge--draft {
  background: #e9e9e6;
  color: #5c655f;
}

.ride-card__facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.75rem;
  margin: 0.5rem 0;
}

.ride-card__facts dt {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.ride-card__facts dd {
  margin: 0;
}

.ride-card__note {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.ride-card__info {
  margin: 0.5rem 0 0;
}

.ride-card__status-note {
  margin: 0.6rem 0 0;
  font-weight: 600;
}

.ride-card--cancelled .ride-card__status-note {
  color: var(--red);
}

.ride-card--postponed .ride-card__status-note {
  color: var(--amber);
}

.is-struck {
  text-decoration: line-through;
  opacity: 0.6;
}

/* Plain content tables (e.g. Markdown-authored pages) */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--green-100);
  color: var(--green-700);
}

tr:last-child td {
  border-bottom: none;
}

/* Downloadable file lists (newsletters, AGM minutes, etc.) */

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.file-list li a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  color: var(--green-700);
}

.file-list li a:hover {
  border-color: var(--green-600);
}

.file-list li a::after {
  content: "Download PDF ↓";
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Icon-led link buttons (e.g. contact methods on the About page) */

.icon-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0;
}

.icon-links__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  color: var(--green-700);
}

.icon-links__item:hover {
  border-color: var(--green-600);
}

.icon-links__item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Footer */

.site-footer {
  background: var(--footer-bg);
  margin-top: 2rem;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0.25rem 0;
}
