/* Club rules and estate code of conduct, 2026 v2 design (1 Dec 2026).
   Markup: template-parts/v2/club-rules.php. */

.v2-rul-hero { height: 44vh; min-height: 400px; background-position: center 55%; background-image: linear-gradient(180deg, rgba(20, 28, 38, .55) 0%, rgba(20, 28, 38, .25) 45%, rgba(20, 28, 38, .5) 100%), var(--v2-hero, none); }
.v2-rul-hero .v2-hero__copy { bottom: clamp(40px, 7vh, 70px); }
.v2-rul-hero .v2-hero__title { font-size: clamp(40px, 5.2vw, 76px); margin: 0 auto; max-width: 1100px; text-wrap: balance; }

/* The tabs: a bar that stays under the header. The existing tab classes
   (pages.css, main.js) are kept and re-dressed here. */
.v2-rul-bar { position: sticky; top: var(--hdr-short, 68px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.v2-rul-bar__inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 var(--v2-pad); display: flex; align-items: center; justify-content: center; gap: 12px 30px; flex-wrap: wrap; min-height: 66px; }
.page-v2-club-rules .v2-rul-bar .doc-tabs,
html.js-doc-tabs .page-v2-club-rules .v2-rul-bar .doc-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(18px, 4vw, 56px);
  background: none; border: 0; border-radius: 0; padding: 0; overflow: visible;
}
html:not(.js-doc-tabs) .page-v2-club-rules .v2-rul-bar .doc-tabs { display: none; }
.page-v2-club-rules .doc-tabs__thumb { display: none; }
.page-v2-club-rules .doc-tabs__tab {
  padding: 24px 0 21px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none;
  font-family: var(--sans); font-weight: 400; font-size: 11.5px; line-height: 1.6; letter-spacing: 2.5px; text-transform: uppercase; color: #8A8D91;
}
.page-v2-club-rules .doc-tabs__tab:hover { color: var(--ink); }
.page-v2-club-rules .doc-tabs__tab.is-current { color: var(--ink); font-weight: 500; border-bottom-color: var(--ink); }
.page-v2-club-rules .doc-tabs__tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.page-v2-club-rules .doc-tabs__draft, .page-v2-club-rules .doc-tabs__tab:not(.is-current) .doc-tabs__draft { background: var(--paper-2); color: var(--ink); border-radius: 0; }
.page-v2-club-rules .v2-rul-bar .doc-tabs__sign { margin-left: 0; padding: 12px 20px; }
@media (min-width: 901px) {
  .page-v2-club-rules .v2-rul-bar .doc-tabs__sign { position: absolute; right: var(--v2-pad); top: 50%; transform: translateY(-50%); }
}

.v2-rul-content { max-width: 1180px; margin: 0 auto; padding: clamp(64px, 8vw, 96px) var(--v2-pad) clamp(70px, 8vw, 110px); scroll-margin-top: calc(var(--hdr-short, 68px) + 66px); }
.page-v2-club-rules .v2-rul-content .doc-notice { max-width: 720px; margin: 0 auto 40px; padding: 14px 18px; border: 1px solid var(--ink); text-align: center; font-size: 15px; color: var(--ink); }
/* Scripts off: both sets show, one after the other. */
.v2-rul-set + .v2-rul-set { margin-top: clamp(70px, 8vw, 110px); }
html.js-doc-tabs .v2-rul-set + .v2-rul-set { margin-top: 0; }

.v2-rul-head { text-align: center; margin-bottom: clamp(44px, 5vw, 64px); }
.v2-rul-head .v2-eyebrow { margin-bottom: 16px; }
.v2-rul-head__title { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(36px, 4.2vw, 54px); line-height: 1.05; color: var(--ink); margin-bottom: 26px; }
.v2-rul-intro p { font-weight: 300; font-size: 16.5px; line-height: 1.9; color: var(--body); max-width: 720px; margin: 0 auto 14px; text-wrap: pretty; }
.v2-rul-intro :where(ul, ol) { max-width: 720px; margin: 0 auto 14px; text-align: left; font-weight: 300; font-size: 16.5px; line-height: 1.9; color: var(--body); }

.v2-rul-themes { border-top: 1px solid var(--ink); }
.v2-rul-theme { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 4vw, 60px); padding: clamp(28px, 3vw, 40px) 0; border-bottom: 1px solid rgba(35, 40, 46, .18); scroll-margin-top: calc(var(--hdr-short, 68px) + 80px); }
.v2 .v2-rul-theme__head { display: flex; gap: 16px; align-items: baseline; align-self: start; font-weight: 400; }
.v2-rul-theme__num { font-family: var(--serif); font-size: 20px; color: #8A8D91; }
.v2-rul-theme__title { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; color: var(--ink); }

/* The rules themselves: the page's own lists and paragraphs, each rule marked with the SLE mark. */
.v2-rul-theme__rules { font-weight: 300; font-size: 15.5px; line-height: 1.8; color: #3E4247; }
.v2-rul-theme__rules > * + * { margin-top: 14px; }
.v2-rul-theme__rules :where(ul, ol) { display: grid; gap: 14px; }
.v2-rul-theme__rules li { position: relative; padding-left: 38px; }
.v2-rul-theme__rules li::before { content: ''; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; background: var(--v2-rul-mark) center / contain no-repeat; opacity: .75; }
.v2-rul-theme__rules li :where(ul, ol) { margin-top: 14px; }
.v2-rul-theme__rules :where(h3, h4) { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 22px; line-height: 1.2; color: var(--ink); }
.v2-rul-theme__rules strong { font-weight: 500; color: var(--ink); }
.v2-rul-theme__rules a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(35, 40, 46, .4); overflow-wrap: anywhere; }
.v2-rul-theme__rules a:hover { text-decoration-color: currentColor; }

/* Questions */
.v2-rul-help { background: var(--paper-2); padding: clamp(56px, 7vw, 84px) var(--v2-pad); }
.v2-rul-help__inner { max-width: 980px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.v2-rul-help .v2-eyebrow { margin-bottom: 12px; }
.v2-rul-help__line { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; color: var(--ink); max-width: 520px; }
.v2-rul-help__btns { display: flex; gap: 14px; flex-wrap: wrap; }
.v2-rul-help .v2-btn { padding: 16px 28px; }

/* The signing dialog keeps its markup; square its corners like the rest of v2. */
.page-v2-club-rules .sign__pad { border-radius: 0; border-color: rgba(35, 40, 46, .3); }
.page-v2-club-rules .sign__error { color: #9A2B2B; }

@media (max-width: 900px) {
  .v2-rul-hero { height: 44vh; min-height: 360px; }
  .v2-rul-bar { position: static; }
  .v2-rul-bar__inner { padding-bottom: 14px; gap: 6px 24px; }
  .page-v2-club-rules .doc-tabs__tab { padding: 18px 0 13px; font-size: 11px; letter-spacing: 2px; }
  .page-v2-club-rules .v2-rul-bar .doc-tabs,
  html.js-doc-tabs .page-v2-club-rules .v2-rul-bar .doc-tabs { width: 100%; gap: 0 22px; }
  .page-v2-club-rules .v2-rul-bar .doc-tabs__sign { margin-top: 8px; }
  .v2-rul-theme { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .v2-rul-theme__rules li { padding-left: 32px; }
  .v2-rul-help__inner { flex-direction: column; align-items: flex-start; }
}
