/* For societies (/societies/, founder approved 19 Nov 2026; Figma page 43, 2846:5031 and 2846:5444).
 * Built on /partners/: this file loads after partners.css and before company-theme.css, and adds only what
 * the societies page has that /partners/ does not. The hero copy column is 392 wide at 1440 so the form card
 * keeps its 648; the copy column holds still beside the long form where it fits. Light first; the dark
 * values sit at the foot, on company-theme.css's palette.
 */

.ls .soc-main {
  --soc-ink-fill: var(--ls-ink);
  --soc-on-ink: #FFFFFF;
  --soc-error-bg: var(--tud-color-status-error-bg, #FCE8E6);
  --soc-error: var(--tud-color-status-error-text, #B42318);
  /* the selector family for our calendar (/assets/booking-dates.css), which hangs on <body> and copies these */
  --xs-h: 52px;
  --xs-r: 12px;
  --xs-bg: var(--pt-field);
  --xs-ink: var(--ls-ink);
  --xs-ink-2: var(--ls-soft);
  --xs-ring: var(--pt-field-line);
  --xs-hover-bg: color-mix(in srgb, var(--ls-orange) 14%, var(--pt-field));
  --xs-hover-ring: var(--ls-ink);
  --xs-on-bg: var(--ls-ink);
  --xs-on-ink: var(--soc-on-ink);
  --xs-off-ink: var(--ls-muted);
}

/* ---------- Hero: the pitch, How it works, and the form beside them ---------- */
.ls .soc-pitch { grid-template-columns: minmax(0, 392px) minmax(0, 1fr); gap: 0 80px; }
.ls .soc-pitch .page-title { font-size: 64px; }
.ls .soc-copy .partners-benefits li { font-weight: 600; }
/* The megaphone, optically centred: its sound lines sit on the right, so the drawing takes a 14px inset on the left. */
.ls .soc-art { margin-top: 56px; padding-left: 14px; }
.ls .soc-art img { height: 236px; }

.ls .soc-how-title { margin: 64px 0 20px; font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -0.04em; }
.ls .soc-how { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ls-line-2); }
.ls .soc-how li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--ls-line-2); }
.ls .soc-how p { margin: 0; color: var(--ls-soft); font-size: 17px; line-height: 1.55; }
.ls .soc-how strong { color: var(--ls-ink); font-weight: 700; }
.ls .soc-num {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  color: var(--soc-on-ink); background: var(--soc-ink-fill);
  font-size: 15px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
}
.ls .soc-how .soc-num { margin-top: 0; }

/* The copy column (pitch, drawing and How it works) is taller than most screens, so it scrolls with the page:
   /partners/'s sticky copy column would cut the steps off beside the long form. */
.ls .soc-copy { position: static; }

