/*
Theme Name: Celestate Properties
Theme URI: https://celestateproperties.com
Description: Astra child theme for Celestate Properties. Carries the site design: colours, typography, buttons, forms and spacing.
Author: Celestate Properties
Template: astra
Version: 1.0.0
Text Domain: celestate
*/

/* =========================================================
   1. DESIGN TOKENS
   Change a value here and it updates across the whole site.
   ========================================================= */

:root {
  --cp-ink:         #14201C;
  --cp-body:        #3A4541;
  --cp-muted:       #5A6460;
  --cp-ground:      #FAF8F4;
  --cp-surface:     #FFFFFF;
  --cp-line:        #E3DED4;
  --cp-line-soft:   #EFEBE2;

  --cp-accent:      #1F5F5B;
  --cp-accent-dark: #16453F;

  --cp-sand:        #EFE7DA;
  --cp-sand-line:   #DCCFB8;
  --cp-sand-deep:   #F6F1E7;
  --cp-sand-text:   #6B5B3E;

  --cp-chip-bg:     #EDF4F1;
  --cp-chip-line:   #C9D9D2;
  --cp-chip-text:   #1A4E44;

  --cp-alert:       #8C3A2B;

  --cp-font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --cp-font-body:    'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --cp-radius:      3px;
  --cp-radius-card: 4px;
  --cp-control-h:   48px;
}

/* =========================================================
   2. TYPOGRAPHY
   ========================================================= */

body,
.ast-container,
button, input, select, textarea,
.elementor-widget-text-editor {
  font-family: var(--cp-font-body);
}

