/* ==========================================================================
   AMATETA UNITED FC - Public website
   Brand system + layout. Loaded after Bootstrap 5.3.
   ========================================================================== */

:root {
    /* --- Brand palette, sampled directly from the club crest artwork --- */
    --aufc-navy:        #021B3E;   /* deepest shade, for dark sections */
    --aufc-navy-800:    #013674;   /* the crest wordmark navy */
    --aufc-blue:        #01458F;
    --aufc-royal:       #0278C5;
    --aufc-cyan:        #02A2E5;   /* "UNITED FC" sky blue */
    --aufc-lime:        #A7C832;
    --aufc-lime-dark:   #8CAB22;
    --aufc-orange:      #FC871A;
    --aufc-white:       #FFFFFF;

    /* --- Neutrals --- */
    --aufc-ink:         #14202E;
    --aufc-muted:       #6B7C93;
    --aufc-line:        #E3E9F0;
    --aufc-surface:     #F5F8FC;

    /* --- Tokens --- */
    --aufc-radius:      14px;
    --aufc-radius-sm:   10px;
    --aufc-shadow:      0 10px 30px rgba(2, 27, 62, .09);
    --aufc-shadow-lg:   0 24px 60px rgba(2, 27, 62, .18);
    --aufc-header-h:    94px;

    --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-body-color: var(--aufc-ink);
}

/* --------------------------------------------------------------- base --- */

html { scroll-behavior: smooth; }

body {
    font-family: var(--bs-body-font-family);
    color: var(--aufc-ink);
    background: var(--aufc-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .display-title {
    font-family: 'Barlow Condensed', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: uppercase;
    line-height: 1.08;
}

.text-body-copy { font-family: var(--bs-body-font-family); text-transform: none; letter-spacing: 0; }

/* Bootstrap has no min-width utility. Without this a flex child refuses to
   shrink below its content width and pushes its siblings off a narrow screen. */
.min-w-0 { min-width: 0; }

a { color: var(--aufc-blue); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--aufc-royal); }

.section { padding: 76px 0; }
.section-sm { padding: 48px 0; }
.section-tight { padding: 40px 0; }

.section-dark {
    background: var(--aufc-navy);
    color: rgba(255, 255, 255, .86);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

.section-surface { background: var(--aufc-surface); }

/* Section heading with the lime rule the club uses everywhere */
.section-head { margin-bottom: 36px; }
.section-head .eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    font-size: .8rem; color: var(--aufc-royal); margin-bottom: 10px;
}
.section-head .eyebrow::before {
    content: ''; width: 28px; height: 3px; background: var(--aufc-lime); border-radius: 2px;
}
.section-dark .section-head .eyebrow { color: var(--aufc-cyan); }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 0; }
.section-head p { color: var(--aufc-muted); max-width: 62ch; margin: 12px 0 0; }
.section-dark .section-head p { color: rgba(255,255,255,.7); }

/* ------------------------------------------------------------ buttons --- */