/* The ask: the H2 and the guidelines link above the card, as in form v2. */
.ls .soc-apply { min-width: 0; scroll-margin-top: 96px; }
.ls .soc-apply-head { display: grid; gap: 10px; justify-items: start; margin-bottom: 28px; }
.ls .soc-apply-head h2 { margin: 0; font-size: 48px; font-weight: 800; line-height: 1.05; letter-spacing: -0.045em; }
.ls .soc-guidelines { color: var(--ls-accent-text); font-size: 16px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.ls .soc-card { padding: 32px; }
.ls .soc-form { gap: 36px; }
.ls .soc-step { display: grid; gap: 18px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ls .soc-step-title { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--ls-ink); font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -0.035em; }
.ls .soc-step-title .soc-num { flex: none; }

/* A field beside one showing an error keeps its own height: the row grows, the control does not stretch. */
.ls .soc-card .field { align-content: start; }
.ls .soc-card .field-error { margin: 0; color: var(--soc-error); font-size: 14px; font-weight: 700; line-height: 1.4; }
.ls .soc-card .field-error:empty { display: none; }
.ls .soc-card .field :is(input, textarea)::placeholder { color: var(--ls-muted); opacity: 1; }
.ls .soc-card .select-trigger { border: 1px solid var(--pt-field-line); background: var(--pt-field); font-size: 17px; }
.ls .soc-card .select-trigger[aria-invalid="true"],
.ls .soc-card .select-wrap:has(select[aria-invalid="true"]) .select-trigger { border: 1.5px solid var(--soc-error); }
.ls .soc-card .bk-date.is-on > .bk-date-face { font-size: 17px; }

/* The form's status: one short line at the top of the card, the error tint. */
.ls .soc-status { margin: 0; }
.ls .soc-status:empty { display: none; }
.ls .soc-status:not(:empty) { padding: 12px 16px; border-radius: 12px; color: var(--soc-error); background: var(--soc-error-bg); font-size: 15px; font-weight: 700; line-height: 1.45; }

/* Kind of event: pick one. Picked is the ink fill with a tick, as in form v2. */
.ls .soc-kinds { min-width: 0; margin: 0; padding: 0; border: 0; }
.ls .soc-kinds legend { margin-bottom: 8px; padding: 0; }
.ls .soc-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ls .soc-chip { position: relative; display: inline-flex; cursor: pointer; }
.ls .soc-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ls .soc-chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--ls-line-2); border-radius: 999px; color: var(--ls-ink); background: var(--pt-field);
  font-size: 16px; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: background-color 140ms var(--ls-ease), border-color 140ms var(--ls-ease);
}
.ls .soc-chip:hover span { border-color: var(--ls-ink); }
.ls .soc-chip input:checked + span { border-color: var(--soc-ink-fill); color: var(--soc-on-ink); background: var(--soc-ink-fill); }
.ls .soc-chip input:checked + span::before {
  content: ""; width: 14px; height: 14px; margin-left: -2px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ls .soc-chip input:focus-visible + span { outline: 2px solid var(--ls-ink); outline-offset: 2px; }

/* The poster: the real file input stays focusable but unseen; the box shows what was picked. */
.ls .soc-poster-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0; }
.ls .soc-poster-box {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  min-height: 62px; padding: 10px 16px 10px 10px;
  border: 1px solid var(--pt-field-line); border-radius: 12px; background: color-mix(in srgb, var(--ls-sand, #EFE6D8) 35%, var(--pt-field));
  cursor: pointer;
}
.ls .soc-poster-box:hover { border-color: var(--ls-ink); }
.ls .soc-poster-input:focus-visible + .soc-poster-box { border-color: var(--ls-ink); outline: 2px solid var(--ls-ink); outline-offset: 2px; }
.ls .soc-poster-input[aria-invalid="true"] + .soc-poster-box { border: 1.5px solid var(--soc-error); }
.ls .soc-poster-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ls-line-2); border-radius: 10px; color: var(--ls-ink); background: var(--pt-field); }
.ls .soc-poster-name { min-width: 0; overflow: hidden; color: var(--ls-muted); font-size: 16px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.ls .soc-poster.is-set .soc-poster-name { color: var(--ls-ink); }
.ls .soc-poster-action { color: var(--ls-accent-text); font-size: 16px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Ticket rows: four fields across, each row its own labels (form v2). */
.ls .soc-tickets { display: grid; gap: 18px; }
.ls .soc-ticket { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.3fr) minmax(0, 0.9fr); gap: 12px; align-items: start; }
.ls .soc-ticket .field { gap: 8px; }
.ls .soc-ticket .field-label { white-space: nowrap; }
.ls .soc-add {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 44px; margin: -8px 0 -6px; padding: 0;
  border: 0; color: var(--ls-accent-text); background: none; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
}
.ls .soc-add:hover { text-decoration: underline; text-underline-offset: 3px; }
.ls .soc-add:focus-visible { outline: 2px solid var(--ls-ink); outline-offset: 2px; border-radius: 6px; }
.ls .soc-add[hidden], .ls .soc-card [data-ticketed][hidden] { display: none; }

/* Gate team: names as tags in one field, the typing line after them. */
.ls .soc-tags {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 52px; padding: 7px 10px;
  border: 1px solid var(--pt-field-line); border-radius: 12px; background: var(--pt-field); cursor: text;
}
.ls .soc-tags:focus-within { border-color: var(--ls-ink); box-shadow: 0 0 0 3px rgba(20, 20, 18, .14); }
.ls .soc-tags[aria-invalid="true"] { border: 1.5px solid var(--soc-error); }
.ls .soc-tag-list { display: contents; margin: 0; padding: 0; list-style: none; }
.ls .soc-tag { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 4px 0 12px; border: 1px solid var(--ls-line-2); border-radius: 999px; color: var(--ls-ink); background: color-mix(in srgb, var(--ls-sand, #EFE6D8) 45%, var(--pt-field)); font-size: 16px; font-weight: 600; white-space: nowrap; }
.ls .soc-tag button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; color: var(--ls-soft); background: none; cursor: pointer; }
.ls .soc-tag button:hover { color: var(--ls-ink); background: rgba(20, 20, 18, .06); }
.ls .soc-tag button:focus-visible { outline: 2px solid var(--ls-ink); outline-offset: 1px; }
.ls .soc-card .soc-tags .soc-tag-input { flex: 1 1 120px; min-width: 120px; min-height: 36px; padding: 0 6px; border: 0; outline: 0; box-shadow: none; background: transparent; }
.ls .soc-card .soc-tags .soc-tag-input:focus-visible { border: 0; outline: 0; box-shadow: none; }
.ls .soc-card .field textarea#s-refund { min-height: 96px; }

/* The agreement: our own ink checkboxes, the legal wording in full. */
.ls .soc-agree { display: grid; gap: 18px; padding-top: 28px; border-top: 1px solid var(--ls-line-2); }
.ls .soc-check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--ls-soft); font-size: 15px; line-height: 1.5; cursor: pointer; }
.ls .soc-card .soc-check input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; display: grid; place-items: center; width: 24px; height: 24px; min-height: 0; margin: 0; padding: 0;
  border: 1.5px solid var(--pt-field-line); border-radius: 6px; background: var(--pt-field); cursor: pointer;
}
.ls .soc-card .soc-check input[type="checkbox"]:checked { border-color: var(--soc-ink-fill); background: var(--soc-ink-fill); }
.ls .soc-card .soc-check input[type="checkbox"]:checked::after {
  content: ""; width: 16px; height: 16px; background: var(--soc-on-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ls .soc-card .soc-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--ls-ink); outline-offset: 2px; }