body {
  background-color: var(--cp-ground);
  color: var(--cp-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title,
.elementor-heading-title,
.ast-archive-title {
  font-family: var(--cp-font-display);
  color: var(--cp-ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1, .entry-title { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -0.015em; }
h2 { font-size: clamp(26px, 3vw, 34px); }
h3 { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.3; }
h4 { font-size: 18px; line-height: 1.35; }

p { margin: 0 0 1.1em; }

.site-title,
.site-title a {
  font-family: var(--cp-font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cp-ink);
}

.site-description {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cp-muted);
}

/* Small uppercase labels, as used on the demo cards */
.cp-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--cp-muted);
}

::selection { background: var(--cp-chip-bg); color: var(--cp-ink); }

/* =========================================================
   3. LINKS
   ========================================================= */

a { color: var(--cp-accent); text-decoration: none; }
a:hover, a:focus { color: var(--cp-accent-dark); text-decoration: underline; }

.main-header-menu a,
.ast-header-break-point .main-navigation a {
  color: var(--cp-ink);
  font-weight: 500;
  text-decoration: none;
}
.main-header-menu a:hover { color: var(--cp-accent); }

:focus-visible {
  outline: 2px solid var(--cp-accent);
  outline-offset: 2px;
}

/* =========================================================
   4. BUTTONS
   ========================================================= */

.ast-button,
.wp-block-button__link,
.elementor-button,
input[type="submit"],
button[type="submit"],
.wpforms-submit {
  font-family: var(--cp-font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  min-height: var(--cp-control-h);
  padding: 15px 26px;
  border: 0;
  border-radius: var(--cp-radius);
  background-color: var(--cp-accent);
  color: var(--cp-surface);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease;
}

.ast-button:hover,
.wp-block-button__link:hover,
.elementor-button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover,
.wpforms-submit:hover {
  background-color: var(--cp-accent-dark);
  color: var(--cp-surface);
  text-decoration: none;
}

/* Secondary: outlined */
.cp-btn-secondary,
.is-style-outline .wp-block-button__link {
  background-color: transparent;
  color: var(--cp-ink);
  border: 1px solid var(--cp-sand-line);
}
.cp-btn-secondary:hover,
.is-style-outline .wp-block-button__link:hover {
  background-color: var(--cp-surface);
  border-color: var(--cp-ink);
  color: var(--cp-ink);
}

/* Dark: used for the main commitment action, e.g. Request a viewing */
.cp-btn-dark {
  background-color: var(--cp-ink);
  color: var(--cp-surface);
}
.cp-btn-dark:hover { background-color: #0C1512; color: var(--cp-surface); }

/* Every tap target stays finger-sized on phones */
.ast-button, .elementor-button, button, input[type="submit"],
.wp-block-button__link, .cp-icon-btn {
  min-height: 44px;
}

/* =========================================================
   5. FORMS
   ========================================================= */

input[type="text"], input[type="email"], input[type="tel"],
input[type="url"], input[type="number"], input[type="search"],
input[type="password"], input[type="date"],
select, textarea,
.wpforms-field input, .wpforms-field select, .wpforms-field textarea {
  font-family: var(--cp-font-body);
  font-size: 15px;
  color: var(--cp-ink);
  background-color: var(--cp-surface);
  border: 1px solid #D7D0C3;
  border-radius: var(--cp-radius);
  min-height: var(--cp-control-h);
  padding: 0 12px;
  box-shadow: none;
  transition: border-color .15s ease;
}

textarea, .wpforms-field textarea { padding: 12px; line-height: 1.6; }

input:focus, select:focus, textarea:focus {
  border-color: var(--cp-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 95, 91, .12);
}

input::placeholder, textarea::placeholder { color: #9AA29E; }

label, .wpforms-field-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--cp-muted);
}

input[type="checkbox"], input[type="radio"] {
  width: 17px;
  height: 17px;
  min-height: 0;
  accent-color: var(--cp-accent);
}

/* =========================================================
   6. SURFACES, CARDS AND CHIPS
   Shared pieces the property pages will reuse in Phase 2.
   ========================================================= */

.cp-card {
  background: var(--cp-surface);
  border: 1px solid var(--cp-line);
  border-radius: var(--cp-radius-card);
  overflow: hidden;
}

.cp-panel-warm {
  background: var(--cp-sand-deep);
  border: 1px solid var(--cp-sand-line);
  border-radius: var(--cp-radius-card);
  color: var(--cp-sand-text);
}

.cp-photo-placeholder {
  background: var(--cp-sand);
  border: 1px solid var(--cp-sand-line);
  color: var(--cp-muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Energy class / status chip */
.cp-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 2px;
  background: var(--cp-chip-bg);
  border: 1px solid var(--cp-chip-line);
  color: var(--cp-chip-text);
}

.cp-chip--land {
  background: var(--cp-sand-deep);
  border-color: var(--cp-sand-line);
  color: var(--cp-sand-text);
}

/* Status badge: For sale / Reserved */
.cp-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 2px;
  background: var(--cp-ink);
  color: var(--cp-surface);
}
.cp-badge--reserved { background: var(--cp-alert); }

/* Price, in the display face */
.cp-price {
  font-family: var(--cp-font-display);
  font-weight: 600;
  color: var(--cp-accent);
}

.cp-meta { font-size: 14px; color: var(--cp-muted); }

hr, .cp-divider { border: 0; border-top: 1px solid var(--cp-line-soft); margin: 24px 0; }

/* =========================================================
   7. HEADER AND FOOTER
   ========================================================= */

.site-header,
.ast-primary-header-bar {
  background-color: var(--cp-ground);
  border-bottom: 1px solid var(--cp-line);
}

.site-footer,
.ast-small-footer {
  background-color: var(--cp-surface);
  border-top: 1px solid var(--cp-line);
  color: var(--cp-muted);
  font-size: 14px;
}

/* =========================================================
   8. RESPONSIVE
   ========================================================= */

@media (max-width: 921px) {
  :root { --cp-gutter: 24px; }
  h1, .entry-title { font-size: clamp(28px, 7vw, 36px); }
}

@media (max-width: 544px) {
  :root { --cp-gutter: 16px; }
  body { font-size: 15px; }
}

/* Respect people who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* =========================================================
   9. ESTATIK — LISTING CARDS
   Class names taken from Estatik 4.3.5's own markup.
   ========================================================= */

.es-properties__list { gap: 28px; }

.es-listing {
  background: var(--cp-surface);
  border: 1px solid var(--cp-line);
  border-radius: var(--cp-radius-card);
  overflow: hidden;
  box-shadow: none;
  transition: border-color .15s ease;
}
.es-listing:hover { border-color: var(--cp-sand-line); }

.es-listing__image { background: var(--cp-sand); }

.es-listing__content,
.es-listing__content__inner { padding: 22px; }

.es-listing__title,
.es-listing__title a {
  font-family: var(--cp-font-body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--cp-ink);
  text-decoration: none;
}
.es-listing__title a:hover { color: var(--cp-accent); text-decoration: none; }

.es-price {
  font-family: var(--cp-font-display);
  font-size: 25px;
  font-weight: 600;
  color: var(--cp-accent);
  line-height: 1.1;
}

.es-address {
  font-size: 14px;
  color: var(--cp-muted);
  font-style: normal;
}

.es-listing__meta {
  font-size: 14px;
  color: var(--cp-body);
  gap: 18px;
}

.es-listing__footer {
  border-top: 1px solid var(--cp-line-soft);
  padding-top: 14px;
  margin-top: 14px;
}

.es-excerpt { font-size: 15px; line-height: 1.6; color: var(--cp-body); }

/* Status badges: For sale / Reserved / Sold */
.es-badge {
  font-family: var(--cp-font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 2px;
  background: var(--cp-ink);
  color: var(--cp-surface);
  border: 0;
}
.es-badges--rounded .es-badge { border-radius: 2px; }

.es-listing__terms .es-badge,
.es-single__header-terms .es-badge {
  background: var(--cp-chip-bg);
  border: 1px solid var(--cp-chip-line);
  color: var(--cp-chip-text);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 12px;
}

/* =========================================================
   10. ESTATIK — SINGLE PROPERTY
   ========================================================= */

.es-single__header { padding-bottom: 20px; border-bottom: 1px solid var(--cp-line); }

.es-single__header .es-price {
  font-size: clamp(30px, 3.4vw, 42px);
}

.es-property-section {
  background: var(--cp-surface);
  border: 1px solid var(--cp-line);
  border-radius: var(--cp-radius-card);
  padding: 28px;
  margin-bottom: 24px;
}

.es-property-section__title {
  font-family: var(--cp-font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--cp-ink);
  margin: 0 0 18px;
}

.es-property-section__content { font-size: 16px; line-height: 1.7; }

/* Fact rows inside a section read as a clean two-column list */
.es-property-section__content ul,
.es-property-section__content .es-list { list-style: none; margin: 0; padding: 0; }

.es-property-section__content li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--cp-line-soft);
  font-size: 15px;
}
.es-property-section__content li:last-child { border-bottom: 0; }

.es-gallery, .es-gallery__image { border-radius: var(--cp-radius-card); background: var(--cp-sand); }

/* Energy certificate scale (ΠΕΑ) — Estatik ships this, we just tone it */
.es-epc-ges-light__item {
  border-radius: 2px;
  font-family: var(--cp-font-body);
  font-weight: 500;
}
.es-epc-ges-light__item--active { outline: 2px solid var(--cp-ink); outline-offset: 1px; }

/* =========================================================
   11. ESTATIK — BUTTONS, CONTROLS, FORMS
   ========================================================= */

.es-btn {
  font-family: var(--cp-font-body);
  font-weight: 500;
  border-radius: var(--cp-radius);
  min-height: 44px;
}

.es-btn--primary { background: var(--cp-accent); color: var(--cp-surface); border-color: var(--cp-accent); }
.es-btn--primary:hover { background: var(--cp-accent-dark); border-color: var(--cp-accent-dark); color: var(--cp-surface); }

.es-btn--default,
.es-btn--gray {
  background: var(--cp-surface);
  color: var(--cp-ink);
  border: 1px solid #D7D0C3;
}
.es-btn--default:hover,
.es-btn--gray:hover { border-color: var(--cp-ink); background: var(--cp-surface); }

.es-control__item--wishlist .es-btn,
.es-control__item--sharing .es-btn {
  background: var(--cp-surface);
  border: 1px solid var(--cp-line);
  color: var(--cp-body);
  width: 44px;
  height: 44px;
}

.es-field__input,
.es-form input, .es-form select, .es-form textarea {
  font-family: var(--cp-font-body);
  font-size: 15px;
  min-height: var(--cp-control-h);
  border: 1px solid #D7D0C3;
  border-radius: var(--cp-radius);
  color: var(--cp-ink);
  background: var(--cp-surface);
}
.es-field__input:focus {
  border-color: var(--cp-accent);
  box-shadow: 0 0 0 3px rgba(31, 95, 91, .12);
  outline: none;
}

.es-listings-filter { border-bottom: 1px solid var(--cp-line); padding-bottom: 18px; }
.es-total { font-size: 16px; font-weight: 600; color: var(--cp-ink); }

/* The new Land & Buildability section gets the warm panel treatment,
   so a plot page reads differently from a flat. */
.es-property-section[class*="land-buildability"],
#land-buildability {
  background: var(--cp-chip-bg);
  border-color: var(--cp-chip-line);
}