.btn {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    border-radius: var(--aufc-radius-sm);
    padding: .72rem 1.5rem;
    border-width: 2px;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.btn:active { transform: translateY(1px); }

.btn-aufc {
    background: var(--aufc-lime); border-color: var(--aufc-lime); color: var(--aufc-navy);
}
.btn-aufc:hover, .btn-aufc:focus {
    background: var(--aufc-lime-dark); border-color: var(--aufc-lime-dark); color: var(--aufc-navy);
    box-shadow: 0 10px 24px rgba(164, 217, 44, .35);
}

.btn-aufc-blue {
    background: var(--aufc-blue); border-color: var(--aufc-blue); color: #fff;
}
.btn-aufc-blue:hover, .btn-aufc-blue:focus {
    background: var(--aufc-royal); border-color: var(--aufc-royal); color: #fff;
    box-shadow: 0 10px 24px rgba(27, 139, 208, .32);
}

.btn-aufc-outline {
    background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff;
}
.btn-aufc-outline:hover { background: #fff; border-color: #fff; color: var(--aufc-navy); }

.btn-aufc-ghost {
    background: transparent; border-color: var(--aufc-line); color: var(--aufc-ink);
}
.btn-aufc-ghost:hover { border-color: var(--aufc-blue); color: var(--aufc-blue); }

/* ------------------------------------------------------------- header --- */

.site-topbar {
    background: var(--aufc-navy);
    color: rgba(255, 255, 255, .72);
    font-size: .82rem;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-topbar a { color: rgba(255, 255, 255, .78); }
.site-topbar a:hover { color: var(--aufc-lime); }

.site-header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(7, 30, 69, .07);
    position: sticky; top: 0; z-index: 1030;
}
.site-header .navbar { padding: 0; min-height: var(--aufc-header-h); }

.brand-lockup { display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.brand-lockup img, .brand-lockup .brand-fallback { height: 78px; width: auto; display: block; }

/* The footer crest carries the sign-off, so it is larger again. */
.site-footer .brand-lockup img { height: 96px; }
.brand-fallback {
    width: 52px; display: grid; place-items: center;
    background: var(--aufc-navy); color: var(--aufc-lime);
    font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.15rem;
    border-radius: 10px;
}
.brand-text { line-height: 1.05; }
.brand-text .brand-name {
    font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
    font-size: 1.42rem; letter-spacing: .02em; text-transform: uppercase; color: var(--aufc-navy);
}
.brand-text .brand-est {
    font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--aufc-royal); font-weight: 700;
}

/* The crest stays prominent on a phone, but the wordmark has to give way. */
@media (max-width: 575.98px) {
    .brand-lockup { gap: 10px; }
    .brand-lockup img, .brand-lockup .brand-fallback { height: 60px; }
    .site-footer .brand-lockup img { height: 76px; }
    .brand-text .brand-name { font-size: 1.05rem; }
    .brand-text .brand-est { font-size: .6rem; letter-spacing: .2em; }
}

.site-nav .nav-link {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
    font-size: 1rem; color: var(--aufc-navy);
    padding: 1.6rem .85rem !important;
    position: relative;
}
.site-nav .nav-link::after {
    content: ''; position: absolute; left: .85rem; right: .85rem; bottom: 22px;
    height: 3px; background: var(--aufc-lime); border-radius: 2px;
    transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.site-nav .nav-link:hover::after,
.site-nav .nav-link.active::after { transform: scaleX(1); }
.site-nav .nav-link.active { color: var(--aufc-blue); }

.site-nav .dropdown-menu {
    border: 0; border-top: 3px solid var(--aufc-lime);
    box-shadow: var(--aufc-shadow); border-radius: 0 0 var(--aufc-radius-sm) var(--aufc-radius-sm);
    padding: .5rem;
}
.site-nav .dropdown-item {
    font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase;
    font-weight: 600; letter-spacing: .05em; border-radius: 8px; padding: .55rem .85rem;
}
.site-nav .dropdown-item:hover { background: var(--aufc-surface); color: var(--aufc-blue); }

@media (max-width: 1199.98px) {
    .site-nav .nav-link { padding: .7rem .25rem !important; }
    .site-nav .nav-link::after { display: none; }
}

/* --------------------------------------------------------------- hero --- */

.hero {
    position: relative;
    min-height: min(90vh, 760px);
    display: flex; align-items: center;
    background:
        radial-gradient(120% 90% at 78% 40%, rgba(2, 162, 229, .30) 0%, rgba(2, 162, 229, 0) 60%),
        linear-gradient(104deg, var(--aufc-navy) 0%, #04265A 42%, #01458F 100%);
    background-color: var(--aufc-navy);
    background-size: cover; background-position: center;
    color: #fff; overflow: hidden;
    isolation: isolate;
}

/* When a banner image is supplied the scrim keeps the headline legible. */
.hero.has-image { background-size: cover; background-position: center top; }

.hero::after {
    content: ''; position: absolute; inset: auto 0 0 0; height: 7px; z-index: 4;
    background: linear-gradient(90deg, var(--aufc-lime) 0 25%, var(--aufc-cyan) 25% 50%, var(--aufc-royal) 50% 75%, var(--aufc-orange) 75% 100%);
}

/* Faint vertical mow-lines, like a freshly cut pitch. */
.hero-pitch {
    position: absolute; inset: 0; opacity: .07; pointer-events: none; z-index: 0;
    background-image: repeating-linear-gradient(90deg, transparent 0 74px, rgba(255, 255, 255, .55) 74px 75px);
}

/*
 * The squad photograph.
 *
 * It sits in its own grid column rather than being absolutely positioned, so
 * it drops below the headline on a phone instead of sitting behind the text.
 * The negative bottom margin cancels the hero's lower padding, which lets the
 * players stand on the colour band at the foot of the hero.
 */
.hero-figure-col { display: flex; align-items: flex-end; justify-content: center; }
.hero-figure {
    display: block; width: 100%; max-width: 540px; height: auto;
    margin-bottom: -124px;
    filter: drop-shadow(0 22px 44px rgba(0, 0, 0, .55));
}

/* Kept for banners that still lead with the crest rather than a photo. */
.hero-crest {
    position: absolute; z-index: 2; pointer-events: none;
    right: 4%; top: 46%; transform: translateY(-50%);
    width: min(33vw, 400px);
    filter: drop-shadow(0 26px 64px rgba(0, 0, 0, .5));
}

/* Brand brush strokes, fanning out from behind the crest as on the kit art. */
.hero-strokes { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-strokes span {
    position: absolute; display: block; height: 16px; border-radius: 12px;
    transform: rotate(-28deg); transform-origin: center; opacity: .9;
}
.hero-strokes .s1 { width: 300px; top: 14%;    right: -2%; background: var(--aufc-lime); }
.hero-strokes .s2 { width: 210px; top: 25%;    right: -4%; background: var(--aufc-orange); }
.hero-strokes .s3 { width: 360px; bottom: 12%; right: -6%; background: var(--aufc-cyan); opacity: .6; }

@media (max-width: 1199.98px) {
    .hero-crest  { width: min(32vw, 320px); right: 2%; }
    .hero-figure { max-width: 430px; }
}

.hero-content { position: relative; z-index: 3; padding-block: 104px 124px; }

.hero .est-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .24);
    backdrop-filter: blur(6px);
    padding: 8px 18px; border-radius: 100px;
    font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
    letter-spacing: .22em; text-transform: uppercase; font-size: .76rem;
}
.hero .est-badge .dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--aufc-lime);
    box-shadow: 0 0 0 4px rgba(167, 200, 50, .25);
}
/* The lower bound stays under the fluid value at 360px wide, otherwise clamp()
   returns the minimum and a long word like FOOTBALL overflows the viewport. */
.hero h1 {
    font-size: clamp(2.1rem, 7.4vw, 5.6rem);
    font-weight: 800; letter-spacing: -.005em;
    margin: 20px 0 4px; color: #fff;
    text-shadow: 0 10px 44px rgba(0, 0, 0, .42);
    overflow-wrap: break-word;
}
.hero .hero-club {
    font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
    letter-spacing: .2em; text-transform: uppercase;
    color: var(--aufc-cyan); font-size: clamp(.86rem, 2vw, 1.05rem);
}
.hero .hero-sub {
    font-size: 1.12rem; line-height: 1.7; color: rgba(255, 255, 255, .86);
    max-width: 48ch; margin: 20px 0 32px;
}
.hero .hero-sub strong { color: var(--aufc-lime); font-weight: 600; }

/* The club's three words, sitting under the call to action. */
.hero-values {
    display: flex; flex-wrap: wrap; gap: 26px; margin-top: 38px;
    font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
    letter-spacing: .24em; text-transform: uppercase; font-size: .8rem;
    color: rgba(255, 255, 255, .62);
}
.hero-values span { display: inline-flex; align-items: center; gap: 10px; }
.hero-values span::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--aufc-lime);
}

