/* Extra pieces for the search landing pages (exercises, data study,
   walkthrough, lesson plans). They sit on top of blog.css. */
.container.wide { max-width: 56rem; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px 0; padding: 0; list-style: none; }
.pill-row a, .pill {
  display: inline-block;
  border: 1px solid rgba(212,175,55,0.55);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #ffd700;
  text-decoration: none;
  background: rgba(139,115,85,0.16);
}
.pill-row a:hover { background: rgba(212,175,55,0.25); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.stat {
  background: rgba(139,115,85,0.18);
  border: 1px solid rgba(139,115,85,0.5);
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
}
.stat b { display: block; font-family: 'Courier New', monospace; font-size: 26px; color: #ffd700; }
.stat span { font-family: Georgia, serif; font-size: 13.5px; color: rgba(240,230,210,0.9); }

/* Horizontal bar chart built from plain markup, so it needs no script. */
.bars { margin: 16px 0 8px 0; }
.bar-line { display: grid; grid-template-columns: 13.5rem 1fr 3.4rem; align-items: center; gap: 10px; margin-bottom: 7px; }
.bar-line .label { font-family: 'Courier New', monospace; font-size: 13px; color: #f0e6d2; }
.bar-line .track { background: rgba(240,230,210,0.1); border-radius: 4px; height: 16px; overflow: hidden; }
.bar-line .fill { display: block; height: 100%; background: #d4af37; border-radius: 4px; }
.bar-line .fill.alt { background: #b5533c; }
.bar-line .value { font-family: 'Courier New', monospace; font-size: 13px; color: #ffd700; text-align: right; }
.chart-note { font-family: Georgia, serif; font-size: 12.5px !important; color: rgba(240,230,210,0.7); margin-top: 0; }

.exercise {
  border: 1px solid rgba(139,115,85,0.55);
  border-left: 4px solid #d4af37;
  border-radius: 0 8px 8px 0;
  background: rgba(139,115,85,0.1);
  padding: 14px 16px 10px 16px;
  margin: 18px 0;
}
.exercise h3 { margin-top: 0; }
.exercise .meta { font-family: 'Courier New', monospace; font-size: 12.5px !important; color: rgba(240,230,210,0.75); margin: 0 0 8px 0 !important; }
.exercise .meta a { color: #c9a961; }
.exercise p { margin-bottom: 0.7em !important; }
.exercise .player-stat { font-size: 14.5px !important; color: #e8d9a8; }
.exercise details { margin: 8px 0; }
.exercise summary { cursor: pointer; font-family: 'Courier New', monospace; font-size: 13.5px; color: #ffd700; }
.exercise .try { display: inline-block; margin: 4px 0 6px 0; font-family: 'Courier New', monospace; font-size: 13.5px; color: #1a1a1a; background: rgba(212,175,55,0.95); padding: 6px 12px; border-radius: 8px; text-decoration: none; font-weight: bold; }
.exercise .try:hover { background: #d4af37; }

.skill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.skill-card { display: block; text-decoration: none; background: rgba(139,115,85,0.18); border: 1px solid rgba(139,115,85,0.5); border-radius: 8px; padding: 14px; color: #f0e6d2; }
.skill-card:hover { border-color: #d4af37; }
.skill-card strong { display: block; font-family: 'Courier New', monospace; color: #ffd700; font-size: 16px; margin-bottom: 4px; }
.skill-card span { font-family: Georgia, serif; font-size: 14.5px; line-height: 1.5; }
.skill-card em { display: block; margin-top: 6px; font-style: normal; font-family: 'Courier New', monospace; font-size: 12.5px; color: #c9a961; }

.schema { font-family: 'Courier New', monospace; font-size: 13px; }
.spoiler-warning { border: 1px dashed #b5533c; border-radius: 8px; padding: 10px 14px; background: rgba(181,83,60,0.12); }
.spoiler-warning p { margin: 0 !important; font-size: 15px !important; }

@media (max-width: 700px) {
  .skill-grid { grid-template-columns: 1fr; }
  .bar-line { grid-template-columns: 8.5rem 1fr 3rem; }
}
@media print {
  body { background: #fff !important; color: #000 !important; }
  .top-nav, .copyright-footer, .no-print, #qtm-feedback-btn { display: none !important; }
  .container { border: 0 !important; box-shadow: none !important; background: #fff !important; margin: 0 !important; max-width: none !important; }
  h1, h2, h3, .stat b, .pill, code { color: #000 !important; text-shadow: none !important; }
  main.container p, main.container li, main.container td, main.container th { color: #000 !important; font-size: 12pt !important; }
  a { color: #000 !important; }
}
