/* ========================================================================
   Publication artefact explorer
   Shared by /publications/ and /speaking/. Styles for the "Explore findings"
   control and for the modal that presents an artefact. The artefact data is
   defined inline on each page as window.PUB_ARTEFACTS and the behaviour is in
   /js/artefacts.js.
   ======================================================================== */

.pub-explore {
  display: none; align-items: center; gap: 0.45rem;
  background: var(--teal); color: #fff; border: none;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  padding: 0.45rem 0.95rem; border-radius: var(--radius); cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.js .pub-explore { display: inline-flex; }
.pub-explore:hover { background: var(--teal-hover); transform: translateY(-1px); }
/* Text-link variant for use inside running text, such as the past-event rows on
   the speaking page, so the control matches the page's other inline links. */
.pub-explore.pub-explore--link {
  background: none; color: var(--teal); padding: 0; border-radius: 0;
  font-size: inherit; font-weight: 500;
}
.js .pub-explore.pub-explore--link { display: inline; }
.pub-explore.pub-explore--link:hover { background: none; transform: none; color: var(--teal-hover); text-decoration: underline; }

.art-modal {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: flex-start; justify-content: center;
  background: rgba(26,39,68,0.55); padding: 2.5rem 1rem; overflow-y: auto;
}
.art-modal.open { display: flex; }
body.art-open { overflow: hidden; }
.art-dialog {
  background: var(--warm-bg); width: 100%; max-width: 820px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden; position: relative; margin: auto;
}
.art-head { background: var(--navy); color: #fff; padding: 1.75rem 2rem 1.5rem; position: relative; }
.art-kicker { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); font-weight: 700; }
.art-head h2 { color: #fff; font-size: 1.5rem; margin: 0.45rem 3rem 0.5rem 0; line-height: 1.22; }
.art-sub { font-size: 0.85rem; color: rgba(255,255,255,0.78); }
.art-close {
  position: absolute; top: 1.1rem; right: 1.1rem; width: 38px; height: 38px;
  border-radius: 50%; border: none; background: rgba(255,255,255,0.14); color: #fff;
  font-size: 1.15rem; cursor: pointer; line-height: 1;
}
.art-close:hover { background: rgba(255,255,255,0.28); }
.art-body { padding: 1.75rem 2rem 2rem; }
.art-thesis { font-size: 1.02rem; line-height: 1.65; color: var(--text); margin-bottom: 1rem; }
.art-quote {
  border-left: 3px solid var(--gold); background: var(--gold-light);
  padding: 1rem 1.25rem; font-style: italic; color: var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; font-size: 0.95rem; line-height: 1.6;
}
.art-section-title { font-family: var(--font-heading); font-size: 1.15rem; color: var(--navy); margin: 2rem 0 1rem; }
.art-update { margin: 2.25rem 0 1.1rem; padding-top: 1.35rem; border-top: 2px solid var(--teal); }
.art-update--paper { border-top-color: var(--border); }
.art-update-tag { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); background: var(--teal-light); padding: 0.22rem 0.6rem; border-radius: 4px; }
.art-update--paper .art-update-tag { color: var(--text-light); background: var(--section-alt); }
.art-update h3 { font-family: var(--font-heading); font-size: 1.35rem; color: var(--navy); margin: 0.5rem 0 0.2rem; }
.art-update p { color: var(--text-light); font-size: 0.92rem; margin: 0.15rem 0 0; }
.art-finding { margin-bottom: 1.1rem; }
.art-finding h4 { font-size: 0.97rem; color: var(--navy); margin-bottom: 0.25rem; }
.art-finding p { font-size: 0.9rem; line-height: 1.6; color: var(--text); }
.art-chart-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin: 1.25rem 0; }
.art-chart-title { font-size: 0.92rem; font-weight: 700; color: var(--navy); margin-bottom: 0.85rem; }
.art-chart-wrap canvas { display: block; width: 100%; }
.art-chart-caption { font-size: 0.78rem; color: var(--text-light); margin-top: 0.85rem; line-height: 1.5; }
.art-table-scroll { overflow-x: auto; }
.art-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.art-table th, .art-table td { text-align: left; padding: 0.5rem 0.65rem; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.art-table th { font-size: 0.71rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-light); white-space: nowrap; }
.art-table td.num, .art-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.art-table a { color: var(--teal); font-weight: 600; text-decoration: none; }
.art-stat-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 1.25rem 0; }
.art-stat { flex: 1; min-width: 120px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 0.85rem; text-align: center; }
.art-stat .v { font-family: var(--font-heading); font-size: 1.55rem; font-weight: 700; color: var(--teal); line-height: 1.1; }
.art-stat .l { font-size: 0.73rem; color: var(--text-light); margin-top: 0.35rem; line-height: 1.35; }
.art-cite { font-size: 0.8rem; color: var(--text-light); border-top: 1px solid var(--border); padding-top: 1.25rem; margin-top: 1.75rem; line-height: 1.6; }
.art-related-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-light); font-weight: 700; margin: 1.5rem 0 0.6rem; }
.art-related { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.art-related a { font-size: 0.8rem; font-weight: 600; color: var(--teal); border: 1px solid var(--border); border-radius: 999px; padding: 0.32rem 0.85rem; text-decoration: none; }
.art-related a:hover { border-color: var(--teal); background: var(--teal-light); }
@media (max-width: 640px) {
  .art-modal { padding: 0; }
  .art-dialog { border-radius: 0; min-height: 100vh; max-width: none; }
  .art-head { padding: 1.5rem 1.25rem 1.25rem; }
  .art-head h2 { font-size: 1.25rem; margin-right: 2.5rem; }
  .art-body { padding: 1.5rem 1rem; }
  .art-chart-wrap { padding: 0.9rem; }
}
