/* Copyright The Marin Authors. SPDX-License-Identifier: Apache-2.0 */
.coverage-totals { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; font-size: 13px; color: var(--muted); }
.coverage-totals strong { font-size: 23px; font-weight: 600; color: #294a35; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.coverage-totals > span:last-child { font-size: 12px; }
.matrix-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 20px; }
.matrix-heading nav { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 13px; }
.breadcrumb { border: 0; background: none; padding: 4px 0; font-size: 13px; color: var(--green); }
.breadcrumb:hover { text-decoration: underline; }
.breadcrumb[aria-current] { color: #314a3a; font-weight: 600; }
.heat-legend { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.heat-legend > span:first-child { width: 75px; height: 7px; border-radius: 3px; background: linear-gradient(90deg, #f1f6f2, #89b79f, #1d6a4d); }
.heat-legend b { font-weight: 500; }
.scope-note { margin: 0 20px 16px; color: var(--muted); font-size: 12px; }
.curriculum-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0 20px 20px; align-items: start; }
.domain-card { min-width: 0; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.domain-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 14px 0; }
.domain-header h2 { font-size: 15px; line-height: 1.4; margin: 0; min-width: 0; }
.domain-title { border: 0; background: none; text-align: left; padding: 0; color: #2b5039; font-weight: 600; line-height: 1.4; }
.domain-title:hover { text-decoration: underline; }
.domain-count { border: 0; background: #eaf3ed; border-radius: 4px; padding: 5px 7px; font-size: 12px; font-weight: 600; color: #245a3b; font-variant-numeric: tabular-nums; white-space: nowrap; }
.domain-count:hover { background: #d7eadc; }
.domain-subtitle { font-size: 11px; color: var(--muted); margin: 7px 14px 13px; }
.map-topics { display: grid; gap: 5px; padding: 0 8px 8px; }
.map-branch { min-width: 0; }
.map-area { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 43px; border-radius: 4px; padding: 5px 9px; }
.map-area-name, .map-area-count { border: 0; background: none; color: inherit; padding: 4px 0; line-height: 1.45; }
.map-area-name { text-align: left; font-size: 12px; min-width: 0; overflow-wrap: anywhere; }
.map-area-name:hover { text-decoration: underline; }
.map-area-count { font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.map-area-count:hover { text-decoration: underline; }
.map-area.zero { background: #f7f8f6; color: #819087; border: 1px solid #e5eae4; }
.map-children { display: grid; gap: 4px; padding: 5px 0 8px 7px; border-left: 2px solid #e8eee8; margin: 4px 0 5px 4px; }
.map-children .map-area { min-height: 36px; }
.map-children .map-area-name { font-size: 11px; }
.curriculum-map.focused { grid-template-columns: minmax(0, 1fr); }
.focused .domain-header h2 { font-size: 20px; }
.focused .domain-count { font-size: 16px; }
.focused .map-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; padding: 0 14px 16px; align-items: start; }
.focused .map-topics > .map-branch { border: 1px solid var(--line); border-radius: 6px; padding: 6px; }
.domain-examples { margin: 0 14px 13px; padding: 0; }
.outcome-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.outcome-button { display: flex; gap: 9px; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 5px; padding: 9px 11px; color: #617469; font-size: 12px; }
.outcome-button b { color: #31553d; font-weight: 600; font-variant-numeric: tabular-nums; }
.outcome-button:hover { border-color: #84ac91; }
.task-panel { margin-top: 20px; }
.task-panel #task-scope { font-size: 12px; color: var(--muted); margin: 7px 0 0; }
.task-list { max-height: 480px; overflow: auto; border-top: 1px solid var(--line); }
.task-row { display: grid; grid-template-columns: 200px 1fr 110px; gap: 20px; border: 0; border-bottom: 1px solid var(--line); padding: 16px 20px; width: 100%; text-align: left; background: #fff; align-items: center; color: #304a39; }
.task-row:hover { background: #f7faf5; }
.task-source { font-size: 11px; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; }
.task-description { font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.task-outcome { text-align: right; font-size: 11px; color: var(--muted); }
.task-id { display: block; color: #8a988f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-panel .status-line { margin: 15px 20px; }
.task-panel > #more-tasks { margin: 0 20px 18px; }
.population-chip { display: inline-block; color: #276644; background: #e9f2eb; border: 1px solid #cfdfd2; border-radius: 4px; padding: 5px 8px; font-size: 12px; }
#task-detail { width: min(800px, 100vw); }
#detail-source, #preview-note { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
#detail-task-id { font: 11px/1.7 ui-monospace, monospace; color: var(--muted); overflow-wrap: anywhere; }
#task-detail pre { font: 12px/1.7 ui-monospace, monospace; background: #f1f4ef; padding: 16px; border-radius: 5px; }
#task-detail .description { font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
#task-detail details { margin-top: 22px; font-size: 12px; }
#detail-matches table { table-layout: fixed; }
#detail-matches td { height: auto; padding: 9px 7px; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
#detail-matches th { position: static; padding: 9px 7px; font-size: 11px; }
#detail-matches th:first-child { width: 42%; }
#detail-matches th:last-child { width: 27%; }
#detail-matches .score { text-align: right; font-variant-numeric: tabular-nums; }
.score-status { color: #657c6b; font-size: 11px; }
.score-status.outside { color: #95652b; }
@media (max-width: 1200px) {
  .curriculum-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .focused .map-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .page-heading { flex-wrap: wrap; }
  .coverage-totals { align-items: flex-start; flex-direction: row; gap: 10px; width: 100%; }
  .coverage-totals > span:last-child { align-self: center; }
  .coverage-totals strong { font-size: 19px; }
  .matrix-heading { padding: 15px 12px; align-items: flex-start; flex-direction: column; gap: 10px; }
  .curriculum-map { grid-template-columns: minmax(0, 1fr); padding: 0 12px 14px; gap: 12px; }
  .focused .map-topics { grid-template-columns: minmax(0, 1fr); padding: 0 8px 10px; }
  .domain-header { padding: 14px 12px 0; }
  .domain-count { font-size: 12px; }
  .domain-subtitle { margin-left: 12px; }
  .scope-note { margin-left: 12px; margin-right: 12px; }
  .task-row { grid-template-columns: 100px 1fr; gap: 12px; padding: 14px 12px; }
  .task-outcome { display: none; }
  .map-area-count { min-width: 35px; min-height: 35px; }
}
