/* Compact standings keep team names readable and numeric columns aligned. */
.compact-league { table-layout: fixed; width: 100%; font-variant-numeric: tabular-nums; }
.compact-league th, .compact-league td { padding: 6px 4px; text-align: center; font-size: .8rem; line-height: 1.3; }
.compact-league tr > :first-child { width: 38px; }
.compact-league tr > :nth-child(2) { text-align: left; overflow-wrap: anywhere; }
.compact-league tr > :nth-child(3) { width: 30px; }
.compact-league tr > :nth-child(4) { width: 38px; }
.compact-league tr > :nth-child(5) { width: 34px; font-weight: 700; }
.season-league th, .season-league td { padding: 7px 6px; font-variant-numeric: tabular-nums; }
.season-league tr > :nth-child(2) { text-align: left; }
.season-league tr > :not(:nth-child(2)) { text-align: right; white-space: nowrap; }

/* Formartine United Archive V6.2 */
.newspaper-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:20px}.newspaper-grid img{width:100%;height:220px;object-fit:contain;background:#f4f4f4}.newspaper-grid h3{font-size:1rem}.newspaper-clipping img{display:block;max-width:100%;max-height:800px;margin:auto}.brand-name{font-size:clamp(1.5rem,4vw,3rem);font-weight:700}.footer-brand span{font-weight:700}.record-list .edit-reference{display:flex;gap:12px;padding:12px}.context-matches li>span,.attendance-matches li>span{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0}

/* Unpublished anniversary rows retain the published row layout. */
.home-anniversaries .record-list > li > span {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 5px 12px;
    padding: 10px 14px;
    color: #111;
    font-size: .9375rem;
}
.home-anniversaries .record-list > li > span > span {
    color: var(--muted);
    font-size: .875rem;
}

/* Newspaper cards sit with the homepage activity panels. */
.home-newspapers { margin-bottom: 20px; }
.home-newspapers .newspaper-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    padding: 16px;
}
.home-newspapers .newspaper-grid article {
    display: grid;
    grid-template-rows: 220px 1fr auto;
    gap: 10px;
    min-width: 0;
}
.home-newspapers .newspaper-grid article > a,
.home-newspapers .newspaper-grid img { display: block; }
.home-newspapers .newspaper-grid h3 {
    margin: 0;
    font-size: .9375rem;
    line-height: 1.4;
}
.home-newspapers .newspaper-grid p {
    margin: 0;
    font-size: .875rem;
    color: var(--muted);
}
.newspaper-score { white-space: nowrap; }
@media (max-width: 1100px) {
    .home-newspapers .newspaper-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .home-newspapers .newspaper-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
        padding: 12px;
    }
    .home-newspapers .newspaper-grid article { grid-template-rows: 180px 1fr auto; }
    .home-newspapers .newspaper-grid img { height: 180px; }
}
@media (max-width: 360px) {
    .home-newspapers .newspaper-grid { grid-template-columns: minmax(0, 1fr); }
}

.formartine-site-logo{display:block;max-width:100%;max-height:80px;object-fit:contain}.formartine-footer-logo{display:block;max-width:220px;max-height:100px;object-fit:contain}.record-list .recent-edit-record{display:flex;gap:12px;padding:12px}

/* Formartine United: red and white, with yellow details. */
:root,body.era-modern{--gold:#b5121b;--accent:#b5121b;--link:#b5121b;--hover:#fff1f1;--ink:#171717;--paper:#fff}
.masthead,.archive-footer{background:#b5121b;color:#fff;border-top-color:#171717}
.brand-accent,.footer-copy a,.footer-bottom a,.header-socials a,.footer-socials a{color:#fff}
.primary-nav{background:#b5121b;border-bottom:3px solid #171717}
.nav-inner>a,.more-nav>summary{color:#fff}
.nav-inner>a:hover,.more-nav>summary:hover{background:#8c1017}
.nav-inner>a[aria-current]{background:#fff;color:#b5121b}
.global-search button{background:#fff;color:#b5121b;border-left:1px solid #ddd}
.global-search button:hover{background:#fff1f1}
.formartine-site-logo{max-width:260px;max-height:100px;width:auto;height:auto}
.formartine-footer-logo{max-width:210px;max-height:85px;width:auto;height:auto}
.player-squad-history .squad-shirt>span{color:#fff;text-shadow:none}
.record-totals strong,.home-records-invite a{color:#fff}
.home-welcome>a,.home-welcome>a:hover{color:#fff;background:#b5121b;border-color:#fff}
.social-links a:hover,.social-links a:focus-visible{color:#fff;background:#8c1017}
.alphabet a[aria-current]{color:#fff}
.masthead .brand small,.archive-footer .footer-copy,.home-welcome-copy p,.home-records-invite p,.record-totals span{color:#e6e6e6}
.attendance-hero-content>div>p{color:#e6e6e6}
.masthead{background:#fff;color:#b5121b;border-bottom:1px solid #ddd}
.masthead .brand,.masthead .brand-accent,.masthead .header-socials a{color:#b5121b}
.masthead .brand small{color:#555}
.masthead .global-search{border:1px solid #bbb;border-radius:2px}
.masthead .global-search button{background:#b5121b;color:#fff;border-left-color:#b5121b}
.masthead .global-search button:hover{background:#8c1017}
.masthead .header-socials a:hover,.masthead .header-socials a:focus-visible{background:#b5121b;color:#fff}
@media(max-width:700px){.brand>span{font-size:1.45rem;letter-spacing:-.035em}.formartine-site-logo{max-width:220px;max-height:85px}}

/* Formartine United: white masthead, red menu, yellow details. */
.primary-nav{border-bottom:3px solid #f6cf3c}
.nav-inner>a[aria-current]{background:#f6cf3c;color:#222}
.archive-footer{border-top:3px solid #f6cf3c}
.masthead .formartine-site-logo{max-height:110px;max-width:250px;object-fit:contain}
.archive-footer .formartine-footer-logo{max-height:100px;max-width:220px;object-fit:contain}
.brand>span{font-size:clamp(1.15rem,2.4vw,1.8rem)}
.home-welcome-copy,.record-totals,.home-records-invite{color:#fff}
.home-welcome-copy p,.record-totals span,.home-records-invite p{color:#f2f2f2}
.player-squad-history .squad-shirt>span{color:#fff;text-shadow:none}

/* Final Formartine colours: red header, white menu, yellow trim. */
.masthead{background:#b5121b;color:#fff;border-bottom:0}
.masthead .brand,.masthead .brand-accent,.masthead .header-socials a{color:#fff}
.masthead .brand small{color:#f2f2f2}
.masthead .global-search{border-color:#fff;background:#fff}
.masthead .global-search button{background:#f6cf3c;color:#222;border-left-color:#f6cf3c}
.masthead .global-search button:hover{background:#ffe36a;color:#222}
.masthead .header-socials a:hover,.masthead .header-socials a:focus-visible{background:#f6cf3c;color:#222}
.primary-nav{background:#fff;border-bottom:3px solid #f6cf3c}
.nav-inner>a,.more-nav>summary{color:#b5121b}
.nav-inner>a:hover,.more-nav>summary:hover{background:#fff1f1;color:#b5121b}
.nav-inner>a[aria-current]{background:#b5121b;color:#fff}
