/*
Theme Name: Studio Texas
Theme URI: https://studiotexas.org
Author: Studio Texas
Description: Custom classic theme for studiotexas.org. Each page is a hand-authored, style-scoped template ported from the pre-WordPress Showit embeds; page styles live inside each template, so this stylesheet only carries the shared chrome (header/footer).
Version: 0.9.0
Requires PHP: 8.0
License: Proprietary
Text Domain: studio-texas
*/

/* ==================================================================
   Site-wide chrome. Brand tokens (from the Showit theme):
   navy #182647 · gold #CBB261 · amber #9c6a08 · slate #46617D ·
   cream #F4F3F0 · muted-on-navy #B9C4D6
   ================================================================== */

/* montserrat */
@font-face {
  font-display: swap;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/montserrat/montserrat-v31-latin-regular.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  src: url("fonts/montserrat/montserrat-v31-latin-500.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  src: url("fonts/montserrat/montserrat-v31-latin-600.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/montserrat/montserrat-v31-latin-700.woff2") format("woff2");
}

/* playfair-display */
@font-face {
  font-display: swap;
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/playfair-display/playfair-display-v40-latin-regular.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  src: url("fonts/playfair-display/playfair-display-v40-latin-italic.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500;
  src: url("fonts/playfair-display/playfair-display-v40-latin-500.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 500;
  src: url("fonts/playfair-display/playfair-display-v40-latin-500italic.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  src: url("fonts/playfair-display/playfair-display-v40-latin-600.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 600;
  src: url("fonts/playfair-display/playfair-display-v40-latin-600italic.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/playfair-display/playfair-display-v40-latin-700.woff2") format("woff2");
}

/* lato */
@font-face {
  font-display: swap;
  font-family: "Lato";
  font-style: normal;
  font-weight: 300;
  src: url("fonts/lato/lato-v25-latin-300.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/lato/lato-v25-latin-regular.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/lato/lato-v25-latin-700.woff2") format("woff2");
}

@layer reset {
  body {
    margin: 0;
    background: #F4F3F0;
  }
}

@layer base {
  :root {
    --navy: #182647;
    --gold: #CBB261;
    --golddk: #9c6a08;
    --ink: #2b3040;
    --muted: #5d6473;
    --faint: #89A1BB;
    --paper: #F4F3F0;
    --cream: #F4F3F0; /* alias used by events pages */
    --green: #5f8a4e;
    --slate: #46617D; /* home + both events pages */
    --line: rgba(24, 38, 71, .12);
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  }
}

/* ---------------- Header ---------------- */

/* "Gilded Edge" (client-approved, Aug 2026): the flat navy gains a soft
   light source behind the logo and a gentle vertical gradient, and the
   header closes with a gilded hairline that brightens toward the center -
   the edge of a frame. */
.stxh {
  background:
    radial-gradient(90% 160% at 18% 0%, rgba(58, 76, 124, .55), rgba(0, 0, 0, 0) 55%),
    linear-gradient(175deg, #1c2c54 0%, #182647 55%, #141f3c 100%);
  font-family: Montserrat, Helvetica, Arial, sans-serif;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg,
    rgba(203, 178, 97, .05), #CBB261 30%, #f0dfa6 50%, #CBB261 70%,
    rgba(203, 178, 97, .05)) 1;
}

/* Thin utility strip: quiet actions live here so the main bar stays calm. */
.stxh-top {
  background: rgba(0, 0, 0, .28);
  border-bottom: 1px solid rgba(203, 178, 97, .14);
}

.stxh-topbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.stxh-topbar a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #B9C4D6;
  transition: color .2s ease;
}

.stxh-topbar a:hover { color: #CBB261; }

/* Signed-out visitors get a sign-in PROMPT here rather than a bare link.
   Most Studio Texas members have never had a website account, so the strip
   says what signing in is for and gives them an obvious button (client,
   Aug 2026). The main bar has no room for this - measured. */
.stxh-signin-hint {
  font-size: 11.5px;
  letter-spacing: .03em;
  color: #B9C4D6;
  text-transform: none;
}

.stxh-topbar .stxh-signin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  border: 1.5px solid rgba(203, 178, 97, .6);
  border-radius: 999px;
  color: #CBB261;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.stxh-topbar .stxh-signin:hover {
  background: rgba(203, 178, 97, .18);
  border-color: #CBB261;
  color: #F4F3F0;
}

.stxh-topbar .stxh-signin svg { width: 13px; height: 13px; flex: none; }

.stxh-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px clamp(20px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.stxh-logo { display: block; line-height: 0; position: relative; }

/* soft gold light behind the mark */
.stxh-logo::before {
  content: "";
  position: absolute;
  inset: -10px -30px;
  background: radial-gradient(50% 60% at 50% 45%, rgba(203, 178, 97, .16), rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.stxh-logo img {
  /* The PNG carries transparent bands above and below the artwork (content
     spans roughly y 60-315 of the 400px square). Render tall and pull the
     empty bands back in so the VISIBLE mark matches the old Showit header
     without inflating the bar height. */
  height: 180px;
  width: auto;
  display: block;
  margin: -27px 0 -38px;
}

.stxh-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(16px, 2.2vw, 32px);
}

/* Desktop: utility links render in the strip, not the menu. */
.stxh-nav .stxh-util { display: none; }

.stxh-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #F4F3F0;
  padding: 6px 0;
  position: relative;
  transition: color .2s ease;
}

/* The underline is a small hand-drawn brushstroke that paints itself in on
   hover and stays put on the current page. Kept as a bare `a::after` rule:
   piling :not() onto the creation rule out-specifies the hover/current rules
   below and the stroke never shows. The pill and login buttons opt out
   explicitly instead - they carry their own shapes. */
.stxh-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 7px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10" preserveAspectRatio="none"><path d="M2 7 Q 18 3 38 5.5 T 72 4.5 T 98 5.5" fill="none" stroke="%23CBB261" stroke-width="2.6" stroke-linecap="round" opacity=".95"/></svg>') no-repeat center / 100% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.stxh-nav .stxh-member::after,
.stxh-nav .stxh-login::after { content: none; }

.stxh-nav a:hover { color: #E9DCB0; }

.stxh-nav a:hover::after,
.stxh-nav a[aria-current="page"]::after { transform: scaleX(1); }

.stxh-nav a[aria-current="page"] { color: #E9DCB0; }

.stxh-nav .stxh-member {
  background: #CBB261;
  color: #182647;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  transition: filter .2s ease;
}

.stxh-nav .stxh-member:hover { color: #182647; filter: brightness(1.06); }

/* Mobile-only: on desktop the sign-in prompt lives in the strip above, so this
   copy stays hidden (see .stxh-signin). In the hamburger menu it becomes a
   full-width button with a person icon - the same "this is how you sign in"
   signal, for the people most likely to need it. */
.stxh-nav .stxh-login {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(203, 178, 97, .55);
  border-radius: 999px;
  padding: 11px 20px;
  color: #F4F3F0;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.stxh-nav .stxh-login:hover {
  background: rgba(203, 178, 97, .16);
  border-color: #CBB261;
  color: #CBB261;
}

.stxh-nav .stxh-login svg { width: 15px; height: 15px; flex: none; }

/* Hamburger (hidden on desktop) */
.stxh-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.stxh-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #F4F3F0;
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

.stxh.is-open .stxh-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.stxh.is-open .stxh-toggle span:nth-child(2) { opacity: 0; }
.stxh.is-open .stxh-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 1279, not 1023: measured 2026-08-06. The logo (180px, sized to match the old
   Showit header) plus six primary links plus the member pill need ~1222px, so
   under ~1210px the nav wrapped to a second row beneath the logo. Switching at
   1279 leaves real headroom for font-rendering differences between machines.
   If a nav item is ever added or renamed, RE-MEASURE - do not assume it fits. */
@media (max-width: 1279px) {
  /* The strip collapses into the menu on mobile. */
  .stxh-top { display: none; }
  .stxh-nav .stxh-util { display: block; }

  .stxh-logo img { height: 100px; margin: -15px 0 -21px; }

  .stxh-toggle { display: block; }

  .stxh-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 10px;
  }

  .stxh.is-open .stxh-nav { display: flex; }

  .stxh-nav a {
    font-size: 13px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(244,243,240,.12);
  }

  .stxh-nav a[aria-current="page"] { border-bottom-color: #CBB261; }

  /* the brushstroke underline is a desktop affordance; the menu rows above
     mark the current page with their gold separator instead */
  .stxh-nav a::after { display: none; }

  .stxh-nav .stxh-login {
    display: inline-flex;
    margin-top: 16px;
    justify-content: center;
    padding: 14px 22px;
  }

  .stxh-nav .stxh-member {
    margin-top: 10px;
    text-align: center;
    padding: 14px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stxh-nav a::after { transition: none; }
}

/* ---------------- Footer ---------------- */

.stxf {
  background: #182647;
  font-family: Montserrat, Helvetica, Arial, sans-serif;
  color: #B9C4D6;
}

.stxf-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) clamp(20px, 4vw, 40px) 34px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.stxf-heading {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #CBB261;
}

.stxf-links {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 28px;
}

.stxf-links li { margin: 0 0 12px; break-inside: avoid; }

.stxf-links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #F4F3F0;
}

.stxf-links a:hover { color: #CBB261; }

.stxf-brand { text-align: center; }

.stxf-brand img {
  width: 190px;
  height: auto;
  display: block;
  margin: 0 auto 18px;
}

.stxf-social {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.stxf-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(244,243,240,.25);
  border-radius: 50%;
  color: #F4F3F0;
  transition: color .2s ease, border-color .2s ease;
}

.stxf-social a:hover { color: #CBB261; border-color: #CBB261; }

.stxf-social svg { width: 15px; height: 15px; fill: currentColor; }

.stxf-contact p {
  margin: 0 0 13px;
  font-size: 13px;
  line-height: 1.55;
}

.stxf-contact a {
  color: #F4F3F0;
  text-decoration: none;
}

.stxf-contact a:hover { color: #CBB261; }

.stxf-newsletter {
  display: inline-block;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1.5px solid #CBB261;
  border-radius: 999px;
  padding: 10px 20px;
  color: #CBB261 !important;
}

.stxf-newsletter:hover {
  background: #CBB261;
  color: #182647 !important;
}

.stxf-legal {
  border-top: 1px solid rgba(244,243,240,.12);
}

.stxf-legal p {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px clamp(20px, 4vw, 40px);
  font-size: 11px;
  letter-spacing: .06em;
  text-align: center;
  color: #8fa0b8;
}

@media (max-width: 860px) {
  .stxf-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .stxf-links { columns: 2; text-align: left; max-width: 340px; margin: 0 auto; }

  .stxf-brand { order: -1; }
}

/* ==================================================================
   Member area — sign-in (.stxlg-) and account page (.stxm-)
   ================================================================== */

#stx-login, #stx-members {
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #2b3040;
  background: #F4F3F0;
}

#stx-login *, #stx-members *,
#stx-login *::before, #stx-members *::before { box-sizing: border-box; }

#stx-login h1, #stx-members h1,
#stx-login h2, #stx-members h2,
#stx-members h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: #182647;
}

#stx-login em, #stx-members em { font-style: italic; color: #46617D; }

.stxlg-eyebrow, .stxm-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #9c6a08;
}

.stxlg-rule, .stxm-rule {
  width: 64px; height: 3px; margin: 22px 0 20px;
  border: 0; background: #CBB261;
}

/* ---- Sign-in ---- */

.stxlg-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 80px) clamp(20px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.stxlg-card {
  background: #fff;
  border: 1px solid rgba(24,38,71,.12);
  border-radius: 12px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 1px 2px rgba(24,38,71,.06), 0 14px 34px -18px rgba(24,38,71,.45);
}

.stxlg-card h1 { margin: 0; font-size: clamp(28px, 5vw, 40px); line-height: 1.08; }
.stxlg-intro { margin: 0 0 24px; font-size: 15px; color: #5d6473; line-height: 1.6; }

.stxlg-error {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(179,38,30,.08);
  border: 1px solid rgba(179,38,30,.25);
  color: #b3261e;
  font-size: 14px;
}

.stxlg-success {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(95,138,78,.1);
  border: 1px solid rgba(95,138,78,.3);
  color: #3d6231;
  font-size: 14px;
}

.stxlg-hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: #9aa0ad; }

#stx-login .login-username,
#stx-login .login-password { margin: 0 0 16px; }

#stx-login label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #46617D;
}

#stx-login input[type="text"],
#stx-login input[type="password"] {
  width: 100%;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 15px;
  color: #2b3040;
  background: #fff;
  border: 1px solid rgba(24,38,71,.22);
  border-radius: 8px;
}

#stx-login input[type="text"]:focus,
#stx-login input[type="password"]:focus {
  outline: 2px solid #CBB261;
  outline-offset: 1px;
  border-color: #CBB261;
}

#stx-login .login-remember { margin: 4px 0 22px; font-size: 14px; color: #5d6473; }
#stx-login .login-remember label {
  display: flex; align-items: center; gap: 8px;
  text-transform: none; letter-spacing: normal;
  font-size: 14px; font-weight: 500; color: #5d6473;
}

#stx-login .login-submit input[type="submit"] {
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #182647;
  background: #CBB261;
  border: 0;
  border-radius: 999px;
  padding: 15px 28px;
  transition: filter .2s ease;
}

#stx-login .login-submit input[type="submit"]:hover { filter: brightness(1.06); }

.stxlg-links { margin: 18px 0 0; font-size: 14px; }
.stxlg-links a { color: #46617D; }

.stxlg-aside { padding: clamp(20px, 3vw, 32px) 0 0; }
.stxlg-aside h2 { margin: 0 0 10px; font-size: 22px; }
.stxlg-aside p { margin: 0 0 18px; font-size: 15px; color: #5d6473; line-height: 1.6; }

.stxlg-btn {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none;
  padding: 14px 28px; border-radius: 999px;
  background: #182647; color: #F4F3F0;
}

.stxlg-note { margin-top: 20px !important; font-size: 13.5px !important; }

@media (max-width: 820px) {
  .stxlg-wrap { grid-template-columns: 1fr; }
  .stxlg-aside {
    border-top: 1px solid rgba(24,38,71,.12);
    padding-top: 28px;
  }
}

/* ---- Member account page ---- */

.stxm-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 80px) clamp(20px, 5vw, 56px);
}

.stxm-head h1 { margin: 0; font-size: clamp(30px, 6vw, 46px); line-height: 1.06; }

.stxm-status {
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 44px;
  border: 1px solid rgba(24,38,71,.12);
  background: #fff;
}

.stxm-status.is-active { border-left: 4px solid #5f8a4e; }
.stxm-status.is-inactive { border-left: 4px solid #B57C00; }

.stxm-statusline { margin: 0 0 6px; font-size: 15px; color: #182647; }
.stxm-statusnote { margin: 0; font-size: 14px; color: #5d6473; line-height: 1.6; }
.stxm-statusnote a { color: #46617D; }

.stxm-h2 { margin: 0 0 22px; font-size: 26px; }

.stxm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}

.stxm-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(24,38,71,.12);
  border-radius: 10px;
  padding: 26px 26px 22px;
  box-shadow: 0 1px 2px rgba(24,38,71,.06), 0 14px 34px -18px rgba(24,38,71,.45);
}

.stxm-badge {
  align-self: flex-start;
  font-size: 10.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase;
  color: #182647; background: #CBB261;
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 14px;
}

.stxm-card h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.25; }
.stxm-card p { margin: 0 0 18px; font-size: 14px; color: #5d6473; line-height: 1.6; }

.stxm-cardlink {
  margin-top: auto;
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none;
  color: #46617D;
  border-bottom: 1.5px solid #CBB261;
  padding-bottom: 3px;
  align-self: flex-start;
}

.stxm-foot {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(24,38,71,.12);
  font-size: 14px;
  color: #5d6473;
}

.stxm-foot a { color: #46617D; }
.stxm-signout { font-weight: 600; }
.stxm-footsep { margin: 0 10px; opacity: .5; }

/* ==================================================================
   Board — member roster (.stxb-)
   ================================================================== */

#stx-board {
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #2b3040;
  background: #F4F3F0;
}

#stx-board *, #stx-board *::before, #stx-board *::after { box-sizing: border-box; }

.stxb-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 80px) clamp(20px, 5vw, 56px);
}

.stxb-eyebrow {
  margin: 0 0 14px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: #9c6a08;
}

#stx-board h1 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600; color: #182647;
  font-size: clamp(30px, 6vw, 46px); line-height: 1.06;
}

#stx-board h1 em { font-style: italic; color: #46617D; }

.stxb-rule { width: 64px; height: 3px; margin: 22px 0 20px; border: 0; background: #CBB261; }

.stxb-intro { margin: 0 0 34px; font-size: 15px; color: #5d6473; line-height: 1.6; max-width: 620px; }

.stxb-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}

.stxb-stat {
  background: #fff;
  border: 1px solid rgba(24,38,71,.12);
  border-radius: 10px;
  padding: 20px 24px;
}

.stxb-statnum {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px; font-weight: 600; color: #182647;
}

.stxb-statlabel {
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: #9c6a08;
}

.stxb-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

#stxb-search {
  flex: 1 1 240px;
  padding: 12px 14px;
  font-family: inherit; font-size: 14px;
  border: 1px solid rgba(24,38,71,.22);
  border-radius: 8px;
  background: #fff;
}

#stxb-search:focus { outline: 2px solid #CBB261; outline-offset: 1px; border-color: #CBB261; }

.stxb-filters { display: flex; gap: 8px; flex-wrap: wrap; }

.stxb-chip {
  cursor: pointer;
  font-family: inherit;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: #46617D; background: transparent;
  border: 1px solid rgba(24,38,71,.15);
  border-radius: 999px;
  padding: 9px 15px;
}

.stxb-chip.is-active { color: #fff; background: #182647; border-color: #182647; }

.stxb-export {
  cursor: pointer;
  font-family: inherit;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: #182647; background: #CBB261;
  border: 0; border-radius: 999px;
  padding: 11px 20px;
}

.stxb-tablewrap {
  background: #fff;
  border: 1px solid rgba(24,38,71,.12);
  border-radius: 10px;
  overflow-x: auto;
  box-shadow: 0 1px 2px rgba(24,38,71,.06), 0 14px 34px -18px rgba(24,38,71,.45);
}

.stxb-table { width: 100%; border-collapse: collapse; min-width: 640px; }

.stxb-table th {
  text-align: left;
  font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: #46617D;
  padding: 14px 18px;
  border-bottom: 2px solid rgba(24,38,71,.12);
  background: #faf9f6;
}

.stxb-table td {
  padding: 13px 18px;
  font-size: 14px;
  border-bottom: 1px solid rgba(24,38,71,.08);
  color: #2b3040;
}

.stxb-table tbody tr:last-child td { border-bottom: 0; }
.stxb-table tbody tr:hover td { background: #faf9f6; }

.stxb-table a { color: #46617D; text-decoration: none; }
.stxb-table a:hover { text-decoration: underline; }

.stxb-boardtag {
  display: inline-block;
  margin-left: 8px;
  font-size: 9.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: #182647; background: rgba(203,178,97,.35);
  border-radius: 999px;
  padding: 3px 8px;
  vertical-align: 1px;
}

.stxb-badge {
  display: inline-block;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 11px;
}

.stxb-badge.is-active { color: #3d6231; background: rgba(95,138,78,.14); }
.stxb-badge.is-soon   { color: #8a5f00; background: rgba(181,124,0,.14); }
.stxb-badge.is-lapsed { color: #b3261e; background: rgba(179,38,30,.1); }

.stxb-lifetime { color: #5d6473; font-style: italic; }

/* Secondary section heading on a board page (e.g. "Board & staff access"). */
.stxb-h2 {
  margin: 44px 0 6px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: #182647;
  font-size: 23px;
}

.stxb-note { margin: 0 0 16px; font-size: 13.5px; color: #5d6473; line-height: 1.6; max-width: 620px; }

/* ------------------------------------------------------------------
   Roster inline editing (officers + administrators)
   ------------------------------------------------------------------ */

.stxb-edit {
  font-family: Montserrat, sans-serif;
  font-size: 13.5px;
  color: #2b3040;
  background: #fbfbfa;
  border: 1px solid rgba(24,38,71,.12);
  border-radius: 8px;
  padding: 7px 9px;
  max-width: 100%;
}

.stxb-edit:focus {
  outline: none;
  background: #fff;
  border-color: #46617D;
  box-shadow: 0 0 0 3px rgba(70,97,125,.15);
}

/* An edited-but-unsaved field is visibly distinct from a stored one. */
.stxb-edit.is-dirty { border-color: #B57C00; background: #fffdf6; }

.stxb-savebar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 18px 0 0; }

.stxb-save {
  font-family: Montserrat, sans-serif;
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 14px 30px; border-radius: 999px; cursor: pointer;
  background: #CBB261; color: #182647; border: 1.5px solid #CBB261;
  transition: background-color .25s ease, opacity .2s ease;
}
.stxb-save:hover:not([disabled]) { background: #d8c078; border-color: #d8c078; }
.stxb-save[disabled] { opacity: .45; cursor: default; }

.stxb-savehint { font-size: 13px; color: #5d6473; }

.stxb-saved {
  margin: 0 0 18px;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 13.5px; font-weight: 600;
  color: #3d6231; background: rgba(95,138,78,.14);
}

.stxb-empty { padding: 32px; text-align: center; color: #5d6473; margin: 0; }

.stxb-foot {
  margin-top: 30px;
  font-size: 13.5px;
  color: #5d6473;
  line-height: 1.6;
}

.stxb-foot a { color: #46617D; }
.stxb-signout { font-weight: 600; }
.stxb-footsep { margin: 0 10px; opacity: .5; }

/* ------------------------------------------------------------------
   Board — volunteer applications (.stxvol-), shares .stxb- chrome
   ------------------------------------------------------------------ */

.stxvol-phone { display: block; margin-top: 3px; font-size: 12.5px; color: #5d6473; }

.stxvol-tags { display: flex; flex-wrap: wrap; gap: 5px; max-width: 320px; }

.stxvol-tag {
  display: inline-block;
  font-size: 11px; line-height: 1.35;
  color: #182647; background: rgba(70,97,125,.1);
  border-radius: 999px;
  padding: 4px 10px;
}

/* Long messages must not stretch the row; the full text is in the CSV
   export and the emailed copy. */
.stxvol-notes {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 280px;
  font-size: 13px;
  color: #5d6473;
}

/* ==================================================================
   Artist Studio (.stxs-)
   ================================================================== */

#stx-studio {
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #2b3040;
  background: #F4F3F0;
}

#stx-studio *, #stx-studio *::before, #stx-studio *::after { box-sizing: border-box; }

.stxs-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 80px) clamp(20px, 5vw, 56px);
}

.stxs-eyebrow {
  margin: 0 0 14px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: #9c6a08;
}

#stx-studio h1 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600; color: #182647;
  font-size: clamp(30px, 6vw, 46px); line-height: 1.06;
}

#stx-studio h1 em { font-style: italic; color: #46617D; }

.stxs-rule { width: 64px; height: 3px; margin: 22px 0 20px; border: 0; background: #CBB261; }

.stxs-intro { margin: 0 0 34px; font-size: 15px; color: #5d6473; line-height: 1.6; max-width: 620px; }

.stxs-notice {
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 30px;
  font-size: 14.5px;
  border: 1px solid rgba(24,38,71,.12);
  background: #fff;
}

.stxs-notice.is-ok  { border-left: 4px solid #5f8a4e; }
.stxs-notice.is-err { border-left: 4px solid #b3261e; }

.stxs-h2 {
  margin: 0 0 20px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600; color: #182647;
  font-size: 26px;
}

.stxs-h3 {
  margin: 34px 0 14px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600; color: #182647;
  font-size: 20px;
}

.stxs-count {
  font-family: Montserrat, sans-serif;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: #9c6a08;
  margin-left: 10px;
  vertical-align: 3px;
}

.stxs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 24px;
  margin-bottom: 44px;
}

.stxs-work {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(24,38,71,.12);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(24,38,71,.06), 0 14px 34px -18px rgba(24,38,71,.45);
}

.stxs-workimg { position: relative; aspect-ratio: 4 / 3; background: #e8e6e0; }
.stxs-workimg img { width: 100%; height: 100%; object-fit: cover; display: block; }

.stxs-salebadge {
  position: absolute; top: 10px; left: 10px;
  font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: #182647; background: #CBB261;
  padding: 5px 10px; border-radius: 999px;
}

.stxs-work figcaption { padding: 14px 16px 4px; }
.stxs-work figcaption strong { display: block; font-size: 15px; color: #182647; }
.stxs-workmeta { display: block; margin-top: 3px; font-size: 12.5px; color: #5d6473; }

.stxs-work form { padding: 8px 16px 14px; margin: 0; }

.stxs-remove {
  cursor: pointer;
  font-family: inherit;
  font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: #b3261e; background: transparent;
  border: 0; padding: 0;
  border-bottom: 1px solid rgba(179,38,30,.4);
}

.stxs-emptynote { margin: 0 0 36px; font-size: 14.5px; color: #5d6473; }

.stxs-panel {
  background: #fff;
  border: 1px solid rgba(24,38,71,.12);
  border-radius: 12px;
  padding: clamp(22px, 4vw, 36px);
  margin-bottom: 34px;
  box-shadow: 0 1px 2px rgba(24,38,71,.06), 0 14px 34px -18px rgba(24,38,71,.45);
}

.stxs-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 18px;
}

.stxs-field { display: flex; flex-direction: column; gap: 7px; }
.stxs-field--full { grid-column: 1 / -1; }

.stxs-field span {
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: #46617D;
}

.stxs-field span em { font-style: normal; text-transform: none; letter-spacing: 0; color: #9aa0ad; font-weight: 500; }

.stxs-field input[type="text"], .stxs-field select, .stxs-field textarea {
  font-family: inherit; font-size: 14.5px;
  padding: 12px 14px;
  border: 1px solid rgba(24,38,71,.22);
  border-radius: 8px;
  background: #fff;
  color: #2b3040;
  width: 100%;
}

.stxs-field input:focus, .stxs-field select:focus, .stxs-field textarea:focus {
  outline: 2px solid #CBB261; outline-offset: 1px; border-color: #CBB261;
}

.stxs-field input[type="file"] { font-size: 13.5px; color: #5d6473; }

.stxs-salefields { grid-column: 1 / -1; display: grid; gap: 14px; }

.stxs-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: #2b3040; cursor: pointer;
}

.stxs-check input { margin-top: 2px; accent-color: #182647; }

.stxs-pricefield { max-width: 240px; }

.stxs-finenote { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: #9aa0ad; line-height: 1.6; }

.stxs-btn {
  grid-column: 1 / -1;
  justify-self: start;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: #F4F3F0; background: #182647;
  border: 0; border-radius: 999px;
  padding: 14px 30px;
}

.stxs-workpick { grid-column: 1 / -1; border: 1px solid rgba(24,38,71,.15); border-radius: 10px; padding: 16px 18px; margin: 0; }

.stxs-workpick legend {
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: #46617D; padding: 0 6px;
}

.stxs-workpick legend em { font-style: normal; text-transform: none; letter-spacing: 0; color: #9aa0ad; font-weight: 500; }

.stxs-workpick .stxs-check { margin: 8px 0; }

.stxs-entries { list-style: none; margin: 0; padding: 0; }

.stxs-entries li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(24,38,71,.08);
  font-size: 14.5px;
}

.stxs-entries li:last-child { border-bottom: 0; }
.stxs-entries strong { color: #182647; }
.stxs-entrymeta { font-size: 13px; color: #5d6473; }

.stxs-entrybadge {
  margin-left: auto;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: #3d6231; background: rgba(95,138,78,.14);
  border-radius: 999px;
  padding: 5px 11px;
}

.stxs-foot {
  margin-top: 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(24,38,71,.12);
  font-size: 14px;
  color: #5d6473;
}

.stxs-foot a { color: #46617D; }
.stxs-signout { font-weight: 600; }
.stxs-footsep { margin: 0 10px; opacity: .5; }

/* ==================================================================
   Board — artist submissions (.stxsub-), shares .stxb- chrome
   ================================================================== */

.stxsub-h2 {
  margin: 40px 0 18px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600; color: #182647;
  font-size: 26px;
}

.stxsub-entry {
  background: #fff;
  border: 1px solid rgba(24,38,71,.12);
  border-radius: 10px;
  padding: 22px 26px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(24,38,71,.06), 0 14px 34px -18px rgba(24,38,71,.45);
}

.stxsub-entry h3 {
  margin: 0 0 4px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600; color: #182647;
  font-size: 19px;
}

.stxsub-entrymeta { margin: 0 0 4px; font-size: 13.5px; color: #5d6473; }
.stxsub-entrymeta a { color: #46617D; }

.stxsub-statement {
  margin: 12px 0;
  padding: 10px 16px;
  border-left: 3px solid #CBB261;
  font-size: 14px; font-style: italic;
  color: #5d6473; line-height: 1.6;
}

.stxsub-works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
  gap: 16px;
  margin-top: 14px;
}

.stxsub-works figure { margin: 0; }

.stxsub-works img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 8px; display: block;
  border: 1px solid rgba(24,38,71,.12);
}

.stxsub-works figcaption { padding-top: 8px; font-size: 13px; }
.stxsub-works figcaption strong { display: block; color: #182647; }
.stxsub-works figcaption span { color: #5d6473; font-size: 12.5px; }

.stxsub-works--sale {
  background: #fff;
  border: 1px solid rgba(24,38,71,.12);
  border-radius: 10px;
  padding: 22px 26px;
}

/* ==================================================================
   Membership card (.stxmc-) + member profile row
   ================================================================== */

.stxm-cardrow {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 48px;
}

@media (max-width: 760px) {
  .stxm-cardrow { grid-template-columns: 1fr; }
}

.stxmc {
  aspect-ratio: 1.586;           /* real wallet-card proportions */
  border-radius: 16px;
  padding: clamp(18px, 3vw, 26px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #F4F3F0;
  background: linear-gradient(135deg, #182647 0%, #24365c 55%, #2e4166 100%);
  border: 1px solid rgba(24,38,71,.25);
  box-shadow: 0 2px 4px rgba(24,38,71,.15), 0 18px 40px -18px rgba(24,38,71,.55);
  position: relative;
  overflow: hidden;
}

/* Soft sheen across every card. */
.stxmc::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 85% -10%, rgba(255,255,255,.14), transparent 55%);
  pointer-events: none;
}

/* General - navy with dusty blue trim. */
.stxmc--general { border-color: #46617D; }
.stxmc--general .stxmc-group { color: #9db4cc; }

/* Sustaining - navy deepening toward amber trim. */
.stxmc--sustaining {
  background: linear-gradient(135deg, #14203c 0%, #253356 55%, #3d3a51 100%);
  border-color: #B57C00;
}
.stxmc--sustaining .stxmc-group { color: #e3b355; }
.stxmc--sustaining .stxmc-brand em { color: #e3b355; }

/* Elite Circle - the prestige card: near-black navy, gold edge, gold type. */
.stxmc--elite {
  background: linear-gradient(135deg, #0d1526 0%, #182647 60%, #2a2413 100%);
  border: 1.5px solid #CBB261;
  box-shadow: 0 2px 4px rgba(24,38,71,.2), 0 18px 44px -16px rgba(90,72,20,.6);
}
.stxmc--elite .stxmc-group { color: #CBB261; letter-spacing: .24em; }
.stxmc--elite .stxmc-brand em { color: #CBB261; }
.stxmc--elite .stxmc-who span { color: #d9c98f; }

.stxmc.is-lapsed { filter: grayscale(.55); opacity: .8; }

.stxmc-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.stxmc-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: clamp(15px, 2.4vw, 19px);
  letter-spacing: .04em;
}

.stxmc-brand em { font-style: italic; color: #9db4cc; }

.stxmc-group {
  font-size: 9.5px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  white-space: nowrap;
}

.stxmc-id { display: flex; align-items: center; gap: 14px; }

.stxmc-photo img {
  width: clamp(52px, 8vw, 64px);
  height: clamp(52px, 8vw, 64px);
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(244,243,240,.35);
}

.stxmc-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.stxmc-who strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: clamp(16px, 2.6vw, 21px);
  line-height: 1.15;
}

.stxmc-who span {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: #9db4cc;
}

.stxmc-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(244,243,240,.75);
}

/* Photo panel next to the card. */
.stxm-profile h2 { margin-top: 0; }

.stxm-profilenote { margin: 0 0 16px; font-size: 14px; color: #5d6473; line-height: 1.6; }

.stxm-profile input[type="file"] { font-size: 13.5px; color: #5d6473; display: block; margin-bottom: 16px; }

.stxm-profilebtns { display: flex; gap: 12px; flex-wrap: wrap; }

.stxm-btn {
  cursor: pointer;
  font-family: inherit;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: #F4F3F0; background: #182647;
  border: 0; border-radius: 999px;
  padding: 12px 24px;
}

.stxm-btn--quiet {
  color: #b3261e; background: transparent;
  border: 1px solid rgba(179,38,30,.35);
}

.stxm-notice {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  border: 1px solid rgba(24,38,71,.12);
  background: #fff;
}

.stxm-notice.is-ok  { border-left: 4px solid #5f8a4e; }
.stxm-notice.is-err { border-left: 4px solid #b3261e; }

/* Sign-in email panel. */
.stxm-account {
  background: #fff;
  border: 1px solid rgba(24,38,71,.12);
  border-radius: 10px;
  padding: clamp(20px, 3vw, 28px);
  margin: 0 0 44px;
  max-width: 620px;
}

.stxm-account .stxm-profilenote { margin-bottom: 20px; }
.stxm-account .stxm-profilenote strong { color: #182647; }

/* Name / email / password, hairline-separated inside the one panel. */
.stxm-acctblock + .stxm-acctblock {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(24,38,71,.12);
}

.stxm-h3 {
  margin: 0 0 8px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  color: #182647;
}

/* Sections with an intro line get their spacing from it; the password block
   has none, so give the form the same breathing room under the heading. */
.stxm-h3 + .stxm-form { margin-top: 18px; }

/* First and last name sit side by side until there isn't room. */
.stxm-fieldrow {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 380px;
}

.stxm-fieldrow .stxm-field { flex: 1 1 150px; }

/* On a phone the two name fields get a line each rather than two cramped
   half-width boxes. */
@media (max-width: 480px) {
  .stxm-fieldrow { flex-direction: column; gap: 16px; }
}

.stxm-pending {
  background: #F7F6F3;
  border-left: 4px solid #CBB261;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0 0 22px;
}

.stxm-pending p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: #2b3040; }

.stxm-form { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

.stxm-field { display: block; width: 100%; max-width: 380px; }

.stxm-field span {
  display: block;
  margin-bottom: 6px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: #5d6473;
}

.stxm-field input {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 15px;
  color: #2b3040;
  padding: 11px 14px;
  border: 1px solid rgba(24,38,71,.22);
  border-radius: 8px;
  background: #fff;
}

.stxm-field input:focus {
  outline: 2px solid #CBB261;
  outline-offset: 1px;
  border-color: transparent;
}

.stxm-accounthelp { margin: 22px 0 0; font-size: 13px; }

/* Events attended. */
.stxm-events {
  list-style: none;
  margin: 0 0 44px; padding: 0;
  background: #fff;
  border: 1px solid rgba(24,38,71,.12);
  border-radius: 10px;
}

.stxm-events li {
  padding: 13px 20px;
  font-size: 14.5px;
  border-bottom: 1px solid rgba(24,38,71,.08);
}

.stxm-events li::before { content: '\2726'; color: #CBB261; margin-right: 12px; }
.stxm-events li:last-child { border-bottom: 0; }

/* Roster photos. */
.stxb-avatar { display: inline-block; vertical-align: middle; margin-right: 10px; }

.stxb-avatar img {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(24,38,71,.15);
}

/* ==================================================================
   Event rosters — /board/events/  (page-events.php)
   ------------------------------------------------------------------
   Built for a phone held one-handed at a welcome table: the check-in
   control is a 44px tap target (Apple's minimum for a reliable hit),
   the checked-in row is legible at a glance, and nothing depends on
   hover, which a touch screen does not have.
   ================================================================== */

/* Filter chips: which class/workshop someone is in. */
.stxe-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 14px;
}

.stxe-chip {
  font: 600 12.5px/1 Montserrat, sans-serif;
  letter-spacing: .04em;
  color: #46617D;
  background: #fff;
  border: 1px solid rgba(24,38,71,.18);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
}

.stxe-chip span {
  font-size: 11px;
  color: #7b8794;
  background: rgba(24,38,71,.07);
  border-radius: 999px;
  padding: 2px 7px;
}

.stxe-chip.is-on {
  color: #fff;
  background: #182647;
  border-color: #182647;
}

.stxe-chip.is-on span { color: #fff; background: rgba(255,255,255,.22); }

/* The check-in column. */
.stxe-th-in { width: 58px; }

.stxe-toggle {
  width: 44px; height: 44px;          /* full-size tap target */
  border-radius: 10px;
  border: 2px solid rgba(24,38,71,.22);
  background: #fff;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
}

.stxe-tick {
  width: 15px; height: 9px;
  border-left: 3px solid transparent;
  border-bottom: 3px solid transparent;
  transform: rotate(-45deg) translate(1px, -2px);
}

.stxe-table tr.is-in .stxe-toggle {
  background: #5F8A4E;
  border-color: #5F8A4E;
}

.stxe-table tr.is-in .stxe-tick {
  border-left-color: #fff;
  border-bottom-color: #fff;
}

/* A checked-in row should read as done without being unreadable. */
.stxe-table tr.is-in td { background: rgba(95,138,78,.08); }
.stxe-table tr.is-in .stxe-name { color: #55606b; }

/* Names are buttons because they are editable, but must not look like one. */
.stxe-name {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 2px 0;
  cursor: pointer;
  text-align: left;
  border-bottom: 1px dashed rgba(24,38,71,.28);
}

.stxe-name:hover { border-bottom-style: solid; }

/* Add-at-the-door. */
.stxe-add {
  margin: 18px 0 0;
  border: 1px solid rgba(24,38,71,.14);
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
}

.stxe-add summary {
  font: 600 13px/1 Montserrat, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #46617D;
  cursor: pointer;
}

.stxe-addnote { margin: 12px 0 10px; font-size: 13.5px; color: #6b7580; }

.stxe-addrow { display: flex; flex-wrap: wrap; gap: 8px; }

.stxe-addrow input {
  flex: 1 1 180px;
  font: 400 15px/1.2 Montserrat, sans-serif;
  padding: 12px 12px;
  border: 1px solid rgba(24,38,71,.18);
  border-radius: 9px;
}

.stxe-addbtn {
  font: 700 13px/1 Montserrat, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: #182647;
  border: 0; border-radius: 9px;
  padding: 13px 20px;
  cursor: pointer;
}

.stxe-addbtn[disabled] { opacity: .55; cursor: default; }

.stxe-msg { margin: 10px 0 0; font-size: 13.5px; color: #3d6231; }

@media (max-width: 640px) {
  /* Buyer email is the first thing to go: at a door you need the name,
     the class, and the tick. */
  .stxe-table thead th:nth-child(4),
  .stxe-table tbody td:nth-child(4) { display: none; }
  .stxe-table { min-width: 0; }
  .stxe-addrow input, .stxe-addbtn { flex: 1 1 100%; }
}
