/*
  Shared styles for the content templates built in PAGE.md process step
  4 (page.php, section-hub.php, procedure.php, condition.php, and the
  photos/video/contact-form templates) - everything that isn't the nav
  or the wayfinder, which each already have their own stylesheet.
*/

.content-wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 8vw, 5rem);
}

.content-wrap--wide {
  max-width: 64rem;
}

/* breadcrumb */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--color-soft-tissue);
  margin-bottom: 1.5rem;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  margin: 0;
  padding: 0;
}
.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 0.4em;
  color: var(--color-tissue-line);
}
.breadcrumb a {
  color: var(--color-soft-tissue);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--color-navy-mid);
  text-decoration: underline;
}
.breadcrumb [aria-current='page'] {
  color: var(--color-bone-ink);
}

/* generic page header */
.page-header {
  margin-bottom: 2rem;
}
.page-header__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--axis-color, var(--color-navy-mid));
  margin-bottom: 0.5rem;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
.page-header__lede {
  font-size: var(--fs-body-l);
  color: var(--color-ink-soft);
  max-width: 42rem;
}

/* Τεχνικές (Techniques) page - a fixed list of named technique write-ups */
.technique-article {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-tissue-line);
}
.technique-article:first-of-type {
  margin-top: 2rem;
}
.technique-article h2 {
  font-family: var(--font-display);
  font-size: var(--fs-l);
  margin: 0 0 1rem;
}

/* CV page */
.cv-full-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 0.5rem;
}
.cv-full-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-navy-mid);
  border: 1px solid var(--color-navy-mid);
  padding: 0.45rem 0.8rem;
  text-decoration: none;
}
.cv-full-links a:hover {
  background: var(--color-navy-mid-wash);
}
.cv-section {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-tissue-line);
}
.cv-section h2 {
  font-family: var(--font-display);
  font-size: var(--fs-m);
  margin: 0 0 1rem;
}
.cv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cv-list li {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.5rem 1rem;
  font-size: var(--fs-body-s);
}
.cv-list__since {
  font-family: var(--font-mono);
  color: var(--color-soft-tissue);
  font-size: 0.72rem;
  padding-top: 0.15rem;
}
.cv-list__name {
  grid-column: 2;
  font-weight: 600;
  color: var(--color-bone-ink);
}
.cv-list__detail {
  grid-column: 2;
  color: var(--color-ink-soft);
}
.cv-plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: var(--fs-body-s);
  color: var(--color-ink-soft);
}
.cv-plain-list li::before {
  content: '\2014\0020';
  color: var(--color-soft-tissue);
}
.cv-note {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--color-soft-tissue);
  font-style: italic;
}
.cv-plain-text {
  font-size: var(--fs-body-s);
  color: var(--color-ink-soft);
  margin: 0;
}

/* essay body (procedure/condition pages) */
.essay {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}
.essay__body p {
  margin: 0 0 1.1em;
  max-width: 65ch;
}
.essay__rail {
  border-top: 1px solid var(--color-tissue-line);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.essay__rail h2 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-soft-tissue);
  margin: 0 0 0.6rem;
}
.essay__rail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.essay__rail a {
  color: var(--color-navy-mid);
}
.essay__mono-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.essay__mono-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  border: 1px solid var(--color-tissue-line);
  padding: 0.15rem 0.5rem;
  color: var(--color-ink-soft);
}
.essay__cta {
  display: inline-block;
  font-weight: 600;
  color: var(--color-field-white);
  background: var(--axis-color, var(--color-navy-mid));
  padding: 0.65rem 1.1rem;
  text-decoration: none;
}
.essay__cta:hover {
  filter: brightness(1.08);
}

@media (min-width: 900px) {
  .essay {
    grid-template-columns: minmax(0, 1fr) 16rem;
  }
}

/* section hub (nav-parent landing pages) */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--color-tissue-line);
  border: 1px solid var(--color-tissue-line);
  margin-top: 2rem;
}
.hub-card {
  background: var(--color-field-white);
  padding: 1.25rem 1.4rem;
  text-decoration: none;
  color: inherit;
  display: block;
}
.hub-card:hover {
  background: var(--color-field-raised);
}
.hub-card__title {
  font-weight: 600;
  font-size: var(--fs-body);
  color: var(--color-bone-ink);
  display: block;
  margin-bottom: 0.3rem;
}
.hub-card__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-soft-tissue);
}

