/* Crit & Canon — WordPress additions on top of the V9 design system (v9.css). */

/* Links that replaced V9's JS buttons keep the same look */
.footer-col a{padding:5px 0;color:var(--muted);font-size:12.5px;line-height:1.65;min-height:29px;display:inline-flex;align-items:center}
.footer-col a:hover,.breadcrumb a:hover{color:var(--accent);text-decoration:underline;text-underline-offset:4px}
.footer-bottom .backtop{color:var(--muted)}
.breadcrumb a{color:inherit}
a.quickpath,a.btn,a.filter,a.toolpick{text-decoration:none}
a.filter{display:inline-flex;align-items:center}
.howgrid a.card.how{color:inherit}
.game[hidden],.cc-tools-root [hidden]{display:none!important}

/* Headings promoted for accessibility, sized like V9's h3 */
h2.railtitle,h2.hero-side-title{font-size:22px}
h2.hero-side-title{margin:12px 0 9px;font-size:28px}
.railcard h2.railtitle{margin-bottom:14px}
.guild-prompts .discussion-preview,.featuregrid .discussion-preview{padding:23px;display:flex;flex-direction:column;gap:10px;min-height:170px}
.discussion-preview h2,.discussion-preview h3{font-size:clamp(18px,1.7vw,22px);margin:0}
.discussion-preview p{margin:0;color:var(--muted)}
.coming-soon{margin-top:4px}
.coming-soon .btn{margin-top:10px}

/* Article body from the block editor */
.entry-content>*:first-child{margin-top:0}
.entry-content img,.entry-content video,.entry-content iframe{max-width:100%;height:auto;border-radius:12px}
.entry-content figure{margin:24px 0}
.entry-content figcaption,.article-cover figcaption{font-size:12px;color:var(--muted);margin-top:8px}
.article-cover{margin:0 0 26px}
.article-cover img{width:100%;height:auto;border-radius:14px;display:block}
.entry-content ol{padding-left:23px;line-height:1.95}
.entry-content table{width:100%;border-collapse:collapse;margin:20px 0;font-size:14px;display:block;overflow-x:auto}
.entry-content th,.entry-content td{border:1px solid var(--stroke);padding:10px 12px;text-align:left}
.entry-content th{background:var(--surface2)}
.entry-content pre,.entry-content code{background:var(--surface2);border-radius:8px;font-size:13px}
.entry-content pre{padding:16px;overflow-x:auto}
.entry-content code{padding:2px 6px}
.entry-content hr{border:0;border-top:1px solid var(--stroke);margin:30px 0}
.entry-content .wp-block-button__link{background:var(--accent);color:var(--accentInk);border-radius:10px;font-weight:800;text-decoration:none}
.policy-copy .entry-content ul,.policy-copy .entry-content ol{color:var(--muted)}
.alignwide,.alignfull{max-width:100%}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}

/* Table of contents (built by theme.js when a guide has 2+ sections) */
.articlelayout:not(.has-toc){grid-template-columns:minmax(0,1fr) 250px}
.toc .toc-link{display:block;color:var(--muted);padding:8px 0;font-size:12px;border-bottom:1px solid var(--stroke)}
.toc .toc-link:hover{color:var(--accent)}
.rail-hub{color:inherit;display:block}
.rail-hub:hover{border-color:var(--accent)}
.related-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important}
.related-grid .feature.lead{grid-column:auto}
@media(max-width:1120px){.articlelayout:not(.has-toc){grid-template-columns:minmax(0,1fr)}}

/* Hub extras */
.hub-edition{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 4px}
.hub-edition a.detail-chip:hover{border-color:var(--accent)}
.hub-extra{margin-top:20px}
.detailart img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}

/* Tools: single tool page */
.tool-single .tool-body{max-width:900px}
.cc-tool-detail-link a{color:var(--accent);font-weight:800}

/* Guild */
.guild-topic{margin:8px 0;color:var(--ink);font-weight:700;font-size:14px}
.guild-intro{margin-bottom:16px}
.guild-comments{margin-top:16px}

