/* /castroville. Loads after landing.css and dominion.css and reuses the Dominion page's layout,
 * re-dressed in Castroville's own materials: lime plaster cream, dark oak timber, the green of
 * Alsatian shutters and the red Alsatian poppy. Only tokens and the Castroville-only pieces
 * (timeline, neighborhood list, park photo row) live here. */

.cv-body {
  --dm-cream: #FAF6EC;
  --dm-stone: #F1E9D8;
  --dm-stone-line: #DCCDB2;
  /* Poppy red for rules and numerals. The darker step passes 4.5:1 on plaster for text. */
  --dm-gold: #C4382B;
  --dm-gold-text: #A02C21;
  --dm-deep: #2F4A3C;
  --cv-timber: #3A2A1E;
}

/* A thin timber beam under the header, the one ornament drawn from the half-timbered houses. */
.cv-body .dm-hero { border-bottom: 4px solid var(--cv-timber); }
.cv-hero-photo img { object-position: 50% 60%; }
.cv-place {
  margin: 0 0 18px; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--dm-gold-text);
}
.cv-body .dm-hero h1 em { color: var(--dm-gold-text); }
.cv-head-sub { margin: 18px 0 0; font-size: 17px; line-height: 1.75; max-width: 40em; }
.dm-head-light .cv-head-sub { color: rgba(255, 255, 255, 0.82); }
.cv-body .dm-head { max-width: 760px; }

/* ------------------------------------------------------------------ history */
.cv-history { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 72px; align-items: start; }
.cv-timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--cv-timber); }
.cv-timeline li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 20px; padding: 0 0 30px 26px; position: relative; }
.cv-timeline li::before {
  content: ''; position: absolute; left: -7px; top: 10px; width: 12px; height: 12px;
  background: var(--dm-gold); border: 2px solid var(--dm-stone); border-radius: 50%;
}
.cv-timeline li:last-child { padding-bottom: 0; }
.cv-year { font-family: var(--dm-serif); font-style: italic; font-weight: 500; font-size: 34px; line-height: 1; color: var(--dm-gold-text); }
.cv-timeline h3 { color: var(--ld-navy); }
.cv-timeline p { margin: 0; font-size: 15.5px; line-height: 1.7; max-width: 34em; }
.cv-history-photos { display: grid; gap: 22px; }
.cv-history-photos img { aspect-ratio: 4 / 3; object-fit: cover; border: 6px solid #FFFFFF; box-shadow: 0 1px 0 var(--dm-stone-line); }
.cv-credit { margin: 14px 0 0; font-size: 12.5px; color: var(--ld-ink-soft); }
.cv-credit a { color: inherit; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ new neighborhoods */
.cv-hoods { list-style: none; margin: -20px 0 48px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cv-hoods li {
  padding: 9px 16px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px;
  font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 600; color: #FFFFFF;
}
.cv-body .dm-pillars > div { border-top-color: rgba(232, 120, 104, 0.8); }

/* ------------------------------------------------------------------ park */
/* The source photos are small (about 400px), so they sit in a row of small frames, never stretched. */
.cv-park { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cv-park figure { margin: 0; }
.cv-park img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border: 6px solid #FFFFFF; }
.cv-park figcaption { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ld-navy); }
.cv-land { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: 40px; }
.cv-land li, .cv-land li:last-child { border-bottom: 0; }

@media (max-width: 960px) {
  .cv-history { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .cv-history-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .cv-history-photos .cv-credit { grid-column: 1 / -1; margin: 0; }
  .cv-park { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv-land { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .cv-timeline li { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-left: 20px; }
  .cv-year { font-size: 28px; }
  .cv-history-photos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cv-history-photos figure:first-child { grid-column: 1 / -1; }
  .cv-history-photos figcaption { font-size: 12px; }
  .cv-hoods { margin: -12px 0 36px; }
  .cv-hoods li { font-size: 13px; padding: 8px 13px; }
  .cv-park { gap: 12px; }
}
