/* KipSlide Military Symbology — educational reference additions.
   Styling applies only to interface cards; standardised symbol geometry is untouched. */
.ms-library { display: grid; gap: 22px; margin: 26px 0 30px; }
.ms-library__intro { max-width: 92ch; }
.ms-eyebrow { color: var(--blue, #0e7f70); font: 700 11px/1.3 var(--fb, inherit); letter-spacing: .06em; text-transform: uppercase; }
.ms-library__title { margin: 6px 0 8px; font: 600 26px/1.2 var(--fd, inherit); }
.ms-library__description { margin: 0; color: var(--mu, #64748b); font: 500 14px/1.65 var(--fb, inherit); }
.ms-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ms-stat { padding: 14px 16px; border: 1px solid var(--line, #cbd5e1); border-radius: 16px; background: var(--bg, #fff); box-shadow: var(--up-s, none); }
.ms-stat__value { display: block; color: var(--blue, #0e7f70); font: 700 24px/1.2 var(--fd, inherit); }
.ms-stat__label { color: var(--mu, #64748b); font: 600 12px/1.4 var(--fb, inherit); }
.ms-section { min-width: 0; }
.ms-section__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }
.ms-section__head h2 { margin: 3px 0 0; font: 600 20px/1.25 var(--fd, inherit); }
.ms-section__head p { max-width: 80ch; margin: 0; color: var(--mu, #64748b); font: 500 12.5px/1.55 var(--fb, inherit); }
.ms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ms-card { padding: 14px; border: 1px solid var(--line, #cbd5e1); border-radius: 16px; background: var(--bg, #fff); box-shadow: var(--up-s, none); }
.ms-card h3 { margin: 0 0 6px; font: 600 15px/1.35 var(--fd, inherit); }
.ms-card p { margin: 0 0 8px; color: var(--mu, #64748b); font: 500 12.5px/1.5 var(--fb, inherit); }
.ms-card__code { color: var(--blue, #0e7f70); font: 700 11px/1.3 var(--fb, inherit); letter-spacing: .04em; }
.ms-card__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--mu, #64748b); font: 500 11.5px/1.4 var(--fb, inherit); }
.ms-card__meta a { color: var(--blue, #0e7f70); }
.ms-empty { color: var(--mu, #64748b); font: 600 12.5px/1.5 var(--fb, inherit); }
.ms-note { margin-top: 10px; color: var(--mu, #64748b); font: 500 12.5px/1.6 var(--fb, inherit); }
.ms-reference-table { width: 100%; border-collapse: collapse; font: 500 12.5px/1.5 var(--fb, inherit); }
.ms-reference-table th, .ms-reference-table td { padding: 10px 12px; border-bottom: 1px solid var(--line, #cbd5e1); text-align: left; vertical-align: top; }
.ms-reference-table th { color: var(--mu, #64748b); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.ms-reference-table a { color: var(--blue, #0e7f70); }
.ms-legal { padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--blue, #0e7f70) 8%, var(--bg, #fff)); }
.ms-legal strong { color: var(--blue, #0e7f70); }

@media (max-width: 720px) {
  .ms-library { gap: 18px; margin: 20px 0 24px; }
  .ms-library__title { font-size: 22px; }
  .ms-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ms-stat { padding: 11px 12px; }
  .ms-stat__value { font-size: 20px; }
  .ms-reference-table, .ms-reference-table tbody, .ms-reference-table tr, .ms-reference-table td { display: block; width: 100%; }
  .ms-reference-table thead { display: none; }
  .ms-reference-table tr { padding: 10px 0; border-bottom: 1px solid var(--line, #cbd5e1); }
  .ms-reference-table td { border: 0; padding: 3px 0; }
  .ms-reference-table td::before { display: block; color: var(--mu, #64748b); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; content: attr(data-label); }
}
