/* Accessible Report Mode — paper document styles (layered over styles.css) */

html.accessible-document {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body.accessible-page {
  background: var(--paper);
  color: var(--paper-ink);
  height: auto;
  min-height: 100vh;
  overflow: visible;
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 8px 8px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

.page-header, .toc, main, .page-footer {
  max-width: 68rem;
  margin: 0 auto;
  padding:
    0
    max(1.4rem, env(safe-area-inset-right))
    0
    max(1.4rem, env(safe-area-inset-left));
}

.page-header { padding-top: 2.2rem; }
.page-header h1 { font-size: 1.9rem; margin: 0.2rem 0 0.6rem; }
.page-header h1 span { color: var(--singtel-red); }
.page-header .lede { max-width: 62ch; color: var(--paper-dim); }
.page-header a, .toc a { color: var(--singtel-red-dark); }
.accessible-cover {
  position: relative;
  min-height: clamp(180px, 29vw, 310px);
  overflow: hidden;
  margin: 1.25rem 0 1rem;
  border: 1px solid var(--paper-line);
  border-radius: 16px;
  background: #071521;
}
.accessible-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 14, 22, 0.25), transparent 48%);
}
.accessible-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 57%;
}

.toc {
  border: 1px solid var(--paper-line);
  border-radius: 12px;
  background: var(--paper-2);
  padding: 1rem 1.4rem;
  margin-top: 1.4rem;
}
.toc h2 { margin-top: 0; font-size: 1.1rem; }
.toc ul { margin: 0.2rem 0; }
.toc li { margin: 0.25rem 0; }

.island-section { margin-top: 2.6rem; }
.island-section > h2 {
  font-size: 1.5rem;
  border-bottom: 3px solid var(--singtel-red);
  display: inline-block;
  padding-bottom: 0.2rem;
}

.building-article {
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  margin: 1.2rem 0;
}
.building-article > h3 { font-size: 1.25rem; margin-top: 0; }

.inline-detail {
  border: 2px solid var(--singtel-red);
  border-radius: 12px;
  background: #fff;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
}

#codex-section, #glossary-section { margin-top: 3rem; }
#codex-section > h2, #glossary-section > h2 {
  font-size: 1.5rem;
  border-bottom: 3px solid var(--singtel-red);
  display: inline-block;
  padding-bottom: 0.2rem;
}

.page-footer {
  margin-top: 3rem;
  margin-bottom: max(3rem, calc(env(safe-area-inset-bottom) + 1.5rem));
  border-top: 1px dashed var(--paper-line);
  padding-top: 1rem;
  color: var(--paper-dim);
  font-size: 0.85rem;
  font-style: italic;
}
