/* Activity collections and full-page reading, listening, viewing and puzzle sessions. */
.ac-library, .ac-detail, .ac-collection {
  --ac-ink: #123c2c;
  --ac-muted: #51685d;
  --ac-line: #dbe4dc;
  --ac-serif: 'Instrument Serif', Georgia, serif;
  color: var(--ac-ink);
}
.ac-page-heading { margin: 0 0 24px; }
.ac-page-heading h1, .ac-detail-head h1 {
  margin: 0;
  font: 600 clamp(31px, 3.5vw, 46px)/1.06 'DM Sans', sans-serif;
  letter-spacing: -.057em;
  color: #133a2b;
  overflow-wrap: anywhere;
}
.ac-page-heading p { margin: 9px 0 0; color: #51685d; max-width: 64ch; font-size: 15px; }
.ac-feature { border-radius: 18px; overflow: hidden; background: #153e2f; color: #fff; }
.ac-feature > a { display: grid; grid-template-columns: 1fr 1fr; color: inherit; text-decoration: none; }
.ac-feature > a:focus-visible { outline-offset: -4px; }
.ac-feature-visual { position: relative; min-height: 230px; grid-column: 2; grid-row: 1; overflow: hidden; }
.ac-feature-visual img, .ac-card-photo img, .ac-story-photo img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.ac-feature-visual img { position: absolute; inset: 0; object-position: center; }
.ac-feature-copy { grid-column: 1; grid-row: 1; align-self: center; padding: clamp(23px, 3vw, 39px); }
.ac-page-heading .ac-day-count { color: #255239; font-weight: 600; font-size: 14px; }
.ac-feature-copy > .ac-status { display: table; margin-top: 12px; }
.ac-feature-source { font-size: 11px; text-transform: uppercase; font-weight: 700; letter-spacing: .12em; color: #c5e1ad; }
.ac-feature h2 { max-width: 18ch; margin: 9px 0; font: 400 clamp(35px, 3.6vw, 53px)/1 var(--ac-serif); letter-spacing: -.036em; color: #fffefa; }
.ac-feature p { max-width: 45ch; font-size: 14px; color: #dde7df; margin: 0; }
.ac-feature-action {
  display: inline-flex; align-items: center; gap: 18px; border-radius: 8px; padding: 10px 14px;
  background: #e3f3b2; color: #163829; margin-top: 22px; font-size: 13px; font-weight: 700;
}
.ac-feature-action span, .ac-card-arrow { transition: transform 170ms ease; }
.ac-feature a:hover .ac-feature-action span, .ac-card a:hover .ac-card-arrow { transform: translateX(3px); }
.ac-play-mark { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 46px; height: 46px; padding-left: 3px; transform: translate(-50%, -50%); border: 1px solid #ffffffb0; border-radius: 50%; background: #102a1e82; color: white; }
.ac-collection { margin: 30px 0 0; }
.ac-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 13px; }
.ac-section-heading h2, .ac-empty h2 { margin: 0; font: 600 clamp(18px, 2vw, 23px)/1.22 'DM Sans', sans-serif; letter-spacing: -.04em; }
.ac-section-heading > span, .ac-section-heading > a { color: var(--ac-muted); font-size: 12px; }
.ac-section-heading > a, .ac-back { text-decoration: none; font-weight: 600; }
.ac-section-heading > a:hover, .ac-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.ac-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.ac-grid-play, .ac-grid-question { grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); gap: 12px; }
.ac-card { overflow: hidden; min-width: 0; border: 1px solid #d9e3da; background: #fff; color: #143d2c; border-radius: 13px; transition: border-color 160ms ease, box-shadow 160ms ease; }
.ac-card:has(a:hover), .ac-card:focus-within { border-color: #8eac96; box-shadow: 0 3px 12px #173b2410; }
.ac-card-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; height: 100%; text-decoration: none; color: inherit; }
.ac-card-link:focus-visible { outline-offset: -4px; }
.ac-card-photo { display: block; grid-column: 1 / -1; overflow: hidden; aspect-ratio: 2.3; background: #dfeadb; }
.ac-card-body { padding: 15px; min-width: 0; }
.ac-card h3 { font: 600 17px/1.22 'DM Sans', sans-serif; letter-spacing: -.035em; margin: 4px 0 0; overflow-wrap: anywhere; }
.ac-card-meta { display: block; color: #52675c; font-size: 11px; font-weight: 500; }
.ac-card-arrow { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; border: 1px solid #dbe4d9; color: #335a43; margin: 0 13px 0 0; }
.ac-status { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 10px; font-weight: 600; color: #386644; }
.ac-status::before { content: ''; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: #81a665; }
.ac-credited::before { background: #2f6a50; }
.ac-compact .ac-card-link { grid-template-columns: auto minmax(0, 1fr) auto; padding: 13px; gap: 12px; }
.ac-compact .ac-card-photo, .ac-game-mark { grid-column: auto; width: 55px; aspect-ratio: 1; border-radius: 10px; }
.ac-compact .ac-card-body { padding: 0; }
.ac-compact .ac-card-arrow { margin: 0; }
.ac-game-mark { display: grid; place-items: center; font: 400 28px/1 var(--ac-serif, Georgia, serif); letter-spacing: -.065em; }
.tone-fern { background: #e0eedc; color: #336346; }
.tone-peach { background: #f7e4d7; color: #8a4b36; }
.tone-blue { background: #dfedf0; color: #3a6370; }
.tone-violet { background: #ebe6f4; color: #69537f; }
.tone-gold { background: #f2ebcb; color: #796833; }
.ac-empty { padding: 26px; border: 1px solid #d9e3da; background: white; border-radius: 14px; }
.ac-empty p { color: #51685d; }
.ac-back { display: inline-flex; align-items: center; gap: 7px; padding-block: 5px; margin: 0 0 23px; color: #47674f; font-size: 13px; }
.ac-detail-head { margin: 0 0 22px; }
.ac-detail-meta { display: flex; align-items: center; gap: 9px; font: 600 11px/1.4 'DM Sans', sans-serif; color: #57715c; margin-bottom: 9px; }
.ac-detail-meta span { color: #a0b1a1; }
.ac-detail-head h1 { font-size: clamp(29px, 3.5vw, 45px); }
.ac-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(175px, .34fr); align-items: start; gap: clamp(16px, 2vw, 25px); }
.ac-detail-layout.ac-no-rail { grid-template-columns: minmax(0, 1fr); }
.ac-content, .ac-credit-panel { background: #fff; border: 1px solid var(--ac-line); border-radius: 15px; min-width: 0; }
.ac-content { padding: clamp(18px, 2.5vw, 32px); }
.ac-story-photo { margin: 0 0 23px; overflow: hidden; aspect-ratio: 2.45; border-radius: 9px; }
.ac-text p { margin: 0 0 1.2em; overflow-wrap: anywhere; }
.ac-text p:last-child { margin-bottom: 0; }
.ac-detail-print .ac-text { max-width: 66ch; font: 400 clamp(16px, 1.5vw, 18px)/1.72 Georgia, serif; color: #2c3f33; }
.ac-detail-print .ac-text p { line-height: inherit; }
.ac-detail-play .ac-text, .ac-detail-question .ac-text { font-size: clamp(18px, 2vw, 24px); line-height: 1.42; font-weight: 500; letter-spacing: -.027em; }
.ac-credit-panel { padding: 19px; background: #eef4e9; border-color: #d5e1d0; }
.ac-credit-panel h2, #music-connect h2 { font: 600 17px/1.25 'DM Sans', sans-serif; letter-spacing: -.035em; margin: 0 0 8px; }
.ac-credit-panel p, .ac-listening p { font-size: 13px; color: #4b6455; margin: 8px 0 0; }
.ac-credit-panel .ac-region { display: block; color: #4b6455; margin-top: 2px; font-size: 0.875rem; }
.ac-credit-panel .ac-value { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.055em; }
.ac-credit-panel .interior-link, .ac-credit-panel button { margin-top: 15px; }
.ac-detail .primary, .ac-detail .secondary { border-radius: 8px; font-size: 13px; }
.ac-detail progress { height: 7px; display: block; margin-top: 15px; accent-color: #427c4c; }
.ac-content video { display: block; width: 100%; max-height: 58vh; background: #0c2218; border-radius: 9px; margin-bottom: 18px; }
.ac-answer { margin-top: 24px; border-top: 1px solid var(--ac-line); padding-top: 17px; }
.ac-answer fieldset { display: grid; gap: 8px; padding: 0; margin: 0; border: 0; min-width: 0; }
.ac-answer legend { margin-bottom: 9px; font-size: 13px; font-weight: 600; color: #51685d; }
.ac-answer label { display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 10px 13px; border: 1px solid #d8e2d7; border-radius: 8px; color: #294534; cursor: pointer; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.ac-answer label:hover { background: #f7faf4; }
.ac-answer label:has(:checked) { border-color: #749578; background: #eff5e9; }
.ac-answer input { margin: 0; width: 16px; height: 16px; flex: 0 0 auto; accent-color: #3c714c; }
.ac-answer button { display: flex; align-items: center; gap: 17px; margin-top: 17px; }
.ac-listening { display: grid; grid-template-columns: minmax(78px, .26fr) 1fr; align-items: start; gap: 17px; margin: 0 0 18px; }
.ac-listening > img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; }
.ac-listening .listen-stats { font-size: 13px; }
.ac-listening #music-connect { min-width: 0; }
.ac-listening #music-connect button { margin: 10px 4px 0 0; }
.ac-listening .wallet-ledger li { flex-wrap: wrap; }
.ac-content #feedback:empty { display: none; }
@media (max-width: 930px) {
  .ac-detail-layout { grid-template-columns: minmax(0, 1fr); }
  .ac-credit-panel { max-width: 100%; }
}
@media (max-width: 620px) {
  .ac-feature > a { grid-template-columns: 1fr; }
  .ac-feature-visual { grid-column: 1; grid-row: 1; min-height: 0; aspect-ratio: 2.55; }
  .ac-feature-copy { grid-column: 1; grid-row: 2; padding: 21px; }
  .ac-feature-action { margin-top: 15px; }
  .ac-feature h2 { font-size: 35px; }
  .ac-page-heading { margin-bottom: 16px; }
  .ac-collection { margin-top: 23px; }
  .ac-grid { gap: 10px; }
  .ac-listening { grid-template-columns: 1fr; }
  .ac-listening > img { height: 130px; aspect-ratio: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ac-card, .ac-card-arrow, .ac-feature-action span { transition: none; }
}

/* Static direct-sponsor placements sit outside the player, answer form and claim controls. */
.ac-banner { clear:both; grid-column:1/-1; width:100%; min-width:0; margin:22px auto; padding:0; background:transparent; color:#193e2d; text-align:left; }
.ac-banner > small { display:block; margin:0 0 4px 2px; color:#596a60; font:500 12px/1.4 'DM Sans',sans-serif; }
.ac-banner > a { display:flex; min-height:76px; align-items:stretch; border:1px solid #cedbd2; border-radius:10px; overflow:hidden; background:#f2f6f2; color:inherit; text-decoration:none; }
.ac-network-slot { min-height:1px; }
.ac-banner.ac-network-slot:empty { height:1px; min-height:1px; margin:0; padding:0; }
.ac-network-frame { border:0; width:100%; max-width:100%; height:150px; display:block; margin-inline:auto; background:transparent; }
.ac-network-frame[data-unit="in-page"] { min-height:300px; }
.ac-banner > a:focus-visible { outline:3px solid #387550; outline-offset:3px; }
.ac-banner > a:hover strong { text-decoration:underline; text-underline-offset:3px; }
.ac-banner img { display:block; flex:none; align-self:stretch; width:clamp(76px,19%,170px); max-height:130px; object-fit:cover; background:#cfdfcf; }
.ac-banner-copy { display:flex; flex:1; flex-direction:column; justify-content:center; gap:4px; min-width:0; padding:11px clamp(12px,3%,28px); overflow-wrap:anywhere; }
.ac-banner-copy > span { font:500 13px/1.35 'DM Sans',sans-serif; color:#4c6356; }
.ac-banner-copy strong { font:600 clamp(16px,2.3vw,21px)/1.25 'DM Sans',sans-serif; color:#1a392b; }
.ac-banner > .ac-banner-text { min-height:84px; border-inline-start:4px solid #63805b; background:linear-gradient(110deg,#eff4eb,#f8faf5); }
.ac-banner-visit { align-self:center; margin-inline-end:clamp(12px,3%,24px); color:#42664f; font:500 20px/1 'DM Sans',sans-serif; }
.ac-text .ac-banner { max-width:64ch; margin:12px 0 24px; }
.ac-text .ac-banner > a { min-height:54px; }
.ac-text .ac-banner img { width:clamp(58px,15%,96px); height:66px; align-self:center; }
.ac-text .ac-banner-copy { padding-block:8px; gap:2px; }
.ac-text .ac-banner-copy strong { font-size:16px; }
.ac-article-end-banners { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap:16px; }
.ac-article-end-banners > .ac-banner { grid-column:auto; margin:0; }
.ac-article-end-banners:not(:has(.ac-banner)) { display:none; }
.ac-article-rail { display:grid; align-content:start; gap:24px; min-width:0; }
.ac-article-rail > .ac-banner { margin:0; }
@media (min-width:640px) and (max-width:930px) {
  .ac-article-rail { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ac-article-rail > .ac-credit-panel { grid-column:1/-1; }
  .ac-article-rail > .ac-banner { grid-column:auto; }
}
@media (min-width:931px) {
  .ac-article-rail .ac-banner > a:has(img) { display:grid; grid-template-columns:minmax(0,1fr) auto; }
  .ac-article-rail .ac-banner img { grid-column:1/-1; width:100%; height:clamp(72px,7vw,112px); }
  .ac-article-rail .ac-banner-copy { padding:12px; }
  .ac-article-rail .ac-banner-copy strong { font-size:16px; }
}
.ac-grid > .ac-banner { margin:4px 0; }
.ac-sponsor-bar { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:4px 16px; margin:14px 0 20px; padding:4px 8px 4px 14px; border-block:1px solid #cfdbd0; background:#f3f6ee; }
.ac-sponsor-bar > small { margin:0; }
.ac-sponsor-bar > a.ac-banner-text { min-height:44px; border:0; border-radius:4px; background:transparent; align-items:center; }
.ac-sponsor-bar .ac-banner-copy { flex-direction:row; flex-wrap:wrap; align-items:baseline; justify-content:flex-start; gap:3px 9px; padding:5px 0; }
.ac-sponsor-bar .ac-banner-copy strong { font-size:15px; }
.ac-sponsor-bar .ac-banner-visit { margin:0 2px 0 8px; font-size:16px; }
.ac-sponsor-bar button { min-height:44px; padding:6px 10px; border:0; border-radius:4px; background:transparent; color:#365c44; font:600 13px/1.4 'DM Sans',sans-serif; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.ac-sponsor-bar button:focus-visible { outline:2px solid #387550; outline-offset:2px; }
@media (max-width:620px) {
 .ac-sponsor-bar { grid-template-columns:minmax(0,1fr) auto; gap:0 8px; padding-top:8px; }
 .ac-sponsor-bar > small { grid-column:1; }
 .ac-sponsor-bar > a { grid-column:1; }
 .ac-sponsor-bar button { grid-column:2; grid-row:1/3; }
}

.ac-library-paging { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1rem 0; }
.ac-library-paging span { margin-inline-end: auto; color: var(--ac-muted); }

.ac-view-nav { display:flex; flex-wrap:wrap; gap:6px; padding-bottom:12px; margin-bottom:20px; border-bottom:1px solid var(--ac-line); }
.ac-view-nav a { display:inline-flex; align-items:center; gap:7px; min-height:42px; padding:7px 13px; border-radius:8px; color:#40584b; font-size:14px; font-weight:600; text-decoration:none; }
.ac-view-nav a:hover { background:#edf3eb; }
.ac-view-nav a[aria-current="page"] { background:#183e2c; color:white; }
.ac-view-nav a span { border:1px solid currentColor; padding:1px 6px; border-radius:12px; font-size:12px; font-variant-numeric:tabular-nums; }
.ac-library-search { display:grid; gap:6px; max-width:550px; }
.ac-library-search label { font-size:14px; font-weight:600; }
.ac-library-search > div { display:flex; gap:8px; }
.ac-library-search input[type="search"] { flex:1; min-width:0; padding:10px 12px; border:1px solid #a9bcae; border-radius:8px; background:#fff; color:var(--ac-ink); font:inherit; }

.ac-puzzle-progress { margin: 0 0 8px; color: #476750; font-size: .875rem; font-weight: 600; }
.ac-sudoku {
  margin: 1rem 0 1.5rem; border-collapse: collapse; table-layout: fixed;
  width: min(100%, 14rem); border: 2px solid #385c48; color: #21452f;
  background: #fafcf4; font-variant-numeric: tabular-nums;
}
.ac-sudoku td {
  width: 25%; height: 2.9rem; border: 1px solid #c1cebf; text-align: center;
  padding: 0; font-size: 1.15rem; font-weight: 600;
}
.ac-sudoku tr:nth-child(2) td { border-bottom: 2px solid #385c48; }
.ac-sudoku td:nth-child(2) { border-right: 2px solid #385c48; }
.ac-sudoku .ac-sudoku-target { background: #d6ed9f; color: #123721; }
.ac-puzzle-result {
 display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
 gap: .8rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--ac-line); color: #23553a;
}