/* Comments */
.comment-list{list-style:none;margin:10px 0;padding:0}
.comment-list ol.children{list-style:none;padding-left:22px;border-left:2px solid var(--stroke);margin-left:6px}
.comment-list .comment{padding:18px 0;border-bottom:1px solid var(--stroke)}
.comment-list .comment-body{position:relative}
.comment-list .comment-author{display:flex;align-items:center;gap:10px;font-size:14px}
.comment-list .comment-author img{border-radius:50%}
.comment-list .comment-author .says{display:none}
.comment-list .comment-meta a,.comment-list .comment-metadata{font-size:12px;color:var(--muted)}
.comment-list .comment-content p{margin:9px 0;color:var(--ink)}
.comment-list .reply a{font-size:12px;color:var(--accent);font-weight:800}
.comment-awaiting-moderation{display:block;font-size:12px;color:var(--warm);margin-top:6px}
.comment-respond{margin-top:18px}
.comment-reply-title{font-size:20px;margin-bottom:8px}
.comment-reply-title small a{font-size:12px;color:var(--muted);margin-left:8px}
.comment-form p{margin:10px 0}
.comment-form label{display:block;font-size:13px;margin-bottom:6px;color:var(--muted)}
.comment-form input[type=text],.comment-form input[type=email],.comment-form input[type=url],.comment-form textarea{width:100%;background:var(--surface2);border:1px solid var(--stroke);color:var(--ink);padding:13px 14px;border-radius:11px}
.comment-form textarea{min-height:110px;resize:vertical}
.comment-form .comment-form-cookies-consent{display:flex;gap:8px;align-items:flex-start}
.comment-form .comment-form-cookies-consent label{margin:0}
.comment-form .form-submit .btn{border:0}

/* Pagination */
.cc-pagination{margin-top:26px}
.cc-pagination .nav-links{display:flex;flex-wrap:wrap;gap:8px}
.cc-pagination .page-numbers{padding:9px 14px;border:1px solid var(--stroke);border-radius:9px;background:var(--surface);font-size:12px;font-weight:800;color:var(--muted)}
.cc-pagination .page-numbers.current{background:var(--accent);border-color:var(--accent);color:var(--accentInk)}

/* Light-mode contrast for accent links on pale surfaces */
:root[data-theme=light] .link,:root[data-theme=light] .cc-tool-detail-link a,:root[data-theme=light] .comment-list .reply a,:root[data-theme=light] .toc .toc-link:hover{color:#47702d}

@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* --- Figma UI Polish: Editorial Cards & Authentic Game Media --- */
.featuregrid .card.feature {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.featuregrid .card.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 25, 27, 0.15) 0%, rgba(18, 25, 27, 0.65) 50%, rgba(15, 21, 23, 0.95) 100%);
  z-index: 1;
  pointer-events: none;
}
.featuregrid .card.feature > *:not(.feature-bg) {
  position: relative;
  z-index: 2;
}
.featuregrid .card.feature:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}
.featuregrid .card.feature .eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.featuregrid .card.feature h3 {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.35;
  color: #f8fafc;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
  margin-top: 6px;
}
.featuregrid .card.feature .meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 8px;
}

