/* Public site only. Calendar/trainer styles and authentication are unchanged. */
.public-site {
  --ink: #142e39; --navy: #192361; --orange: #c34118; --orange-bright: #f57537;
  --paper: #fbf9f3; --sand: #f0ede3; --muted: #52636a;
  --line: #d9ded5; --club-text: var(--ink); --club-background: var(--paper);
  margin: 0; font-size: 16px; line-height: 1.65; -webkit-text-size-adjust: 100%;
}
.public-site *, .public-site *::before, .public-site *::after { box-sizing: border-box; }
.public-site [hidden] { display: none !important; }
.public-site a { color: inherit; text-underline-offset: .2em; }
.public-site img { display: block; max-width: 100%; height: auto; }
.public-site figure, .public-site p, .public-site h1, .public-site h2, .public-site h3 { margin: 0; }
.public-site h1, .public-site h2, .public-site h3 { font-weight: 800; line-height: 1.06; letter-spacing: -.045em; text-wrap: balance; }
.public-site h1 { font-size: clamp(2.65rem, 5.5vw, 5.5rem); }
.public-site h2 { font-size: clamp(2rem, 3.3vw, 3.45rem); }
.public-site h3 { font-size: 1.45rem; letter-spacing: -.025em; }
.public-site p + p { margin-top: 1rem; }
.public-site :focus-visible { outline: 3px solid var(--navy); outline-offset: 5px; }
.container { width: min(1280px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { font-size: .73rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; line-height: 1.6; }
.orange-text { color: var(--orange); }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.5; letter-spacing: -.015em; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 12px; padding: 12px 20px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { min-height: 98px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-block: 16px; }
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.wordmark-logo { width: 62px; height: 62px; border-radius: 4px; }
.wordmark-name { font-size: 1.1rem; font-weight: 800; line-height: 1.2; letter-spacing: -.03em; }
.wordmark-location { display: block; font-size: .62rem; letter-spacing: .11em; text-transform: uppercase; margin-top: 5px; font-weight: 600; }
.public-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .84rem; font-weight: 650; }
.public-navigation a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 13px; text-decoration: none; }
.public-navigation a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.public-navigation a:hover { color: var(--orange); }
.public-navigation .nav-join { border: 1px solid var(--ink); border-radius: 5px; margin-left: 7px; }
.public-navigation .nav-login { margin-left: 12px; color: var(--muted); gap: 8px; }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 5px; background: transparent; font: inherit; font-weight: 650; cursor: pointer; }
.menu-bars { width: 18px; height: 10px; border-block: 2px solid currentColor; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 24px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 52px; padding: 13px 22px; background: var(--orange); color: #fff !important; border-radius: 5px; font-size: .93rem; font-weight: 700; text-decoration: none; line-height: 1.4; }
.button:hover { background: #a93210; }
.button span { font-size: 1.3rem; font-weight: 400; }
.button-dark { background: var(--navy); }
.button-dark:hover { background: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: .9rem; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.status-dot { width: 8px; height: 8px; background: var(--orange); border-radius: 50%; flex-shrink: 0; }
.hero-description { max-width: 32rem; margin-top: 24px !important; color: var(--muted); font-size: 1.06rem; line-height: 1.65; }
.hero-reassurance { margin-top: 17px !important; font-size: .8rem; color: var(--muted); }
.photo-label { font-weight: 750; letter-spacing: .08em; }
.section { padding-block: 72px; }
.section-tight { padding-bottom: 72px; }
.section-heading { display: grid; gap: 24px; margin-bottom: 30px; }
.section-heading h2, .culture-grid h2, .access-copy h2 { margin-top: 14px; }
.section-heading > p { max-width: 27rem; color: var(--muted); }
.sport-number { font-size: .7rem; font-weight: 750; letter-spacing: .1em; }
.section-link { margin-top: 18px; }
.culture-section { background: var(--sand); padding-block: 64px; }
.culture-grid, .access-grid, .about-grid, .two-column, .activity-layout, .join-layout, .faq-section { display: grid; gap: 32px; }
.about-photo figcaption, .activity-photo figcaption { margin-top: 12px; font-size: .76rem; color: var(--muted); }
.access-copy { align-self: center; max-width: 34rem; }
.access-copy > p:not(.eyebrow) { margin-top: 22px; color: var(--muted); }
.access-copy .button { margin-top: 24px; }
.small-label { font-size: .65rem; font-weight: 750; letter-spacing: .1em; color: var(--muted); }
.social-panel { background: var(--sand); padding: 32px; border-radius: 7px; position: relative; overflow: hidden; }
.social-panel h2 { margin-block: 15px 22px; }
.social-panel > p:not(.eyebrow) { max-width: 29rem; font-size: .95rem; }
.social-mark { position: absolute; right: 26px; top: 15px; font-size: 3.7rem; line-height: 1; color: var(--orange); }
.social-panel .eyebrow { padding-right: 40px; }
.social-topics { display: flex; gap: 8px; flex-wrap: wrap; margin-block: 24px; }
.social-topics span { border: 1px solid #c8bfb2; padding: 5px 10px; border-radius: 4px; font-size: .7rem; }
.social-panel .social-note { font-size: .76rem !important; color: var(--muted); }
.join-banner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 25px; border-top: 1px solid var(--line); padding-block: 38px 64px; }
.join-banner h2 { margin-block: 10px 12px; }
.join-banner p:not(.eyebrow) { color: var(--muted); font-size: .9rem; }
.site-footer { background: var(--ink); color: white; padding-top: 42px; }
.footer-grid { display: grid; gap: 28px; padding-bottom: 35px; }
.footer-name { font-size: 1.65rem; line-height: 1.2; font-weight: 800; letter-spacing: -.04em; text-decoration: none; display: inline-block; margin-bottom: 12px; }
.footer-name span { color: var(--orange-bright); }
.footer-grid p { color: #c5d1d5; font-size: .82rem; }
.footer-note { font-size: .75rem !important; }
.footer-grid nav { display: grid; gap: 3px; align-content: start; }
.footer-grid nav a { display: flex; align-items: center; min-height: 44px; font-size: .82rem; text-decoration: none; }
.footer-grid nav a:hover { text-decoration: underline; }
.footer-contact > a { display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; overflow-wrap: anywhere; }
.footer-contact > .eyebrow { display: block; }
.footer-contact > p { margin-top: 8px; }
.footer-bottom { border-top: 1px solid #35505a; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-block: 18px; font-size: .72rem; color: #c5d1d5; }
.footer-bottom a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; }
.site-footer :focus-visible, .race-story :focus-visible { outline-color: var(--paper); }
.page-intro { padding-block: 54px 42px; }
.page-intro h1 { margin-block: 18px 24px; }
.page-intro .lead { max-width: 43rem; color: var(--muted); }
.prose h2 { margin-bottom: 22px; }
.prose > p:not(.eyebrow) { color: var(--muted); max-width: 38rem; }
.prose > .eyebrow { margin-bottom: 14px; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; }
.about-grid .prose { align-self: center; }
.prose .text-link { margin-top: 16px; }
.activity-list { margin-top: 25px; }
.activity-list article { padding-block: 25px; border-top: 1px solid var(--line); }
.activity-list h3 { margin-block: 12px; }
.activity-list p { max-width: 35rem; color: var(--muted); font-size: .95rem; }
.activity-photo img { width: 100%; max-height: 740px; object-fit: cover; border-radius: 7px; }
.updates-empty { display: grid; gap: 26px; padding-top: 35px; border-top: 1px solid var(--line); }
.updates-empty-mark { color: var(--orange); font-size: 5rem; line-height: 1; }
.updates-empty h2 { margin-block: 12px 22px; }
.updates-empty p:not(.eyebrow) { max-width: 40rem; color: var(--muted); }
.updates-empty .button-row { margin-top: 26px; }
.social-wide { display: grid; gap: 20px; }
.social-wide h2 { margin-bottom: 0; }
.social-wide > div:last-child { align-self: center; }
.join-layout .button-row { margin-top: 27px; }
.contact-address { margin-top: 14px !important; overflow-wrap: anywhere; }
.contact-address a { display: inline-flex; align-items: center; min-height: 44px; }
.quiet-note { font-size: .8rem; border-top: 1px solid var(--line); padding-top: 18px; }
.join-checklist { background: var(--sand); border-radius: 7px; padding: 30px; align-self: start; }
.join-checklist h2 { margin-top: 14px; }
.join-checklist ul { list-style: none; padding: 0; margin-block: 28px; }
.join-checklist li { padding-block: 12px; border-bottom: 1px solid #d4cabc; font-size: .9rem; }
.join-checklist li::before { content: '↗'; margin-right: 12px; }
.join-checklist > p:last-child { font-size: .85rem; }
.faq-section { border-top: 1px solid var(--line); }
.faq-section h2 { margin-top: 14px; }
.faq-list details { border-bottom: 1px solid var(--line); padding-block: 16px; }
.faq-list details:first-child { padding-top: 0; }
.faq-list summary { cursor: pointer; font-size: 1rem; font-weight: 700; padding-block: 10px; line-height: 1.4; }
.faq-list details p { margin-block: 10px 15px; color: var(--muted); font-size: .93rem; max-width: 37rem; }
@media (min-width: 600px) {
  .container { width: min(1280px, calc(100% - 64px)); }
  .footer-grid { grid-template-columns: 1.5fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
  .social-panel { padding: 40px; }
}
@media (min-width: 900px) {
  .section { padding-block: 95px; }
  .section-tight { padding-bottom: 95px; }
  .section-heading { grid-template-columns: 1.2fr 1fr; gap: 70px; margin-bottom: 42px; }
  .section-heading > p { align-self: end; }
  .culture-grid, .about-grid, .two-column { grid-template-columns: 1fr 1fr; gap: 80px; }
  .culture-section { padding-block: 82px; }
  .access-grid { grid-template-columns: 1fr 1.1fr; gap: 90px; }
  .club-life-grid { grid-template-columns: 1fr 1fr; gap: 85px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1.1fr; gap: 45px; }
  .footer-contact { grid-column: auto; }
  .page-intro { padding-block: 76px 55px; }
  .activity-layout { grid-template-columns: 1.15fr 1fr; gap: 90px; }
  .activity-photo { align-self: start; }
  .updates-empty { grid-template-columns: .3fr 1fr; gap: 70px; padding-top: 50px; }
  .updates-empty-mark { font-size: 9rem; }
  .social-wide { grid-template-columns: 1fr 1fr; gap: 65px; }
  .join-layout { grid-template-columns: 1.2fr 1fr; gap: 100px; }
  .join-checklist { padding: 40px; }
  .faq-section { grid-template-columns: .8fr 1.4fr; gap: 100px; }
}

@media (max-width: 1050px) {
  .header-inner { gap: 14px; }
  .public-navigation { gap: 0; }
  .public-navigation a { padding-inline: 9px; }
  .public-navigation .nav-login { margin-left: 6px; }
}
@media (max-width: 1199px) {
  .header-inner { min-height: 84px; padding-block: 12px; }
  .wordmark-logo { width: 52px; height: 52px; }
  .js-enhanced .menu-toggle { display: inline-flex; }
  .public-navigation { flex-basis: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-top: 1px solid var(--line); padding-top: 12px; }
  .js-enhanced .public-navigation:not(.is-open) { display: none; }
  .public-navigation a { padding: 12px; }
  .public-navigation .nav-join, .public-navigation .nav-login { margin: 0; }
}
@media (max-width: 599px) {
  .section { padding-block: 52px; }
  .section-tight { padding-bottom: 52px; }
  .culture-section { padding-block: 48px; }
  .join-banner { padding-bottom: 48px; }
  .hero-description { font-size: 1rem; }
  .footer-grid { gap: 24px; }
  .page-intro { padding-top: 38px; }
  .page-intro h1 { font-size: clamp(2.3rem, 9vw, 3.7rem); }
  .activity-photo { grid-row: 1; }
  .activity-photo img { height: auto; object-fit: contain; }
  .social-wide { padding: 28px; }
  .join-banner .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .public-site { scroll-behavior: auto; } }
@media print {
  .site-header, .site-footer, .menu-toggle, .skip-link { display: none; }
  .public-site { background: white; color: black; }
  .container { width: 100%; }
  .race-story, .social-panel, .culture-section { color: black; background: white; }
}

/* Photo-led homepage: image proportions determine the layout, never forced crops. */
.photo-hero { display: grid; gap: 28px; padding-block: 34px 44px; }
.photo-hero-copy .eyebrow { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; }
.photo-hero-copy h1 { font-size: clamp(2.65rem, 5vw, 4.4rem); line-height: 1.05; }
.photo-hero-copy .button-row { margin-top: 24px; }
.hero-club-image { max-width: 640px; }
.hero-club-image img { width: 100%; height: auto; border-radius: 7px; }
.hero-club-image figcaption { font-size: .76rem; color: var(--muted); margin-top: 12px; }
.weekly-photos { border-top: 1px solid var(--line); }
.photo-section-heading { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: end; gap: 20px 40px; margin-bottom: 30px; }
.photo-section-heading h2 { margin-top: 12px; }
.photo-section-heading > p { max-width: 26rem; font-size: .96rem; color: var(--muted); }
.training-sequence { display: grid; gap: 28px; }
.training-sequence img, .practice-diptych img { width: 100%; height: auto; border-radius: 6px; }
.training-sequence figcaption { padding-top: 15px; }
.training-sequence figcaption p { font-size: .95rem; margin-top: 4px; font-weight: 650; }
.training-sequence .small-label { color: var(--orange); }
.practice-stories { background: var(--sand); padding-block: 52px; }
.practice-diptych { display: grid; gap: 28px; }
.practice-diptych figcaption, .equipment-portrait figcaption { font-size: .76rem; color: var(--muted); padding-top: 12px; }
.equipment-portrait { width: min(100%, 390px); justify-self: center; }
.equipment-portrait img { width: 100%; height: auto; border-radius: 6px; }
.access-copy { max-width: 33rem; }
.race-story { background: var(--navy); color: #fff; padding-block: 52px; }
.race-photo-grid { display: grid; gap: 32px; }
.race-photo-grid img { width: 100%; height: auto; border-radius: 6px; }
.race-photo-grid figcaption { color: #d7ddeb; font-size: .76rem; margin-top: 12px; }
.race-photo-grid .eyebrow { color: #d7ddeb; margin-bottom: 14px; }
.race-photo-grid h2 { margin-bottom: 22px; }
.race-photo-grid p:not(.eyebrow) { color: #e1e6f0; max-width: 32rem; }
.public-updates-row { display: grid; gap: 35px; }
.public-updates-row h2 { margin-block: 12px 18px; }
.public-updates-row p:not(.eyebrow) { color: var(--muted); font-size: .94rem; }
.public-updates-row .text-link { margin-top: 12px; }
.social-reserve { border-top: 1px solid var(--line); padding-top: 22px; align-self: center; }
.social-reserve h3 { margin-block: 12px 16px; }
@media (min-width: 900px) {
  .photo-hero { grid-template-columns: .95fr 1.1fr; gap: 64px; align-items: center; padding-block: 66px 62px; }
  .hero-club-image { justify-self: end; }
  /* 4:3, 4:3, and 16:9 photographs have equal visual height without cropping. */
  .training-sequence { grid-template-columns: 1fr 1fr 1.333333fr; gap: 24px; }
  .practice-stories { padding-block: 76px; }
  .practice-diptych { grid-template-columns: 1fr 1fr; gap: 40px; }
  .race-story { padding-block: 72px; }
  .race-photo-grid { grid-template-columns: 1fr 1fr; gap: 76px; align-items: center; }
  .public-updates-row { grid-template-columns: 1fr 1fr; gap: 90px; }
  .social-reserve { border-top: none; border-left: 1px solid var(--line); padding: 0 0 0 35px; }
}
@media (max-width: 599px) {
  .photo-hero-copy h1 { font-size: clamp(2.4rem, 8.7vw, 3.25rem); }
  .photo-hero .hero-description { margin-top: 20px !important; }
  .photo-hero .hero-reassurance { max-width: 22rem; }
  .photo-hero { gap: 26px; }
  .training-sequence { gap: 30px; }
  .photo-section-heading h2 { font-size: 2rem; }
  .practice-stories { padding-block: 45px; }
}

/* Practical information shares the established palette without a new hero. */
.practice-summary { display: grid; gap: 18px; border-top: 1px solid var(--line); padding-block: 24px 30px; }
.practice-summary h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.practice-time { font-size: 1.2rem; font-weight: 750; color: var(--ink); margin-bottom: 6px !important; }
.practice-location { color: var(--ink); margin-bottom: 0 !important; }
.practice-summary > p { font-size: .9rem; color: var(--muted); align-self: center; }
.practice-summary .text-link { margin-top: 10px; }
.practice-panel { background: var(--sand); border-radius: 7px; padding: 28px; align-self: start; scroll-margin-top: 24px; }
.practice-panel h2 { font-size: 1.5rem; margin-bottom: 20px; }
.practice-panel .practice-location { margin-bottom: 20px !important; }
.practice-panel > p:not(.practice-time):not(.practice-location) { font-size: .95rem; color: var(--muted); }
.practice-panel h3 { font-size: 1.15rem; margin-block: 24px 12px; }
.coach-grid { display: grid; gap: 28px; align-items: center; }
.coach-photo img { width: 100%; height: auto; border-radius: 7px; }
.joining-answers { border-top: 1px solid var(--line); padding-top: 32px; }
.joining-answers > h2 { margin-bottom: 28px; }
.joining-answers h3 { font-size: 1.2rem; margin-bottom: 12px; }
.joining-answers p + h3 { margin-top: 28px; }
#training { scroll-margin-top: 24px; }
@media (min-width: 900px) {
  .practice-summary { grid-template-columns: 1fr 1fr; gap: 60px; }
  .practice-panel { padding: 32px; }
  .coach-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}

@media (min-width: 900px) {
  .join-layout > .practice-panel { grid-column: 2; grid-row: 1; }
  .join-layout > .prose { grid-column: 1; grid-row: 1; }
}

/* Updates and publishing use the same reading styles. */
.post-cards { display: grid; gap: 36px; }
.post-card { min-width: 0; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.post-card img { width: 100%; max-height: 360px; object-fit: contain; background: var(--sand); border-radius: 6px; margin-bottom: 18px; }
.post-card h2 { font-size: 1.65rem; margin-block: 12px; overflow-wrap: anywhere; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.post-card > p { color: var(--muted); }
.post-meta { font-size: .85rem; color: var(--muted); }
.post-pagination, .member-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding-block: 24px; }
.post-reading, .post-back { width: min(840px, calc(100% - 40px)); }
.post-reading { padding-block: clamp(32px, 4vw, 56px); word-break: normal; overflow-wrap: break-word; hyphens: manual; }
.post-reading > header { margin-bottom: 28px; }
.post-reading header h1 { font-size: clamp(2rem,5vw,3.4rem); margin-block: 20px; }
.post-reading .lead { color: var(--muted); font-size: clamp(1.125rem, 2vw, 1.3rem); line-height: 1.55; }
.post-featured { width: 100%; height: auto; border-radius: 7px; margin-bottom: 30px; }
.post-body { font-size: clamp(1.0625rem, 1rem + .2vw, 1.125rem); line-height: 1.7; }
.post-reading .post-body p { margin: 0 0 1.1em; }
.post-body h2 { font-size: clamp(1.5rem, 3vw, 1.8rem); line-height: 1.2; margin-block: 36px 18px; }
.post-body h3 { font-size: 1.35rem; line-height: 1.25; margin-block: 30px 14px; }
.post-body ul,.post-body ol { padding-left: 26px; margin-block: 0 1.25em; }
.post-body li { margin-bottom: 8px; }
.post-body a { overflow-wrap: anywhere; }
.post-body img { max-width: 100%; height: auto; display: block; border-radius: 6px; margin-block: 24px; }
.post-body blockquote { border-left: 4px solid var(--orange); padding-left: 20px; margin: 24px 0; color: var(--muted); }
.post-reading .post-body > :last-child, .post-reading .post-body blockquote > :last-child { margin-bottom: 0; }
.post-back { padding-bottom: 50px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
/* Gallery metadata is separate from article HTML and uses protected thumbnail URLs. */
.post-gallery { margin-top: 45px; border-top: 1px solid var(--line); padding-top: 32px; }
.post-gallery h2 { font-size: 1.8rem; margin-bottom: 24px; }
.post-gallery-grid, .gallery-editor-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 14px; }
.post-gallery figure, .gallery-editor-grid article { min-width: 0; }
.gallery-photo-link { display: block; border-radius: 6px; }
.post-gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: var(--sand); border-radius: 6px; }
.post-gallery figcaption { font-size: .85rem; line-height: 1.5; margin-top: 9px; overflow-wrap: break-word; }
.gallery-editor { margin-block: 30px; }
.gallery-editor > p { margin-block: 12px; }
.gallery-editor-grid article { padding: 12px; border: 1px solid var(--line); border-radius: 5px; }
.gallery-editor-grid img { width: 100%; height: 130px; object-fit: contain; }
.gallery-editor-grid p { overflow-wrap: anywhere; font-size: .85rem; margin-block: 10px; }
.gallery-editor-grid button, .upload-results button { min-height: 44px; width: 100%; margin-top: 7px; padding: 7px; background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: .85rem; cursor: pointer; }
.gallery-editor-grid button:disabled { opacity: .5; cursor: default; }
.upload-results > div { padding-block: 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.photo-viewer { width: min(1200px,calc(100% - 24px)); max-height: 94dvh; padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); }
.photo-viewer[open] { display: flex; flex-direction: column; gap: 12px; }
.photo-viewer::backdrop { background: #142e39ed; }
.photo-viewer-toolbar, .photo-viewer-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; }
.photo-viewer button { min-width: 80px; min-height: 46px; padding: 10px; font: inherit; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.photo-viewer-stage { min-height: 0; display: flex; justify-content: center; }
.photo-viewer-stage img { max-width: 100%; max-height: 62dvh; width: auto; height: auto; object-fit: contain; }
.photo-viewer-count { font-size: .85rem; color: var(--muted); }
.photo-viewer .photo-viewer-caption { font-size: .9rem; line-height: 1.5; margin: 0; overflow-wrap: anywhere; max-height: 12dvh; overflow-y: auto; }
@media (min-width: 768px) { .post-gallery-grid, .gallery-editor-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
.home-posts { margin-block: 24px; }
.home-posts .post-cards { grid-template-columns: 1fr; gap: 24px; }
.home-posts .post-card img { max-height: 240px; }
.home-posts .post-card h2 { font-size: 1.35rem; }
.publishing-main { padding-bottom: 60px; max-width: 1100px; }
.publishing-heading { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; margin-block: 25px 35px; }
.publishing-heading h1 { font-size: clamp(2.2rem,5vw,3.5rem); }
.staff-post-list article { border-top: 1px solid var(--line); padding-block: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; }
.staff-post-list h2 { font-size: 1.4rem; margin-bottom: 12px; overflow-wrap: anywhere; }
.post-form > label,.post-settings label,.upload-fields label,.slug-field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 10px; }
.post-form input:not([type=checkbox]):not([type=hidden]),.post-form textarea,.post-form select { width: 100%; min-width: 0; min-height: 46px; padding: 12px; border: 1px solid #a8afb0; border-radius: 5px; background: white; color: var(--ink); font: inherit; font-size: 1rem; }
.post-form > input,.post-form > textarea { margin-bottom: 26px; }
#post-title { font-size: 1.25rem; }
.post-settings { display: grid; gap: 24px; margin-bottom: 28px; }
.post-form .check-label { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.post-form input[type=checkbox] { width: 22px; height: 22px; }
.post-form small,.optional { font-size: .8rem; color: var(--muted); }
#editor { background: white; font-size: 1.05rem; font-family: inherit; border-radius: 0 0 6px 6px; }
#editor .ql-editor { min-height: 380px; padding: 22px; line-height: 1.65; overflow-wrap: anywhere; }
#editor-toolbar { background: var(--sand); display: flex; flex-wrap: wrap; gap: 4px; border-radius: 6px 6px 0 0; padding: 8px; }
#editor-toolbar .ql-formats { margin-right: 4px; display: flex; flex-wrap: wrap; }
#editor-toolbar button { min-width: 44px; min-height: 44px; padding: 11px; font-size: 1.3rem; }
#editor-toolbar .ql-picker { min-height: 44px; }
#editor-toolbar .ql-picker-label { display: flex; align-items: center; min-height: 44px; }
.ql-snow .ql-tooltip { max-width: calc(100vw - 48px); white-space: normal; z-index: 10; }
.ql-snow .ql-tooltip input[type=text] { max-width: 170px; }
.ql-editor img { max-width: 100%; height: auto; }
.post-media-section { margin-block: 36px; border-block: 1px solid var(--line); padding-block: 28px; }
.post-media-section h2 { font-size: 1.5rem; margin-bottom: 15px; }
.post-media-section > p { font-size: .9rem; color: var(--muted); }
.upload-fields { display: grid; gap: 18px; margin-block: 24px; align-items: end; }
.upload-fields input[type=file] { font-size: .85rem !important; }
.media-picker { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-block: 25px; }
.media-picker article { min-width: 0; padding: 12px; background: var(--sand); border-radius: 6px; }
.media-picker img { width: 100%; height: 130px; object-fit: contain; }
.media-picker p { font-size: .8rem; overflow-wrap: anywhere; margin-block: 12px; }
.media-picker button { display: block; width: 100%; min-height: 44px; background: white; border: 1px solid var(--line); border-radius: 4px; margin-top: 7px; padding: 7px; color: var(--ink); font-size: .85rem; }
#featured-selection { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
#featured-selection img { width: 150px; height: 110px; object-fit: contain; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; background: var(--paper); padding-block: 15px; }
.editor-actions #save-status { flex-basis: 100%; color: var(--ink); }
button:disabled { opacity: .65; cursor: wait; }
#post-preview { width: min(1000px,calc(100% - 24px)); max-height: 92vh; border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: var(--paper); color: var(--ink); }
#post-preview::backdrop { background: #142e39b3; }
.preview-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: .8rem; }
#post-preview .container { width: 100%; }
@media (min-width: 768px) {
 .post-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .post-settings { grid-template-columns: 1fr 1.4fr 1fr; align-items: end; }
 .upload-fields { grid-template-columns: 1fr 1fr auto; }
 .media-picker { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 389px) {
 .media-picker { grid-template-columns: 1fr; }
 #editor .ql-editor { padding: 14px; }
}

#photo-library > summary { cursor: pointer; font-weight: 700; padding-block: 14px; min-height: 44px; }
#editor-toolbar button:focus-visible, .media-picker button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.nav-logout { margin: 0; display: flex; align-items: center; }
.nav-logout button { min-height: 44px; padding: 12px; background: transparent; border: 0; color: var(--ink); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.nav-logout button:hover { text-decoration: underline; }
@media (max-width: 1199px) { .nav-logout button { width: 100%; text-align: left; } }
.recovery-notice, .auth-notice { border: 1px solid var(--line); border-radius: 6px; background: var(--sand); padding: 18px; margin-block: 20px; }
.recovery-notice button, .auth-notice a { margin-right: 12px; }

.coach-photo { width: min(100%, 420px); justify-self: center; }

/* Account tools share the primary member navigation. */
.account-navigation { position: relative; }
.account-navigation summary { cursor: pointer; min-height: 44px; padding: 12px; }
.account-links { position: absolute; right: 0; top: 100%; z-index: 50; min-width: 180px; padding: 6px; background: var(--paper, #fff); border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 5px 18px #142e3920; }
.account-links a, .account-links .nav-logout, .account-links button { display: flex; width: 100%; }
@media (max-width: 1199px) {
 .account-navigation { grid-column: 1 / -1; }
 .account-links { position: static; box-shadow: none; min-width: 0; }
}

.equipment-donate-link { margin-top: 20px; }
.donation-story { align-items: center; }
.donation-riders img { width: 100%; height: auto; border-radius: 6px; }

/* Evidence for the club's equipment-access principle, within the existing section. */
.access-copy .access-race-fact { border-left: 3px solid var(--orange); padding-left: 18px; font-weight: 650; color: var(--ink); }
#training .prose h3 { margin-block: 26px 16px; font-size: 1.35rem; }

@media (max-width: 899px) { #equipment-access .access-copy { order: -1; } }

/* A full section in the club palette makes access part of the homepage rhythm. */
#equipment-access { width: 100%; background: var(--sand); margin-block: 24px 0; padding: 56px max(20px, calc((100% - 1280px) / 2)); gap: 36px; }
#equipment-access .equipment-portrait { width: 100%; align-self: stretch; }
#equipment-access .equipment-portrait img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (min-width: 900px) {
 #equipment-access { grid-template-columns: 1fr 1.1fr; gap: 64px; padding-block: 68px; }
 #equipment-access .equipment-portrait img { max-height: 640px; }
}
