
/* ==========================================
   BECKINGHAM — READING & STUDY
   Scripture collection and comparisons
   Generic study layout is excluded from .journal pages
   ========================================== */

/* 1. VARIABLES */

:root {
  --reading-inset: 26px;
  --reading-radius: 12px;
}

/* 2. GENERAL READING LAYOUT */

body.study-page h4 {
  display: flex;
  align-items: baseline;
}

body.study-page h4 a {
  text-decoration: none;
}

body.study-page h4 a:hover {
  text-decoration: underline;
}

body.study-page section {
  padding-top: 25px;
}

body.study-page section > h2 {
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

body.study-page section > p {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
}

body.study-page article {
  margin: 0;
  padding: 30px 0 36px;
  border-bottom: 1px solid #e2e5dc;
}

body.study-page article + article {
  margin-top: 16px;
}

body.study-page article h4 {
  margin-bottom: 22px;
}

body.study-page article:target {
  scroll-margin-top: 24px;
}

body.study-page article:target h4 > a:first-child {
  background: #e9f0e5;
  border-radius: 4px;
}

.reading-intro {
  font-size: 20px;
  line-height: 1.8;
}

.reading-guide {
  margin: 28px 0 32px;
}

.reading-guide h2 {
  margin-top: 0;
}

/* 3. CONTENT NAVIGATION */

body.study-page #contents {
  margin: 35px 0 60px;
  padding: 18px 30px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--reading-radius);
}

body.study-page #contents h2 {
  margin: 8px 0 14px;
  font: 600 15px var(--font-ui);
}

body.study-page #contents ol {
  columns: 2;
  column-gap: 40px;
  margin: 0;
  padding-left: 22px;
}

body.study-page #contents li {
  break-inside: avoid;
  padding: 5px 0;
  font: 15px/1.5 var(--font-ui);
}

body.study-page #contents a {
  text-decoration: none;
}

.back-top {
  display: inline-block;
  margin-top: 22px;
  color: var(--accent);
  font: 12px var(--font-ui);
  text-decoration: none;
}

.permalink {
  flex-shrink: 0;
  font: 14px var(--font-ui);
  opacity: .65;
  text-decoration: none;
}

.permalink:hover,
.permalink:focus {
  opacity: 1;
}

/* 4. NOTICES */

.private-notice {
  margin: 32px 0;
  padding: 22px 26px;
  background: var(--cream);
  border-radius: 12px;
  color: var(--muted);
  font: 14px/1.7 var(--font-ui);
}

.study-notice {
  margin-top: 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--reading-radius);
}

.study-notice summary {
  padding: 13px 17px;
  color: var(--accent);
  font: 600 14px/1.5 var(--font-ui);
  cursor: pointer;
}

.study-notice summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.study-notice .private-notice {
  margin: 0;
  padding: 0 17px 17px;
  background: none;
  border: 0;
  font-size: 13px;
}

.study-notice > p {
  margin: 0;
  padding: 0 17px 17px;
  color: var(--muted);
  font: 13px/1.7 var(--font-ui);
}

/* 5. SCRIPTURE COMPARISON */

.comparison {
  display: block;
}

/* World English Bible */

.webu {
  min-width: 0;
  padding: 24px var(--reading-inset);
  background: #fffdf7;
  border: 1px solid #e5e3d9;
  border-radius: var(--reading-radius);
  box-shadow: none;
}

.webu h5 {
  margin: 0 0 18px;
  color: #557669;
  font: 600 11px/1.6 var(--font-ui);
  letter-spacing: .1em;
}

.verse {
  margin: 12px 0;
  font-size: 19px;
  line-height: 1.85;
}

.webu .verse {
  margin: 15px 0;
  line-height: 1.86;
}

.webu .verse:first-of-type {
  margin-top: 0;
}

.webu .verse:last-child {
  margin-bottom: 0;
}

.webu .verse + .verse {
  margin-top: 19px;
}

.verse strong,
.webu .verse strong {
  color: #365e52;
  font-weight: 700;
}

