@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/manrope-latin-ext.woff2?v=1") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/manrope-latin.woff2?v=1") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Handwritten";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/caveat-latin-ext.woff2?v=1") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Handwritten";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/caveat-latin.woff2?v=1") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --ink: #101828;
    --muted: #667085;
    --canvas: #f4f6f8;
    --card: #ffffff;
    --line: #e7ebf0;
    --accent: #e36b12;
    --accent-deep: #c2560b;
    --accent-ink: #fff8f3;
    --navy: #0d1524;
    --logo-gold: #f5c400;
    --font-handwritten: "Handwritten", "Segoe Script", "Apple Chancery", cursive;
    --ok: #067647;
    --ok-bg: #ecfdf3;
    --danger: #b42318;
    --danger-bg: #fef3f2;
    --pending: #b54708;
    --pending-bg: #fffaeb;
    --shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
    --radius: 1.25rem;
}

body {
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(227, 107, 18, 0.08), transparent 55%),
        var(--canvas);
    color: var(--ink);
    font-family: "Manrope", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.topbar a,
main a,
.site-footer a {
    color: #9a4d0c;
}

.topbar a:hover,
main a:hover,
.site-footer a:hover {
    color: var(--accent-deep);
}

.brand-mark,
.topbar .brand-mark,
.brand-mark:hover,
.topbar .brand-mark:hover {
    display: inline-flex;
    align-items: center;
    color: var(--navy);
    text-decoration: none;
}

.site-footer .brand-mark,
.site-footer .brand-mark:hover,
.footer-brand,
.footer-brand:hover {
    color: #fff;
}

.logo-lockup {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.55rem 0.2rem;
    color: inherit;
}

.logo-brackets {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.logo-word {
    position: relative;
    font-weight: 800;
    letter-spacing: -0.045em;
    font-size: 1.35rem;
    line-height: 1;
}

.logo-plus {
    color: var(--logo-gold);
}

.logo-shoot {
    font-weight: 500;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(16, 24, 40, 0.06);
    backdrop-filter: blur(16px);
}

.topbar .nav-link {
    color: var(--ink);
    font-weight: 650;
    border-radius: 999px;
}

.topbar .nav-link:hover,
.topbar .nav-link:focus {
    color: var(--ink);
    background: #f2f4f7;
}

.navbar-toggler {
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 0.4rem 0.55rem;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
}

.topbar .header-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 650;
    border-radius: 999px;
    padding: 0.35rem 0.55rem;
}

.topbar .header-cart:hover,
.topbar .header-cart:focus {
    color: var(--ink);
    background: #f2f4f7;
}

body.home .topbar {
    position: fixed;
    inset: 0 0 auto 0;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
    backdrop-filter: none;
}

body.home .topbar .brand-mark,
body.home .topbar .brand-mark:hover,
body.home .topbar .nav-link,
body.home .topbar .header-cart,
body.home .topbar .header-cart:hover,
body.home .topbar .header-cart:focus {
    color: #fff;
}

body.home .topbar .nav-link:hover,
body.home .topbar .nav-link:focus,
body.home .topbar .header-cart:hover,
body.home .topbar .header-cart:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

body.home .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
}

body.home .navbar-toggler-icon {
    filter: invert(1);
}

body.home .topbar.is-solid {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(16, 24, 40, 0.06);
    backdrop-filter: blur(16px);
}

body.home .topbar.is-solid .brand-mark,
body.home .topbar.is-solid .brand-mark:hover,
body.home .topbar.is-solid .nav-link,
body.home .topbar.is-solid .header-cart,
body.home .topbar.is-solid .header-cart:hover,
body.home .topbar.is-solid .header-cart:focus {
    color: var(--ink);
}

body.home .topbar.is-solid .nav-link:hover,
body.home .topbar.is-solid .nav-link:focus,
body.home .topbar.is-solid .header-cart:hover,
body.home .topbar.is-solid .header-cart:focus {
    color: var(--ink);
    background: #f2f4f7;
}

body.home .topbar.is-solid .navbar-toggler {
    border-color: var(--line);
}

body.home .topbar.is-solid .navbar-toggler-icon {
    filter: none;
}

.header-cart-label {
    display: none;
}

.cart-icon {
    display: block;
    width: 1.35rem;
    height: 1.35rem;
}

.btn-with-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn .cart-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
}

.cart-count {
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.25rem;
    text-align: center;
}

.cart-heading {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.guide-lead {
    max-width: 40rem;
    color: #475467;
}

.screen-card .guide-block,
.screen-card .guide-steps {
    max-width: none;
}

.guide-block {
    margin-top: 1.75rem;
}

.guide-steps {
    max-width: 42rem;
    margin: 0.75rem 0 0;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.guide-steps li {
    padding-left: 0.25rem;
}

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    min-height: 100svh;
    padding: 0;
    background: #0b1220;
    color: #fff;
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(8, 12, 22, 0.9) 0%, rgba(8, 12, 22, 0.62) 42%, rgba(8, 12, 22, 0.12) 72%);
    pointer-events: none;
}

.eyebrow {
    margin-bottom: 0.85rem;
    color: var(--accent-deep);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--logo-gold);
}

.hero h1 {
    max-width: 11ch;
    margin-bottom: 1rem;
    font-size: clamp(3rem, 6.4vw, 5.1rem);
    font-weight: 800;
    letter-spacing: -0.065em;
    line-height: 0.9;
}

.hero-gold {
    color: var(--logo-gold);
}

.hero-kicker {
    display: inline-flex;
    margin: 0 0 1rem;
    padding: 0.32rem 0.7rem;
    color: #f8e7a0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: rgba(245, 196, 0, 0.1);
    border: 1px solid rgba(245, 196, 0, 0.32);
    border-radius: 999px;
}

.hero-lead {
    max-width: 36rem;
    color: #c9d0da;
    font-size: 1.05rem;
    line-height: 1.7;
}

.hero .btn {
    min-height: 2.75rem;
    padding: 0.55rem 1.15rem;
}

.hero .btn-outline-light {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.28);
}

.hero .btn-outline-light:hover,
.hero .btn-outline-light:focus {
    color: #101828;
    background: #fff;
    border-color: #fff;
}

.hero-screen {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(1140px, calc(100% - 2rem));
    margin: 0 auto;
    min-height: 100svh;
    padding: 5.5rem 0 2.2rem;
}

