:root {
  --bg: #f7fafc;
  --card-bg: #ffffff;
  --accent: #3182ce;
  --accent-soft: #ebf8ff;
  --text: #1a202c;
  --muted: #4a5568;
  --border: #e2e8f0;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
  --radius-lg: 16px;
  --radius-xl: 24px;
  --gap: 1.5rem;
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-stack);
  color: var(--text);
  background: radial-gradient(circle at top, #edf2ff 0, #f7fafc 40%, #ffffff 80%);
}

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

a:hover {
  text-decoration: underline;
}

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  --accent: #3182ce;
  --accent-soft: #ebf8ff;
}

header.hero {
  background-image: linear-gradient(135deg, #2b6cb0, #38b2ac);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 2rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

header.hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  top: -80px;
  right: -40px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.hero-subtitle {
  margin: 0;
  margin-bottom: 12px;
  font-size: 0.95rem;
  opacity: 0.9;
  font-family: cursive;
}

.hero-tagline {
  margin-top: 1rem;
  font-size: 0.98rem;
}

.unit-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.9rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.16);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.badge span {
  font-weight: 600;
}

.address {
  margin-top: 0.75rem;
  font-size: 0.86rem;
  opacity: 0.9;
}

nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 250, 252, 0.5);
  backdrop-filter: blur(1px);
  border-radius: 999px;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

@media print {
  nav {
    display: none;
  }

  .photo-details {
    page-break-inside: avoid;
  }

  .photo-details summary {
    margin-bottom: 0.5rem;
  }

  .photo-details summary::before,
  .photo-details summary::after {
    display: none;
  }

  * {
    box-sizing: content-box;

  }


}

@media print {
  .print-break {
    break-before: page; /* fallbacks: page-break-before: always; */
  }
}
.nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.45rem;
  justify-content: center;
}

.nav-link {
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  border: none;
}

@media (hover: hover) and (pointer: fine) {
  /* Avoid sticky hover states on touch devices */
  .nav-link:hover {
    background: var(--accent-soft);
    color: var(--accent);
  }
}

.nav-link-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(49, 130, 206, 0.35);
}

/* .nav-link-primary:hover,
.nav-link-primary:focus-visible {
    background: #2b6cb0;
    color: #fff;
    opacity: 0.6;
    font-weight: bold;
} */
.icon {
  vertical-align: middle;
  height: 1rem;
  display: inline-block;
}
section {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.4rem;
  margin-bottom: var(--gap);
  border: 1px solid var(--border);
}

