body {
  margin: 0;
  font-family: "Garamond", "Segoe UI", serif;
  background-color: #f5f5f5;
  color: #111;
}

/* =========================================================
   CORE SITE STYLES
========================================================= */

/* ==================== GLOBAL ELEMENTS ==================== */

* {
  box-sizing: border-box;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==================== LAYOUT HELPERS ==================== */

.container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.container.narrow {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
}

.section-card {
  background: #ffffff;
  padding: 35px 30px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.blue-zone{
	background-color:#002147;
	color:#ffffff;
}
/* =========================================================
   ABOUT PAGE
========================================================= */

.about-card {
  text-align: justify;
}

.about-card h2,
.about-card h3 {
  color: #002147;
}

.about-card h2 {
  text-align: center;
  margin-top: 0;
}

.about-card h3 {
  margin-top: 28px;
  margin-bottom: 10px;
}

.about-card p {
  line-height: 1.75;
}

/* ==================== NAVBAR ==================== */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #002147;
  color: white;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-brand {
  display: flex;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
}

.crest-icon {
  width: 40px;
  margin-right: 10px;
}

.nav-links {
  display: flex;
  gap: 15px;
  list-style: none;
}

.nav-links li a {
  text-decoration: none;
  color: #fff;
  transition: 0.3s;
  padding: 5px 10px;
}

.nav-links li a:hover {
  background: #c9a646;
  color: #002147;
  border-radius: 4px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
}

/* ==================== HERO ==================== */

.hero {
  position: relative;
  background: url("../images/castle_image_of_sterling_castle.jpg") center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 150px 20px;
  overflow: hidden;
}

.hero-credit {
  position: absolute;
  bottom: 10px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.8em;
  padding: 5px 10px;
  border-radius: 4px;
  font-family: "Helvetica", "Arial", sans-serif;
  z-index: 2;
}

.hero-credit a {
  color: #c9a646;
  text-decoration: none;
}

.hero-credit a:hover {
  text-decoration: underline;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: auto;
}

.hero h1 {
  font-size: 2em;
  font-weight: bold;
}

.hero p {
  font-size: 1.1em;
  margin: 15px 0;
}

/* ==================== BUTTONS ==================== */

.cta-button,
.cta-outline {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: 0.3s;
}

.cta-button {
  background: #c9a646;
  color: #002147;
}

.cta-button:hover {
  background: #fff;
  color: #002147;
}

.cta-outline {
  border: 1px solid #c9a646;
  color: #c9a646;
}

.cta-outline:hover {
  background: #c9a646;
  color: #002147;
}

/* ==================== PAGE BANNERS ==================== */

.page-banner {
  position: relative;
  background: url("../images/castle_image_of_sterling_castle.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 100px 20px 80px;
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.page-banner-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.page-banner-content h1 {
  font-size: 2em;
  margin-bottom: 10px;
  color: #c9a646;
}

.page-banner-content p {
  font-style: italic;
  font-size: 1em;
  color: #f5f5f5;
}

.family-tree-banner {
  background: url("/2026/images/castle_image_of_sterling_castle.jpg") center/cover no-repeat;
}

.press-banner,
.contact-banner {
  background: url("/images/castle_image_of_sterling_castle.jpg") center/cover no-repeat;
}

/* ==================== GENERAL SECTIONS ==================== */

.claim-section {
  border-top: 4px solid #c9a646;
}

.pillars {
  display: flex;
  justify-content: space-around;
  background: #fff;
  padding: 40px 20px;
  text-align: center;
}

.pillar {
  max-width: 300px;
}

.pillar h2 {
  color: #002147;
}

/* ==================== HOME INTRODUCTION ==================== */

.intro {
  background: #fafafa;
  max-width: 1100px;
  margin: auto;
}

.portrait {
  border-radius: 10px;
}

.intro-text h2 {
  color: #002147;
  margin: 0 0 8px;
}

.intro-text h3 {
  color: #c9a646;
  margin: 0 0 20px;
}

.intro-text p {
  line-height: 1.65;
}

/* Full-width royal homepage intro */
.intro-royal-layout {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(420px, 1.35fr) minmax(420px, 1.1fr);
  justify-content: center;
  align-items: start;
  gap: 46px;
  padding: 70px clamp(40px, 7vw, 120px);
}

.intro-arms-panel {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 80px;
}

.intro-arms-image {
  width: min(300px, 100%);
  max-width: 100%;
  margin: 0;
}

.intro-copy-panel {
  padding: 0;
  max-width: 760px;
}

.intro-copy-panel p {
  text-align: justify;
}

.intro-scripture-card {
  margin: 28px 0 0;
  padding: 20px 24px;
  border-left: 4px solid #c9a646;
  background: #f8f6ef;
  border-radius: 6px;
}

.intro-scripture-card p {
  margin: 0;
  font-style: italic;
}

/* Dual royal portraits */
.intro-royal-portraits {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 22px;
  width: 100%;
  max-width: 560px;
  margin: 0;
  padding-top: 38px;
}

.royal-portrait-card {
  margin: 0;
  text-align: center;
}

.royal-portrait-image {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto;
  border-radius: 12px;
  border: 4px solid #c9a646;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.royal-portrait-caption {
  margin: 10px 0 0;
  color: #002147;
  font-size: 0.86rem;
  font-weight: bold;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.caption-divider {
  display: block;
  width: 65%;
  height: 1px;
  margin: 8px auto;
  background: rgba(201, 166, 70, 0.75);
}

/* ==================== CLAIM CONTENT ==================== */

.claim-wrapper h1,
.claim-wrapper h2 {
  color: #c9a646;
  margin-top: 30px;
}

.claim-quote {
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid #c9a646;
  margin: 20px auto;
  padding: 20px;
  color: #fff;
  font-style: italic;
  text-align: left;
  max-width: 700px;
}

.claim-points,
.claim-articles {
  text-align: left;
  margin: 25px auto;
  color: #f0f0f0;
}

.claim-articles li {
  margin-bottom: 10px;
}

.claim-summary {
  max-width: 900px;
  margin: 0 auto;
}

.claim-document {
  max-width: 760px;
  margin: 0 auto;
  text-align: justify;
}

.claim-subheading,
.claim-centered-heading {
  text-align: center;
}

.claim-signature {
  width: 100%;
  max-width: 320px;
  margin: 40px auto 0;
  text-align: center;
}

.claim-crest {
  display: block;
  margin: 0 auto 15px;
  max-width: 100%;
  height: auto;
}

.claim-document .claim-points,
.claim-document .claim-articles {
  max-width: 100%;
}

.claim-document .claim-articles {
  text-align: justify;
}

.claim-quote footer {
  margin-top: 15px;
  font-style: normal;
  color: #f0f0f0;
}

/* ==================== ANIMATIONS ==================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== FOOTER ==================== */

footer {
  background: #111;
  color: #ccc;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.9em;
}

/* =========================================================
   FAMILY TREE PAGE
========================================================= */

/* ==================== NOTICE ==================== */

.notice-section {
  padding: 40px 0 20px;
}

.notice-box {
  background: #fff8e8;
  border-left: 5px solid #c9a646;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.notice-box h2 {
  margin-top: 0;
  color: #002147;
}

/* ==================== FAMILY INTRO ==================== */

.family-intro {
  margin-top: 10px;
  margin-bottom: 20px;
  gap: 20px;
}

/* ==================== RESEARCH AND ARCHIVE ==================== */

.research-section,
.directory-section,
.callout-section,
.manual-data-section,
.records-section {
  padding: 30px 0;
}

.section-card .claim-quote,
.research-section .claim-quote {
  background: #002147;
  border-left: 4px solid #c9a646;
  margin: 25px 0;
  padding: 20px;
  color: #fff;
  font-style: italic;
  border-radius: 6px;
  max-width: none;
  text-align: left;
}

.section-heading {
  text-align: center;
  margin-bottom: 30px;
}

.section-heading h2,
.section-card h2 {
  color: #002147;
  margin-top: 0;
}

.section-heading p {
  max-width: 700px;
  margin: 0 auto;
}

/* ==================== RECORD CARDS ==================== */

.records-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 24px;
}

.record-card {
  background: #ffffff;
  border-top: 4px solid #c9a646;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
}

.record-card h3 {
  margin-top: 0;
  color: #002147;
}

/* =========================================================
   EXPANDABLE LINEAGE RECORDS
========================================================= */

.lineage-records-grid {
  grid-template-columns: 1fr;
}

.lineage-expand-panel {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(20, 58, 110, 0.12);
}

.lineage-expand-inner {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(20, 58, 110, 0.10);
  background:
    radial-gradient(circle at top right, rgba(26, 87, 164, 0.06), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 253, 0.98) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.lineage-expand-heading {
  margin-bottom: 18px;
}

.lineage-expand-heading h4 {
  margin: 0 0 8px;
  color: #002147;
}

.lineage-expand-heading p {
  margin: 0;
  color: #425c7d;
  line-height: 1.7;
}

.lineage-people-list {
  display: grid;
  gap: 14px;
}

.lineage-person-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(20, 58, 110, 0.08);
}

.lineage-person-index {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  background: #002147;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.lineage-person-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.lineage-person-name {
  margin: 0;
  font-size: 1rem;
  color: #10284a;
}

.lineage-anchor-badge {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(201, 166, 70, 0.16);
  border: 1px solid rgba(201, 166, 70, 0.35);
  color: #7f5f10;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lineage-person-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.lineage-person-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20, 58, 110, 0.07);
  border: 1px solid rgba(20, 58, 110, 0.09);
  color: #29486e;
  font-size: 0.8rem;
  font-weight: 600;
}

.evidence-chip {
  background: rgba(26, 87, 164, 0.09);
  color: #1a57a4;
}

.lineage-person-title,
.lineage-person-note,
.lineage-person-subnote {
  margin: 0;
  line-height: 1.65;
}

.lineage-person-title {
  margin-bottom: 8px;
  color: #1c3a63;
  font-weight: 600;
}

.lineage-person-note {
  color: #314b6c;
}

.lineage-person-subnote {
  margin-top: 8px;
  color: #5b6f8a;
  font-size: 0.95rem;
}

.lineage-empty-state {
  text-align: center;
}

.lineage-empty-state h4 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #002147;
}

/* ==================== MANUAL ANCESTRY DATA ==================== */

.ancestry-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.ancestry-entry {
  background: #f9f9f9;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  padding: 20px;
}

.ancestry-entry h3 {
  margin-top: 0;
  color: #002147;
}

/* ==================== DIRECTORY LIST ==================== */

.directory-list {
  list-style: none;
  padding: 0;
  margin: 25px 0 0;
  display: grid;
  gap: 12px;
}

.directory-list li a {
  display: block;
  text-decoration: none;
  background: #002147;
  color: #fff;
  padding: 14px 18px;
  border-radius: 6px;
  transition: 0.3s;
  font-weight: bold;
}

.directory-list li a:hover {
  background: #c9a646;
  color: #002147;
}

/* ==================== CALLOUT ==================== */

.callout-card {
  text-align: center;
  border-top: 4px solid #c9a646;
}

/* ==================== VISITLOG ==================== */

.visitlog-wrapper {
  width: min(1100px, calc(100% - 40px));
  margin: 30px auto 10px;
}

/* =========================================================
   DNA SECTION
========================================================= */

/* ==================== DNA CONTAINER ==================== */

.dna-section {
  padding: 40px 0;
}

.dna-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(20, 58, 110, 0.18);
  background:
    radial-gradient(circle at top right, rgba(26, 87, 164, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 248, 252, 0.98) 100%);
}

.dna-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 58, 110, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 58, 110, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.45;
}

.dna-card > * {
  position: relative;
  z-index: 1;
}

/* ==================== DNA HEADER ==================== */

.dna-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}