.find-card {
    max-width: 24rem;
    margin-left: auto;
    padding: 1.15rem 1.15rem 1.2rem;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 1.5rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.find-steps {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.find-steps li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.find-steps li > span {
    flex: 0 0 auto;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: var(--navy);
    color: var(--logo-gold);
    font-size: 0.75rem;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.find-steps strong {
    display: block;
    letter-spacing: -0.03em;
}

.find-steps p {
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.find-card .btn {
    width: 100%;
}

.home-points-wrap {
    padding: 2.75rem 0 0;
}

/* Right after the official events the gap stays short, so the two blocks read as one page. */
.home-official + .home-points-wrap {
    padding-top: 1.25rem;
}

.home-points {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.home-points article {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.2rem 1.15rem 1.25rem;
    background: var(--card);
    border: 1px solid rgba(16, 24, 40, 0.06);
    border-radius: 1.15rem;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.04);
}

.point-icon {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: 0.35rem;
    border-radius: 0.75rem;
    background: #fff6d8;
    color: var(--navy);
}

.point-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.home-points h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.home-points p {
    margin-bottom: 0;
    color: #475467;
}

.home-pay-methods {
    padding: 0 0 2.75rem;
}

.home-pay-methods .pay-methods > h2,
.home-pay-methods .pay-methods-lead {
    text-align: center;
}

.home-pay-methods .pay-methods-lead {
    margin-left: auto;
    margin-right: auto;
}

.home-pay-methods .pay-methods-list li {
    align-items: center;
    text-align: center;
}

.pay-methods {
    margin: 0;
    padding: 0;
}

.pay-methods > h2,
.pay-methods-title {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.pay-methods-lead {
    margin: 0 0 1rem;
    max-width: 40rem;
    color: #475467;
}

.pay-methods-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0 0 0.85rem;
    padding: 0;
    list-style: none;
}

.pay-methods-list li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.95rem 0.9rem;
    border-top: 2px solid var(--accent);
}

.pay-method-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    min-height: 2rem;
    margin-bottom: 0.35rem;
}

.home-pay-methods .pay-method-logos {
    justify-content: center;
}

.pay-method-logos img {
    display: block;
    width: auto;
    max-width: 4.5rem;
    height: 1.55rem;
    object-fit: contain;
}

.pay-methods-list strong {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pay-methods-list li > span:not(.pay-method-logos) {
    color: var(--muted);
    font-size: 0.88rem;
}

.pay-methods-note {
    margin: 0;
    max-width: 40rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.home-pay-methods .pay-methods-note {
    margin: 0 auto;
    text-align: center;
}

.pay-methods-compact {
    margin: 0 0 1rem;
    padding: 0.75rem 0 0;
    border-top: 1px solid var(--line);
}

.pay-methods-compact .pay-methods-title {
    font-size: 0.92rem;
}

.pay-methods-compact .pay-methods-lead {
    margin-bottom: 0.55rem;
    font-size: 0.86rem;
}

.pay-methods-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.2rem;
    margin: 0 0 0.3rem;
}

.pay-methods-strip-item {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 1.45rem;
    padding: 0;
    border: 1px solid #e7eaee;
    border-radius: 0.28rem;
    background: #fff;
}

.pay-methods-strip-item img {
    display: block;
    width: 2rem;
    max-width: 2rem;
    height: 0.9rem;
    object-fit: contain;
}

.pay-methods-names {
    margin: 0 0 0.25rem;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.01em;
}

.pay-methods-compact .pay-methods-lead {
    margin-bottom: 0.45rem;
}

.pay-methods-compact .pay-methods-note {
    font-size: 0.78rem;
}

.home-visit {
    padding: 0 0 2.75rem;
}

.home-visit-row {
    display: grid;
    gap: 1rem;
    justify-items: center;
    text-align: center;
    padding: 1.85rem 1.5rem 2rem;
    background: #fff;
    border: 1px solid rgba(16, 24, 40, 0.06);
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.04);
}

.home-brush,
.fontHandwritten {
    font-family: var(--font-handwritten);
}

.home-brush {
    margin: 0;
    color: var(--accent-deep);
    font-size: clamp(2.1rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.1;
    text-align: center;
}

.home-brush-love {
    display: inline-block;
    margin-left: 0.08em;
    color: inherit;
    font-size: 0.78em;
    vertical-align: 0.05em;
}

.home-visit h2 {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.home-visit-row > div {
    display: grid;
    justify-items: center;
    max-width: 34rem;
}

.home-devices {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.9rem;
    margin: 0.85rem 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.home-devices span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.home-devices span + span::before {
    content: "·";
    margin-right: 0.45rem;
}

.home-devices svg {
    width: 1.05rem;
    height: 1.05rem;
    flex: none;
}

.home-sports {
    padding: 3.25rem 0;
    background: transparent;
    color: var(--ink);
}

.home-sports-lead {
    margin-bottom: 1.15rem;
    color: var(--ink);
    font-weight: 750;
    text-align: center;
}

.sport-row {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.35rem 0.5rem;
}

.sport-row a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    padding: 0.15rem 0.1rem;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.sport-icon {
    display: grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    color: var(--navy);
    background: #fff;
    border: 1.5px solid rgba(13, 21, 36, 0.16);
    border-radius: 50%;
}

.sport-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.sport-row a:hover .sport-icon,
.sport-row a:focus-visible .sport-icon {
    color: #101828;
    background: var(--logo-gold);
    border-color: var(--logo-gold);
}

.hero-stage {
    position: relative;
    min-height: 28rem;
}

.shot {
    position: absolute;
    width: min(88%, 22rem);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #1c2838;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1.6rem;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
}

.shot span {
    position: absolute;
    left: 0.9rem;
    bottom: 0.9rem;
    z-index: 1;
    max-width: calc(100% - 1.8rem);
    padding: 0.28rem 0.6rem;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 750;
    background: rgba(11, 18, 32, 0.55);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.shot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.45s ease;
}

.shot.has-photo:hover img,
.shot.has-photo:focus-visible img {
    transform: scale(1.05);
}

.shot.has-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 18, 32, 0.55), rgba(11, 18, 32, 0) 48%);
    pointer-events: none;
}

.shot-a {
    top: 0;
    left: 8%;
}

.shot-b {
    top: auto;
    right: 0;
    bottom: 5.4rem;
    width: 9rem;
    aspect-ratio: 1;
    border-radius: 1.15rem;
}

.shot-c {
    left: 0;
    bottom: 0;
    width: min(74%, 17.5rem);
    aspect-ratio: auto;
    padding: 0.95rem 1.05rem;
    background: rgba(255, 255, 255, 0.94);
    border: 0;
    border-radius: 1.15rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(12px);
}

.shot-c strong,
.shot-c small {
    display: block;
}

.shot-c strong {
    font-size: 0.95rem;
}

.shot-c small {
    color: var(--muted);
}

.panel,
main > .container > form {
    background: var(--card);
    border: 1px solid rgba(16, 24, 40, 0.06);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.04);
}

.panel {
    padding: 1.25rem 1.3rem;
}

main > .container > form {
    padding: 1.35rem;
}

.panel.feature-card.has-cover {
    padding: 0;
    overflow: hidden;
}

.feature-cover {
    display: block;
    background: #eceff3;
}

.feature-cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.feature-card-body {
    padding: 0;
}

.panel.feature-card.has-cover .feature-card-body {
    padding: 1.05rem 1.2rem 1.2rem;
}

.feature-card h2 {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.feature-card p {
    color: #475467;
}

.stat-label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stat-value {
    margin-top: 0.35rem;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.checkout-lines {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkout-count {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.checkout-brief .guide-lead {
    max-width: none;
    margin-bottom: 1rem;
}

.checkout-brief > a {
    font-weight: 700;
}

.checkout-photos {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.checkout-photo-row {
    display: grid;
    grid-template-columns: 6.25rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
}

.checkout-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}

.checkout-photo-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    font-size: 0.92rem;
}

.checkout-photo-copy a {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.checkout-photo-copy a:hover,
.checkout-photo-copy a:focus {
    color: var(--accent-deep);
}

.checkout-photo-price {
    margin-top: 0.35rem;
    font-weight: 800;
}

.checkout-aside .btn-accent {
    width: 100%;
}

@media (min-width: 992px) {
    .checkout-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 1.5rem;
        align-items: start;
    }

    .checkout-aside {
        position: sticky;
        top: 1.25rem;
    }

    .checkout-photo-row {
        grid-template-columns: 8.5rem minmax(0, 1fr);
    }
}

.error-page {
    max-width: 36rem;
    margin: 2.5rem auto 3.5rem;
    padding: 2rem 0 1rem;
    text-align: center;
}

.error-page .guide-lead {
    margin-left: auto;
    margin-right: auto;
}

.error-page-detail {
    margin: 0 0 1.25rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.error-page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.page {
    max-width: 44rem;
}

.page h1,
main h1 {
    font-weight: 800;
    letter-spacing: -0.04em;
}

main > .container {
    padding-top: 2.4rem;
    padding-bottom: 2.4rem;
}

.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(700px 320px at 50% -10%, rgba(227, 107, 18, 0.18), transparent 60%),
        linear-gradient(180deg, #fff, var(--canvas));
}

.auth-shell {
    width: min(28rem, calc(100% - 2rem));
    margin: 0 auto;
    padding: 3rem 0 2rem;
}

.auth-panel {
    padding: 1.5rem;
}

.auth-panel h1 {
    font-weight: 800;
    letter-spacing: -0.04em;
}

.form-control,
.form-select {
    border: 1px solid #d8dee7;
    border-radius: 0.85rem;
    background-color: #fbfcfe;
    padding: 0.7rem 0.85rem;
}

.form-select {
    padding-right: 2.25rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #efb07a;
    box-shadow: 0 0 0 0.22rem rgba(227, 107, 18, 0.16);
}

.form-label {
    font-size: 0.92rem;
    font-weight: 750;
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 3rem;
}

/* Edge has its own eye, which would show as a second one. */
.password-field input::-ms-reveal,
.password-field input::-ms-clear {
    display: none;
}

.password-eye {
    position: absolute;
    top: 50%;
    right: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 0.65rem;
    background: transparent;
    color: var(--muted);
    transform: translateY(-50%);
}

.password-eye:hover {
    color: var(--ink);
}

.password-eye:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.btn {
    border-radius: 999px;
    font-weight: 750;
}

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 8px 18px rgba(227, 107, 18, 0.22);
}

.btn-accent:hover,
.btn-accent:focus {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    color: var(--accent-ink);
}

.topbar a.btn-accent,
.topbar a.btn-accent:hover,
.topbar a.btn-accent:focus {
    color: var(--accent-ink);
    background: var(--accent);
    border-color: var(--accent);
}

.topbar a.btn-accent:hover,
.topbar a.btn-accent:focus {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
}

.btn-outline-dark {
    background: #fff;
    border-color: #d0d5dd;
    color: var(--ink);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.alert {
    border: 0;
    border-radius: 1rem;
}

.panel .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--ink);
}

.panel .table thead th {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom-color: var(--line);
}

.panel .table td {
    border-color: #f0f2f5;
    vertical-align: top;
}

main code {
    color: var(--navy);
    background: #f2f4f7;
    border-radius: 0.4rem;
    padding: 0.1rem 0.35rem;
}

main .list-unstyled li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
}

.status-pending,
.status-approved,
.status-paid,
.status-rejected,
.status-banned,
.status-cancelled {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: capitalize;
}

.status-pending {
    color: var(--pending);
    background: var(--pending-bg);
}

.status-approved,
.status-paid {
    color: var(--ok);
    background: var(--ok-bg);
}

.status-rejected,
.status-banned,
.status-cancelled {
    color: var(--danger);
    background: var(--danger-bg);
}

.site-footer {
    margin-top: auto;
    padding: 2rem 0;
    background: var(--navy);
    color: #d0d5dd;
    font-size: 0.92rem;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    color: #ffd7b8;
}

.footer-row {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-brand {
    color: #fff;
    margin-bottom: 0.55rem;
}

.footer-copy {
    min-width: 0;
    max-width: 40rem;
}

.footer-copy p {
    margin: 0;
    line-height: 1.55;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.1rem;
}

.footer-side {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 50%;
    color: #fff;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus-visible {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.social-field-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
}

.footer-legal {
    margin: 1.35rem 0 0;
    color: #98a2b3;
    font-size: 0.82rem;
    line-height: 1.5;
}

.footer-entity {
    display: inline-block;
    margin-top: 0.15rem;
    font-size: 0.68rem;
    letter-spacing: 0.01em;
}

.face-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.face-photo-actions .form-control {
    flex: 1 1 16rem;
}

.face-camera-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.face-snap {
    display: block;
    width: 7.5rem;
    height: 7.5rem;
    margin-top: 0.75rem;
    object-fit: cover;
    border-radius: 0.7rem;
    background: #111;
}

.face-camera-note {
    margin: 0.55rem 0 0;
    color: var(--pending);
}

@media (min-width: 768px) {
    .footer-row {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 2rem;
    }

    .footer-copy {
        flex: 1 1 auto;
    }

    .footer-side {
        flex: 0 0 auto;
        align-items: flex-end;
    }

    .footer-links {
        flex: 0 0 auto;
        padding-top: 0.4rem;
    }

    .hero-stage {
        min-height: 28rem;
    }
}

@media (min-width: 992px) {
    .topbar .navbar > .container {
        flex-wrap: nowrap;
    }

    .topbar .navbar-collapse {
        order: 1;
        flex-grow: 1;
    }

    .topbar .header-tools {
        order: 2;
        margin-left: 0.75rem;
    }

    .header-cart-label {
        display: inline;
    }

    .hero-screen {
        width: min(1180px, calc(100% - 4rem));
        padding-bottom: 2.2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-photo {
        object-position: 93% 30%;
    }

    .hero-lead {
        max-width: 10.5rem;
    }
}

@media (max-width: 991.98px) {
    .topbar .navbar-collapse {
        padding: 0.4rem 0 0.8rem;
    }

    body.home .navbar-collapse {
        margin-top: 0.35rem;
        padding: 0.45rem 0.6rem 0.7rem;
        background: rgba(13, 21, 36, 0.94);
        border-radius: 1rem;
    }

    body.home .topbar.is-solid .navbar-collapse {
        background: #fff;
    }

    .hero::before {
        background:
            linear-gradient(90deg, rgba(8, 12, 22, 0.78) 0%, rgba(8, 12, 22, 0.42) 52%, rgba(8, 12, 22, 0.08) 100%),
            linear-gradient(180deg, rgba(8, 12, 22, 0.28), transparent 28%, transparent 72%, rgba(8, 12, 22, 0.45));
    }

    .find-card {
        margin: 0.5rem auto 0;
    }

    .home-points {
        grid-template-columns: 1fr 1fr;
    }

    .pay-methods-list {
        grid-template-columns: 1fr 1fr;
    }

    .hero-stage {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        min-height: 0;
    }

    .shot,
    .shot-c {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        transform: none;
    }

    .shot-a,
    .shot-b {
        aspect-ratio: 4 / 3;
    }
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem 1rem;
    align-items: end;
}

.filter-submit,
.filter-span {
    grid-column: 1 / -1;
}

.filter-wide {
    grid-column: span 2;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 205px), 1fr));
    gap: 1rem;
}

.photo-card {
    margin: 0;
}

.photo-bulk {
    position: sticky;
    top: 4.75rem;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.photo-bulk-count {
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
}

.photo-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-left: auto;
}

.photo-select {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
    cursor: pointer;
}

.photo-select .form-check-input,
.photo-bulk-all .form-check-input {
    margin-top: 0;
}

.photo-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.panel.event-card {
    padding: 0;
    overflow: visible;
}

.event-cover {
    display: block;
    overflow: hidden;
    background: #eceff3;
    border-radius: var(--radius) var(--radius) 0 0;
}

.event-cover img,
.event-cover-empty {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.event-cover-empty {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.event-card-body {
    padding: 1.05rem 1.2rem 1.2rem;
}

.event-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.event-card-top .eyebrow {
    margin-bottom: 0.25rem;
}

.event-share-wrap {
    position: relative;
    flex: none;
}

.event-share {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    margin: -0.2rem -0.25rem 0 0;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 1px solid rgba(16, 24, 40, 0.12);
    border-radius: 999px;
}

.event-share svg {
    width: 1rem;
    height: 1rem;
}

.event-share:hover,
.event-share:focus-visible,
.event-share[aria-expanded="true"] {
    color: var(--accent-deep);
    background: #fff6d8;
    border-color: rgba(227, 107, 18, 0.28);
}

.event-share-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 30;
    display: grid;
    min-width: 10.25rem;
    padding: 0.35rem;
    background: #fff;
    border: 1px solid rgba(16, 24, 40, 0.1);
    border-radius: 0.85rem;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.12);
}

.event-share-menu[hidden] {
    display: none !important;
}

.event-share-item {
    display: block;
    width: 100%;
    padding: 0.45rem 0.65rem;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 0.55rem;
    text-align: left;
    text-decoration: none;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1.3;
    cursor: pointer;
}

.event-share-item:hover,
.event-share-item:focus-visible {
    color: var(--ink);
    background: #f2f4f7;
}

.event-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.event-grid .event-cover img,
.official-slide .event-cover img {
    object-position: center 30%;
    transition: transform 0.35s ease;
}

.event-grid .event-cover:hover img,
.official-slide .event-cover:hover img,
.event-grid .event-cover:focus-visible img,
.official-slide .event-cover:focus-visible img {
    transform: scale(1.08);
}

.event-grid .event-card-body,
.official-slide .event-card-body {
    padding: 0.7rem 0.75rem 0.85rem;
}

.event-grid .event-card-body h2,
.official-slide .event-card-body h2 {
    font-size: 1rem;
}

.event-grid .event-card-body p,
.official-slide .event-card-body p {
    font-size: 0.8rem;
}

@media (min-width: 576px) {
    .event-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .event-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1rem;
    }
}

