/*
 * Generated by sync_rerite.py from RRinTransportation.github.io.
 * Do not edit this file directly; edit the upstream source and re-run sync.
 */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables - Velasca Mediterranean Palette */
:root {
  /* Typography — warm, natural, highly readable pairing */
  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --primary-color: #2B7A9B;
  --primary-dark: #1e5570;
  --primary-light: #4a9bbe;
  --secondary-color: #E8D7C3;
  --bg-cream: #F9F6F1;
  --text-dark: #2c3e50;
  --text-light: #666;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;

  /* Width of the content card. Default is the narrow reading column; pages
     with full-width components opt into the wide layout below. */
  --page-max: 1040px;
}

/* Pages containing grids, carousels or wide tables use the full width, so
   their section headings line up with the components below them. (One flat
   :has() — note :has() cannot be nested inside another :has().) */
body:has(.news-carousel-container),
body:has(.start-cards),
body:has(.grid),
body:has(.team-grid),
body:has(.involvement-options),
body:has(.image-grid),
body:has(.fancy-table-container.wide) {
  --page-max: 1320px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-dark);
  background-color: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* Quarto page titles */
#title-block-header,
.quarto-title-block,
.quarto-title,
.quarto-title h1.title,
h1.title,
p.subtitle {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 1.5rem;
  /* Wide enough for the long homepage title on one line; on narrower
     pages/screens it is capped by the content card and wraps naturally. */
  max-width: 1200px;
}

/* Quarto page subtitle */
.quarto-title-block .subtitle,
.quarto-title .subtitle,
.subtitle {
  font-size: 1.25rem; /* larger subtitle across pages */
  color: var(--text-light);
  text-align: center !important;
  max-width: 800px;
  margin-left: auto !important;
  margin-right: auto !important;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
}

h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}