@media (max-width: 991.98px) {
    .hero { min-height: auto; }
    .hero-content { padding-block: 56px 84px; }
    .hero-crest { width: 230px; right: -54px; top: auto; bottom: -30px; transform: none; opacity: .16; }
    .hero-strokes { display: none; }

    .hero-figure { max-width: 330px; margin-bottom: -84px; }
    .hero-values { gap: 14px 22px; margin-top: 26px; font-size: .72rem; letter-spacing: .18em; }
}

@media (max-width: 575.98px) {
    .hero-content { padding-block: 40px 64px; }
    .hero-figure { max-width: 260px; margin-bottom: -64px; }
}

/* ------------------------------------------------------- page banners --- */

.page-banner {
    background: linear-gradient(105deg, rgba(7,30,69,.96), rgba(11,60,125,.84)), var(--aufc-navy);
    background-size: cover; background-position: center;
    color: #fff; padding: 64px 0 56px; position: relative;
}
.page-banner::after {
    content: ''; position: absolute; inset: auto 0 0 0; height: 5px;
    background: linear-gradient(90deg, var(--aufc-lime), var(--aufc-cyan), var(--aufc-royal));
}
.page-banner h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0; }
.page-banner .breadcrumb { margin: 10px 0 0; --bs-breadcrumb-divider-color: rgba(255,255,255,.4); }
.page-banner .breadcrumb a { color: rgba(255, 255, 255, .78); }
.page-banner .breadcrumb .active { color: var(--aufc-lime); }

/* --------------------------------------------------------- match card --- */

.match-card {
    background: #fff; border-radius: var(--aufc-radius);
    box-shadow: var(--aufc-shadow); border: 1px solid var(--aufc-line);
    overflow: hidden; height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}
.match-card:hover { transform: translateY(-4px); box-shadow: var(--aufc-shadow-lg); }
.match-card .match-head {
    background: var(--aufc-navy); color: rgba(255,255,255,.8);
    padding: 11px 18px; font-size: .76rem;
    font-family: 'Barlow Condensed', sans-serif; letter-spacing: .12em; text-transform: uppercase;
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.match-card .match-body { padding: 22px 18px; }
.match-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.match-team { text-align: center; }
.match-team .crest {
    width: 54px; height: 54px; margin: 0 auto 8px; border-radius: 12px;
    display: grid; place-items: center; background: var(--aufc-surface);
    font-family: 'Barlow Condensed', sans-serif; font-weight: 800; color: var(--aufc-blue);
    overflow: hidden;
}
.match-team .crest img { width: 100%; height: 100%; object-fit: contain; }
.match-team .name {
    font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase;
    font-size: .95rem; line-height: 1.15;
}
.match-score {
    font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 2.1rem;
    color: var(--aufc-navy); min-width: 84px; text-align: center; letter-spacing: .04em;
}
.match-score.pending { font-size: 1.1rem; color: var(--aufc-muted); letter-spacing: .12em; }
.match-card .match-foot {
    border-top: 1px solid var(--aufc-line); padding: 12px 18px;
    font-size: .84rem; color: var(--aufc-muted);
    display: flex; flex-wrap: wrap; gap: 6px 16px;
}
.outcome-pill {
    width: 26px; height: 26px; border-radius: 7px; display: inline-grid; place-items: center;
    font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: .82rem; color: #fff;
}
.outcome-win  { background: var(--aufc-lime-dark); }
.outcome-draw { background: var(--aufc-muted); }
.outcome-loss { background: #D8443C; }

/* -------------------------------------------------------- player card --- */

.player-card {
    position: relative; border-radius: var(--aufc-radius); overflow: hidden;
    background: var(--aufc-navy); color: #fff; display: block; height: 100%;
    box-shadow: var(--aufc-shadow);
    transition: transform .22s ease, box-shadow .22s ease;
}
.player-card:hover { transform: translateY(-6px); box-shadow: var(--aufc-shadow-lg); color: #fff; }
.player-card .photo {
    aspect-ratio: 3 / 3.6; background: linear-gradient(180deg, var(--aufc-blue), var(--aufc-navy));
    overflow: hidden; position: relative;
}
.player-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.player-card .photo .placeholder {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 3.4rem; color: rgba(255, 255, 255, .18);
}
.player-card .number {
    position: absolute; top: 12px; right: 14px;
    font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 2.4rem;
    color: rgba(255, 255, 255, .28); line-height: 1;
}
.player-card .info { padding: 14px 16px 18px; position: relative; }
.player-card .info::before {
    content: ''; position: absolute; top: 0; left: 16px; width: 34px; height: 3px;
    background: var(--aufc-lime); border-radius: 2px;
}
.player-card .info .pos {
    font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
    color: var(--aufc-cyan); font-weight: 700; margin-bottom: 4px;
}
.player-card .info .name {
    font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase;
    font-size: 1.12rem; line-height: 1.12;
}
.player-card .info .meta { font-size: .78rem; color: rgba(255,255,255,.55); margin-top: 4px; }

/* ---------------------------------------------------------- news card --- */

.news-card {
    background: #fff; border: 1px solid var(--aufc-line); border-radius: var(--aufc-radius);
    overflow: hidden; height: 100%; display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--aufc-shadow-lg); }
.news-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--aufc-surface); position: relative; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .thumb img { transform: scale(1.05); }
.news-card .thumb .no-image { position: absolute; inset: 0; display: grid; place-items: center; color: var(--aufc-line); font-size: 2.6rem; }
.news-card .body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.news-card .cat {
    display: inline-block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
    font-weight: 700; color: #fff; background: var(--aufc-royal);
    padding: 4px 10px; border-radius: 100px; margin-bottom: 10px; align-self: flex-start;
}
.news-card h3 { font-size: 1.12rem; margin: 0 0 8px; }
.news-card h3 a { color: var(--aufc-navy); }
.news-card h3 a:hover { color: var(--aufc-royal); }
.news-card .excerpt { color: var(--aufc-muted); font-size: .92rem; flex: 1; }
.news-card .date { font-size: .78rem; color: var(--aufc-muted); margin-top: 14px; }

/* --------------------------------------------------------- stat tiles --- */

.stat-tile {
    background: #fff; border: 1px solid var(--aufc-line); border-radius: var(--aufc-radius);
    padding: 22px 20px; height: 100%; position: relative; overflow: hidden;
}
.stat-tile::after {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--aufc-lime);
}
.stat-tile .value {
    font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
    font-size: 2.6rem; line-height: 1; color: var(--aufc-navy);
}
.stat-tile .label {
    font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--aufc-muted); font-weight: 600; margin-top: 6px;
}
.section-dark .stat-tile {
    background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12);
}
.section-dark .stat-tile .value { color: #fff; }
.section-dark .stat-tile .label { color: rgba(255, 255, 255, .6); }

/* --------------------------------------------------------- team cards --- */

.team-card {
    position: relative; border-radius: var(--aufc-radius); overflow: hidden; display: block;
    min-height: 220px; background: var(--aufc-blue); color: #fff;
    box-shadow: var(--aufc-shadow); transition: transform .22s ease;
}
.team-card:hover { transform: translateY(-5px); color: #fff; }
.team-card .bg { position: absolute; inset: 0; opacity: .34; background-size: cover; background-position: center; }
.team-card .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(7,30,69,.85), rgba(11,60,125,.6) 60%, rgba(37,194,240,.35));
}
.team-card .content { position: relative; padding: 24px; display: flex; flex-direction: column; height: 100%; min-height: 220px; }
.team-card .content .cat {
    font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--aufc-lime); font-weight: 700;
}
.team-card .content h3 { font-size: 1.6rem; margin: 6px 0 auto; }
.team-card .content .meta { font-size: .85rem; color: rgba(255,255,255,.75); }