@media (min-width: 1200px) {
    .event-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

.photo-open {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    border-radius: 0.9rem;
    background: #eceff3;
    cursor: zoom-in;
}

.photo-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    background: #eceff3;
    transition: transform 0.45s ease;
}

.photo-card figcaption {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-top: 0.55rem;
    font-size: 0.86rem;
}

figure.photo-card {
    display: flex;
    flex-direction: column;
}

figure.photo-card figcaption {
    flex: 1;
}

.photo-card .buy-form {
    margin-top: auto;
    padding-top: 0.45rem;
}

.photo-card .buy-form .btn {
    width: 100%;
}

.photo-card {
    scroll-margin-top: 6rem;
}

.photo-card .photo-open {
    position: relative;
}

.photo-card.is-in-cart .photo-open {
    outline: 3px solid var(--ok);
    outline-offset: -3px;
}

.in-cart-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: var(--ok);
    color: #fff;
    box-shadow: 0 2px 6px rgba(16, 24, 40, 0.25);
}

.storage-cleanup-note {
    padding: 0.6rem 0.75rem;
    border-left: 3px solid #b42318;
    border-radius: 0.4rem;
    background: #fef3f2;
    color: #7a271a;
}

.event-cover,
.search-event-cover {
    position: relative;
}

.coming-soon {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.event-cover .coming-soon,
.search-event-cover .coming-soon {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(16, 24, 40, 0.2);
}

.coming-soon-note {
    margin-top: 0.5rem;
    color: var(--muted);
}

.coming-soon-note .coming-soon {
    margin-right: 0.35rem;
}

.event-hero-cover {
    position: relative;
    display: block;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    margin: 0.25rem 0 0.75rem;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: #fff;
}

.event-hero-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.event-hero-cover .coming-soon {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(16, 24, 40, 0.2);
}

/* On a phone the poster takes the full width, whatever the phone size, so no gap is left at the side. */
@media (max-width: 767.98px) {
    .event-intro .event-hero-cover {
        max-width: 100%;
    }
}

/* On a wide screen the logo or poster sits to the right of the event details, not above them. */
@media (min-width: 768px) {
    .event-intro .event-hero-cover {
        float: right;
        width: 42%;
        max-width: 460px;
        margin: 0 0 1rem 1.5rem;
    }

    .event-intro::after {
        content: "";
        display: block;
        clear: both;
    }
}

.event-cover-preview {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 3 / 2;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    object-fit: contain;
    background: #fff;
}

.qr-poster-logo {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    aspect-ratio: 3 / 2;
    margin: 0 auto 0.5rem;
    object-fit: contain;
}

.register-perks {
    margin: 0 0 1rem;
    padding-left: 1.1rem;
    color: var(--muted);
}

.home-official {
    padding: 2.5rem 0 0;
}

.home-official-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.home-official-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.official-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
}

.official-arrow:hover,
.official-arrow:focus-visible {
    border-color: var(--accent);
    color: var(--accent-deep);
}

/* One row that slides sideways. Three cards fit on a computer, two on a tablet, and on a phone
   one card with the edge of the next, so people can see there is more to swipe to. */
.official-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 2rem) / 3);
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Room below the cards so their shadow is not cut off by the sliding row. */
    padding: 0.25rem 0.25rem 1.1rem;
    margin: -0.25rem -0.25rem 0;
}

.official-track::-webkit-scrollbar {
    display: none;
}

