.tth-resource-page{padding:34px 20px 78px;background:linear-gradient(180deg,#fff 0,#fff 66%,#fffaf7 100%)}
.tth-resource-shell{max-width:1280px;margin:0 auto}
.tth-resource-breadcrumb{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin-bottom:22px;font-size:13px;color:var(--tth-muted)}
.tth-resource-breadcrumb a{color:var(--tth-berry);text-decoration:none;font-weight:700}.tth-resource-breadcrumb a:hover{text-decoration:underline}
.tth-resource-hero{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(390px,.96fr);gap:54px;align-items:start}
.tth-resource-media{min-width:0}
.tth-resource-main-image{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;overflow:hidden;border:1px solid var(--tth-border);border-radius:0;background:#fff;box-shadow:var(--tth-shadow-soft);cursor:pointer;outline:none}
.tth-resource-main-image:focus-visible{box-shadow:0 0 0 4px rgba(98,87,168,.18),var(--tth-shadow-soft)}
.tth-resource-main-image img{display:block;width:100%;height:100%;object-fit:contain;margin:0;background:#fff}
.tth-gallery-arrow{position:absolute;top:50%;z-index:3;display:grid;place-items:center;width:46px;height:46px;margin-top:-23px;border:1px solid rgba(69,58,78,.12);border-radius:50%;background:rgba(255,255,255,.94);color:var(--tth-ink);font-size:27px;line-height:1;cursor:pointer;box-shadow:0 5px 18px rgba(45,35,55,.14)}
.tth-gallery-arrow:hover{background:#fff;color:var(--tth-berry);transform:scale(1.04)}.tth-gallery-arrow-prev{left:14px}.tth-gallery-arrow-next{right:14px}
.tth-gallery-counter{position:absolute;right:14px;bottom:14px;z-index:2;padding:7px 11px;border-radius:999px;background:rgba(47,43,61,.78);color:#fff;font-size:12px;font-weight:800;letter-spacing:.02em}
.tth-gallery-click-hint{position:absolute;left:14px;bottom:14px;z-index:2;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.92);color:var(--tth-muted);font-size:11px;font-weight:700;box-shadow:0 3px 12px rgba(45,35,55,.08)}
.tth-resource-gallery{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin-top:12px;overflow:visible}
.tth-resource-gallery .tth-preview-thumb-button{position:relative;aspect-ratio:1/1;padding:3px;border:2px solid transparent;border-radius:0;background:#fff;cursor:pointer;overflow:hidden;box-shadow:0 2px 8px rgba(45,35,55,.06)}
.tth-resource-gallery .tth-preview-thumb-button.is-active{border-color:var(--tth-purple);box-shadow:0 0 0 2px rgba(98,87,168,.10)}
.tth-resource-gallery .tth-preview-thumb-button img{display:block;width:100%;height:100%;object-fit:contain;border-radius:0;background:#fff}
.tth-resource-gallery .tth-preview-thumb-button:focus-visible{outline:3px solid rgba(98,87,168,.25);outline-offset:2px}
.tth-resource-summary{position:sticky;top:28px}
.tth-resource-eyebrow{margin:0 0 8px;font-size:12px;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:var(--tth-berry)}
.tth-resource-title-badges{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 12px}.tth-resource-title-badge{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:var(--tth-lilac);color:var(--tth-purple-dark);font-size:11px;font-weight:800}.tth-resource-title-badge.is-book{background:var(--tth-gold);color:#78541c}
.tth-resource-summary h1{margin:0 0 14px;font-size:clamp(34px,3.2vw,48px);line-height:1.07;letter-spacing:-.02em;color:var(--tth-ink)}
.tth-resource-categories{margin-bottom:16px;font-size:13px;color:var(--tth-muted)}.tth-resource-categories a{color:var(--tth-berry);text-decoration:none}
.tth-resource-short{margin:0 0 18px;font-size:17px;line-height:1.65;color:#544d5b}.tth-resource-short p:last-child{margin-bottom:0}
.tth-resource-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0;padding:18px;border:1px solid var(--tth-border);border-radius:20px;background:linear-gradient(145deg,#fff8fb,#f8f5fc)}
.tth-resource-facts div{display:flex;flex-direction:column;gap:4px;min-width:0;padding:3px 4px}.tth-resource-facts strong{font-size:11px;text-transform:uppercase;letter-spacing:.075em;color:var(--tth-berry)}.tth-resource-facts span{font-size:14px;line-height:1.45;color:#4f4755}
.tth-resource-page .tth-redeem-box{margin:20px 0 0;border-color:var(--tth-border);border-radius:20px;box-shadow:var(--tth-shadow-soft)}
.tth-resource-body-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:34px;margin-top:48px;align-items:start}
.tth-resource-content-stack{min-width:0}.tth-resource-details{margin:0 0 22px;padding:30px;border:1px solid var(--tth-border);border-radius:22px;background:#fff;box-shadow:var(--tth-shadow-soft)}
.tth-resource-details h2{margin:0 0 16px;font-size:27px;line-height:1.15;color:var(--tth-ink)}
.tth-resource-description,.tth-resource-rich-content{font-size:16px;line-height:1.75;color:#544d5b}.tth-resource-description>*:first-child,.tth-resource-rich-content>*:first-child{margin-top:0}.tth-resource-description>*:last-child,.tth-resource-rich-content>*:last-child{margin-bottom:0}
.tth-resource-rich-content ul,.tth-resource-rich-content ol{padding-left:1.35rem}.tth-resource-rich-content li+li{margin-top:.45rem}
.tth-standard-chips{display:flex;flex-wrap:wrap;gap:8px}.tth-standard-chip{padding:7px 10px;border-radius:999px;background:var(--tth-lilac);color:var(--tth-purple-dark);font-size:12px;font-weight:700}
.tth-resource-quote blockquote{position:relative;margin:0;padding:22px 24px 22px 52px;border:0;border-radius:18px;background:var(--tth-blush);font-size:18px;line-height:1.6;color:#574b59}.tth-resource-quote blockquote:before{content:'“';position:absolute;left:18px;top:11px;font-size:48px;line-height:1;color:var(--tth-pink);font-weight:900}.tth-resource-quote cite{display:block;margin-top:12px;font-style:normal;font-weight:800;font-size:14px;color:var(--tth-berry)}
.tth-resource-teacher-sidebar{position:sticky;top:28px;display:flex;flex-direction:column;gap:14px}.tth-resource-help{margin:0;padding:24px;border:1px solid #efe2d9;border-radius:22px;background:var(--tth-cream)}.tth-resource-help h2{margin:0 0 10px;font-size:22px;color:var(--tth-ink)}.tth-resource-help p{margin:0;color:#62585f;line-height:1.6}.tth-resource-help-list{display:grid;gap:10px;margin:18px 0 0;padding:0;list-style:none}.tth-resource-help-list li{display:flex;gap:10px;align-items:flex-start;color:#574f59;font-size:14px}.tth-resource-help-list li:before{content:'✓';display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border-radius:50%;background:var(--tth-mint);color:var(--tth-green);font-weight:900}
.tth-resource-back-card{padding:20px;border:1px solid var(--tth-border);border-radius:20px;background:#fff;box-shadow:var(--tth-shadow-soft)}.tth-resource-back-card strong{display:block;margin-bottom:7px;font-size:16px}.tth-resource-back-card p{margin:0 0 12px;color:var(--tth-muted);font-size:13px;line-height:1.55}.tth-resource-back-card a{font-weight:800;color:var(--tth-berry);text-decoration:none}
@media(max-width:1020px){.tth-resource-hero{grid-template-columns:1fr;gap:32px}.tth-resource-summary{position:static}.tth-resource-body-grid{grid-template-columns:1fr}.tth-resource-teacher-sidebar{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.tth-resource-gallery{grid-template-columns:repeat(4,minmax(0,1fr))}.tth-resource-teacher-sidebar{grid-template-columns:1fr}.tth-resource-details{padding:24px}}
@media(max-width:640px){.tth-resource-page{padding:22px 14px 55px}.tth-resource-summary h1{font-size:34px}.tth-resource-facts{grid-template-columns:1fr}.tth-resource-gallery{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.tth-gallery-arrow{width:40px;height:40px;margin-top:-20px}.tth-gallery-click-hint{display:none}.tth-resource-details{padding:21px}.tth-resource-body-grid{margin-top:34px}}

/* v1.17.39: these are the plugin's actual resource-gallery selectors.
   Keep the surrounding lavender card rounded; never clip the square artwork. */
.tth-resource-page .tth-resource-main-image,
.tth-resource-page .tth-resource-main-image > img,
.tth-resource-page .tth-preview-thumb-button,
.tth-resource-page .tth-preview-thumb-button > img {
  border-radius: 0 !important;
}
.tth-resource-page .tth-resource-main-image {
  width: 100%; min-width: 0; aspect-ratio: 1 / 1;
}
.tth-resource-page .tth-resource-main-image > img {
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  object-fit: contain; object-position: center; margin: 0;
}
.tth-resource-page .tth-resource-summary,
.tth-resource-page .tth-resource-facts > div { min-width: 0; }
.tth-resource-page .tth-resource-summary h1,
.tth-resource-page .tth-resource-facts span { overflow-wrap: anywhere; }
@media (max-width: 1020px) {
  .tth-resource-page .tth-resource-hero { gap: 28px; }
}
@media (max-width: 640px) {
  .tth-resource-page .tth-resource-hero { padding: 16px !important; gap: 24px; }
  .tth-resource-page .tth-resource-facts { padding: 12px; gap: 10px; }
  .tth-resource-page .tth-resource-body-grid { margin-top: 24px; }
  .tth-resource-page .tth-resource-summary h1 { font-size: clamp(27px, 7.5vw, 34px); }
}
@media (prefers-reduced-motion: reduce) {
  .tth-resource-page .tth-gallery-arrow { transition: none; }
}


/* v1.17.44: one real quotation-mark column; suppress old theme decorations. */
.tth-resource-page .tth-resource-quote .tth-testimonial{
 display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start;gap:18px;
 margin:0;padding:28px;border-radius:24px;background:#fff0f6;color:#574b59;min-width:0;
}
.tth-resource-page .tth-resource-quote .tth-testimonial-mark{
 display:block;position:static!important;font-family:Georgia,serif;font-size:72px;
 font-weight:700;line-height:1;letter-spacing:0;color:#d94a80;padding:0;margin:0;
}
.tth-resource-page .tth-resource-quote blockquote.tth-testimonial-body{
 display:block!important;position:static!important;grid-column:2;min-width:0;
 margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
 background:none!important;box-shadow:none!important;quotes:none;
}
.tth-resource-page .tth-resource-quote blockquote.tth-testimonial-body::before,
.tth-resource-page .tth-resource-quote blockquote.tth-testimonial-body::after,
.tth-resource-page .tth-resource-quote .tth-testimonial-body p::before,
.tth-resource-page .tth-resource-quote .tth-testimonial-body p::after{
 content:none!important;display:none!important;
}
.tth-resource-page .tth-resource-quote .tth-testimonial-body .tth-resource-quote-text{
 margin:0!important;padding:0!important;line-height:1.65;font-size:18px;font-style:italic;
 overflow-wrap:anywhere;color:inherit;text-align:start;
}
.tth-resource-page .tth-resource-quote .tth-testimonial-body cite{
 display:block;margin:16px 0 0!important;padding:0;font-style:normal;font-weight:700;
 font-size:15px;line-height:1.5;color:#913b70;overflow-wrap:anywhere;
}
@media(max-width:680px){
 .tth-resource-page .tth-resource-quote .tth-testimonial{padding:20px;grid-template-columns:28px minmax(0,1fr);gap:12px;border-radius:18px}
 .tth-resource-page .tth-resource-quote .tth-testimonial-mark{font-size:50px}
 .tth-resource-page .tth-resource-quote .tth-testimonial-body .tth-resource-quote-text{font-size:16px}
}
