/* Page layout only. Shared site tokens/cards/badges come from content.css. */
:root{color-scheme:light}
a:focus-visible{outline:3px solid var(--orange);outline-offset:4px}
.hero .brand-logo{width:210px;max-width:60vw;height:auto;display:block;margin:0 auto 6px}
.hero .home-link{display:inline-block;color:var(--blue);font-size:13px;font-weight:700}
main.wrap{max-width:1280px;padding:28px 24px 40px}
.page-intro{max-width:850px;margin-bottom:22px}
h1{color:var(--blue-dark);font-size:clamp(27px,4vw,36px);line-height:1.35;margin:0 0 12px}
.page-intro>p{color:var(--muted);margin:10px 0}
.note{background:#fff8ee;border:1px solid #ffe2bd;border-radius:8px;padding:10px 14px;font-size:13px;line-height:1.65}
.manual-note{font-size:13px}.example.card{padding:24px;margin:28px 0;overflow:hidden}
.example h2{margin:0 0 10px;font-size:23px;line-height:1.5}.example-summary{max-width:950px;margin:8px 0 12px}
.meta,.source-line{color:var(--muted);font-size:12px;line-height:1.65;margin:8px 0}.source-line a{font-weight:600;overflow-wrap:anywhere}.result-note{border-left:3px solid var(--orange)}
.team-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;max-width:520px;padding:10px;margin:18px 0;background:#f2f6fc;border:1px solid #e1e9f4;border-radius:12px}
.team-strip a{display:grid;place-items:center;border-radius:8px}.team-strip a:hover{background:#fff}.strip-sprite{width:54px;height:54px;max-width:100%;object-fit:contain}
.te-members{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.member-card{min-width:0;border:1px solid var(--line);border-radius:14px;padding:16px;background:var(--card-bg);box-shadow:0 2px 8px #103d8507;scroll-margin-top:20px}
.member-head{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;align-items:center;padding-bottom:14px;border-bottom:1px solid var(--line)}
.portrait{display:grid;place-items:center;background:linear-gradient(150deg,#f1f6fc,#fff9ed);border-radius:12px;min-height:118px}.pokemon-art{width:112px;height:112px;object-fit:contain;max-width:100%}
.member-info{min-width:0}.member-info h3{font-size:19px;font-weight:800;line-height:1.45;margin:0 0 7px;overflow-wrap:anywhere}.member-info h3 a{color:var(--text)}.gender{font-size:13px;color:var(--muted);white-space:nowrap}
.types{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:6px}.te-type.badge{font-size:11px;padding:2px 8px;border-radius:5px;margin:0;line-height:1.7}
.qualities{display:flex;gap:5px;flex-wrap:wrap;margin:6px 0}.quality{background:#f3f4f6;border:1px solid #eceef1;border-radius:5px;padding:2px 7px;font-size:12px;overflow-wrap:anywhere}
.held-item{display:flex;align-items:center;gap:7px;font-size:12px;line-height:1.5;margin-top:7px}.item-art{width:28px;height:28px;flex:0 0 28px;display:grid;place-items:center}.item-art img{object-fit:contain;width:28px;height:28px;image-rendering:pixelated}.missing-art{border:1px dashed #b9c6d7;border-radius:6px;color:#7a8a9f;font-size:18px}
.member-moves{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:0;margin:14px 0}.member-moves li{display:flex;align-items:center;gap:7px;min-width:0;padding:7px 9px;background:#f6f7f9;border-radius:7px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.move-dot{width:8px;height:8px;border-radius:50%;flex:0 0 8px}
.point-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px;text-align:center;margin:12px 0 0}.point-table caption{text-align:left;font-size:11px;color:var(--muted);margin-bottom:5px}.point-table th,.point-table td{text-align:center;padding:6px 1px;border:0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.point-table th{font-size:11px;background:#f8f9fb;color:#5f6d80;line-height:1.5}.point-table td{font-weight:700;font-variant-numeric:tabular-nums}.point-table th.nature-up{color:#d64c5d}.point-table th.nature-down{color:#2b84c6}
.mega-row{display:flex;align-items:center;gap:8px;border-top:1px solid var(--line);margin-top:12px;padding-top:10px;font-size:12px}.mega-art{height:44px;width:44px;object-fit:contain}.member-note{font-size:11px;margin:10px 0 0}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.actions a{display:inline-block;background:var(--blue);color:#fff;padding:9px 14px;border-radius:8px;font-size:13px;font-weight:700}.actions a:hover{background:var(--blue-dark);text-decoration:none}.actions a:first-child{background:var(--orange)}
@media(min-width:1180px){.te-members{grid-template-columns:repeat(3,minmax(0,1fr))}.member-head{grid-template-columns:94px minmax(0,1fr)}.pokemon-art{width:94px;height:104px}}
@media(max-width:760px){main.wrap{padding:20px 14px}.example.card{padding:18px 14px}.te-members{grid-template-columns:1fr;gap:14px}.member-card{padding:14px}.example h2{font-size:20px}}
@media(max-width:380px){.member-head{grid-template-columns:88px minmax(0,1fr);gap:9px}.pokemon-art{width:88px;height:100px}.member-info h3{font-size:17px}.team-strip{gap:2px;padding:6px}.strip-sprite{height:42px}.member-moves{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.example-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:20px 0 10px}.example-controls label{display:flex;flex-direction:column;gap:5px;flex:1 1 155px;font-size:13px;color:var(--muted)}.example-controls input,.example-controls select{padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--card-bg);color:var(--text);width:100%;min-height:42px;font:inherit}.example-controls input{min-width:180px}#example-count{font-size:13px;color:var(--muted)}.team-sets>summary{cursor:pointer;font-weight:700;color:var(--blue);padding:10px 0}.team-sets[open]>summary{margin-bottom:12px}.note a{display:inline-block;margin-left:10px}