.official-slide {
    scroll-snap-align: start;
    min-width: 0;
}

.official-slide .event-card {
    height: 100%;
}

@media (max-width: 991.98px) {
    .official-track {
        grid-auto-columns: calc((100% - 1rem) / 2);
    }
}

@media (max-width: 575.98px) {
    .official-track {
        grid-auto-columns: 85%;
        gap: 0.75rem;
    }

    /* On a phone people swipe, so the arrows give the title its room. */
    .official-arrow {
        display: none;
    }
}

/* With only one official event there is nothing to swipe to, so its card takes the full width. */
.official-track:has(> .official-slide:only-child) {
    grid-auto-columns: 100%;
}

@media (min-width: 576px) {
    .official-track:has(> .official-slide:only-child) {
        grid-auto-columns: calc((100% - 1rem) / 2);
    }
}

@media (min-width: 992px) {
    .official-track:has(> .official-slide:only-child) {
        grid-auto-columns: calc((100% - 2rem) / 3);
    }
}

/* A single official event gets a wide card: poster on the left, details on the right. */
.official-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

.official-feature-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #eceff3;
}

.official-feature-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.official-feature-cover:hover img {
    transform: scale(1.04);
}

.official-feature-cover .coming-soon {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(16, 24, 40, 0.2);
}

.official-feature-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    padding: 1.75rem 2rem;
}

.official-feature-body > p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
}

.official-feature-title {
    margin: 0.2rem 0 0.4rem;
    font-size: 1.75rem;
}

.official-feature-title a {
    color: inherit;
    text-decoration: none;
}

.official-feature-title a:hover {
    color: var(--accent-deep);
}

.official-feature-actions {
    margin-top: 0.85rem;
}

@media (max-width: 767.98px) {
    .official-feature {
        grid-template-columns: minmax(0, 1fr);
    }

    .official-feature-body {
        padding: 1rem 1.1rem 1.25rem;
    }

    .official-feature-title {
        font-size: 1.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .official-feature-cover img {
        transition: none;
    }

    .official-feature-cover:hover img {
        transform: none;
    }
}

.add-all {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.9rem;
    margin: 0.25rem 0 1rem;
}

.add-all-note {
    color: var(--muted);
    font-size: 0.85rem;
}

.add-all-done {
    margin: 0.25rem 0 1rem;
    color: var(--ok);
    font-weight: 600;
}

/* Storage by photographer: one bar each, one colour, the value written beside it. */
.storage-chart {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.storage-chart-row {
    display: grid;
    grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.88rem;
}

.storage-chart-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.storage-chart-track {
    display: block;
    height: 0.75rem;
}

.storage-chart-bar {
    display: block;
    height: 100%;
    min-width: 2px;
    border-radius: 0 4px 4px 0;
    background: var(--navy);
}

.storage-chart-row:hover .storage-chart-bar {
    background: var(--accent);
}

.storage-chart-value {
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .storage-chart-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.2rem 0.75rem;
    }

    .storage-chart-track {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

/* Storage over the limit: one card per photographer, the plan form on the right. */
.storage-report-summary {
    margin-bottom: 1rem;
}

.storage-report-soon {
    color: #b42318;
    font-weight: 600;
}

.storage-report-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
    gap: 1rem 1.5rem;
}

.storage-report-row.is-soon {
    border-left: 4px solid #d92d20;
}

.storage-report-row.is-soon .storage-report-removal {
    color: #b42318;
    font-weight: 600;
}

.storage-report-facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.5rem 1.25rem;
    margin: 0;
    font-size: 0.88rem;
}

.storage-report-facts dt {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.storage-report-facts dd {
    margin: 0;
}

.storage-report-wide {
    grid-column: 1 / -1;
}

.storage-report-actions {
    display: grid;
    align-content: start;
    gap: 0.6rem;
}

@media (max-width: 767.98px) {
    .storage-report-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* An event promotion, such as "Diskaun Istimewa", under the event details. */
.promo-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.6rem;
    margin: 0 0 0.85rem;
}

.promo-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.promo-banner.is-upcoming .promo-badge {
    background: var(--ink);
    color: #fff;
}

.cron-status {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--muted);
}

.cron-dot {
    flex: none;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--ok);
}

.cron-dot.is-waiting {
    background: var(--muted);
}

.cron-dot.is-late {
    background: #d92d20;
}

/* Sales by day: one thin bar per day, one colour, the figure in a tip on hover or focus. */
.sales-chart {
    position: relative;
    display: grid;
    grid-template-columns: repeat(30, minmax(0, 1fr));
    align-items: end;
    gap: 2px;
    height: 10.75rem;
    margin: 0;
    /* Room above the tallest bar for its tip. */
    padding: 1.75rem 0 0;
    border-bottom: 1px solid var(--line);
    list-style: none;
}

.sales-chart-day {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 100%;
    cursor: default;
    outline: none;
}

.sales-chart-bar {
    display: block;
    width: 100%;
    max-width: 1.25rem;
    margin: 0 auto;
    border-radius: 4px 4px 0 0;
    background: var(--navy);
}

.sales-chart-day:hover .sales-chart-bar,
.sales-chart-day:focus-visible .sales-chart-bar {
    background: var(--accent);
}

.sales-chart-day:focus-visible {
    box-shadow: inset 0 -2px 0 var(--accent);
}

.sales-chart-tip {
    position: absolute;
    bottom: calc(100% + 0.35rem);
    left: 50%;
    z-index: 2;
    padding: 0.3rem 0.55rem;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    font-size: 0.8rem;
    white-space: nowrap;
    transform: translateX(-50%);
    pointer-events: none;
    clip-path: inset(50%);
    opacity: 0;
}

.sales-chart-day:nth-child(-n+5) .sales-chart-tip {
    left: 0;
    transform: none;
}

.sales-chart-day:nth-last-child(-n+5) .sales-chart-tip {
    right: 0;
    left: auto;
    transform: none;
}

.sales-chart-day:hover .sales-chart-tip,
.sales-chart-day:focus-visible .sales-chart-tip {
    clip-path: none;
    opacity: 1;
}

.sales-chart-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.78rem;
}

.needs-action-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.needs-action-list a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.needs-action-list a:hover {
    color: var(--accent-deep);
}

.needs-action-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 0.85rem;
}

.official-badge {
    display: inline-block;
    margin-left: 0.25rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: 0.1em;
}

.official-note {
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    background: var(--ok-bg);
    color: var(--ink);
}

.join-requests-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
}

.team-sales {
    color: var(--ok);
    font-weight: 600;
}

.bib-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Sales figures at the top of a photographer's event page. */
.event-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    max-width: 40rem;
    margin: 0 0 1rem;
}

.event-stats > div {
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
}

.event-stats dt {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.event-stats dd {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .event-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.join-requests {
    padding-top: 0.5rem;
}

.join-request {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.6rem 0;
    border-top: 1px solid var(--line);
}

.btn-in-cart {
    white-space: nowrap;
    border: 1px solid var(--ok);
    background: var(--ok-bg);
    color: var(--ok);
    font-weight: 600;
}

.topbar .header-cart.is-bumped .cart-count {
    animation: cart-bump 0.45s ease;
}

@keyframes cart-bump {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .topbar .header-cart.is-bumped .cart-count {
        animation: none;
    }
}

.btn-in-cart:hover,
.btn-in-cart:focus-visible {
    border-color: var(--ok);
    background: var(--ok);
    color: #fff;
}

.photo-open:hover img,
.photo-open:focus-visible img {
    transform: scale(1.08);
}

.photo-lightbox .modal-dialog {
    width: calc(100vw - 1rem);
    max-width: 1100px;
    margin: 0.5rem auto;
}

.photo-lightbox .modal-content {
    position: relative;
    display: grid;
    gap: 0.85rem;
    justify-items: center;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body:has(#photo-modal.show) .modal-backdrop.show {
    opacity: 0.86;
}

.photo-modal-close {
    position: absolute;
    top: 0.15rem;
    right: 0.15rem;
    z-index: 3;
    opacity: 0.92;
}

.photo-modal-stage {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
}

.photo-modal-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(82vh, 900px);
    margin: 0 auto;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
}

.photo-modal-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.photo-modal-prev {
    left: 0.35rem;
}

.photo-modal-next {
    right: 0.35rem;
}

.photo-modal-arrow:disabled {
    opacity: 0.38;
}

.photo-modal-arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.photo-modal-actions {
    display: flex;
    width: min(100%, 34rem);
    gap: 0.5rem;
    margin: 0;
}

.photo-modal-actions .btn {
    flex: 1 1 0;
}

/* Share in the photo popup: the same menu as the event Share, opening upwards. */
.photo-modal-share-wrap {
    position: relative;
    display: flex;
    flex: 1 1 0;
}

.photo-modal-share-wrap[hidden] {
    display: none;
}

.photo-modal-share-wrap .photo-modal-share {
    width: 100%;
}

.photo-modal-share-menu {
    top: auto;
    bottom: calc(100% + 0.4rem);
}

.cart-line {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
}

.cart-line img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.cart-line > div {
    flex: 1 1 auto;
}

.cart-summary {
    width: 100%;
    max-width: 32rem;
    margin-top: 0;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    max-width: none;
}

.cart-empty-copy {
    min-width: 0;
}

.cart-empty-title {
    margin: 0 0 0.25rem;
    font-weight: 800;
}

.cart-empty .empty-note {
    margin: 0;
    max-width: 40rem;
}

@media (min-width: 992px) {
    .cart-empty {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
        padding: 1.5rem 1.75rem;
    }

    .cart-empty .btn-accent {
        width: auto;
        flex: 0 0 auto;
    }
}

.cart-layout {
    display: grid;
    gap: 1rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 6.25rem minmax(0, 1fr);
    grid-template-areas:
        "photo copy"
        "photo meta";
    gap: 0.45rem 0.85rem;
    align-items: center;
    margin: 0;
    padding: 0.75rem;
    background: var(--card);
    border: 1px solid rgba(16, 24, 40, 0.06);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.04);
}

.cart-item-meta {
    grid-area: meta;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.cart-thumb {
    grid-area: photo;
    align-self: start;
    border-radius: 0.8rem;
}

.cart-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    background: #eceff3;
}

.cart-item-copy {
    grid-area: copy;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    font-size: 0.92rem;
}

.cart-item-copy strong,
.cart-item-copy a {
    color: var(--ink);
    text-decoration: none;
}

.cart-item-copy a:hover,
.cart-item-copy a:focus {
    color: var(--accent-deep);
}

.cart-item-price {
    grid-area: price;
    display: flex;
    flex-direction: column;
    font-weight: 800;
}

.cart-item-price .text-secondary {
    font-size: 0.8rem;
    font-weight: 650;
    text-decoration: line-through;
}

.cart-item-remove {
    grid-area: remove;
    margin: 0;
}

.cart-item-remove .btn {
    min-height: 2.5rem;
    padding-right: 0.9rem;
    padding-left: 0.9rem;
}

@media (max-width: 991.98px) {
    .cart-summary-card .voucher-controls {
        flex-direction: column;
    }

    .cart-summary-card .voucher-controls .btn,
    .cart-summary-card .btn-accent,
    .cart-empty .btn-accent {
        width: 100%;
        min-height: 2.75rem;
    }
}

.cart-summary-card {
    padding: 1.2rem 1.25rem 1.3rem;
    background: var(--card);
    border: 1px solid rgba(16, 24, 40, 0.06);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.04);
}

