/* The original wordmark is the home heading. Give its lightning room to breathe. */
.clan-masthead, .season-section, .recruitment {
    width: min(69rem, calc(100% - 2 * var(--gutter)));
    margin-inline: auto;
}
.clan-masthead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(13rem, 17rem);
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
    padding-block: 0 clamp(2.6rem, 4vw, 4rem);
}
.clan-intro { min-width: 0; padding-top: clamp(2rem, 4vw, 3.5rem); }
.hero-art {
    line-height: 0;
    mix-blend-mode: lighten;
    display: flow-root;
    mask-image: radial-gradient(ellipse 67% 63% at 50% 52%, black 59%, transparent 100%),
                linear-gradient(to bottom, transparent, black 14%, black 78%, transparent),
                linear-gradient(to right, transparent, black 5%, black 94%, transparent);
    mask-composite: intersect;
}
.wordmark-frame { display: block; position: relative; isolation: isolate; margin-block: -8% -5%; }
.wordmark-frame img { width: 100%; height: auto; }
.wordmark-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    mix-blend-mode: screen;
}
@media (prefers-reduced-motion: reduce) { .wordmark-frame video { display: none; } }
.clan-description {
    max-width: 42ch;
    margin: 0 0 1.35rem 4%;
    font-size: clamp(1.05rem, 1.6vw, 1.32rem);
    line-height: 1.5;
    text-wrap: pretty;
    text-shadow: 0 1px 8px #070d14;
}
body.site-v2 .hero-actions { justify-content: start; margin: 0 0 0 4%; gap: .75rem; flex-wrap: wrap; }
body.site-v2 .hero-actions .btn-outline {
    padding-inline: .45rem;
    border-color: transparent;
    background: transparent;
    text-decoration: underline;
    text-decoration-color: #a4b3c777;
    text-underline-offset: .35em;
    color: var(--ink);
}
body.site-v2 .hero-actions .btn-outline:hover { text-decoration-color: var(--brand-hi); }
.war-standard {
    --point: polygon(0 0, 100% 0, 100% calc(100% - 2rem), 50% 100%, 0 calc(100% - 2rem));
    align-self: start;
    position: relative;
    isolation: isolate;
    margin: 0 .75rem;
    padding: 1px;
    background: linear-gradient(110deg, #dfbf85, #415069 25%, #58687d 82%, #a28c65);
    clip-path: var(--point);
}
.standard-face {
    clip-path: var(--point);
    text-align: center;
    padding: clamp(2.6rem, 5vw, 4.25rem) 1.25rem 3.1rem;
    background:
        linear-gradient(95deg, #101e2d, transparent 12%, #34445755 25%, transparent 44%, #080d1880 70%, #35425666 94%, #111b29),
        linear-gradient(150deg, #28384c, #111c29 58%, #101925);
    border-top: 0;
}
.standard-face::before, .standard-face::after {
    content: '';
    position: absolute;
    inset-block: 0;
    width: 1px;
    background: linear-gradient(#c3ad7d80, #b1a38440 70%, transparent);
}
.standard-face::before { left: .45rem; }
.standard-face::after { right: .45rem;
}
.war-emblem { width: 3.5rem; height: 3rem; margin: 0 auto .5rem; color: #e4c497; }
.standard-face h2 { font-weight: 500; font-size: 1rem; color: #e6dbc7; }
.record-totals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.25rem;
}
.record-totals > div { display: flex; flex-direction: column-reverse; justify-content: end; }
.record-totals .wars-won { grid-column: 1 / -1; padding: .45rem 0 1.1rem; border-bottom: 1px solid #c0c9d137; }
.record-totals dd { font: 500 2.5rem/.96 'Teko', sans-serif; font-variant-numeric: tabular-nums; }
.record-totals .wars-won dd { font-size: clamp(4.3rem, 7vw, 6rem); color: #f3dbb4; }
.record-totals dt { font-size: .83rem; line-height: 1.3; color: #cad3de; }
#record-error { margin-top: .7rem; font-size: .85rem; }
.campaign-results {
    background: linear-gradient(to bottom, transparent, #0a121cdb 7rem, #0a121cf5);
}
.season-section {
    padding-block: clamp(2.2rem, 5vw, 4rem);
    border-top: 1px solid var(--line);
}
body.site-v2 .season-section .section-label, .recruitment h2 {
    justify-content: start;
    font: 500 clamp(2.3rem, 4vw, 3.4rem)/1 'Teko', sans-serif;
    letter-spacing: .005em;
    margin: 0;
}
body.site-v2 .season-section .section-sub-label {
    color: var(--ink-dim);
    text-align: left;
    font-size: .95rem;
    margin: .35rem 0 1.55rem;
}
.cwl-hist-shelf, .podium-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
    gap: clamp(.5rem, 1vw, 1rem);
}
.cwl-pillar, .podium-card {
    --metal: #b4c2cf;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.05rem clamp(.75rem, 2vw, 1.4rem) 1.15rem;
    background: linear-gradient(150deg, #213246eb, #0b1420e8 80%);
    border-top: 2px solid var(--metal);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - .6rem), calc(100% - .6rem) 100%, 0 100%);
}
.cwl-pillar.is-rank-1, .p1 .podium-card { --metal: #e5ba74; }
.cwl-pillar.is-rank-3, .p3 .podium-card { --metal: #cf9976; }
.cwl-pillar:hover, .podium-card:hover { background: #26374a; }
body.site-v2 :is(.cwl-pillar, .podium-card):focus-visible { outline-offset: -3px; }
.p-month { font-size: .9rem; }
.p-rank-num, .podium-rank { font: 500 3.2rem/1 'Teko', sans-serif; color: var(--metal); }
.p-rank-num { margin-top: .7rem; }
.p-rank-num .hash { font-size: .6em; }
.p-rank-label, .p-global-rank, .rank-tag, .podium-meta { font: 400 .8rem/1.45 'Outfit',sans-serif; color: var(--ink-dim); }
.p-stars { margin-top: .85rem; font-weight: 500; }
.star { color: var(--metal); margin-left: .2rem; }
.p-crown { position: absolute; top: .8rem; right: .6rem; width: 1.05rem; color: var(--metal); }
.cwl-pillar:only-child, .podium-slot:only-child { max-width: 22rem; }
.podium-card { height: 100%; gap: .3rem; padding-right: 2rem; }
.podium-name { font-size: 1.15rem; overflow-wrap: anywhere; }
.podium-icon { width: 1.2rem; position: absolute; right: .7rem; top: 1rem; color: var(--metal); }
.podium-pos { font-size: .8rem; color: var(--metal); }
.podium-rank { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .5rem; font-size: 2.4rem; }
.podium-meta { display: flex; gap: .4rem; align-items: center; }
.podium-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.th18-list { margin-top: 1rem; background: #0c1621e8; }
.th18-row {
    padding: .8rem 1rem;
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) repeat(3, auto);
    align-items: baseline;
    gap: clamp(.55rem, 2vw, 2rem);
    border-bottom: 1px solid var(--line);
}
.th18-row:hover { background: var(--surface-3); }
.th18-name { overflow-wrap: anywhere; }
.th18-pos, .th18-season, .th18-trophies { font-size: .85rem; color: var(--ink-dim); }
.th18-rank { color: var(--brand-hi); font-variant-numeric: tabular-nums; }
.recruitment { border-top: 1px solid var(--line); padding-block: 3rem 5rem; }
.recruitment p { color: var(--ink-dim); margin: .45rem 0 1rem; }
body.site-v2 .recruitment .cta-actions { justify-content: start; }
@media (min-width: 48rem) and (max-width: 57rem) {
    .cwl-hist-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 47.99rem) {
    .clan-masthead { grid-template-columns: 1fr; gap: 1.6rem; padding-block: 1.8rem 2rem; }
    .clan-intro { text-align: center; padding-top: 0; }
    .clan-description { margin: .35rem auto 1rem; }
    body.site-v2 .hero-actions { justify-content: center; margin: 0; }
    .war-standard { --point: polygon(0 0,100% 0,100% calc(100% - .65rem),50% 100%,0 calc(100% - .65rem)); margin: 0; }
    .standard-face { padding: .8rem .6rem 1.35rem; }
    .war-emblem { width: 1rem; height: 1rem; vertical-align: middle; margin: 0 .4rem 0 0; }
    .standard-face h2 { display: inline; font-size: .9rem; }
    .record-totals { grid-template-columns: repeat(auto-fit, minmax(min(100%,5.35rem),1fr)); margin-top: .65rem; gap: .6rem .25rem; }
    .record-totals .wars-won { grid-column: auto; padding: 0; border: 0; }
    .record-totals > div { justify-content: start; flex-direction: column; }
    .record-totals dd, .record-totals .wars-won dd { order: -1; font-size: 2.45rem; }
    .cwl-hist-shelf { grid-template-columns: repeat(auto-fit,minmax(min(100%,6rem),1fr)); }
    .podium-row { grid-template-columns: 1fr; }
    .podium-card { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: .75rem; }
    .podium-rank, .podium-meta { grid-column: 2; }
}
@media (max-width: 640px) {
    .th18-row { grid-template-columns: 1.5rem minmax(0,1fr) auto; }
    .th18-season, .th18-trophies { display: none; }
}