/* =========================================================
   12. HEADER
   Logo left, navigation and contact actions right.
   ========================================================= */

.ast-primary-header-bar,
.site-header {
  background-color: var(--cp-ground);
  border-bottom: 1px solid var(--cp-line);
}

.ast-primary-header-bar .site-primary-header-wrap,
.ast-primary-header-bar .ast-container {
  min-height: 88px;
}

.site-logo-img img,
.custom-logo-link img { max-height: 52px; width: auto; }

/* Navigation */
.main-header-menu > .menu-item > .menu-link {
  font-family: var(--cp-font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--cp-ink);
  letter-spacing: 0;
  text-transform: none;
  padding-inline: 14px;
}
.main-header-menu > .menu-item > .menu-link:hover,
.main-header-menu > .current-menu-item > .menu-link {
  color: var(--cp-accent);
}

/* Dropdown */
.main-header-menu .sub-menu {
  background: var(--cp-surface);
  border: 1px solid var(--cp-line);
  border-radius: var(--cp-radius-card);
  box-shadow: 0 8px 28px rgba(20, 32, 28, .08);
  padding: 8px 0;
  min-width: 220px;
}
.main-header-menu .sub-menu .menu-link {
  font-size: 14.5px;
  color: var(--cp-body);
  padding: 11px 18px;
  border: 0;
}
.main-header-menu .sub-menu .menu-link:hover {
  background: var(--cp-chip-bg);
  color: var(--cp-accent-dark);
}