.cart-summary-card .cart-summary {
    max-width: none;
}

.cart-summary-card .eyebrow {
    margin-bottom: 0.85rem;
}

.cart-summary-card .money-table tr:last-child th,
.cart-summary-card .money-table tr:last-child td {
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
    font-size: 1.15rem;
    font-weight: 800;
}

@media (min-width: 992px) {
    .cart-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 1.5rem;
        align-items: start;
    }

    .cart-aside {
        position: sticky;
        top: 1.25rem;
    }

    .cart-item {
        grid-template-columns: 8.5rem minmax(0, 1fr) 7.5rem auto;
        grid-template-areas: "photo copy price remove";
        gap: 0 1.15rem;
        align-items: center;
        padding: 0.85rem 1rem;
    }

    .cart-item-meta {
        display: contents;
    }

    .cart-thumb {
        align-self: center;
    }

    .cart-item-price {
        text-align: right;
        align-items: flex-end;
    }
}

.voucher-row {
    margin-bottom: 0.85rem;
}

.voucher-controls {
    display: flex;
    gap: 0.5rem;
}

.voucher-controls .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

.voucher-controls .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.flash-alert {
    transition: opacity 0.3s ease;
}

/* On the home page the menu floats over the photograph, so a message sits just below it. */
body.home main {
    position: relative;
}

body.home [data-flash-slot] {
    position: absolute;
    top: 4.75rem;
    left: 0;
    right: 0;
    z-index: 20;
    padding-top: 0 !important;
}

body.home [data-flash-slot] .alert {
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.18);
}

.flash-alert.is-hiding {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .flash-alert,
    .photo-card img,
    .event-grid .event-cover img,
    .official-slide .event-cover img,
    .shot img,
    .hero-visual img {
        transition: none;
    }

    .photo-open:hover img,
    .photo-open:focus-visible img,
    .event-grid .event-cover:hover img,
    .official-slide .event-cover:hover img,
    .event-grid .event-cover:focus-visible img,
    .official-slide .event-cover:focus-visible img,
    .shot.has-photo:hover img,
    .shot.has-photo:focus-visible img,
    .hero-visual:hover img,
    .hero-visual:focus-visible img {
        transform: none;
    }
}

.cart-summary .money-table {
    max-width: none;
    margin: 0 0 1rem;
}

.cart-summary .btn-accent {
    width: 100%;
}

.money-table {
    width: 100%;
    max-width: 22rem;
    margin: 1rem 0 1rem auto;
}

.money-table th {
    font-weight: 650;
    text-align: left;
    padding: 0.2rem 0.75rem 0.2rem 0;
}

.money-table td {
    text-align: right;
}

.sales-table {
    width: 100%;
    margin: 0;
}

.sales-table th,
.sales-table td {
    text-align: left;
    padding: 0.45rem 0.75rem 0.45rem 0;
    vertical-align: top;
}

.sales-table th:nth-child(n + 2),
.sales-table td:nth-child(n + 2) {
    text-align: right;
    white-space: nowrap;
}

.upload-path {
    list-style: none;
    margin: 1.25rem 0 1.5rem;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.upload-path li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 0;
    padding: 0.9rem 1rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 1rem;
}

.upload-path li.is-current {
    border-color: var(--accent);
}

.upload-path li > span {
    flex: 0 0 auto;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: var(--navy);
    color: var(--logo-gold);
    font-size: 0.75rem;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.upload-path strong {
    display: block;
    letter-spacing: -0.03em;
}

.upload-path p {
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.password-strength {
    margin-top: 0.55rem;
}

.storage-usage-line {
    margin: 0 0 0.5rem;
}

.storage-usage-track {
    height: 0.6rem;
    overflow: hidden;
    background: #e7ebf0;
    border-radius: 999px;
}

.storage-usage-bar {
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}

.storage-usage-note {
    margin: 0.5rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.storage-usage-more {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.storage-usage.is-nearly-full .storage-usage-bar {
    background: #b54708;
}

.storage-usage.is-nearly-full .storage-usage-note {
    color: #b54708;
    font-weight: 600;
}

.storage-usage.is-full .storage-usage-bar {
    background: #b42318;
}

.storage-usage.is-full .storage-usage-note {
    color: #b42318;
    font-weight: 600;
}

.plan-card {
    display: flex;
    flex-direction: column;
}

.plan-card.is-current {
    border: 2px solid var(--accent);
}

.plan-normal,
.plan-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.plan-price {
    margin: 0 0 0.75rem;
    font-size: 1.75rem;
    font-weight: 750;
}

.plan-price span {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 400;
}

.plan-size {
    margin: 0;
}

.plan-action {
    margin-top: auto;
    padding-top: 1rem;
}

.plan-current {
    display: block;
    color: var(--accent-deep);
    font-weight: 700;
    text-align: center;
}

.account-storage {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.account-storage.is-nearly-full {
    color: #b54708;
    font-weight: 600;
}

.account-storage.is-full {
    color: #b42318;
    font-weight: 600;
}

.password-strength-track {
    height: 0.35rem;
    overflow: hidden;
    background: #e7ebf0;
    border-radius: 999px;
}

.password-strength-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #98a2b3;
    transition: width 0.18s ease, background-color 0.18s ease;
}

.password-strength-label {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 650;
}

.password-strength[data-score="1"] .password-strength-bar {
    background: #b42318;
}

.password-strength[data-score="2"] .password-strength-bar {
    background: #b54708;
}

.password-strength[data-score="3"] .password-strength-bar {
    background: #ca8a04;
}

.password-strength[data-score="4"] .password-strength-bar,
.password-strength[data-score="5"] .password-strength-bar {
    background: #067647;
}

.password-strength[data-score="1"] .password-strength-label {
    color: #b42318;
}

.password-strength[data-score="2"] .password-strength-label {
    color: #b54708;
}

.password-strength[data-score="4"] .password-strength-label,
.password-strength[data-score="5"] .password-strength-label {
    color: #067647;
}

.password-match {
    margin: 0.4rem 0 0;
    font-size: 0.82rem;
    font-weight: 650;
}

.password-match[data-state="match"] {
    color: #067647;
}

.password-match[data-state="mismatch"] {
    color: #b42318;
}

.screen-card {
    width: 100%;
    max-width: none;
    padding: 1.75rem 1.5rem 2rem;
}

.screen-card .guide-lead {
    max-width: none;
}

.legal-doc {
    width: 100%;
}

.legal-doc .guide-lead,
.legal-doc .legal-contact {
    max-width: none;
}

.legal-doc .legal-updated {
    margin: -0.35rem 0 1.25rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.legal-section {
    margin: 0 0 1.35rem;
}

.legal-section h2 {
    margin-bottom: 0.45rem;
}

.legal-section p {
    margin-bottom: 0.55rem;
    max-width: none;
    color: #344054;
    line-height: 1.6;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-contact {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(16, 24, 40, 0.08);
}

.account-event-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.1rem;
}

.account-event-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(16, 24, 40, 0.08);
    border-radius: 0.9rem;
    background: #f8fafc;
}

.account-event-row h2 a {
    color: var(--ink);
    text-decoration: none;
}

.account-event-row h2 a:hover,
.account-event-row h2 a:focus-visible {
    color: var(--accent-deep);
}

.logout-modal-content {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.18);
}

.logout-modal-content .modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.logout-modal-content .modal-footer form {
    margin: 0;
}

.upload-fold summary {
    cursor: pointer;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.upload-fold summary + * {
    margin-top: 0.85rem;
}

.account-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.15rem;
    margin-top: 0.95rem;
}

.account-links a {
    font-weight: 700;
}

.account-card {
    margin-bottom: 0.9rem;
}

.account-card-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    margin-bottom: 0.25rem;
}

.account-card h2 {
    margin-bottom: 0.15rem;
}

.account-card-id p,
.account-note {
    margin: 0;
    color: var(--muted);
}

.account-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.4rem;
}

.account-role {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
    background: #f2f4f7;
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 800;
}

.account-note {
    margin-top: 0.85rem;
}

.account-approve {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: #fbfcfe;
}

.account-approve.is-pending {
    border-color: rgba(227, 107, 18, 0.35);
    background: rgba(227, 107, 18, 0.06);
}

.account-approve-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink);
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1.25rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.account-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.account-action .form-label {
    margin: 0;
    min-width: auto;
}

