/* The Majlis: collective, benefits, application and cover buttons (13 Nov 2026).
   Page-only refinements; shell.css and inaya.css are left untouched. */

/* ---------- cover: outlined Apply beside a jewelled solid Member login ---------- */
body.ia main .mj-hero-act { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
body.ia main .mj-hero-act .mj-hero-btn { position: relative; min-width: 284px; min-height: 60px; padding: 0 34px; gap: 14px;
  font-family: 'Marcellus', Georgia, serif; font-weight: 400; font-size: 13.5px; letter-spacing: .2em; text-transform: uppercase; border-color: rgba(245,242,235,.55); }
body.ia main .mj-hero-act .mj-hero-btn:not(.mj-hero-btn--solid):hover { background: rgba(245,242,235,.07); color: #F4EFE6; border-color: #F4EFE6; }
body.ia main .mj-hero-act .mj-hero-btn > span { position: relative; z-index: 2; }
body.ia main .mj-hero-act .mj-hero-btn--solid { overflow: hidden; justify-content: flex-start; padding: 0 30px 0 32px; background: #F4EFE6 !important; color: #0B0B09 !important; border: 1px solid #F4EFE6 !important; }
/* fine inset double hairline frame */
body.ia main .mj-hero-act .mj-hero-btn--solid::before { content: ''; position: absolute; inset: 5px; z-index: 1; pointer-events: none; border: 1px solid rgba(11,11,9,.42);
  box-shadow: inset 0 0 0 2px #F4EFE6, inset 0 0 0 3px rgba(11,11,9,.16); }
/* a quiet sheen that passes once on hover */
body.ia main .mj-hero-act .mj-hero-btn--solid::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.7), rgba(255,255,255,0)); transform: skewX(-20deg) translateX(0); opacity: 0; }
body.ia main .mj-hero-act .mj-hero-btn--solid:hover { background: #F4EFE6 !important; color: #0B0B09 !important; }
body.ia main .mj-hero-act .mj-hero-btn--solid:hover::after { opacity: 1; transform: skewX(-20deg) translateX(560%); transition: transform 1.1s cubic-bezier(.22,1,.36,1), opacity .2s ease; }
body.ia main .mj-hero-act .mj-lock { position: relative; z-index: 2; flex: none; margin-top: -2px; }
body.ia main .mj-hero-act .mj-hero-btn--solid i { position: relative; z-index: 2; display: block; margin-left: auto; width: 22px; height: 1px; background: currentColor; transition: width .5s cubic-bezier(.22,1,.36,1); }
body.ia main .mj-hero-act .mj-hero-btn--solid i::after { content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
body.ia main .mj-hero-act .mj-hero-btn--solid:hover i { width: 40px; }
body.ia main .mj-hero-act .mj-hero-btn--solid > span { margin-right: 26px; }
@media (max-width: 599px) {
  body.ia main .mj-hero-act { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; }
  body.ia main .mj-hero-act .mj-hero-btn { min-width: 0; width: 100%; padding: 0 20px; font-size: 13px; }
  body.ia main .mj-hero-act .mj-hero-btn--solid { padding: 0 26px 0 28px; }
}
@media (prefers-reduced-motion: reduce) { body.ia main .mj-hero-act .mj-hero-btn--solid::after { display: none; } }

/* ---------- 1. Collective access: one composed band ---------- */
body.ia .mj-collective .mj-col-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2vw, 32px); row-gap: 0; align-items: start; }
.mj-col-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 28px; }
.mj-col-head .label { flex: none; margin: 0; }
.mj-col-rule { flex: 1 1 auto; height: 1px; background: rgba(245,242,235,.16); }
body.ia .mj-collective .mj-col-st { grid-column: 1 / span 10; max-width: none; margin: clamp(36px, 3.6vw, 56px) 0 0 !important;
  font-size: clamp(34px, 4.4vw, 68px); line-height: 1.08; letter-spacing: -.005em; text-wrap: balance; }
body.ia .mj-collective .mj-col-copy { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 0;
  margin-top: clamp(48px, 5vw, 80px); border-top: 1px solid rgba(245,242,235,.16); }