/* Phone + WhatsApp block */
.cp-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.cp-header-phone {
  font-family: var(--cp-font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--cp-ink);
  text-decoration: none;
}
.cp-header-phone:hover { color: var(--cp-accent); text-decoration: none; }

.cp-header-wa {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 20px;
  background: var(--cp-accent);
  color: var(--cp-surface);
  border-radius: var(--cp-radius);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.cp-header-wa:hover { background: var(--cp-accent-dark); color: var(--cp-surface); text-decoration: none; }

@media (max-width: 1100px) {
  .cp-header-phone { display: none; }
}
@media (max-width: 921px) {
  .cp-header-actions { gap: 10px; }
  .cp-header-wa { height: 44px; padding: 0 16px; }
}

/* ---- Header corrections -------------------------------------------------
   Astra injects its own colour and spacing for header HTML sections and the
   primary bar, with higher specificity than the rules above. These win it back.
   -------------------------------------------------------------------------- */

.ast-primary-header-bar .ast-builder-html-element .cp-header-phone,
.site-header .cp-header-actions .cp-header-phone {
  color: var(--cp-ink) !important;
  font-size: 15px !important;
  font-weight: 500;
  text-decoration: none;
}
.ast-primary-header-bar .ast-builder-html-element .cp-header-phone:hover,
.site-header .cp-header-actions .cp-header-phone:hover {
  color: var(--cp-accent) !important;
}

.ast-primary-header-bar .ast-builder-html-element .cp-header-wa,
.site-header .cp-header-actions .cp-header-wa {
  color: #FFFFFF !important;
  background: var(--cp-accent);
  text-decoration: none;
}
.ast-primary-header-bar .ast-builder-html-element .cp-header-wa:hover {
  background: var(--cp-accent-dark);
  color: #FFFFFF !important;
}

/* Header row: roomy enough to read comfortably */
.ast-primary-header-bar.ast-primary-header.main-header-bar,
.ast-primary-header-bar .site-primary-header-wrap {
  min-height: 110px;
}

/* Astra adds generous margins to header HTML blocks; we place our own. */
.ast-primary-header-bar .ast-builder-html-element { margin: 0; }
.ast-primary-header-bar .ast-builder-html-element p:last-child { margin-bottom: 0; }

/* ---- Menu and submenu: sized for comfortable reading --------------------- */

.ast-primary-header-bar .main-header-menu > .menu-item > .menu-link {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}

/* Dropdown: bigger type, more room, clearer separation */
.ast-primary-header-bar .main-header-menu .sub-menu {
  min-width: 268px;
  padding: 10px 0;
  border: 1px solid var(--cp-line);
  border-radius: var(--cp-radius-card);
  box-shadow: 0 10px 30px rgba(20, 32, 28, .10);
}

.ast-primary-header-bar .main-header-menu .sub-menu .menu-link {
  font-size: 16px;
  line-height: 1.45;
  padding: 14px 24px;
  color: var(--cp-body);
}

.ast-primary-header-bar .main-header-menu .sub-menu .menu-item:hover > .menu-link,
.ast-primary-header-bar .main-header-menu .sub-menu .menu-link:hover {
  background: var(--cp-chip-bg);
  color: var(--cp-accent-dark);
}

/* The dropdown arrow needs a little breathing room from the label */
.ast-primary-header-bar .main-header-menu .ast-icon { margin-left: 6px; }

@media (max-width: 921px) {
  .ast-primary-header-bar.ast-primary-header.main-header-bar,
  .ast-primary-header-bar .site-primary-header-wrap { min-height: 76px; }
}

/* =========================================================
   13. FOOTER
   Four columns over a legal bar, as in the demo.
   ========================================================= */

.site-footer,
.site-above-footer-wrap,
.site-primary-footer-wrap {
  background-color: var(--cp-surface);
  color: var(--cp-muted);
}

.site-primary-footer-wrap {
  padding-block: 48px 40px;
  border-top: 1px solid var(--cp-line);
}

.cp-foot-logo {
  font-family: var(--cp-font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cp-ink);
}

.cp-foot-sub {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--cp-muted);
  margin-top: 3px;
}