/* Subtle Tabletop Photography Focus */
.library .game {
  border-radius: 14px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.library .game:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.library .game .cover-img {
  filter: contrast(1.04) brightness(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.library .game:hover .cover-img {
  transform: scale(1.03);
}

/* ==========================================================================
   Crit & Canon Interactive "How to Play" Guide Components
   ========================================================================== */

/* 1. Quick Specs Grid */
.cc-guide-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 20px 0 30px;
}
.cc-guide-spec-box {
  background: var(--surface2);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
}
.cc-guide-spec-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.cc-guide-spec-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
}

/* 2. Interactive Card Anatomy & Field of Play (Showcase Carousels) */

.cc-showcase-box {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: clamp(18px, 3.5vw, 28px);
  margin: 32px 0 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

/* Card Type Switcher (Pill Segmented Control) */
.cc-type-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  background: var(--surface2);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.cc-type-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.cc-type-tab:hover {
  color: var(--ink);
}
.cc-type-tab.is-active {
  background: var(--accent);
  color: var(--accentInk);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
:root[data-theme="light"] .cc-type-tab.is-active {
  color: #1a2529;
}

/* Deck Viewports */
.cc-type-deck {
  display: none;
}
.cc-type-deck.is-active {
  display: block;
  animation: cc-fade 0.25s ease;
}

/* Center Card Stage */
.cc-card-stage {
  position: relative;
  background: radial-gradient(circle at 50% 30%, #172433 0%, #0d1622 100%);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 32px) 16px;
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}
:root[data-theme="light"] .cc-card-stage {
  background: radial-gradient(circle at 50% 30%, #f1f5f9 0%, #e2e8f0 100%);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
}

.cc-card-holder {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 280 / 390;
  line-height: 0;
  user-select: none;
}
.cc-card-art {
  width: 100%;
  height: 100%;
  aspect-ratio: 280 / 390;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  display: block;
}

/* Hotspots with Animated Pulse Halo */
.cc-hotspot {
  position: absolute;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  margin-left: -19px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 10;
  padding: 0;
  outline: none;
}
.cc-hotspot-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  pointer-events: none;
}
.cc-hotspot.is-active .cc-hotspot-ring {
  animation: cc-pulse-ring 2s infinite cubic-bezier(0.2, 0.8, 0.4, 1);
}
.cc-hotspot-core {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.75);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.cc-hotspot:hover .cc-hotspot-core {
  transform: scale(1.15);
  border-color: #ffffff;
}
.cc-hotspot.is-active .cc-hotspot-core {
  background: var(--accent);
  color: var(--accentInk);
  border-color: #ffffff;
  transform: scale(1.25);
  box-shadow: 0 0 18px var(--accent);
}
:root[data-theme="light"] .cc-hotspot.is-active .cc-hotspot-core {
  color: #1a2529;
}

/* Carousel Navigation Bar ([ < ] ● ○ ○ ○ ○ [ > ]) */
.cc-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}
.cc-nav-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--stroke);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.18s ease;
  padding: 0;
}
.cc-nav-arrow:hover:not(:disabled) {
  background: var(--accent);
  color: var(--accentInk);
  border-color: var(--accent);
  transform: scale(1.05);
}
:root[data-theme="light"] .cc-nav-arrow:hover:not(:disabled) {
  color: #1a2529;
}
.cc-nav-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}
.cc-nav-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--stroke);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.cc-dot:hover {
  background: var(--muted);
}
.cc-dot.is-active {
  width: 24px;
  border-radius: 999px;
  background: var(--accent);
}

/* Quick Jump Zone Pills */
.cc-zone-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.cc-pill {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  background: var(--surface2);
  border: 1px solid var(--stroke);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.16s ease;
}
.cc-pill:hover {
  color: var(--ink);
  border-color: var(--muted);
}
.cc-pill.is-active {
  background: var(--raised);
  border-color: var(--accent);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Info Showcase Panel */
.cc-info-deck {
  background: var(--raised);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: clamp(18px, 3vw, 24px);
  text-align: center;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow);
}
.cc-info-slide {
  display: none;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}
.cc-info-slide.is-active {
  display: block;
  animation: cc-fade 0.22s ease;
}
.cc-slide-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 6px;
  display: inline-block;
}
:root[data-theme="light"] .cc-slide-badge {
  color: #3d6824;
}
.cc-slide-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
  font-family: "Space Grotesk", system-ui, sans-serif;
}
.cc-slide-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.cc-slide-desc strong {
  color: var(--ink);
}

/* Field of Play (Playmat Stage) */
.cc-mat-stage {
  position: relative;
  background: radial-gradient(circle at 50% 30%, #172433 0%, #0d1622 100%);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 16px;
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}
:root[data-theme="light"] .cc-mat-stage {
  background: radial-gradient(circle at 50% 30%, #f1f5f9 0%, #e2e8f0 100%);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
}
.cc-mat-holder {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 560 / 350;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.cc-mat-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
  border-radius: 8px;
}
.cc-mat-img.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

/* Interactive Mat Zone Overlay Markers */
.cc-mat-marker {
  position: absolute;
  border-radius: 8px;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.22s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  outline: none;
  padding: 0;
}
.cc-mat-marker:hover {
  border-color: var(--accent);
  background: rgba(196, 233, 125, 0.15);
}
.cc-mat-marker.is-active {
  border: 2px solid var(--accent);
  background: rgba(196, 233, 125, 0.25);
  box-shadow: 0 0 16px var(--accent), inset 0 0 12px rgba(196, 233, 125, 0.3);
}
:root[data-theme="light"] .cc-mat-marker {
  border-color: rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.3);
}
:root[data-theme="light"] .cc-mat-marker.is-active {
  background: rgba(61, 104, 36, 0.2);
  border-color: #3d6824;
  box-shadow: 0 0 16px rgba(61, 104, 36, 0.4);
}
.cc-mat-marker-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.85);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}
.cc-mat-marker.is-active .cc-mat-marker-label {
  background: var(--accent);
  color: var(--accentInk);
  border-color: #ffffff;
}
:root[data-theme="light"] .cc-mat-marker.is-active .cc-mat-marker-label {
  color: #1a2529;
}

