/*
Theme Name: Clear Path
Theme URI: https://nsl.example/clear-path
Author: No Strings Labs
Description: An accessible, service-first WordPress block theme for a fictitious gambling-support public-service capability demonstration.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.6
Requires PHP: 8.1
Text Domain: clear-path
License: GNU General Public License v2 or later
*/

:root {
  --cp-ink: #102b2a;
  --cp-evergreen: #17443f;
  --cp-moss: #dce6dc;
  --cp-paper: #f7f2e8;
  --cp-paper-deep: #eee5d5;
  --cp-white: #fffdf8;
  --cp-coral: #c94f40;
  --cp-coral-dark: #92372d;
  --cp-sky: #cfe3e5;
  --cp-line: #c9c3b6;
  --cp-focus: #ffbf47;
  --cp-shadow: 0 16px 44px rgba(16, 43, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  background:
    linear-gradient(90deg, rgba(23, 68, 63, 0.025) 1px, transparent 1px) 0 0 / 34px 34px,
    var(--cp-paper);
  color: var(--cp-ink);
  overflow-wrap: break-word;
}

body,
button,
input,
select,
textarea {
  font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

a {
  color: var(--cp-evergreen);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--cp-coral-dark);
  text-decoration-thickness: 0.15em;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 4px solid var(--cp-focus);
  outline-offset: 4px;
  border-radius: 2px;
}

::selection {
  background: var(--cp-focus);
  color: #101010;
}

.wp-site-blocks {
  min-height: 100vh;
}


.cp-concept-bar {
  border-bottom: 1px solid rgba(255, 253, 248, 0.28);
  letter-spacing: 0.01em;
}

.cp-concept-bar strong {
  color: #fff;
}

.cp-site-header {
  box-shadow: 0 1px 0 rgba(16, 43, 42, 0.15);
  position: relative;
  z-index: 10;
}

.cp-brand-mark {
  align-items: center;
  display: flex;
  gap: 0.7rem;
}

.cp-brand-mark::before {
  background: var(--cp-coral);
  border-radius: 50% 50% 46% 54%;
  content: "";
  display: block;
  height: 1.15rem;
  transform: rotate(-12deg);
  width: 1.15rem;
}

.cp-brand .wp-block-site-title {
  line-height: 1;
  margin: 0;
}

.cp-brand .wp-block-site-tagline {
  margin-top: 0.35rem;
}

.cp-header-contact {
  border-left: 1px solid var(--cp-line);
  padding-left: 1.5rem;
}

.cp-header-contact a {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  white-space: nowrap;
}

.wp-block-navigation a {
  text-decoration: none;
}

.wp-block-navigation .wp-block-navigation-item__content:hover {
  text-decoration: underline;
  text-decoration-color: var(--cp-coral);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.35em;
}

.cp-home-intro {
  overflow: hidden;
  position: relative;
}

.cp-home-intro::after {
  border: 1px solid rgba(16, 43, 42, 0.13);
  border-radius: 50%;
  content: "";
  height: 24rem;
  position: absolute;
  right: -10rem;
  top: -13rem;
  width: 24rem;
}

.cp-eyebrow {
  align-items: center;
  display: flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.55rem;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.cp-eyebrow::before {
  background: var(--cp-coral);
  content: "";
  height: 3px;
  width: 2rem;
}

.cp-display {
  font-size: clamp(2.65rem, 8vw, 6.4rem) !important;
  letter-spacing: -0.045em;
  line-height: 0.94;
  max-width: 12ch;
}

.cp-intro-copy {
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  line-height: 1.55;
  max-width: 46rem;
}

.cp-helpline-panel {
  border: 2px solid var(--cp-ink);
  box-shadow: 8px 8px 0 var(--cp-sky);
  position: relative;
}

.cp-helpline-panel::before {
  background: var(--cp-coral);
  content: "";
  height: 0.6rem;
  left: -2px;
  position: absolute;
  right: -2px;
  top: -2px;
}

.cp-phone-link a,
a.cp-phone-link {
  color: var(--cp-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  font-weight: 700;
  white-space: nowrap;
}

.cp-path-grid {
  align-items: stretch !important;
}

.cp-path-card {
  border: 1px solid var(--cp-line);
  box-shadow: var(--cp-shadow);
  min-height: 100%;
  overflow: hidden;
  position: relative;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.cp-path-card::before {
  background: var(--cp-coral);
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 0.35rem;
}

.cp-path-card:nth-child(2)::before {
  background: var(--cp-evergreen);
}

.cp-path-card:hover {
  box-shadow: 0 20px 48px rgba(16, 43, 42, 0.14);
  transform: translateY(-3px);
}

.cp-path-card .wp-block-button__link,
.cp-primary-button .wp-block-button__link {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 0.55rem;
}

.cp-path-card .wp-block-button__link::after,
.cp-primary-button .wp-block-button__link::after {
  content: "→";
  font-size: 1.3em;
  line-height: 1;
}

.cp-secondary-button .wp-block-button__link {
  background: transparent;
  color: var(--cp-ink);
}

.cp-secondary-button .wp-block-button__link:hover {
  background: var(--cp-ink);
  color: var(--cp-white);
}

.cp-section-number {
  color: var(--cp-coral-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.cp-step {
  border-top: 1px solid var(--cp-line);
  padding-top: 1.5rem;
}

.cp-step-number {
  align-items: center;
  background: var(--cp-ink);
  border-radius: 50%;
  color: var(--cp-white);
  display: inline-flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
  height: 2.4rem;
  justify-content: center;
  width: 2.4rem;
}

.cp-fact-label,
.cp-prototype-label {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  padding: 0.32rem 0.7rem;
  text-transform: uppercase;
}

.cp-fact-label {
  background: var(--cp-moss);
  color: var(--cp-ink);
}

.cp-prototype-label {
  background: #f6d9d2;
  color: #6d251f;
}

.cp-callout {
  border-left: 5px solid var(--cp-coral);
  box-shadow: var(--cp-shadow);
}

.cp-callout--recommendation {
  border-color: var(--cp-focus);
}

.cp-callout--indigenous {
  background: var(--cp-sky);
  border-color: var(--cp-evergreen);
}

.cp-detail-card {
  border-top: 4px solid var(--cp-evergreen);
  min-height: 100%;
}

.cp-language-list {
  columns: 2;
  column-gap: 2rem;
}

.cp-self-check {
  border: 1px dashed var(--cp-coral-dark);
}

.cp-self-check a[target="_blank"]::after,
.cp-external-link[target="_blank"]::after {
  content: " (opens a new website)";
  font-size: 0.78em;
  font-weight: 400;
}

.cp-form-shell {
  border-top: 0.65rem solid var(--cp-evergreen);
  box-shadow: var(--cp-shadow);
}

.cp-form-shell .wp-block-shortcode {
  margin-top: 1.5rem;
}

.cp-form-notice {
  border: 2px solid var(--cp-coral-dark);
}

.cp-evidence-grid > .wp-block-column {
  border: 1px solid var(--cp-line);
  min-height: 100%;
}

.cp-check-list {
  list-style: none;
  padding-left: 0;
}

.cp-check-list li {
  margin-bottom: 0.8rem;
  padding-left: 1.8rem;
  position: relative;
}

.cp-check-list li::before {
  color: var(--cp-evergreen);
  content: "✓";
  font-weight: 900;
  left: 0;
  position: absolute;
}

.cp-content-shell > * {
  margin-block-start: 1.35rem;
}

.cp-content-shell > :where(h2, h3) {
  margin-block-start: 2.7rem;
}

.cp-content-shell > :where(ul, ol) {
  padding-left: 1.35rem;
}

.cp-content-shell blockquote {
  border-left: 5px solid var(--cp-coral);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  margin-left: 0;
  padding-left: 1.5rem;
}

.cp-breadcrumbs {
  font-size: 0.9rem;
}

.cp-breadcrumbs a {
  font-weight: 700;
}

.cp-footer {
  margin-block-start: 0;
}

.cp-footer a {
  color: var(--cp-white);
}

.cp-footer-disclaimer {
  border: 1px solid rgba(255, 253, 248, 0.3);
}

.cp-footer-nav .wp-block-navigation-item__content {
  color: var(--cp-white);
}

.cp-emergency-note {
  border-top: 1px solid rgba(255, 253, 248, 0.3);
}

.wp-block-post-date,
.wp-block-post-terms {
  color: #526563;
}

.wp-block-query-pagination {
  border-top: 1px solid var(--cp-line);
  padding-top: 1.5rem;
}

.wp-block-search__input,
.wp-block-post-comments-form input:not([type="submit"]),
.wp-block-post-comments-form textarea {
  background: var(--cp-white);
  border: 2px solid var(--cp-ink);
  border-radius: 0;
  color: var(--cp-ink);
  min-height: 3rem;
}

.wp-block-search__button {
  border: 2px solid var(--cp-ink);
  font-weight: 800;
}

@media (max-width: 880px) {
  .cp-header-main {
    align-items: flex-start !important;
  }

  .cp-header-contact {
    border-left: 0;
    border-top: 1px solid var(--cp-line);
    padding-left: 0;
    padding-top: 1rem;
    width: 100%;
  }

  .cp-home-intro .wp-block-columns,
  .cp-evidence-grid {
    gap: 2rem !important;
  }
}

@media (max-width: 781px) {
  .cp-display {
    font-size: clamp(2.65rem, 14vw, 4.4rem) !important;
  }

  .cp-language-list {
    columns: 1;
  }

  .cp-path-card:hover {
    transform: none;
  }
}

@media (max-width: 600px) {
  .cp-concept-bar .wp-block-group {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .cp-site-header .wp-block-navigation__responsive-container-open {
    min-height: 2.75rem;
    min-width: 2.75rem;
  }

  .cp-home-intro::after {
    display: none;
  }

  .cp-helpline-panel {
    box-shadow: 5px 5px 0 var(--cp-sky);
  }

  .cp-phone-link a,
  a.cp-phone-link {
    font-size: 1.7rem;
    white-space: normal;
  }

  .cp-footer .wp-block-navigation__container {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .cp-path-card,
  .cp-helpline-panel,
  .cp-callout,
  .cp-form-shell {
    border: 2px solid CanvasText;
  }

  .cp-eyebrow::before,
  .cp-brand-mark::before {
    background: CanvasText;
  }
}

@media print {
  .cp-site-header .wp-block-navigation,
  .wp-block-button {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }

  a[href^="tel:"]::after,
  a[href^="#"]::after {
    content: "";
  }
}
