/*
 * Styles for the parts added by the change brief: the new first screen, the
 * "Looking for a specific condition?" block, The Journey, and the availability
 * calendar. Colours come from the site's own tokens so everything matches.
 */

:root {
  --mhc-navy: var(--color-navy, #173b4a);
  --mhc-teal: var(--color-teal, #0b6b63);
  --mhc-teal-600: var(--color-teal-600, #095a53);
  --mhc-ink: var(--color-ink, #20323a);
  --mhc-slate: var(--color-slate, #4a5f68);
  --mhc-line: var(--color-line, #dbe7e4);
  --mhc-aqua: var(--color-aqua, #e9f5f3);
  --mhc-paper: var(--color-paper, #f8fbfa);
  --mhc-warm: var(--color-warm, #d7a86e);
  --mhc-warm-100: var(--color-warm-100, #f6ead8);
}

.mhc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------ first screen (HOME-01 to HOME-04) */

.mhc-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-block: 2rem 3rem; }
.mhc-hero > *, .mhc-hero-id > div { min-width: 0; }
.mhc-hero h1, .mhc-hero-loc span { overflow-wrap: anywhere; }
.mhc-hero-line { display: inline-flex; justify-self: start; max-width: 100%; border: 1px solid rgb(11 107 99 / .2); background: rgb(255 255 255 / .8); color: var(--mhc-teal);
  border-radius: 999px; padding: .4rem 1rem; font-size: .8rem; font-weight: 600; letter-spacing: .02em; line-height: 1.35; }
.mhc-hero-id { display: flex; gap: 1rem; align-items: center; }
.mhc-hero-photo { flex: none; width: 5.5rem; height: 5.5rem; border-radius: 999px; object-fit: cover; object-position: 50% 20%;
  border: 3px solid #fff; box-shadow: 0 10px 24px -14px rgb(23 59 74 / .6); background: var(--mhc-aqua); }
.mhc-hero h1 { font-size: clamp(1.9rem, 6.4vw, 3.3rem); line-height: 1.1; color: var(--mhc-navy); margin: 0; }
.mhc-hero-role { margin: .35rem 0 0; color: var(--mhc-ink); font-weight: 600; font-size: 1.05rem; }
.mhc-hero-cred { margin: 0; color: var(--mhc-slate); font-size: .95rem; }
.mhc-hero-loc { display: flex; gap: .5rem; align-items: flex-start; margin: 0; color: var(--mhc-ink); font-size: 1rem; line-height: 1.45; }
.mhc-hero-loc svg { flex: none; margin-top: .15rem; color: var(--mhc-teal); }
.mhc-hero-loc a { color: var(--mhc-teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.mhc-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.mhc-hero-actions a { min-height: 3.25rem; }
.mhc-hero-sched { margin: 0; color: var(--mhc-slate); font-size: .95rem; }
.mhc-hero-sched a { color: var(--mhc-teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mhc-hero-lead { border-top: 1px solid rgb(23 59 74 / .12); padding-top: 1.5rem; }
.mhc-hero-lead h2 { font-size: clamp(1.35rem, 4vw, 1.9rem); line-height: 1.2; color: var(--mhc-navy); margin: 0; }
.mhc-hero-lead p { margin: .75rem 0 0; color: var(--mhc-slate); font-size: 1.05rem; max-width: 40rem; }

@media (min-width: 768px) {
  .mhc-hero { padding-block: 4.5rem 5rem; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 3rem; align-items: center; }
  .mhc-hero-main { display: grid; gap: 1.25rem; }
  .mhc-hero-photo { width: 7.5rem; height: 7.5rem; }
  .mhc-hero-lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem; }
  .mhc-hero-lead p { margin: 0; }
  .mhc-hero-big { display: block !important; width: 100%; max-width: 24rem; justify-self: end; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px;
    box-shadow: 0 30px 60px -35px rgb(23 59 74 / .55); }
  .mhc-hero-id .mhc-hero-photo { display: none; }
}
.mhc-hero-main { display: grid; gap: 1rem; }
.mhc-hero-big { display: none; }

/* ------------------------------------------------------------ shared section bits */

.mhc-eyebrow { margin: 0 0 .75rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--mhc-teal); }
.mhc-h2 { margin: 0; font-size: clamp(1.75rem, 4.5vw, 2.5rem); line-height: 1.15; color: var(--mhc-navy); }
.mhc-sub { margin: 1rem 0 0; max-width: 42rem; color: var(--mhc-slate); font-size: 1.05rem; }
.mhc-link { color: var(--mhc-teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mhc-link:hover { color: var(--mhc-teal-600); }

/* ------------------------------------------------------------ conditions block (SVC-01 to SVC-03) */

.mhc-conditions { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 900px) { .mhc-conditions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mhc-condition { display: flex; flex-direction: column; gap: .6rem; background: #fff; border: 1px solid var(--mhc-line); border-radius: 14px; padding: 1.4rem; }
.mhc-condition h3 { margin: 0; font-size: 1.3rem; color: var(--mhc-navy); }
.mhc-condition p { margin: 0; color: var(--mhc-slate); font-size: .97rem; line-height: 1.6; }
.mhc-condition .mhc-limit { color: var(--mhc-ink); font-weight: 600; }
.mhc-condition .mhc-link { margin-top: auto; padding-top: .4rem; display: inline-flex; min-height: 44px; align-items: center; }

/* ------------------------------------------------------------ Journey teaser (JRN-02) */

.mhc-teaser { display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 768px) { .mhc-teaser { grid-template-columns: minmax(0, 1.5fr) auto; gap: 3rem; } }
.mhc-teaser .mhc-btn { justify-self: start; }

.mhc-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.25rem; padding: 0 1.75rem; border-radius: 999px;
  font-weight: 600; background: var(--mhc-teal); color: #fff; box-shadow: 0 10px 24px -12px rgb(11 107 99 / .85); }
.mhc-btn:hover { background: var(--mhc-teal-600); }
.mhc-btn:focus-visible, .mhc-link:focus-visible, .mhc-av-call:focus-visible, .mhc-chapter summary:focus-visible { outline: 3px solid var(--mhc-navy); outline-offset: 2px; }

/* ------------------------------------------------------------ service sections (SVC-04) */

.mhc-svc { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--mhc-line); scroll-margin-top: 6rem; }
.mhc-svc h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.1rem); color: var(--mhc-navy); }
.mhc-svc > p { margin: .9rem 0 0; color: var(--mhc-slate); font-size: 1.05rem; max-width: 46rem; }
.mhc-svc-grid { display: grid; gap: 1.5rem; margin-top: 1.75rem; }
@media (min-width: 768px) { .mhc-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mhc-svc-grid h3 { margin: 0 0 .5rem; font-size: 1.15rem; color: var(--mhc-navy); }
.mhc-svc-grid ul { margin: 0; padding-left: 1.2rem; color: var(--mhc-slate); line-height: 1.6; }
.mhc-svc-grid p { margin: 0; color: var(--mhc-slate); line-height: 1.6; }
.mhc-disclaimer { margin-top: 1.5rem; padding: 1rem 1.1rem; border-radius: 12px; background: var(--mhc-aqua); color: var(--mhc-ink); font-size: .92rem; line-height: 1.55; }

/* ------------------------------------------------------------ The Journey (JRN-01, JRN-03) */

.mhc-journey-intro { max-width: 44rem; font-size: 1.15rem; line-height: 1.7; color: var(--mhc-ink); font-style: italic; margin: 0; }
.mhc-timeline { list-style: none; margin: 2.5rem 0 0; padding: 0; position: relative; max-width: 52rem; }
.mhc-timeline::before { content: ""; position: absolute; left: 1.05rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--mhc-line); }
.mhc-stage { position: relative; padding: 0 0 2.25rem 3.25rem; }
.mhc-stage-dot { position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 999px; background: var(--mhc-navy); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.mhc-stage-years { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mhc-teal); padding-top: .35rem; }
.mhc-stage h2 { margin: .3rem 0 0; font-size: clamp(1.3rem, 3.6vw, 1.65rem); line-height: 1.25; color: var(--mhc-navy); }
.mhc-stage-where { margin: .35rem 0 0; color: var(--mhc-ink); font-weight: 600; }
.mhc-stage-fig { margin: .9rem 0 0; max-width: 44rem; }
.mhc-stage-fig img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 14px; background: var(--mhc-aqua); }
.mhc-stage-fig figcaption { margin-top: .35rem; font-size: .78rem; color: var(--mhc-slate); }
.mhc-stage-means { margin: .6rem 0 0; color: var(--mhc-slate); line-height: 1.65; max-width: 44rem; }
.mhc-chapter { margin-top: 1rem; border: 1px solid var(--mhc-line); border-radius: 12px; background: #fff; max-width: 44rem; }
.mhc-chapter summary { cursor: pointer; list-style: none; padding: .85rem 1.1rem; min-height: 44px; display: flex; flex-direction: column; gap: .25rem; }
.mhc-chapter summary::-webkit-details-marker { display: none; }
.mhc-chapter summary .mhc-ch-title { font-weight: 700; color: var(--mhc-navy); }
.mhc-chapter summary .mhc-ch-first { color: var(--mhc-slate); font-size: .95rem; }
.mhc-chapter summary .mhc-ch-toggle { color: var(--mhc-teal); font-weight: 600; font-size: .9rem; }
.mhc-chapter[open] summary .mhc-ch-toggle .mhc-ch-closed, .mhc-chapter:not([open]) summary .mhc-ch-toggle .mhc-ch-open { display: none; }
.mhc-chapter-body { padding: 0 1.1rem 1.1rem; color: var(--mhc-ink); line-height: 1.75; }
.mhc-chapter-body p { margin: 0 0 1rem; }
.mhc-journey-note { margin-top: 1rem; color: var(--mhc-slate); font-size: .92rem; }

/* ------------------------------------------------------------ availability calendar (CAL-01, CAL-02) */

.mhc-av { margin-top: 2rem; }
.mhc-av-h3 { margin: 0 0 .5rem; font-size: 1.35rem; color: var(--mhc-navy); }
.mhc-av-intro { margin: 0 0 1rem; color: var(--mhc-slate); }
.mhc-av-pattern, .mhc-av-upcoming { margin-bottom: 2rem; }
.mhc-only-wide { display: none; }
@media (min-width: 720px) { .mhc-only-wide { display: table; } .mhc-only-narrow { display: none; } }
.mhc-av-grid { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.mhc-av-grid th { font-size: .8rem; font-weight: 600; color: var(--mhc-slate); padding: .35rem; text-align: center; }
.mhc-av-grid th[scope="row"] { text-align: left; white-space: nowrap; width: 6.5rem; }
.mhc-av-grid .mhc-av-corner { text-align: left; width: 6.5rem; font-weight: 500; }
.mhc-av-grid abbr { text-decoration: none; }
.mhc-av-grid td { height: 4.25rem; border-radius: 10px; vertical-align: top; padding: .45rem; }
.mhc-av-empty { background: rgb(255 255 255 / .6); border: 1px dashed var(--mhc-line); }
.mhc-av-hit { background: var(--mhc-navy); color: #fff; }
.mhc-av-cell { display: grid; gap: .15rem; font-size: .82rem; line-height: 1.3; }
.mhc-av-cell + .mhc-av-cell { margin-top: .4rem; padding-top: .4rem; border-top: 1px solid rgb(255 255 255 / .25); }
.mhc-av-cell strong { font-size: .9rem; }
.mhc-av-cell-next { display: inline-block; font-size: .75rem; font-weight: 600; }
.mhc-av-hit .mhc-av-cell-next { color: var(--mhc-warm-100); }
.mhc-av-plist { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.mhc-av-plist li { display: grid; gap: .15rem; background: #fff; border: 1px solid var(--mhc-line); border-left: 6px solid var(--mhc-navy); border-radius: 12px; padding: .8rem 1rem; }
.mhc-av-when { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--mhc-teal); }
.mhc-av-plist strong { color: var(--mhc-navy); font-size: 1.05rem; }
.mhc-av-plist .mhc-av-cell-next { color: var(--mhc-slate); }

.mhc-av-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
@media (min-width: 720px) { .mhc-av-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mhc-av-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mhc-av-card { background: #fff; border: 1px solid var(--mhc-line); border-radius: 14px; padding: 1.1rem; display: flex; flex-direction: column; gap: .3rem; scroll-margin-top: 6rem; }
.mhc-av-card p, .mhc-av-card h4 { margin: 0; }
.mhc-av-date { font-size: 1.1rem; color: var(--mhc-navy); font-weight: 700; }
.mhc-av-place { font-weight: 600; color: var(--mhc-ink); }
.mhc-av-meta { color: var(--mhc-slate); font-size: .92rem; }
.mhc-av-status { font-size: .88rem; font-weight: 700; color: var(--mhc-teal-600); }
.mhc-av-full .mhc-av-status { color: #8a4b0f; }
.mhc-av-cancelled { background: #f6f7f7; }
.mhc-av-cancelled .mhc-av-status { color: #9b1c1c; }
.mhc-av-cancelled .mhc-av-date, .mhc-av-cancelled .mhc-av-place { text-decoration: line-through; text-decoration-thickness: 1px; }
.mhc-av-note { color: var(--mhc-slate); font-size: .9rem; }
.mhc-av-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.mhc-av-tag { display: inline-block; border-radius: 999px; padding: .15rem .6rem; font-size: .75rem; font-weight: 700; }
.mhc-av-tag-today { background: var(--mhc-warm-100); color: #6b3d06; }
.mhc-av-tag-next { background: var(--mhc-teal); color: #fff; }
.mhc-av-card:has(.mhc-av-tag-next) { border: 2px solid var(--mhc-teal); }
.mhc-av-action { margin-top: auto; padding-top: .6rem; display: grid; gap: .35rem; }
.mhc-av-call { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; border-radius: 999px; background: var(--mhc-teal); color: #fff;
  font-weight: 600; text-align: center; padding: .4rem 1rem; }
.mhc-av-call:hover { background: var(--mhc-teal-600); }
.mhc-av-hint { color: var(--mhc-slate); font-size: .88rem; margin: 0; }
.mhc-av-hint a, .mhc-av-more a { color: var(--mhc-teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mhc-av-more { margin: 0 0 1rem; }
.mhc-av-more a { display: inline-flex; min-height: 44px; align-items: center; }
.mhc-av-standing { margin: 0; color: var(--mhc-ink); font-weight: 600; }
.mhc-av-updated { margin: .4rem 0 0; color: var(--mhc-slate); font-size: .85rem; }
.mhc-av-empty-state { margin: 0; padding: 1rem; border-radius: 12px; background: #fff; border: 1px solid var(--mhc-line); }
.mhc-av-fallback { margin: 0; font-weight: 600; color: var(--mhc-ink); }

/* Phone-only pattern list: hidden once the grid fits (after .mhc-av-plist so it wins). */
@media (min-width: 720px) { .mhc-av-plist.mhc-only-narrow { display: none; } }
