/* =====================================================
   aqoh-th01-theme-classic-v1.css
   aqoHISTORY Classic Theme
   ===================================================== */

/* ---------- Root Variables ---------- */

:root {

  --aqoh-colour-background: #f4efe3;
  --aqoh-colour-surface: #fffaf0;

  --aqoh-colour-text: #172033;
  --aqoh-colour-muted: #5f6368;

  --aqoh-colour-brand: #071b33;
  --aqoh-colour-brand-light: #21344f;

  --aqoh-colour-border: #d8d2c6;

  --aqoh-max-width: 900px;

  --aqoh-font-body: Arial, Helvetica, sans-serif;
  --aqoh-font-heading: Georgia, serif;
  
  --navy: var(--aqoh-colour-brand);
  --ink: var(--aqoh-colour-text);
  --red: #8f2f1f;
  --gold: #d8a544;
  --line: var(--aqoh-colour-border);
  --soft: var(--aqoh-colour-surface);
}


/* ---------- Global ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {

  margin: 0;

  background: var(--aqoh-colour-background);

  color: var(--aqoh-colour-text);

  font-family: var(--aqoh-font-body);

  line-height: 1.8;
}

h1,
h2,
h3,
.aqoh-brand-name,
.aqoh-story-content h1,
.aqoh-story-content h2,
.aqoh-story-content h3 {
  font-family: var(--aqoh-font-heading);
}

p,
.aqoh-tagline,
.aqoh-mission,
.aqoh-nav,
.aqoh-story-meta,
.aqoh-story-subtitle,
.aqoh-caption {
  font-family: var(--aqoh-font-body);
}


/* ---------- Links ---------- */

a {

  color: var(--aqoh-colour-brand);

  text-decoration: none;
}

a:hover {

  text-decoration: underline;
}


/* ---------- Header ---------- */



.aqoh-header-inner {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 48px;
}

.aqoh-site-header {
  background: var(--aqoh-colour-brand);
  color: white;
  padding: 16px 0;
}

.aqoh-header-top {
  display: flex;
  align-items: stretch;
  gap: 40px;
  width: 100%;
}

.aqoh-brand {
  flex: 1 1 60%;
}

.aqoh-header-image {
  flex: 1 1 40%;
  min-width: 420px;
}

.aqoh-header-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}


/* Header row */

.aqoh-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  width: 100%;
  margin-top: 20px;
  padding-top: 15px;

  border-top: 1px solid rgba(255,255,255,0.2);
}

.aqoh-nav {
  width: auto;
  margin-top: 0;
  padding-top: 0;
  border-top: none;

  display: flex;
  gap: 25px;
}

.aqoh-nav a {
  color: white;
  font-weight: 600;
}

.aqoh-hosted {
  margin-left: auto;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
}

.aqoh-hosted a {
  color: white;
  font-weight: 600;
  text-decoration: none;
}

.aqoh-hosted a:hover {
  text-decoration: underline;
}
/*-- Header row end */



@media (max-width: 700px) {
  .aqoh-nav-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .aqoh-hosted {
    margin-left: 0;
  }
}


.aqoh-site-header .aqoh-brand-name {
  margin: 0;
  font-family: var(--aqoh-font-heading);
  font-size: 5.5rem;
  line-height: .95;
  font-weight: bold;
}

.aqoh-site-header .aqoh-brand-name a {
  color: white;
  text-decoration: none;
}

.aqoh-tagline {

    margin-top: 6px;

    font-size: 1.35rem;

    font-weight: 700;

    color: #d8a544;

}

.aqoh-mission {

    margin-top: 24px;

    max-width: 900px;

    font-size: 1.05rem;

    line-height: 1.4;

    color: rgba(255,255,255,0.92);

}