.dna-header-copy {
  max-width: 820px;
}

.dna-kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1a57a4;
}

.dna-header h2 {
  margin: 0 0 12px 0;
}

.dna-header p {
  margin: 0;
  line-height: 1.7;
}

.dna-report-meta {
  min-width: 220px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(20, 58, 110, 0.14);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 30px rgba(10, 30, 60, 0.08);
  text-align: right;
}

.dna-report-label,
.dna-report-provider {
  display: block;
}

.dna-report-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4f6787;
  margin-bottom: 6px;
}

.dna-report-meta strong {
  display: block;
  font-size: 1.1rem;
  color: #10284a;
  margin-bottom: 6px;
}

.dna-report-provider {
  font-size: 0.92rem;
  color: #5b6f8a;
}

/* ==================== DNA OVERVIEW ==================== */

.dna-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.dna-overview-box {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(20, 58, 110, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.dna-overview-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #587090;
  margin-bottom: 8px;
}

.dna-overview-box strong {
  font-size: 1.45rem;
  color: #10284a;
}

/* ==================== DNA MAP LAYOUT ==================== */

.dna-map-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.4fr);
  gap: 24px;
  align-items: start;
}

.dna-map-board,
.dna-region-panel {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(20, 58, 110, 0.12);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(14, 30, 50, 0.06);
}