.account-action .form-control,
.account-action .form-select {
    width: auto;
    min-width: 8rem;
    max-width: 14rem;
}

.drop-zone {
    position: relative;
    display: grid;
    gap: 0.35rem;
    place-items: center;
    min-height: 8.5rem;
    padding: 1.25rem;
    border: 1.5px dashed #d0d5dd;
    border-radius: 1rem;
    background: #fbfcfe;
    text-align: center;
}

.drop-zone.is-dragging {
    border-color: var(--accent);
    background: rgba(227, 107, 18, 0.08);
}

.drop-zone-copy,
.drop-zone-count {
    margin: 0;
    pointer-events: none;
}

.drop-zone-copy {
    font-weight: 750;
}

.drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.drop-zone-count {
    color: var(--muted);
    font-size: 0.86rem;
}

.upload-queue {
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}

.upload-queue:empty {
    display: none;
}

.upload-queue-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    background: #fff;
}

.upload-queue-item span:first-child {
    flex: 1 1 12rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.upload-queue-item.is-uploading {
    border-color: var(--accent);
}

.upload-queue-item.is-done span:nth-child(2) {
    color: var(--ok);
    font-weight: 750;
}

.upload-queue-item.is-failed span:nth-child(2) {
    color: var(--danger);
    font-weight: 750;
}

.upload-queue-note {
    margin: 0 0 0.85rem;
    color: var(--muted);
}

@media (min-width: 768px) {
    .upload-path {
        grid-template-columns: repeat(3, 1fr);
    }
}

.photo-card figcaption span,
.approx,
.empty-note {
    color: var(--muted);
}

.approx {
    color: var(--pending);
    font-size: 0.8rem;
}

.album-shot-by {
    margin: -0.35rem 0 0.6rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.result-count {
    font-weight: 750;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.85rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.crumbs a {
    text-decoration: none;
}

.crumbs [aria-current="page"] {
    color: var(--ink);
    font-weight: 750;
}

.album-block {
    margin-top: 1.5rem;
}

.event-intro-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.event-intro-top .eyebrow {
    margin-bottom: 0.25rem;
}

.event-intro > p {
    margin-bottom: 0.3rem;
}

.event-intro .event-description {
    max-width: 42rem;
    margin-top: 0.7rem;
    margin-bottom: 0.7rem;
}

.event-intro .search-finder-buttons {
    margin-top: 0.9rem;
    margin-bottom: 0.6rem;
}

.event-name {
    text-transform: capitalize;
}

/* Hides the broken image mark and its text during the short wait before asking again. */
img.photo-retrying {
    color: transparent;
}

.event-results {
    margin-top: 1.5rem;
}

.photographer-by {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.photographer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
}

.photographer-link:hover span:last-child,
.photographer-link:focus-visible span:last-child {
    text-decoration: underline;
}

.photographer-heading {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.75rem;
}

.photographer-heading h1 {
    margin-bottom: 0;
}

.photographer-heading .photographer-photo {
    width: 4rem;
    height: 4rem;
    font-size: 1.1rem;
}

.photographer-photo {
    display: inline-block;
    flex: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
}

.photographer-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.photographer-by.is-large .photographer-photo {
    width: 4rem;
    height: 4rem;
    font-size: 1.1rem;
}

.account-photo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.search-time-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.album-block h2 {
    margin-bottom: 0.8rem;
}

.page-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.2rem;
}

.page-nav a {
    min-width: 2.2rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
}

.page-nav a.is-current {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

@media (max-width: 991.98px) {
    .filter-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767.98px) {
    .sport-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.9rem 0.4rem;
    }

    .sport-icon {
        width: 2.45rem;
        height: 2.45rem;
    }

    .photo-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    /* Photographs for sale show two to a row, so a buyer sees four at once while scrolling.
       The event name is already at the top of the page, so each card keeps only its time. */
    .photo-grid-shop {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .photo-grid-shop .photo-card figcaption {
        font-size: 0.75rem;
    }

    .photo-grid-shop .photo-card figcaption strong {
        display: none;
    }

    .photo-grid-shop .photo-card .buy-form .btn {
        padding: 0.4rem 0.3rem;
        font-size: 0.72rem;
    }

    /* The 3 / 2 keeps space before the image arrives. A lazy image with no height may never load. */
    .photo-card img {
        width: 100%;
        height: auto;
        aspect-ratio: auto 3 / 2;
        object-fit: contain;
    }

    /* Event cards keep one shape, so a tall cover cannot make its card longer. */
    .event-grid .event-cover img,
    .official-slide .event-cover img {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 2;
        object-fit: cover;
    }

    main h1 {
        font-size: 2rem;
    }

    .shot.shot-c {
        width: 100%;
        overflow: visible;
    }

    .form-control,
    .form-select {
        font-size: 16px;
        padding: 0.5rem 0.75rem;
    }

    .form-select {
        padding-right: 2.25rem;
    }

    .face-photo-actions .btn {
        width: 100%;
    }

    .btn {
        font-size: 0.875rem;
    }

    .photo-modal-actions {
        flex-direction: column;
        width: min(100%, 20rem);
    }

    .photo-modal-image {
        max-height: min(74vh, 900px);
    }

    .photo-modal-prev {
        left: 0.15rem;
    }

    .photo-modal-next {
        right: 0.15rem;
    }

    .voucher-controls .btn,
    .cart-summary .btn-accent,
    .cart-line .btn,
    .photo-card .buy-form .btn,
    .photo-modal-actions .btn {
        font-size: 0.8125rem;
        padding: 0.45rem 0.75rem;
    }

    .voucher-row .form-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 575.98px) {
    .filter-grid,
    .home-points {
        grid-template-columns: 1fr;
    }

    .filter-wide {
        grid-column: auto;
    }

    .pay-methods-list {
        grid-template-columns: 1fr;
    }

    .pay-methods-strip {
        gap: 0.3rem;
    }

    .hero-screen {
        padding-bottom: 1.15rem;
    }
}

.receipt-card .receipt-items {
    margin-top: 1rem;
    border-top: 1px solid var(--line);
}

/* Find photos: choose an event first, then a selfie or the whole event. */
.search-events-form {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.search-events {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.search-event {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-event:hover,
.search-event:focus-visible {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    color: inherit;
}

.search-event-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--line);
}

/* The picture fills the frame, so a tall photo cannot stretch the card. */
.search-event-cover img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 0.35s ease;
}

/* The same gentle zoom as the event cards on the Events page. */
.search-event:hover .search-event-cover img,
.search-event:focus-visible .search-event-cover img {
    transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
    .search-event-cover img {
        transition: none;
    }

    .search-event:hover .search-event-cover img,
    .search-event:focus-visible .search-event-cover img {
        transform: none;
    }
}

.search-event-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.9rem 1rem 1rem;
    font-size: 0.92rem;
}

.search-event-body strong {
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.search-event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.25rem;
}

.search-event-tags:empty {
    display: none;
}

.search-event-tag {
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: var(--pending-bg);
    color: var(--accent-deep);
    font-size: 0.78rem;
    font-weight: 600;
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.75rem;
    align-items: end;
}

@media (max-width: 1199.98px) {
    .search-events {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .search-events {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .search-events-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .search-events {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.65rem;
    }

    .search-event {
        flex-direction: row;
    }

    /* Every card gets the same square picture, however long its title is. */
    .search-event-cover {
        flex: 0 0 6.5rem;
        align-self: center;
        width: 6.5rem;
        height: 6.5rem;
        aspect-ratio: 1;
        min-height: 0;
        margin: 0.6rem 0 0.6rem 0.6rem;
        border-radius: 0.6rem;
    }

    /* The small square has room for the label on two short lines. */
    .search-event-cover .coming-soon {
        top: auto;
        bottom: 0.3rem;
        left: 0.3rem;
        max-width: calc(100% - 0.6rem);
        padding: 0.15rem 0.4rem;
        font-size: 0.62rem;
        line-height: 1.2;
        white-space: normal;
        text-align: center;
    }

    .search-filters {
        grid-template-columns: minmax(0, 1fr);
    }
}


.photo-modal-price {
    align-self: center;
    color: #fff;
    font-size: 1.05rem;
}

.face-webcam {
    margin-top: 0.75rem;
}

/* Mirrored like a mirror, which is easier to line up with. The saved photo is not flipped. */
.face-webcam video {
    display: block;
    width: 100%;
    max-height: 70vh;
    object-fit: cover;
    background: var(--navy);
    transform: scaleX(-1);
}

.face-webcam-stage {
    position: relative;
    max-width: 26rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
    border-radius: 0.9rem;
}

/* The outer shadow dims everything outside the oval. It guides the buyer and does not crop the photo. */
.face-webcam-oval {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 78%;
    aspect-ratio: 3 / 4;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 100rem rgba(13, 21, 36, 0.45);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.face-webcam-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.search-finder-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-clear {
    margin-left: 0.5rem;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .search-finder-buttons .btn {
        flex: 1 1 auto;
        padding-inline: 0.75rem;
        white-space: nowrap;
    }
}

.category-add,
.category-row {
    display: grid;
    gap: 0.75rem;
    align-items: end;
}

.category-add {
    grid-template-columns: minmax(0, 1fr) auto;
}

.category-row {
    grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) auto;
}

.category-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.category-item.is-dragging {
    opacity: 0.5;
}

.category-item.is-drop-target {
    outline: 2px dashed var(--accent);
}

.category-move {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.category-handle {
    display: inline-flex;
    padding: 0.35rem;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 0.5rem;
    cursor: grab;
}

.category-handle:active {
    cursor: grabbing;
}

.category-handle:focus-visible {
    outline: 2px solid var(--accent);
}

.category-icons {
    grid-column: 1 / -1;
}

.category-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
    gap: 0.5rem;
    margin: 0.75rem 0 0.5rem;
}

.category-icon-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.25rem;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    cursor: pointer;
    text-align: center;
}

.category-icon-choice input {
    position: absolute;
    opacity: 0;
}

.category-icon-choice:has(input:checked) {
    border-color: var(--accent);
    background: #fff7f0;
}

.category-icon-choice:has(input:focus-visible) {
    outline: 2px solid var(--accent);
}

.category-icon-name {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.2;
}

.category-order-note {
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 767.98px) {
    .category-add,
    .category-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

.photo-ref {
    color: var(--muted);
    font-size: 0.82rem;
}

.photo-modal-when {
    margin: 0 0 8px;
    color: rgb(255 255 255 / 78%);
    font-size: 0.85rem;
    text-align: center;
}

.photo-modal-when:empty {
    display: none;
}

.photo-modal-by {
    margin: -4px 0 8px;
    color: rgb(255 255 255 / 78%);
    font-size: 0.85rem;
    text-align: center;
}

.photo-modal-ref {
    margin: 0;
    color: #fff;
    font-size: 0.85rem;
    text-align: center;
}

.combo-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 11rem)) auto;
    align-items: end;
    justify-content: start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.combo-row[hidden] {
    display: none;
}

.combo-offer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.combo-offer-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(127, 127, 127, 0.25);
}

@media (max-width: 575.98px) {
    .combo-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
        justify-content: stretch;
    }
}

