/*
 * Hub pages: the styling of the pages Alma Harmony and Laser Hair Removal, at
 * any address (Phase 3 plan 11). Printed by includes/clinic/hub-page.php on a
 * hub page only.
 *
 * These are the rules of the WPCode snippet "Dynamic Treatment Page CSS", which
 * chose its pages by typed address: a moved or renamed page lost its styling,
 * and so did any address with a query string. Same rules, same order, same
 * declarations, but for two values: on phones h1 is 30px and h2 26px (the
 * snippet: 35 / 30), a little smaller (Katie, 2026-10-07; Severin chose the
 * sizes on 2026-10-14, the same as the treatment pages). The one change to
 * the selectors: every selector starts with
 * :where([data-elementor-type="wp-page"]), the wrapper Elementor puts around a
 * page's own content. So the rules reach the page's content and nothing else:
 * not the site header, the footer, the booking window, the cookie banner.
 *
 * Don't strengthen or tidy:
 * - :where() adds no strength, so each rule is exactly as strong as the bare
 *   rule it replaces (h1, p, .e-con ...). A plain prefix would make every rule
 *   stronger and repaint things inside the content.
 * - hub-page.php prints this file as the last stylesheet of the page head,
 *   after Additional CSS and the plugin's header and cards stylesheets. That is
 *   the snippet's place in the order (WPCode printed it as the first thing in
 *   the body, with no style between). Several rules here win or lose by order
 *   alone. Keep it there.
 * - The snippet's copy is docs/treatment-template/
 *   wpcode-dynamic-treatment-page-css-2026-10-12.css in the repo;
 *   tests/phase3/test-hub-page.php compares the two rule for rule.
 */

/* ===== Base styles (desktop + tablet) ===== */
:where([data-elementor-type="wp-page"]) h1 {
  font-family: DM Sans !important;
  text-transform: none !important;
  font-weight: 600 !important;
  font-size: 52px !important;
}
:where([data-elementor-type="wp-page"]) h2 {
  font-weight: 500 !important;
  font-size: 38px !important;
}
:where([data-elementor-type="wp-page"]) h3 {
  font-weight: 600 !important;
  font-size: 22px !important;
}
:where([data-elementor-type="wp-page"]) p {
  font-size: 16px;
  color: #272727 !important;
  line-height: 1.6 !important;
}
:where([data-elementor-type="wp-page"]) p:last-child {
  margin-bottom: 0 !important;
}
:where([data-elementor-type="wp-page"]) .p-dark-bg p {
  color: #fff !important;
}
/* Containers */
:where([data-elementor-type="wp-page"]) .e-con:not(header .e-con):not(footer .e-con) {
  padding: 2em;
  gap: 20px;
}
/* Always remove padding/gap on these containers (all devices) */
:where([data-elementor-type="wp-page"]) .e-con.no-padding-con,
:where([data-elementor-type="wp-page"]) .e-con .no-padding-con {
  padding: 0 !important;
  gap: 0;
}
/* ===== Mobile overrides only ===== */
@media (max-width: 767px) {
  :where([data-elementor-type="wp-page"]) h1 {
    font-size: 30px !important;
    line-height: 1.2em !important;
  }
  :where([data-elementor-type="wp-page"]) h2 {
    font-size: 26px !important;
  }
  :where([data-elementor-type="wp-page"]) p {
    font-size: 15px !important;
  }
  :where([data-elementor-type="wp-page"]) .e-con:not(header .e-con):not(footer .e-con) {
    padding: 1.5em;
  }
}
