/* Selnovar Clubs 2.0 presentation layer */
@import url("clubs-2.css");
:root{font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#eaf2fc;background:#0b1220;font-synthesis:none}*{box-sizing:border-box}body{margin:0}a{color:#a9e5ed;text-decoration:none}a:hover{text-decoration:underline}.shell{max-width:1150px;margin:auto;padding:25px 22px}.top{background:#101b2f;border-bottom:1px solid #27354c}.top-inner{max-width:1150px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:18px 22px;gap:15px;flex-wrap:wrap}.brand{font-weight:850;font-size:21px;letter-spacing:-.5px;color:#fff}.brand span{color:#54d4d6}nav{display:flex;gap:18px;align-items:center;flex-wrap:wrap;font-size:14px}h1{font-size:clamp(29px,4vw,42px);letter-spacing:-1px;margin:17px 0 8px}h2{font-size:21px;margin:0 0 17px}p{color:#a8b9d2;line-height:1.6}.muted,small{color:#91a5bf}.eyebrow{color:#5be3d7;font-weight:700;letter-spacing:1.5px;font-size:12px;text-transform:uppercase}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:22px 0}.card,.panel{background:#142138;border:1px solid #2b3e57;border-radius:17px;padding:22px;box-shadow:0 13px 35px #00000017}.metric{font-size:35px;font-weight:800;margin:10px 0 4px}.panel{margin:20px 0;overflow-x:auto}.button,button{border:0;border-radius:9px;background:#55d6cf;color:#061925;font-size:14px;font-weight:750;padding:11px 16px;cursor:pointer;display:inline-block}.button:hover,button:hover{background:#84ede6;text-decoration:none}.secondary{background:#263954;color:#edf4ff}.secondary:hover{background:#354d70}.danger{background:#432c37;color:#ffe5e5}.header-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}form.stack{display:grid;gap:14px;max-width:620px}label{display:grid;gap:7px;font-size:14px;font-weight:650}input,select{background:#0c1728;border:1px solid #40516a;color:#fff;border-radius:8px;padding:12px;width:100%;font:inherit}input:focus,select:focus{outline:2px solid #5bddd2}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:13px}.flash{background:#183d44;border:1px solid #428b8c;padding:14px 18px;border-radius:10px;color:#d9fff8;margin-top:15px}.error{background:#44252b;border-color:#9c5252;color:#ffe3e3}.table{border-collapse:collapse;width:100%;min-width:540px;text-align:left}.table th,.table td{padding:13px 10px;border-bottom:1px solid #293d57;font-size:14px}.table th{color:#a4b7cb;font-weight:600}.pill{display:inline-block;border-radius:20px;padding:4px 9px;background:#294450;color:#9af2e5;font-size:12px}.hero{padding:50px 0 22px;max-width:810px}.hero p{font-size:18px}.footer{padding-top:30px;font-size:12px;color:#7890ab}.inline{display:inline}.narrow{max-width:700px}.empty{padding:20px;border:1px dashed #465770;border-radius:12px;color:#aebed4}.check{width:auto;accent-color:#55d6cf}.attendance-grid{display:grid;gap:10px}.attendance-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:12px;background:#111c2f;border-radius:10px}.radio-line{display:flex;gap:15px;align-items:center}.radio-line label{display:flex;gap:6px;align-items:center;font-weight:400}.radio-line input{width:auto}@media(max-width:700px){.grid{grid-template-columns:1fr}.twocol{grid-template-columns:1fr}.shell{padding:18px 16px}.top-inner{padding:16px}.attendance-row{align-items:flex-start;flex-direction:column}}

/* v1.1 design system — shared across public, platform and member screens */
:root{color-scheme:dark;background:#0b1322;color:#edf4ff;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}body{background:radial-gradient(ellipse at 85% 0%,#16304477,transparent 45%),#0b1322;min-height:100vh;line-height:1.5}.top{background:#101d30;border-bottom:1px solid #263b52}.top-inner{max-width:1440px;padding:18px 30px}.brand{letter-spacing:-.65px}.shell{max-width:1280px;padding:34px 30px}.narrow{max-width:760px}h1{font-size:clamp(30px,3.5vw,46px);line-height:1.13;letter-spacing:-1.5px;margin:16px 0}h2{font-size:20px;letter-spacing:-.3px}.hero{max-width:900px;padding:72px 0 38px}.hero h1{font-size:clamp(38px,5.3vw,68px);line-height:1.06;max-width:860px}.hero p{max-width:720px;font-size:19px}.hero .button{margin:8px 8px 0 0}.card,.panel{background:linear-gradient(145deg,#17273e,#132035);border-color:#2b4059;border-radius:14px;box-shadow:0 8px 24px #0002}.card{padding:24px}.panel{padding:24px}.metric{font-variant-numeric:tabular-nums;font-size:38px}.button,button{border-radius:8px;min-height:42px;transition:background .15s}.button:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #89f6e6;outline-offset:3px}input,select,textarea{font:inherit;color:inherit;background:#0d192b;border:1px solid #40546e;border-radius:8px;padding:11px 12px;max-width:100%}textarea{width:100%;resize:vertical}input[type=color]{height:48px;padding:5px}input[type=range]{padding:0;accent-color:#55d6cf}.table th{background:#101c2e;color:#b7cbe0}.table tr:hover td{background:#20334b55}.table-wrap{overflow-x:auto}.eyebrow{letter-spacing:1.4px}.empty{background:#101d30}.footer{padding-bottom:25px}@media(max-width:700px){.shell{padding:24px 16px}.top-inner{padding:15px 16px}.hero{padding:35px 0 24px}.card,.panel{padding:17px}nav{gap:12px}.table{min-width:480px}}

/* SELNOVAR CLUBS ICON BRANDING V1 */
a.brand {display:inline-flex;align-items:center;gap:10px;white-space:nowrap;text-decoration:none}
a.brand::before {content:"";display:inline-block;flex:0 0 37px;width:37px;height:37px;background:url('selnovar-icon.png') center / contain no-repeat;vertical-align:middle}
@media(max-width:600px){a.brand{font-size:18px}a.brand::before{flex-basis:31px;width:31px;height:31px}}

/* SC BACKEND LOGO CACHE FIX V2 — use canonical S logo; override legacy icon paths. */
.top .top-inner > a.brand::before,.top a.brand::before,a.brand::before{content:""!important;display:inline-block!important;background-image:url('home/selnovar-s-icon.webp?v=sc-brand-v4')!important;background-position:center!important;background-size:contain!important;background-repeat:no-repeat!important;width:39px!important;height:39px!important;flex:0 0 39px!important;}
@media(max-width:600px){.top .top-inner > a.brand::before,.top a.brand::before,a.brand::before{width:32px!important;height:32px!important;flex-basis:32px!important;}}

/* SC 0be88b45ce79af19a3870aec44c14a50d80de18f40354c6ab0f815b105f17c9c LOGO TRANSPARENT OUTER CORNERS V4 */
.top a.brand::before,.top .top-inner > a.brand::before,a.brand::before{background-image:url('home/selnovar-s-icon.webp?v=sc-brand-v4')!important;background-color:transparent!important;border:0!important;box-shadow:none!important;}

/* SELNOVAR CLUBS INDEX FORMS V2 — Students and Classes only.
   Avoids modifying handlers, CSRF inputs, booking forms and auth screens. */
@supports selector(body:has(input)) {
  body:has(main.shell form input[name="guardian_name"]) main.shell > .panel:has(> form.stack),
  body:has(main.shell form input[name="instructor"][maxlength="120"]) main.shell > .panel:has(> form.stack) {
    box-sizing:border-box;
    width:100%;
    max-width:920px;
    margin:25px 0 28px;
    padding:clamp(22px,2.5vw,34px);
    border-radius:18px;
    background:linear-gradient(145deg,#1a2c43 0%,#15253a 100%);
    border:1px solid #38536b;
    box-shadow:0 14px 36px #06101f3d;
    overflow:visible;
  }
  body:has(main.shell form input[name="guardian_name"]) main.shell > .panel:has(> form.stack) > h2,
  body:has(main.shell form input[name="instructor"][maxlength="120"]) main.shell > .panel:has(> form.stack) > h2 {
    font-size:clamp(21px,2vw,25px);
    line-height:1.25;
    margin:0 0 24px;
    color:#f4faff;
  }
  body:has(main.shell form input[name="guardian_name"]) main.shell > .panel > form.stack,
  body:has(main.shell form input[name="instructor"][maxlength="120"]) main.shell > .panel > form.stack {
    display:grid;
    width:100%;
    max-width:none;
    gap:20px;
    align-items:start;
    grid-template-columns:minmax(0,1fr);
  }
  body:has(main.shell form input[name="guardian_name"]) main.shell > .panel > form.stack > .twocol,
  body:has(main.shell form input[name="instructor"][maxlength="120"]) main.shell > .panel > form.stack > .twocol {
    display:grid;
    width:100%;
    min-width:0;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:start;
    gap:20px;
  }
  body:has(main.shell form input[name="guardian_name"]) main.shell > .panel > form.stack label,
  body:has(main.shell form input[name="instructor"][maxlength="120"]) main.shell > .panel > form.stack label {
    display:grid;
    min-width:0;
    gap:9px;
    font-size:14px;
    font-weight:650;
    color:#e8f3ff;
    line-height:1.4;
  }
  body:has(main.shell form input[name="guardian_name"]) main.shell > .panel > form.stack input:not([type="hidden"]),
  body:has(main.shell form input[name="guardian_name"]) main.shell > .panel > form.stack select,
  body:has(main.shell form input[name="instructor"][maxlength="120"]) main.shell > .panel > form.stack input:not([type="hidden"]),
  body:has(main.shell form input[name="instructor"][maxlength="120"]) main.shell > .panel > form.stack select {
    box-sizing:border-box;
    display:block;
    width:100%;
    max-width:none;
    min-width:0;
    min-height:52px;
    padding:12px 15px;
    border-radius:11px;
    color:#f3f9ff;
    background:#0d1b2e;
    border:1px solid #48627d;
    font-size:15px;
    line-height:1.35;
    box-shadow:none;
  }
  body:has(main.shell form input[name="guardian_name"]) main.shell > .panel > form.stack input::placeholder,
  body:has(main.shell form input[name="instructor"][maxlength="120"]) main.shell > .panel > form.stack input::placeholder {
    color:#a8bdd2;
    opacity:1;
  }
  body:has(main.shell form input[name="guardian_name"]) main.shell > .panel > form.stack :is(input,select):focus-visible,
  body:has(main.shell form input[name="instructor"][maxlength="120"]) main.shell > .panel > form.stack :is(input,select):focus-visible {
    outline:2px solid #70e8db;
    outline-offset:2px;
    border-color:#70e8db;
  }
  body:has(main.shell form input[name="guardian_name"]) main.shell > .panel > form.stack > button,
  body:has(main.shell form input[name="instructor"][maxlength="120"]) main.shell > .panel > form.stack > button {
    justify-self:start;
    width:auto;
    min-width:190px;
    min-height:49px;
    margin-top:4px;
    padding:12px 26px;
    border-radius:10px;
    font-size:15px;
    font-weight:750;
  }
  @media(max-width:700px){
    body:has(main.shell form input[name="guardian_name"]) main.shell > .panel > form.stack > .twocol,
    body:has(main.shell form input[name="instructor"][maxlength="120"]) main.shell > .panel > form.stack > .twocol {
      grid-template-columns:minmax(0,1fr);
      gap:18px;
    }
    body:has(main.shell form input[name="guardian_name"]) main.shell > .panel > form.stack > button,
    body:has(main.shell form input[name="instructor"][maxlength="120"]) main.shell > .panel > form.stack > button {
      width:100%;
    }
  }
}
/* END SELNOVAR CLUBS INDEX FORMS V2 */

/* SELNOVAR CLUBS INDEX FORM ALIGNMENT V3 — only Students and Classes. */
@supports selector(body:has(input)) {
  body:has(main.shell form input[name="guardian_name"]) main.shell > .panel:has(> form.stack),
  body:has(main.shell form input[name="instructor"][maxlength="120"]) main.shell > .panel:has(> form.stack) {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
  }
  @media(max-width: 760px) {
    body:has(main.shell form input[name="guardian_name"]) main.shell > .panel:has(> form.stack),
    body:has(main.shell form input[name="instructor"][maxlength="120"]) main.shell > .panel:has(> form.stack) {
      max-width: 100%;
      margin-left: 0;
      margin-right: 0;
    }
  }
}
/* END SELNOVAR CLUBS INDEX FORM ALIGNMENT V3 */

/* SELNOVAR CLUBS SINGLE HEADER LOGO V1
   Keep the CSS fallback S when the brand link has no image.
   When a real logo image exists, suppress the older pseudo-element icon.
*/
.top .top-inner > a.brand:has(img)::before,
.top a.brand:has(img)::before,
a.brand:has(img)::before {
  content: none !important;
  display: none !important;
  background-image: none !important;
  width: 0 !important;
  height: 0 !important;
  flex: 0 0 0 !important;
}
/* Ensure an accidentally repeated logo image does not create a second badge. */
.top a.brand img + img,
a.brand img.sc-brand-logo ~ img.sc-brand-logo {display:none !important;}
.top a.brand img.sc-brand-logo {display:block; flex:none; width:40px; height:40px; object-fit:contain; border-radius:9px;}
@media (max-width:600px){.top a.brand img.sc-brand-logo{width:32px;height:32px;}}

/* SELNOVAR CLUBS INDEX EQUAL PANELS V6
   Students + Classes only: give form and list/table cards identical width/edges.
   No change to forms, data, handler logic or workspace dashboard. */
@supports selector(body:has(form)) {
  @media (min-width: 761px) {
    body:has(main.shell form input[name="guardian_name"]) main.shell > .panel,
    body:has(main.shell form input[name="instructor"][maxlength="120"]) main.shell > .panel {
      box-sizing: border-box;
      width: 100%;
      max-width: 1120px;
      margin-left: auto;
      margin-right: auto;
    }
  }
  @media (max-width: 760px) {
    body:has(main.shell form input[name="guardian_name"]) main.shell > .panel,
    body:has(main.shell form input[name="instructor"][maxlength="120"]) main.shell > .panel {
      box-sizing: border-box;
      width: 100%;
      max-width: 100%;
      margin-left: 0;
      margin-right: 0;
    }
  }
}
/* END SELNOVAR CLUBS INDEX EQUAL PANELS V6 */


/* SELNOVAR CLUBS CREATE CLUB CONTRAST V1: public header CTA readable on turquoise */
header.top nav a.button[href*='register'],
header.top nav a.button[href='/register'],
header.top nav a.button[href$='register'] {
  background-color: #55d6cf;
  color: #061925 !important;
  font-weight: 800;
  -webkit-text-fill-color: #061925;
}
header.top nav a.button[href*='register']:hover,
header.top nav a.button[href$='register']:hover {
  background-color: #84ede6;
  color: #061925 !important;
}
