/* ============================================================
   2-Sigma — page-template components
   Styles for the standalone pages (Solutions, About, Publications,
   Events, Request a Demo, Contact). Layered on top of styles.css so
   the original design system stays untouched. Uses the same tokens.
   ============================================================ */

/* ---------- Page head (editor-driven H1 + intro) ---------- */
.page-head-section { padding-bottom: 40px; }
.page-head {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.page-head h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
}
.page-head__intro {
  margin-top: 18px;
  font-size: 1.1rem;
  color: var(--slate-500);
}
.page-head__intro p { margin: 0 0 1em; }
.page-head__intro p:last-child { margin-bottom: 0; }

/* Generic editor page (page.php) content spacing */
.entry-content p { margin: 0 0 1.1em; }
.entry-content h2 { font-size: 1.6rem; margin: 1.4em 0 0.5em; }
.entry-content h3 { font-size: 1.25rem; margin: 1.3em 0 0.5em; }
.entry-content a { color: var(--violet-700); text-decoration: underline; }
.entry-content ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1.1em; }
.entry-content img { border-radius: var(--radius); margin: 1em 0; }

/* ---------- Events ---------- */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin-inline: auto;
}
.event-card {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.event-card__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 1;
  border-radius: 14px;
  background: var(--gradient-brand-soft);
  color: var(--violet-700);
  padding: 10px;
}
.event-card__month {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.event-card__day {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.1;
  color: var(--ink-900);
}
.event-card__year { font-size: 0.72rem; color: var(--slate-500); }
.event-card__body h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.event-card__meta {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet-600);
  margin: 0 0 8px;
}
.event-card__body p:last-child { margin: 0; color: var(--slate-500); font-size: 0.96rem; }
.event-card__body h3 a { color: inherit; }
.event-card__body h3 a:hover { color: var(--violet-700); }

.events-empty {
  text-align: center;
  color: var(--slate-500);
  font-size: 1.05rem;
  padding: 40px 0;
  margin: 0;
}
.events-empty a { color: var(--violet-700); font-weight: 600; }

/* ---------- Publications table ---------- */
.pub-table-wrap {
  max-width: 940px;
  margin-inline: auto;
  overflow-x: auto;
}
.pub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.pub-table th,
.pub-table td {
  padding: 18px 20px;
  text-align: left;
  vertical-align: top;
}
/* Year cell: one per group (rowspan), brand-styled, sticks to the group top. */
.pub-table__year {
  width: 1%;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--violet-700);
  padding-left: 4px;
}
.pub-table__title { color: var(--ink-900); }

/* Group separators: strong rule above each year group, light rule between rows. */
.pub-table td.pub-table__title { border-top: 1px solid var(--border); }
.pub-table tbody tr:first-child > * { border-top: 2px solid var(--border-strong); }
.pub-table tbody:first-of-type tr:first-child > * { border-top: 0; }

.pub-table__title a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink-900);
  font-weight: 500;
  line-height: 1.45;
  transition: color 0.18s ease;
}
.pub-table__title a:hover { color: var(--violet-700); }
.pub-table__arrow {
  flex: none;
  align-self: center;
  color: var(--slate-400);
  transition: transform 0.18s ease, color 0.18s ease;
}
.pub-table__title a:hover .pub-table__arrow {
  color: var(--violet-600);
  transform: translate(2px, -2px);
}
.pub-table tbody tr:hover .pub-table__title { background: var(--bg-tint); }

@media (max-width: 620px) {
  .pub-table th,
  .pub-table td { padding: 14px 12px; }
  .pub-table__year { font-size: 1rem; }
  .pub-table { font-size: 0.95rem; }
}

/* ============================================================
   About page
   ============================================================ */
.about-hero {
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  padding-block: 88px;
}
.about-hero .eyebrow {
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--pink-500);
  justify-content: center;
}
.about-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  font-weight: 700;
  max-width: 20ch;
  margin-inline: auto;
}
.about-hero p {
  margin: 20px auto 0;
  max-width: 620px;
  font-size: 1.1rem;
}

/* Mission / Vision */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.mv-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 38px;
}
.mv-card__icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--gradient-brand-soft);
  color: var(--violet-600);
  margin-bottom: 22px;
}
.mv-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.mv-card p { margin: 0; color: var(--slate-500); }

