/* Cedarwick Press V5 — final controlled contrast and editorial polish */

/* Dark editorial values grid: cream copy and antique-gold indices on cedar. */
.cedarwick-site .section-dark .values-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(227, 195, 143, 0.72);
  border-bottom: 1px solid rgba(227, 195, 143, 0.72);
}

.cedarwick-site .section-dark .values-grid article {
  min-height: 100%;
  padding: clamp(1.5rem, 3vw, 2.35rem);
  border: 0;
  border-right: 1px solid rgba(251, 247, 239, 0.24);
  border-radius: 0;
  background: rgba(251, 247, 239, 0.035);
  box-shadow: none;
  color: #fbf7ef;
}

.cedarwick-site .section-dark .values-grid article:last-child {
  border-right: 0;
}

.cedarwick-site .section-dark .values-grid article > span {
  margin-bottom: clamp(1.7rem, 3vw, 2.5rem);
  color: #e3c38f;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.cedarwick-site .section-dark .values-grid h3 {
  color: #fbf7ef;
}

.cedarwick-site .section-dark .values-grid p {
  color: #e8ddca;
  line-height: 1.7;
}

/* Dark form contrast: pale paper controls with dark entered text. */
.cedarwick-site .section-dark .form-card {
  border: 1px solid rgba(227, 195, 143, 0.74);
  border-radius: 0;
  background: rgba(13, 34, 48, 0.3);
  box-shadow: none;
}

.cedarwick-site .section-dark .form-card label,
.cedarwick-site .section-dark .form-card .checkbox span,
.cedarwick-site .section-dark .form-card .form-status {
  color: #fbf7ef;
}

.cedarwick-site .section-dark .form-card input:not([type="checkbox"]),
.cedarwick-site .section-dark .form-card select,
.cedarwick-site .section-dark .form-card textarea {
  border: 1px solid #b69765;
  border-radius: 2px;
  background: #fffaf1;
  color: #202724;
  caret-color: #6b3037;
}

.cedarwick-site .section-dark .form-card select option {
  background: #fffaf1;
  color: #202724;
}

.cedarwick-site .section-dark .form-card input[type="checkbox"] {
  accent-color: #c79b4f;
}

.cedarwick-site .section-dark .form-card a {
  color: #f0cd8b;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.cedarwick-site .section-dark .form-card .button {
  border-color: #fbf7ef;
  background: #6b3037;
  color: #fffaf1;
}

.cedarwick-site .section-dark .form-card .button:hover {
  border-color: #e3c38f;
  background: #0d2230;
  color: #fffaf1;
}

.cedarwick-site .section-dark .form-card input:focus-visible,
.cedarwick-site .section-dark .form-card select:focus-visible,
.cedarwick-site .section-dark .form-card textarea:focus-visible,
.cedarwick-site .section-dark .form-card button:focus-visible,
.cedarwick-site .section-dark .form-card a:focus-visible {
  outline: 3px solid #e3c38f;
  outline-offset: 3px;
}

