/* The referral lucky draw rules page (Figma web 2026-10 Students, Lucky draw).
   The dark comes from company-theme.css: this page only uses the --ls tokens it redefines. */
.ld { width: min(100% - 48px, 1120px); margin-inline: auto; padding: 40px 0 120px; }
.ld-hero { display: flex; align-items: flex-end; gap: 56px; padding-top: 28px; }
.ld-hero-copy { flex: 1 1 0; min-width: 0; max-width: 744px; display: flex; flex-direction: column; gap: 14px; }
.ld-kicker { margin: 0; color: var(--ls-muted); font-size: 15px; font-weight: 700; line-height: 1.5; }
.ld .page-title { margin: 0; font-size: clamp(40px, 4.6vw, 56px); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; }
.ld-effective { margin: 0; color: var(--ls-muted); font-size: 14px; font-weight: 600; line-height: 1.5; }
.ld[data-closed] .ld-intro { display: none; }
.ld-intro { margin: 0; color: var(--ls-soft); font-size: 19px; font-weight: 500; line-height: 1.55; }
/* The hero doodle sits on the page ground, same box and ink size as the legal pages' .lg-tile. */
.ld-tile { flex: none; display: grid; place-items: center; width: 320px; height: 300px; }
.ld-tile img { display: block; width: auto; height: auto; max-width: 260px; max-height: 260px; mix-blend-mode: multiply; }
@media (max-width: 1100px) { .ld-tile { width: 240px; height: 240px; } .ld-tile img { max-width: 200px; max-height: 200px; } .ld-hero { gap: 32px; } }

.ld-body { display: flex; align-items: flex-start; gap: 56px; padding-top: 64px; }
.ld-toc { flex: none; width: 280px; position: sticky; top: 100px; }
.ld-toc summary { list-style: none; color: var(--ls-ink); font-size: 15px; font-weight: 700; line-height: 1.4; pointer-events: none; }
.ld-toc summary::-webkit-details-marker { display: none; }
.ld-toc nav { display: flex; flex-direction: column; padding-top: 10px; }
.ld-toc a { padding: 9px 0 9px 16px; border-left: 1px solid var(--ls-line-2); color: var(--ls-soft); font-size: 15px; font-weight: 600; line-height: 1.35; text-decoration: none; }
.ld-toc a:hover { color: var(--ls-ink); }
.ld-toc a[aria-current="true"] { padding-left: 15px; border-left: 2px solid var(--ls-ink); color: var(--ls-ink); font-weight: 700; }

.ld-rules { flex: 1 1 0; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: 48px; }
.ld-rules section { scroll-margin-top: 100px; display: flex; flex-direction: column; gap: 14px; }
.ld-rules h2 { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.18; letter-spacing: -.03em; }
.ld-rules p { margin: 0; color: var(--ls-soft); font-size: 17px; font-weight: 500; line-height: 1.65; }
.ld-rules p a, .ld-cross a { color: var(--ls-accent-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.ld-pools { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ld-pool { display: flex; align-items: stretch; overflow: hidden; border: 1px solid var(--ls-line-2); border-radius: 18px; background: var(--ls-paper); }
.ld-pool-n { position: relative; flex: none; display: grid; place-items: center; width: 132px; padding: 18px 8px; background: var(--ld-tone); color: var(--ls-ink); font-family: var(--tud-font-secondary, "Space Grotesk", sans-serif); font-size: 40px; font-weight: 700; letter-spacing: -.05em; }
.ld-pool-n::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 6px; background: radial-gradient(circle at 100% 50%, var(--ls-paper) 0 3px, transparent 3.5px) 0 0 / 6px 12px repeat-y; }
.ld-pool > div { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 18px 22px 18px 24px; }
.ld-pool-need { color: var(--ls-muted); font-size: 13px; font-weight: 600; line-height: 1.5; }
.ld-pool strong { color: var(--ls-ink); font-size: 18px; font-weight: 700; line-height: 1.35; }
.ld-pool--food { --ld-tone: var(--ls-food); }
.ld-pool--shop { --ld-tone: var(--ls-fashion); }
.ld-pool--grand { --ld-tone: var(--ls-chai); }

.ld-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ld-list li { position: relative; padding-left: 22px; color: var(--ls-soft); font-size: 17px; font-weight: 500; line-height: 1.6; }
.ld-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--ls-ink); }
.ld-cross a { font-size: 16px; line-height: 1.6; }

@media (max-width: 900px) {
  .ld { width: min(100% - 32px, 1120px); padding-bottom: 72px; }
  .ld-hero { flex-direction: column; align-items: stretch; gap: 28px; padding-top: 16px; }
  .ld-tile { order: 2; width: 100%; height: 150px; justify-items: center; }
  .ld-tile img { max-width: 150px; max-height: 150px; }
  .ld-intro { font-size: 18px; }
  .ld-body { flex-direction: column; gap: 32px; padding-top: 28px; }
  .ld-toc { position: static; width: 100%; border: 1px solid var(--ls-line-2); border-radius: 14px; background: var(--ls-paper); }
  .ld-toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 18px; cursor: pointer; pointer-events: auto; }
  .ld-toc summary::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); }
  .ld-toc[open] summary::after { transform: rotate(-135deg); }
  .ld-toc nav { padding: 0 18px 12px; }
  .ld-toc a { min-height: 44px; display: flex; align-items: center; }
  .ld-rules { gap: 40px; }
  .ld-rules h2 { font-size: 26px; }
  .ld-pool-n { width: 88px; font-size: 32px; }
  .ld-pool strong { font-size: 17px; }
  .ld-pool > div { padding: 16px 16px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) { .ld * { scroll-behavior: auto; transition: none; } }