/* honest "nothing here yet" state */
.pending-state {
  border: 1px dashed var(--color-tissue-line);
  padding: 1.75rem;
  color: var(--color-soft-tissue);
  font-size: var(--fs-body-s);
  margin-top: 1.5rem;
}

/* photo gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
}
.gallery figure {
  margin: 0;
  border: 1px solid var(--color-tissue-line);
}
.gallery figcaption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-soft-tissue);
  padding: 0.4rem 0.5rem;
}

/* real contact details (Mandra page + the inert contact forms) */
.contact-info {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-tissue-line);
  background: var(--color-field-raised);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 24rem;
}
.contact-info li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--fs-body-s);
}
.contact-info__label {
  color: var(--color-soft-tissue);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: center;
}
.contact-info a {
  color: var(--color-navy-mid);
  font-weight: 600;
}

/* video */
.video-frame {
  margin-top: 2rem;
  border: 1px solid var(--color-tissue-line);
}
.video-frame video {
  width: 100%;
  display: block;
}

/* clinic/affiliation cards (contact hub) */
.clinic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  align-items: center;
}
.clinic-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 1rem;
  border: 1px solid var(--color-tissue-line);
}
.clinic-card img {
  max-height: 2.5rem;
  width: auto;
}
.clinic-card__name {
  font-size: var(--fs-body-s);
  color: var(--color-ink-soft);
}

/* static forms (booking/email/scan upload) */
.form-stub-notice {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-brass);
  border: 1px dashed var(--color-brass);
  padding: 0.6rem 0.85rem;
  margin-bottom: 1.5rem;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 32rem;
}
.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form__field label {
  font-size: var(--fs-body-s);
  font-weight: 600;
}
.form__field input,
.form__field textarea,
.form__field select {
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--color-tissue-line);
  background: var(--color-field-white);
  color: var(--color-bone-ink);
}
.form__field textarea {
  resize: vertical;
  min-height: 8rem;
}
.form__submit {
  align-self: flex-start;
  font-weight: 600;
  color: var(--color-field-white);
  background: var(--color-oxblood);
  border: none;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
}
/* sitewide focus-visible is oxblood too (tokens.css) - on an oxblood
   button that ring measures 1:1, i.e. invisible; same fix as footer.css. */
.form__submit:focus-visible {
  outline-color: var(--color-field-white);
}
.form__submit:hover {
  filter: brightness(1.08);
}

/* affiliations strip (homepage) */
.affiliations {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-soft-tissue);
  text-align: center;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--color-tissue-line);
  border-bottom: 1px solid var(--color-tissue-line);
}

/* homepage hero */
.hero {
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 4vw, 2rem);
  max-width: 72rem;
  margin: 0 auto;
}
.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero__text {
  display: grid;
  gap: 1.5rem;
}
.hero blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-2xl);
  line-height: 1.1;
  margin: 0;
  max-width: 16ch;
  text-wrap: balance;
}
.hero__byline {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--color-soft-tissue);
}
.hero__cta {
  display: inline-block;
  align-self: flex-start;
  font-weight: 600;
  color: var(--color-field-white);
  background: var(--color-oxblood);
  padding: 0.7rem 1.3rem;
  text-decoration: none;
}
.hero__cta:hover {
  filter: brightness(1.08);
}
.hero__cta:focus-visible {
  outline-color: var(--color-field-white);
}

/*
  Real photo of Dr. Rokas (not stock), but a plain corporate headshot
  dropped in at full color/contrast reads exactly like the generic
  "smiling model in a white coat" pattern PAGE.md asks to avoid - real
  subject, same visual cliche. Grayscale + a navy multiply wash turns it
  into an editorial duotone instead, which also neutralizes the original
  studio backdrop color (light blue) without needing to re-shoot or
  hand-edit the source photo.
*/
.hero__portrait {
  position: relative;
  overflow: hidden;
  aspect-ratio: 700 / 867;
  max-width: 22rem;
  margin: 0 auto;
}
.hero__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(1.04);
}
.hero__portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-navy-deep);
  mix-blend-mode: multiply;
  opacity: 0.5;
}
.hero__portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-brass);
  opacity: 0.6;
  z-index: 1;
  pointer-events: none;
}

@media (min-width: 720px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 18rem;
  }
  .hero__portrait {
    max-width: none;
    margin: 0;
  }
}