/* Verse numbers */

body.study-page sup {
  color: var(--muted);
  font: 11px var(--font-ui);
  vertical-align: super;
}

.verse > sup,
.mirror-verse > sup.mirror-number {
  display: inline-block;
  min-width: 1.6em;
  margin-right: .6em;
  font: 600 11px/1.4 var(--font-ui);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  vertical-align: .12em;
  white-space: nowrap;
}

.verse > sup {
  color: #627b70;
}

.mirror-verse > sup.mirror-number {
  color: #58768d;
}

/* 6. MIRROR BIBLE COMPARISON */

.mirror-details {
  margin: 20px 0 0;
  background: var(--blue);
  border: 1px solid #d7e1e5;
  border-radius: var(--reading-radius);
  overflow: hidden;
  box-shadow: none;
}

.mirror-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 20px var(--reading-inset);

  color: #4b6677;
  font: 600 11px/1.6 var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}

.mirror-details summary::-webkit-details-marker {
  display: none;
}

.mirror-details summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
  opacity: .8;
}

.mirror-details[open] summary::after {
  content: "−";
}

.mirror-details summary:focus-visible {
  outline: 3px solid #7b9fbe;
  outline-offset: -3px;
}

.mirror-details summary .mirror-edition {
  margin-left: .15em;
  color: inherit;
  font: 700 10px/1 var(--font-ui);
  vertical-align: super;
}

.mirror {
  margin: 0;
  padding: 0 var(--reading-inset) 24px;
  background: transparent;
  border: 0;
}

.mirror h5 {
  margin-top: 8px;
}

.mirror-source {
  margin-bottom: 18px;
  color: var(--muted);
  font: 12px/1.6 var(--font-ui);
}

.mirror-verse {
  margin: 12px 0;
  font-size: 17px;
  line-height: 1.82;
  overflow-wrap: anywhere;
}

.mirror-verse:first-child {
  margin-top: 0;
}

.mirror-verse:last-child {
  margin-bottom: 0;
}

.mirror .mirror-verse + .mirror-verse {
  margin-top: 19px;
}

.mirror-verse em {
  color: #52677a;
  font-size: .94em;
}

.mirror-unavailable {
  margin: 18px 0 0;
  padding: 12px 16px;
  background: #f1f2ee;
  border: 1px solid #e1e5dc;
  border-radius: 9px;
  color: #68756c;
  font: 13px/1.65 var(--font-ui);
}

/* 7. STUDY NOTES AND INSIGHTS */

.note,
.category-focus {
  padding: 16px 20px;
  background: #f0f3ed;
  border: 1px solid #dce4d8;
  border-radius: 10px;
}

.note {
  margin-top: 20px;
  color: var(--muted);
  font: 14px/1.75 var(--font-ui);
}

.category-focus {
  margin: 18px 0 14px;
}

.focus-label {
  display: block;
  color: #416b5b;
  font: 700 12px/1.4 var(--font-ui);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.category-focus p {
  margin: 5px 0 0;
  color: #425249;
  font-size: 16px;
  line-height: 1.65;
}

.study-insight {
  display: grid;
  gap: .5rem;
  margin: 1rem 0 1.25rem;
}

.comparison + .study-insight {
  gap: 10px;
  margin: 18px 0 2px;
}

.study-point {
  margin: 0;
  padding: .7rem .9rem;
  border-left: 3px solid;
  border-radius: 0 6px 6px 0;
  font-size: .94rem;
  line-height: 1.55;
}

.study-point strong {
  font-weight: 700;
}

.study-caution {
  background: #fff8f3;
  border-color: #c8753f;
  color: #673b27;
}

.study-possibility {
  background: #f4faf4;
  border-color: #588568;
  color: #294c38;
}

/* 8. EXPANDABLE STUDY INSIGHTS */

.study-caution-details,
.study-possibility-details {
  margin: 0;
  border: 1px solid;
  border-radius: 10px;
  overflow: hidden;
}

.study-caution-details {
  background: #fff8f3;
  border-color: #f0dfd1;
  color: #754c34;
}

.study-possibility-details {
  background: #f4faf4;
  border-color: #d8e7d7;
  color: #345d44;
}

.study-caution-details summary,
.study-possibility-details summary {
  padding: 13px 17px;
  font: 600 14px/1.5 var(--font-ui);
  list-style: none;
  cursor: pointer;
}

.study-caution-details summary::-webkit-details-marker,
.study-possibility-details summary::-webkit-details-marker {
  display: none;
}

.study-caution-details summary::before,
.study-possibility-details summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 10px;
  font-size: 12px;
  transition: transform .15s;
}