/* ----------------------------------------------------- recruitment CTA -- */

.cta-band {
    background:
        linear-gradient(115deg, var(--aufc-navy) 0%, var(--aufc-blue) 55%, var(--aufc-royal) 100%);
    color: #fff; border-radius: var(--aufc-radius); padding: 44px; position: relative; overflow: hidden;
}
.cta-band::before {
    content: ''; position: absolute; right: -60px; top: -60px;
    width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(164,217,44,.35), transparent 65%);
}
.cta-band h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .8); margin-bottom: 0; }

/* ------------------------------------------------------------- tables --- */

.table-aufc { --bs-table-border-color: var(--aufc-line); }
.table-aufc thead th {
    background: var(--aufc-navy); color: rgba(255,255,255,.85);
    font-family: 'Barlow Condensed', sans-serif; font-weight: 600;
    text-transform: uppercase; letter-spacing: .1em; font-size: .78rem;
    border: 0; padding: 13px 14px; white-space: nowrap;
}
.table-aufc tbody td { padding: 13px 14px; vertical-align: middle; }
.table-aufc tbody tr.own-team { background: rgba(164, 217, 44, .12); font-weight: 600; }

/* --------------------------------------------------------- sponsors ----- */

.sponsor-logo {
    display: grid; place-items: center; padding: 22px; height: 118px;
    background: #fff; border: 1px solid var(--aufc-line); border-radius: var(--aufc-radius-sm);
    transition: box-shadow .2s ease, transform .2s ease;
}
.sponsor-logo:hover { box-shadow: var(--aufc-shadow); transform: translateY(-3px); }
.sponsor-logo img { max-height: 70px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .72; transition: all .25s ease; }
.sponsor-logo:hover img { filter: none; opacity: 1; }
.sponsor-logo .name-fallback { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; color: var(--aufc-navy); text-align: center; }

/* ------------------------------------------------------------- forms ---- */

.form-label {
    font-family: 'Barlow Condensed', sans-serif; font-weight: 600;
    text-transform: uppercase; letter-spacing: .07em; font-size: .86rem;
    color: var(--aufc-navy); margin-bottom: .35rem;
}
.form-label .req { color: #D8443C; }
.form-control, .form-select {
    border: 1.5px solid var(--aufc-line); border-radius: var(--aufc-radius-sm);
    padding: .68rem .9rem; font-size: .96rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--aufc-royal); box-shadow: 0 0 0 .2rem rgba(27, 139, 208, .14);
}
.form-control.is-invalid, .form-select.is-invalid { border-color: #D8443C; }
.form-text { font-size: .82rem; color: var(--aufc-muted); }

.form-section {
    background: #fff; border: 1px solid var(--aufc-line); border-radius: var(--aufc-radius);
    padding: 26px; margin-bottom: 22px;
}
.form-section > h3 {
    font-size: 1.05rem; color: var(--aufc-navy); margin: 0 0 4px;
    display: flex; align-items: center; gap: 10px;
}
.form-section > h3 .step {
    width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
    background: var(--aufc-navy); color: var(--aufc-lime); font-size: .9rem; flex: 0 0 auto;
}
.form-section > .hint { color: var(--aufc-muted); font-size: .88rem; margin: 0 0 20px 40px; }

.upload-tile {
    border: 2px dashed var(--aufc-line); border-radius: var(--aufc-radius-sm);
    padding: 16px; background: var(--aufc-surface); transition: border-color .2s ease;
}
.upload-tile:hover { border-color: var(--aufc-royal); }
.upload-tile .title { font-weight: 600; font-size: .92rem; color: var(--aufc-navy); }
.upload-tile .hint  { font-size: .78rem; color: var(--aufc-muted); }

/* ------------------------------------------------------- application ---- */

.reference-plate {
    background: var(--aufc-navy); color: #fff; border-radius: var(--aufc-radius);
    padding: 26px; text-align: center; position: relative; overflow: hidden;
}
.reference-plate::after {
    content: ''; position: absolute; inset: auto 0 0 0; height: 5px;
    background: linear-gradient(90deg, var(--aufc-lime), var(--aufc-cyan));
}
.reference-plate .label {
    font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6);
}
.reference-plate .value {
    font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
    font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: .1em; color: var(--aufc-lime); margin-top: 6px;
}

