/* Previous open guild header, with match results grouped beneath the cape. */
.guild-profile-shell .gp-summary-with-record .gp-hero { grid-template-columns:132px minmax(0,1fr); align-content:start; }
.gp-summary-with-record .gp-cape-column { grid-column:1; grid-row:1 / 4; display:flex; flex-direction:column; align-items:center; gap:16px; min-width:0; }
.guild-profile-shell .gp-summary-with-record .gp-cape { grid-row:auto; flex:none; align-self:center; }
.gp-summary-with-record .gp-identity { grid-column:2; grid-row:1; }
.gp-summary-with-record .gp-hero > .gp-summary-records { grid-column:2; grid-row:2; }
.gp-summary-with-record .gp-hero > .gp-stat-status { grid-column:2; grid-row:3; }
.gp-record-under-cape { box-sizing:border-box; width:100%; padding:10px 8px; border:1px solid #e4bb694d; border-radius:4px; background:#0b12168c; }
.gp-record-under-cape .gp-summary-records { width:100%; max-width:none; }
.gp-record-under-cape :is(tbody,tr) { display:block; }
.gp-record-under-cape .gp-summary-records :is(th,td) { display:block; padding:0; text-align:center; }
.gp-record-under-cape .gp-summary-records th { font-size:11px; }
.gp-record-under-cape tr:first-child td { margin-top:2px; font-size:28px; line-height:1.15; }
.gp-record-under-cape tr:nth-child(2) { margin:8px 0; }
.gp-record-under-cape tr:nth-child(2) td { font-size:14px; white-space:nowrap; }
.gp-record-under-cape tr:nth-child(2) th { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.gp-record-under-cape tr:last-child { display:flex; align-items:baseline; justify-content:center; gap:6px; }
.gp-record-under-cape tr:last-child td { font-size:18px; }
@media(max-width:760px) {
 .guild-profile-shell .gp-summary-with-record .gp-hero { grid-template-columns:112px minmax(0,1fr); }
}
@media(max-width:440px) {
 .guild-profile-shell .gp-summary-with-record { padding-inline:12px; }
 .guild-profile-shell .gp-summary-with-record .gp-hero { grid-template-columns:104px minmax(0,1fr); gap:12px; }
 .gp-record-under-cape { padding:10px 4px; }
 .gp-record-under-cape tr:nth-child(2) td { font-size:12px; }
}

/* Frame the existing staggered entries without moving their month anchors. */
.is-dense .gp-placement-entry { display:flex; flex-direction:column; flex:1; min-width:0; box-sizing:border-box; padding:10px; border:1px solid #e4bb6945; border-radius:4px; background:#0b1216c4; }
.is-dense .is-winner .gp-placement-entry { border-color:#e4bb6980; }
@media(max-width:760px) {
 .is-dense .gp-placement-entry { padding:8px; }
}

.gp-placement-details .gp-placement-match { color:var(--gp-muted); text-decoration:none; text-underline-offset:3px; }
.gp-placement-match-arrow { display:inline-block; flex:none; margin-left:4px; vertical-align:-2px; color:var(--gp-accent); }
.gp-placement-details .gp-placement-match:is(:hover,:focus-visible) { color:var(--gp-accent); text-decoration:underline; }
.gp-placement-details .gp-placement-match-icon { display:inline-flex; align-items:center; justify-content:center; min-width:24px; min-height:24px; }
.gp-placement-match-icon .gp-placement-match-arrow { margin:0; vertical-align:initial; }

/* A quiet plot field separates the gold history from the scenic header. */
.guild-profile-shell .gp-summary .gp-rating-chart { box-sizing:border-box; border:1px solid #b4c0c51c; border-radius:4px; background:#0b12167a; }

/* Month and captured rank use the same top row in every placement card. */
.gp-placement-entry { position:relative; }
.is-dense .gp-placement-entry > time { padding-right:30px; }
.is-dense .gp-placement-entry .gp-placement-rank { position:absolute; top:10px; right:10px; margin:0; color:var(--gp-accent); font:600 12px/1.4 var(--font-sans); }
@media(max-width:760px) { .is-dense .gp-placement-entry .gp-placement-rank { top:8px; right:8px; } }
