/* Public MEGINclub pages: open reading spaces, sailing blue and real club photography.
   Loaded only outside the personal and administration workspace. */
:root {
  --cream: #fafbf8;
  --ink: #173b49;
  --navy: #153f50;
  --sea: #1e617b;
  --muted: #526871;
  --sky: #eaf1f2;
  --mist: #f0f3ef;
  --line: #d5dfdd;
  --sand: #f3eee3;
  --radius: .65rem;
  --radius-lg: 1rem;
  --radius-xl: 1.4rem;
}
body { -webkit-font-smoothing: antialiased; }
main { min-height: 48vh; }
h1, h2, h3 { font-weight: 600; overflow-wrap: anywhere; }
h1 { line-height: 1.06; letter-spacing: -.045em; }
a { text-decoration-thickness: 1px; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline-offset: 5px; }
.masthead { background: var(--cream); }
.header-row { min-height: 5.2rem; }
.brand-mark { color: var(--sea); }
.desktop { gap: clamp(1rem, 1.8vw, 2rem); }
.desktop a { font-size: .85rem; }
.account-link { padding-inline: 1rem; }
.menu-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); }
.area-navigation { gap: .15rem 1.5rem; padding-block: .25rem; }
.area-navigation a { font-size: .76rem; }
.page-heading { padding-block: 2.8rem 1.2rem; }
.page-heading h1 { font-size: clamp(2.2rem, 4.4vw, 4.5rem); max-width: 28ch; }
.page-heading .lead { max-width: 55ch; line-height: 1.7; color: var(--muted); }
.breadcrumbs { margin-bottom: 1rem; font-size: .72rem; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.section { padding-block: 1.5rem 3.5rem; }
/* The opening belongs to the subject: a handbook, a sailing area or the club. */
.hub-opening { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; padding-block: 2rem; }
.hub-opening > .page-heading { width: 100%; padding: 1rem 0; }
.hub-opening .page-heading h1 { max-width: 17ch; }
.hub-opening .lead { margin-bottom: 0; }
.hub-photo { display: block; min-width: 0; }
.hub-photo img { width: 100%; aspect-ratio: 1.6; object-fit: cover; object-position: center 70%; border-radius: var(--radius-lg); }
.hub-introduction { max-width: 70ch; font-size: 1rem; }
.hub-introduction p { line-height: 1.8; }
.experience-hub { padding-bottom: 3.5rem; }
.edit-link { font-size: .78rem; }
.handbook-shelf { margin-top: 2.5rem; }
.shelf-heading { border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.shelf-heading h2 { font-size: 1.5rem; }
.handbook-entries { gap: 0 2.5rem; }
.handbook-entries > a { padding: 1.5rem 2rem 1.5rem 0; min-height: 0; }
.handbook-entries h3 { font-size: 1.22rem; line-height: 1.3; }
.handbook-entries p { font-size: .88rem; line-height: 1.7; max-width: 42ch; }
.handbook-entries > a > span:last-child { color: var(--sea); }
.handbook-originals { margin-top: 1.5rem; }
.handbook-originals > summary { font-size: .85rem; }
.boats-choices { gap: 1.5rem; margin-block: 2rem; }
.boats-choices > section { background: var(--sky); border: 0; padding: clamp(1.5rem, 3vw, 3rem); }
.boats-choices > section:nth-child(2) { background: var(--sand); }
.boats-choices h2 { font-size: clamp(1.7rem, 2.6vw, 2.6rem); max-width: 17ch; }
.club-actions { gap: 1rem; }
.club-actions > a { border: 1px solid var(--line); padding: 1.4rem; border-radius: var(--radius); background: #fff; }
.club-actions strong { font-size: 1.22rem; }
.club-actions span { font-size: .85rem; }
/* Documents are readable first. Their original file is one clear action in the reader. */
.reading-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; margin-block: 1.5rem; }
.reading-links > li { position: relative; padding: 1rem 1.7rem 1rem 0; gap: .6rem; min-width: 0; }
.reading-links > li > div { display: flex; flex-direction: column; gap: .35rem; align-items: start; min-width: 0; }
.reading-links > li > div > a { font-size: .96rem; color: var(--ink); font-weight: 550; line-height: 1.5; text-decoration: none; }
.reading-links > li > div > a:after { content: ""; position: absolute; inset: 0; }
.reading-links > li > div > a:hover { text-decoration: underline; }
.reading-links .meta { font-size: .72rem; }
.reading-arrow { color: var(--sea); position: absolute; right: 0; top: 1rem; }
.document-cover { background: transparent; padding: 0; border: 0; }
.document-cover > .button { font-size: .8rem; margin-block: .4rem 1rem; }
.document-cover > ul { padding-left: 1rem; font-size: .8rem; }
.document-cover h2 { font-size: .9rem; }
.document-source { margin: 0 0 1.5rem; padding: 0; border: 0; }
.document-source summary { font-size: .76rem; min-height: 44px; cursor: pointer; }
.document-source .meta { overflow-wrap: anywhere; }
.document-transcript { background: #fff; padding: clamp(1.3rem, 3vw, 3rem); border: 1px solid var(--line); border-radius: var(--radius); }
.document-transcript p { line-height: 1.85; }
.article-index { border-top: 1px solid var(--line); }
.history-note { padding: 0; border: 0; margin: 0 0 1.5rem; max-width: 70ch; color: var(--muted); }
.history-note > summary { font-size: .78rem; min-height: 44px; cursor: pointer; }
.history-note > p { font-size: .84rem; }
.article-documents, .attachments { margin-top: 2.5rem; }
.article-documents > h2, .attachments > h2 { font-size: 1.45rem; }
.prose img, .attachments img, .gallery img { border-radius: var(--radius); }
.prose { line-height: 1.85; }
.external-image-link { display: inline-block; font-size: .85rem; padding-block: .25rem; }
.content-list { gap: 1.5rem 3rem; }
.content-list article { background: transparent; border-radius: 0; padding: 1.25rem 0; border: 0; border-top: 1px solid var(--line); }
.content-list article h2 { font-size: 1.5rem; line-height: 1.25; }
.content-list article > p:not(.meta):not(.eyebrow) { max-width: 62ch; font-size: .95rem; }
.content-list .meta { font-size: .74rem; }
.year-group h2 { font-size: 1.5rem; }
.empty { color: var(--muted); padding-block: 1rem; }
/* Conversations have one reading surface, with a quieter category list alongside. */
.forum-main { padding: 0; background: transparent; border: 0; border-radius: 0; }
.forum-category-nav { background: var(--sky); padding: 1.2rem; border-radius: var(--radius); }
.forum-category-nav h2 { font-size: .7rem; }
.forum-thread { padding: 1.35rem 0; }
.forum-thread h2 { font-size: 1.28rem; line-height: 1.3; }
.thread-latest { font-size: .77rem; }
.forum-toolbar { justify-content: end; margin-bottom: 1rem; }
.forum-tabs { margin-top: 0; }
.calendar-toolbar { gap: 1rem; }
.calendar-month { background: #fff; }
.calendar-month-nav h2 { font-size: clamp(1.25rem, 2.5vw, 2rem); }
.calendar-history-year { padding-top: 2rem; }
.calendar-history-year > h3 { font-size: 1.65rem; }
.calendar-history .rows h4 { font-size: 1.05rem; font-weight: 600; margin-block: .4rem; }
.calendar-history > nav { gap: .25rem 1rem; }
.calendar-history > nav a { min-height: 44px; display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }
.calendar-empty { background: var(--sky); border: 0; border-radius: var(--radius); }
.calendar-empty h3 { font-size: 1.15rem; }
/* Club details and release information sit quietly at the end of every page. */
.site-footer { margin-top: 2rem; background: var(--navy); }
.footer-simple { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; padding-block: 2.5rem 1.25rem; align-items: start; }
.footer-wordmark { font-size: 1.75rem; letter-spacing: -.055em; }
.footer-simple nav { gap: .2rem 1.4rem; }
.footer-simple nav a { font-size: .82rem; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.footer-simple nav a:hover { text-decoration: underline; }
.footer-release { grid-column: 1 / -1; border-top: 1px solid #476775; padding-top: 1rem; color: #d9e5e9; }
.footer-release .release-info { margin: 0; font-size: .66rem; }
@media (max-width: 78rem) {
  .desktop { display: none; }
  .site-menu { display: block; }
}
@media (max-width: 48rem) {
  .header-row { min-height: 4.7rem; }
  .area-navigation { flex-wrap: nowrap; overflow-x: auto; gap: 1.2rem; scrollbar-width: thin; overscroll-behavior-x: contain; }
  .area-navigation a { white-space: nowrap; flex-shrink: 0; }
  .page-heading { padding-block: 1.8rem .8rem; }
  .page-heading h1 { font-size: clamp(2rem, 7.5vw, 3rem); }
  .page-heading .lead { font-size: 1rem; }
  .hub-opening { grid-template-columns: 1fr; gap: 1.2rem; padding-block: 1.6rem 1.5rem; }
  .hub-opening > .page-heading { padding: 0; }
  .hub-opening .page-heading h1 { max-width: 24ch; }
  .hub-photo img { aspect-ratio: 1.9; }
  .handbook-entries { grid-template-columns: 1fr; }
  .handbook-entries > a { padding-block: 1.2rem; }
  .reading-links { grid-template-columns: 1fr; margin-block: 1rem; }
  .document-page { gap: 1rem; }
  .document-cover .article-index { margin-bottom: .5rem; }
  .document-cover > .button { margin-block: 0 .5rem; }
  .document-transcript { padding: 1.2rem; }
  .forum-category-nav { padding: .7rem; gap: .3rem; }
  .forum-category-nav h2 { display: none; }
  .forum-sidebar-links { margin-top: .2rem; }
  .forum-toolbar > .button { width: auto; }
  .forum-thread h2 { font-size: 1.18rem; }
  .footer-simple { grid-template-columns: 1fr; gap: 1rem; }
  .footer-release { margin-top: .5rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .home-photo-links img { transition: filter .2s ease; }
  .home-photo-links a:hover img { filter: brightness(1.06); }
}
