/* TTL Presumption Map v2.1. Styling matched to the TrainTeachLead.com theme on 2026-11-08
   (Lexend body, Montserrat headings, site palette, square buttons). Red is kept only for status colors.
   All rules are scoped to .ttlpm so the theme is untouched. Previous Arial styling: plugin ttl-presumption-map-backup-20261108. */
.ttlpm {
  --ttlpm-ink: #12141D;          /* site Foreground */
  --ttlpm-soft: #363C4F;         /* site Secondary */
  --ttlpm-rule: #D3D8DE;
  --ttlpm-line: #9AA4AF;
  --ttlpm-bg: #FFFFFF;           /* site Background */
  --ttlpm-tint: #F9FAFC;         /* site Tertiary */
  --ttlpm-accent: #0036F7;       /* site Primary */
  --ttlpm-accent-dark: #0029BD;
  --ttlpm-select: #E8EEFF;       /* light tint of Primary */
  --ttlpm-select-line: #A9BCFC;
  --ttlpm-font-body: var(--wp--preset--font-family--lexend, Lexend), Arial, Helvetica, sans-serif;
  --ttlpm-font-head: var(--wp--preset--font-family--montserrat, Montserrat), Arial, Helvetica, sans-serif;
  color: var(--ttlpm-ink);
  font-family: var(--ttlpm-font-body);
  font-size: 16px;
  line-height: 1.5;
  max-width: 1240px;
  margin: 0 auto;
}
.ttlpm *, .ttlpm *::before, .ttlpm *::after { box-sizing: border-box; }
.ttlpm button, .ttlpm input, .ttlpm select, .ttlpm textarea { font-family: inherit; }
.ttlpm p { margin: 0 0 10px; }
.ttlpm a { color: var(--ttlpm-accent); text-decoration: underline; }
.ttlpm a:hover { color: var(--ttlpm-accent-dark); }
.ttlpm button {
  font: inherit; font-size: 15px; color: var(--ttlpm-ink); background: var(--ttlpm-bg);
  border: 1px solid var(--ttlpm-line); border-radius: 0; padding: 8px 12px; cursor: pointer;
  line-height: 1.3; text-transform: none; letter-spacing: normal; box-shadow: none; min-height: 0; width: auto;
}
.ttlpm button:hover { background: var(--ttlpm-tint); }
.ttlpm button:focus-visible, .ttlpm [tabindex]:focus-visible, .ttlpm a:focus-visible, .ttlpm input:focus-visible {
  outline: 3px solid var(--ttlpm-accent); outline-offset: 2px;
}
.ttlpm .on { border-color: var(--ttlpm-accent); }

.ttlpm-loading { font-size: 16px; color: var(--ttlpm-soft); padding: 24px 0; }

/* Header */
.ttlpm-head { margin-bottom: 18px; }
.ttlpm-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ttlpm-accent); margin: 0 0 6px; }
.ttlpm .ttlpm-title { font-family: var(--ttlpm-font-head); font-size: 32px; line-height: 1.2; margin: 0 0 10px; color: var(--ttlpm-ink); font-weight: 500; }
.ttlpm-dek { font-size: 18px; color: var(--ttlpm-soft); max-width: 760px; }
.ttlpm-meta { font-size: 14px; color: var(--ttlpm-soft); }
.ttlpm-beta { display: inline-block; font-size: 14px; font-weight: 600; border: 1px solid var(--ttlpm-accent); color: var(--ttlpm-accent); border-radius: 0; padding: 0 6px; margin: 0 4px 0 2px; }