.qr-poster {
    max-width: 30rem;
    margin: 0 auto 3rem;
    padding: 2rem 1.5rem;
    text-align: center;
    background: #ffffff;
    color: #111111;
    border: 1px solid rgba(127, 127, 127, 0.3);
    border-radius: var(--radius);
}

.qr-poster-title {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.qr-poster-meta {
    color: #555555;
    margin-bottom: 1.25rem;
}

.qr-poster-code {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
    image-rendering: pixelated;
}

.qr-poster-call {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1rem 0 0.25rem;
}

.qr-poster-url {
    color: #555555;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.qr-poster-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    margin: 0.5rem 0 0;
}

@media print {
    .topbar,
    .site-footer,
    .no-print {
        display: none !important;
    }

    body {
        background: #ffffff !important;
    }

    .qr-poster {
        border: 0;
        max-width: none;
        margin: 0;
        padding-top: 2cm;
    }

    .qr-poster-title {
        font-size: 28pt;
    }

    .qr-poster-meta,
    .qr-poster-call {
        font-size: 16pt;
    }

    .qr-poster-code {
        width: 9cm;
        max-width: 9cm;
    }
}

/* Phones: links in menus and link rows are big enough to tap (about 44px tall) and spaced apart. */
@media (max-width: 991.98px) {
    .topbar .navbar-collapse .nav-link {
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
        padding-left: 0.5rem;
    }

    .topbar .navbar-collapse .btn-sm {
        margin-top: 0.4rem;
        padding: 0.6rem 1.1rem;
        font-size: 1rem;
    }

    .account-links {
        gap: 0.5rem;
    }

    .account-links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0.45rem 0.95rem;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: #fff;
        color: var(--ink);
        text-decoration: none;
    }

    .account-links a:active {
        background: #f2f4f7;
    }
}

/* Admin accounts: what a photographer gave at sign-up, to check before approving. */
.account-intro {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
}

/* Phones: Find my photos stays at the bottom of the event page once the search buttons scroll away. */
.finder-dock {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    text-align: left;
    box-shadow: 0 10px 26px rgba(16, 24, 40, 0.28);
}

.finder-dock[hidden] {
    display: none;
}