/* Vertical application-progress timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
    content: ''; position: absolute; left: 15px; top: 12px; bottom: 12px; width: 2px; background: var(--aufc-line);
}
.timeline li { position: relative; padding: 0 0 26px 48px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li .dot {
    position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center; background: #fff;
    border: 2px solid var(--aufc-line); color: var(--aufc-muted); font-size: .85rem; z-index: 1;
}
.timeline li.done .dot   { background: var(--aufc-lime); border-color: var(--aufc-lime); color: var(--aufc-navy); }
.timeline li.active .dot { background: var(--aufc-royal); border-color: var(--aufc-royal); color: #fff;
                           box-shadow: 0 0 0 5px rgba(27,139,208,.16); }
.timeline li.failed .dot { background: #D8443C; border-color: #D8443C; color: #fff; }
.timeline li .title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
                      text-transform: uppercase; font-size: 1rem; color: var(--aufc-navy); }
.timeline li.pending .title { color: var(--aufc-muted); }
.timeline li .meta { font-size: .84rem; color: var(--aufc-muted); }

/* ------------------------------------------------------------ footer ---- */

.site-footer { background: var(--aufc-navy); color: rgba(255, 255, 255, .68); padding-top: 62px; }
.site-footer h5 {
    color: #fff; font-size: 1rem; letter-spacing: .1em; margin-bottom: 18px;
    position: relative; padding-bottom: 10px;
}
.site-footer h5::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 30px; height: 3px;
    background: var(--aufc-lime); border-radius: 2px;
}
.site-footer a { color: rgba(255, 255, 255, .68); }
.site-footer a:hover { color: var(--aufc-lime); }
.site-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links li { margin-bottom: 9px; font-size: .92rem; }
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding: 20px 0;
    font-size: .85rem; color: rgba(255, 255, 255, .5);
}
.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .08); color: #fff; transition: all .2s ease;
}
.social-links a:hover { background: var(--aufc-lime); color: var(--aufc-navy); transform: translateY(-3px); }

