/* Kıbrıs Psikoloji v35 — continuous section rhythm and editorial controls. */

/* Inner pages now use the same foreground divider language as the homepage.
   The :has guard prevents a generated divider where the editable block exists. */
:where(
  .kp-v29-about-story,
  .kp-v29-about-education,
  .kp-v29-principles,
  .kp-v29-cert-link-section,
  .kp-v29-services-page,
  .kp-v29-guidance-section,
  .kp-v29-online-features,
  .kp-v29-preparation-section,
  .kp-v30-appointment-page,
  .kp-v30-contact-process,
  .kp-certificates-page-archive,
  .kp-articles-page,
  .kp-legal-page
) {
  position:relative;
  isolation:isolate;
  border-top:0!important;
}

:where(
  .kp-v29-about-story,
  .kp-v29-about-education,
  .kp-v29-principles,
  .kp-v29-cert-link-section,
  .kp-v29-services-page,
  .kp-v29-guidance-section,
  .kp-v29-online-features,
  .kp-v29-preparation-section,
  .kp-v30-appointment-page,
  .kp-v30-contact-process,
  .kp-certificates-page-archive,
  .kp-articles-page,
  .kp-legal-page
):not(:has(> .kp-section-divider))::after {
  content:"";
  position:absolute;
  z-index:80;
  top:0;
  left:50%;
  width:min(1320px,calc(100% - 2rem));
  height:22px;
  transform:translateX(-50%);
  pointer-events:none;
  background:
    linear-gradient(45deg,transparent 43%,rgba(160,109,89,.72) 44% 56%,transparent 57%) calc(50% - 5px) 3px/10px 10px no-repeat,
    linear-gradient(-45deg,transparent 43%,rgba(160,109,89,.72) 44% 56%,transparent 57%) calc(50% + 5px) 3px/10px 10px no-repeat,
    linear-gradient(90deg,transparent,rgba(160,109,89,.48)) left top/calc(50% - 18px) 1px no-repeat,
    linear-gradient(270deg,transparent,rgba(160,109,89,.48)) right top/calc(50% - 18px) 1px no-repeat;
}

/* A repeated background is automatically shifted to the neighbouring palette. */
body:not(.home) .wp-block-post-content > .has-ivory-background-color + .has-ivory-background-color {
  background-color:var(--wp--preset--color--warm-white,#fffdf9)!important;
}
body:not(.home) .wp-block-post-content > .has-warm-white-background-color + .has-warm-white-background-color {
  background-color:var(--wp--preset--color--ivory,#f7f3eb)!important;
}
body:not(.home) .wp-block-post-content > .has-sage-background-color + .has-sage-background-color {
  background-color:var(--wp--preset--color--warm-white,#fffdf9)!important;
}

/* Retire the emergency callout treatment, including content cached from an
   older seeded page. Legal drafting reminders become simple ruled notes. */
.kp-v29-emergency-note { display:none!important; }
.kp-legal-notice {
  border:0!important;
  border-block:1px solid rgba(160,109,89,.28)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  padding:1rem 0!important;
}

/* Give the home archive nearly the full canvas. Navigation only appears when
   JavaScript confirms that the row actually overflows. */
.kp-certificate-showcase .kp-v9-cert-intro,
.kp-certificate-showcase .kp-v9-cert-shell {
  width:calc(100% - clamp(1rem,2vw,2rem))!important;
  max-width:1640px!important;
}

.kp-certificates__arrows[hidden] { display:none!important; }
.kp-certificate-showcase .kp-certificates:not(.has-overflow) .kp-certificates__progress {
  visibility:hidden;
}

@media (max-width:600px) {
  :where(
    .kp-v29-about-story,
    .kp-v29-about-education,
    .kp-v29-principles,
    .kp-v29-cert-link-section,
    .kp-v29-services-page,
    .kp-v29-guidance-section,
    .kp-v29-online-features,
    .kp-v29-preparation-section,
    .kp-v30-appointment-page,
    .kp-v30-contact-process,
    .kp-certificates-page-archive,
    .kp-articles-page,
    .kp-legal-page
  ):not(:has(> .kp-section-divider))::after { width:calc(100% - 1.5rem); }
}

@media print {
  :where(
    .kp-v29-about-story,
    .kp-v29-about-education,
    .kp-v29-principles,
    .kp-v29-cert-link-section,
    .kp-v29-services-page,
    .kp-v29-guidance-section,
    .kp-v29-online-features,
    .kp-v29-preparation-section,
    .kp-v30-appointment-page,
    .kp-v30-contact-process,
    .kp-certificates-page-archive,
    .kp-articles-page,
    .kp-legal-page
  )::after { display:none!important; }
}