body.ia .mj-collective .mj-col-copy p { margin: 0 !important; padding: 30px clamp(28px, 4vw, 64px) 0 0; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.75; color: #A79E92; }
body.ia .mj-collective .mj-col-copy p { max-width: none; }
@media (min-width: 768px) { body.ia .mj-collective .mj-col-copy p { padding-right: clamp(28px, 6vw, 96px); } body.ia .mj-collective .mj-col-copy p + p { padding-left: clamp(28px, 6vw, 96px); padding-right: 0; } }
body.ia .mj-collective .mj-col-copy p + p { padding: 30px 0 0 clamp(28px, 4vw, 64px); border-left: 1px solid rgba(245,242,235,.16); }
@media (max-width: 767px) {
  body.ia .mj-collective .mj-col-st { grid-column: 1 / -1; }
  body.ia .mj-collective .mj-col-copy { grid-template-columns: minmax(0, 1fr); }
  body.ia .mj-collective .mj-col-copy p, body.ia .mj-collective .mj-col-copy p + p { padding: 24px 0 0; border-left: 0; }
  body.ia .mj-collective .mj-col-copy p + p { margin-top: 24px !important; border-top: 1px solid rgba(245,242,235,.12); }
  .mj-col-head { gap: 18px; }
}

@media (min-width: 768px) and (max-width: 1199px) { body.ia .mj-collective .mj-col-copy p { padding-right: 28px; } body.ia .mj-collective .mj-col-copy p + p { padding-left: 28px; padding-right: 0; } }

/* ---------- 2. Member benefits: engraved brochure cards ---------- */
body.ia .mj-benefits .mj-ben { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2vw, 32px); align-items: stretch; }
body.ia .mj-benefits .mj-ben-col { position: relative; display: flex; flex-direction: column; border: 1px solid rgba(11,11,9,.2); border-top: 0;
  padding: clamp(36px, 3.4vw, 52px) clamp(26px, 2.6vw, 40px) clamp(14px, 1.4vw, 20px); background: transparent; }