.ls .soc-card .soc-check input[type="checkbox"][aria-invalid="true"] { border: 1.5px solid var(--soc-error); }

.ls .soc-commit { display: flex; align-items: center; gap: 20px; }
.ls .soc-commit .btn { flex: none; min-height: 52px; padding-inline: 24px; font-size: 16px; }
.ls .soc-commit .fine { margin: 0; color: var(--ls-soft); font-size: 13px; line-height: 1.55; }
.ls .soc-commit .btn[aria-busy="true"] { opacity: .7; cursor: progress; }

.ls .soc-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Sent: the tick, the heading and the one line. */
.ls .soc-sent { display: grid; gap: 14px; justify-items: start; padding: 16px 0; outline: 0; }
.ls .soc-sent[hidden] { display: none; }
.ls .soc-sent-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: var(--tud-color-status-success-text, #1E7B4B); background: var(--tud-color-status-success-bg, #E3F3E9); }
.ls .soc-sent h3 { margin: 6px 0 0; font-size: 34px; font-weight: 800; line-height: 1.1; letter-spacing: -0.04em; }
.ls .soc-sent p { margin: 0; color: var(--ls-soft); font-size: 18px; line-height: 1.55; }

/* ---------- Tickets, payments and refunds ---------- */
.ls .soc-terms { padding-top: 0; border-top: 0; }
.ls .soc-terms-title { max-width: 900px; margin: 0 0 40px; font-size: 48px; font-weight: 800; line-height: 1.05; letter-spacing: -0.045em; }
.ls .soc-kinds-panel { padding: 36px; border-radius: 24px; background: var(--ls-paper); box-shadow: inset 0 0 0 1px var(--ls-line-2); }
.ls .soc-kinds-panel h3 { margin: 0 0 28px; font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -0.03em; }
.ls .soc-kind-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin: 0; }
.ls .soc-kind-list > div { padding-top: 22px; border-top: 3px solid var(--ls-orange); }
.ls .soc-kind-list dt { margin-bottom: 8px; color: var(--ls-ink); font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; }
.ls .soc-kind-list dd { margin: 0; color: var(--ls-soft); font-size: 16px; line-height: 1.55; }