h2 {
  margin-top: 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

h3 {
  margin-top: 1.2rem;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

h3.cell-header { 
  font-size: 1rem;
    margin-top: 1.2rem;
    margin-bottom: 0.2rem;
}

p {
  margin-top: 0.3rem;
  margin-bottom: 0.6rem;
  line-height: 1.5;
  font-size: 0.94rem;
}

ol {
    padding-left: 2rem;
}

ul {
  padding-left: 1.1rem;
  margin-top: 0.3rem;
  margin-bottom: 0.6rem;
}

li {
  margin-bottom: 0.25rem;
  font-size: 0.94rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: -1rem;

}

@media (min-width: 700px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.highlight-box {
  background: var(--accent-soft);
  border-radius: var(--radius-lg);
  padding: 0.2rem 1rem;
  border: 1px dashed var(--accent);
  font-size: 0.9rem;
}

.highlight-yellow {
  background: #f8f9b6;
  border-radius: var(--radius-lg);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border: 1px dashed #fcbc54;
  font-size: 0.9rem;
}
.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.checklist li::marker {
  content: "✔ ";
  color: #38a169;
}

blockquote {
  margin: 0.7rem 0;
  padding: 0.7rem 0.9rem;
  border-left: 3px solid var(--accent);
  background: #f7fafc;
  border-radius: 0 12px 12px 0;
  font-size: 0.9rem;
}

.section-collapsible {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.section-collapsible > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--accent-soft);
  font-weight: 600;
}

.section-collapsible > summary::-webkit-details-marker {
  display: none;
}

.section-collapsible > summary::after {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.section-collapsible[open] > summary::after {
  transform: rotate(-135deg);
}

.section-collapsible .section-summary {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.section-collapsible .section-summary h2 {
  margin: 0;
  font-size: 1.15rem;
}

.section-collapsible .summary-hint {
  font-size: 0.82rem;
  color: var(--muted);
}

.section-collapsible .collapsible-content {
  padding: .25rem 1.25rem 1.4rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .section-collapsible > summary {
    padding: 0.85rem 1rem;
  }

  .section-collapsible .collapsible-content {
    padding: 1rem 1rem 1.2rem;
  }
}

.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2rem;
}

footer strong {
  color: var(--text);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #2b6cb0;
  color: #fff;
  box-shadow: var(--shadow);
}

/** photos **/

.instruction-block {
  margin: 1.5rem 0;
}

.photo-details {
  margin-top: 1rem;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  background: #fafafa;
}

ul .photo-details, ol .photo-details {
  margin-bottom: 0.8rem;
  margin-top: 0.8rem;

}

.photo-details summary {
  font-weight: 600;
  font-size: 0.90rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

/* Tap/click icon that appears after the summary text */
.photo-details summary::before {
  content: "";
  width: 1.6em;
  height: 1.6em;
  background-image: url("../img/icons/click-icon-2.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  order: 1; /* Places it after the text */
}

/* Swap to tap icon on mobile/touch devices */
@media (max-width: 768px) {
  .photo-details summary::before {
    background-image: url("../img/icons/tap-icon-4.png");
  }
}

.photo-details summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: auto; /* Pushes chevron to far right */
  order: 2; /* Ensures chevron comes after the tap/click icon */
}

.photo-details[open] > summary::after {
  transform: rotate(-135deg);
}

.photo-details summary::-webkit-details-marker {
  display: none;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.photo-grid img {
  width: 100%;
  max-width: 420px;
  height: auto;

  border-radius: 10px;
  cursor: zoom-in;
  transition: transform 0.15s ease;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.photo-grid img:active {
  transform: scale(0.98);
}

.photo-grid figcaption {
  font-size: 0.8rem;
  text-align: center;
  margin-top: 0.25rem;
  color: #555;
}

.photo-grid figure {
  margin: 0;
  /* width: 100%; */
}

@media (max-width: 520px) {
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .photo-grid img {
    border-radius: 8px;
  }
}

/** lightbox **/
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.86);
  display: none;            /* 👈 default hidden */
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.lightbox.is-open {
  display: flex;            /* 👈 only visible when opened */
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
  cursor: zoom-out;
}

body.body-lock {
  position: fixed;
  inset: 0;
  width: 100%;
  overflow-y: auto;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Unit-specific styling overrides */
.page[data-unit="1"] {
  --accent: rgb(32, 157, 155);
  --accent-soft: rgba(25, 123, 122, 0.18);

}

.page[data-unit="1"] .hero {
  background-image: linear-gradient(135deg, rgba(32, 157, 142, 0.75), rgba(108, 192, 189, 0.62)),
    url("../img/unit-1/unit-1-landing.jpg");
}

.page[data-unit="1-2br"] {
  --accent: rgb(157, 107, 32);
  --accent-soft: rgba(123, 103, 25, 0.18);

}

.page[data-unit="1-2br"] .hero {
  background-image: linear-gradient(135deg, rgba(157, 107, 32, 0.75), rgba(192, 151, 108, 0.62)),
    url("../img/unit-1/unit-1-landing.jpg");
}

.page[data-unit="1"] .unit-flag {
    background: rgba(151, 125, 83, 0.65);
    border-color: rgba(202, 181, 147, 0.65);
}

.page[data-unit="1"] .unit-flag {
    background: rgba(110, 83, 151, 0.65);
    border-color: rgba(196, 147, 202, 0.65);
}

.page[data-unit="2"] {
  --accent: #c25d3d;
  --accent-soft: rgba(194, 93, 61, 0.18);
}

.page[data-unit="2"] .hero {
  background-image: linear-gradient(135deg, rgba(108, 52, 34, 0.75), rgba(229, 143, 102, 0.62)),
    url("../img/unit-2/unit-2-landing.jpg");
}

.page[data-unit="2"] .unit-flag {
  background: rgba(108, 52, 34, 0.65);
  border-color: rgba(229, 143, 102, 0.65);
}
.page[data-unit="3"] {
  --accent: #0ea5e9;
  --accent-soft: rgba(14, 165, 233, 0.18);
}

.page[data-unit="3"] .hero {
  background-image: linear-gradient(135deg, rgba(8, 47, 73, 0.75), rgba(14, 165, 233, 0.62)),
    url("../img/unit-3/unit-3-landing.jpg");
}

.page[data-unit="3"] .unit-flag {
  background: rgba(8, 47, 73, 0.65);
  border-color: rgba(14, 165, 233, 0.65);
}

.page[data-unit="4"] {
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.18);
}

.page[data-unit="4"] .hero {
  background-image: linear-gradient(135deg, rgba(120, 53, 15, 0.75), rgba(249, 115, 22, 0.62)),
    url("../img/unit-4/unit-4-landing.jpg");
}

.page[data-unit="4"] .unit-flag {
  background: rgba(120, 53, 15, 0.65);
  border-color: rgba(249, 115, 22, 0.65);
}

.page[data-unit="5"] {
  --accent: #41cd85;
  --accent-soft: rgba(196, 247, 85, 0.2);
}

.page[data-unit="5"] .hero {
  background-image: linear-gradient(135deg, rgba(36, 100, 20, 0.75), rgba(169, 247, 85, 0.62)),
    url("../img/unit-5/unit-5-landing.jpg");
}

.page[data-unit="5"] .unit-flag {
  background: rgba(36, 100, 20, 0.65);
  border-color: rgba(169, 247, 85, 0.65);
}

.page[data-unit="6"] {
  --accent: #f4a33f;
  --accent-soft: rgba(244, 63, 94, 0.2);
}

.page[data-unit="6"] .hero {
  background-image: linear-gradient(135deg, rgba(76, 36, 5, 0.75), rgba(244, 178, 63, 0.62)),
    url("../img/unit-6/unit-6-landing.jpg");
}

.page[data-unit="6"] .unit-flag {
  background: rgba(76, 36, 5, 0.65);
  border-color: rgba(244, 178, 63, 0.65);
}