/* one ink rule along the top edge */
body.ia .mj-benefits .mj-ben-col::before { content: ''; position: absolute; left: -1px; right: -1px; top: 0; height: 1px; background: #0B0B09; }
body.ia .mj-benefits .mj-ben-n { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 300; font-size: clamp(56px, 5vw, 80px); line-height: .9; letter-spacing: .02em; color: #0B0B09; }
body.ia .mj-benefits .mj-ben-col h3 { margin: clamp(26px, 2.4vw, 36px) 0 0; padding-bottom: 20px; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-size: clamp(25px, 2vw, 31px); line-height: 1.15; color: #0B0B09;
  border-bottom: 1px solid #0B0B09; }
body.ia .mj-benefits .mj-ben-col ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-rows: repeat(3, 1fr); flex: 1 1 auto; border-bottom: 0; }
body.ia .mj-benefits .mj-ben-col li { display: flex; align-items: center; min-height: 64px; padding: 16px 0 16px 26px; border-top: 1px solid rgba(11,11,9,.14); font-size: 15px; line-height: 1.5; color: #0B0B09; }
body.ia .mj-benefits .mj-ben-col li:first-child { border-top: 0; }
/* small engraved lozenge in place of a dash */
body.ia .mj-benefits .mj-ben-col li::before { left: 2px; top: 50%; width: 5px; height: 5px; margin-top: -3px; background: transparent; border: 1px solid #0B0B09; transform: rotate(45deg); }
@media (max-width: 1023px) {
  body.ia .mj-benefits .mj-ben { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  body.ia .mj-benefits .mj-ben-col { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 24px; align-items: end; }
  body.ia .mj-benefits .mj-ben-n { grid-row: 1; }
  body.ia .mj-benefits .mj-ben-col h3 { grid-row: 1; grid-column: 2; margin: 0; border-bottom: 0; padding-bottom: 4px; }
  body.ia .mj-benefits .mj-ben-col ul { grid-column: 1 / -1; grid-template-rows: none; margin-top: 22px; border-top: 1px solid #0B0B09; }
  body.ia .mj-benefits .mj-ben-col li { min-height: 0; }
}
@media (max-width: 599px) {
  body.ia .mj-benefits .mj-ben-col { padding: 30px 22px 22px; }
  body.ia .mj-benefits .mj-ben-n { font-size: 50px; }
  body.ia .mj-benefits .mj-ben-col li { min-height: 0; padding: 15px 0 15px 22px; font-size: 15px; }
}

/* ---------- 3. The application ----------
   Heading row (statement and pledge left, the three stages right, equal height),
   then the form on the full page grid: each part a ruled row, its numeral and title above its fields. */
body.ia #join { position: relative; }
body.ia #join .mj-join-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2vw, 32px); align-items: stretch; }
body.ia #join .mj-join-top { grid-column: 1 / span 6; display: flex; flex-direction: column; }
body.ia #join .mj-join-steps { grid-column: 7 / -1; display: flex; flex-direction: column; }
body.ia #join .mj-join-steps > div { flex: 1 1 auto; display: flex; }
body.ia #join .statement { margin-top: 22px; font-size: clamp(40px, 4.2vw, 64px); line-height: 1.05; max-width: 12ch; }
/* the pledge */
body.ia #join .mj-pledge { margin: auto 0 0 !important; padding: clamp(44px, 4vw, 60px) 0 0 !important; }
body.ia #join .mj-pledge-mark { display: block; width: 56px; height: 1px; background: #F4EFE6; margin-bottom: 24px; }
body.ia #join .mj-pledge blockquote { margin: 0; font-family: 'Cormorant Garamond', serif; font-weight: 300; font-style: italic; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.32; color: #F4EFE6; max-width: 22em; }
body.ia #join .mj-pledge figcaption { margin-top: 18px; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: #8A8277; }
/* the three stages, stretched to the height of the statement column */
body.ia #join .mj-agenda { flex: 1 1 auto; margin: 0; gap: 0; display: grid; grid-template-rows: repeat(3, 1fr); }
body.ia #join .mj-agenda li:last-child { padding-bottom: 0; }
body.ia #join .mj-agenda li { grid-template-columns: 56px minmax(0, 1fr); align-items: center; padding: 20px 0; border-top: 1px solid rgba(245,242,235,.14); }
body.ia #join .mj-agenda i { align-self: center; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; line-height: 1; color: #8A8277; }
body.ia #join .mj-agenda p { font-size: 15.5px; line-height: 1.7; color: #A79E92; }
body.ia #join .mj-agenda b { display: block; margin-bottom: 4px; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-size: 23px; line-height: 1.2; color: #F4EFE6; }

/* the form: black ground, no panel fill, no frame, no glow */
body.ia #join .form-panel { margin-top: clamp(64px, 6.4vw, 104px); background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
body.ia #join .form-panel::before, body.ia #join .form-panel::after { content: none !important; }
body.ia #join .form-grid { display: block; }
body.ia #join .mj-fs { display: block; border: 0; border-top: 1px solid rgba(245,242,235,.16); padding: clamp(28px, 2.6vw, 36px) 0 clamp(40px, 3.6vw, 56px); margin: 0; min-width: 0; }
body.ia #join .mj-legend { float: left; width: 100%; display: flex; align-items: baseline; gap: 14px; padding: 0; margin: 0 0 clamp(20px, 2vw, 28px); border: 0; }
body.ia #join .mj-legend span { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-size: 20px; line-height: 1; letter-spacing: 0; color: #8A8277; min-width: 0; }
body.ia #join .mj-legend b { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-size: clamp(26px, 2.2vw, 32px); line-height: 1; letter-spacing: 0; text-transform: none; color: #F4EFE6; }
body.ia #join .mj-fs-grid { clear: both; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(20px, 2vw, 32px); row-gap: 28px; }
body.ia #join .mj-fs-grid .field--full { grid-column: span 2; }
body.ia #join .mj-fs-grid .field:has(#mj-role) { grid-column: span 2; }
body.ia #join .mj-fs-grid .field:has(#mj-asset), body.ia #join .mj-fs-grid .field:has(#mj-ticket) { grid-column: span 2; }
/* fields: legible labels, hairline that draws in on focus */
body.ia #join .field { position: relative; display: flex; flex-direction: column; justify-content: flex-end; margin: 0; }
body.ia #join .form-panel .field label { display: block; margin: 0 0 4px !important; font-size: 13px !important; letter-spacing: .02em !important; line-height: 1.45 !important; color: #A79E92 !important; transition: color .3s ease; }
body.ia #join .form-panel .field:focus-within label { color: #F4EFE6 !important; }
body.ia #join .field input, body.ia #join .field select, body.ia #join .field textarea { width: 100%; border: 0 !important; border-bottom: 1px solid rgba(245,242,235,.24) !important; background-color: transparent !important; outline: none !important; box-shadow: none !important; border-radius: 0; padding: 10px 0 12px; font-family: inherit; font-size: 16px; color: #F4EFE6; }
body.ia #join .field input::placeholder { color: #8A8277; opacity: 1; }
body.ia #join .field::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: #F4EFE6; transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.22,1,.36,1); pointer-events: none; }
body.ia #join .field:focus-within::after { transform: scaleX(1); }
body.ia #join .field select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, #A79E92 50%), linear-gradient(135deg, #A79E92 50%, transparent 50%) !important;
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55% !important; background-size: 5px 5px, 5px 5px !important; background-repeat: no-repeat !important; }
body.ia #join .field select:invalid { color: #8A8277; }
body.ia #join .field select option { background: #0B0B09; color: #F4EFE6; }
body.ia #join .field textarea { resize: none; min-height: 112px; line-height: 1.6; }
/* submit: full width under one rule */
body.ia main #join .btn-row { display: block; margin-top: 0; padding-top: clamp(32px, 3vw, 44px); border-top: 1px solid rgba(245,242,235,.16); }
body.ia #join .form-panel .small { margin-top: 18px; font-size: 13px; line-height: 1.6; color: #8A8277; }
body.ia main #join .mj-submit { width: 100%; justify-content: space-between !important; padding: 0 30px !important; min-height: 64px; background: #F4EFE6 !important; color: #0B0B09 !important; border: 1px solid #F4EFE6 !important; text-transform: none !important; letter-spacing: .04em !important; font-size: 15px !important; transition: background .35s ease, color .35s ease; }
body.ia main #join .mj-submit i { display: block; width: 34px; height: 1px; background: currentColor; position: relative; transition: width .45s cubic-bezier(.22,1,.36,1); }
body.ia main #join .mj-submit i::after { content: ''; position: absolute; right: 0; top: -4px; width: 9px; height: 9px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
body.ia main #join .mj-submit:hover { background: transparent !important; color: #F4EFE6 !important; }
body.ia main #join .mj-submit:hover i { width: 64px; }

@media (max-width: 1023px) {
  body.ia #join .mj-join-top { grid-column: 1 / -1; }
  body.ia #join .mj-join-steps { grid-column: 1 / -1; margin-top: 44px; }
  body.ia #join .mj-agenda { grid-template-rows: none; }
  body.ia #join .mj-fs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.ia #join .mj-fs-grid .field--full { grid-column: 1 / -1; }
  body.ia #join .mj-fs-grid .field:has(#mj-role) { grid-column: 1 / -1; }
  body.ia #join .mj-fs-grid .field:has(#mj-asset), body.ia #join .mj-fs-grid .field:has(#mj-ticket) { grid-column: span 1; }
}
@media (max-width: 599px) {
  body.ia #join .mj-fs-grid { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  body.ia #join .mj-fs-grid .field, body.ia #join .mj-fs-grid .field--full { grid-column: 1 / -1 !important; }
  body.ia #join .mj-agenda li { grid-template-columns: 44px minmax(0, 1fr); padding: 20px 0; }
  body.ia #join .mj-agenda b { font-size: 21px; }
  body.ia main #join .mj-submit { padding: 0 22px !important; }
}

/* 13 Nov: no divider lines between form sections; field underlines only */
body.ia #join .mj-fs { border-top: 0 !important; padding: 0 !important; margin: 0 !important; }
body.ia #join .mj-fs + .mj-fs { margin-top: 64px !important; }
body.ia #join .mj-legend { margin-bottom: 28px !important; }
body.ia #join .mj-fs-grid { row-gap: 32px !important; }
body.ia main #join .btn-row { margin-top: 64px !important; padding-top: 0 !important; }
@media (max-width: 760px) { body.ia #join .mj-fs + .mj-fs, body.ia main #join .btn-row { margin-top: 48px !important; } }
body.ia main #join .btn-row { border-top: 0 !important; }

/* READABILITY PASS (25 Nov 2026): the Majlis reads from the shared --rd-* tokens (shell.css). Sizes and colours only. */
html body.ia main .label, html body.ia .mj-collective .label, html body.ia #join .label { font-size: var(--rd-label); color: var(--rd-meta); }
html body.ia .mj-collective .mj-col-copy p { font-size: var(--rd-body); line-height: var(--rd-lh); color: var(--rd-text); }
html body.ia #join .mj-agenda p { font-size: var(--rd-small); color: var(--rd-text); }
html body.ia #join .mj-pledge figcaption { font-size: var(--rd-label); color: var(--rd-meta); }
html body.ia main #join .form-panel .field label { font-size: 14px !important; }
html body.ia main #join .form-panel .small { font-size: 13.5px; }
