/* TJP Direct Action static archive — shared design tokens + light global defaults */
@import url("./museum-tile.css");

:root {
  --museum-bg: #000000;
  --museum-surface: #000000;
  --museum-text: #e8eaed;
  --museum-muted: #9aa0a6;
  --museum-accent: #c9a227;
  --museum-border: #3d4450;
}

/* Museum pages: non-white default; same image path resolves from this CSS file in /public */
body {
  margin: 0;
  font-family: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--museum-text);
  background-color: var(--museum-bg);
  background-image: url("./images/UKS-Backround-Final.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: scroll;
}

/* Legacy body colors that must stay distinct from the default black + image treatment */
body[bgcolor="#009900"] {
  background-color: #009900;
  color: #000;
  background-image: none;
}
body[bgcolor="#006600"] {
  background-color: #006600;
  color: #000;
  background-image: none;
}
body[bgcolor="#FFFFCC"] {
  background-color: #ffffcc;
  color: #000;
}
body[bgcolor="#CCCCCC"] {
  background-color: #ccc;
  color: #000;
  background-image: none;
}

/* international_notice.htm, international_notice_home.htm — offset for fixed header / nav */
body.page-international-notice {
  padding-top: 80px !important;
}

/* Legacy pages often use tables for layout; keep them usable on small screens */
img,
video {
  max-width: 100%;
  height: auto;
}

table {
  max-width: 100%;
}

/* Horizontal row of legacy UN instrument badge images (human rights + related pages) */
.treaty-strip {
  margin: 0 auto 1.25rem;
  padding: 0 1rem;
  max-width: 1200px;
}

.treaty-strip__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  padding-inline-start: 0; /* remove default <ol> indent with markers hidden */
}

.treaty-strip__item {
  margin: 0;
  line-height: 0;
  flex: 0 0 auto;
}

.treaty-strip__img {
  display: block;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.treaty-strip__link {
  display: inline-block;
  line-height: 0;
  border-radius: 3px;
  transition: opacity 120ms ease, transform 120ms ease, box-shadow 120ms ease;
  text-decoration: none;
}

.treaty-strip__link:hover,
.treaty-strip__link:focus-visible {
  opacity: 0.85;
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px var(--museum-accent, #c9a227);
  outline: none;
}

/* The item that points to the current page is shown with a persistent accent
   ring so visitors can tell at a glance which instrument they're reading. */
.treaty-strip__item--current .treaty-strip__link {
  box-shadow: 0 0 0 2px var(--museum-accent, #c9a227);
}

.treaty-strip__item--current .treaty-strip__link:hover,
.treaty-strip__item--current .treaty-strip__link:focus-visible {
  transform: none;
}

/* Fallback styling reserved for any future strip item that doesn't yet have a
   destination page wired up. Add the --placeholder modifier to the <li> and
   drop the surrounding <a> to opt in. */
.treaty-strip__item--placeholder .treaty-strip__img {
  opacity: 0.6;
  filter: grayscale(35%);
  cursor: not-allowed;
}

/* Universal interactive link: legacy image buttons, text nav, image+caption blocks */
a.archive-museum-link {
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
  line-height: 1.4;
  transition: opacity 120ms ease, transform 120ms ease, box-shadow 120ms ease, color 120ms ease;
  outline: none;
}

a.archive-museum-link img {
  display: block;
}

a.archive-museum-link:hover,
a.archive-museum-link:focus-visible {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px var(--museum-accent, #c9a227);
}

/* Dutch home (dutch_home.htm) — one link per article when image exists */
.dutch-page {
  color: #fff;
  max-width: 48rem;
  margin-inline: auto;
  padding: 0 1rem 2rem;
  text-align: center;
}

.dutch-page__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
}

.dutch-page__banner {
  margin: 0.75rem 0;
}

.dutch-page__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.dutch-page__item {
  margin: 0;
  text-align: center;
}

a.dutch-page__article {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  padding: 0.4rem 0.6rem;
  margin: 0.2rem 0;
}

a.dutch-page__article .dutch-page__caption {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #5ee0e0;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
  max-width: 32rem;
}

a.dutch-page__text {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #5ee0e0;
  padding: 0.35rem 0.5rem;
  margin: 0.15rem 0;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
}

/* Dutch press pages — back control uses button7.png + history with dutch home fallback */
a.dutch-back-button {
  display: inline-block;
  line-height: 0;
  cursor: pointer;
}

/* Step 5 — inner content breathing room on mobile (iframe documents that load this file) */
@media (max-width: 768px) {
  body {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}