.dna-map-grid {
  display: grid;
  gap: 14px;
}

.dna-map-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.dna-map-tile-name {
  font-size: 0.95rem;
}

.dna-map-tile-value {
  font-size: 1.2rem;
}

.dna-map-scotland-northern-ireland {
  background: linear-gradient(135deg, #14532d 0%, #2f855a 100%);
}

.dna-map-ireland {
  background: linear-gradient(135deg, #9a3412 0%, #dd6b20 100%);
}

.dna-map-england {
  background: linear-gradient(135deg, #1d4e89 0%, #2563eb 100%);
}

.dna-map-wales-border-regions {
  background: linear-gradient(135deg, #7a1f5c 0%, #b83280 100%);
}

.dna-map-western-europe {
  background: linear-gradient(135deg, #6b21a8 0%, #9333ea 100%);
}

/* ==================== DNA REGIONS ==================== */

.dna-region-group + .dna-region-group {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(20, 58, 110, 0.10);
}

.dna-region-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.dna-region-group-header h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #10284a;
}

.dna-region-group-header span {
  font-weight: 700;
  color: #1a57a4;
}

.dna-region-list {
  display: grid;
  gap: 10px;
}

.dna-region-row {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(244, 248, 252, 0.95);
  border: 1px solid rgba(20, 58, 110, 0.08);
}

.dna-region-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.dna-region-name {
  color: #18304f;
  font-weight: 600;
}

.dna-region-percent {
  color: #10284a;
  font-weight: 700;
}

/* ==================== DNA NOTES AND STATES ==================== */

.dna-notes,
.dna-empty-state {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(20, 58, 110, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.dna-notes h3,
.dna-empty-state h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #10284a;
}

/* ==================== DNA REGION COLOURS ==================== */

.dna-dot-central-scotland-northern-ireland { background: #2f855a; }
.dna-dot-munster-ireland { background: #dd6b20; }
.dna-dot-northern-wales-north-west-england { background: #b83280; }
.dna-dot-donegal-ireland { background: #b7791f; }
.dna-dot-connacht-ireland { background: #0f766e; }
.dna-dot-leinster-ireland { background: #c05621; }
.dna-dot-southern-wales { background: #8d6e0f; }
.dna-dot-west-midlands { background: #1f7a8c; }
.dna-dot-east-midlands { background: #8e44ad; }
.dna-dot-the-netherlands { background: #2563eb; }

/* =========================================================
   PRESS PAGE
========================================================= */

.press-intro-section,
.press-list-section {
  padding: 30px 0;
}

.press-intro-card {
  text-align: center;
}

.press-intro-card h2 {
  color: #002147;
  margin-top: 0;
}

.press-release-list {
  list-style: none;
  padding: 0;
  margin: 25px 0 0;
}

.press-release-list li {
  border-bottom: 1px solid #d9d9d9;
}

.press-release-list li:last-child {
  border-bottom: none;
}

.press-release-list li a {
  display: block;
  padding: 18px 10px;
  text-decoration: none;
  transition: 0.3s;
  border-radius: 6px;
}

.press-release-list li a:hover {
  background: #f4efe0;
}

.press-date {
  display: block;
  font-size: 0.95em;
  font-weight: bold;
  color: #c9a646;
  margin-bottom: 6px;
}

.press-title {
  display: block;
  font-size: 1.05em;
  color: #002147;
  line-height: 1.5;
}

/* =========================================================
   CONTACT PAGE
========================================================= */

.contact-section {
  padding: 30px 0;
}

.contact-card h2 {
  color: #002147;
  margin-top: 0;
  text-align: center;
}

.contact-card p {
  line-height: 1.7;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.contact-list li {
  padding: 18px 0;
  border-bottom: 1px solid #e1e1e1;
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list strong {
  display: block;
  color: #002147;
  margin-bottom: 6px;
}

.contact-list a {
  color: #002147;
  text-decoration: none;
  font-weight: bold;
  word-break: break-word;
}

.contact-list a:hover {
  color: #c9a646;
  text-decoration: underline;
}

.contact-note {
  margin-top: 25px;
  padding: 20px;
  background: #f8f6ef;
  border-left: 4px solid #c9a646;
  border-radius: 6px;
  font-style: italic;
  text-align: center;
}

/* =========================================================
   OPERATIONS DIRECTORY
========================================================= */

.operations-list {
  display: grid;
  gap: 28px;
}

.operation-entry {
  background: #ffffff;
  border-left: 5px solid #c9a646;
  border-top: 1px solid rgba(20, 58, 110, 0.08);
  padding: 28px 30px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.operation-entry h3 {
  margin-top: 0;
  color: #002147;
  font-size: 1.35rem;
  line-height: 1.35;
}

.operation-entry p {
  color: #333;
  line-height: 1.75;
}

.operation-entry strong {
  color: #002147;
}

.operation-entry ul {
  margin-top: 8px;
  margin-bottom: 18px;
  padding-left: 24px;
}

.operation-entry li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.operation-entry a {
  color: #002147;
  font-weight: bold;
  text-decoration: none;
}

.operation-entry a:hover {
  color: #c9a646;
  text-decoration: underline;
}

.operation-entry code {
  background: #f4efe0;
  color: #002147;
  padding: 2px 6px;
  border-radius: 4px;
}

/* =========================================================
   PUBLIC PETITIONS SECTION
========================================================= */

.petition-section {
  background: #f8f6ef;
  padding: 55px 0;
  border-top: 4px solid #c9a646;
}

.petition-header {
  max-width: 900px;
  margin: 0 auto 32px;
  text-align: center;
}

.petition-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: #c9a646;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.petition-header h2 {
  margin: 0 0 14px;
  color: #002147;
}

.petition-header p {
  margin: 0;
  line-height: 1.7;
}

.petition-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.petition-card {
  width: 100%;
  background: linear-gradient(135deg, #002147, #06111f);
  color: #ffffff;
  border: 1px solid #c9a646;
  border-radius: 14px;
  padding: 34px 38px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.petition-category {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(201, 166, 70, 0.16);
  border: 1px solid rgba(201, 166, 70, 0.45);
  color: #f1e6b8;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.petition-card h3 {
  margin: 0 0 16px;
  color: #ffffff;
  line-height: 1.35;
  font-size: 1.45rem;
}

.petition-summary {
  max-width: 900px;
  line-height: 1.7;
  color: #f4f4f4;
}

.petition-deadline {
  margin-top: 18px;
  color: #f1e6b8;
}

.petition-button {
  display: inline-block;
  margin-top: 16px;
  background: #c9a646;
  color: #06111f;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
}

.petition-button:hover {
  background: #ffffff;
  color: #002147;
}

.petition-note {
  margin-top: 16px;
  font-size: 0.82rem;
  line-height: 1.55;
  opacity: 0.85;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {
  .intro-royal-layout {
    grid-template-columns: 210px minmax(340px, 1fr) minmax(360px, 0.95fr);
    gap: 30px;
    padding: 60px clamp(30px, 5vw, 70px);
  }

  .intro-arms-image {
    width: 220px;
  }

  .intro-royal-portraits {
    gap: 16px;
  }

  .royal-portrait-image {
    max-height: 320px;
  }
}

@media (max-width: 1100px) {
  .intro-royal-layout {
    grid-template-columns: 200px minmax(300px, 1fr) 340px;
    gap: 24px;
  }

  .intro-arms-image {
    width: 200px;
  }

  .intro-royal-portraits {
    gap: 14px;
  }

  .royal-portrait-image {
    max-height: 300px;
  }
}

@media (max-width: 1000px) {
  .intro-royal-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .intro-royal-portraits {
    grid-column: 2;
    width: min(520px, 100%);
    padding-top: 10px;
  }
}

@media (max-width: 980px) {
  .dna-header,
  .dna-map-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dna-report-meta {
    text-align: left;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #002147;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .pillars {
    flex-direction: column;
    align-items: center;
  }

  .intro-royal-layout {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 40px 20px;
  }

  .intro-arms-panel {
    padding-top: 0;
  }

  .intro-arms-image {
    width: 230px;
  }

  .intro-copy-panel {
    max-width: 100%;
  }

  .intro-royal-portraits {
    grid-column: auto;
    width: min(520px, 100%);
    margin: 0 auto;
    padding-top: 0;
  }

  .records-grid,
  .ancestry-list {
    grid-template-columns: 1fr;
  }

  .lineage-person-row {
    grid-template-columns: 1fr;
  }

  .lineage-person-index {
    width: 58px;
  }

  .lineage-person-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .press-release-list li a {
    padding: 16px 0;
  }

  .press-title {
    font-size: 1em;
  }

  .contact-list li {
    padding: 16px 0;
  }

  .claim-document {
    max-width: 100%;
    text-align: left;
  }

  .claim-signature {
    max-width: 260px;
  }

  .hero-credit {
    font-size: 0.7em;
    right: 10px;
    bottom: 8px;
    padding: 4px 8px;
  }

  .operation-entry {
    padding: 24px 20px;
  }

  .operation-entry h3 {
    font-size: 1.15rem;
  }

  .petition-section {
    padding: 42px 0;
  }

  .petition-header {
    margin-bottom: 26px;
  }

  .petition-card {
    padding: 28px 24px;
  }

  .petition-card h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 640px) {
  .dna-overview-grid {
    grid-template-columns: 1fr;
  }

  .dna-region-row {
    grid-template-columns: 16px 1fr auto;
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .intro-royal-portraits {
    grid-template-columns: 1fr;
    width: min(320px, 100%);
  }

  .royal-portrait-image {
    max-height: 380px;
  }

  .petition-card {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .petition-button {
    width: 100%;
    text-align: center;
  }
}