/* ============ Theme ============ */
:root {
  --saffron: #FF9933;
  --saffron-dark: #C75B00;
  --navy: #1F3A93;
  --navy-dark: #142766;
  --gold: #F4C430;
  --cream: #FFF8EC;
  --paper: #FFFFFF;
  --ink: #23233B;
  --muted: #5A5A72;
  --radius: 18px;
  --shadow: 0 6px 18px rgba(31, 58, 147, .12);
  --c0: #E67E22; --c1: #2E86C1; --c2: #28B463; --c3: #8E44AD; --c4: #C0392B; --c5: #16A085;
  --font: "Trebuchet MS", "Segoe UI", "Nirmala UI", "Raavi", "Mangal", "Noto Sans Gurmukhi", "Noto Sans Devanagari", system-ui, sans-serif;
  --font-head: "Segoe UI Rounded", "Arial Rounded MT Bold", "Trebuchet MS", "Nirmala UI", "Raavi", "Mangal", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  background-image: radial-gradient(circle at 10% 0%, #FFE9C7 0, transparent 40%), radial-gradient(circle at 100% 30%, #E3ECFF 0, transparent 35%);
  background-attachment: fixed;
}
body[data-lang="pa"], body[data-lang="hi"] { line-height: 1.85; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; color: var(--navy-dark); }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .2em 0 .3em; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: .2em 0 .5em; }
h3 { font-size: 1.25rem; margin: .2em 0 .4em; }
a { color: var(--navy); }
p { margin: 0 0 .8em; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 4px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand-logo { width: 48px; height: 48px; flex: none; }
.brand-logo svg { width: 100%; height: 100%; }
.brand-title { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.brand-sub { display: block; font-size: .85rem; opacity: .85; }
.header-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.lang-switch, .size-switch { display: flex; background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 3px; }
.lang-btn, .size-btn, .menu-toggle {
  font: inherit; font-size: .95rem; border: 0; cursor: pointer;
  background: transparent; color: #fff; padding: 6px 12px; border-radius: 999px; min-height: 40px;
}
.lang-btn:hover, .size-btn:hover { background: rgba(255, 255, 255, .18); }
.lang-btn.active { background: var(--saffron); color: var(--navy-dark); font-weight: 700; }
.size-btn { font-weight: 700; min-width: 44px; }
.menu-toggle { display: none; background: var(--saffron); color: var(--navy-dark); font-weight: 700; }

.main-nav { background: var(--navy-dark); }
.main-nav ul {
  list-style: none; margin: 0 auto; padding: 6px 12px; max-width: 1200px;
  display: flex; flex-wrap: wrap; gap: 4px; justify-content: center;
}
.main-nav a {
  display: block; padding: 6px 12px; border-radius: 999px;
  color: #fff; text-decoration: none; font-size: .95rem; white-space: nowrap;
}
.main-nav a:hover { background: rgba(255, 255, 255, .15); }
.main-nav a.active { background: var(--saffron); color: var(--navy-dark); font-weight: 700; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .main-nav { display: none; }
  .main-nav.open { display: block; max-height: calc(100vh - 120px); overflow-y: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 14px; }
  .main-nav a { padding: 10px 14px; font-size: 1.05rem; }
  .brand-sub { display: none; }
}
@media (max-width: 520px) {
  .header-inner { justify-content: center; }
  .brand-title { font-size: 1.1rem; }
}

/* ============ Layout ============ */
main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; outline: none; }
.card {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 24px; margin: 0 0 20px;
}
.lead { font-size: 1.18rem; color: var(--muted); }
.hint { color: var(--muted); font-style: italic; }
.note {
  background: #EAF0FF; border-left: 6px solid var(--navy); border-radius: 12px;
  padding: 12px 16px; margin: 0 0 22px;
}
.page-head { text-align: center; margin: 4px 0 26px; }
.page-head .lead { max-width: 760px; margin: 0 auto; }
.page-icon { font-size: 3rem; display: block; line-height: 1; }
.page-head-icons { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 4px; }
.page-head-icons .hero-logo.mini { width: 64px; height: 64px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 3px solid var(--navy); background: #fff; color: var(--navy);
  border-radius: 999px; padding: 10px 20px; min-height: 48px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.primary { background: var(--saffron); border-color: var(--saffron); color: var(--navy-dark); }

/* "Learn more" drop-downs */
.more { margin-top: 8px; }
.more summary {
  display: inline-block; cursor: pointer; font-weight: 700; color: var(--navy);
  background: #EAF0FF; padding: 6px 14px; border-radius: 999px; list-style: none;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "▸ "; }
.more[open] summary::before { content: "▾ "; }
.more p { margin-top: 10px; padding: 12px 16px; background: #FAFBFF; border-radius: 12px; }

/* "Did you know?" boxes */
.dyk {
  background: #FFF4CC; border: 3px dashed var(--gold); border-radius: var(--radius);
  padding: 16px 20px; margin: 0 0 20px;
}
.dyk strong { display: block; color: var(--saffron-dark); margin-bottom: 4px; font-size: 1.1rem; }
.dyk p { margin: 0; }

/* ============ Home ============ */
/* Home page welcome: the Golden Temple photo, with the Khanda and title in the blue sky */
.hero {
  text-align: center; padding: 28px 16px 0; overflow: hidden;
  /* the sky fades down into #018EFE, the exact colour at the top of the photo, so they join seamlessly */
  background: linear-gradient(180deg, #0063D1 0, #0A7FEA 170px, #018EFE 300px, #018EFE 100%);
  border-radius: 28px; margin-bottom: 22px; box-shadow: var(--shadow);
}
.hero h1 { color: #fff; text-shadow: 0 3px 12px rgba(0, 20, 80, .45); }
.hero .hero-logo { filter: drop-shadow(0 8px 16px rgba(0, 20, 80, .45)); }
.hero-photo { position: relative; margin: 10px -16px 0; line-height: 0; }
.hero-photo::before {   /* soft fade so the sky and the photo join without a line */
  content: ""; position: absolute; inset: 0 0 auto; height: 70px;
  background: linear-gradient(180deg, #018EFE, rgba(1, 142, 254, 0));
}
.hero-photo img { display: block; width: 100%; height: auto; }
@media (max-width: 640px) { .hero-photo img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 76% 0; } }
.hero-logo {
  width: 140px; height: 140px; margin: 0 auto 6px; perspective: 700px;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 8px 14px rgba(175, 121, 2, .35));
}
/* The Khanda turns gently like a coin (always upright), then rests for a moment */
.hero-logo svg, .hero-logo img { display: block; width: 100%; height: 100%; animation: khanda-turn 7s ease-in-out infinite; }
.hero-logo:hover svg, .hero-logo:hover img { animation-play-state: paused; }
@keyframes khanda-turn {
  0%, 15% { transform: rotateY(0deg); }
  55%, 100% { transform: rotateY(360deg); }
}
/* the small logo in the header turns the same way, and pauses when you point at it */
.brand-logo { perspective: 400px; }
.brand-logo svg { animation: khanda-turn 7s ease-in-out infinite; }
.brand:hover .brand-logo svg, .brand:focus-visible .brand-logo svg { animation-play-state: paused; }
.hero .lead {
  max-width: 720px; margin: 0 auto; color: var(--navy-dark); font-weight: 600;
  background: rgba(255, 255, 255, .88); border-radius: 18px; padding: 10px 18px;
}
@keyframes float { 50% { transform: translateY(-8px); } }

.what p { font-size: 1.15rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 0 0 30px; }
.fact {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 16px; text-align: center;
  display: flex; flex-direction: column; gap: 2px;
}
.fact:nth-child(2n) { background: var(--saffron); color: var(--navy-dark); }
.fact .big { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; line-height: 1.1; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tile {
  --c: var(--c0);
  display: flex; flex-direction: column; gap: 4px; padding: 18px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  border-top: 8px solid var(--c); text-decoration: none; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: 0 10px 26px rgba(31, 58, 147, .2); }
.tile-icon { font-size: 2.2rem; line-height: 1.1; }
.tile-title { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--c); }
.tile-desc { color: var(--muted); font-size: .98rem; }
.t1 { --c: var(--c1); } .t2 { --c: var(--c2); } .t3 { --c: var(--c3); } .t4 { --c: var(--c4); } .t5 { --c: var(--c5); }

/* cycled accent colours */
.c0 { --c: var(--c0); } .c1 { --c: var(--c1); } .c2 { --c: var(--c2); }
.c3 { --c: var(--c3); } .c4 { --c: var(--c4); } .c5 { --c: var(--c5); }

/* ============ Timeline ============ */
.timeline { list-style: none; margin: 0; padding: 0 0 0 10px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 58px; top: 0; bottom: 0; width: 6px;
  background: linear-gradient(var(--saffron), var(--navy)); border-radius: 3px;
}
.tl-item { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 16px; margin-bottom: 8px; }
.tl-year {
  align-self: start; position: relative; z-index: 1; margin-top: 16px;
  background: var(--c); color: #fff; font-weight: 800; font-family: var(--font-head);
  border-radius: 999px; padding: 6px 8px; text-align: center; font-size: .95rem; box-shadow: var(--shadow);
}
.tl-body { border-left: 6px solid var(--c); }
.tl-body h2 { font-size: 1.3rem; }
@media (max-width: 600px) {
  .timeline { padding-left: 0; }
  .timeline::before { left: 14px; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; padding-left: 34px; }
  .tl-year { justify-self: start; margin-top: 8px; padding: 4px 14px; }
}

/* ============ Gurus ============ */
.guru-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.guru-card {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: #fff; border-radius: var(--radius); padding: 22px 20px 18px; box-shadow: var(--shadow);
  border-bottom: 8px solid var(--c); transition: transform .15s ease;
}
.guru-card:hover { transform: translateY(-4px); }
.guru-card h2 { font-size: 1.3rem; color: var(--c); margin: 4px 0 2px; }
.g-num {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 800; font-size: 1.15rem;
}
.g-icon { font-size: 2.6rem; line-height: 1; }
.g-years { font-weight: 700; color: var(--muted); margin: 0 0 6px; }
.g-known { flex: 1; }
.g-cta { font-weight: 700; color: var(--c); }

.guru-detail .crumb a { font-weight: 700; text-decoration: none; }
/* Guru page banner: the Golden Temple photo, with the Guru's colour fading in from the left */
.gd-head {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 18px; padding: 26px 28px; min-height: 230px; border-radius: var(--radius);
  background-color: var(--c);
  background-image:
    linear-gradient(90deg, var(--c) 0%, color-mix(in srgb, var(--c) 80%, transparent) 38%, color-mix(in srgb, var(--c) 10%, transparent) 75%, transparent 100%),
    url("../images/golden-temple.webp");
  background-size: cover; background-position: 70% 62%;
  color: #fff; margin: 8px 0 18px; box-shadow: var(--shadow);
}
.gd-head > div:not(.gd-khanda) { text-shadow: 0 2px 8px rgba(0, 0, 0, .35); max-width: 60%; }
.gd-khanda { position: absolute; top: 16px; right: 18px; }
@media (max-width: 640px) {
  .gd-head {
    align-items: flex-end; min-height: 260px; padding-top: 90px;
    background-image:
      linear-gradient(0deg, var(--c) 0%, color-mix(in srgb, var(--c) 75%, transparent) 45%, transparent 85%),
      url("../images/golden-temple.webp");
    background-position: 75% 50%;
  }
  .gd-head > div:not(.gd-khanda) { max-width: none; }
}
.gd-head h1 { color: #fff; margin: 0; }
.gd-icon { font-size: 3.4rem; background: rgba(255, 255, 255, .2); border-radius: 50%; width: 84px; height: 84px; display: grid; place-items: center; flex: none; }
.gd-num { margin: 0; opacity: .9; font-weight: 700; }
.gd-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0 0 18px; }
.gd-facts div { background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); border-top: 5px solid var(--c); }
.gd-facts .wide { grid-column: 1 / -1; }
.gd-facts dt { font-size: .9rem; color: var(--muted); font-weight: 700; }
.gd-facts dd { margin: 0; font-weight: 700; font-size: 1.1rem; }
.guru-detail .card p { font-size: 1.15rem; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }

/* ============ Granth / Beliefs ============ */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 6px 0 6px 36px; position: relative; }
.ticks li::before { content: "🌸"; position: absolute; left: 0; }
.fact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.mini-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 18px; font-weight: 600; }
.mini-card:nth-child(2n) { background: var(--saffron); color: var(--navy-dark); }

.ik { display: flex; align-items: center; gap: 24px; }
.ik-symbol { font-size: 6rem; line-height: 1; color: var(--saffron); font-family: "Raavi", "Nirmala UI", "Noto Sans Gurmukhi", serif; flex: none; }
@media (max-width: 600px) { .ik { flex-direction: column; text-align: center; } }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-bottom: 24px; }
.pillar { position: relative; background: #fff; border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); border-top: 8px solid var(--c); }
.pillar-num { position: absolute; top: -18px; left: 18px; width: 38px; height: 38px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800; }
.pillar h3 { color: var(--c); margin-top: 6px; }
.pillar-meaning { font-weight: 800; font-size: 1.1rem; }
.example { background: #F3FBF4; border-radius: 12px; padding: 10px 12px; font-size: 1rem; }
.def-list dt { font-weight: 800; color: var(--navy); margin-top: 10px; }
.def-list dd { margin: 0 0 6px; }
.thieves { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.thieves li { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.thieves .bad { background: #FDECEA; border-radius: 12px; padding: 10px 12px; }
.thieves .good { background: #E9F7EF; border-radius: 12px; padding: 10px 12px; font-weight: 700; }
.thieves .arrow { font-size: 1.5rem; color: var(--muted); }
@media (max-width: 560px) {
  .thieves li { grid-template-columns: 1fr; gap: 4px; }
  .thieves .arrow { transform: rotate(90deg); justify-self: center; }
}

/* ============ 5 Ks ============ */
.k-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 22px; }
.k-card { background: #fff; border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow); border-bottom: 8px solid var(--saffron); }
.k-card:nth-child(2n) { border-bottom-color: var(--navy); }
.k-art { width: 100px; height: 100px; margin: 0 auto 6px; }
.k-card .gm { display: block; color: var(--saffron-dark); font-size: 1.2rem; }
.k-what { font-weight: 800; color: var(--navy); }

/* ============ Gurdwara ============ */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 22px; }
.info-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.info-icon { font-size: 2.4rem; }
.temple { display: grid; grid-template-columns: minmax(200px, 340px) 1fr; gap: 22px; align-items: center; }
.temple-art svg { width: 100%; height: auto; border-radius: 14px; }
.temple-art img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 78% 55%;
  border-radius: 18px; box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
}
@media (max-width: 700px) { .temple { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist button {
  width: 100%; text-align: left; font: inherit; cursor: pointer; display: flex; align-items: center; gap: 12px;
  background: #F7F8FC; border: 2px solid #E1E5F2; border-radius: 12px; padding: 10px 14px; color: var(--ink);
}
[dir="rtl"] .checklist button { text-align: right; }
.checklist .box { width: 28px; height: 28px; flex: none; border: 3px solid var(--navy); border-radius: 8px; display: grid; place-items: center; background: #fff; }
.checklist button[aria-pressed="true"] { background: #E9F7EF; border-color: var(--c2); }
.checklist button[aria-pressed="true"] .box { background: var(--c2); border-color: var(--c2); }
.checklist button[aria-pressed="true"] .box::after { content: "✓"; color: #fff; font-weight: 900; }

/* ============ Festivals / Heroes ============ */
.fest-grid, .hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.fest-card, .hero-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border-left: 8px solid var(--c); }
.fest-card h2, .hero-card h2 { color: var(--c); font-size: 1.3rem; }
.fest-icon, .hero-icon { font-size: 2.6rem; line-height: 1.1; }
.when, .era { font-weight: 700; color: var(--muted); }

/* ============ Empire ============ */
.fact-file {
  background: linear-gradient(135deg, var(--navy), #3557C2); color: #fff;
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 22px; box-shadow: var(--shadow);
}
.fact-file h2 { color: #fff; }
.fact-file dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0; }
.fact-file dl div { background: rgba(255, 255, 255, .14); border-radius: 12px; padding: 10px 14px; }
.fact-file dt { font-size: .9rem; color: var(--gold); font-weight: 700; }
.fact-file dd { margin: 0; font-weight: 700; }
.story { display: flex; gap: 18px; align-items: flex-start; }
.story-icon { font-size: 2.4rem; width: 64px; height: 64px; flex: none; display: grid; place-items: center; background: #FFF1DD; border-radius: 50%; }
.story-num { color: var(--saffron-dark); }
@media (max-width: 520px) { .story { flex-direction: column; } }

/* ============ Fun Zone ============ */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }
.tab {
  padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 700;
  text-decoration: none; box-shadow: var(--shadow); border: 3px solid transparent;
}
.tab.active { background: var(--saffron); color: var(--navy-dark); }
.fun-panel { background: #fff; border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }

.quiz { max-width: 720px; margin: 0 auto; }
.quiz-top { display: flex; justify-content: space-between; font-weight: 700; color: var(--muted); }
.progress { height: 12px; background: #EEF1FA; border-radius: 999px; overflow: hidden; margin: 8px 0 18px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--saffron), var(--gold)); transition: width .3s ease; }
.quiz-q { font-size: 1.5rem; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.opt {
  font: inherit; font-size: 1.1rem; text-align: left; cursor: pointer; min-height: 56px;
  background: #F4F6FD; border: 3px solid #DCE2F5; border-radius: 14px; padding: 12px 16px; color: var(--ink);
}
[dir="rtl"] .opt { text-align: right; }
.opt:hover:not(:disabled) { border-color: var(--navy); }
.opt:disabled { cursor: default; }
.opt.right { background: #DFF5E6; border-color: var(--c2); font-weight: 700; }
.opt.right::after { content: " ✓"; }
.opt.wrong { background: #FDE2E0; border-color: var(--c4); }
.opt.wrong::after { content: " ✗"; }
.quiz-feedback { margin-top: 16px; }
.yay { color: #1E8449; font-weight: 800; font-size: 1.25rem; }
.oops { color: var(--c4); font-weight: 800; font-size: 1.25rem; }
.quiz-end { text-align: center; padding: 10px 0; }
.stars { font-size: 3rem; margin: 0; }

.painti { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 760px; margin: 0 auto; }
.letter { background: #FFF6E8; border-radius: 14px; padding: 10px 4px; text-align: center; display: flex; flex-direction: column; border: 2px solid #FFE0B3; }
.letter:nth-child(10n+6), .letter:nth-child(10n+7), .letter:nth-child(10n+8), .letter:nth-child(10n+9), .letter:nth-child(10n+10) { background: #EEF2FF; border-color: #D5DEFA; }
.letter .ch { font-size: 2.6rem; line-height: 1.2; color: var(--navy-dark); font-family: "Raavi", "Nirmala UI", "Noto Sans Gurmukhi", sans-serif; }
.letter .lname { font-size: .95rem; }
.letter .roman { font-size: .85rem; color: var(--muted); }
.letter .sound { font-size: .85rem; font-weight: 700; color: var(--saffron-dark); }
@media (max-width: 480px) { .painti { gap: 6px; } .letter .ch { font-size: 2rem; } .letter .lname { display: none; } }

.words { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.word { display: flex; flex-direction: column; background: #F4F6FD; border-radius: 14px; padding: 14px; border-left: 6px solid var(--saffron); }
.wg { font-size: 1.6rem; color: var(--navy-dark); font-family: "Raavi", "Nirmala UI", "Noto Sans Gurmukhi", sans-serif; }
.wr { font-weight: 800; }
.wm { color: var(--muted); }

.search input {
  width: 100%; font: inherit; font-size: 1.1rem; padding: 12px 18px; border-radius: 999px;
  border: 3px solid #DCE2F5; margin-bottom: 16px;
}
.search input:focus { border-color: var(--navy); outline: none; }
.glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 0; }
.g-item { background: #F7F8FC; border-radius: 12px; padding: 12px 14px; }
.g-item dt { font-weight: 800; color: var(--navy); }
.g-item dd { margin: 0; }

.colour-head { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; text-align: center; }
.colour-head .lead { margin: 0; }
.hero-logo.mini { width: 72px; height: 72px; margin: 0; flex: none; }
.pic-choices { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 10px; }
.pic-btn { font: inherit; cursor: pointer; padding: 8px 16px; border-radius: 999px; border: 3px solid var(--navy); background: #fff; color: var(--navy); font-weight: 700; }
.pic-btn.active { background: var(--navy); color: #fff; }
.palette { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0 16px; }
.swatch { width: 42px; height: 42px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #BBB; cursor: pointer; }
.swatch.active { box-shadow: 0 0 0 4px var(--ink); transform: scale(1.12); }
.colour-canvas { max-width: 560px; margin: 0 auto; background: #fff; border: 3px dashed #DCE2F5; border-radius: 16px; padding: 10px; }
.colour-canvas svg { display: block; width: 100%; height: auto; }
.colour-canvas .c { cursor: pointer; transition: fill .15s; }
.colour-canvas .c:hover { opacity: .85; }
.colour-canvas { perspective: 900px; }
.colour-canvas svg.spinning { animation: colour-spin 2.4s ease-in-out; pointer-events: none; }
@keyframes colour-spin {
  0% { transform: rotateY(0deg) scale(1); }
  50% { transform: rotateY(360deg) scale(1.06); }
  100% { transform: rotateY(720deg) scale(1); }
}
.colour-actions { display: flex; gap: 12px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }

/* ============ Historic Gurdwaras map ============ */
.gm-toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.gm-chips, .gm-gurus { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gm-chip {
  font: inherit; font-weight: 700; cursor: pointer; padding: 7px 16px; border-radius: 999px;
  border: 3px solid var(--navy); background: #fff; color: var(--navy);
}
.gm-chip.on { background: var(--navy); color: #fff; }
.gm-gurus-label { font-weight: 700; color: var(--muted); margin-right: 2px; }
.gm-guru {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font: inherit; font-weight: 800; font-size: .95rem;
  border: 3px solid var(--c); background: #fff; color: var(--c); transition: transform .12s ease;
}
.gm-guru:hover { transform: scale(1.12); }
.gm-guru.on { background: var(--c); color: #fff; transform: scale(1.12); }
.gm-tour { white-space: nowrap; }

.gm-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .gm-body { grid-template-columns: 1fr; } }
.gm-map {
  position: relative; border-radius: 22px; overflow: hidden; border: 5px solid #fff;
  box-shadow: 0 10px 30px rgba(31, 58, 147, .22); background: #5FBDEB;
}
#gm-svg { display: block; width: 100%; height: auto; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
#gm-svg.dragging { cursor: grabbing; }
#gm-svg:focus-visible { outline: 4px solid var(--gold); outline-offset: -4px; }
.gm-label { font-family: var(--font-head); paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-linejoin: round; pointer-events: none; }
.gm-l-country { fill: #6B4A2B; font-weight: 800; letter-spacing: .12em; }
.gm-l-region { fill: #C75B00; font-weight: 800; letter-spacing: .1em; }
.gm-l-regionSub { fill: #C75B00; font-style: italic; }
.gm-l-sea { fill: #0D5EA8; font-style: italic; font-weight: 700; stroke: rgba(255, 255, 255, .5); }
.gm-l-mountain { fill: #5D4037; font-weight: 700; font-style: italic; }
.gm-l-desert { fill: #A86B00; font-weight: 700; font-style: italic; }
.gm-l-river { fill: #1E5BB8; font-style: italic; font-weight: 700; }

.gm-pin, .gm-cluster { cursor: pointer; outline: none; }
.gm-pin-body { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .15s ease; }
.gm-pin:hover .gm-pin-body, .gm-pin:focus-visible .gm-pin-body { transform: translateY(-3px) scale(1.15); }
.gm-pin.sel .gm-pin-body { transform: scale(1.3); }
.gm-pin-body.drop { animation: gm-drop .55s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes gm-drop { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
.gm-pulse { transform-box: fill-box; transform-origin: center; animation: gm-pulse 1.6s ease-out infinite; }
@keyframes gm-pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(3); opacity: 0; } }
.gm-pin-name { font-family: var(--font-head); font-weight: 800; fill: var(--navy-dark); paint-order: stroke; stroke: #fff; stroke-linejoin: round; pointer-events: none; }
.gm-cluster-halo { transform-box: fill-box; transform-origin: center; animation: gm-breathe 2.2s ease-in-out infinite; }
@keyframes gm-breathe { 50% { transform: scale(1.2); opacity: .15; } }
.gm-cluster:hover circle:not(.gm-cluster-halo), .gm-cluster:focus-visible circle:not(.gm-cluster-halo) { fill: #FFB55E; }
.gm-cluster:focus-visible circle:not(.gm-cluster-halo), .gm-pin:focus-visible path { stroke: var(--navy); }

.gm-zoom { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 6px; }
.gm-zoom button {
  width: 44px; height: 44px; border-radius: 14px; border: 0; cursor: pointer; font-size: 1.4rem; font-weight: 800;
  background: #fff; color: var(--navy); box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
}
.gm-zoom button:hover { background: var(--saffron); color: var(--navy-dark); }
.gm-tour-progress {
  position: absolute; left: 12px; bottom: 12px; background: var(--navy); color: #fff; font-weight: 800;
  padding: 6px 14px; border-radius: 999px; box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
}
.gm-hint { margin: 10px 4px 2px; font-weight: 700; color: var(--navy); font-size: .98rem; }
.gm-note { margin: 0 4px; font-size: .85rem; color: var(--muted); }

.gm-panel { --c: var(--saffron); position: sticky; top: 140px; }
@media (max-width: 900px) { .gm-panel { position: static; } }
.gm-card, .gm-welcome { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); animation: gm-in .35s ease both; }
@keyframes gm-in { from { opacity: 0; transform: translateY(10px); } }
.gm-card-head { background: var(--c); color: #fff; padding: 18px 20px 16px; }
.gm-card-head h2 { color: #fff; margin: 6px 0 2px; font-size: 1.45rem; }
.gm-place { margin: 0; font-weight: 700; opacity: .95; }
.gm-card-body { padding: 16px 20px 18px; }
.gm-story { font-size: 1.12rem; }
.gm-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.gm-badge { display: inline-block; font-size: .85rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.gm-badge.in { background: #FFE3B8; color: #8A4B00; }
.gm-badge.pk { background: #D4F0CB; color: #1E6B12; }
.gm-badge.takht { background: #FFF3B0; color: #7A5600; }
.gm-linked { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gm-linked > span:first-child { font-weight: 700; color: var(--muted); }
.gm-guru-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 3px; border-radius: 999px;
  border: 2px solid var(--c); color: var(--c); font-weight: 700; text-decoration: none; font-size: .95rem; background: #fff;
}
.gm-guru-link:hover { background: var(--c); color: #fff; }
.gm-guru-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.gm-guru-link:hover .gm-guru-dot { background: #fff; color: var(--c); }
.gm-card .dyk { margin: 12px 0 0; }
.gm-step { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700; color: var(--muted); }
.gm-step .btn { min-height: 42px; padding: 6px 14px; font-size: .95rem; }

.gm-welcome { padding: 22px; text-align: center; }
.gm-welcome-icon { font-size: 3.4rem; line-height: 1; }
.gm-counts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin: 4px 0 14px; }
.gm-legend { list-style: none; padding: 0; margin: 0 0 16px; text-align: left; display: grid; gap: 10px; }
.gm-legend li { display: flex; gap: 12px; align-items: center; }
.gm-legend-pin, .gm-legend-star, .gm-legend-cluster { flex: none; width: 34px; height: 34px; display: grid; place-items: center; font-weight: 800; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.gm-legend-pin { background: var(--c); color: #fff; }
.gm-legend-star { background: #FFD54F; color: #B26A00; border-radius: 50%; transform: none; font-size: 1.2rem; }
.gm-legend-cluster { background: var(--saffron); color: var(--navy-dark); border-radius: 50%; transform: none; box-shadow: 0 0 0 5px rgba(255, 153, 51, .35); }
.gm-legend-pin > span { transform: rotate(45deg); }

.gm-list-title { margin-top: 34px; }
.gm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.gm-item {
  font: inherit; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 12px;
  background: #fff; border: 3px solid transparent; border-left: 8px solid var(--c); border-radius: 14px; padding: 10px 12px;
  box-shadow: var(--shadow); color: var(--ink); transition: transform .12s ease;
}
[dir="rtl"] .gm-item { text-align: right; }
.gm-item:hover { transform: translateY(-2px); }
.gm-item.sel { border-color: var(--c); }
.gm-item-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800; }
.gm-item-photo { position: relative; flex: none; width: 74px; height: 56px; }
.gm-item-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.gm-item-photo .gm-item-num { position: absolute; left: -8px; top: -8px; width: 26px; height: 26px; font-size: .8rem; box-shadow: 0 0 0 2px #fff; }
.gm-item-text { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.gm-item-text span { color: var(--muted); font-size: .92rem; }

/* Gurdwara links on each Guru's page */
.place-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.place-chip {
  display: inline-block; padding: 8px 14px; border-radius: 999px; background: #FFF1DD; color: var(--saffron-dark);
  font-weight: 700; text-decoration: none; border: 2px solid #FFD8A8;
}
.place-chip:hover { background: var(--saffron); color: var(--navy-dark); }

/* ============ Flag, Khanda & Takhts ============ */
.sym-section { margin-bottom: 42px; }
.sym-intro { display: flex; align-items: center; gap: 20px; }
.sym-intro p:last-child { margin-bottom: 0; }
@media (max-width: 520px) { .sym-intro { flex-direction: column; text-align: center; } }
.sym-title { display: flex; align-items: center; gap: 12px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.sym-num {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--saffron); color: var(--navy-dark); font-weight: 900;
}
.explorer {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: start;
  background: #fff; border-radius: 26px; padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow);
  border: 4px solid #FFE0B3;
}
@media (max-width: 760px) { .explorer { grid-template-columns: 1fr; } }
.ex-art svg { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 auto; border-radius: 20px; }
.ex-part { cursor: pointer; transition: opacity .25s ease, filter .25s ease; }
.ex-part:hover { filter: brightness(1.12); }
.has-sel .ex-part:not(.on) { opacity: .28; }
.ex-part.on { filter: drop-shadow(0 0 5px #FFD54F) drop-shadow(0 0 2px #FF9933); animation: ex-pop .4s ease; }
.ex-art-k .ex-part.on * { fill: var(--saffron); }
@keyframes ex-pop { 40% { transform: scale(1.03); } }
.ex-part { transform-box: fill-box; transform-origin: center; }
.ex-hot { cursor: pointer; outline: none; }
.ex-hot-ring { transform-box: fill-box; transform-origin: center; animation: gm-breathe 2s ease-in-out infinite; }
.ex-hot.on circle:nth-child(2), .ex-hot:hover circle:nth-child(2), .ex-hot:focus-visible circle:nth-child(2) { fill: var(--saffron); }
.has-sel .ex-hot:not(.on) { opacity: .6; }
.ex-wave { transform-box: fill-box; transform-origin: 0% 50%; animation: ex-wave 3s ease-in-out infinite; }
@keyframes ex-wave { 0%, 100% { transform: skewY(0deg) scaleX(1); } 50% { transform: skewY(-4deg) scaleX(.95); } }

.ex-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ex-chip {
  font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: 999px; border: 3px solid var(--navy); background: #fff; color: var(--navy);
}
.ex-chip span { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.ex-chip.on { background: var(--saffron); border-color: var(--saffron); color: var(--navy-dark); }
.ex-chip.on span { background: var(--navy-dark); }
.ex-info:empty { display: none; }
.ex-card { display: flex; gap: 14px; background: #FFF6E8; border-radius: 18px; padding: 16px; border: 3px dashed var(--saffron); animation: gm-in .3s ease both; }
.ex-card h3 { margin: 0 0 4px; color: var(--saffron-dark); }
.ex-card p { margin: 0; font-size: 1.08rem; }
.ex-card-num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--saffron); color: var(--navy-dark); display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; }
.ex-colours { margin-top: 16px; padding-top: 14px; border-top: 2px dashed #E1E5F2; }
.ex-colours-title { font-weight: 800; margin-bottom: 8px; }
.ex-colour-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.ex-colour { font: inherit; font-weight: 700; cursor: pointer; padding: 8px 16px; border-radius: 999px; border: 3px solid transparent; }
.ex-colour.kesri { background: #FFE3B8; color: #8A4B00; }
.ex-colour.surmai { background: #D9DFF2; color: #2B3A67; }
.ex-colour.on.kesri { background: #FF9933; color: #fff; border-color: #C75B00; }
.ex-colour.on.surmai { background: #2B3A67; color: #fff; border-color: #142766; }
.ex-colours-text { color: var(--muted); font-size: .98rem; margin: 0; }

.takht-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-bottom: 20px; }
.takht-card {
  display: flex; flex-direction: column; background: #fff; border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow);
  border-top: 10px solid var(--c); position: relative;
}
.takht-photo { margin: -18px -20px 12px; position: relative; }
.takht-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.takht-photo figcaption, .gm-photo-credit {
  position: absolute; right: 8px; bottom: 8px; font-size: .72rem; line-height: 1.3; color: #fff;
  background: rgba(0, 0, 0, .55); padding: 3px 8px; border-radius: 999px;
}
.takht-photo figcaption a, .gm-photo-credit a { color: #fff; }
.takht-card { overflow: hidden; }
.gm-photo { position: relative; line-height: 0; }
.gm-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 70% 55%; }
.gm-photo-credit { line-height: 1.3; }
.credits ul { margin: 0; padding-left: 20px; }
.credits li { margin-bottom: 6px; }
.takht-card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.takht-num { width: 40px; height: 40px; border-radius: 50%; background: #FFD54F; color: #7A5600; display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; box-shadow: 0 0 0 4px #FFF3B0; }
.takht-when { font-weight: 800; color: var(--c); background: #F4F6FD; padding: 2px 12px; border-radius: 999px; }
.takht-card h3 { color: var(--c); margin: 4px 0 2px; }
.takht-place { font-weight: 700; color: var(--muted); }
.takht-fact { background: #FFF6D6; border-radius: 12px; padding: 8px 12px; font-size: .98rem; }
.takht-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.takht-map { font-weight: 700; text-decoration: none; padding: 4px 12px; border-radius: 999px; background: #EAF0FF; }
.takht-map:hover { background: var(--navy); color: #fff; }

/* ============ Sources / 404 ============ */
.sources { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.sources li { margin: 0; padding: 16px 20px; }
.sources a { font-weight: 800; font-size: 1.15rem; }
.sources p { margin: 4px 0 0; color: var(--muted); }
.not-found { text-align: center; padding: 30px 0; }

/* ============ Contact Us ============ */
.contact-kids { max-width: 760px; margin: 0 auto 18px; }
.contact-form { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.cf-types { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.cf-types legend { font-weight: 800; color: var(--navy-dark); margin-bottom: 8px; font-size: 1.1rem; }
.cf-type { display: block; cursor: pointer; }
.cf-type input { position: absolute; opacity: 0; }
.cf-type span {
  display: block; padding: 10px 16px; border-radius: 14px; border: 3px solid #E1E5F2; background: #F7F8FC; font-weight: 700;
}
.cf-type input:checked + span { border-color: var(--saffron); background: #FFF1DD; }
.cf-type input:focus-visible + span { outline: 4px solid var(--gold); outline-offset: 2px; }
.cf-field { display: grid; gap: 6px; font-weight: 800; color: var(--navy-dark); }
.cf-field input, .cf-field select, .cf-field textarea {
  font: inherit; font-weight: 400; color: var(--ink); padding: 10px 14px; border-radius: 12px; border: 3px solid #DCE2F5; background: #fff; width: 100%;
}
.cf-field textarea { resize: vertical; min-height: 140px; }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { border-color: var(--navy); outline: none; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .cf-row { grid-template-columns: 1fr; } }
.cf-error { color: #B3261E; font-weight: 700; font-size: .95rem; }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-privacy { color: var(--muted); font-size: .95rem; margin: 0; }
.cf-send { justify-self: start; }
.cf-send:disabled { opacity: .7; cursor: wait; }
.cf-status { margin: 0; font-weight: 700; }
.cf-status.bad { color: #B3261E; }
.cf-thanks { max-width: 760px; margin: 0 auto; text-align: center; outline: none; }
.cf-thanks-icon { font-size: 3.5rem; }

/* ============ Footer ============ */
.footer-copy { margin: 18px auto 0; max-width: 760px; font-size: .85rem; opacity: .85; line-height: 1.5; }
.footer-copy a { color: #fff; }
.footer-contact { color: var(--gold); font-weight: 800; text-decoration: none; border-bottom: 2px solid rgba(244, 196, 48, .5); }
.footer-contact:hover { border-bottom-color: var(--gold); }
.site-footer { background: var(--navy-dark); color: #fff; text-align: center; padding: 26px 16px 30px; }
.footer-greeting { font-size: 1.2rem; color: var(--gold); font-family: "Raavi", "Nirmala UI", "Noto Sans Gurmukhi", sans-serif; }
.to-top { font: inherit; cursor: pointer; background: var(--saffron); color: var(--navy-dark); border: 0; border-radius: 999px; padding: 8px 18px; font-weight: 700; }

/* ============ Motion & print ============ */
@media (prefers-reduced-motion: reduce) {
  #colour-spin { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .tabs, .skip-link, .pager, .crumb { display: none !important; }
  body { background: #fff; }
  .card, .tile, .guru-card { box-shadow: none; border: 1px solid #ccc; }
  details.more > *:not(summary) { display: block; }
  /* On the colouring page, print only the picture */
  body.print-colour main > *:not(.fun-panel) { display: none !important; }
  body.print-colour .fun-panel { box-shadow: none; padding: 0; }
  body.print-colour .fun-panel > *:not(.colour-canvas) { display: none !important; }
  body.print-colour .colour-canvas { border: 0; max-width: 100%; }
}