.study-caution-details[open] summary::before,
.study-possibility-details[open] summary::before {
  transform: rotate(90deg);
}

.study-caution-details summary:hover {
  background: rgba(160, 100, 65, .07);
}

.study-possibility-details summary:hover {
  background: rgba(80, 130, 92, .075);
}

.study-caution-details summary:focus-visible {
  outline: 2px solid #c8753f;
  outline-offset: -2px;
}

.study-possibility-details summary:focus-visible {
  outline: 2px solid #588568;
  outline-offset: -2px;
}

.study-caution-details .study-caution,
.study-possibility-details .study-possibility {
  margin: 0;
  padding: 0 17px 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
}

/* 9. COMPARISON CONTROLS */

.comparison-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.comparison-actions button {
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #b9c9bf;
  border-radius: 8px;
  color: #315d51;
  font: 600 13px/1.4 var(--font-ui);
  cursor: pointer;
}

.comparison-actions button:hover {
  background: #eaf0e9;
}

/* 10. TRANSLATION CREDITS */

.mirror-edition-key {
  margin-top: 65px;
  padding: 20px 24px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--reading-radius);
  color: var(--ink);
  font: 14px/1.75 var(--font-ui);
}

.mirror-edition-key h2 {
  margin: 0 0 12px;
  font: 600 16px/1.4 var(--font-ui);
}

.mirror-edition-key p {
  margin: 8px 0;
}

/* 11. SCRIPTURE CATEGORIES */

body.study-page section[id^="cat"] {
  padding-top: 36px;
}

body.study-page section[id^="cat"] > h2 {
  margin: 50px 0 26px;
  padding-top: 32px;
  border-top: 2px solid #cbd7cc;
  color: #304d40;
  font-size: clamp(32px, 4.5vw, 45px);
  line-height: 1.18;
  letter-spacing: -.025em;
  text-wrap: balance;
}

body.study-page section[id^="cat"] > p {
  max-width: 74ch;
  margin: 0 0 24px;
  color: #637067;
  font-size: 17px;
  line-height: 1.8;
}

body.study-page section[id^="cat"] > h3 {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 44px 0 12px;
  color: #4f6c58;
  font: 600 13px/1.6 var(--font-ui);
  letter-spacing: .09em;
}

body.study-page section[id^="cat"] > h3::after {
  content: "";
  flex: 1 1 0;
  min-width: 24px;
  height: 1px;
  background: #dce2d8;
}

/* Category introductions */