.finder-dock-icon {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.finder-dock-text strong {
    display: block;
    font-size: 1rem;
    line-height: 1.2;
}

.finder-dock-text small {
    display: block;
    font-size: 0.8rem;
    opacity: 0.92;
}

.modal-open .finder-dock {
    display: none;
}

@media (min-width: 992px) {
    .finder-dock {
        display: none;
    }
}

/* The panel the button opens, as a sheet from the bottom of the screen. It sits at the bottom
   of the visible screen (dvh), so a phone browser's own toolbar does not cover part of it. */
.finder-sheet {
    height: 100vh;
    height: 100dvh;
}

.finder-sheet .modal-dialog {
    display: flex;
    align-items: flex-end;
    width: 100%;
    max-width: 32rem;
    min-height: 100%;
    margin: 0 auto;
}

.finder-sheet.fade .modal-dialog {
    transform: translateY(100%);
}

.finder-sheet.show .modal-dialog {
    transform: none;
}

.finder-sheet .modal-content {
    width: 100%;
    max-height: 90dvh;
    overflow-y: auto;
    border: 0;
    border-radius: 1.25rem 1.25rem 0 0;
    padding-bottom: env(safe-area-inset-bottom);
}

.finder-sheet-number {
    display: flex;
    gap: 0.5rem;
}

.finder-sheet-number .form-control {
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.finder-sheet-ways {
    display: flex;
    gap: 0.6rem;
}

.finder-sheet-way {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.85rem 0.5rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: #fff;
    color: var(--ink);
    font-weight: 700;
}

/* Photo popup zoom: click (or double-tap) the photo to look closer, move to look around. */
.photo-zoom {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    cursor: zoom-in;
    touch-action: manipulation;
}

.photo-zoom .photo-modal-image {
    transition: transform 0.2s ease;
    will-change: transform;
}

.photo-zoom.is-zoomed {
    cursor: zoom-out;
    touch-action: none;
}

.photo-zoom.is-zoomed .photo-modal-image {
    transform: scale(2.5);
    transition: transform 0.2s ease, transform-origin 0.05s linear;
}

.photo-zoom-hint {
    position: absolute;
    top: 0.6rem;
    left: 50%;
    z-index: 2;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(16, 24, 40, 0.75);
    color: #fff;
    font-size: 0.8rem;
    white-space: nowrap;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.photo-zoom.is-zoomed .photo-zoom-hint {
    opacity: 1;
}

/* "Shot by A, B, C and 7 more": tapping "7 more" shows the other names. */
.shot-by-more summary {
    display: inline;
    list-style: none;
    cursor: pointer;
}

.shot-by-more summary::-webkit-details-marker {
    display: none;
}

.shot-by-toggle {
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.shot-by-more[open] .shot-by-toggle {
    text-decoration: none;
}

.shot-by-rest::before {
    content: ", ";
}

/* Photographer buttons on an event with several photographers. */
.photographer-filter {
    margin: 0.25rem 0 1rem;
}

.photographer-filter-title {
    margin-bottom: 0.45rem;
    font-weight: 700;
}

.photographer-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.photographer-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 40px;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
}

.photographer-chip small {
    color: var(--muted);
    font-weight: 500;
}

.photographer-chip.is-on {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.photographer-chip.is-on small {
    color: #d0d5dd;
}

.photographer-filter-note {
    margin: 0.4rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

/* Phones: one row to swipe through instead of a tall block of names. */
@media (max-width: 767.98px) {
    .photographer-filter-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.35rem;
        scrollbar-width: none;
    }

    .photographer-filter-row::-webkit-scrollbar {
        display: none;
    }

    .photographer-chip {
        flex: 0 0 auto;
    }
}

/* Paging under photo grids: Load more first, then the page numbers, all centred. */
.grid-paging {
    margin-top: 1.25rem;
    text-align: center;
}

.load-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.load-more .btn {
    min-width: 14rem;
    min-height: 44px;
}

.page-nav {
    justify-content: center;
    align-items: center;
}

.page-nav .page-step {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    font-weight: 600;
}

.page-status {
    margin: 0.5rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
}

/* "Which one is you?" after a bib search. */
.face-pick {
    margin: 0.25rem 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: #fff;
}

.face-pick-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.face-pick-button {
    padding: 0;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: none;
    overflow: hidden;
    width: 72px;
    height: 72px;
}

.face-pick-button:hover,
.face-pick-button:focus-visible {
    border-color: var(--accent);
}

.face-pick-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.face-pick-button.is-busy {
    opacity: 0.5;
}

/* Cart: the photo count with Remove all on the same line. */
.cart-count-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.cart-count-row .result-count { margin-bottom: 0; }
.cart-clear {
    color: var(--bs-danger, #b42318);
    padding: 8px 4px;
    min-height: 44px;
}

/* Photographers directory: one card per photographer. */
.directory-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 576px) {
    .directory-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
    .directory-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.directory-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    color: inherit;
    text-decoration: none;
    min-height: 44px;
}
/* Hover like the Search page event cards: orange border, shadow, the photo zooms, text stays. */
.directory-card { border: 1px solid var(--line); }
main a.directory-card:hover,
main a.directory-card:focus-visible { border-color: var(--accent); box-shadow: var(--shadow); color: inherit; }
.directory-sample { transition: transform 0.35s ease; }
.directory-card:hover .directory-sample,
.directory-card:focus-visible .directory-sample { transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) {
    .directory-sample { transition: none; }
    .directory-card:hover .directory-sample,
    .directory-card:focus-visible .directory-sample { transform: none; }
}
.directory-card .photographer-photo {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1rem;
}
.directory-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.directory-copy strong { overflow-wrap: anywhere; }
.photographer-bio {
    max-width: none;
    white-space: normal;
}

/* Photographer names on public pages show in capitals. The saved name keeps its own letters. */
.person-name { text-transform: uppercase; }

/* Receipt: original and phone-size downloads side by side, stacked on narrow screens. */
.receipt-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}
.receipt-downloads .btn { min-height: 40px; display: inline-flex; align-items: center; }
.receipt-tip {
    background: var(--bs-warning-bg-subtle, #fff8e1);
    border-radius: 0.6rem;
    padding: 0.75rem 0.9rem;
}
.receipt-downloads { margin-left: auto; }

/* On phones the two download buttons sit under the photo details, side by side, full width. */
@media (max-width: 575.98px) {
    .receipt-items .cart-line { flex-wrap: wrap; }
    .receipt-items .cart-line > div:not(.receipt-downloads) { flex: 1 1 0; min-width: 0; }
    .receipt-downloads {
        flex: 1 1 100%;
        margin-left: 0;
        flex-wrap: nowrap;
    }
    .receipt-downloads .btn {
        flex: 1 1 0;
        justify-content: center;
        text-align: center;
        min-height: 44px;
        white-space: normal;
        line-height: 1.2;
    }
}

/* Contact: the Report a problem form. */
.report-panel { width: 100%; padding: 1.25rem; }
@media (min-width: 768px) { .report-panel { padding: 1.75rem; } }
.report-about {
    background: var(--bs-light, #f4f6fa);
    border: 1px solid var(--line, #e4e7ec);
    border-radius: 0.6rem;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
}
.report-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.report-link { font-size: 0.9rem; }
.photo-modal-report { margin: 0.25rem 0 0; font-size: 0.85rem; }
.photo-modal-report a { color: inherit; opacity: 0.8; }
.report-status { border-radius: 99px; padding: 2px 8px; font-size: 0.75rem; font-weight: 600; }
.report-status.is-new { background: #fef0c7; color: #93370d; }
.report-status.is-done { background: #d1fadf; color: #05603a; }
.report-note { max-width: 28rem; overflow-wrap: anywhere; }
/* Photographers filter: the choices take the full width; on phones Show fills the row too. */
@media (max-width: 767.98px) { .directory-filter-actions .btn { flex: 1 1 0; } }

/* Photographers: a sample photo on top of each card, and the join box under the list. */
.directory-card.has-sample { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; }
.directory-sample { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--bs-light, #f4f6fa); }
.directory-person { display: flex; align-items: center; gap: 0.85rem; }
.directory-card.has-sample .directory-person { padding: 0.8rem 1rem 0.95rem; }
.directory-join {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.25rem;
}
.directory-join > div { flex: 1 1 22rem; }
@media (max-width: 575.98px) { .directory-join .btn { width: 100%; } }
@media (min-width: 1200px) {
    .directory-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Admin sales: a small picture of each sold photo. */
.sale-photo { display: flex; align-items: center; gap: 0.75rem; }
.sale-photo img { width: 64px; height: 64px; object-fit: cover; border-radius: 0.5rem; flex: none; }
.sale-photo-open { border: 0; padding: 0; background: none; border-radius: 0.5rem; cursor: zoom-in; flex: none; }
.sale-photo-open:focus-visible { outline: 2px solid var(--bs-primary, #e07a2d); outline-offset: 2px; }
.sale-photo-big { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: #111; border-radius: 0.5rem; }

/* Buyer feedback: the rating on the receipt and the admin summary. */
.feedback-card { margin-top: 1rem; padding: 1.25rem; }
.fb-faces { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.fb-face {
    flex: 1 1 0;
    min-width: 70px;
    border: 1px solid var(--line, #d0d5dd);
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.6rem 0.4rem;
    text-align: center;
    font-size: 0.85rem;
    cursor: pointer;
}
.fb-face b { display: block; font-size: 1.6rem; line-height: 1.2; font-weight: 400; }
.fb-face input { position: absolute; opacity: 0; pointer-events: none; }
.fb-face:has(input:checked) { border-color: #e07a2d; background: #fff4ea; box-shadow: 0 0 0 2px rgba(224, 122, 45, 0.2); }
.fb-face:has(input:focus-visible) { outline: 2px solid #e07a2d; outline-offset: 2px; }
.fb-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fb-chip { border: 1px solid var(--line, #d0d5dd); border-radius: 99px; padding: 0.35rem 0.8rem; font-size: 0.85rem; background: #fff; cursor: pointer; }
.fb-chip input { margin-right: 0.25rem; }
.fb-chip:has(input:checked) { border-color: #e07a2d; background: #fff4ea; }
.fb-bar-row { display: grid; grid-template-columns: 9.5rem 1fr 2.5rem; align-items: center; gap: 0.5rem; margin-bottom: 0.3rem; }
.fb-bar { appearance: none; width: 100%; height: 10px; border: 0; border-radius: 99px; background: #f2f4f7; overflow: hidden; }
.fb-bar::-webkit-progress-bar { background: #f2f4f7; border-radius: 99px; }
.fb-bar::-webkit-progress-value { background: #e07a2d; border-radius: 99px; }
.fb-bar::-moz-progress-bar { background: #e07a2d; border-radius: 99px; }

/* Photographer page: round social media icons under the bio. */
.social-links { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line, #d0d5dd);
    background: #fff;
    color: #122033;
}
.social-links a:hover, .social-links a:focus-visible { border-color: #e07a2d; color: #e07a2d; }

/* Work link: the platform choice and the @name or link side by side. */
.work-link { display: grid; grid-template-columns: minmax(8.5rem, 38%) 1fr; gap: 0.5rem; }
@media (max-width: 380px) { .work-link { grid-template-columns: 1fr; } }

/* Home: a few numbers under the hero buttons. */
.hero-numbers { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin: 1.1rem 0 0; color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; }
.hero-numbers strong { color: #fff; font-size: 1.15rem; }
.report-auto { color: #067647; margin-top: 0.2rem; }
.admin-photo-open { display: block; width: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; }
.admin-photo-open img { width: 100%; height: auto; display: block; border-radius: 0.5rem; }

/* Team: who earns from each photographer's photographs. */
.team-earnings-choice { border: 1px solid var(--line); border-radius: 0.6rem; padding: 0.6rem 0.75rem 0.6rem 2.2rem; margin-bottom: 0.5rem; }
.team-earnings-choice:has(input:checked) { border-color: var(--accent); }
.team-earns { display: inline-block; border-radius: 99px; padding: 1px 8px; font-size: 0.75rem; font-weight: 600; background: #eef1f6; color: var(--ink); margin-right: 0.25rem; }
.team-earns.is-member { background: #e7f6ec; color: #1f6b3a; }

/* Event owner: the number popup keeps its buttons in view on short screens. */
#bib-photo-image { max-height: 55vh; }

/* Buyer feedback: Malay beside English, and "what was hard" only after a rating below Very easy. */
.fb-ms { display: block; font-weight: 400; color: var(--bs-secondary-color, #667085); font-size: 0.85em; }
.fb-face .fb-ms { font-size: 0.75rem; }
.fb-improve { display: none; }
.feedback-card form:has(input[name="rating"]:checked:not([value="4"])) .fb-improve { display: block; }

/* Admin orders: the bought photographs, small, each opening larger. */
.order-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.6rem; max-width: 720px; }
.order-photo { margin: 0; }
.order-photo figcaption { margin-top: 0.25rem; color: var(--bs-secondary-color, #667085); overflow-wrap: anywhere; }

.payout-done {
    color: var(--ok);
    font-weight: 600;
}
