/*
 * The plan document the team opens from WhatsApp.
 *
 * The CRM dresses its contract and plan documents in Fraunces because they
 * echo the printed booklets, while the product UI stays on a single sans.
 * This page is one of those documents, so it wears the serif; the portal
 * around it does not.
 */

.plan-page {
  --doc: 46rem;
  background: var(--bg);
  padding-bottom: 4rem;
}
.plan-page .shell { width: min(100% - 2rem, var(--doc)); margin-inline: auto; }

.plan-hero {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 0 1.75rem;
  margin-bottom: 1.75rem;
}

.plan-venue {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  margin-bottom: 0.75rem;
}
.plan-venue svg { width: 14px; height: 14px; color: var(--ink-3); }
.plan-venue .dot { margin: 0 0.25rem; }

.plan-hero h1 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-variation-settings: 'SOFT' 20, 'WONK' 1;
  font-size: clamp(1.875rem, 6vw, 2.625rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 0.625rem;
}

.plan-when {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 1rem;
  color: var(--ink-2);
}
.plan-when .rule { width: 1px; height: 0.875rem; background: var(--line-strong); }
@media (max-width: 460px) { .plan-when .rule { display: none; } }

.plan-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--ink-3);
}

/* --- contacts --- */

.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  overflow: hidden;
  margin-bottom: 2rem;
}
.contact {
  display: grid;
  gap: 0.125rem;
  padding: 0.875rem 1rem;
  border-right: 1px solid var(--line);
}
.contact:last-child { border-right: 0; }
@media (max-width: 640px) {
  .contact { border-right: 0; border-bottom: 1px solid var(--line); }
  .contact:last-child { border-bottom: 0; }
}
.contact-role {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-3);
}
.contact-name { font-size: 0.9375rem; font-weight: 600; }
.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.25rem;
  color: var(--accent);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem;
  font-weight: 600;
  width: fit-content;
}
.contact-phone svg { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) {
  .contact-phone:hover { text-decoration: underline; }
}

/* --- section index --- */

.plan-index {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.plan-index a {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  transition: color 150ms var(--ease-out-expo), border-color 150ms var(--ease-out-expo), background-color 150ms var(--ease-out-expo);
}
@media (hover: hover) and (pointer: fine) {
  .plan-index a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-wash); }
}

/* --- sections --- */

.plan-section { padding-top: 2.25rem; scroll-margin-top: 1rem; }

.plan-section h2 {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-variation-settings: 'SOFT' 20, 'WONK' 1;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  padding-bottom: 0.625rem;
  margin-bottom: 0.875rem;
  border-bottom: 1px solid var(--line);
}

.plan-list { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.plan-list > li {
  position: relative;
  padding-left: 1rem;
  max-width: 70ch;
  font-size: 0.9375rem;
}
.plan-list > li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 4px; height: 4px;
  border-radius: 999px;
  background: var(--brand-gold);
}

.kv {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  overflow: hidden;
}
.kv-row {
  display: grid;
  grid-template-columns: minmax(8rem, 34%) 1fr;
  gap: 0.875rem;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--line);
}
.kv-row:last-child { border-bottom: 0; }
.kv dt { color: var(--ink-2); font-size: 0.875rem; }
.kv dd { margin: 0; font-size: 0.9375rem; }
@media (max-width: 460px) {
  .kv-row { grid-template-columns: 1fr; gap: 0.125rem; }
}

.prose { max-width: 70ch; display: grid; gap: 0.75rem; }
.prose p { font-size: 0.9375rem; }

/* --- running order --- */

.run { list-style: none; padding: 0; margin: 0; }
.run-item {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 0.875rem 0;
  border-top: 1px solid var(--line);
}
.run-item:first-child { border-top: 0; padding-top: 0.25rem; }
.run-time {
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  padding-top: 2px;
}
.run-body h3 { font-size: 0.9375rem; font-weight: 600; line-height: 1.4; }
.run-body .plan-list { margin-top: 0.5rem; }
.run-body .plan-list > li { font-size: 0.875rem; color: var(--ink-2); }
.run-body .plan-list > li::before { background: var(--line-strong); }

@media (max-width: 560px) {
  .run-item { grid-template-columns: 1fr; gap: 0.25rem; }
  .run-time { padding-top: 0; }
}

/* --- links --- */

.links {
  list-style: none;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  overflow: hidden;
}
.link-row {
  padding: 0.625rem 0.875rem;
  display: grid;
  gap: 0.125rem;
  border-bottom: 1px solid var(--line);
}
.link-row:last-child { border-bottom: 0; }
.link-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  width: fit-content;
}
.link-row a svg { width: 13px; height: 13px; opacity: 0.7; }
@media (hover: hover) and (pointer: fine) {
  .link-row a:hover { text-decoration: underline; }
}
.link-note { font-size: 0.8125rem; color: var(--ink-2); }

/* --- footer / notices --- */

.plan-foot {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.375rem;
  font-size: 0.8125rem;
}
.plan-foot p:first-child { font-weight: 600; color: var(--ink-2); }
.plan-foot .muted { max-width: 70ch; color: var(--ink-3); }

.empty-note { color: var(--ink-2); padding: 3rem 0; text-align: center; }

.notice-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 2.5rem 0; }
.notice { text-align: center; display: grid; gap: 0.5rem; max-width: 42ch; justify-items: center; }
.notice img { width: 9rem; height: auto; margin-bottom: 0.5rem; }
.notice h1 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; }
.notice p { color: var(--ink-2); font-size: 0.875rem; }

/* --- print: planners do still print these --- */

@media print {
  .plan-page { background: #fff; padding: 0; }
  .plan-hero { border-bottom: 2px solid #000; padding-top: 0; background: #fff; }
  .plan-venue, .plan-meta { color: #333; }
  .run-time { color: #000; }
  .plan-index, .skip-link, .plan-foot .muted { display: none; }
  .contacts, .kv, .links, .task-list { border-color: #999; }
  .plan-section { break-inside: auto; padding-top: 1.25rem; }
  .plan-section h2 { break-after: avoid; border-bottom-color: #999; }
  .run-item { break-inside: avoid; border-top-color: #ccc; }
  .chip { border: 1px solid #000; background: #fff !important; color: #000 !important; }
  a { color: #000; }
}