body.study-page section[id^="cat"] > .category-focus {
  margin: 0 0 28px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.study-page section[id^="cat"] .focus-label {
  margin-bottom: 8px;
  color: #4f6c58;
  font: 600 12px/1.5 var(--font-ui);
  letter-spacing: .11em;
}

body.study-page section[id^="cat"] .category-focus p {
  max-width: 74ch;
  margin: 0;
  color: #68736b;
  font: 17px/1.8 var(--font-reading);
}

/* Articles within categories */

body.study-page section[id^="cat"] > article:last-of-type {
  padding-bottom: 12px;
  border-bottom: 0;
}

/* 12. MOBILE */

@media (max-width: 650px) {

  :root {
    --reading-inset: 18px;
  }

  body.study-page #contents {
    padding: 16px 22px;
  }

  body.study-page #contents ol {
    columns: 1;
  }

  body.study-page article {
    padding: 26px 0 30px;
  }

  body.study-page article + article {
    margin-top: 10px;
  }

  body.study-page article h4 {
    margin-bottom: 18px;
  }

  .verse {
    font-size: 18px;
  }

  .webu {
    padding: 20px var(--reading-inset);
  }

  .mirror-details > summary {
    padding: 18px var(--reading-inset);
  }

  .mirror {
    padding: 0 var(--reading-inset) 20px;
  }

  .mirror-verse {
    font-size: 16px;
  }

  .study-caution-details summary,
  .study-possibility-details summary {
    padding: 12px 14px;
  }

  .study-caution-details .study-caution,
  .study-possibility-details .study-possibility {
    padding: 0 14px 16px;
  }

  .category-focus,
  .note {
    padding: 14px 16px;
  }

  body.study-page section[id^="cat"] {
    padding-top: 24px;
  }

  body.study-page section[id^="cat"] > h2 {
    margin-top: 36px;
    margin-bottom: 22px;
    padding-top: 26px;
  }

  body.study-page section[id^="cat"] > h3 {
    gap: 12px;
    margin-top: 32px;
    font-size: 12px;
  }

  body.study-page section[id^="cat"] > p {
    font-size: 16px;
  }

  body.study-page section[id^="cat"] > .category-focus {
    margin-bottom: 24px;
  }

  body.study-page section[id^="cat"] .category-focus p {
    font-size: 16px;
  }

  .webu .verse + .verse,
  .mirror .mirror-verse + .mirror-verse {
    margin-top: 16px;
  }
}

/* 13. REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

  .study-caution-details summary::before,
  .study-possibility-details summary::before {
    transition: none;
  }
}

/* 14. STUDY INSIGHTS FOLLOW THE SITE’S LIGHT THEME REGARDLESS OF OS SETTING. */

/* 15. PRINT */

@media print {

  body.study-page #contents,
  .comparison-actions {
    display: none;
  }

  body.study-page section {
    break-before: page;
  }

  body.study-page article,
  .study-caution-details,
  .study-possibility-details {
    break-inside: avoid;
  }

  body.study-page article + article {
    margin-top: 0;
  }

  body.study-page section[id^="cat"] {
    padding-top: 0;
  }

  body.study-page section[id^="cat"] > h2 {
    margin-top: 20px;
  }

  body.study-page section[id^="cat"] > h2,
  body.study-page section[id^="cat"] > h3,
  body.study-page section[id^="cat"] > .category-focus {
    break-after: avoid;
  }

  .webu {
    background: #fffdf9;
    box-shadow: none;
    print-color-adjust: exact;
  }

  .mirror-details {
    background: #eaf0f5;
    box-shadow: none;
  }

  .mirror-details > summary {
    display: none;
  }

  .mirror-details:not([open]) .mirror {
    display: block;
  }

  .study-notice .private-notice {
    display: block;
  }

  .study-point {
    print-color-adjust: exact;
  }
}

/* Publication and translation sources belong at the foot of Study. */
body.study-page .site-copyright .mirror-edition-key { margin:0 0 24px; padding:0 0 20px; border:0; border-bottom:1px solid var(--line); background:transparent; color:var(--muted); max-width:760px; }
body.study-page .site-copyright .mirror-edition-key h2 { margin:0 0 12px; padding:0; border:0; color:var(--ink); font:normal 24px/1.3 var(--font-reading); }
body.study-page .site-copyright .mirror-edition-key p { margin:8px 0; color:var(--muted); font:13px/1.7 var(--font-ui); }
body.study-page .site-copyright .mirror-edition-key .study-source-detail { font-size:12px; }
body.study-page .reading-guide .study-colour-hint { margin:16px 0 0; font:13px/1.7 var(--font-ui); color:var(--muted); }

/* 16. STUDY REFRESH — concise opening, clear navigation, gentle notes.
   This is the only study-specific stylesheet: overrides stay here. */
