/* Rotary Club of Folkestone: shared brand tokens and basic components.
   Reusable by any page under rotary/. Colours are Rotary's own, used pure
   (never tinted). Pages add their own layout in a separate stylesheet. */

:root {
  /* Rotary brand colours */
  --rotary-royal: #17458f;
  --rotary-gold: #f7a81b;
  --rotary-azure: #0067c8;
  --rotary-cardinal: #e02927;
  --rotary-grass: #009739;
  --rotary-charcoal: #54565a;
  --rotary-powder: #b9d9eb;
  --rotary-cloud: #d6d1ca;
  --rotary-white: #ffffff;
  --rotary-black: #000000;

  /* Supporting neutrals for small print (not brand colours, text only) */
  --rotary-muted: #54565a; /* charcoal: 7.4:1 on white */

  /* Type */
  --font-ui: "Open Sans", Arial, Helvetica, sans-serif;
  --font-body: Georgia, "Times New Roman", serif;

  /* Shape */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(0, 0, 0, .18);
  --shadow-lg: 0 6px 22px rgba(23, 69, 143, .16);
  --gutter: 16px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--rotary-white);
  color: var(--rotary-charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: var(--font-ui);
  color: var(--rotary-royal);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0 0 .8em; }

a { color: var(--rotary-azure); }
a:hover { color: var(--rotary-royal); }

img { max-width: 100%; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Focus: a clear two-tone ring that shows on white, blue and gold. */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--rotary-azure);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--rotary-white);
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 2000;
  background: var(--rotary-royal); color: var(--rotary-white);
  font-family: var(--font-ui); font-weight: 700;
  padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 8px; color: var(--rotary-white); }

/* ---- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-ui); font-weight: 700; font-size: 15px; line-height: 1.2;
  border-radius: 999px; padding: 11px 22px; min-height: 44px;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  white-space: nowrap;
}
.btn svg { flex: none; }
/* Donate and primary actions: gold with Royal Blue text, never white on gold. */
.btn-gold { background: var(--rotary-gold); color: var(--rotary-royal); }
.btn-gold:hover { color: var(--rotary-royal); box-shadow: 0 0 0 3px rgba(247, 168, 27, .35); }
.btn-royal { background: var(--rotary-royal); color: var(--rotary-white); }
.btn-royal:hover { color: var(--rotary-white); background: #0f3570; }
.btn-outline { background: var(--rotary-white); color: var(--rotary-royal); border-color: var(--rotary-royal); }
.btn-outline:hover { color: var(--rotary-royal); background: #eef4fa; }
.btn-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-ui); font-weight: 700; font-size: 14px;
  color: var(--rotary-azure); text-decoration: underline; text-underline-offset: 3px;
}

/* ---- Header (always white) ----------------------------------------------- */

.rc-header {
  background: var(--rotary-white);
  border-bottom: 4px solid var(--rotary-gold);
  position: relative; z-index: 1000;
}
.rc-header__inner {
  display: flex; align-items: center; gap: 12px;
  min-height: 76px; padding: 8px var(--gutter);
}
.rc-header__logo { display: block; flex: 1 1 auto; min-width: 0; max-width: 300px; }
.rc-header__logo picture { display: block; }
.rc-header__logo { min-height: 44px; display: flex; align-items: center; }
.rc-header__logo img { display: block; width: 100%; height: auto; max-height: 64px; object-fit: contain; object-position: left center; }
.rc-header nav { margin-left: auto; display: flex; align-items: center; gap: 24px; flex: none; }
.rc-header nav a:not(.btn) {
  font-family: var(--font-ui); font-weight: 600; font-size: 15px;
  color: var(--rotary-royal); text-decoration: none; padding: 6px 0;
  min-height: 44px; display: inline-flex; align-items: center;
}
.rc-header nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
.rc-header nav a.nav-text { display: none; }

@media (min-width: 760px) {
  .rc-header__inner { min-height: 92px; padding: 10px 32px; }
  .rc-header nav a.nav-text { display: inline-flex; }
}

/* ---- Status bar ------------------------------------------------------- */

.rc-status {
  background: var(--rotary-powder); color: var(--rotary-royal);
  font-family: var(--font-ui); font-size: 14px; font-weight: 600; line-height: 1.35;
  padding: 10px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
}
.rc-status .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--rotary-grass); box-shadow: 0 0 0 3px var(--rotary-white); flex: none;
}
.rc-status a { display: inline-block; padding: 13px 0; margin: -13px 0; }
.rc-status em {
  font-style: normal; font-weight: 400; font-family: var(--font-body);
  color: var(--rotary-charcoal);
}
@media (min-width: 760px) {
  .rc-status { padding: 11px 32px; }
  .rc-status a { display: inline-block; padding: 13px 0; margin: -13px 0; }
.rc-status em { margin-left: auto; }
}

/* ---- Route chip (letter in a coloured circle) ------------------------- */

.chip {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  font-family: var(--font-ui); font-weight: 800; font-size: 13px; line-height: 1;
  color: var(--rotary-white);
}
.chip--dark { color: var(--rotary-black); }

/* ---- Eyebrow ------------------------------------------------------------ */

.eyebrow {
  font-family: var(--font-ui); font-weight: 800; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--rotary-gold);
}

/* ---- Footer ------------------------------------------------------------ */

.rc-footer {
  border-top: 4px solid var(--rotary-gold);
  background: var(--rotary-white); color: var(--rotary-charcoal);
  padding: 24px var(--gutter) 30px; font-size: 14px; line-height: 1.55;
}
.rc-footer__inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-start; }
.rc-footer img { width: 180px; height: auto; display: block; }
.rc-footer small { display: block; color: var(--rotary-charcoal); font-size: 14px; margin-top: 6px; }
.rc-footer p { margin: 0 0 4px; }