/* The four strip cards are /partners/'s .portal-row; the plate beside them is the checklist, an ink-ruled card. */
.ls .soc-detail { grid-template-columns: minmax(0, 1fr) 464px; margin-top: 40px; align-items: start; }
.ls .soc-send { padding: 36px 34px 32px; border: 2.5px solid var(--ls-ink); border-radius: 24px; background: var(--ls-paper); }
.ls .soc-send h3 { margin: 0 0 20px; font-size: 36px; font-weight: 800; line-height: 1.1; letter-spacing: -0.045em; }
.ls .soc-send-list { margin: 0; padding: 0; list-style: none; }
.ls .soc-send-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--ls-line-2); color: var(--ls-ink); font-size: 17px; font-weight: 600; line-height: 1.35; }
.ls .soc-send-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.ls .soc-send-list li::before { content: ""; width: 22px; height: 22px; margin-top: -1px; border: 2px solid var(--ls-ink); border-radius: 6px; box-sizing: border-box; }

/* ---------- Narrower ---------- */
@media (max-width: 1199px) {
  .ls .soc-pitch { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 0 48px; }
  .ls .soc-pitch .page-title { font-size: 56px; }
  .ls .soc-detail { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; }
}

@media (max-width: 920px) {
  .ls .soc-pitch { grid-template-columns: 1fr; }
  .ls .soc-copy { max-width: 640px; }
  .ls .soc-art { margin: 40px 0 0; }
  .ls .soc-apply { max-width: 640px; margin-top: 56px; }
  .ls .soc-detail { grid-template-columns: 1fr; }
  .ls .soc-send { max-width: 640px; }
  .ls .soc-kind-list { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  .ls .soc-pitch .page-title { font-size: 44px; }
  .ls .soc-art { margin: 32px 0 0; }
  .ls .soc-art img { height: 190px; }
  .ls .soc-how-title { margin-top: 40px; }
  .ls .soc-how p { font-size: 16px; }
  .ls .soc-apply { margin-top: 48px; }
  .ls .soc-apply-head h2 { font-size: 32px; }
  .ls .soc-card { padding: 24px 18px; }
  .ls .soc-step-title { font-size: 22px; }
  .ls .soc-card .field-row { grid-template-columns: 1fr; }
  /* Phone: Ticket type and Tickets, then the two prices (form v2 at 390). */
  .ls .soc-ticket { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ls .soc-ticket .field[data-key="name"] { order: 1; }
  .ls .soc-ticket .field[data-key="count"] { order: 2; }
  .ls .soc-ticket .field[data-key="price_elsewhere_pkr"] { order: 3; }
  .ls .soc-ticket .field[data-key="student_price_pkr"] { order: 4; }
  .ls .soc-ticket .field-label { white-space: normal; }
  .ls .soc-commit { flex-direction: column; align-items: stretch; }
  .ls .soc-commit .btn { width: 100%; }
  .ls .soc-terms-title { margin-bottom: 28px; font-size: 32px; }
  .ls .soc-kinds-panel { padding: 24px 20px; }
  .ls .soc-send { padding: 26px 22px 24px; }
  .ls .soc-send h3 { font-size: 30px; }
  .ls .soc-send-list li { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) { .ls .soc-chip span { transition: none; } }

/* ---------- Dark ---------- */
:root[data-theme="dark"] .ls .soc-main {
  --soc-ink-fill: #F6EFE4;
  --soc-on-ink: #1A1613;
  --soc-error-bg: rgba(255, 107, 107, .14);
  --soc-error: #FF9C8F;
}
:root[data-theme="dark"] .ls .soc-tags:focus-within { box-shadow: 0 0 0 3px rgba(246, 239, 228, .2); }
:root[data-theme="dark"] .ls .soc-tag button:hover { background: rgba(246, 239, 228, .1); }
:root[data-theme="dark"] .ls .soc-sent-mark { color: #8FD9AE; background: rgba(143, 217, 174, .14); }