body.study-page > header.collection-header {
  padding-top: clamp(16px, 2.2vh, 26px);
  padding-bottom: clamp(15px, 2vh, 24px);
}
body.study-page > header.collection-header h1 {
  font-size: clamp(32px, 4.7vw, 44px);
  line-height: 1.12;
  margin-bottom: clamp(10px, 1.7vh, 17px);
  text-wrap: balance;
}
body.study-page > header.collection-header p:not(.header-eyebrow) {
  max-width: 67ch;
  font: 19px/1.75 var(--font-reading);
  color: var(--ink);
}
body.study-page main#main-content { padding-top: 0; }
body.study-page #contents {
  margin: 21px 0 10px;
  padding: 16px clamp(16px, 2.7vw, 25px);
  background: #f2f4ee;
  border: 1px solid #dfe6db;
  border-radius: 12px;
}
body.study-page #contents h2 {
  margin: 0 0 8px;
  font: 700 12px/1.5 var(--font-ui);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #4b6b5b;
}
body.study-page #contents ol {
  margin: 0;
  padding-left: 21px;
  columns: 2;
  column-gap: 32px;
}
body.study-page #contents li {
  padding-block: 3px;
  color: #4d695d;
  font-size: 14px;
  line-height: 1.5;
}
body.study-page #contents a {
  color: #315b4e;
  text-decoration: none;
  text-underline-offset: 3px;
}
body.study-page #contents a:hover { text-decoration: underline; }
body.study-page details.reading-guide {
  margin: 9px 0 0;
  background: transparent;
  border-bottom: 1px solid #e3e7de;
  color: #53685c;
  font: 14px/1.65 var(--font-ui);
}
body.study-page details.reading-guide > summary {
  padding: 10px 3px;
  color: #486d5c;
  font: 600 13px/1.5 var(--font-ui);
  cursor: pointer;
}
body.study-page details.reading-guide > summary:hover { color: #285245; }
body.study-page details.reading-guide > p { margin: 0 3px 11px; max-width: 74ch; }
body.study-page details.reading-guide[open] { padding-bottom: 8px; }
body.study-page .study-tools { margin-top: 12px; gap: 8px; }
body.study-page .study-tools button {
  padding: 7px 12px;
  border-color: #d1ded3;
  background: #fffdf9;
  color: #426657;
  font: 600 12px/1.45 var(--font-ui);
}
body.study-page .study-collection-count {
  margin: 10px 0 0;
  color: #738278;
  font: 12px/1.6 var(--font-ui);
}
body.study-page section[id^="cat"] { padding-top: 13px; scroll-margin-top: 15px; }
body.study-page section[id^="cat"] > h2 {
  margin: 27px 0 16px;
  padding-top: 22px;
  border-top: 1px solid #cbd9cb;
  font: normal 29px/1.18 var(--font-reading);
  letter-spacing: -.025em;
}
body.study-page section[id^="cat"] > .category-focus { margin-bottom: 14px; }
body.study-page section[id^="cat"] .category-focus p {
  max-width: 75ch;
  color: #5e7064;
  font-size: 16px;
  line-height: 1.65;
}
body.study-page section[id^="cat"] > h3 { margin-top: 23px; }
body.study-page article {
  padding: 24px 0 26px;
  border-color: #e0e6df;
}
body.study-page article + article { margin-top: 5px; }
body.study-page article h4 { margin-bottom: 14px; }
body.study-page .webu { background: #fffdf8; border-color: #e4e6dd; padding-block: 19px; }
body.study-page .webu .verse { max-width: 76ch; line-height: 1.72; margin-block: 10px; }
body.study-page .mirror-details { margin-top: 11px; }
body.study-page .mirror-details > summary { min-height: 45px; padding-block: 12px; }
body.study-page .study-insight { margin-top: 12px; gap: 8px; }
body.study-page .study-caution-details, body.study-page .study-possibility-details {
  box-shadow: none;
  color-scheme: light;
}
body.study-page .study-caution-details { background: #fff8f3; border-color: #f0dfd1; color: #754c34; }
body.study-page .study-possibility-details { background: #f4faf4; border-color: #d8e7d7; color: #345d44; }
body.study-page .study-caution-details[open] { background: #fffaf6; }
body.study-page .study-possibility-details[open] { background: #f7fbf6; }
body.study-page .study-caution-details summary,
body.study-page .study-possibility-details summary { padding-block: 11px; }
body.study-page .study-caution-details .study-caution,
body.study-page .study-possibility-details .study-possibility { line-height: 1.7; }
body.study-page .back-top { margin-top: 16px; }
@media (max-width: 650px) {
  body.study-page #contents { padding: 14px 17px; }
  body.study-page #contents ol { columns: 1; }
  body.study-page #contents li { padding-block: 2px; }
  body.study-page > header.collection-header p:not(.header-eyebrow) { font-size: 18px; }
  body.study-page section[id^="cat"] > h2 { margin-top: 20px; font-size: 24px; }
  body.study-page > header.collection-header h1 { font-size: clamp(28px, 7.5vw, 31px); }
  body.study-page article { padding-block: 19px 23px; }
  body.study-page .webu { padding: 16px; }
  body.study-page .webu .verse { font-size: 17px; }
  body.study-page .study-tools button { flex-grow: 1; }
}
@media print {
  body.study-page .study-collection-count { display: none; }
  body.study-page details.reading-guide { display: block; }
  body.study-page details.reading-guide > p { display: block; }
}


/* 17. THEME FILTERS — same quiet pill language as Reflections and Glimpses. */
body.study-page #contents {
  margin: 19px 0 5px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body.study-page #contents h2 {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font: 700 12px/1.5 var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
}
/* Full-width theme choices: All themes, then two rows of three on desktop.
   Labels use the actual theme titles, with natural wrapping instead of truncation. */
body.study-page .study-theme-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0;
  align-items: stretch;
}
body.study-page .study-theme-filter {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  min-width: 0;
  min-height: 46px;
  width: 100%;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: var(--accent-dark);
  font: 600 12.5px/1.4 var(--font-ui);
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}
body.study-page .study-theme-filter-label {
  min-width: 0;
  overflow-wrap: break-word;
}
body.study-page .study-theme-filter-count {
  font-weight: 400;
  opacity: .7;
  white-space: nowrap;
}
body.study-page .study-theme-filter[data-theme="all"] {
  grid-column: 1 / -1;
}
body.study-page .study-theme-filter:hover {
  background: #eef4ed;
  border-color: #b8cbbc;
}
body.study-page .study-theme-filter[aria-pressed="true"] {
  border-color: #8ca998;
  background: #e7efe7;
  color: var(--ink);
}
body.study-page .study-theme-filter:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
}
body.study-page #scripture-content section[hidden] { display: none !important; }
/* Keep the longer Study title optically balanced with the shorter collection titles,
   and keep theme headings in the same editorial Georgia style as Reflection cards. */
body.study-page > header.collection-header h1 { line-height: 1.15; }
body.study-page > header.collection-header p:not(.header-eyebrow) {
  color: var(--ink);
  opacity: 1;
}
/* Four rows on phones: one full-width choice, then three pairs.
   Full titles remain readable; no cramped three-across text or ellipses. */
@media (max-width: 650px) {
  body.study-page .study-theme-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  body.study-page .study-theme-filter {
    min-height: 49px;
    padding: 9px 10px;
    font-size: 12px;
    line-height: 1.35;
  }
  body.study-page .study-theme-filter-count { display: none; }
}
@media (max-width: 360px) {
  body.study-page .study-theme-filters { gap: 7px; }
  body.study-page .study-theme-filter {
    min-height: 53px;
    padding: 9px 6px;
    font-size: 11.5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.study-page .study-theme-filter { transition: none; }
}
@media print {
  body.study-page #contents { display: none; }
}