/* ---------- Home Page Layout ---------- */

  
    .page {
      max-width: 1500px;
      margin: 0 auto;
      padding: 42px 48px 64px;
      background: white;
    }

    .front-grid {
      display: grid;
      grid-template-columns: minmax(0, 2fr) 390px;
      gap: 38px;
      align-items: start;
    }

    .lead-main {
      display: grid;
      grid-template-columns: minmax(320px, .82fr) minmax(420px, 1.18fr);
      gap: 34px;
      align-items: center;
      padding-bottom: 38px;
      border-bottom: 3px solid var(--ink);
    }

    .kicker {
      color: var(--red);
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-bottom: 14px;
    }

	.story-number {
  	  color: var(--red);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 1.6px;
      text-transform: uppercase;
      margin-bottom: 7px;
	}
	.story-ref {
  	  display: inline-block;
  	  margin-left: 8px;
  	  color: #888;
  	  font-size: 12px;
  	  font-weight: 800;
  	  letter-spacing: 1px;
  	  text-transform: uppercase;
	}
	
	.card-ref {
  color: #888;
  font-size: 11px;
  font-style: italic;
  white-space: nowrap;
}

    .lead-main h2 {
      margin: 0 0 22px;
      font-family: Georgia, 'Times New Roman', serif;
      font-size: clamp(40px, 5vw, 56px);
      line-height: 1;
      letter-spacing: -1px;
    }

    .lead-main p {
      margin: 0 0 24px;
      max-width: 560px;
      font-size: 19px;
      line-height: 1.55;
      color: #333;
    }

    .story-link {
      color: var(--navy);
      text-decoration: none;
      font-weight: 700;
      border-bottom: 1px solid var(--navy);
      padding-bottom: 2px;
    }

    .lead-image img {
      width: 100%;
      display: block;
      border: 1px solid var(--line);
      box-shadow: 0 12px 30px rgba(0,0,0,.16);
    }

    .sidebar {
      border-left: 1px solid #d7d7d7;
      padding-left: 28px;
    }

    .sidebar h3,
    .starter h3,
    .more-stories h3,
    .how-it-works h3 {
      margin: 0 0 14px;
      color: var(--red);
      font-size: 14px;
      letter-spacing: 1.8px;
      text-transform: uppercase;
    }

    .how-it-works {
      background: #fffaf0;
      border: 1px solid var(--line);
      padding: 24px 26px;
      margin-bottom: 26px;
      box-shadow: 0 4px 12px rgba(0,0,0,.04);
    }

    .how-row {
      border-top: 1px solid #e0d3bd;
      padding: 16px 0 0;
      margin-top: 16px;
    }

    .how-row:first-of-type {
      border-top: none;
      padding-top: 0;
      margin-top: 0;
    }

    .how-row strong {
      display: block;
      font-family: Georgia, 'Times New Roman', serif;
      font-size: 21px;
      color: var(--navy);
      margin-bottom: 6px;
    }

    .how-row p {
      margin: 0;
      font-size: 15px;
      line-height: 1.45;
      color: #444;
    }

    .intro-card {
      margin-top: 26px;
      background: #fffaf0;
      padding: 26px 28px;
      border: 1px solid var(--line);
      box-shadow: 0 4px 12px rgba(0,0,0,.05);
    }

    .intro-card h3 {
      color: var(--navy);
      margin-bottom: 12px;
    }

    .intro-lead {
      border-left: 4px solid var(--gold);
      padding-left: 16px;
      margin: 0 0 18px;
      color: var(--navy);
      font-weight: 800;
      font-size: 16px;
      line-height: 1.35;
    }

    .intro-card p {
      margin: 0 0 14px;
      line-height: 1.45;
      color: #333;
      font-size: 15px;
    }

    .intro-card .final-line {
      color: var(--red);
      font-weight: 800;
    }

    .starter {
      margin-top: 38px;
    }

    .starter h3 {
      border-bottom: 3px solid var(--ink);
      padding-bottom: 10px;
      margin-bottom: 22px;
    }

    .story-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0;
      border-left: 1px solid #e0e0e0;
    }

    .card {
      padding: 0 18px 10px;
      border-right: 1px solid #e0e0e0;
    }

    .card img {
      width: 100%;
      height: 150px;
      object-fit: cover;
      border: 1px solid #ddd;
      margin-bottom: 14px;
    }

    .card .category {
      color: #b45d00;
      font-size: 12px;
      letter-spacing: 1.7px;
      font-weight: 800;
      text-transform: uppercase;
      margin-bottom: 9px;
    }

    .card h4 {
      margin: 0 0 10px;
      font-family: Georgia, 'Times New Roman', serif;
      font-size: 23px;
      line-height: 1.05;
    }

    .card p {
      margin: 0 0 14px;
      color: #444;
      font-size: 15px;
      line-height: 1.4;
    }

    .more-stories {
      margin-top: 20px;
      background: var(--soft);
      border: 1px solid #eadcc1;
      padding: 10px 16px;
    }

    .more-stories h3 {
      color: var(--navy);
      font-size: 24px;
      font-family: Georgia, 'Times New Roman', serif;
      letter-spacing: 0;
      text-transform: none;
      margin-bottom: 16px;
      padding-bottom: 10px;
      border-bottom: 2px solid var(--ink);
    }

    .more-item {
      display: grid;
      grid-template-columns: 120px minmax(0, 1fr) auto;
      gap: 14px;
      align-items: center;
      padding: 10px 0;
      border-bottom: 1px solid #ddd0b8;
      text-decoration: none;
    }

    .more-item:last-child { border-bottom: none; }

    .more-item img {
      width: 120px;
      height: 72px;
      object-fit: cover;
      border: 1px solid #ddd;
      background: white;
    }

    .more-tag {
      color: var(--red);
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 1.6px;
      font-weight: 800;
      margin-bottom: 6px;
    }

    .more-item h4 {
      font-family: Georgia, 'Times New Roman', serif;
      font-size: 20px;
      line-height: 1.1;
      margin: 0 0 7px;
    }

    .more-item p {
      margin: 0;
      color: #444;
      font-size: 16px;
      line-height: 1.42;
      max-width: 720px;
    }

    .more-read {
      white-space: nowrap;
      font-weight: 800;
      color: var(--navy);
    }

    .footer {
      background: var(--navy);
      color: white;
      border-top: 4px solid var(--gold);
      margin-top: 50px;
    }

    .footer-inner {
      max-width: 1500px;
      margin: 0 auto;
      padding: 32px 48px;
      display: grid;
      grid-template-columns: 1.5fr 1fr 1fr;
      gap: 28px;
    }

    .footer h3 { margin: 0 0 10px; }
    .footer p, .footer a { color: #d8dee8; line-height: 1.6; text-decoration: none; }
    .small { font-size: 13px; color: #b9c2d0; }

    @media (max-width: 1100px) {
      .front-grid { grid-template-columns: 1fr; }
      .sidebar { border-left: none; padding-left: 0; }
      .lead-main { grid-template-columns: 1fr; }
      .story-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
    }

    @media (max-width: 720px) {
      .lead-main h2 { font-size: 42px; }
      .story-grid { grid-template-columns: 1fr; border-left: none; }
      .card { border-right: none; border-bottom: 1px solid #e0e0e0; padding: 0 0 22px; }
      .more-item { grid-template-columns: 1fr; }
      .more-item img { width: 100%; height: 190px; }
      .more-read { margin-top: 6px; }
      .footer-inner { grid-template-columns: 1fr; }
    }


/* ---------- Main Story Layout ---------- */

.aqoh-story-page {

  max-width: var(--aqoh-max-width);

  margin: 0 auto;

  padding: 40px 24px;
}


/* ---------- Hero ---------- */

.aqoh-story-hero {

  display: grid;

  grid-template-columns: 1fr;

  gap: 30px;

  margin-bottom: 40px;
}

.aqoh-story-label {

  text-transform: uppercase;

  letter-spacing: 1px;

  color: var(--aqoh-colour-muted);

  font-size: 0.85rem;
}

#story-title {

  margin: 0 0 15px;

  font-size: 3rem;

  line-height: 1.1;
}

.aqoh-story-subtitle {

  font-size: 1.3rem;

  font-style: italic;

  color: var(--aqoh-colour-muted);
}

.aqoh-story-hero-image {

  width: 100%;

  display: block;

  border-radius: 8px;

  border: 1px solid var(--aqoh-colour-border);
}

.aqoh-caption {

  margin-top: 10px;

  font-size: 0.9rem;

  color: var(--aqoh-colour-muted);
}

/* ---------- Map CSS ---------- */

.story-map-container {
  margin: 3rem 0;
  padding: 0;
  border: none;
  background: transparent;
  overflow: hidden;
}

.story-map-container iframe {
  display: block;
  width: 100%;
  border: 1px solid var(--aqoh-colour-border);
}

/* ---------- Metadata ---------- */

.aqoh-story-meta {

  background: var(--aqoh-colour-surface);

  border: 1px solid var(--aqoh-colour-border);

  padding: 20px;

  margin-bottom: 40px;

  border-radius: 8px;
}

.aqoh-story-meta p {

  margin: 6px 0;
}


/* ---------- Story Content ---------- */

.aqoh-story-content {

  background: var(--aqoh-colour-surface);

  border: 1px solid var(--aqoh-colour-border);

  border-radius: 8px;

  padding: 40px;
}

.aqoh-story-content h1 {

  font-size: 2.4rem;
}

.aqoh-story-content h2 {

  margin-top: 50px;

  font-size: 2rem;

  color: var(--aqoh-colour-brand);
}

.aqoh-story-content h3 {

  margin-top: 35px;

  font-size: 1.4rem;
}

.aqoh-story-content p {

  margin-bottom: 1.4rem;

  font-size: 1.05rem;
}

.aqoh-story-content blockquote {

  margin: 30px 0;

  padding-left: 20px;

  border-left: 4px solid var(--aqoh-colour-brand);

  font-style: italic;
}

.aqoh-story-content img {

  max-width: 100%;

  height: auto;
}


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

.aqoh-site-footer {

  margin-top: 60px;

  background: var(--aqoh-colour-brand);

  color: white;

  padding: 40px 7vw;
}

.aqoh-site-footer h3 {

  margin-top: 0;
}



/* Homepage development notice plus experiments*/
/* ---------- Homepage Development Notice and Experiments ---------- */

.site-message-wrap {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px 48px;
  background: #ffffff;
  box-sizing: border-box;
}

.site-message {
  width: 100%;
  max-width: 820px;
  padding: 14px 20px;
  background: #f7f3ea;
  border: 1px solid #d8cbbb;
  border-left: 4px solid #9b2f24;
  border-radius: 4px;
  box-sizing: border-box;
  text-align: center;
}

.site-message strong {
  display: block;
  margin: 0 0 6px;
  color: #9b2f24;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: bold;
  line-height: 1.3;
}

.site-message p {
  margin: 0;
  color: #9b2f24;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}


/* Message with Development Areas panel */

.development-message-wrap {
  justify-content: stretch;
  gap: 22px;
}

.development-message-wrap .site-message {
  flex: 1 1 auto;
  max-width: none;
}

.development-areas {
  flex: 0 0 320px;
  padding: 14px;
  background: #f7f3ea;
  border: 1px solid #d8cbbb;
  border-radius: 4px;
  box-sizing: border-box;
}

.development-areas-title {
  display: block;
  margin: 0 0 10px;
  color: #9b2f24;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.3;
  text-align: center;
}

.development-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.development-links a,
.development-links span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 46px;
  padding: 7px 6px;
  background: #ffffff;
  border: 1px solid #c9b9a5;
  border-radius: 3px;
  box-sizing: border-box;
  color: #9b2f24;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.development-links a:hover {
  background: #eee5d7;
  border-color: #9b2f24;
  text-decoration: none;
}

.development-links span {
  color: #8b847b;
  background: #f2eee7;
}

@media (max-width: 900px) {
  .site-message-wrap {
    padding: 16px 24px;
  }

  .development-message-wrap {
    flex-direction: column;
    gap: 12px;
  }

  .development-areas {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .site-message-wrap {
    padding: 14px 16px;
  }

  .site-message {
    padding: 12px 14px;
  }

  .site-message strong {
    font-size: 16px;
  }

  .site-message p {
    font-size: 13px;
  }

  .development-links {
    grid-template-columns: 1fr;
  }

  .development-links a,
  .development-links span {
    min-height: 38px;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 768px) {

  #story-title {

    font-size: 2.2rem;
  }

  .aqoh-story-content {

    padding: 24px;
  }

  .aqoh-nav {

    flex-wrap: wrap;
  }
  
.aqoh-header-top {

  flex-direction: column;

  align-items: flex-start;

}

.aqoh-header-image {

  flex: none;

  width: 100%;

  min-width: 0;

}

.aqoh-header-image img {

  height: 180px;

}

.aqoh-site-header .aqoh-brand-name {
  font-size: 3rem;
}
}