/* Role picker */
.ttlpm-roles { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.ttlpm-roles legend { font-family: var(--ttlpm-font-head); font-size: 18px; font-weight: 600; padding: 0; margin-bottom: 8px; }
.ttlpm-role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.ttlpm .ttlpm-role { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 10px 12px; border: 1px solid var(--ttlpm-rule); background: var(--ttlpm-bg); }
.ttlpm .ttlpm-role.on { background: var(--ttlpm-select); border: 2px solid var(--ttlpm-accent); padding: 9px 11px; }
.ttlpm-role-label { font-size: 16px; font-weight: 600; }
.ttlpm-role.on .ttlpm-role-label::before { content: "\2713  "; }
.ttlpm-role-hint { font-size: 14px; color: var(--ttlpm-soft); margin-top: 2px; }

/* Stats */
.ttlpm-stats { margin-bottom: 12px; }
.ttlpm-stats-h { font-size: 16px; margin-bottom: 8px; }
.ttlpm-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ttlpm .ttlpm-stat { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 12px; border: 1px solid var(--ttlpm-rule); border-left-width: 6px; }
.ttlpm .ttlpm-stat.on { background: var(--ttlpm-select); border-color: var(--ttlpm-accent); }
/* Status colors carry meaning; they stay independent of the site palette. */
.ttlpm-g-covered { border-left-color: #1B6E45 !important; }
.ttlpm-g-conditional { border-left-color: #E2A827 !important; }
.ttlpm-g-unclear { border-left-color: #8DA8D4 !important; }
.ttlpm-g-notcovered { border-left-color: #A8321F !important; }
.ttlpm-stat-n { font-family: var(--ttlpm-font-head); font-size: 30px; font-weight: 600; line-height: 1.1; }
.ttlpm-stat-l { font-size: 16px; font-weight: 600; }
.ttlpm-stat-s { font-size: 14px; color: var(--ttlpm-soft); }
.ttlpm-filter-note { font-size: 14px; color: var(--ttlpm-soft); margin-top: 6px; }

.ttlpm-federal { background: var(--ttlpm-tint); border: 1px solid var(--ttlpm-rule); border-left: 4px solid var(--ttlpm-accent); padding: 12px 14px; font-size: 15px; margin-bottom: 16px; }
.ttlpm-federal-sm { font-size: 14px; }

/* Tools */
.ttlpm-tools { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin-bottom: 10px; }
.ttlpm-search { flex: 1 1 260px; }
.ttlpm-search label { display: block; font-family: var(--ttlpm-font-head); font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.ttlpm-search input { width: 100%; font-size: 16px; padding: 9px 11px; border: 1px solid var(--ttlpm-line); border-radius: 0; color: var(--ttlpm-ink); background: #fff; }
.ttlpm-toggle { display: inline-flex; flex-wrap: wrap; }
.ttlpm-toggle button { border-radius: 0; margin-left: -1px; }
.ttlpm-toggle button:first-child { margin-left: 0; }
.ttlpm .ttlpm-toggle button.on { background: var(--ttlpm-select); border-color: var(--ttlpm-accent); font-weight: 600; position: relative; z-index: 1; }

/* Legend and badges */
.ttlpm-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; margin: 6px 0 10px; align-items: center; }
.ttlpm-legend-h { font-weight: 600; }
.ttlpm-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.ttlpm-sw { display: inline-block; width: 14px; height: 14px; border-radius: 2px; border: 1px solid rgba(0,0,0,.35); flex: 0 0 14px; }

/* Map */
.ttlpm-mapwrap { position: relative; border: 1px solid var(--ttlpm-rule); border-radius: 4px; background: #fff; padding: 10px; }
.ttlpm-svg { display: block; width: 100%; height: auto; }
.ttlpm-svg path, .ttlpm-svg circle { stroke: #FFFFFF; stroke-width: 1.2; cursor: pointer; transition: opacity .1s; }
.ttlpm-svg path:hover, .ttlpm-svg circle:hover, .ttlpm-svg path:focus, .ttlpm-svg circle:focus { stroke: #12141D; stroke-width: 2; outline: none; }
.ttlpm-dc-line { stroke: #12141D; stroke-width: 1; pointer-events: none; }
.ttlpm-dc-label { font-size: 14px; fill: #12141D; font-weight: 600; pointer-events: none; }
.ttlpm-tip { position: absolute; pointer-events: none; background: #fff; color: var(--ttlpm-ink); border: 1px solid var(--ttlpm-line); box-shadow: 0 2px 8px rgba(0,0,0,.18); border-radius: 4px; padding: 8px 10px; font-size: 14px; line-height: 1.4; transform: translate(-50%, calc(-100% - 12px)); opacity: 0; white-space: nowrap; z-index: 5; }
.ttlpm-tip.on { opacity: 1; }
.ttlpm-tip span { color: var(--ttlpm-soft); }

.ttlpm-terr { margin: 12px 0 18px; }
.ttlpm-terr-label { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ttlpm-soft); margin-bottom: 6px; }
.ttlpm-terr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ttlpm .ttlpm-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.ttlpm .ttlpm-chip.dim { opacity: .35; }
.ttlpm-chip-s { color: var(--ttlpm-soft); }

/* List */
.ttlpm-list { margin-bottom: 18px; overflow-x: auto; }
.ttlpm-table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.ttlpm-table caption { text-align: left; font-size: 14px; color: var(--ttlpm-soft); padding: 4px 0 8px; caption-side: top; }
.ttlpm-table th, .ttlpm-table td { border-bottom: 1px solid var(--ttlpm-rule); padding: 8px 10px; text-align: left; vertical-align: top; }
.ttlpm-table thead th { background: var(--ttlpm-tint); }
.ttlpm-table thead button { border: 0; background: none; padding: 0; font-weight: 600; font-size: 15px; }
.ttlpm-table thead button.on::after { content: " \25BE"; }
.ttlpm .ttlpm-link { border: 0; background: none; padding: 0; color: var(--ttlpm-accent); text-decoration: underline; font-size: 15px; text-align: left; }
.ttlpm .ttlpm-link:hover { color: var(--ttlpm-accent-dark); background: none; }
.ttlpm-empty { color: var(--ttlpm-soft); padding: 16px 0; }

/* Footer */
.ttlpm-foot { border-top: 1px solid var(--ttlpm-rule); padding-top: 14px; font-size: 15px; }
.ttlpm-defs summary { font-family: var(--ttlpm-font-head); font-weight: 600; cursor: pointer; font-size: 16px; margin-bottom: 8px; }
.ttlpm-defs dl { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 6px 14px; margin: 0 0 12px; }
.ttlpm-defs dt { margin: 0; }
.ttlpm-defs dd { margin: 0; font-size: 15px; color: var(--ttlpm-soft); }
.ttlpm-disclaimer { font-size: 14px; color: var(--ttlpm-soft); }
.ttlpm-credit { font-size: 14px; color: var(--ttlpm-soft); }

/* Panels (attached to body) */
.ttlpm-layer { max-width: none; margin: 0; }
.ttlpm-scrim { position: fixed; inset: 0; background: rgba(18, 20, 29, .45); opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 99998; }
.ttlpm-scrim.on { opacity: 1; pointer-events: auto; }
.ttlpm-panel { position: fixed; top: 0; right: 0; height: 100%; width: min(680px, 100%); background: #fff; color: var(--ttlpm-ink); overflow-y: auto; transform: translateX(105%); transition: transform .18s; z-index: 99999; box-shadow: -6px 0 24px rgba(0,0,0,.2); border-left: 4px solid var(--ttlpm-accent); }
.ttlpm-panel.on { transform: translateX(0); }
.ttlpm-panel:focus { outline: none; }
.ttlpm-fix { z-index: 100000; width: min(600px, 100%); }
.ttlpm-panel-head { position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--ttlpm-rule); padding: 18px 22px 12px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; z-index: 2; }
.ttlpm-panel-head h3 { font-family: var(--ttlpm-font-head); font-size: 26px; font-weight: 500; margin: 0 0 6px; line-height: 1.2; color: var(--ttlpm-ink); }
.ttlpm-panel-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ttlpm-pill { display: inline-block; font-size: 14px; border: 1px solid var(--ttlpm-rule); background: var(--ttlpm-tint); border-radius: 12px; padding: 2px 10px; }
.ttlpm-conf-high { border-color: #1B6E45; background: #E5F3EA; }
.ttlpm-conf-medium { border-color: #E2A827; background: #FBF1D9; }
.ttlpm .ttlpm-close { flex: 0 0 auto; }
.ttlpm-panel-body { padding: 16px 22px 40px; font-size: 16px; }
.ttlpm-you-box { background: var(--ttlpm-select); border: 1px solid var(--ttlpm-select-line); padding: 12px 14px; margin-bottom: 14px; }
.ttlpm-you-box .ttlpm-badge { font-size: 18px; font-weight: 600; }
.ttlpm-you-box .ttlpm-sw { width: 18px; height: 18px; flex-basis: 18px; }
.ttlpm-verdict { font-family: var(--ttlpm-font-head); font-size: 20px; font-weight: 600; margin: 4px 0 6px; color: var(--ttlpm-ink); }
.ttlpm-sum-def { font-size: 15px; color: var(--ttlpm-soft); }
.ttlpm-sum-h { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ttlpm-soft); margin: 10px 0 2px; }
.ttlpm-you-box .ttlpm-sum-list { margin: 0 0 6px 20px; padding: 0; }
.ttlpm-you-box .ttlpm-sum-list li { font-size: 15px; margin: 0 0 4px; }
.ttlpm-you-box p { font-size: 15px; }
.ttlpm-you-box .ttlpm-verdict { font-size: 20px; }
.ttlpm-sum-note { font-size: 14px; color: var(--ttlpm-soft); font-style: italic; margin-top: 8px; }
.ttlpm-betanote { font-size: 14px; color: var(--ttlpm-soft); border-left: 3px solid var(--ttlpm-accent); padding-left: 8px; }
.ttlpm-you-h { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ttlpm-soft); margin: 0 0 4px; }
.ttlpm-sec { margin: 0 0 16px; }
.ttlpm-sec h4, .ttlpm-sec summary { font-family: var(--ttlpm-font-head); font-size: 16px; font-weight: 600; margin: 0 0 6px; color: var(--ttlpm-ink); }
.ttlpm-sec summary { cursor: pointer; }
.ttlpm-sec ul { margin: 0 0 6px 20px; padding: 0; }
.ttlpm-sec li { margin: 0 0 6px; }
.ttlpm-sec p, .ttlpm-sec li { font-size: 15px; overflow-wrap: anywhere; }
.ttlpm-roles-t { border-collapse: collapse; width: 100%; font-size: 15px; }
.ttlpm-roles-t th, .ttlpm-roles-t td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--ttlpm-rule); font-weight: normal; }
.ttlpm-roles-t tr.me { background: var(--ttlpm-select); }
.ttlpm-roles-t tr.me th { font-weight: 600; }
.ttlpm-you { font-size: 14px; border: 1px solid var(--ttlpm-accent); color: var(--ttlpm-accent); padding: 0 5px; margin-left: 4px; }
.ttlpm-src li { font-size: 14px; }
.ttlpm-fix-cta { border: 1px solid var(--ttlpm-rule); padding: 12px 14px; background: var(--ttlpm-tint); margin: 18px 0 12px; }
.ttlpm .ttlpm-btn { border: 2px solid var(--ttlpm-accent); color: var(--ttlpm-accent); background: #fff; font-weight: 600; }
.ttlpm .ttlpm-btn:hover { background: var(--ttlpm-select); }
.ttlpm-fix-body { font-size: 16px; }
.ttlpm-fix-body .frm_forms { max-width: 100%; }
html.ttlpm-noscroll, html.ttlpm-noscroll body { overflow: hidden; }

@media (max-width: 760px) {
  .ttlpm .ttlpm-title { font-size: 26px; }
  .ttlpm-dek { font-size: 16px; }
  .ttlpm-stat-row { grid-template-columns: repeat(2, 1fr); }
  .ttlpm-role-grid { grid-template-columns: 1fr 1fr; }
  .ttlpm-defs dl { grid-template-columns: 1fr; }
  .ttlpm-panel-body, .ttlpm-panel-head { padding-left: 16px; padding-right: 16px; }
  .ttlpm-tip { display: none; }
}
@media (max-width: 600px) {
  .ttlpm-role-hint { display: none; }
  .ttlpm .ttlpm-role { padding: 9px 10px; }
}
