/* ! rs-atom-history.css v1.0 (30 Nov 2026, proposed shared file) · the history-of-the-atom timeline (rs-atom-history.js)
   The timeline rules of the GCSE Atomic history page's <style>, moved from the page wrapper (#rsAtomicHistory) to the
   timeline card (#rsAhTimeline), so they keep the same strength. Unchanged apart from the selector and the caption rule. */

#rsAhTimeline, #rsAhTimeline *, #rsAhTimeline *::before, #rsAhTimeline *::after {
  box-sizing: border-box;
}

#rsAhTimeline {
  color: var(--rs-ink);
  line-height: 1.65;
}

#rsAhTimeline .rs-ah-controls {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px;
}

#rsAhTimeline .rs-ah-timeline {
  margin: 0 0 30px;
}

#rsAhTimeline .rs-ah-entry {
  position: relative;
  padding: 0 0 22px 30px;
  border-left: 4px solid #e6e6e6;
}

#rsAhTimeline .rs-ah-entry:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

#rsAhTimeline .rs-ah-marker {
  position: absolute;
  top: 14px;
  left: -14px;
  width: 24px;
  height: 24px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--rs-chem);
  box-shadow: 0 0 0 2px var(--rs-chem);
}

#rsAhTimeline .rs-ah-entry--early .rs-ah-marker {
  background: var(--rs-navy);
  box-shadow: 0 0 0 2px var(--rs-navy);
}

#rsAhTimeline .rs-ah-entry--modern .rs-ah-marker {
  background: #5ba4cf;
  box-shadow: 0 0 0 2px #5ba4cf;
}

#rsAhTimeline .rs-ah-card {
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

#rsAhTimeline .rs-ah-card > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  background: #fff;
}

#rsAhTimeline .rs-ah-card > summary::-webkit-details-marker {
  display: none;
}

#rsAhTimeline .rs-ah-card > summary:hover {
  background: #fafbfd;
}

#rsAhTimeline .rs-ah-card > summary:focus-visible {
  outline: 3px solid rgba(57, 67, 98, 0.23);
  outline-offset: -3px;
}

#rsAhTimeline .rs-ah-card > summary::after {
  content: '+';
  margin-left: auto;
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f5f6fb;
  color: var(--rs-navy);
  font-weight: 900;
}

#rsAhTimeline .rs-ah-card[open] > summary::after {
  content: '−';
}

#rsAhTimeline .rs-ah-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

#rsAhTimeline .rs-ah-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--rs-ink);
}

#rsAhTimeline .rs-ah-date {
  padding: 1px 10px;
  border-radius: 999px;
  background: #fff3ef;
  color: var(--rs-chem);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

#rsAhTimeline .rs-ah-entry--early .rs-ah-date {
  background: #eef0f6;
  color: var(--rs-navy);
}

#rsAhTimeline .rs-ah-entry--modern .rs-ah-date {
  background: #f2f9fd;
  color: #2f6f96;
}

#rsAhTimeline .rs-ah-tag {
  padding: 1px 9px;
  border: 1px solid #d8dbe3;
  border-radius: 999px;
  background: #fff;
  color: #6a6f7d;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

#rsAhTimeline .rs-ah-tag--key {
  border-color: #2f8f4e;
  background: #eaf7ee;
  color: #207c3f;
}

#rsAhTimeline .rs-ah-tag.rs-hidden {
  display: none;
}

#rsAhTimeline .rs-tag-beyond.rs-hidden {
  display: none;
}

#rsAhTimeline .rs-ah-card:has( > summary .rs-tag-beyond:not(.rs-hidden)) {
  border: 2px dashed var(--rs-slate, #64748b);
}

#rsAhTimeline .rs-ah-model {
  display: block;
  font-size: 0.92rem;
  color: #6a6f7d;
}

#rsAhTimeline .rs-ah-body {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 4px 16px 16px;
  border-top: 1px solid #f0f0f3;
}

#rsAhTimeline .rs-ah-text {
  flex: 1 1 auto;
  min-width: 0;
}

#rsAhTimeline .rs-ah-visual {
  flex: 0 0 130px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  background: #f5f6fb;
  text-align: center;
}

#rsAhTimeline .rs-ah-visual svg {
  display: block;
  margin: 0 auto;
}

#rsAhTimeline .rs-ah-visual span {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--rs-navy);
}

#rsAhTimeline .rs-ah-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

#rsAhTimeline .rs-ah-detail {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f5f6fb;
  font-size: 0.95rem;
  line-height: 1.55;
}

#rsAhTimeline .rs-ah-detail--wide {
  grid-column: 1 / -1;
}

#rsAhTimeline .rs-ah-label {
  display: block;
  margin-bottom: 2px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rs-chem);
}

#rsAhTimeline .rs-ah-detail--extra {
  background: #fff;
  border: 1px dashed #d0d4e0;
}

#rsAhTimeline .rs-ah-detail--extra .rs-ah-label {
  color: #6a6f7d;
}

#rsAhTimeline .rs-ah-fun {
  margin-top: 12px;
  border: 1px dashed #d0d4e0;
  border-radius: 10px;
}

#rsAhTimeline .rs-ah-fun > summary {
  padding: 7px 12px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--rs-navy);
  cursor: pointer;
}

#rsAhTimeline .rs-ah-fun > div {
  padding: 0 12px 10px;
  font-size: 0.94rem;
}

#rsAhTimeline .rs-ah-quarks {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 10px;
}

#rsAhTimeline .rs-ah-quarks div {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
}

#rsAhTimeline .rs-ah-q-p {
  color: var(--rs-chem);
}

#rsAhTimeline .rs-ah-q-n {
  color: #2c6d94;
}

#rsAhTimeline .rs-ah-controls {
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#rsAhTimeline [data-howto-head] {
  display: inline-flex;
}

#rsAhTimeline {
  margin: 0 0 30px;
}

#rsAhTimeline .rs-ah-timeline {
  margin: 0;
}

#rsAhTimeline .rs-ah-label .rs-tag-beyond {
  margin-left: 4px;
  text-transform: none;
  letter-spacing: 0;
  vertical-align: 1px;
}

#rsAhTimeline .rs-ah-detail:has(.rs-tag-beyond) {
  background: #fff;
  border: 2px dashed var(--rs-slate, #64748b);
}

#rsAhTimeline .rs-ah-detail:has(.rs-tag-beyond) .rs-ah-label {
  color: #6a6f7d;
}

@media (max-width: 640px) {
  #rsAhTimeline .rs-ah-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  #rsAhTimeline .rs-ah-body {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  #rsAhTimeline .rs-ah-visual {
    align-self: center;
  }
}

@media (max-width: 640px) {
  #rsAhTimeline .rs-ah-entry {
    padding-left: 22px;
  }
}

#rsAhTimeline .rs-ah-p {
  margin: 0;
}

#rsAhTimeline .rs-ah-date, #rsAhTimeline .rs-ah-tag--key, #rsAhTimeline [class*='rs-ah'] {
  --rs-chem: #a42d12;
}

/* shared fix (30 Nov): the controls row wraps, so "Expand all" stays on screen beside How it works at 390 px and
   below (it ran 8 px off a 390 px screen and 78 px off a 320 px one, on the GCSE page too) */

#rsAhTimeline .rs-ah-controls {
  flex-wrap: wrap;
}

/* shared fix (30 Nov): the standard particle scale caption under the timeline */

#rsAhTimeline .rs-ah-cap {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--rs-muted, #696e7f);
  line-height: 1.45;
}