/* symptom-first strip */
.symptom-strip {
  padding: 1.5rem clamp(1rem, 4vw, 2rem) 2.5rem;
  max-width: 64rem;
  margin: 0 auto;
}
.symptom-strip h2 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--color-soft-tissue);
  font-weight: 500;
  margin: 0 0 0.9rem;
}
.symptom-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.symptom-chip {
  display: inline-block;
  border: 1px solid var(--axis-color, var(--color-navy-mid));
  background: var(--axis-wash, var(--color-navy-mid-wash));
  color: var(--axis-color, var(--color-navy-mid));
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  font-size: var(--fs-body-s);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.symptom-chip:hover {
  background: var(--axis-color, var(--color-navy-mid));
  color: var(--color-field-white);
  transform: translateY(-1px);
}

/* homepage section wrapper + teaser cards (conditions) */
.home-section {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2rem) 3rem;
}
.home-section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-tissue-line);
  padding-bottom: 0.6rem;
}
.home-section__head h2 {
  font-family: var(--font-display);
  font-size: var(--fs-l);
  margin: 0;
}
.home-section__head a {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  white-space: nowrap;
}
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem;
}
.teaser-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-top: 3px solid var(--axis-color, var(--color-navy-mid));
  padding: 0.9rem 0.25rem 1rem;
  transition: background 0.15s ease, transform 0.15s ease;
}
.teaser-card:hover {
  background: var(--axis-wash, var(--color-navy-mid-wash));
  transform: translateY(-2px);
}
.teaser-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--axis-color, var(--color-navy-mid));
  display: block;
  margin-bottom: 0.4rem;
}
.teaser-card__title {
  font-weight: 600;
  display: block;
  margin-bottom: 0.35rem;
}
.teaser-card__lede {
  font-size: var(--fs-body-s);
  color: var(--color-ink-soft);
}

/* ==========================================================================
   Shared components added 2026-07-26 (plan v2, closing the gap between
   home-v31.php and the actual "Quiet Luxury" ambition in the source
   design chat - see DECISIONS.md). Everything below is a real, reusable
   class - no raw inline styles.
   ========================================================================== */

/* hero stat row - figures stay neutral ink; oxblood is reserved for the
   section's one accent (the CTA), per the "one red accent per section,
   never two" rule the source chat kept repeating. */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  margin-top: var(--s-7);
}
.stat {
  min-width: 8rem;
}
.stat__figure {
  font-family: var(--font-display);
  font-size: var(--fs-l);
  color: var(--color-bone-ink);
  line-height: 1.1;
}
.stat__suffix {
  color: var(--color-soft-tissue);
}
.stat__label {
  font-size: var(--fs-body-s);
  color: var(--color-soft-tissue);
  margin-top: var(--s-1);
}

/* secondary, lower-commitment link paired with a primary CTA - no fill,
   so the section keeps its one oxblood accent on the primary action
   sitting beside it. */
.link-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--color-navy-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--color-tissue-line);
  padding-bottom: 0.15rem;
  transition: border-color var(--m-fast) var(--ease-precision);
}
.link-ghost:hover {
  border-color: var(--color-navy-mid);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-5);
}

/* -------------------------------------------------------------------------
   home-v31.php-scoped rules below - deliberately nested/scoped so nothing
   leaks onto home.php/section-hub.php/techniques.php's real use of the
   same base component classes (.hub-card, .pending-state, .technique-
   article, .cv-list all get reused with different real content elsewhere
   on the site).
   ------------------------------------------------------------------------- */

/* opt-in axis border for hub-card, NOT a base .hub-card change -
   section-hub.php also renders .hub-card with an optional/often-empty
   axisClass, so a base-rule border-top would silently paint a navy
   border onto real nav-hub pages that have no axis at all. */
.hub-card--axis-rule {
  border-top: 3px solid var(--axis-color, var(--color-navy-mid));
}
.hub-card__list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  font-size: var(--fs-body-s);
}
.hub-card__list li {
  margin-bottom: 0.35rem;
}
.hub-card__list a {
  color: var(--color-navy-mid);
}

.essay__body--narrow {
  max-width: 52rem;
}

/* doctor-section credentials, demoted from a full competing paragraph to
   a mono/caption byline - real facts kept, reframed as supporting
   texture rather than the section's main voice. Specificity note: the
   base ".essay__body p" rule is (0,1,1) - a bare ".credential-note"
   class alone is (0,1,0) and would silently lose the cascade, so this
   has to stay written as the compound selector below. */
