:root { color-scheme: light; font-family: system-ui, sans-serif; color: #173f35; background: #f5f4ec; }
.member-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 24px 0; padding: 6px; border: 1px solid #d5ddd2; border-radius: 14px; background: #fffef9; }
.member-nav a { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; padding: 8px 4px; text-decoration: none; font-size: 14px; font-weight: 650; border-radius: 9px; }
.member-nav a[aria-current="page"] { background: #173f35; color: #fffef9; }
.member-nav svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.member-nav .nav-count { padding: 2px 5px; min-width: 20px; border-radius: 20px; background: #e0f38b; color: #173f35; font-size: 12px; }
.inbox-tools, .inbox-filters, .inbox-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.inbox-tools { justify-content: space-between; }
.inbox-filters a { padding: 12px; min-height: 46px; }
.inbox-filters a[aria-current] { font-weight: 750; background: #dfeddf; border-radius: 8px; }
.inbox-meta { justify-content: space-between; font-size: 13px; }
.inbox-item h2 { font-size: 24px; margin: 16px 0 8px; overflow-wrap: anywhere; }
.inbox-body { white-space: pre-line; overflow-wrap: anywhere; }
.card.inbox-unread { border-left: 5px solid #517326; }
@media (max-width: 600px) {
  body.member-page { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .member-nav { position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; margin: 0; border-radius: 16px 16px 0 0; padding: 6px max(6px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); box-shadow: 0 -3px 16px #173f3510; }
  .member-nav a { flex-direction: column; gap: 2px; font-size: 12px; min-height: 56px; }
  .member-nav .nav-count, .member-nav .news-unread-dot { position: absolute; top: 3px; right: 7px; }
  .inbox-tools { align-items: stretch; flex-direction: column; }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; padding: clamp(20px, 5vw, 64px) 20px; }
main { width: 100%; max-width: 640px; margin: auto; }
.brand { font-weight: 750; letter-spacing: -.04em; font-size: 24px; }
h1 { font-size: clamp(40px, 9vw, 72px); line-height: 1.05; letter-spacing: -.05em; margin: 48px 0 24px; }
p { font-size: 18px; line-height: 1.6; }
.notice { border-top: 1px solid #bdc8bc; padding-top: 24px; margin-top: 48px; color: #465d54; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
header { flex-wrap: wrap; }
.account-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.account-actions form { margin: 0; }
.news-link { display: inline-flex; align-items: center; gap: 8px; }
.news-link-unread { border-color: #b76f16; background: #fff0cd; }
.news-unread-dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #a95412; }
.news-post h2 { margin: 0 0 12px; }
.news-post .byline { margin: 0 0 8px; }
.membership-status { font-weight: 700; padding: 10px 14px; background: #dfeddf; border-radius: 8px; }
.next-event { margin-bottom: 32px; }
.event-filters { margin: 16px 0; }
.brand { text-decoration: none; }
a { color: inherit; text-underline-offset: 4px; }
.eyebrow { margin-top: 48px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.small-heading { font-size: clamp(32px, 7vw, 48px); }
.card { margin-top: 24px; padding: clamp(18px, 4vw, 32px); background: #fffef9; border: 1px solid #d5ddd2; border-radius: 16px; }
label { display: block; font-weight: 650; margin-bottom: 8px; }
input { width: 100%; padding: 13px; border: 1px solid #71877e; border-radius: 8px; background: white; font: inherit; color: inherit; }
button, .button { display: inline-block; padding: 13px 20px; border: 1px solid #173f35; border-radius: 8px; background: #173f35; color: white; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; min-height: 46px; }
.card button { width: 100%; }
.secondary { background: transparent; color: #173f35; }
:focus-visible { outline: 3px solid #b76f16; outline-offset: 3px; }
.helptext, form ul { font-size: 14px; line-height: 1.6; }
.errorlist { color: #a12121; padding-left: 20px; }
.message { padding: 16px; background: #dfeddf; border-radius: 8px; }
.notice-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.notice-actions form { margin: 0; }
.links { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 32px; }
.event-status { font-size: 14px; font-weight: 650; }
h3 { font-size: 24px; margin: 12px 0; }
.participants { padding-left: 24px; line-height: 1.9; }
.description, h1, h2, h3, .participants { overflow-wrap: anywhere; }
.news { margin-top: 48px; padding-top: 24px; border-top: 1px solid #bdc8bc; }
.site-footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid #bdc8bc; }
.site-feedback { display: flex; flex-wrap: wrap; gap: 6px 12px; color: #465d54; font-size: 14px; line-height: 1.5; }
.site-feedback a { font-weight: 650; color: #173f35; }
.site-credit { margin: 18px 0 0; color: #465d54; font-size: 13px; }
.site-feedback + .site-credit { margin-top: 26px; }
.credit-button { min-height: 44px; padding: 0 2px; border: 0; border-radius: 2px; background: transparent; color: #173f35; font-size: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.credit-button:hover { color: #557032; }
.confetti-canvas { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.feedback-form select, .feedback-form textarea { display: block; width: 100%; padding: 13px; border: 1px solid #71877e; border-radius: 8px; background: white; color: inherit; font: inherit; }
.feedback-form textarea { resize: vertical; }
.feedback-form label:not(:first-child) { margin-top: 20px; }
.feedback-form .byline { margin: 18px 0; }
.byline { font-size: 14px; color: #465d54; }
[hidden] { display: none !important; }
body { padding-bottom: max(32px, env(safe-area-inset-bottom)); padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
main { min-width: 0; }
input, select, textarea { font-size: 16px; }
.links a { min-height: 44px; display: inline-flex; align-items: center; }
.message.error { color: #821b1b; background: #fbe7e3; }
.login-actions { margin-top: 18px; }
.login-actions .button { width: 100%; text-align: center; }
.profile-identity { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 24px; }
.profile-identity p { margin: 0; }
.role-badge { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; border-radius: 999px; background: #dfeddf; color: #245234; font-size: 13px; font-weight: 700; }
.profile-admin-action { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 20px 0 28px; padding: 16px 18px; border: 1px solid #bdc8bc; border-radius: 12px; background: #fffef9; }
.profile-admin-action div { min-width: 0; }
.profile-admin-action strong, .profile-admin-action span { display: block; }
.profile-admin-action span { margin-top: 3px; color: #465d54; font-size: 14px; }
.profile-admin-action .button { flex: none; }
.profile-form { margin: 0; }
.profile-section { margin-top: 24px; }
.profile-section h2 { margin-top: 0; }
.profile-details input + label { margin-top: 24px; }
.profile-details .helptext { display: block; margin: 0 0 8px; color: #465d54; }
.profile-details button { margin-top: 16px; }
.install-card { display: grid; gap: 22px; margin: 28px 0 40px; padding: clamp(22px, 5vw, 32px); border-radius: 16px; background: #173f35; color: #fffef9; box-shadow: 0 10px 30px #173f3524; }
.install-card .eyebrow { margin: 0 0 8px; color: #e0f38b; font-weight: 700; }
.install-card h2 { margin: 0; font-size: clamp(25px, 6vw, 34px); line-height: 1.15; letter-spacing: -.03em; }
.install-card p:not(.eyebrow) { margin: 10px 0 0; color: #d7e2dc; }
.install-card .install-button { display: flex; justify-content: space-between; align-items: center; gap: 24px; width: 100%; margin-top: 22px; background: #e0f38b; border-color: #e0f38b; color: #173f35; }
.install-card.is-installed { margin-bottom: 24px; padding: 20px 24px; background: #e9ede2; color: #173f35; box-shadow: none; border: 1px solid #cbd6c7; }
.install-card.is-installed .eyebrow { color: #557032; }
.install-card.is-installed h2 { font-size: 24px; }
.install-card.is-installed p:not(.eyebrow) { color: #465d54; }
.device-notifications { padding: 18px; border-radius: 12px; background: #edf1e5; }
.device-notifications h3 { margin-top: 0; }
.device-notifications p { margin: 8px 0; }
.device-notifications button { margin-top: 8px; }
.notification-preferences { margin-top: 26px; padding-top: 24px; border-top: 1px solid #d5ddd2; }
.notification-option { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0; }
.notification-option input { width: auto; flex: 0 0 auto; margin-top: 6px; }
.notification-option label { margin: 0; cursor: pointer; }
.notification-option label strong, .notification-option label span { display: block; }
.notification-option label span { margin-top: 3px; color: #465d54; font-size: 14px; font-weight: 400; line-height: 1.5; }
.profile-security { margin-bottom: 24px; }
.profile-security .button { width: 100%; text-align: center; }
.skip-link { position: absolute; top: -80px; background: white; padding: 12px; z-index: 5; }
.skip-link:focus { top: 8px; }
@media (max-width: 480px) {
  h1 { margin-top: 32px; }
  .eyebrow { margin-top: 32px; }
  .links { gap: 8px 18px; margin-top: 20px; }
  .card { margin-top: 18px; }
  p { font-size: 16px; }
  header .secondary { padding: 10px 14px; }
  .profile-admin-action { align-items: stretch; flex-direction: column; }
  .profile-admin-action .button { width: 100%; text-align: center; }
}

/* A wider home page; reading and login forms retain their compact width. */
.dashboard { max-width: 1200px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.dashboard-grid > section { min-width: 0; }
.dashboard-grid h2 { margin-top: 0; }
.dashboard-grid .news { margin-top: 0; }
.event-history { margin-top: 28px; }
.event-history summary { cursor: pointer; font-weight: 650; padding: 14px 0; }
@media (min-width: 960px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .dashboard-grid .news { padding-top: 0; border-top: 0; }
  .dashboard h1 { margin-top: 24px; font-size: 60px; }
  .dashboard .eyebrow { margin-top: 36px; }
}

/* Padel identity */
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 26px; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.dashboard > header { padding-bottom: 20px; border-bottom: 1px solid #d5ddd2; }
.dashboard > .links { margin-top: 16px; }
.dashboard > h1 { margin-bottom: 30px; }
.card { box-shadow: 0 5px 22px #173f3505; }
.next-event { position: relative; isolation: isolate; overflow: hidden; background: #173f35; color: #fffef9; border: 0; padding: clamp(24px, 4vw, 44px); margin-bottom: 40px; }
.next-event-content { position: relative; z-index: 1; max-width: 72%; }
.next-event-label { margin: 0 0 18px; color: #e0f38b; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.next-event-label span { white-space: nowrap; }
.next-event h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; letter-spacing: -.035em; margin: 0 0 18px; }
.next-event-time { margin: 0; font-weight: 650; }
.next-event-location { margin: 5px 0 24px; color: #d0ded5; }
.court-button { background: #e0f38b; color: #173f35; border-color: #e0f38b; display: inline-flex; gap: 28px; align-items: center; }
.hero-court { position: absolute; z-index: 0; right: 5%; top: -30px; width: 260px; height: 350px; color: #719486; transform: rotate(18deg); opacity: .65; pointer-events: none; }
.next-event :focus-visible { outline-color: #fffef9; }
.match-card { padding: 24px; }
.event-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.event-list > .card { margin-top: 0; }
.match-card-header { display: flex; gap: 20px; align-items: flex-start; }
.match-date { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 68px; padding: 12px 8px; background: #edf1e5; border-radius: 12px; font-size: 12px; text-transform: uppercase; font-weight: 650; }
.match-date strong { font-size: 32px; line-height: 1.15; margin: 4px 0; }
.match-week { margin-bottom: 7px; padding-bottom: 7px; border-bottom: 1px solid #cbd6c7; white-space: nowrap; }
.match-heading { min-width: 0; flex: 1; }
.match-heading h3 { margin: 12px 0; font-size: 24px; }
.match-heading h3 a { text-decoration: none; }
.match-heading h3 a:hover { text-decoration: underline; }
.status-row { display: flex; flex-wrap: wrap; gap: 6px; }
.status-badge { display: inline-block; padding: 5px 9px; border-radius: 6px; font-size: 12px; line-height: 1.4; font-weight: 650; }
.status-open { background: #edf2e7; color: #30533e; }
.status-joined { background: #173f35; color: #fffef9; }
.status-waiting { background: #fff0cd; color: #694b13; }
.status-neutral { background: #eeefec; color: #4b554f; }
.status-cancelled { background: #f9e7e2; color: #863c2c; }
.status-paid { background: #dff0df; color: #245234; }
.status-pending { background: #fff0cd; color: #694b13; }
.event-payment-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 18px; font-size: 14px; }
.event-price { flex-basis: 100%; font-weight: 650; }
.payment-shortcut { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 700; }
.next-event .event-payment-summary { margin: 0 0 20px; }
.next-event .payment-shortcut { color: #e0f38b; }
#betaling { scroll-margin-top: 20px; }
.payment-value { font-size: clamp(28px, 7vw, 40px); font-weight: 750; letter-spacing: .03em; margin: 8px 0 20px; }
.payment-reference { padding: 12px 14px; border: 1px dashed #71877e; border-radius: 8px; background: #f5f4ec; font-weight: 650; overflow-wrap: anywhere; }
.payment-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 8px; }
.payment-actions .button, .payment-actions button { width: 100%; text-align: center; }
.payment-copy-status { min-height: 24px; margin: 4px 0 12px; }
@media (max-width: 480px) { .payment-actions { grid-template-columns: 1fr; } }
.match-time, .match-location { display: flex; gap: 7px; align-items: baseline; font-size: 15px; margin: 5px 0; overflow-wrap: anywhere; }
.match-time { flex-wrap: wrap; }
.match-time svg, .match-location svg { flex: 0 0 16px; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; align-self: center; }
.match-time span { color: #465d54; }
.match-capacity { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #465d54; margin-top: 24px; }
.capacity-meter { display: block; width: 100%; height: 6px; margin: 10px 0 18px; border: 0; border-radius: 4px; overflow: hidden; appearance: none; background: #edf1e5; accent-color: #6b8830; }
.capacity-meter::-webkit-progress-bar { background: #edf1e5; }
.capacity-meter::-webkit-progress-value { background: #6b8830; border-radius: 4px; }
.capacity-meter::-moz-progress-bar { background: #6b8830; border-radius: 4px; }
.match-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; border-top: 1px solid #e3e8dd; padding-top: 14px; font-size: 14px; font-weight: 650; text-decoration: none; }
.match-link:hover { text-decoration: underline; }
.match-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; border-top: 1px solid #e3e8dd; padding-top: 10px; }
.match-actions .match-link { border-top: 0; padding-top: 0; }
.match-actions .share-status { grid-column: 1 / -1; margin: 0; }
.share-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.share-button svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; }
.share-button-compact { min-height: 42px; padding: 9px 13px; font-size: 14px; }
.event-share { margin: 24px 0; }
.event-share .share-status { margin: 8px 0 0; }
.event-filters { background: #e9ede2; padding: 5px; border-radius: 10px; gap: 4px; }
.event-filters .button { flex: 1; justify-content: center; text-align: center; padding: 10px 12px; font-size: 14px; }
.event-filters .secondary { border-color: transparent; }
@media (min-width: 800px) {
  .event-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-card { display: flex; flex-direction: column; }
  .match-card .match-capacity { margin-top: auto; padding-top: 24px; }
}
@media (max-width: 600px) {
  .next-event-content { max-width: 100%; }
  .hero-court { opacity: .14; right: -65px; }
  .match-card { padding: 18px; }
  .match-card-header { gap: 12px; }
  .match-date { flex-basis: 50px; }
  .match-date strong { font-size: 28px; }
  .match-heading h3 { font-size: 21px; }
  .brand { font-size: 23px; }
  .brand-mark { width: 36px; height: 36px; }
  .match-actions { grid-template-columns: 1fr; }
  .match-actions .share-button { width: 100%; }
}

/* Keep the desktop brand and navigation together without widening page content. */
@media (min-width: 601px) {
  .member-page > main > header .member-nav { margin: 0; flex: 1 0 100%; }
}
@media (min-width: 800px) {
  .member-page > main > header {
    flex-wrap: nowrap;
    width: max(100%, min(900px, calc(100vw - 40px)));
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
  .member-page > main > header .brand { flex: none; white-space: nowrap; }
  .member-page > main > header .member-nav {
    flex: 0 1 580px;
    grid-template-columns: repeat(4, auto);
  }
  .member-page > main > header .member-nav a { padding-inline: 12px; white-space: nowrap; }
}

/* Shared member page width with readable cards and grouped profile settings. */
.news-grid, .inbox-grid, .profile-grid { display: grid; gap: 24px; margin-top: 24px; }
.news-grid > .card, .inbox-grid > .card { margin-top: 0; }
.news-grid > *, .inbox-grid > *, .profile-column { min-width: 0; }
.news-post .description { max-width: 65ch; overflow-wrap: anywhere; }
.profile-column > :first-child, .profile-column > .profile-form:first-child > .card { margin-top: 0; }
.profile-column .install-card { margin-bottom: 0; }
.inbox-page .inbox-filters { margin-right: auto; }
.inbox-item .inbox-body { max-width: 65ch; }
@media (min-width: 960px) {
  .news-grid, .inbox-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .profile-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 32px; }
  .news-page > h1, .inbox-page > h1, .profile-page > h1 { font-size: 60px; }
}

.profile-column { display: flex; flex-direction: column; gap: 24px; }
.profile-column > .profile-section,
.profile-column > .install-card,
.profile-column > .profile-form > .profile-section { margin: 0; }
.profile-email-verification { padding: 18px; border: 1px solid #bdc8bc; border-radius: 12px; background: #edf1e5; }
.profile-email-verification p { margin-top: 0; }