/* Author and agent query: warm paper, brass rules, restrained depth. */
.cedarwick-site .cw-inquiry-form {
  gap: 1.15rem;
  padding: clamp(1.5rem, 3vw, 2.35rem);
  border: 1px solid rgba(128, 96, 47, 0.48);
  border-top: 3px solid #80602f;
  border-radius: 2px;
  background: linear-gradient(145deg, #f8f1e5, #f2e6d4);
  box-shadow: 0 18px 44px rgba(32, 39, 36, 0.08);
}

.cedarwick-site .cw-inquiry-form label:not(.checkbox) {
  gap: 0.5rem;
  color: #0d2230;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.045em;
}

.cedarwick-site .cw-inquiry-form input,
.cedarwick-site .cw-inquiry-form select,
.cedarwick-site .cw-inquiry-form textarea {
  border: 1px solid #9b8a70;
  border-radius: 2px;
  background: #fffaf1;
  color: #202724;
}

.cedarwick-site .cw-inquiry-form input:focus-visible,
.cedarwick-site .cw-inquiry-form select:focus-visible,
.cedarwick-site .cw-inquiry-form textarea:focus-visible {
  border-color: #80602f;
  outline: 2px solid #80602f;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(167, 124, 63, 0.17);
}

.cedarwick-site .cw-inquiry-form .checkbox {
  gap: 0.75rem;
  color: #38443f;
  line-height: 1.55;
}

.cedarwick-site .cw-inquiry-form .checkbox input {
  accent-color: #6b3037;
}

.cedarwick-site .cw-inquiry-form .cw-editorial-button {
  justify-self: start;
  border-color: #6b3037;
  background: #6b3037;
  color: #fffaf1;
}

.cedarwick-site .cw-inquiry-form .cw-editorial-button:hover {
  border-color: #0d2230;
  background: #0d2230;
  color: #fffaf1;
}

.cedarwick-site .cw-inquiry-form .form-status {
  color: #505a55;
}

/* Contact route: preserve the grid while clarifying hierarchy and links. */
.cedarwick-site .cedarwick-contact-grid {
  border-color: rgba(128, 96, 47, 0.48);
  background: #f4eadb;
}

.cedarwick-site .cedarwick-contact-card {
  padding: clamp(1.8rem, 4vw, 2.7rem);
  background: #f8f1e5;
}

.cedarwick-site .cedarwick-contact-card:nth-child(even) {
  background: #f1e4d1;
}

.cedarwick-site .cedarwick-contact-card .eyebrow {
  color: #6b3037;
}

.cedarwick-site .cedarwick-contact-card .cw-contact-address {
  margin: 0.35rem 0 1rem;
  color: #0d2230;
}

.cedarwick-site .cedarwick-contact-card p:not(.eyebrow) {
  color: #38443f;
  line-height: 1.7;
}

.cedarwick-site .cedarwick-contact-card a {
  color: #6b3037;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(107, 48, 55, 0.5);
  text-underline-offset: 0.22em;
}

.cedarwick-site .cedarwick-contact-card a:hover {
  color: #0d2230;
  text-decoration-color: currentColor;
}

/* General legibility sweep across editorial metadata and utility copy. */
.cedarwick-site .cw-book-category,
.cedarwick-site .cw-shelf-columns span {
  color: #80602f;
}

.cedarwick-site .cw-book-author,
.cedarwick-site .publisher-attribution,
.cedarwick-site .cedarwick-header-wordmark-wrap small {
  color: #505a55;
}

.cedarwick-site .section-dark .lead-sm,
.cedarwick-site .section-dark .section-heading > p:not(.eyebrow) {
  color: #e8ddca;
}

.cedarwick-site .section-dark .eyebrow,
.cedarwick-site .section-dark .status-label {
  color: #e3c38f;
}

.cedarwick-site .cedarwick-footer-identity p,
.cedarwick-site .cedarwick-footer-links a {
  color: #505a55;
}

.cedarwick-site .cedarwick-footer-bottom p,
.cedarwick-site .cedarwick-footer-bottom a {
  color: #59625d;
}

.cedarwick-site .cedarwick-footer-links a:hover,
.cedarwick-site .cedarwick-footer-bottom a:hover {
  color: #6b3037;
  text-decoration: underline;
}

@media (max-width: 980px) {
  .cedarwick-site .section-dark .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cedarwick-site .section-dark .values-grid article:nth-child(2n) {
    border-right: 0;
  }

  .cedarwick-site .section-dark .values-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(251, 247, 239, 0.24);
  }
}

@media (max-width: 680px) {
  .cedarwick-site .section-dark .values-grid {
    grid-template-columns: 1fr;
  }

  .cedarwick-site .section-dark .values-grid article,
  .cedarwick-site .section-dark .values-grid article:nth-child(2n),
  .cedarwick-site .section-dark .values-grid article:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgba(251, 247, 239, 0.24);
  }

  .cedarwick-site .section-dark .values-grid article:last-child {
    border-bottom: 0;
  }

  .cedarwick-site .section-dark .form-card,
  .cedarwick-site .cw-inquiry-form {
    padding: 1.35rem;
  }
}

/* 2026-08-28 real-device repair. The accepted publishing presentation had
   desktop-oriented package spreads with overflow:visible!important. On Android
   that let intrinsic artwork widths escape their grid tracks and triggered text
   autosizing, producing clipped/giant package titles. Keep the approved content
   and artwork, but make the Cedarwick standalone layout own its mobile bounds. */