.cp-foot-address {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cp-muted);
}

.cp-foot-col h3 {
  font-family: var(--cp-font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--cp-muted);
  margin: 0 0 16px;
}

.cp-foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.cp-foot-col a {
  font-size: 14px;
  color: var(--cp-accent);
  text-decoration: none;
}
.cp-foot-col a:hover { color: var(--cp-accent-dark); text-decoration: underline; }

/* Legal bar */
.site-below-footer-wrap {
  border-top: 1px solid var(--cp-line);
  background-color: var(--cp-surface);
  min-height: 68px;
  font-size: 13px;
  color: var(--cp-muted);
}
.site-below-footer-wrap .ast-builder-html-element p { margin: 0; }

.cp-foot-legal { display: flex; gap: 22px; justify-content: flex-end; }
.cp-foot-legal a { font-size: 13px; color: var(--cp-muted); text-decoration: none; }
.cp-foot-legal a:hover { color: var(--cp-accent); text-decoration: underline; }

@media (max-width: 921px) {
  .site-primary-footer-wrap { padding-block: 36px 28px; }
  .cp-foot-legal { justify-content: flex-start; margin-top: 12px; }
}

/* =========================================================
   14. PROPERTY & LAND DETAIL BLOCKS (Phase 5)
   ========================================================= */

.cp-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 8px;
}

.cp-fact {
  box-sizing: border-box;
  min-height: 104px;
  padding: 18px;
  background: var(--cp-surface);
  border: 1px solid var(--cp-line);
  border-radius: var(--cp-radius-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.cp-fact__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--cp-muted);
}

.cp-fact__value {
  font-family: var(--cp-font-display);
  font-size: 23px;
  font-weight: 600;
  color: var(--cp-ink);
  line-height: 1.15;
}

/* Panels */
.cp-panel {
  background: var(--cp-surface);
  border: 1px solid var(--cp-line);
  border-radius: var(--cp-radius-card);
  padding: 28px;
  margin-bottom: 24px;
}

.cp-panel h2 {
  font-family: var(--cp-font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
}

.cp-panel p { margin: 0; font-size: 15px; line-height: 1.65; }
.cp-panel__lead { color: var(--cp-muted); margin-bottom: 22px !important; }

/* The buildability panel is the page's centrepiece on a plot */
.cp-panel--build {
  background: var(--cp-chip-bg);
  border-color: var(--cp-chip-line);
}
.cp-panel--build .cp-fact {
  background: transparent;
  border: 0;
  padding: 0;
  min-height: 0;
}
.cp-panel--build .cp-fact__value { font-size: 30px; }
.cp-panel--build .cp-fact__label { color: #4A6660; }
.cp-facts--build { margin: 0; gap: 20px; }

.cp-panel__sum {
  margin-top: 24px !important;
  padding-top: 20px;
  border-top: 1px solid var(--cp-chip-line);
  font-size: 16px;
  color: #2C4A43;
}
.cp-panel__sum strong {
  font-family: var(--cp-font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--cp-accent);
}

.cp-panel--warm {
  background: var(--cp-sand-deep);
  border-color: var(--cp-sand-line);
  color: var(--cp-sand-text);
}
.cp-panel--warm h2 { color: #4A4436; font-size: 18px; }
.cp-panel--warm p { color: #4A4436; font-size: 14px; }

.cp-panel--docs ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.cp-panel--docs li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--cp-ink);
}
.cp-panel--docs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--cp-accent);
  border-bottom: 2px solid var(--cp-accent);
  transform: rotate(-45deg);
}
.cp-panel--docs p { font-size: 13px; color: var(--cp-muted); }

/* Side-by-side panels under the listing */
.cp-aside-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.cp-aside-row .cp-panel { margin-bottom: 0; }

/* Plain-language zoning explainer */
.cp-explainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--cp-line);
}
.cp-explainer h3 { font-size: 18px; font-weight: 600; margin: 0 0 10px; }
.cp-explainer p { margin: 0; font-size: 15px; line-height: 1.65; }

@media (max-width: 921px) {
  .cp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-panel { padding: 22px; }
}
@media (max-width: 544px) {
  .cp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cp-fact__value { font-size: 20px; }
}