.essay__body p.credential-note {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--color-soft-tissue);
  max-width: 40ch;
  margin: 0.75rem 0 0;
}

.doctor-cv-link {
  margin-top: var(--s-5);
}
.link-emphasis {
  color: var(--color-navy-mid);
  font-weight: 600;
  text-decoration: none;
}
.link-emphasis:hover {
  text-decoration: underline;
}

.home-section__lede {
  max-width: 44rem;
  color: var(--color-ink-soft);
}
.home-section__subhead {
  font-family: var(--font-display);
  font-size: var(--fs-m);
  margin-top: var(--s-6);
}

.home-section .symptom-chips {
  margin-top: var(--s-5);
}
.home-section .technique-article:first-of-type {
  margin-top: var(--s-5);
}
.home-section .technique-article h2 {
  font-size: var(--fs-m);
}
.home-section .technique-article p {
  margin: 0;
  font-size: var(--fs-body-s);
  color: var(--color-ink-soft);
}
.home-section .cv-list {
  margin-top: var(--s-5);
}
.home-section .cv-list__name {
  font-size: var(--fs-body-s);
}

/* Research/Voices currently render just a bare .pending-state, which
   reads as an abrupt short gap against fuller neighboring sections -
   this scoped rule (not a change to .pending-state's sitewide base,
   which page.php also depends on) gives it more visual presence to
   match the "breathing," evenly-paced rhythm the source chat wanted. */
.home-section .pending-state {
  padding: var(--s-6) var(--s-5);
  min-height: var(--s-10);
  display: flex;
  align-items: center;
}

/* Dark hero (2026-07-26, home-v31.php only) - web3.1's own dark hero
   ground, adapted for a real OR photo instead of a placeholder gradient.
   Full-bleed background image behind a constrained content column - the
   base .hero rule's own max-width/margin/padding is overridden here and
   reapplied per direct child instead (.hero__grid and .stats-row are
   siblings, both need the same containment/stacking treatment, so
   ".hero--dark > *" covers both without duplicating the rule per class
   or restructuring the markup). Image is pre-graded (color-corrected,
   cooled, shadows tinted toward --color-navy-deep, left-edge scrim baked
   in for text contrast) rather than relying on a CSS overlay alone - see
   DECISIONS.md for the actual grading process. */
.hero--dark {
  max-width: none;
  margin: 0;
  padding-block: clamp(2.5rem, 7vw, 5rem);
  position: relative;
  overflow: hidden;
  color: var(--text-onDark);
  min-height: min(70vh, 42rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--s-6);
}
.hero--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  /* .jpg, not .webp: CSS background-image has no <picture>-style native
     fallback the way the hero-doctor <img> above uses - a .webp
     reference here would risk rendering nothing at all in a browser
     without webp support, for one decorative background. The .webp
     variant is still saved alongside it, ready for an image-set()/
     @supports upgrade later if that's ever worth the added complexity
     for a background this size.
     The linear-gradient layer is a contrast safety floor on top of the
     already-graded photo, not a duplicate of it: the source image was
     pre-scrimmed during editing, but that scrim's darkness varies with
     the real photo content underneath it (measured worst-case left-edge
     pixel: 5.76:1 against --text-onDark on its own - a real AA pass,
     not a comfortable margin for photographic content). This gradient
     guarantees a contrast floor independent of what's in the photo -
     11.5:1 worst-case measured with it, comfortably past AAA. */
  background-image:
    linear-gradient(to right, rgba(4, 16, 30, 0.55) 0%, rgba(4, 16, 30, 0.15) 45%, rgba(4, 16, 30, 0) 70%),
    url('../photos/hero-or-dark.jpg');
  background-size: cover, cover;
  background-position: center, center 30%;
  z-index: 0;
}
.hero--dark > * {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.hero--dark .hero__byline {
  color: var(--text-onDarkMuted);
}
.hero--dark .stat__figure {
  color: var(--text-onDark);
}
.hero--dark .stat__suffix,
.hero--dark .stat__label {
  color: var(--text-onDarkMuted);
}
.hero--dark .link-ghost {
  color: var(--text-onDark);
  border-color: var(--line-onDark);
}
.hero--dark .link-ghost:hover {
  border-color: var(--text-onDark);
}

@media (max-width: 60rem) {
  .hero--dark {
    min-height: min(52vh, 28rem);
  }
}
