/* Page styles — Home, About, Auth (existing copy only) */

/* ----- Home hero ----- */
body.theme-editorial .c-hero,
body.theme-editorial #hero.hero {
  min-height: calc(100vh - var(--header-height));
  padding: calc(var(--header-height) + var(--space-7)) 0 var(--space-8);
  background: linear-gradient(165deg, var(--color-cream) 0%, var(--color-sage) 52%, var(--color-cream) 100%) !important;
}

body.theme-editorial #hero.hero .c-hero__inner {
  max-width: var(--max-content);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(var(--space-4), 4vw, var(--space-7));
}

body.theme-editorial #hero.hero h2,
body.theme-editorial #hero.hero .c-hero__title,
body.theme-editorial #hero.hero h1.c-hero__title {
  font-size: clamp(2.35rem, 5.8vw, 4.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-5);
  color: var(--color-navy);
  max-width: none;
}

body.theme-editorial #hero.hero .cz-thin {
  color: var(--color-teal);
  font-weight: 500;
}

body.theme-editorial #hero.hero h5,
body.theme-editorial #hero.hero .c-hero__sub {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  font-weight: 500;
  color: var(--color-navy);
  line-height: 1.45 !important;
  margin-bottom: var(--space-5);
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

body.theme-editorial #hero.hero .cz-px200,
body.theme-editorial #hero.hero .c-hero__lede,
body.theme-editorial #hero.hero p {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0 !important;
  padding-right: 0 !important;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
}

body.theme-editorial #hero.hero .mt15 {
  margin-top: var(--space-7) !important;
}

body.theme-editorial #hero.hero .c-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
}

@media (min-width: 992px) {
  body.theme-editorial #hero.hero .c-hero__title {
    font-size: clamp(3.25rem, 4.6vw, 4.5rem);
  }
}

/* Home projects band */
body.theme-editorial #gallery.gallery {
  background: var(--color-cream);
  padding: var(--space-6) 0 var(--space-8);
}

body.theme-editorial #gallery .container-fluid {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 clamp(var(--space-4), 4vw, var(--space-7));
}

body.theme-editorial #gallery .c-projects__grid {
  --bs-gutter-x: 1.75rem;
  --bs-gutter-y: 1.75rem;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

body.theme-editorial #gallery .c-projects__grid > .c-project-card-wrap {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

body.theme-editorial #gallery .c-projects__grid .c-project-card {
  width: 100%;
}

@media (min-width: 1200px) {
  body.theme-editorial #gallery .container-fluid {
    max-width: min(80rem, 96vw);
  }

  body.theme-editorial #gallery .c-project-card__title {
    font-size: 1.4rem;
  }
}

/* ----- About ----- */
body.theme-editorial .page-header {
  background: var(--color-sage) !important;
  background-image: none !important;
  padding: calc(var(--header-height) + var(--space-7)) 0 var(--space-7) !important;
  min-height: auto !important;
}

body.theme-editorial .page-header .about-me {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--color-navy) !important;
}

body.theme-editorial .page-header .about-me span {
  color: var(--color-teal-dark);
}

body.theme-editorial .page-header .cta-btn {
  margin-top: 0;
}

body.theme-editorial .page-header__actions,
body.theme-editorial .page-header .c-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

body.theme-editorial section.about,
body.theme-editorial section.career-highlights,
body.theme-editorial section.travel {
  background: var(--color-cream) !important;
  padding: var(--space-7) 0;
}

body.theme-editorial section.about .content p,
body.theme-editorial section.career-highlights .description {
  color: var(--color-muted);
}

body.theme-editorial section.about .content p:first-of-type {
  color: var(--color-navy);
  font-size: 1.1rem;
}

body.theme-editorial .section-header h2 {
  font-family: var(--font-display);
  color: var(--color-navy);
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-5);
}

body.theme-editorial .section-header h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--color-teal);
  margin-top: var(--space-2);
}

body.theme-editorial .skill ul {
  list-style: none;
  padding-left: 0;
}

body.theme-editorial .skill li {
  margin-bottom: var(--space-3);
  color: var(--color-navy);
}

body.theme-editorial .skill li i {
  color: var(--color-teal) !important;
  margin-right: var(--space-2);
}

/* Career timeline */
body.theme-editorial .c-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.25rem;
  position: relative;
  max-width: 46rem;
}

body.theme-editorial .c-timeline::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  background: linear-gradient(180deg, var(--color-teal) 0%, rgba(15, 118, 110, 0.2) 100%);
  border-radius: 1px;
}

body.theme-editorial .c-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 2.3rem 1fr;
  column-gap: var(--space-4);
  padding-bottom: var(--space-6);
}

body.theme-editorial .c-timeline__item:last-child {
  padding-bottom: 0;
}

body.theme-editorial .c-timeline__marker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--color-sage);
  border: 2px solid var(--color-teal);
  color: var(--color-teal);
  box-shadow: 0 0 0 4px var(--color-cream);
}

body.theme-editorial .c-timeline__item--education .c-timeline__marker {
  border-color: var(--color-coral);
  color: var(--color-coral);
}

body.theme-editorial .c-timeline__marker i {
  font-size: 0.85rem;
  line-height: 1;
  margin: 0;
}