/* Keyframe Animations */
@keyframes cc-pulse-ring {
  0% { transform: scale(0.6); opacity: 0.9; }
  50% { transform: scale(1.3); opacity: 0.35; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes cc-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 3. Fast Cards Grid */
.cc-fastcards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
@media (max-width: 780px) {
  .cc-fastcards-grid {
    grid-template-columns: 1fr;
  }
}
.cc-fastcard {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.cc-fastcard:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.cc-fastcard-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(196, 233, 125, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  align-self: flex-start;
}
:root[data-theme="light"] .cc-fastcard-badge {
  color: #3d6824;
  background: rgba(61, 104, 36, 0.1);
}
.cc-fastcard-rule {
  background: var(--surface2);
  border-left: 3px solid var(--accent);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-top: auto;
}

/* 4. Stepped Turn Carousel */
.cc-stepper-box {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 24px;
  margin: 28px 0;
}
.cc-stepper-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--stroke);
  padding-bottom: 14px;
  margin-bottom: 20px;
  overflow-x: auto;
}
.cc-stepper-tab {
  background: var(--surface2);
  border: 1px solid var(--stroke);
  color: var(--muted);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.cc-stepper-tab.is-active {
  background: var(--accent);
  color: var(--accentInk);
  border-color: var(--accent);
}
.cc-stepper-panel {
  display: none;
}
.cc-stepper-panel.is-active {
  display: block;
  animation: cc-fade 0.2s ease;
}
@keyframes cc-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* 5. Interactive Micro-Exercise (First Turn Challenge) */
.cc-quiz-wrapper {
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface2) 100%);
  border: 2px solid var(--accent);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 36px);
  margin: 36px 0;
}
.cc-quiz-header {
  margin-bottom: 20px;
}
.cc-quiz-question-card {
  background: var(--raised);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
}
.cc-quiz-q-num {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 6px;
  display: block;
}
:root[data-theme="light"] .cc-quiz-q-num {
  color: #3d6824;
}
.cc-quiz-q-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: 14px;
}
.cc-quiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.cc-quiz-btn {
  background: var(--surface2);
  border: 1px solid var(--stroke);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  text-align: left;
  line-height: 1.4;
}
.cc-quiz-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.cc-quiz-btn.is-correct {
  background: #2f855a !important;
  color: #ffffff !important;
  border-color: #2f855a !important;
}
.cc-quiz-btn.is-incorrect {
  background: #c53030 !important;
  color: #ffffff !important;
  border-color: #c53030 !important;
  animation: cc-shake 0.3s ease;
}
@keyframes cc-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.cc-quiz-feedback {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: none;
}
.cc-quiz-feedback.is-visible {
  display: block;
}
.cc-quiz-feedback.correct-text {
  background: rgba(47, 133, 90, 0.12);
  border: 1px solid rgba(47, 133, 90, 0.3);
  color: #2f855a;
}
.cc-quiz-feedback.incorrect-text {
  background: rgba(197, 48, 48, 0.12);
  border: 1px solid rgba(197, 48, 48, 0.3);
  color: #c53030;
}

/* 6. Native Accordion (Advanced Drawer) */
.cc-accordion {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  margin: 14px 0;
  overflow: hidden;
}
.cc-accordion summary {
  padding: 16px 20px;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cc-accordion summary::-webkit-details-marker {
  display: none;
}
.cc-accordion summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 700;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.cc-accordion[open] summary::after {
  content: "−";
  color: var(--accent);
}
.cc-accordion-body {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* 7. Navigation Dropdown & 3-Pillar Editorial Taxonomy */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-arrow {
  font-size: 10px;
  line-height: 1;
  transition: transform 0.2s ease;
  color: var(--muted);
}
.nav-dropdown:hover .nav-arrow,
.nav-dropdown:focus-within .nav-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-item {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-item:hover {
  background: var(--surface2);
  color: var(--accent);
}
.nav-dropdown-item.active {
  background: var(--raised);
  color: var(--accent);
}

/* Category Archive Filter Pills */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 28px;
}
.filter {
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--stroke);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.filter:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-1px);
}
.filter.active {
  background: var(--accent);
  color: var(--accentInk, #1f292c);
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(196, 233, 125, 0.35);
}

@media (max-width: 900px) {
  .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 6px 0 6px 14px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: flex;
    gap: 4px;
  }
  .nav-dropdown-item {
    font-size: 13px;
    padding: 9px 12px;
    background: var(--surface2);
    border: 1px solid var(--stroke);
  }
}

