/* Abacus Journal: bead navigation, ruled layouts and specimen photography. */
:root {
  --journal-rule: #c8d3bc;
  --journal-green: #183f2f;
  --journal-bead: #c9dbab;
}
html { scroll-behavior: auto; }
.journal-intro {
  display: grid;
  grid-template-columns: 1.13fr 1fr;
  gap: 88px;
  align-items: center;
  padding: 18px 0 72px;
}
.journal-title h1 {
  font-size: clamp(60px, 5.7vw, 82px);
  line-height: .99;
  letter-spacing: -.052em;
  margin: 22px 0 28px;
}
.journal-title h1 em { display: inline-block; position: relative; }
.journal-title h1 em::after {
  content: '';
  position: absolute;
  height: 7px;
  background: #c9dbab;
  left: 1px;
  right: -20px;
  bottom: -6px;
  border-radius: 50%;
  transform: rotate(-3deg);
}
.journal-title > p:last-of-type { max-width: 500px; font-size: 17px; line-height: 1.8; margin-bottom: 22px; }
.journal-jump { display: inline-block; border-bottom: 1px solid var(--green); padding-bottom: 4px; color: var(--green); font-size: 15px; font-weight: 700; }
.topic-board {
  position: relative;
  color: var(--ivory);
  background: var(--journal-green);
  padding: 34px 32px 24px;
  border-radius: 95px 22px 22px 22px;
  box-shadow: 14px 15px 0 #e5eddb;
}
.board-heading { padding: 10px 6px 21px 14px; border-bottom: 1px solid #fcfaf53b; }
.board-heading .eyebrow { color: #d3e1bf; font-size: 13px; letter-spacing: .1em; margin: 0 0 16px; }
.board-heading h2 { font-size: 36px; line-height: 1.13; letter-spacing: -.025em; margin: 0; color: var(--ivory); }
.board-heading h2 em { color: #cee2b0 !important; }
.topic-filters { padding: 18px 0 10px; }
.topic-filters button {
  display: grid;
  grid-template-columns: 157px minmax(50px, 1fr) 29px;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 53px;
  border: 0;
  border-radius: 8px;
  padding: 8px 8px 8px 12px;
  background: transparent;
  color: var(--ivory);
  text-align: left;
  font-size: 14px;
}
.topic-filters button:hover { background: #ffffff0b; }
.topic-filters button[aria-pressed=true] { background: #ffffff0d; }
.topic-filters button:focus-visible { outline: 2px solid #deedb8; outline-offset: 3px; }
.topic-name { line-height: 1.45; }
.topic-total { font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; color: #d6e6c3; }
.topic-rod { display: block; position: relative; height: 28px; }
.topic-rod::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #fcfaf55c; }
.topic-bead { display: block; position: absolute; top: 2px; left: 5px; width: 33px; height: 24px; border-radius: 46%; background: #c9dbab; border-bottom: 3px solid #9bb778; box-shadow: inset 0 2px 0 #e4efcf; transition: left .3s ease; }
.topic-filters button:nth-child(2) .topic-bead { background: #e4edce; border-color: #becfa1; }
.topic-filters button:nth-child(3) .topic-bead { background: #c4e0ee; border-color: #91b9cc; }
.topic-filters button:nth-child(4) .topic-bead { background: #f2df98; border-color: #cfbc76; }
.topic-filters button:nth-child(5) .topic-bead { background: #c2d8ad; border-color: #91ac78; }
.topic-filters button[aria-pressed=true] .topic-bead { left: calc(100% - 35px); }
.board-help { margin: 8px 0 0; font-size: 13px; text-align: center; color: #d3dfc9; }
.featured-post {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  position: relative;
  gap: 60px;
  padding: 52px 0 56px;
  margin-bottom: 0;
  border-top: 1px solid var(--journal-rule);
  border-bottom: 1px solid var(--journal-rule);
}
.featured-post::before, .browse-posts::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  width: 13px;
  height: 11px;
  background: var(--green);
  border-radius: 50%;
}
.featured-copy { padding: 12px 0; }
.featured-copy .eyebrow { margin-bottom: 24px; font-size: 14px; }
.featured-copy h2 { font-size: clamp(39px, 3.6vw, 51px); line-height: 1.1; letter-spacing: -.04em; margin: 0 0 24px; }
.featured-copy h3 { font-family: Manrope, sans-serif; font-size: 17px; color: var(--green); margin-bottom: 12px; }
.featured-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.8; max-width: 460px; margin-bottom: 26px; }
.feature-end { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 26px; }
.read-link { display: inline-block; border-bottom: 1px solid var(--green); font-size: 15px; font-weight: 700; color: var(--green); padding-bottom: 3px; }
.post-date { font-size: 14px; line-height: 1.5; color: #5c6958; margin: 0; }
.featured-study { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 18px; padding: 0 4px 0 0; }
.abacus-specimen { margin: 0; min-width: 0; }
.abacus-specimen img { display: block; width: 100%; aspect-ratio: .83; height: auto; object-fit: cover; border-radius: 100px 100px 12px 12px; background: #ebeee8; }
.specimen-chinese img { object-position: 48% 50%; }
.specimen-japanese { padding-top: 45px; }
.specimen-japanese img { object-position: 50% 50%; border-radius: 12px 12px 100px 100px; }
.abacus-specimen figcaption { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; font-size: 14px; line-height: 1.5; }
.abacus-specimen figcaption span:first-child { font-weight: 700; color: var(--green); }
.abacus-specimen figcaption span:last-child { color: #64705c; }
.browse-posts { position: relative; padding: 58px 0 66px; }
.browse-posts::before { display: none; }
.browse-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 24px; }
.browse-heading h2 { font-size: 45px; line-height: 1.1; margin: 0; }
.blog-search { width: 345px; max-width: 100%; }
.blog-search label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--green); }
.blog-search > div { display: flex; border-bottom: 1px solid #8ea17c; padding: 0 0 6px; }
.blog-search input { font-size: 16px; min-width: 0; flex: 1; padding: 11px 8px 11px 0; border: 0; background: transparent; color: var(--ink); }
.blog-search button { border: 1px solid var(--green); background: var(--green); color: var(--ivory); padding: 10px 19px; border-radius: 24px; font-size: 14px; }
.results-count { margin: 26px 0 30px; padding-top: 20px; border-top: 1px solid var(--journal-rule); font-size: 14px; color: #5c6958; }
.posts-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 40px 30px; }
.post-card { display: flex; flex-direction: column; position: relative; min-width: 0; grid-column: span 2; border-bottom: 1px solid var(--journal-rule); padding-bottom: 25px; }
.post-card[hidden] { display: none !important; }
.post-card.is-lead { grid-column: span 4; }
.post-image { display: block; overflow: hidden; border-radius: 15px; aspect-ratio: 1.65; background: var(--sage); }
.post-card.is-lead .post-image { border-radius: 90px 16px 16px 16px; aspect-ratio: 2.5; }
.post-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .post-image img { transform: scale(1.025); }
.post-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding-top: 19px; }
.post-copy .eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 13px; letter-spacing: .05em; }
.post-copy .eyebrow::before { content: ''; width: 15px; height: 11px; border-radius: 50%; background: #c9dbab; }
.post-card[data-topic='Mental maths'] .eyebrow::before { background: #b9d9e7; }
.post-card[data-topic='Parent guides'] .eyebrow::before { background: #e6d28c; }
.post-card[data-topic='Teaching & business'] .eyebrow::before { background: #9ab985; }
.post-copy h3 { font: 28px/1.18 'DM Serif Display', Georgia, serif; letter-spacing: -.025em; color: var(--green); margin: 0 0 14px; }
.post-card.is-lead h3 { font-size: 36px; max-width: 670px; }
.post-copy h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.post-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; line-height: 1.75; margin-bottom: 20px; }
.post-copy .post-date { margin-top: auto; padding-top: 4px; }
.post-pagination { position: static; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 9px; margin: 40px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.post-pagination[hidden] { display: none; }
.post-pagination button { min-height: 44px; min-width: 44px; border: 1px solid #bac8ae; border-radius: 50%; background: transparent; color: var(--green); font-size: 14px; }
.post-pagination button[aria-current=page] { background: var(--green); color: var(--ivory); }
.post-pagination button:first-child, .post-pagination button:last-child { padding: 0 18px; border-radius: 30px; }
.post-pagination button:disabled { opacity: .45; cursor: default; }
.empty-results { padding: 40px 0; text-align: center; }
.empty-results[hidden] { display: none; }
.empty-results button { border: 1px solid var(--green); background: transparent; color: var(--green); border-radius: 25px; padding: 12px 20px; }
.article-cta { position: relative; overflow: hidden; background-color: var(--sky); background-image: linear-gradient(#123f2b05 1px, transparent 1px), linear-gradient(90deg,#123f2b05 1px,transparent 1px); background-size: 28px 28px; }
.article-cta::after { content: ''; position: absolute; width: 105px; height: 75px; border-radius: 50%; right: 38%; bottom: -40px; background: #c9dbab; transform: rotate(-20deg); pointer-events: none; }
@media (max-width: 1100px) {
  .journal-intro { gap: 42px; grid-template-columns: 1fr 1fr; }
  .journal-title h1 { font-size: 65px; }
  .topic-board { padding: 28px 22px 22px; }
  .topic-filters button { grid-template-columns: 140px minmax(35px,1fr) 25px; gap: 10px; font-size: 13px; }
  .featured-post { gap: 35px; }
  .posts-grid { gap: 35px 24px; }
}
@media (max-width: 850px) and (min-width: 701px) {
  .journal-intro { grid-template-columns: 1fr; gap: 35px; }
  .journal-title h1 { font-size: 70px; }
  .journal-title h1 br:first-child { display: none; }
  .topic-board { max-width: 600px; width: 100%; }
  .topic-filters button { grid-template-columns: 180px minmax(50px,1fr) 32px; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-study { max-width: 600px; }
  .post-card,.post-card.is-lead { grid-column: span 3; }
  .post-card.is-lead .post-image { aspect-ratio: 1.65; }
  .post-card.is-lead h3 { font-size: 28px; }
}
@media (max-width: 700px) {
  .journal-intro { grid-template-columns: 1fr; gap: 32px; padding: 12px 0 45px; }
  .journal-title h1 { font-size: 58px; margin: 20px 0 25px; line-height: 1.02; }
  .journal-title > p:last-of-type { font-size: 16px; line-height: 1.75; }
  .topic-board { padding: 24px 18px 20px; border-radius: 70px 18px 18px 18px; box-shadow: 7px 9px 0 #e5eddb; }
  .board-heading { padding: 8px 4px 18px 10px; }
  .board-heading h2 { font-size: 31px; }
  .board-heading .eyebrow { font-size: 12px; }
  .topic-filters button { grid-template-columns: 143px minmax(34px,1fr) 25px; gap: 9px; padding-left: 6px; font-size: 13px; }
  .topic-bead { width: 28px; height: 22px; top: 3px; }
  .topic-filters button[aria-pressed=true] .topic-bead { left: calc(100% - 29px); }
  .topic-total,.board-help { font-size: 13px; }
  .featured-post { grid-template-columns: 1fr; padding: 34px 0; gap: 24px; }
  .featured-copy { padding: 0; }
  .featured-copy h2 { font-size: 40px; }
  .featured-copy .eyebrow { font-size: 13px; margin-bottom: 20px; }
  .featured-copy > p:not(.eyebrow) { margin-bottom: 20px; }
  .featured-study { gap: 14px; }
  .specimen-japanese { padding-top: 28px; }
  .abacus-specimen img { border-radius: 70px 70px 10px 10px; }
  .specimen-japanese img { border-radius: 10px 10px 70px 70px; }
  .abacus-specimen figcaption { font-size: 13px; }
  .browse-posts { padding: 38px 0 42px; }
  .browse-heading { display: block; }
  .browse-heading h2 { font-size: 36px; }
  .blog-search { margin-top: 24px; width: 100%; }
  .results-count { margin: 24px 0; }
  .posts-grid { grid-template-columns: 1fr; gap: 30px; }
  .post-card,.post-card.is-lead { grid-column: auto; }
  .post-card.is-lead .post-image { aspect-ratio: 1.65; border-radius: 65px 14px 14px 14px; }
  .post-card.is-lead h3,.post-copy h3 { font-size: 28px; }
  .post-copy .eyebrow { font-size: 13px; }
  .post-pagination { gap: 7px; }
  .post-pagination button { min-width: 40px; }
  .post-pagination button:first-child,.post-pagination button:last-child { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .topic-bead,.post-image img { transition: none; }
  .post-card:hover .post-image img { transform: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Author bylines use neutral silhouettes until portrait photographs are supplied. */
.post-author {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 14px;
  line-height: 1.5;
}
.post-copy .post-author { margin-top: auto; padding-top: 8px; }
.author-avatar {
  position: relative;
  display: inline-block;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 50%;
  background: #e3e6e0;
  border: 1px solid #d4d9cf;
}
.author-avatar::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  left: 11px;
  top: 6px;
  background: #a9b2a4;
}
.author-avatar::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 17px;
  border-radius: 50% 50% 0 0;
  left: 5px;
  top: 19px;
  background: #a9b2a4;
}
.post-excerpt { display: block; overflow: visible; }
.featured-copy h2 { font-size: clamp(35px, 3.1vw, 44px); }
.feature-end { gap: 20px 30px; }
.cta-buttons { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }
.article-cta .cta-buttons .btn { font-size: 14px; padding-inline: 20px; }
@media (max-width: 1000px) {
  .article-cta > .wrap { flex-direction: column; align-items: flex-start; }
  .cta-buttons { justify-content: flex-start; }
}
@media (max-width: 700px) {
  .featured-copy h2 { font-size: 35px; }
  .cta-buttons { flex-direction: column; align-items: stretch; }
}
/* Bring stories and topic discovery together in a more compact opening. */
.journal-intro { display: block; padding: 8px 0 30px; }
.journal-title { display: grid; grid-template-columns: 1.22fr 1fr; gap: 12px 64px; align-items: end; }
.journal-title > .eyebrow { grid-column: 1 / -1; margin: 0; }
.journal-title h1 { font-size: clamp(43px,4vw,58px); line-height: 1.04; margin: 0; letter-spacing: -.045em; }
.journal-title > p:last-of-type { font-size: 16px; line-height: 1.75; max-width: none; margin: 0; }
.journal-opening { display: grid; grid-template-columns: 1.7fr 1fr; gap: 26px; align-items: stretch; margin-bottom: 34px; }
.journal-opening .topic-board { padding: 24px 22px 20px; border-radius: 65px 20px 20px 20px; box-shadow: 7px 8px 0 #e5eddb; }
.journal-opening .board-heading { padding: 6px 2px 16px 10px; }
.journal-opening .board-heading .eyebrow { font-size: 12px; margin-bottom: 12px; }
.journal-opening .board-heading h2 { font-size: 30px; }
.journal-opening .topic-filters { padding: 12px 0 4px; }
.journal-opening .topic-filters button { grid-template-columns: 144px minmax(35px,1fr) 24px; gap: 9px; min-height: 47px; padding: 6px; font-size: 13px; }
.journal-opening .topic-bead { width: 29px; height: 22px; top: 3px; }
.journal-opening .topic-filters button[aria-pressed=true] .topic-bead { left: calc(100% - 30px); }
.journal-opening .board-help { font-size: 12px; margin-top: 8px; }
.journal-opening .featured-post { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; padding: 26px; border: 1px solid #d5dfd0; border-radius: 20px 65px 20px 20px; background: #f0f3e9; min-width: 0; }
.journal-opening .featured-post::before { display: none; }
.journal-opening .featured-copy { min-width: 0; padding: 0; }
.journal-opening .featured-copy .eyebrow { font-size: 12px; margin-bottom: 17px; letter-spacing: .06em; }
.journal-opening .featured-copy h2 { font-size: 33px; line-height: 1.1; margin-bottom: 16px; }
.journal-opening .featured-copy > p:not(.eyebrow) { font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.journal-opening .feature-end { display: flex; flex-direction: column; gap: 14px; }
.journal-opening .featured-study { height: 100%; gap: 11px; align-items: center; padding: 0; }
.journal-opening .abacus-specimen { display: flex; flex-direction: column; padding: 0; }
.journal-opening .abacus-specimen img { aspect-ratio: .64; border-radius: 70px 70px 12px 12px; }
.journal-opening .specimen-japanese { padding-top: 36px; }
.journal-opening .specimen-japanese img { border-radius: 12px 12px 70px 70px; }
.journal-opening .abacus-specimen figcaption { font-size: 12px; padding-top: 10px; gap: 3px; }
.browse-posts { padding: 26px 0 46px; }
.browse-heading { margin-bottom: 15px; align-items: center; }
.browse-heading .eyebrow { margin-bottom: 10px; font-size: 13px; }
.browse-heading h2 { font-size: 38px; }
.results-count { margin: 18px 0 24px; padding-top: 15px; }
.posts-grid { gap: 30px 26px; }
.post-card.is-lead, .post-card.is-secondary { grid-column: span 3; display: grid; grid-template-columns: .95fr 1.15fr; gap: 20px; align-items: start; }
.post-card.is-lead .post-image,.post-card.is-secondary .post-image { aspect-ratio: .95; border-radius: 45px 12px 12px 12px; }
.post-card.is-secondary .post-image { border-radius: 12px 12px 45px 12px; }
.post-card.is-lead .post-copy,.post-card.is-secondary .post-copy { height: 100%; padding-top: 2px; }
.post-card.is-lead h3,.post-card.is-secondary h3 { font-size: 27px; }
.post-card .post-excerpt { font-size: 15px; line-height: 1.7; margin-bottom: 16px; }
.post-copy .eyebrow { font-size: 12px; }
.post-copy h3 { font-size: 27px; }
@media(max-width:1150px) {
  .journal-title { gap: 12px 34px; }
  .journal-opening { grid-template-columns: 1.45fr 1fr; gap: 20px; }
  .journal-opening .featured-post { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .journal-opening .featured-study { display: none; }
  .journal-opening .feature-end { flex-direction: row; align-items: center; }
  .journal-opening .featured-copy h2 { font-size: 35px; }
  .journal-opening .topic-board { padding: 22px 18px; }
  .journal-opening .topic-filters button { grid-template-columns: 138px minmax(30px,1fr) 24px; gap: 7px; }
  .post-card.is-lead,.post-card.is-secondary { gap: 16px; grid-template-columns: 1fr; }
  .post-card.is-lead .post-image,.post-card.is-secondary .post-image { aspect-ratio: 1.9; }
}
@media(max-width:800px) {
  .journal-title { grid-template-columns: 1fr; gap: 14px; }
  .journal-title h1 { max-width: 600px; }
  .journal-title > p:last-of-type { max-width: 650px; }
  .journal-opening { grid-template-columns: 1fr 1fr; }
  .journal-opening .featured-copy h2 { font-size: 30px; }
  .journal-opening .topic-filters button { grid-template-columns: 126px minmax(24px,1fr) 22px; font-size: 12px; }
}
@media(max-width:700px) {
  .journal-intro { padding: 4px 0 24px; }
  .journal-title { gap: 14px; }
  .journal-title h1 { font-size: 43px; }
  .journal-title > p:last-of-type { font-size: 16px; line-height: 1.7; }
  .journal-opening { display: flex; flex-direction: column; gap: 24px; margin-bottom: 12px; }
  .journal-opening .topic-board { order: -1; padding: 22px 19px 20px; }
  .journal-opening .board-heading h2 { font-size: 29px; }
  .journal-opening .board-heading h2 br { display: none; }
  .journal-opening .topic-filters button { grid-template-columns: 142px minmax(30px,1fr) 24px; font-size: 13px; min-height: 44px; }
  .journal-opening .board-help { font-size: 12px; }
  .journal-opening .featured-post { display: grid; grid-template-columns: 1fr; padding: 22px; gap: 20px; border-radius: 18px 45px 18px 18px; }
  .journal-opening .featured-study { display: grid; order: -1; max-height: none; }
  .journal-opening .abacus-specimen img { aspect-ratio: 1.05; border-radius: 50px 50px 8px 8px; }
  .journal-opening .specimen-japanese img { border-radius: 8px 8px 50px 50px; }
  .journal-opening .specimen-japanese { padding-top: 20px; }
  .journal-opening .featured-copy h2 { font-size: 31px; }
  .journal-opening .featured-copy > p:not(.eyebrow) { font-size: 15px; }
  .journal-opening .feature-end { gap: 15px; }
  .browse-posts { padding-top: 24px; }
  .browse-heading { display: block; }
  .browse-heading h2 { font-size: 34px; }
  .blog-search { margin-top: 18px; }
  .posts-grid { gap: 26px; }
  .post-card.is-lead,.post-card.is-secondary { grid-column: auto; display: flex; gap: 0; }
  .post-card.is-lead .post-copy,.post-card.is-secondary .post-copy { padding-top: 18px; }
  .post-card.is-lead .post-image,.post-card.is-secondary .post-image { aspect-ratio: 1.75; width: 100%; }
  .post-card.is-lead h3,.post-card.is-secondary h3,.post-copy h3 { font-size: 27px; }
}
.topic-label-mobile { display: none; }
@media (max-width: 700px) {
  .journal-opening .topic-board {
    order: 0;
    padding: 0;
    min-width: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    color: var(--green);
  }
  .journal-opening .board-heading,
  .journal-opening .board-help,
  .journal-opening .topic-rod { display: none; }
  .journal-opening .topic-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 4px 1px 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #a7bb91 transparent;
    -webkit-overflow-scrolling: touch;
  }
  .journal-opening .topic-filters button {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    min-height: 44px;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    border: 1px solid #b7c8a7;
    border-radius: 28px;
    background: transparent;
    color: var(--green);
    font-size: 14px;
    white-space: nowrap;
  }
  .journal-opening .topic-filters button[aria-pressed=true] {
    background: var(--green);
    border-color: var(--green);
    color: var(--ivory);
  }
  .journal-opening .topic-filters button:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: -4px;
  }
  .journal-opening .topic-total { color: inherit; font-size: 14px; }
  .topic-label-desktop { display: none; }
  .topic-label-mobile { display: inline; }
}
/* Abacus-inspired homepage effects, played once and disabled for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .topic-board.journal-revealed .topic-bead { animation: journal-bead-arrive 600ms ease-out both; }
  .topic-board.journal-revealed button:nth-child(2) .topic-bead { animation-delay: 70ms; }
  .topic-board.journal-revealed button:nth-child(3) .topic-bead { animation-delay: 140ms; }
  .topic-board.journal-revealed button:nth-child(4) .topic-bead { animation-delay: 210ms; }
  .topic-board.journal-revealed button:nth-child(5) .topic-bead { animation-delay: 280ms; }
  .featured-post.journal-revealed .featured-study img { animation: journal-image-arrive 550ms ease-out both; }
  .post-card.journal-revealed .post-image img { animation: journal-image-arrive 450ms ease-out both; }
}
@keyframes journal-bead-arrive { from { opacity: .5; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
@keyframes journal-image-arrive { from { opacity: .7; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .topic-bead,.featured-study img,.post-image img { animation: none !important; transition: none !important; }
}