html:has(body.cedarwick-site),
body.cedarwick-site {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (max-width: 760px) {
  body.cedarwick-site,
  .cedarwick-site main,
  .cedarwick-site main > section {
    max-width: 100%;
    overflow-x: clip;
  }

  .cedarwick-site .system-detail-intro,
  .cedarwick-site .team-system-intro,
  .cedarwick-site .publishing-offer-grid,
  .cedarwick-site .publishing-offer-card,
  .cedarwick-site .system-package-spread,
  .cedarwick-site .system-package-spread > *,
  .cedarwick-site .package-handbook,
  .cedarwick-site .package-piece,
  .cedarwick-site .package-piece > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .cedarwick-site .system-detail-intro,
  .cedarwick-site .team-system-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }

  .cedarwick-site .system-package-spread,
  .cedarwick-site .compact-spread,
  .cedarwick-site .detail-spread {
    margin-inline: 0 !important;
    overflow: hidden !important;
  }

  .cedarwick-site .system-package-spread .package-piece,
  .cedarwick-site .offer-workbook .package-piece {
    overflow: hidden !important;
  }

  .cedarwick-site .system-package-spread img,
  .cedarwick-site .offer-workbook .package-piece img {
    max-width: 100% !important;
    height: auto !important;
  }

  .cedarwick-site .system-package-spread .package-handbook img {
    width: min(68vw, 280px) !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 360px !important;
  }

  .cedarwick-site .system-package-spread .package-piece strong,
  .cedarwick-site .offer-workbook .package-piece strong {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.22 !important;
  }

  .cedarwick-site .publishing-offer-card h3,
  .cedarwick-site .system-detail-intro h2,
  .cedarwick-site .team-system-intro h2,
  .cedarwick-site .section-heading h2 {
    max-width: 100%;
    font-size: clamp(1.9rem, 8.6vw, 2.85rem);
    line-height: 1.06;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .cedarwick-site .button-row {
    flex-wrap: wrap;
    max-width: 100%;
  }

  .cedarwick-site .button-row > * {
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .cedarwick-site .system-package-spread.self-study-spread,
  .cedarwick-site .compact-spread.self-study-spread,
  .cedarwick-site .detail-spread.self-study-spread {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "handbook"
      "workbook"
      "course"
      "cases"
      "quick"
      "aids" !important;
    grid-auto-rows: auto !important;
    gap: 1.75rem !important;
  }

  .cedarwick-site .system-package-spread.team-spread,
  .cedarwick-site .compact-spread.team-spread,
  .cedarwick-site .detail-spread.team-spread {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "handbook"
      "instructor"
      "deck"
      "participants"
      "answer" !important;
    grid-auto-rows: auto !important;
    gap: 1.75rem !important;
  }

  .cedarwick-site .system-package-spread .package-handbook {
    min-height: 0 !important;
    padding: 0 0 0.4rem !important;
  }

  .cedarwick-site .system-package-spread .package-handbook img {
    width: min(82vw, 300px) !important;
    height: auto !important;
    max-height: 390px !important;
  }

  .cedarwick-site .system-package-spread .package-piece,
  .cedarwick-site .offer-workbook .package-piece {
    min-height: 0 !important;
    height: auto !important;
    padding: 0.7rem 0 !important;
  }

  .cedarwick-site .system-package-spread .package-piece img,
  .cedarwick-site .system-package-spread .package-piece.job-aids img,
  .cedarwick-site .system-package-spread .package-piece.participant-pack img,
  .cedarwick-site .system-package-spread .package-piece.facilitator-deck img,
  .cedarwick-site .offer-workbook .package-piece img {
    width: auto !important;
    height: auto !important;
    max-width: min(78vw, 320px) !important;
    max-height: 250px !important;
    margin: 0 auto 0.8rem !important;
  }

  .cedarwick-site .system-package-spread .package-piece.job-aids img,
  .cedarwick-site .system-package-spread .package-piece.participant-pack img,
  .cedarwick-site .system-package-spread .package-piece.facilitator-deck img {
    max-width: min(86vw, 360px) !important;
  }

  .cedarwick-site .system-package-spread .package-piece strong,
  .cedarwick-site .offer-workbook .package-piece strong {
    font-size: clamp(1rem, 4.5vw, 1.22rem) !important;
  }

  .cedarwick-site .system-package-spread .package-piece small,
  .cedarwick-site .offer-workbook .package-piece small {
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
  }

  .cedarwick-site .section {
    padding-top: 3.15rem;
    padding-bottom: 3.15rem;
  }

  .cedarwick-site .page-hero h1,
  .cedarwick-site .system-detail-intro h2,
  .cedarwick-site .team-system-intro h2,
  .cedarwick-site .section-heading h2 {
    font-size: clamp(2rem, 9.6vw, 3rem) !important;
    line-height: 1.04 !important;
    overflow-wrap: anywhere;
  }

  .cedarwick-site .offer-kicker,
  .cedarwick-site .status-label {
    max-width: 100%;
    letter-spacing: 0.09em;
    overflow-wrap: anywhere;
  }
}


/* AI Power User founder-approved showcase */
.aipuh-founder-showcase-image{display:block;width:100%;height:auto;margin:clamp(1.25rem,3vw,2.5rem) auto 0;border-radius:16px;box-shadow:0 22px 52px rgba(9,24,35,.18)}
