/* DMARC Aggregate Report Analyzer landing page (tools/analyze-dmarc-reports only) */

/* Hero: mini result table */
.tp-dm-card{margin-top:14px;background:#fff;border:1px solid #d5dcec;border-radius:10px;box-shadow:0 12px 26px rgba(20,32,70,.06);overflow:hidden}
.tp-dm-card-head{display:grid;gap:2px;margin:0;padding:14px 16px 12px;border-bottom:1px solid #e6eaf4}
.tp-dm-card-head strong{font-size:15px;line-height:1.3;color:#17213c}
.tp-dm-card-head span{font-size:13px;line-height:1.45;color:#4a5670}
.tp-dm-scroll{max-width:100%;overflow-x:auto}
.tp-dm-scroll:focus-visible{outline:3px solid #284de8;outline-offset:-3px}
.tp-dm-table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.35;color:#17213c;font-variant-numeric:tabular-nums}
.tp-dm-table th,.tp-dm-table td{padding:10px 8px;text-align:left;vertical-align:top;border-bottom:1px solid #eef1f7;white-space:nowrap}
.tp-dm-table th:first-child,.tp-dm-table td:first-child{padding-left:16px}
.tp-dm-table th:last-child,.tp-dm-table td:last-child{padding-right:16px}
.tp-dm-table thead th{padding-top:9px;padding-bottom:9px;font-size:12px;font-weight:700;letter-spacing:.02em;color:#4a5670;background:#f6f8fc}
.tp-dm-table tbody th{font-weight:600}
.tp-dm-table .tp-dm-num{text-align:right}
.tp-dm-ok,.tp-dm-no{display:inline-block;padding:1px 7px;border-radius:999px;font-size:12px;font-weight:700;line-height:1.5}
.tp-dm-ok{color:#155a37;background:#e3f4ea}
.tp-dm-no{color:#9b1c14;background:#fde8e6}
.tp-dm-table tr.tp-dm-bad th,.tp-dm-table tr.tp-dm-bad td{background:#fff5f4;border-bottom-color:#f6d3cf}
.tp-dm-table tr.tp-dm-bad th:first-child{box-shadow:inset 4px 0 0 #c4321f}
.tp-dm-flag{display:block;margin-top:3px;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#9b1c14}
.tp-dm-card-foot{margin:0;padding:11px 16px;font-size:13px;line-height:1.45;color:#4a5670}
.tp-dm-example figcaption{margin-top:18px}

@media (max-width:480px){
  .tp-dm-table{font-size:13px}
  .tp-dm-table th,.tp-dm-table td{padding:9px 5px}
  .tp-dm-table th:first-child,.tp-dm-table td:first-child{padding-left:10px}
  .tp-dm-table th:last-child,.tp-dm-table td:last-child{padding-right:10px}
  .tp-dm-table thead th{font-size:11px;letter-spacing:0}
  .tp-dm-ok,.tp-dm-no{padding:1px 5px;font-size:11px}
  .tp-dm-card-head,.tp-dm-card-foot{padding-left:10px;padding-right:10px}
}

/* Prepared example section */
.tp-dm-demo-body{display:grid;gap:16px;padding:20px;border:1px solid #d5dcec;border-radius:12px;background:#f6f8fc}
.tp-dm-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0}
.tp-dm-stats div{padding:12px 14px;border:1px solid #dbe2f3;border-radius:10px;background:#fff}
.tp-dm-stats dt{font-size:13px;color:#4a5670}
.tp-dm-stats dd{margin:2px 0 0;font-size:22px;font-weight:700;line-height:1.2;color:#17213c;font-variant-numeric:tabular-nums}
.tp-dm-findings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none}
.tp-dm-findings li{display:grid;gap:6px;align-content:start;padding:14px 16px;border:1px solid #dbe2f3;border-radius:10px;background:#fff}
.tp-dm-findings span{justify-self:start;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:700;color:#28416f;background:#e8eefb}
.tp-dm-findings .tp-dm-urgent{border-color:#f0c4be;box-shadow:inset 4px 0 0 #c4321f}
.tp-dm-findings .tp-dm-urgent span{color:#9b1c14;background:#fde8e6}
.tp-dm-findings .tp-dm-important span{color:#7a4a00;background:#fdf0d8}
.tp-dm-findings strong{font-size:16px;line-height:1.35;color:#17213c}
.tp-dm-findings small{font-size:14px;line-height:1.5;color:#3f4b63;overflow-wrap:anywhere}
.tp-dm-package{padding:14px 16px;border:1px solid #dbe2f3;border-radius:10px;background:#fff}
.tp-dm-package h3{margin:0 0 8px;font-size:16px;color:#17213c}
.tp-dm-package ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 20px;margin:0;padding:0;list-style:none}
.tp-dm-package li{font-size:14px;line-height:1.5;color:#3f4b63}
.tp-dm-package b{color:#17213c}

@media (max-width:900px){
  .tp-dm-findings{grid-template-columns:1fr}
  .tp-dm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
  .tp-dm-demo-body{padding:12px}
  .tp-dm-package ul{grid-template-columns:1fr}
  .tp-dm-stats dd{font-size:19px}
}

/* How it works */
.tp-dm-bullets{display:grid;gap:10px;margin:14px 0 26px;padding:0;list-style:none}
.tp-dm-bullets li{position:relative;padding-left:22px;font-size:16px;line-height:1.55;color:#3f4b63}
.tp-dm-bullets li::before{content:"";position:absolute;left:3px;top:.45em;width:9px;height:5px;border-left:2px solid #1f7a4d;border-bottom:2px solid #1f7a4d;transform:rotate(-45deg)}
.tp-dm-links{display:flex;flex-wrap:wrap;gap:4px 18px;margin-top:8px}
.tp-dm-links a{display:inline-flex;align-items:center;min-height:40px}

/* Narrow phones: each source becomes a two-line row */
@media (max-width:440px){
  .tp-dm-example{padding:16px 12px}
  .tp-dm-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .tp-dm-table,.tp-dm-table tbody{display:block;width:100%}
  .tp-dm-table tr{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:6px 10px;padding:10px;border-bottom:1px solid #eef1f7}
  .tp-dm-table th,.tp-dm-table td,.tp-dm-table th:first-child,.tp-dm-table td:first-child,.tp-dm-table th:last-child,.tp-dm-table td:last-child{padding:0;border:0;background:none}
  .tp-dm-table tbody th{grid-column:1 / 3;font-size:14px}
  .tp-dm-table td.tp-dm-num{grid-column:3;justify-self:end;align-self:start;font-weight:600}
  .tp-dm-table td.tp-dm-num::after{content:"msgs";margin-left:3px;font-weight:400;font-size:12px;color:#4a5670}
  .tp-dm-table td[data-l]{display:flex;align-items:center;gap:4px;font-size:11px}
  .tp-dm-table td[data-l]::before{content:attr(data-l);color:#4a5670}
  .tp-dm-table tr.tp-dm-bad{background:#fff5f4;box-shadow:inset 4px 0 0 #c4321f}
  .tp-dm-table tr.tp-dm-bad th,.tp-dm-table tr.tp-dm-bad th:first-child,.tp-dm-table tr.tp-dm-bad td{background:none;box-shadow:none}
}

/* Hero start card: action row plus one line (tp2) */
.tp-dm-start{display:grid;gap:12px}
.tp-dm-start-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin:0}
.tp-dm-start-actions a{min-height:44px;display:inline-flex;align-items:center}
.tp-dm-start-note{display:flex;flex-wrap:wrap;align-items:center;gap:2px 14px;margin:0;font-size:14px;line-height:1.5;color:#3f4b63}
.tp-dm-start-note a{display:inline-flex;align-items:center;min-height:40px;font-weight:700;color:#284de8}
.tp-dm-start-note a:focus-visible,.tp-dm-links a:focus-visible,.tp-dm-related a:focus-visible{outline:3px solid #284de8;outline-offset:2px}

/* Single Limits section */
.tp-dm-limits h2{margin:6px 0 18px}
.tp-dm-limit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.tp-dm-limit-card{display:flex;flex-direction:column;padding:16px 18px;border:1px solid #d5dcec;border-radius:10px;background:#fff}
.tp-dm-limit-card h3{margin:0 0 8px;font-size:16px;color:#17213c}
.tp-dm-limit-card ul{display:grid;gap:6px;margin:0;padding:0 0 0 18px}
.tp-dm-limit-card li{font-size:14px;line-height:1.5;color:#3f4b63}
.tp-dm-limit-card .tp-dm-links{margin-top:auto;padding-top:8px}
@media (max-width:1000px){.tp-dm-limit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.tp-dm-limit-grid{grid-template-columns:1fr}}

/* Related links: spaced row */
.tp-dm-related{display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:0;list-style:none}
.tp-dm-related a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid #d5dcec;background:#fff;color:#284de8;font-weight:600;text-decoration:none}
.tp-dm-related a:hover{border-color:#284de8}
