/* Colors and system font stack from the club's current site; independent layout. */
:root {
  color-scheme: light;
  --ink:#071b33; --navy:#0b2748; --blue:#123a66; --soft:#506173;
  --paper:#f5f7fb; --sand:#dfe6f1; --orange:#d9812e; --white:#fff;
  --line:#dce4ef; --radius:18px; --muted-bg:#eaf0f8;
  --success-bg:#e4f2eb; --success:#20543c; --danger:#8c2e36; --danger-bg:#fbeef0;
  --font:Aptos,"Aptos Display","Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
}
* {box-sizing:border-box}
[hidden] {display:none!important}
body {margin:0;background:var(--paper);color:var(--ink);font:1rem/1.55 var(--font);overflow-wrap:anywhere}
a {color:var(--blue);text-underline-offset:.17em}
a:hover {text-decoration-thickness:.14em}
button,input,select,textarea {font:inherit}
:focus-visible {outline:3px solid var(--blue);outline-offset:3px}
.shell {width:min(1120px,calc(100% - 48px));margin-inline:auto}
.skip-link {position:absolute;z-index:5;left:1rem;top:1rem;background:white;padding:.7rem;transform:translateY(-160%)}
.skip-link:focus {transform:none}
.masthead {background:var(--white);border-bottom:1px solid var(--line)}
.masthead-inner {display:flex;min-height:78px;align-items:center;justify-content:space-between;gap:1.25rem}
.brand {display:inline-flex;gap:.75rem;align-items:center;color:var(--ink);text-decoration:none;line-height:1.23}
.brand-mark {display:grid;place-items:center;width:50px;height:50px;flex:none}
.brand img {display:block;width:100%;height:100%;object-fit:contain}
.brand strong,.brand small {display:block}
.brand small {margin-top:.22rem;color:var(--soft);font-size:.82rem;font-weight:650}
.masthead nav {display:flex;align-items:center;gap:.35rem;flex-wrap:wrap}
.masthead nav a,.nav-button {display:inline-flex;min-height:42px;align-items:center;background:transparent;border:0;border-radius:9px;color:var(--navy);padding:.4rem .7rem;font-weight:680;text-decoration:none;cursor:pointer}
.masthead nav a:hover,.nav-button:hover {background:var(--muted-bg)}
main.shell {padding-block:clamp(1.6rem,4.7vw,3.65rem);min-height:66vh}
.footer {padding-block:1.15rem 2rem;color:var(--soft);font-size:.87rem;border-top:1px solid var(--line)}
h1,h2,h3,p {margin:0 0 .75rem}
h1,h2,h3 {line-height:1.12;letter-spacing:-.033em}
h1 {font-size:clamp(2.02rem,5vw,3.55rem);font-weight:780;margin-bottom:.53rem}
h2 {font-size:clamp(1.26rem,2.35vw,1.55rem);font-weight:760}
h3 {font-size:1.1rem}
p:last-child {margin-bottom:0}
.eyebrow {display:flex;align-items:center;gap:.48rem;color:var(--blue);font-size:.77rem;font-weight:780;letter-spacing:.12em;text-transform:uppercase;margin-bottom:.55rem}
.eyebrow::before {content:"";width:1rem;height:.2rem;background:var(--orange);border-radius:3px;flex:none}
.lede,.muted {color:var(--soft)}
.lede {font-size:1.07rem;max-width:42rem}
.fineprint {font-size:.87rem;color:var(--soft);line-height:1.45}
.page-head {display:flex;gap:1.2rem;justify-content:space-between;align-items:center;margin-bottom:1.7rem}
.page-head>* {min-width:0}
.page-head>.button,.page-head>.pill {flex:none}
.panel {background:var(--white);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 9px 24px #071b3308;padding:clamp(1.08rem,3vw,1.72rem);min-width:0}
.narrow {max-width:684px;margin-inline:auto}
.auth-layout,.editor-layout,.team-layout {display:grid;gap:1.25rem;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);align-items:start}
.auth-layout {max-width:970px;margin-inline:auto;align-items:stretch;gap:1.1rem}
.auth-intro {background:var(--navy);color:var(--white);border-radius:var(--radius);padding:clamp(1.55rem,5vw,4.3rem);display:flex;flex-direction:column;justify-content:center;min-height:340px}
.auth-intro .eyebrow,.auth-intro .lede {color:var(--sand)}
.auth-intro h1 {font-size:clamp(2.35rem,5.2vw,3.85rem);max-width:13ch}
.auth-layout .panel {padding:clamp(1.3rem,3.6vw,2.3rem)}
.auth-layout form,.narrow form {margin-block:1rem}
.team-layout {grid-template-columns:minmax(0,1fr) minmax(0,1.55fr)}
.button {display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:.4rem;min-height:44px;max-width:100%;padding:.55rem .95rem;background:var(--navy);color:white;border:1px solid var(--navy);border-radius:10px;font-weight:720;text-decoration:none;cursor:pointer;line-height:1.35}
.button:hover {background:var(--blue);color:white}
.button.secondary {background:white;color:var(--blue);border-color:#abbcd1}
.button.secondary:hover {background:var(--muted-bg)}
.button.danger {background:var(--white);color:var(--danger);border-color:#d8a8ad}
.button.danger:hover {background:var(--danger-bg)}
.button:disabled {opacity:.58;cursor:default}
.actions,.account-actions,.inline-form {display:flex;align-items:center;flex-wrap:wrap;gap:.55rem}
.actions {margin-block:1rem .35rem}
label,legend {font-size:.95rem;font-weight:700;display:block;margin-bottom:.33rem}
form>div:not([hidden]) {margin-bottom:.9rem}
input:not([type=hidden]),select,textarea {width:100%;min-width:0;max-width:100%;border:1px solid #aebed1;border-radius:9px;background:var(--white);color:var(--ink);padding:.53rem .65rem;min-height:44px}
input[readonly] {background:var(--paper);font-family:ui-monospace,monospace;font-size:.88rem}
input::placeholder {color:#5b6d80}
textarea {resize:vertical;display:block}
.helptext {color:var(--soft);font-size:.85rem;margin-top:.28rem}
.helptext ul,.errorlist {margin:.35rem 0;padding-left:1.35rem}
.errorlist {color:var(--danger);font-weight:650;font-size:.9rem}
[aria-invalid=true] {border-color:var(--danger)!important}
.notice {background:var(--muted-bg);border-radius:10px;padding:.68rem .9rem;margin:0 0 1rem;color:var(--navy);border:1px solid #cddbef}
.notice.success,.pill.published {background:var(--success-bg);color:var(--success);border-color:#c9e3d5}
.notice.error,.pill.trash {background:var(--danger-bg);color:var(--danger);border-color:#eecbd0}
.pill {border-radius:999px;background:var(--muted-bg);color:var(--blue);border:1px solid #cfdbeb;padding:.28rem .62rem;font-size:.79rem;line-height:1.22;font-weight:740;text-align:center;white-space:nowrap}
.tabs {display:flex;gap:.35rem;align-items:center;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:.65rem;margin-bottom:1rem}
.tabs a {min-height:40px;display:flex;align-items:center;padding:.35rem .63rem;color:var(--blue);text-decoration:none;font-weight:700;border-radius:9px}
.tabs a:hover {background:var(--muted-bg)}
.tabs [aria-current=page] {background:var(--navy);color:white}
.tabs [aria-current=page]:hover {background:var(--blue)}
.filter {display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;gap:.6rem;align-items:end;margin-bottom:.95rem}
.filter>div:not([hidden]) {margin:0}
.filter>a {grid-column:1/-1;font-size:.87rem}
.list-caption {color:var(--soft);font-size:.84rem;border-bottom:1px solid var(--line);padding:.2rem 0 .65rem}
.article-row,.account {display:flex;align-items:start;justify-content:space-between;gap:.65rem;padding:1rem 0;border-bottom:1px solid var(--line)}
.article-row:last-child,.account:last-child {border-bottom:0;padding-bottom:0}
.article-row h2 {font-size:1.21rem;margin-bottom:.32rem}
.article-row h2 a {text-decoration:none}
.article-row h2 a:hover {text-decoration:underline}
.article-row-title .fineprint,.row-summary {margin-bottom:.3rem}
.row-summary {color:var(--soft);max-width:65ch}
.empty {padding:1.7rem .15rem .6rem;color:var(--soft)}
.empty h2 {color:var(--ink)}
.pagination {display:flex;justify-content:center;gap:.8rem;align-items:center;padding-top:1rem;color:var(--soft);font-size:.9rem}
.back {display:inline-block;font-size:.91rem;margin-bottom:1rem}
.article-meta dl {margin-top:.95rem}
.article-meta dt {font-size:.82rem;font-weight:700;color:var(--soft)}
.article-meta dd {margin:0 0 .75rem}
.article-meta form+p,.article-meta p+.fineprint {margin-top:.6rem}
.plain-body {white-space:pre-wrap}
.account {display:block}
.account-heading {display:flex;justify-content:space-between;align-items:start;gap:.55rem}
.account h3 {margin:.15rem 0 .35rem;min-width:0}
.account h3 small {font-size:.74rem;color:var(--soft);letter-spacing:0}
.account-actions {margin-top:.7rem}
 .inline-form select {width:auto}
.mode-options {margin:0 0 .65rem;padding:.55rem .68rem;border:1px solid var(--line);border-radius:9px;min-inline-size:0}
.mode-options label {display:flex;align-items:center;gap:.4rem;min-height:39px;margin:0;cursor:pointer}
.mode-options input[type=radio] {display:inline-block;width:1.12rem;min-height:0;margin:0;accent-color:var(--navy)}
.provision-form:has(#id_mode_0:checked) .start-password-fields {display:none}
.provision-form:has(#id_mode_1:checked) .start-password-fields {display:grid;gap:.65rem}
.provision-form:has(#id_mode_1:checked) .link-info {display:none}
.provision-form+.fineprint {margin-top:.75rem}
@media(max-width:760px) {
  .shell {width:calc(100% - 32px)}
  .auth-layout,.editor-layout,.team-layout {grid-template-columns:minmax(0,1fr)}
  .auth-intro {min-height:unset}
  .auth-intro h1 {max-width:none}
}
@media(max-width:520px) {
  .masthead-inner {gap:.25rem;flex-wrap:wrap;padding-block:.65rem}
  .masthead nav {width:100%}
  .masthead nav a,.nav-button {padding-inline:.58rem}
  .page-head {align-items:flex-start;flex-direction:column;gap:.55rem;margin-bottom:1rem}
  .filter {grid-template-columns:minmax(0,1fr)}
  .filter .button {justify-self:start}
  .article-row {display:grid}
  .article-row>.pill {justify-self:start}
  .actions>*,.account-actions>* {max-width:100%}
}