.newsletter-form .form-control {
    background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff;
}
.newsletter-form .form-control::placeholder { color: rgba(255, 255, 255, .4); }
.newsletter-form .form-control:focus { background: rgba(255,255,255,.12); color: #fff; }

/* ------------------------------------------------------------- misc ----- */

.badge-aufc {
    font-family: 'Barlow Condensed', sans-serif; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase; font-size: .72rem;
    padding: .38em .8em; border-radius: 100px;
}

.prose { font-size: 1.02rem; line-height: 1.75; color: #33445c; }
.prose h2, .prose h3, .prose h4 { color: var(--aufc-navy); margin-top: 1.8em; margin-bottom: .6em; }
.prose h3 { font-size: 1.28rem; }
.prose p { margin-bottom: 1.1em; }
.prose ul, .prose ol { margin-bottom: 1.1em; padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose img { max-width: 100%; height: auto; border-radius: var(--aufc-radius-sm); margin: 1.2em 0; }
.prose blockquote {
    border-left: 4px solid var(--aufc-lime); padding-left: 18px; margin: 1.4em 0;
    color: var(--aufc-navy); font-style: italic;
}

.gallery-tile {
    display: block; aspect-ratio: 4/3; border-radius: var(--aufc-radius-sm);
    overflow: hidden; background: var(--aufc-surface); position: relative;
}
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-tile:hover img { transform: scale(1.07); }
.gallery-tile .caption {
    position: absolute; inset: auto 0 0 0; padding: 26px 14px 12px; color: #fff; font-size: .86rem;
    background: linear-gradient(transparent, rgba(7, 30, 69, .88));
}

.empty-state { text-align: center; padding: 56px 20px; color: var(--aufc-muted); }
.empty-state .icon { font-size: 3rem; color: var(--aufc-line); margin-bottom: 14px; }
.empty-state h4 { color: var(--aufc-navy); }

.alert { border: 0; border-left: 4px solid; border-radius: var(--aufc-radius-sm); font-size: .95rem; }
.alert-success { background: #eaf7e0; border-color: var(--aufc-lime-dark); color: #3f5c14; }
.alert-danger  { background: #fdeceb; border-color: #D8443C; color: #8a2019; }
.alert-warning { background: #fef3e3; border-color: var(--aufc-orange); color: #8a4f0b; }
.alert-info    { background: #e6f5fd; border-color: var(--aufc-cyan); color: #10506b; }

/* Countdown + next-match strip */
.next-match-strip {
    background: linear-gradient(100deg, var(--aufc-navy), var(--aufc-blue));
    color: #fff; border-radius: var(--aufc-radius); padding: 22px 26px;
}
.next-match-strip .kickoff {
    font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--aufc-lime);
}

/* -------------------------------------------------- quick link tiles ---- */
/* The row of shortcuts that overlaps the bottom of the hero. */

.quick-links { position: relative; z-index: 6; margin-top: -54px; }
.quick-link {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border-radius: var(--aufc-radius);
    padding: 22px 24px; height: 100%;
    box-shadow: var(--aufc-shadow);
    border-bottom: 4px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.quick-link:hover {
    transform: translateY(-4px); box-shadow: var(--aufc-shadow-lg);
    border-bottom-color: var(--aufc-lime); color: inherit;
}
.quick-link .ql-icon {
    flex: 0 0 auto; width: 50px; height: 50px; display: grid; place-items: center;
    border-radius: 13px; font-size: 1.35rem; color: #fff;
    background: linear-gradient(135deg, var(--aufc-blue), var(--aufc-royal));
}
.quick-link.is-lime .ql-icon { background: linear-gradient(135deg, var(--aufc-lime-dark), var(--aufc-lime)); color: var(--aufc-navy); }
.quick-link.is-orange .ql-icon { background: linear-gradient(135deg, #E2710C, var(--aufc-orange)); }
.quick-link .ql-title {
    font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
    font-size: 1.12rem; color: var(--aufc-navy); line-height: 1.15;
}
.quick-link .ql-text { font-size: .86rem; color: var(--aufc-muted); margin: 3px 0 0; }

@media (max-width: 991.98px) { .quick-links { margin-top: 24px; } }

/* On a phone the tile is too narrow to sit the label beside the icon. */
@media (max-width: 575.98px) {
    .quick-link { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
    .quick-link .ql-icon { width: 42px; height: 42px; font-size: 1.15rem; }
    .quick-link .ql-title { font-size: 1rem; }
}

/* ------------------------------------------------------- motto strip ---- */
/* The club's own words, taken straight off the kit and the crest artwork. */

.motto-strip {
    background: var(--aufc-navy-800);
    background-image: linear-gradient(100deg, var(--aufc-navy) 0%, var(--aufc-navy-800) 55%, var(--aufc-blue) 100%);
    color: #fff; padding: 30px 0; position: relative; overflow: hidden;
}
.motto-strip::before {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(-24deg, transparent 0 58px, rgba(255, 255, 255, .045) 58px 66px);
}
.motto-strip .inner {
    position: relative;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 14px 40px;
    font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
    text-transform: uppercase; letter-spacing: .26em;
    font-size: clamp(.86rem, 1.9vw, 1.05rem);
}
.motto-strip .word { display: inline-flex; align-items: center; gap: 16px; }
.motto-strip .word::after {
    content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--aufc-lime);
}
.motto-strip .word:last-child::after { display: none; }
.motto-strip .word:nth-child(2)::after { background: var(--aufc-orange); }
.motto-strip .word:nth-child(3)::after { background: var(--aufc-cyan); }

/* ----------------------------------------------------------- the kit ---- */

.kit-card {
    display: block; background: #fff; border-radius: var(--aufc-radius);
    overflow: hidden; box-shadow: var(--aufc-shadow); height: 100%;
    border: 1px solid var(--aufc-line);
    transition: transform .2s ease, box-shadow .2s ease;
}
.kit-card:hover { transform: translateY(-5px); box-shadow: var(--aufc-shadow-lg); }
.kit-card .shot {
    position: relative; display: block; background: #F2F6FA;
    aspect-ratio: 4 / 5; overflow: hidden;
}
.kit-card .shot img {
    width: 100%; height: 100%; object-fit: cover; object-position: center top;
    transition: transform .5s ease;
}
.kit-card:hover .shot img { transform: scale(1.035); }
.kit-card .tag {
    position: absolute; left: 16px; top: 16px; z-index: 2;
    font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
    text-transform: uppercase; letter-spacing: .16em; font-size: .72rem;
    padding: 6px 14px; border-radius: 100px; color: #fff;
    background: var(--aufc-navy);
}
.kit-card.away .tag { background: var(--aufc-orange); }
.kit-card .body { padding: 20px 22px 24px; }
.kit-card .body h3 { font-size: 1.3rem; margin: 0 0 6px; color: var(--aufc-navy); }
.kit-card .body p { margin: 0; color: var(--aufc-muted); font-size: .9rem; }
.kit-card .swatches { display: flex; gap: 7px; margin-top: 14px; }
.kit-card .swatches i {
    width: 26px; height: 6px; border-radius: 3px; display: block;
}

/* ----------------------------------------------------- squad panels ----- */
/*
 * A squad cut-out standing on a coloured panel. Used on inner pages to carry
 * the same photography as the homepage hero.
 */

.squad-panel {
    position: relative; overflow: hidden;
    border-radius: var(--aufc-radius);
    background: linear-gradient(120deg, var(--aufc-navy) 0%, #04265A 55%, var(--aufc-blue) 100%);
    color: #fff;
    display: flex; align-items: flex-end; gap: 10px;
    padding: 30px 30px 0;
    min-height: 300px;
}
.squad-panel::before {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(-26deg, transparent 0 56px, rgba(255, 255, 255, .05) 56px 64px);
}
.squad-panel::after {
    content: ''; position: absolute; inset: auto 0 0 0; height: 6px;
    background: linear-gradient(90deg, var(--aufc-lime) 0 25%, var(--aufc-cyan) 25% 50%, var(--aufc-royal) 50% 75%, var(--aufc-orange) 75% 100%);
}
.squad-panel .copy { position: relative; z-index: 2; padding-bottom: 30px; flex: 1 1 auto; }
.squad-panel .copy h3 { color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.9rem); margin: 0 0 8px; }
.squad-panel .copy p { color: rgba(255, 255, 255, .76); margin: 0; font-size: .94rem; }
.squad-panel .eyebrow {
    display: inline-flex; align-items: center; gap: 9px; margin-bottom: 10px;
    font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
    letter-spacing: .2em; text-transform: uppercase; font-size: .74rem; color: var(--aufc-cyan);
}
.squad-panel .eyebrow::before { content: ''; width: 24px; height: 3px; background: var(--aufc-lime); border-radius: 2px; }
.squad-panel .shot {
    position: relative; z-index: 2; flex: 0 0 auto; align-self: flex-end;
    width: clamp(150px, 34%, 300px);
}
.squad-panel .shot img { display: block; width: 100%; height: auto; }

@media (max-width: 575.98px) {
    .squad-panel { padding: 22px 20px 0; min-height: 0; flex-direction: column; align-items: stretch; }
    .squad-panel .copy { padding-bottom: 12px; }
    .squad-panel .shot { width: 62%; margin: 0 auto; }
}

/* ------------------------------------------------------ campaign art ---- */
/* Recruitment posters are portrait artwork; frame rather than crop them. */

.poster-frame {
    display: block; border-radius: var(--aufc-radius); overflow: hidden;
    background: #fff; padding: 10px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    transform: rotate(-1.4deg);
    transition: transform .25s ease;
}
.poster-frame:hover { transform: rotate(0deg) scale(1.01); }
.poster-frame img { width: 100%; height: auto; display: block; border-radius: 6px; }

/* Skip link for keyboard users */
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 2000;
    background: var(--aufc-lime); color: var(--aufc-navy); padding: 12px 20px; font-weight: 700;
}
.skip-link:focus { left: 0; }

@media print {
    .site-header, .site-topbar, .site-footer, .no-print, .btn { display: none !important; }
    body { background: #fff; }
}

@media (max-width: 767.98px) {
    .section { padding: 52px 0; }
    .hero { min-height: auto; }

    /* A 3rem gutter makes the row wider than a phone screen; 1.5rem lines the
       row's negative margin up with the container's padding again. */
    .row.g-5, .row.g-4 { --bs-gutter-x: 1.5rem; }
    .cta-band { padding: 30px 24px; }
    .form-section { padding: 20px 16px; }
    .form-section > .hint { margin-left: 0; }
}

/* ------------------------------------------------- phone refinements ---- */
/*
 * Card grids run two-up on a phone, so everything inside them has to get
 * smaller: tighter padding, shorter headings, and supporting copy dropped
 * where the title alone carries the card.
 */
@media (max-width: 575.98px) {
    .section-head { margin-bottom: 22px; }
    .section-head p { font-size: .92rem; }

    /* News */
    .news-card .body { padding: 14px 14px 16px; }
    .news-card .excerpt { display: none; }
    .news-card h3 { font-size: 1rem; line-height: 1.2; }
    .news-card .cat { font-size: .6rem; padding: 3px 8px; }
    .news-card .date { font-size: .7rem; }

    /* Teams */
    .team-card { min-height: 170px; }
    .team-card h3 { font-size: 1.05rem; }
    .team-card .cat { font-size: .6rem; }
    .team-card .meta { font-size: .7rem; }

    /* Players */
    .player-card .name { font-size: .95rem; }
    .player-card .meta { font-size: .7rem; }
    .player-card .number { font-size: 1.5rem; }

    /* Kits */
    .kit-card .body { padding: 12px 14px 16px; }
    .kit-card .body h3 { font-size: 1.02rem; }
    .kit-card .body p { display: none; }
    .kit-card .tag { font-size: .6rem; padding: 4px 9px; left: 10px; top: 10px; }
    .kit-card .swatches i { width: 18px; height: 5px; }

    /* Stat tiles + sponsors */
    .stat-tile { padding: 16px 14px; }
    .stat-tile .value { font-size: 1.7rem; }
    .stat-tile .label { font-size: .68rem; }
    .sponsor-logo { padding: 12px; }

    /* Motto strip */
    .motto-strip { padding: 20px 0; }
    .motto-strip .inner { gap: 10px 20px; font-size: .72rem; letter-spacing: .16em; }
    .motto-strip .word { gap: 10px; }

    /* Buttons and section spacing */
    .btn { padding: .62rem 1.1rem; font-size: .92rem; }
    .btn-lg { padding: .72rem 1.25rem; font-size: 1rem; }
    .btn-sm { padding: .46rem .7rem; font-size: .78rem; letter-spacing: .04em; }

    /* Two-up cards cannot carry 1.5rem of padding as well. */
    .dash-card .p-4 { padding: 1rem !important; }
    .section { padding: 42px 0; }
    .section-sm { padding: 32px 0; }
    .cta-band { padding: 24px 20px; }
    .cta-band h2 { font-size: 1.45rem; }
    .cta-band p { font-size: .9rem; }
    .poster-frame { transform: none; padding: 6px; }
}

/* Public home: an editorial football identity with a dedicated senior squad hero. */
.home-design { --aufc-radius: 12px; --aufc-shadow: 0 8px 28px rgba(2,27,62,.045); }
.hero.hero-senior { min-height: 650px; background-color: #061b30; background-image: radial-gradient(ellipse at 80% 50%, #135270 0, transparent 52%), linear-gradient(110deg, #061b30, #092b45); }
.hero-senior::after { height: 4px; background: var(--aufc-cyan); }
.hero-senior .hero-pitch { opacity: .035; }
.hero-senior .hero-strokes { display: none; }
.hero-senior .hero-content { padding-block: 64px 0; }
.hero-senior .hero-copy { padding-bottom: 70px; align-self: center; position: relative; z-index: 2; }
.hero-senior .est-badge { padding: 0; border: 0; background: none; backdrop-filter: none; font-family: 'Inter', sans-serif; font-size: .65rem; letter-spacing: .15em; color: #cfdae4; }
.hero-senior .hero-club { color: #72cbed; letter-spacing: .14em; font-size: .8rem; }
.hero-senior h1 { font-size: clamp(3.7rem, 6.7vw, 6rem); line-height: .94; letter-spacing: -.025em; max-width: 9ch; margin: 22px 0; text-shadow: none; }
.hero-senior .hero-sub { max-width: 37ch; font-size: 1rem; line-height: 1.8; color: #c3d2de; margin-bottom: 28px; }
.hero-senior .btn { border-radius: 5px; font-size: .95rem; padding: .9rem 1.5rem; }
.hero-senior .btn-aufc { background: #b6d64a; border-color: #b6d64a; }
.hero-senior .btn-aufc:hover { background: #c6e65a; border-color: #c6e65a; }
.hero-senior .btn-aufc-outline { border-color: #607487; }
.hero-senior .hero-values { margin-top: 32px; padding-top: 22px; border-top: 1px solid #ffffff20; max-width: 390px; font-size: .68rem; gap: 22px; }
.hero-senior .hero-figure-col { position: relative; min-height: 555px; isolation: isolate; }
.hero-senior .hero-figure-col::before { content: ''; position: absolute; width: 88%; aspect-ratio: 1; top: 12%; border: 1px solid #ffffff20; border-radius: 50%; z-index: -1; box-shadow: 0 0 0 40px #ffffff03, 0 0 0 80px #ffffff02; }
.hero-senior .hero-figure-col picture { display: block; width: 100%; }
.hero-senior .hero-figure { width: 100%; max-width: 470px; height: auto; margin: 0 auto; filter: drop-shadow(0 15px 25px #0005); }
.hero-art-word { position: absolute; top: -28px; left: 50%; transform: translateX(-50%); z-index: -1; font: 800 clamp(5rem, 10.5vw, 10rem)/1 'Barlow Condensed', sans-serif; letter-spacing: -.025em; color: #ffffff08; -webkit-text-stroke: 1px #ffffff26; }
.hero-squad-label { position: absolute; right: 12px; bottom: 24px; display: flex; gap: 36px; align-items: center; padding: 16px 22px; background: #071d30ed; color: #bfd0dc; border-left: 3px solid var(--aufc-lime); font-size: .65rem; text-transform: uppercase; letter-spacing: .12em; box-shadow: 0 10px 30px #0003; }
.hero-squad-label strong { display: block; font: 700 1.45rem 'Barlow Condensed', sans-serif; color: white; letter-spacing: .03em; }
.hero-squad-label i { font-size: 1.3rem; color: var(--aufc-lime); }
.hero-squad-label:hover { color: white; background: #12394e; }
.home-design .quick-links { margin-top: 0; --bs-gutter-x: 0; --bs-gutter-y: 0; border: 1px solid var(--aufc-line); border-top: 0; }
.home-design .quick-link { border-radius: 0; box-shadow: none; padding: 27px 20px; border-bottom: 0; border-right: 1px solid var(--aufc-line); gap: 14px; }
.home-design .quick-links > div:last-child .quick-link { border-right: 0; }
.home-design .quick-link:hover { background: #f0f6fa; transform: none; }
.home-design .quick-link .ql-icon { background: #eaf2f7; color: var(--aufc-blue); border-radius: 50%; width: 40px; height: 40px; font-size: 1.1rem; }
.home-design .quick-link.is-lime .ql-icon { background: #f0f5dd; color: #506710; }
.home-design .quick-link.is-orange .ql-icon { background: #fff0e1; color: #ad5100; }
.home-design .quick-link .ql-title { font-size: 1.15rem; }
.home-design .quick-link .ql-text { font-size: .72rem; line-height: 1.5; }
.home-design .section-head h2 { font-size: clamp(2.2rem, 3.7vw, 3.3rem); letter-spacing: -.02em; }
.home-design .stat-tile { box-shadow: none; border: 1px solid var(--aufc-line); text-align: left; border-top: 3px solid var(--aufc-cyan); }
.home-design .stat-tile .value { font-size: 3rem; }
.home-design .motto-strip { padding: 22px 0; background: #09273e; }
.home-design .motto-strip::before { display: none; }
.home-design .motto-strip .inner { letter-spacing: .19em; }
.home-design .team-card { border-radius: 8px; }
.home-design .kit-card { box-shadow: none; }
.home-design .kit-card .shot { aspect-ratio: 1; }
.home-design .kit-card .shot img { object-fit: contain; }
.site-header { box-shadow: 0 1px 0 var(--aufc-line); }
.site-nav .nav-link:focus-visible, .quick-link:focus-visible, .hero-squad-label:focus-visible { outline: 3px solid var(--aufc-cyan); outline-offset: 4px; }
@media (max-width: 1199.98px) and (min-width: 992px) {
    .hero-senior .hero-figure-col { min-height: 520px; }
    .hero-senior h1 { font-size: 5rem; }
    .home-design .quick-link { padding: 24px 12px; gap: 10px; }
}
@media (max-width: 991.98px) {
    .hero.hero-senior { min-height: auto; }
    .hero-senior .hero-content { padding-top: 48px; }
    .hero-senior .hero-copy { padding-bottom: 10px; }
    .hero-senior h1 { max-width: 13ch; }
    .hero-senior .hero-figure-col { min-height: 0; max-width: 500px; margin-inline: auto; }
    .hero-senior .hero-figure { max-width: 390px; }
    .hero-art-word { top: 0; font-size: 7rem; }
    .home-design .quick-links > div:nth-child(2) .quick-link { border-right: 0; }
    .home-design .quick-links > div:nth-child(-n+2) .quick-link { border-bottom: 1px solid var(--aufc-line); }
}
@media (max-width: 575.98px) {
    .hero-senior .hero-content { padding-top: 34px; }
    .hero-senior h1 { font-size: clamp(3.3rem, 13vw, 4.5rem); max-width: 10ch; }
    .hero-senior .hero-sub { font-size: .92rem; margin-block: 18px 24px; }
    .hero-senior .hero-club { font-size: .72rem; }
    .hero-senior .est-badge { font-size: .58rem; }
    .hero-senior .hero-values { margin-top: 24px; padding-top: 18px; letter-spacing: .13em; gap: 18px; }
    .hero-senior .btn { padding: .78rem 1.05rem; font-size: .87rem; }
    .hero-senior .hero-figure { max-width: 300px; }
    .hero-art-word { font-size: 6rem; }
    .hero-squad-label { bottom: 16px; right: 18px; padding: 10px 14px; gap: 26px; }
    .hero-squad-label strong { font-size: 1.2rem; }
    .home-design .quick-link { flex-direction: row; align-items: center; padding: 20px 12px; }
    .home-design .quick-link .ql-title { font-size: 1rem; }
    .home-design .quick-link .ql-icon { width: 32px; height: 32px; font-size: .95rem; }
    .home-design .stat-tile .value { font-size: 2.3rem; }
}

/* Stop iOS Safari inflating text when the phone is rotated. */
html { -webkit-text-size-adjust: 100%; }

/* Any touch device - iOS and Android - gets Apple's 44px minimum tap target. */
@media (hover: none) and (pointer: coarse) {
    .btn, .quick-link, .site-nav .nav-link, .social-links a, .tab {
        min-height: 44px;
        display: inline-flex; align-items: center; justify-content: center;
    }
    .quick-link { justify-content: flex-start; }
    .site-topbar a { padding-block: 6px; display: inline-block; }
}

/*
 * Safe areas. The layout ships viewport-fit=cover so the club colours reach
 * the screen edge, which means content has to be kept clear of the notch in
 * landscape and the home indicator at the bottom.
 */
@supports (padding: max(0px)) {
    .container, .container-fluid {
        padding-left:  max(calc(var(--bs-gutter-x, 1.5rem) * .5), env(safe-area-inset-left));
        padding-right: max(calc(var(--bs-gutter-x, 1.5rem) * .5), env(safe-area-inset-right));
    }
    .site-footer { padding-bottom: env(safe-area-inset-bottom); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    html { scroll-behavior: auto; }
}