/* Rooted in education (full-width text + stats) */
.about-split h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; }
.about-split p { color: var(--slate-500); margin: 16px 0 0; }

.about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 30px;
}
.about-stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-stat__label {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--slate-500);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.team-card { text-align: center; }
.team-card__photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: var(--gradient-brand-soft);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--violet-600);
  margin-bottom: 18px;
}
.team-card h3 { font-size: 1.1rem; font-weight: 700; }
.team-card__role {
  color: var(--violet-700);
  font-weight: 600;
  font-size: 0.86rem;
  margin: 4px 0 10px;
}
.team-card p { margin: 0; color: var(--slate-500); font-size: 0.92rem; }

/* Journey / timeline */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.timeline-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  border-top: 3px solid transparent;
  border-image: var(--gradient-brand) 1;
}
.timeline-card__year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.timeline-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.timeline-card p { margin: 0; color: var(--slate-500); font-size: 0.92rem; }

@media (max-width: 960px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .mv-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
  .timeline-grid { grid-template-columns: 1fr; }
}

/* ---------- Single event ---------- */
.event-back { margin: 0 0 8px; font-size: 0.9rem; }
.event-back a {
  color: var(--slate-500);
  font-weight: 600;
  transition: color 0.18s ease;
}
.event-back a:hover { color: var(--violet-700); }

.event-single__meta {
  margin-top: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--violet-700);
}

.event-single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
  max-width: 1000px;
  margin-inline: auto;
}

.event-detail {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px;
  box-shadow: var(--shadow-md);
}
.event-detail__row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.event-detail__row:first-child { padding-top: 0; }
.event-detail__icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gradient-brand-soft);
  color: var(--violet-600);
}
.event-detail__text { display: flex; flex-direction: column; gap: 3px; color: var(--ink-800); font-size: 0.98rem; }
.event-detail__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-400);
}
.event-detail__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}
.event-detail__actions .btn { width: 100%; }

@media (max-width: 820px) {
  .event-single-layout { grid-template-columns: 1fr; gap: 32px; }
  .event-detail { position: static; order: -1; }
}

/* ---------- Contact / Demo two-column ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-aside h1 {
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 18px;
}
.contact-aside__lead {
  font-size: 1.08rem;
  color: var(--slate-500);
  margin: 0 0 26px;
}
.contact-aside__alt { margin-top: 24px; font-size: 0.95rem; color: var(--slate-500); }
.contact-aside__alt a { color: var(--violet-700); font-weight: 600; }

.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-800);
  font-size: 1rem;
}
.check-list svg { flex: none; margin-top: 2px; color: var(--magenta-500); }

/* Consulting/Speaking: labelled groups of check-list items */
.offer-group + .offer-group { margin-top: 28px; }
.offer-group .info-list__label { display: block; margin: 0 0 12px; }

.info-list { display: flex; flex-direction: column; gap: 18px; }
.info-list li { display: flex; flex-direction: column; gap: 4px; }
.info-list__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-400);
}
.info-list a { color: var(--violet-700); font-weight: 600; }

/* ---------- Form card (holds a form-plugin block/shortcode) ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 34px;
  box-shadow: var(--shadow-md);
}
.form-card__hint {
  color: var(--slate-500);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0;
}
.form-card__hint strong { color: var(--ink-900); }

/* Style common form-plugin fields so they match the brand out of the box */
.form-card label { display: block; font-weight: 600; color: var(--ink-800); font-size: 0.9rem; margin-bottom: 6px; }
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card input[type="url"],
.form-card select,
.form-card textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink-900);
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: 16px;
}
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--violet-500);
  box-shadow: 0 0 0 3px rgba(139, 46, 132, 0.12);
}
.form-card textarea { min-height: 130px; resize: vertical; }
.form-card input[type="submit"],
.form-card button[type="submit"] {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: var(--gradient-brand);
  border: none;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .event-card { grid-template-columns: 72px 1fr; }
  .event-card__action { grid-column: 2; justify-self: start; }
}
@media (max-width: 480px) {
  .event-card { grid-template-columns: 1fr; text-align: left; }
  .event-card__date { flex-direction: row; gap: 8px; aspect-ratio: auto; width: max-content; padding: 8px 14px; }
  .event-card__action { grid-column: 1; }
}
