/* Shared styles for community hub pages — built from the landing page's components */
@font-face {
  font-family: 'Mona Sans';
  src: url('/fonts/MonaSans-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Just Me Again Down Here';
  src: url('/fonts/JustMeAgainDownHere.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
:root {
  --bg: #F3F2F3;
  --bg-white: #ffffff;
  --text: rgb(21, 13, 40);
  --text-muted: rgba(21, 13, 40, 0.7);
  --text-dim: rgba(21, 13, 40, 0.5);
  --gray: rgb(102, 112, 133);
  --accent: #2164A6;
  --accent-hover: #2580cc;
  --line: #ECEBEE;
  --radius: 12px;
  --radius-sm: 10px;
  --purple: #8B6CEF; --purple-dark: #7F62DB;
  --teal: #5DB89A; --teal-dark: #56A78F;
  --orange: #F6BE6A; --orange-dark: #E0AC63;
  --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Crect x='5' y='5' width='4' height='4' fill='%23000000' fill-opacity='0.1'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
.page-wrapper, .page-wrapper * { font-family: 'Mona Sans', 'Inter', -apple-system, sans-serif; }
.page-wrapper { background: var(--bg) !important; }

@keyframes slideUpBlur {
  from { opacity: 0; transform: translateY(40px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.cm-container { max-width: 1200px; margin: 0 auto; padding: 0 72px; }
.cm-section { padding: 96px 0 0; scroll-margin-top: 80px; }

/* ── HERO ── */
.cm-hero { padding: 22px 0 48px; text-align: center; }
.cm-hero h1 {
  font-size: 64px; font-weight: 600; line-height: 90%; letter-spacing: -0.04em;
  margin: 0; animation: slideUpBlur 0.45s ease-out both;
}
.cm-hero-sub {
  margin: 20px auto 0; font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--text-muted); animation: slideUpBlur 0.45s ease-out 0.1s both;
}
.cm-hero-sub a { color: inherit; text-decoration: none; }
.cm-hero-sub a:hover { text-decoration: underline; }
.cm-photos { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; animation: slideUpBlur 0.45s ease-out 0.15s both; }
.cm-photos.one { grid-template-columns: 1fr; }
.cm-photo { height: 340px; border-radius: var(--radius); overflow: hidden; background: var(--bg-white); }
.cm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── HANDWRITTEN LABEL + SECTION TITLE (landing style) ── */
.cm-title-row { position: relative; margin-bottom: 40px; text-align: center; }
.cm-script {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 8px;
}
.cm-script span {
  font-family: 'Just Me Again Down Here', cursive; font-size: 36px; line-height: 1;
  color: var(--gray); white-space: nowrap;
}
.cm-script svg { width: 44px; height: auto; }
.cm-script .cm-arrow-m { display: none; width: 40px; }
.cm-section-title { font-size: 48px; font-weight: 600; letter-spacing: -0.03em; line-height: 95%; margin: 0; }
.cm-section-sub { margin: 14px auto 0; max-width: 520px; font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--text-muted); }

/* ── TASK TILES ── */
.cm-tasks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cm-tasks:has(> :nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
.cm-task {
  display: flex; flex-direction: column; background: var(--bg-white); border-radius: var(--radius);
  overflow: hidden; color: var(--text); text-decoration: none; text-align: left;
  border: none; padding: 0; cursor: pointer; font: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cm-task:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(21,13,40,0.08); }
.cm-task-art {
  height: 132px; position: relative; background-image: var(--dots); background-size: 14px 14px;
  display: flex; align-items: flex-end; padding: 0 0 0 24px; overflow: hidden;
}
.cm-task-art.purple { background-color: var(--purple); }
.cm-task-art.teal { background-color: var(--teal); }
.cm-task-art.orange { background-color: var(--orange); }
.cm-task-art.blue { background-color: #6E9FD6; }
.cm-chip-card {
  background: #fff; border-radius: 10px 10px 0 0; padding: 14px 16px 18px; width: calc(100% - 8px);
  box-shadow: -8px 10px 0 rgba(0,0,0,0.08); font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 10px; transform: translateY(6px); white-space: nowrap;
}
.cm-chip-card b { font-weight: 600; }
.cm-chip-card .cm-pill { margin-left: auto; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.cm-pill.green { background: #E3F6EC; color: #1E7A4C; }
.cm-pill.blue { background: #E2EEFA; color: #1F5E9C; }
.cm-pill.amber { background: #FDF0D5; color: #9A6408; }
.cm-chip-ico { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: #F1F0F4; color: var(--text); }
.cm-chip-ico svg { width: 16px; height: 16px; }
.cm-task-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.cm-task h3 { margin: 0 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.cm-task p { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--text-muted); }
.cm-task-go { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; color: var(--accent); }
.cm-task-go svg { width: 16px; height: 16px; transition: transform 0.2s; }
.cm-task:hover .cm-task-go svg { transform: translateX(3px); }
.cm-task-links { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.cm-task-links a { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 16px; font-weight: 600; color: var(--accent); text-decoration: none; }
.cm-task-links a + a { border-top: 1px solid var(--line); }
.cm-task-links a:hover { color: var(--accent-hover); }
.cm-task-links svg { width: 16px; height: 16px; }
.cm-task.is-static { cursor: default; }
.cm-task.is-static:hover { transform: none; box-shadow: none; }

/* ── IN-PAGE ORDER FORM (rolls open under the task tiles) ── */
.cm-order { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s ease; }
.cm-order.open { grid-template-rows: 1fr; }
.cm-order-inner { overflow: hidden; }
.cm-order-card { position: relative; margin-top: 12px; background: var(--bg-white); border-radius: var(--radius); padding: 36px 40px; }
.cm-order-title { margin: 0; padding-right: 44px; font-size: 32px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.cm-order-sub { margin: 10px 0 20px; font-size: 16px; font-weight: 500; color: var(--text-muted); }
.cm-order-types { margin-bottom: 24px; }
.cm-order .cm-btn { margin-top: 4px; }
.cm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cm-req, .cm-optional { font-weight: 500; color: var(--text-dim); }
.cm-order fieldset { border: 0; padding: 0; min-width: 0; }
.cm-order fieldset.cm-type { margin: 0; }
.cm-order legend { padding: 0; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.cm-mt { margin-top: 10px; }
.cm-help { margin: 6px 0 0; font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--text-dim); }
.cm-notice { margin-top: 16px; }
.cm-choices { display: flex; gap: 8px; flex-wrap: wrap; }
.cm-choice { position: relative; cursor: pointer; }
.cm-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cm-choice span {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1px solid #DCDAE0; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; color: var(--text-muted); background: #fff; transition: all 0.15s;
}
.cm-choice span::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #C9C6D1; box-sizing: border-box; transition: all 0.15s; }
.cm-choice:hover span { border-color: #c2bfcb; color: var(--text); }
.cm-choice input:checked + span { border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 3px rgba(33,100,166,0.12); }
.cm-choice input:checked + span::before { border: 4px solid var(--accent); }
.cm-choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.cm-order .cm-sent { padding: 8px 0 4px; }

/* ── DOCUMENTS PANEL ── */
.cm-panel {
  background-color: var(--purple); background-image: var(--dots); background-size: 14px 14px;
  border-radius: var(--radius); padding: 56px 64px 0; overflow: hidden;
}
.cm-window {
  background: #fff; border-radius: 14px 14px 0 0; box-shadow: -10px 16px 0 var(--purple-dark);
  overflow: hidden;
}
.cm-window-top { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #eee; flex-wrap: wrap; }
.cm-search { position: relative; flex: 1; min-width: 220px; }
.cm-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--gray); }
.cm-search input {
  width: 100%; padding: 12px 14px 12px 40px; border: 1px solid #E4E2E8; border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 500; color: var(--text); background: #FAFAFB;
}
.cm-search input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(33,100,166,0.12); }
.cm-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.cm-filter {
  border: 1px solid #E4E2E8; background: #fff; border-radius: 999px; padding: 9px 14px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--text-muted); transition: all 0.2s; white-space: nowrap;
}
.cm-filter:hover { color: var(--text); border-color: #cfccd6; }
.cm-filter.active { background: var(--text); border-color: var(--text); color: #fff; }
.cm-doc-head, .cm-doc { display: grid; grid-template-columns: 1fr 170px 92px; align-items: center; gap: 16px; padding: 0 20px; }
.cm-doc-head { height: 44px; border-bottom: 1px solid #eee; font-size: 12px; font-weight: 600; color: rgba(21,13,40,0.6); }
.cm-doc-head span:last-child { text-align: right; }
.cm-doc { min-height: 64px; border-bottom: 1px solid #f3f3f3; color: var(--text); text-decoration: none; transition: background 0.15s; }
.cm-doc:hover { background: #FAFAFB; }
.cm-doc-name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; padding: 12px 0; }
.cm-doc-name small { display: block; margin-top: 2px; font-size: 14px; font-weight: 500; color: var(--text-dim); }
.cm-doc-cat { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.cm-doc-dl { justify-self: end; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); }
.cm-doc-dl em { font-style: normal; padding: 3px 8px; border-radius: 6px; background: #E2EEFA; color: #1F5E9C; font-size: 12px; }
.cm-doc-dl svg { width: 18px; height: 18px; }
.cm-doc[hidden] { display: none; }
.cm-doc-empty { padding: 40px 20px; text-align: center; font-size: 16px; font-weight: 500; color: var(--text-muted); }
.cm-doc-empty a { color: var(--accent); font-weight: 600; cursor: pointer; }

/* ── ABOUT THE COMMUNITY ── */
.cm-about { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
/* five cards: the features card spans two columns so the grid stays full */
.cm-about-5 .cm-about-card:first-child { grid-column: span 2; }
.cm-about-4 .cm-about-card:first-child { grid-column: 1 / -1; }
.cm-about-card { background: var(--bg-white); border-radius: var(--radius); padding: 24px 24px 26px; display: flex; flex-direction: column; }
.cm-about-card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.cm-about-card p { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--text-muted); }

/* ── GOOD TO KNOW ── */
.cm-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cm-fact { background: var(--bg-white); border-radius: var(--radius); padding: 24px; }
.cm-doodle { display: block; width: 72px; height: 72px; margin: -4px 0 14px -4px; }
.cm-fact h3 { margin: 0 0 6px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.cm-fact p { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--text-muted); }

.cm-accordion { margin-top: 12px; background: var(--bg-white); border-radius: var(--radius); padding: 4px 32px; }
.cm-accordion > details > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em;
}
.cm-accordion details details summary { font-size: 17px; padding: 18px 0; }
.cm-accordion summary::-webkit-details-marker { display: none; }
.cm-accordion summary svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--gray); transition: transform 0.25s; }
.cm-accordion details[open] > summary svg { transform: rotate(180deg); }
.cm-accordion details details { border-top: 1px solid var(--line); }
.cm-body { padding: 0 0 22px; font-size: 16px; font-weight: 500; line-height: 1.6; color: var(--text-muted); }
.cm-body ul { list-style: none; margin: 12px 0 0; padding: 0; }
.cm-body li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.cm-body li::before { content: ''; position: absolute; left: 4px; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.cm-more {
  margin-top: 12px; background: var(--bg-white); border-radius: var(--radius); padding: 20px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
}
.cm-more p { margin: 0; font-size: 16px; font-weight: 500; color: var(--text-muted); }
.cm-more-links { display: flex; gap: 24px; flex-wrap: wrap; }
.cm-more-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; color: var(--accent); text-decoration: none; }
.cm-more-links a:hover { color: var(--accent-hover); }
.cm-more-links svg { width: 16px; height: 16px; }

/* ── CTA (same as the landing page's, with resident copy) ── */
.cta-section { background: var(--bg); padding: 115px 0 80px; overflow-x: clip; }
.cta-inner { display: flex; align-items: flex-start; gap: 0; }
.cta-text { flex: 0 0 auto; position: relative; z-index: 1; }
.cta-section h2 { font-size: 64px; font-weight: 600; letter-spacing: -0.03em; line-height: 95%; margin: 0 0 32px; }
.cta-image { flex: 1; border-radius: 12px; overflow: hidden; margin-left: 50px; margin-top: 70px; }
.cta-image img { width: 100%; height: auto; display: block; }
@media (min-width: 769px) { .cta-image { overflow: visible; } .cta-image img { transform: translate(-130px, -45px) scale(1.72); transform-origin: left center; } }

.cm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px; border-radius: var(--radius); border: none; cursor: pointer;
  background: var(--accent); color: #fff; text-decoration: none;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; transition: background 0.2s;
}
.cm-btn:hover { background: var(--accent-hover); }
.cm-btn:disabled { opacity: 0.6; cursor: not-allowed; }
/* ── FORM FIELDS ── */
.cm-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: none; background: #F1F0F4; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text); }
.cm-close svg { width: 16px; height: 16px; }
.cm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cm-field { margin-bottom: 16px; }
.cm-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.cm-field input, .cm-field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #DCDAE0; border-radius: var(--radius-sm);
  background: #fff; color: var(--text); font-size: 16px; font-weight: 500; transition: border-color 0.2s, box-shadow 0.2s;
}
.cm-field input::placeholder, .cm-field textarea::placeholder { color: var(--text-dim); }
.cm-field input:focus, .cm-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(33,100,166,0.12); }
.cm-field textarea { resize: vertical; min-height: 110px; }
.cm-form-msg { margin: 12px 0 0; font-size: 14px; font-weight: 500; color: #B42318; }
.cm-sent { text-align: center; padding: 24px 0 8px; }
.cm-sent-ico { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: #E3F6EC; color: #1E7A4C; display: flex; align-items: center; justify-content: center; }
.cm-sent-ico svg { width: 26px; height: 26px; }

@media (max-width: 1100px) {
  .cm-script { left: 0; }
  .cm-tasks { grid-template-columns: repeat(2, 1fr); }
  .cm-tasks > :last-child { grid-column: 1 / -1; }
  .cm-tasks:has(> :nth-child(2):last-child) > :last-child { grid-column: auto; }
  .cm-facts { grid-template-columns: repeat(2, 1fr); }
  .cm-about { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .cm-container { padding: 0 40px; }
  .cm-hero h1 { font-size: 48px; }
  .cm-section-title { font-size: 36px; }
  .cm-script { position: static; transform: none; justify-content: center; margin-bottom: 8px; }
  .cm-panel { padding: 40px 40px 0; }
  .cta-section h2 { font-size: 48px; }
}
@media (max-width: 768px) {
  section p { line-height: 1.4 !important; }
  .cm-container { padding: 0 16px; }
  .cm-section { padding-top: 64px; }
  .cm-hero { padding: 48px 0 28px; }
  .cm-hero h1 { font-size: 38px; }
  .cm-hero-sub { font-size: 16px; margin-top: 14px; }
  .cm-photos { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cm-photo { height: 150px; }

  .cm-title-row { margin-bottom: 28px; }
  .cm-script { justify-content: flex-end; margin: -8px 0 30px; transform: rotate(-10deg); transform-origin: right center; }
  .cm-script span { font-size: 25px; }
  .cm-script svg:not(.cm-arrow-m) { display: none; }
  .cm-script .cm-arrow-m { display: block; order: -1; transform: scaleX(-1); }
  .cm-script .cm-arrow-m path { stroke-width: 1.5; }
  .cm-section-title { font-size: 32px; }
  .cm-section-sub { font-size: 14px; margin-top: 12px; }

  .cm-tasks { gap: 8px; }
  .cm-task-art { height: 84px; padding-left: 14px; }
  .cm-chip-card { padding: 10px 12px 14px; font-size: 12px; gap: 8px; }
  .cm-chip-card .cm-pill { display: none; }
  .cm-chip-ico { width: 24px; height: 24px; }
  .cm-task-body { padding: 16px 16px 18px; }
  .cm-task h3 { font-size: 17px; }
  .cm-task p { font-size: 14px; }
  .cm-task-go { font-size: 14px; padding-top: 12px; }
  .cm-task-links { padding-top: 8px; }
  .cm-task-links a { font-size: 14px; padding: 7px 0; gap: 8px; line-height: 1.25; }
  .cm-task-links svg { flex-shrink: 0; }
  .cm-task-links svg, .cm-task-go svg { width: 14px; height: 14px; }

  .cm-order-card { padding: 24px 20px; margin-top: 8px; }
  .cm-order-title { font-size: 26px; }
  .cm-order .cm-order-types { margin: 0 0 20px; padding: 0; flex-wrap: wrap; overflow: visible; gap: 6px; }
  .cm-order .cm-order-types .cm-filter { padding: 8px 12px; font-size: 13px; }
  .cm-order .cm-btn { width: 100%; }
  .cm-panel { padding: 24px 16px 0; }
  .cm-window { box-shadow: -6px 10px 0 var(--purple-dark); }
  .cm-window-top { padding: 14px; gap: 12px; }
  .cm-search { min-width: 0; flex-basis: 100%; }
  .cm-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 0 14px; scrollbar-width: none; }
  .cm-filters::-webkit-scrollbar { display: none; }
  .cm-doc-head { display: none; }
  .cm-doc { grid-template-columns: 1fr auto; padding: 0 14px; }
  .cm-doc-cat { display: none; }
  .cm-doc-name { font-size: 15px; }
  .cm-doc-name small { font-size: 13px; }
  .cm-doc-dl em { display: none; }

  .cm-facts { gap: 8px; }
  .cm-about { grid-template-columns: 1fr; gap: 8px; }
  .cm-about-5 .cm-about-card:first-child { grid-column: auto; }
  .cm-about-card { padding: 18px 18px 20px; }
  .cm-about-card h3 { font-size: 17px; }
    .cm-fact { padding: 16px; }
  .cm-doodle { width: 58px; height: 58px; margin-bottom: 10px; }
  .cm-fact h3 { font-size: 16px; }
  .cm-fact p { font-size: 13px; }
  .cm-more { padding: 18px 20px; margin-top: 8px; }
  .cm-more p, .cm-more-links a { font-size: 14px; }
  .cm-more-links { flex-direction: column; gap: 10px; }
  .cm-accordion { padding: 2px 20px; }
  .cm-accordion > details > summary { font-size: 17px; padding: 18px 0; }
  .cm-accordion details details summary { font-size: 15px; }
  .cm-body { font-size: 14px; line-height: 1.4; }

  .cta-section { padding: 66px 0 48px !important; }
  .cta-inner { flex-direction: column !important; }
  .cta-text { text-align: left; }
  .cta-image { margin-left: 0 !important; margin-right: 0 !important; margin-top: 20px; }
  .cta-section h2 { font-size: 38px; margin-bottom: 64px !important; }

  .cm-form-row { grid-template-columns: 1fr; gap: 0; }
  .cm-order fieldset .cm-form-row { gap: 10px; }
  .cm-choices { gap: 6px; }
  .cm-choice span { padding: 10px 13px; font-size: 14px; gap: 7px; }
}
