/* Marriland-inspired type coverage for both ChampionsAI Web and Desktop.
 * Separate, scoped styling prevents changes to other tables or battles. */
.marriland-dashboard{
 --mc-navy:#172c52;--mc-panel:#192f58;--mc-cell:#294f9b;--mc-grid:rgba(255,255,255,.07);
 border:1px solid #365385;border-radius:14px;overflow:hidden;
 background:var(--mc-navy);color:#f1f6ff;margin:18px 0 22px;
 box-shadow:0 12px 35px rgba(0,0,0,.12)
}
.marriland-header{
 display:flex;align-items:center;justify-content:space-between;gap:18px;
 padding:17px 19px 12px;background:#142747
}
.marriland-header h2{font-size:19px;line-height:1.25;color:#fff;margin:3px 0 6px}
.marriland-header p{margin:0;font-size:12px;line-height:1.45;color:#c5d6f4}
.marriland-kicker{font-size:10px;font-weight:700;letter-spacing:.11em;color:#9dd9ee}
.marriland-team-progress{font-size:12px;padding:7px 12px;border-radius:22px;white-space:nowrap;color:#d8e8ff;background:#284274;border:1px solid #486696;font-variant-numeric:tabular-nums}
.marriland-legend{
 display:flex;flex-wrap:wrap;gap:7px;padding:9px 18px;background:#132542;
 border-block:1px solid rgba(255,255,255,.06)
}
.marriland-legend span{font-weight:650;font-size:11px;padding:5px 9px;border-radius:5px;border:1px solid rgba(255,255,255,.12)}
.marriland-legend-immune{background:#6b707e;color:#fff}
.marriland-legend-resist{background:#176846;color:#b9ffe1}
.marriland-legend-neutral{background:#2b4c8b;color:#dce7ff}
.marriland-legend-weak{background:#8d2935;color:#ffe0df}
.marriland-section{padding:12px 16px 16px}
.marriland-section+.marriland-section{border-top:1px solid #365385}
.marriland-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:1px 1px 12px}
.marriland-section-heading h3{font-size:17px;line-height:1.2;color:#fff;margin:0 0 4px;text-align:left}
.marriland-section-heading p{font-size:11px;line-height:1.4;color:#c5d6f4;margin:0}
.marriland-section-chip{background:#294b81;border:1px solid #42679e;border-radius:5px;white-space:nowrap;padding:5px 9px;font-size:10px;font-weight:750;color:#dcf6ff}
.marriland-table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border:2px solid #405e8f;border-radius:9px;background:#19355f;scrollbar-width:thin;scrollbar-color:#728fce #162a49}
.marriland-table{width:100%;min-width:850px;border-spacing:0;border-collapse:separate;table-layout:fixed;margin:0;color:#fff;background:#245099}
.marriland-table th,.marriland-table td{box-sizing:border-box;text-align:center;margin:0;vertical-align:middle;border-right:1px solid var(--mc-grid);border-bottom:1px solid var(--mc-grid);padding:0}
.marriland-table thead th{height:105px;background:#122446;color:#fff;font-size:11px;font-weight:750}
.marriland-table thead th:first-child{width:94px;position:sticky;left:0;z-index:3;background:#152b51}
.marriland-table thead th.marriland-count-header{width:67px;white-space:normal;padding:4px 5px;line-height:1.25;background:#223c70}
.marriland-type-head>span{font-size:12px;font-weight:800;line-height:1.35;display:block}
.marriland-member{width:auto;padding:5px 3px!important;overflow:hidden}
.marriland-member-body{min-width:0;display:flex;align-items:center;justify-content:flex-end;flex-direction:column;gap:3px;height:100%}
.marriland-sprite{height:53px;max-width:65px;width:100%;object-fit:contain;image-rendering:auto}
.marriland-pokemon-name{display:block;font-size:11px;font-weight:800;line-height:1.2;max-width:100%;overflow-wrap:anywhere}
.marriland-member-types{display:flex;justify-content:center;align-items:center;gap:3px;flex-wrap:wrap;max-width:100%}
.marriland-member .marriland-type{padding:2px 5px;min-width:0;font-size:9px}
.marriland-member-empty{opacity:.58}
.marriland-member-empty .marriland-member-body{justify-content:center}
.marriland-member-empty small{font-size:10px;font-weight:400}
.marriland-pokeball{font-size:25px;color:#9bb6db;line-height:1}
.marriland-table tbody tr{height:28px}
.marriland-table tbody tr:nth-child(even) .marriland-match.neutral{background:#2e56a3}
.marriland-table tbody tr:nth-child(odd) .marriland-match.neutral{background:#284c93}
.marriland-row-type{width:94px;position:sticky;left:0;z-index:2;background:#14264a;padding:2px 4px!important}
.marriland-type{--type-color:#8192a4;display:inline-block;min-width:70px;max-width:100%;box-sizing:border-box;border-radius:5px;
 background:var(--type-color);color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.75);text-transform:uppercase;text-align:center;
 font-weight:850;font-size:10px;letter-spacing:.02em;padding:4px 5px;white-space:nowrap;
 box-shadow:inset 0 -2px 0 rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.2)}
.marriland-match{min-width:0;height:28px;color:#fff;font-variant-numeric:tabular-nums;font-size:14px;font-weight:900}
.marriland-match .marriland-multiplier{display:inline-block;line-height:1}
.marriland-match.resist{background:#244988;color:#45f782}
.marriland-match.weak{background:#3556a0;color:#ff8581}
.marriland-match.four-times{background:#64304d;color:#fff}
.marriland-match.four-times .marriland-multiplier{border-radius:14px;padding:3px 5px;background:#e12e43;color:#fff}
.marriland-match.immune{background:#315080}
.marriland-immunity{display:inline-block;border-radius:5px;padding:3px 5px;color:#fff;background:#707784;font-size:9px;font-weight:750}
.marriland-match.unknown{background:#243965;color:#a6b8db;font-size:12px}
.marriland-count{font-size:13px;font-weight:800;font-variant-numeric:tabular-nums}
.marriland-count.count-first{background:#573c81;color:#f6e9ff}
.marriland-count.count-first.medium{background:#854377}
.marriland-count.count-first.high{background:#ba2d3c;color:white}
.marriland-count.count-first.zero{background:#334677;color:#9db3d8}
.marriland-count.count-second{background:#176b4c;color:#e5ffef}
.marriland-count.count-second.strong{background:#137c4e}
.marriland-count.count-second.some{background:#256958}
.marriland-count.count-second.zero{background:#334677;color:#9db3d8}
.marriland-footnote{font-size:10px;line-height:1.5;color:#bfd0ea;padding:3px 18px 17px;margin:0}
.marriland-empty{border:1px dashed #557aa1;border-radius:12px;padding:18px;margin:14px 0;background:#16283f;color:#eff6ff}
.marriland-empty p{margin:6px 0 0;font-size:12px;color:#aec4dc}
.marriland-sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.marriland-table-scroll:focus-visible{outline:3px solid #94d8ff;outline-offset:3px}
@media(max-width:1050px){.marriland-section{padding:12px 10px}.marriland-header{padding:15px 12px}.marriland-table thead th{height:96px}}
@media(max-width:640px){.marriland-header{align-items:flex-start;flex-direction:column;gap:8px}.marriland-header h2{font-size:17px}.marriland-legend{padding:8px 10px}.marriland-section-heading{align-items:flex-start}.marriland-section-chip{display:none}.marriland-table{min-width:790px}.marriland-footnote{padding:4px 10px 15px}}

/* Match the editor cards to the cleaner Marriland overview without altering forms. */
#teams .team-grid{gap:13px}
#teams .team-card{padding:15px 17px;border-radius:11px}
#teams .team-card h3{font-size:15px;line-height:1.25;gap:9px;margin:0 0 6px}
#teams .team-card h3 img{width:55px;height:55px}
#teams .team-card .form-grid{gap:9px}
#teams .team-card .form-grid input{padding:8px}
#teams .team-card .team-bst-summary{margin-top:6px}
.marriland-card-types{display:flex;gap:5px;margin:0 0 11px 63px;flex-wrap:wrap}
.marriland-card-types .marriland-type{min-width:60px;font-size:9px}
.team-coverage-panel{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.team-coverage-panel>.team-summary{margin-top:0}
.team-coverage-panel .marriland-dashboard{margin-bottom:0}
/* Desktop card headers gain the same compact breathing room as the team matrix. */
.team-slot .slot-title{margin-bottom:12px}
.team-slot .slot-title img{width:54px;height:54px}
.team-slot .slot-title .eyebrow{font-size:10px}
@media(max-width:760px){#teams .team-grid{grid-template-columns:1fr}#teams .team-card{padding:13px}.marriland-card-types{margin-left:61px}}
