/* ============================================================
   Contribution page — TAU-Israel iGEM 2026 wiki
   ------------------------------------------------------------
   Loaded only by wiki/pages/contribution.html (extra_head).
   Builds on style.css tokens, and deliberately speaks the same
   visual language as entrepreneurship.css: thin ink-3 borders,
   small radii, flat — no sticker shadows except where the site
   already uses them (the contribution cards, which are links and
   want the lift to read as clickable).
   ============================================================ */

/* ------------------------------------------------------------
   Placeholders — dashed "[…]" slots waiting for content
   ------------------------------------------------------------ */
.con-todo {
  display: inline;
  padding: 0 0.3em;
  border: 1px dashed var(--ink-3);
  border-radius: 2px;
  background: var(--paper-sink);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.8em;
  font-style: normal;
  font-weight: 400;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.con-todo--block {
  display: block;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* Placeholders inside the dark table header row */
.table thead .con-todo {
  background: transparent;
  color: var(--paper-edge);
  border-color: var(--ink-3);
}

/* "input from: …" line inside a WIP callout */
.con-src {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--rna-amber-deep);
  opacity: 0.8;
}

.con-src::before { content: "↳ "; }

.con-figure { margin: 1.25rem 0; }

.con-figure img {
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-sm);
}

.con-figure figcaption {
  font-size: 0.8125rem;
  color: var(--ink-2);
  margin-top: 0.5rem;
}

.con-ph {
  aspect-ratio: var(--ar, 16 / 9);
  max-height: 420px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(26, 26, 26, 0.035) 14px 28px),
    var(--paper-sink);
  border: 1px dashed var(--ink-3);
  border-radius: var(--radius-sm);
}

.con-ph__label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-3);
}

/* ------------------------------------------------------------
   Shared bits
   ------------------------------------------------------------ */
#wikiMain h3 { margin-top: 2.5rem; }

.con-subhead {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 1.75rem 0 0.75rem;
}

/* Subject line under a section heading, where the title itself is still
   provisional. */
.con-subject {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink-2);
  margin: -0.25rem 0 1rem;
}



.con-list {
  padding-left: 1.1rem;
  margin: 0 0 1rem;
}

.con-list li { margin-bottom: 0.4rem; }

.con-refs {
  padding-left: 1.4rem;
  font-size: 0.875rem;
  color: var(--ink-2);
}

.con-refs li { margin-bottom: 0.5rem; }

/* ------------------------------------------------------------
   Opening cards — one per contribution, each a jump link
   ------------------------------------------------------------ */
.con-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.1rem;
  margin: 1.75rem 0 0.5rem;
}

.con-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem 1rem;
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sticker-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.con-card:hover,
.con-card:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-sticker);
  text-decoration: none;
  color: inherit;
}

.con-card__kind {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.con-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.con-card__line {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-2);
  flex: 1 1 auto;
}

/* Status is a statement of fact about an unfinished page — it should
   look provisional, and it goes away when the section is written. */
.con-card__status {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-3);
  padding-top: 0.5rem;
  border-top: 1px dashed var(--paper-edge);
}

/* ------------------------------------------------------------
   Fact list — "Format: PDF", "License: CC-BY-4.0"
   ------------------------------------------------------------ */
.con-facts {
  margin: 1.25rem 0;
  border-top: 1px solid var(--paper-edge);
}

.con-facts__row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 22%) 1fr;
  gap: 0 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--paper-edge);
}

.con-facts dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
  padding-top: 0.1rem;
}

.con-facts dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
  .con-facts__row { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ------------------------------------------------------------
   "For the next team" — the block that makes the medal case.
   Given the accent border so it reads as the point of each
   section rather than an aside.
   ------------------------------------------------------------ */
.con-useit {
  margin: 2rem 0 0.5rem;
  padding: 1.1rem 1.25rem 1.25rem;
  background: var(--paper-sink);
  border: 1px solid var(--ink);
  border-left: var(--border-w-bold) solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.con-useit__tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.con-useit__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  margin: 0;
}

@media (max-width: 575.98px) {
  .con-useit__grid {
    grid-template-columns: 1fr;
  }
}

.con-useit__grid dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--ink-3);
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.con-useit__grid dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink);
}

/* ------------------------------------------------------------
   Parts table
   ------------------------------------------------------------ */
.con-parts { font-size: 0.9375rem; }

.con-parts code {
  font-size: 0.875em;
  white-space: nowrap;
}

.con-parts__sub {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-3);
}

/* ------------------------------------------------------------
   Guide summary — the two ways in, and the list of its parts
   ------------------------------------------------------------ */
.con-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 0.5rem;
}

.con-parts-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  border-top: 1px solid var(--paper-edge);
}

.con-parts-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--paper-edge);
}

.con-parts-list a {
  display: block;
  text-decoration: none;
}

.con-parts-list__n {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.con-parts-list__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.con-parts-list a:hover .con-parts-list__title,
.con-parts-list a:focus-visible .con-parts-list__title {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.con-parts-list p {
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
  max-width: 68ch;
}


/* ------------------------------------------------------------
   References — entries carry their own "[n]" label
   ------------------------------------------------------------ */
.con-refs { list-style: none; padding-left: 0; }

/* Links inside the judging answer, as on Entrepreneurship. */
.judging__a a.con-alink {
  font-weight: 700;
  font-style: italic;
}

/* ------------------------------------------------------------
   Click-to-enlarge photos (static/lightbox.js, opt-in .js-zoomable)
   Neutral ink and white only; no accent colour.
   ------------------------------------------------------------ */
.js-zoomable {
  cursor: zoom-in;
  position: relative;
}

.js-zoomable:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.lb-modal .modal-dialog.lb-dialog {
  width: fit-content;
  max-width: calc(100vw - 2rem);
}

.lb-modal .lb-content {
  position: relative;
  align-items: center;
  background: transparent;
  border: 0;
}

.lb-img {
  display: block;
  width: auto;
  height: auto;
  max-height: calc(100vh - 8rem);
  border-radius: var(--radius-md);
  background: var(--card);
}

.lb-caption {
  margin: 0.75rem 0 0;
  max-width: 60ch;
  text-align: center;
  font-size: 0.9rem;
  color: var(--card);
}

.lb-caption--hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.lb-close {
  position: absolute;
  top: -2.25rem;
  right: 0;
}

/* Zoom hint on hover/focus: a small magnifier badge in ink and white. */
figure:has(> .js-zoomable) {
  position: relative;
}

figure:has(> .js-zoomable)::after {
  content: "Click to enlarge";
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--card);
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

figure:has(> .js-zoomable:hover)::after,
figure:has(> .js-zoomable:focus-visible)::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  figure:has(> .js-zoomable)::after {
    transition: none;
  }
  .lb-modal.fade .modal-dialog,
  .lb-modal.fade {
    transition: none;
  }
}

/* RNA Vizualizer figures carry their caption inside the <figure>, so the
   enlarge badge sits at the top of the image instead of over the caption. */
.con-figure:has(> .js-zoomable)::after {
  top: 0.75rem;
  bottom: auto;
}
