/* Cric11 Pulse page layouts — light appearance only. */

/* Home hero */
.hero {
  position: relative;
  min-height: clamp(540px, 72svh, 780px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(54px, 8vw, 100px) 0;
  background: #f2f5f9;
}
.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  background-size: cover;
  background-position: center;
  transform: scale(1.025);
}
.hero-bg.is-on { opacity: 1; animation: heroZoom 14s ease forwards; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 48%, rgba(255,255,255,.60) 100%);
}
@keyframes heroZoom { from { transform: scale(1.055); } to { transform: scale(1); } }
.hero-content { position: relative; z-index: 2; width: min(100% - 48px, var(--container)); margin-inline: auto; }
.hero-mark { width: 72px; height: 72px; object-fit: contain; margin: 0 0 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 6px; box-shadow: var(--sh-2); }
.hero-kicker, .eyebrow { color: var(--color-primary-40); font-size: var(--fs-12); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
.hero h1 { max-width: 16ch; color: var(--text-strong); font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 18px; }
.hero-sub { max-width: 62ch; color: var(--text); font-size: clamp(1rem, 2vw, 1.2rem); margin: 0 0 24px; }
.hero-ctas { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-note { max-width: 70ch; margin: 18px 0 0; color: var(--muted); font-size: var(--fs-14); }
.hero-live-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-live-chips a {
  display: inline-flex; align-items: center; color: var(--link); text-decoration: none;
  font-size: var(--fs-14); font-weight: 700; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.88);
}
.hero-live-chips a:hover { border-color: var(--color-primary-40); color: var(--color-primary-40); background: #fff; }
@media (max-width: 700px) {
  .hero { min-height: auto; padding: 56px 0 52px; }
  .hero-bg::after { background: rgba(255,255,255,.88); }
  .hero-content { width: min(100% - 32px, var(--container)); }
  .hero h1 { max-width: 18ch; }
  .hero-ctas { align-items: stretch; }
  .hero-ctas .btn { flex: 1 1 180px; }
}

/* Feature cards shared by home and feature overview */
.feature-section { padding: clamp(48px, 7vw, 88px) 0; background: var(--bg-elevated); }
.section-intro { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.section-intro h2 { color: var(--text-strong); font-size: clamp(1.8rem, 4.2vw, 2.8rem); margin-bottom: 10px; }
.section-intro p { color: var(--muted); font-size: var(--fs-16); margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.f-card {
  display: block; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-14);
  background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform var(--dur-enter), box-shadow var(--dur-enter), border-color var(--dur-enter);
}
.f-card:hover { transform: translateY(-3px); border-color: #b8c9dc; box-shadow: var(--shadow-md); color: var(--text); }
.f-card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.f-card .ico svg { width: 22px; height: 22px; }
.f-card h3 { color: var(--text-strong); font-size: var(--fs-18); margin: 0 0 7px; }
.f-card p { color: var(--muted); font-size: var(--fs-14); margin: 0; }
.apps-hero { text-align: center; padding: clamp(48px, 7vw, 76px) 0 38px; background: linear-gradient(180deg, #f2f5f9, #fff); }
.apps-hero h1 { color: var(--text-strong); font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 12px; }
.apps-hero p:not(.eyebrow) { color: var(--muted); font-size: var(--fs-18); max-width: 66ch; margin: 0 auto 24px; }
.apps-hero .hero-ctas { justify-content: center; }
.apps-features { padding: 28px 0 clamp(52px, 8vw, 90px); }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; gap: 12px; } .f-card { padding: 18px; } }

/* Organiser callout */
.home-cta { padding: clamp(44px, 7vw, 78px) 0; background: var(--surface-2); border-top: 1px solid var(--line); }
.home-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.home-cta-inner > div:first-child { max-width: 620px; }
.home-cta h2 { color: var(--text-strong); font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 8px; }
.home-cta p:not(.eyebrow) { color: var(--muted); margin: 0; }
.organiser-details { background: #fff; }
.organiser-note { max-width: 880px; margin: 26px auto 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-8); background: var(--surface-2); color: var(--muted); font-size: var(--fs-14); }

/* Directory listings */
.dir-hero { background: linear-gradient(180deg, #f5f7fa, #fff); padding: 38px 0 18px; border-bottom: 1px solid var(--line); }
.dir-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dir-head h1 { color: var(--text-strong); font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin: 0; }
.loc-filter { position: relative; }
.loc-filter select {
  appearance: none; border: 1px solid var(--line-strong); background: #fff; border-radius: var(--r-50);
  padding: 9px 38px 9px 36px; font: inherit; font-size: var(--fs-14); color: var(--text); cursor: pointer;
}
.loc-filter select:hover { border-color: var(--color-secondary-50); }
.loc-filter .pin { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--color-primary-40); pointer-events: none; }
.loc-filter .chev { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.dir-count { margin-left: auto; color: var(--muted); font-size: var(--fs-14); white-space: nowrap; }
.dir-note { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-8); background: var(--surface-2); color: var(--muted); font-size: var(--fs-14); }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 26px 0 8px; }
@media (max-width: 1080px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .card-grid { grid-template-columns: 1fr; } .dir-head { align-items: stretch; } .dir-count { margin-left: 0; } }
.l-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-12); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.l-card .card-art { width: 100%; aspect-ratio: 10/7; background: var(--surface-2); }
.l-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.l-card h3 { font-size: var(--fs-16); margin: 0; color: var(--text-strong); font-weight: 700; overflow-wrap: anywhere; }
.l-card .loc { color: var(--muted); font-size: var(--fs-14); margin: 0; overflow-wrap: anywhere; }
.load-wrap { display: grid; place-items: center; padding: 26px 0 8px; }
.grid-skeleton .sk { border: 1px solid var(--line); border-radius: var(--r-12); overflow: hidden; background: #fff; }
.grid-skeleton .sk .art { aspect-ratio: 10/7; }
.grid-skeleton .sk .ln { height: 12px; border-radius: 6px; margin: 12px 16px; }
.grid-skeleton .sk .ln.w70 { width: 70%; } .grid-skeleton .sk .ln.w40 { width: 40%; }
.shimmer { background: linear-gradient(90deg, #f2f4f7 25%, #e8edf3 45%, #f2f4f7 65%); background-size: 300% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position: -300% 0; } }
.empty-state, .error-state { text-align: center; padding: 48px 20px; color: var(--muted); display: none; }
.empty-state.show, .error-state.show { display: block; }
.empty-state svg, .error-state svg { margin: 0 auto 14px; color: var(--muted-2); }
@media (prefers-reduced-motion: reduce) { .shimmer { animation: none; } }

/* Shared chips used by the community page */
.roles-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 860px; margin: 0 auto; }
.role-chip { border: 1px solid var(--line); background: #fff; color: var(--text-strong); border-radius: var(--r-50); padding: 10px 18px; font-size: var(--fs-14); font-weight: 600; text-decoration: none; transition: background var(--dur-exit), color var(--dur-exit), border-color var(--dur-exit); }
a.role-chip:hover { background: var(--accent-soft); border-color: var(--color-secondary-50); color: var(--text-strong); }
.role-chip.you { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 800; }

/* About article */
.article-wrap { max-width: 760px; margin: 0 auto; padding: clamp(42px, 7vw, 72px) 24px clamp(56px, 8vw, 90px); }
.article-wrap .kicker { color: var(--color-primary-40); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: var(--fs-12); }
.article-wrap h1 { color: var(--text-strong); font-size: clamp(1.9rem, 4.6vw, 2.8rem); margin: 10px 0 18px; }
.article-meta { color: var(--muted); font-size: var(--fs-14); margin-bottom: 30px; }
.article-wrap p { font-size: var(--fs-18); color: var(--text); line-height: 1.75; }
.article-wrap h2 { color: var(--text-strong); font-size: var(--fs-28); margin: 36px 0 12px; }
.article-wrap a:not(.btn) { color: var(--link); text-underline-offset: 3px; }
.pull-chain { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 28px 0; padding: 20px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-12); }
.pull-chain b { background: #fff; border: 1px solid var(--line); border-radius: var(--r-50); padding: 8px 16px; font-size: var(--fs-14); }
.pull-chain b.hot { background: var(--accent); color: #fff; border-color: var(--accent); }
.pull-chain span { color: var(--muted-2); }

/* Contact form: generous spacing and predictable stacking across breakpoints */
.contact-sec { padding: clamp(38px, 6vw, 76px) 0 clamp(56px, 8vw, 100px); background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4.5vw, 62px); align-items: start; }
.contact-info { min-width: 0; max-width: 38rem; }
.contact-info h1 { color: var(--text-strong); font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 14px; }
.contact-info > p:not(.eyebrow) { color: var(--muted); font-size: var(--fs-18); }
.contact-note { margin-top: 24px; padding: 18px 20px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-12); color: var(--text); }
.contact-note p { color: var(--muted); font-size: var(--fs-14); margin: 6px 0 0; }
.contact-card { min-width: 0; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r-14); box-shadow: var(--shadow-md); padding: clamp(18px, 3vw, 32px); }
.contact-card .field { margin-bottom: 18px; }
.contact-card .field label { color: var(--text-strong); font-size: var(--fs-14); font-weight: 700; margin-bottom: 7px; }
.contact-card .field input, .contact-card .field textarea { width: 100%; min-width: 0; border: 1px solid var(--line-strong); border-radius: var(--r-8); padding: 12px 14px; font: inherit; font-size: var(--fs-16); background: #fff; }
.contact-card .field textarea { min-height: 150px; resize: vertical; }
.contact-card .field input:focus, .contact-card .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-ring); }
.contact-card .field .err { color: var(--danger); font-size: var(--fs-12); margin: 6px 0 0; display: none; }
.contact-card .field.invalid .err { display: block; }
.contact-card .field.invalid input, .contact-card .field.invalid textarea { border-color: var(--danger); }
.contact-card > button[type="submit"] { width: 100%; min-height: 48px; }
.contact-card .form-note { color: var(--muted); font-size: var(--fs-14); margin: 12px 0 0; }
.contact-card .form-ok { margin: 0 0 18px; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 760px; }
  .contact-info { max-width: none; }
}
@media (max-width: 520px) {
  .contact-sec { padding-top: 32px; }
  .contact-grid { gap: 18px; }
  .contact-card { border-radius: var(--r-12); }
  .contact-card .field { margin-bottom: 16px; }
}

/* 404 / offline state */
.notfound { min-height: min(78svh, 760px); display: grid; place-items: center; text-align: center; background: var(--bg); color: var(--text); padding: 48px 20px; }
.notfound > div { max-width: 620px; }
.notfound .code { font-family: var(--font-display); font-size: clamp(4rem, 16vw, 9rem); color: var(--color-primary-40); line-height: 1; }
.notfound h1 { color: var(--text-strong); }
.notfound p { color: var(--muted); max-width: 54ch; margin: 0 auto 24px; }
.offline-state .code { margin-bottom: 12px; }
