/*
 * ChicMama 2027 — sections added in December 2026
 * (Terrace & Garden, Chef, Bar, Bar Manager, Private events).
 * Every rule is scoped to a class used only by these sections.
 * The !important flags in .cm-path are needed to override the section's inline layout on phones.
 */

/* Step titles (Bar Manager, "Cut, pour, stir, finish"): Italian words are longer. */
.cm-p26-step-title { font-size: clamp(40px, 4.6vw, 64px); }
:lang(it) .cm-p26-step-title { font-size: clamp(34px, 3.8vw, 52px); }

/* Career timeline on phones: one column with a vertical line. */
@media (max-width: 640px) {
  .cm-path { grid-template-columns: 1fr !important; row-gap: 34px !important; border-left: 1px solid rgba(194, 162, 104, .55); margin-left: 6px !important; }
  .cm-path > li { border-top: 0 !important; padding: 0 0 0 28px !important; }
  .cm-path > li > span[aria-hidden] { top: 7px !important; left: -6px !important; }
  .cm-path > li > span:nth-child(2) { display: none !important; }
}

/* Private events questions. */
details.cm-p26-faq > summary { list-style: none; cursor: pointer; }
details.cm-p26-faq > summary::-webkit-details-marker { display: none; }
details.cm-p26-faq[open] .cm-plus { transform: rotate(45deg); }
details.cm-p26-faq > summary:focus-visible { outline: 2px solid #9A7B43; outline-offset: 4px; }

/* Request form: keyboard focus stays visible. */
form[data-cm-form="event-request"] :is(input, select, textarea):focus-visible,
form[data-cm-form="event-request"] button:focus-visible { outline: 2px solid #9A7B43; outline-offset: 2px; }

/* Page heroes of these sections were drawn with the header in the page flow.
 * On the site the header is fixed, so the first hero starts below it (as the existing heroes do with their own 74px). */
#cm-main > .cm-p26-hero:first-child,
#cm-main > div:first-child > .cm-p26-hero:first-child { margin-top: var(--cm-header-h, 74px); } /* Lazy Blocks wraps each module in a div */

/* Fixed bottom-right button: its Lazy Blocks wrapper must not become the sticky container,
 * otherwise the button scrolls away with a zero-height box. */
.wp-block-lazyblock-cm27-sticky-button { display: contents; }

/* Phone menu: pages that belong to a section sit under it, smaller and indented
 * (The chef under Cuisine, Bar Manager under Bar). */
#cm-mobnav .cm-moblink-child {
  font-family: 'Span', serif; font-weight: 200;
  font-size: clamp(19px, 5.4vw, 22px); line-height: 1.2;
  color: rgba(233, 221, 201, .78); text-decoration: none;
  padding: 8px 0 12px 22px; margin-top: -4px;
  border-bottom: 1px solid rgba(220, 228, 240, .12);
}
#cm-mobnav .cm-moblink-child::before { content: "—"; margin-right: 10px; color: #C2A268; }
/* Secondary row: Private events · Getting here · FAQ. */
#cm-mobnav .cm-mobnav-secondary { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 18px 0 4px; }
#cm-mobnav .cm-mobnav-secondary a {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: #C2A268; text-decoration: none; padding: 6px 0;
}
#cm-mobnav .cm-moblink-child:focus-visible,
#cm-mobnav .cm-mobnav-secondary a:focus-visible { outline: 2px solid #C2A268; outline-offset: 3px; }

/* Footer "Explore": section pages indented under their section. */
footer .cm-footlink-child { padding-left: 14px; position: relative; }
footer .cm-footlink-child::before { content: "—"; position: absolute; left: 0; color: rgba(194, 162, 104, .7); font-size: 11px; top: 1px; }

/* Short phones (iPhone SE and similar): the whole menu fits without scrolling.
 * The link sizes are set inline in header.php, so the override needs !important (scoped to #cm-mobnav). */
@media (max-width: 900px) and (max-height: 700px) {
  #cm-mobnav .cm-moblink { font-size: 28px !important; padding: 8px 0 !important; }
  #cm-mobnav .cm-moblink-child { font-size: 18px; padding: 4px 0 8px 22px; }
  #cm-mobnav .cm-mobnav-secondary { padding-top: 12px; }
}