body.theme-editorial .c-timeline__card {
  background: var(--color-white);
  border: 1px solid rgba(23, 42, 58, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  box-shadow: none;
}

body.theme-editorial .c-timeline__period {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-teal);
}

body.theme-editorial .c-timeline__item--education .c-timeline__period {
  color: var(--color-coral-text);
}

body.theme-editorial .c-timeline__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-navy);
}

body.theme-editorial .c-timeline__body {
  margin: var(--space-2) 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-muted);
}

@media (max-width: 575.98px) {
  body.theme-editorial .c-timeline {
    padding-left: 0;
  }

  body.theme-editorial .c-timeline::before {
    left: 0.95rem;
  }

  body.theme-editorial .c-timeline__item {
    column-gap: var(--space-3);
  }
}

body.theme-editorial .travel .cz-primary-colour,
body.theme-editorial .travel .about-contact-title,
body.theme-editorial .info-item h4,
body.theme-editorial .c-contact-link__label {
  color: var(--color-navy) !important;
  font-family: var(--font-display);
}

body.theme-editorial .c-contact-link {
  display: block;
  text-decoration: none !important;
  color: inherit;
  border-radius: var(--radius-md);
}

body.theme-editorial .c-contact-link:hover .c-contact-link__label,
body.theme-editorial .c-contact-link:focus-visible .c-contact-link__label {
  color: var(--color-teal) !important;
}

body.theme-editorial .contact .info-item {
  align-items: center;
  gap: var(--space-4);
}

body.theme-editorial .info-item i {
  color: var(--color-teal) !important;
  font-size: 1.35rem;
  line-height: 1;
  margin-right: 0;
  flex-shrink: 0;
}

body.theme-editorial .contact .info-item h4,
body.theme-editorial .c-contact-link__label {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

body.theme-editorial .about img.img-fluid {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* Scattered editorial frame for About portrait */
body.theme-editorial .c-portrait {
  position: relative;
  display: block;
  margin: 0.75rem auto 1.25rem;
  max-width: 22rem;
  padding: 1.1rem;
}

body.theme-editorial .c-portrait__scatter {
  position: absolute;
  inset: 0.55rem;
  border-radius: var(--radius-md);
  pointer-events: none;
  z-index: 0;
}

body.theme-editorial .c-portrait__scatter--a {
  background: var(--color-sage);
  transform: rotate(-7deg) translate(-0.35rem, 0.2rem);
  box-shadow: var(--shadow-soft);
}

body.theme-editorial .c-portrait__scatter--b {
  border: 2px solid var(--color-teal);
  background: transparent;
  transform: rotate(5deg) translate(0.45rem, -0.3rem);
}

body.theme-editorial .c-portrait__scatter--c {
  border: 2px solid var(--color-coral);
  background: transparent;
  inset: 0.9rem;
  transform: rotate(-2.5deg) translate(0.15rem, 0.55rem);
  opacity: 0.85;
}

body.theme-editorial .c-portrait__img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 3px solid var(--color-white);
  box-shadow: 0 12px 28px rgba(23, 42, 58, 0.12);
  transform: rotate(-1.5deg);
  background: var(--color-white);
}

@media (prefers-reduced-motion: reduce) {
  body.theme-editorial .c-portrait__scatter--a,
  body.theme-editorial .c-portrait__scatter--b,
  body.theme-editorial .c-portrait__scatter--c,
  body.theme-editorial .c-portrait__img {
    transform: none;
  }
}

/* ----- Auth ----- */
body.theme-editorial .cz-auth {
  max-width: 28rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  background: var(--color-white);
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: var(--space-6) !important;
}

body.theme-editorial .auth-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-5);
  width: 100%;
  margin: 0;
}

body.theme-editorial .auth-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
}

body.theme-editorial .auth-form__actions {
  display: flex;
  justify-content: stretch;
  width: 100%;
}

body.theme-editorial .auth-form__actions .c-btn,
body.theme-editorial .auth-form__actions #btn,
body.theme-editorial .auth-form button {
  width: 100%;
}

body.theme-editorial .auth-form label {
  font-weight: 600;
  color: var(--color-navy);
  display: block;
  margin-bottom: 0;
}

body.theme-editorial .auth-form .mandatory {
  color: var(--color-coral-text);
}

body.theme-editorial .auth-form input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(23, 42, 58, 0.2);
  border-radius: var(--radius-md);
  background: var(--color-cream);
  color: var(--color-navy);
  font-family: var(--font-body);
}

body.theme-editorial .auth-form input[type="password"]:focus-visible {
  outline: 3px solid var(--color-teal);
  outline-offset: 2px;
  border-color: var(--color-teal);
}

body.theme-editorial .auth-form .error {
  color: var(--color-coral-text) !important;
  font-weight: 600;
  text-align: center;
  margin: 0;
}

body.theme-editorial .page-header .cz-primary-colour {
  color: var(--color-navy) !important;
}

body.theme-editorial .page-header .about-me.cz-primary-colour {
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

@media (max-width: 768px) {
  body.theme-editorial #hero.hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-6));
  }

  body.theme-editorial #hero.hero .c-hero__inner {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  body.theme-editorial #hero.hero h2,
  body.theme-editorial #hero.hero .c-hero__title {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }
}
