/* Hand-written overrides for this migration — client-jcfitnesscork (CLASSIC Duda).
 *
 * Kept OUTSIDE site/public/styles/ (gotcha 49): tools/port-css.mjs owns that directory and
 * clears it on every run, so a hand-written sheet there is deleted by the next port.
 *
 * Re-derived from the model for a classic Duda site, and re-checked for
 * this site 2026-11-02. The model is Duda FLEX; this site is CLASSIC
 * . Kept: the four rules below, each platform-neutral and each with a subject
 * on this site. DROPPED: the FLEX runtime-popup host rules (#flex-popup-overlay,
 * #flex-runtime-popup-container) — this site has 0 popups of either platform's kind (Phase 1:
 * no window.popups, no link_type="popup", no #dmPopup content) — and the .gy-legal-row rules,
 * which style legal pages the model generated and this site does not have.
 * Every rule changes NO pixel of the original; each exists only to make our single
 * three-band document behave like Duda's three device documents.
 */

/* Contact options (owner decision 2026-11-03, BRIEF.md §6): these replace the form inside the yellow
 * "Get in Touch" card on /contact-us. The colours are the ones Duda's Submit button used on that card. */
#dm .mg-contact-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  margin: 24px 35px 8px;
}
#dm .mg-contact-options a.mg-contact-option {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 10px 20px;
  box-sizing: border-box;
  border: 2px solid rgb(15, 15, 15);
  border-radius: 6px;
  background: transparent;
  color: rgb(15, 15, 15);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
}
#dm .mg-contact-options a.mg-contact-call {
  min-height: 84px;
  background: rgb(15, 15, 15);
  color: rgb(255, 255, 255);
  font-size: 20px;
  font-weight: 700;
}
#dm .mg-contact-options .mg-contact-number {
  display: block;
  font-size: 15px;
  font-weight: 500;
}
#dm .mg-contact-options svg {
  flex: none;
  width: 24px;
  height: 24px;
  fill: currentColor;
}
#dm .mg-contact-options a.mg-contact-option:hover {
  opacity: 0.85;
}
#dm .mg-contact-options a.mg-contact-option:focus-visible {
  outline: 3px solid rgb(15, 15, 15);
  outline-offset: 2px;
}
/* The same options in the footer's "Our Contact Details" row, on its dark background. */
#dm .mg-contact-options--footer {
  flex-direction: row;
  justify-content: center;
  max-width: 960px;
  margin: 28px auto 8px;
}
#dm .mg-contact-options--footer a.mg-contact-option {
  flex: 1 1 0;
  min-height: 72px;
  justify-content: center;
  border-color: rgb(239, 217, 12);
  color: rgb(255, 255, 255);
}
#dm .mg-contact-options--footer a.mg-contact-call {
  background: rgb(239, 217, 12);
  color: rgb(15, 15, 15);
  font-size: 18px;
}
#dm .mg-contact-options--footer a.mg-contact-option:focus-visible {
  outline-color: rgb(255, 255, 255);
}
/* The phone button in the top header (owner, 2026-11-03). Yellow and black, as the tablet header's Contact Us button.
 * On desktop it ends the logo and nav row, right-aligned and allowed to extend left from its narrow column, so the nav stays
 * where it was. On mobile it sits in the header's free space, out of flow, so the logo and menu do not move. */
#dm a.mg-header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  box-sizing: border-box;
  border-radius: 5px;
  background: rgb(239, 217, 12);
  color: rgb(15, 15, 15);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}
#dm a.mg-header-call span {
  color: inherit;
}
#dm a.mg-header-call svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: currentColor;
}
#dm a.mg-header-call:hover {
  background: rgb(255, 234, 40);
}
#dm a.mg-header-call:focus-visible {
  outline: 3px solid rgb(255, 255, 255);
  outline-offset: 2px;
}
#dm [id="1607506652"] {
  position: relative;
  align-self: center;
  overflow: visible !important;
}
#dm [id="1607506652"] > a.mg-header-call {
  position: absolute;
  top: 50%;
  right: 0;
  width: auto !important;
  max-width: none !important;
  transform: translateY(-50%);
}
/* Below 1240px the row has no room to spare: the logo and button columns shrink to fit and the nav takes the rest. */
@media (min-width: 1025px) and (max-width: 1239px) {
  #dm [id="1677919435"],
  #dm [id="1607506652"] {
    flex: none;
    width: auto !important;
  }
  #dm [id="1246161842"] {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
  }
  #dm [id="1607506652"] > a.mg-header-call {
    position: static;
    transform: none;
    gap: 8px;
    padding: 0 14px;
    font-size: 15px;
  }
}
/* Tablet: at the right of the header, in the column that held Duda's Contact Us button. */
#dm [id="1818888446"] {
  display: flex;
  align-items: center;
  align-self: center;
}
#dm [id="1818888446"] > a.mg-header-call {
  margin-left: auto !important;
  margin-right: 0 !important;
}
#dm #mobile-hamburger-header {
  position: relative;
}
#dm #mobile-hamburger-header > a.mg-header-call {
  position: absolute;
  top: 26px;
  right: 62px;
  z-index: 1;
  gap: 7px;
  padding: 0 12px;
  font-size: 15px;
}
/* /privacy-policy: long-form text on the site's dark background, in its own fonts and yellow. */
#dm .mg-policy-row {
  padding: 56px 40px !important;
  background: rgb(15, 15, 15);
}
#dm .mg-policy-row > .dmRespColsWrapper {
  display: block;
  max-width: 960px;
  margin: 0 auto;
}
#dm .mg-policy-row .dmRespCol {
  float: none;
  width: 100% !important;
}
#dm .mg-policy {
  color: rgb(255, 255, 255);
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  text-align: left;
}
#dm .mg-policy h2,
#dm .mg-policy h2 * {
  color: rgb(239, 217, 12) !important;
}
#dm .mg-policy h2 {
  margin: 36px 0 12px;
  font-size: 26px;
  line-height: 1.25;
}
#dm .mg-policy p {
  margin: 0 0 14px;
  color: inherit;
}
#dm .mg-policy ul {
  margin: 0 0 14px;
  padding-left: 22px;
  list-style: disc;
}
#dm .mg-policy li {
  margin-bottom: 8px;
  color: inherit;
  list-style: disc;
}
#dm .mg-policy a {
  color: rgb(239, 217, 12);
  text-decoration: underline;
}
#dm .mg-policy mark.mg-confirm {
  padding: 1px 4px;
  background: rgb(239, 217, 12);
  color: rgb(15, 15, 15);
}
#dm .mg-policy-draft {
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 2px solid rgb(239, 217, 12);
  border-radius: 5px;
}
#dm .mg-policy-updated {
  font-size: 14px;
}
#dm .mg-policy-table {
  margin: 0 0 18px;
  overflow-x: auto;
}
#dm .mg-policy table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
}
#dm .mg-policy th,
#dm .mg-policy td {
  padding: 10px 12px;
  border: 1px solid rgb(70, 70, 70);
  color: inherit;
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
}
#dm .mg-policy th {
  background: rgb(30, 30, 30);
}
@media (max-width: 767px) {
  #dm .mg-policy-row {
    padding: 36px 15px !important;
  }
  #dm .mg-policy h2 {
    font-size: 22px;
  }
}
/* Google Maps on click: the offer takes the 400px the iframe took, on the site's dark background and yellow. */
#dm .mg-map {
  display: flex;
  flex-direction: column;
  height: 400px;
  background: rgb(15, 15, 15);
  color: rgb(255, 255, 255);
  text-align: center;
}
#dm .mg-map-offer {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 15px;
}
#dm .mg-map p {
  margin: 0 0 8px;
  color: inherit;
}
#dm .mg-map-name {
  font-size: 26px;
  font-weight: 700;
  color: rgb(239, 217, 12) !important;
}
#dm .mg-map-address {
  font-size: 16px;
}
#dm .mg-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 14px 0 18px;
}
#dm .mg-map-show,
#dm .mg-map-directions {
  display: inline-block;
  min-width: 170px;
  padding: 13px 22px;
  border: 2px solid rgb(239, 217, 12);
  border-radius: 5px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
#dm .mg-map-show {
  background: rgb(239, 217, 12);
  color: rgb(15, 15, 15);
}
#dm .mg-map-directions {
  background: transparent;
  color: rgb(239, 217, 12);
  text-decoration: none;
}
#dm .mg-map-note {
  max-width: 560px;
  font-size: 13px;
  line-height: 1.5;
}
#dm .mg-map-note a {
  color: rgb(239, 217, 12);
  text-decoration: underline;
  white-space: nowrap;
}
#dm .mg-map--open iframe {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
}
#dm .mg-map--open .mg-map-directions {
  margin: 0;
  border-width: 0;
  border-top: 2px solid rgb(239, 217, 12);
  border-radius: 0;
}
/* The copyright line has the row to itself since the social icons moved, and the privacy link keeps it on one line. */
@media (min-width: 768px) {
  #dm .p_hfcontainer div.u_1196775939.u_1196775939 {
    flex: 1 1 100%;
    width: 100% !important;
    max-width: 100% !important;
  }
}
/* Tablet footer: each line of the opening hours needs about 232px with its padding, and a quarter of the row is less. */
@media (min-width: 768px) and (max-width: 1023px) {
  #dm [id="1094595177"] {
    flex: 0 0 240px;
    width: 240px !important;
  }
  #dm [id="1704902423"],
  #dm [id="1262733646"],
  #dm [id="1710154144"] {
    flex: 1 1 0;
    width: auto !important;
    min-width: 0;
  }
}
/* "Follow Us" under the footer's Business Hours. Duda's own icons in their yellow, left-aligned with the hours above and
 * with a 44px tap target. */
#dm .p_hfcontainer div.u_1508627236.mg-footer-social.mg-footer-social {
  display: block !important;
  float: none !important;
  width: 100% !important;
  margin: 6px 0 0 -6px !important;
  padding: 0 !important;
  text-align: left !important;
}
#dm .p_hfcontainer div.u_1508627236.mg-footer-social.mg-footer-social .socialHubIcon {
  color: rgb(239, 217, 12) !important;
  border-color: rgb(239, 217, 12) !important;
}
#dm .mg-footer-social.mg-footer-social .socialHubWrapper {
  display: block !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  text-align: left !important;
}
#dm .mg-footer-social.mg-footer-social .socialHubInnerDiv {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 4px;
  margin: 0 !important;
  text-align: left !important;
}
#dm .mg-footer-social .socialHubInnerDiv > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 !important;
}
/* The pin beside the address on every layout: both menus, footer and /contact-us. Duda's sheets give these rows
 * an envelope, and with their selectors and !important this has to out-rank them. */
#dm div.u_1032174310.u_1032174310.u_1032174310,
#dm div.u_1403839715.u_1403839715.u_1403839715,
#dm div.u_1609075310.u_1609075310.u_1609075310,
#dm div.u_1417167885.u_1417167885.u_1417167885 {
  background-image: url("/assets/lirp/b0560774/dms3rep/multi/opt/location-640w.png") !important;
}
/* On a phone the card comes first, so the call button is on screen without scrolling. */
@media (max-width: 767px) {
  #dm [id="1428416015"] {
    display: flex;
    flex-direction: column;
  }
  #dm [id="1428416015"] > .dmRespCol {
    width: auto !important;
    align-self: stretch;
  }
  #dm [id="1963948256"] {
    order: -1;
    margin-bottom: 32px;
  }
  #dm .mg-contact-options {
    margin: 20px 15px 8px;
  }
  #dm .mg-contact-options--footer {
    flex-direction: column;
    margin: 20px 0 8px;
  }
  #dm .mg-contact-options--footer a.mg-contact-option {
    flex: none;
    justify-content: flex-start;
  }
}

/* Blog cards the original withholds behind a pager. On this site every widget shows all its posts
 * (generated/blog-expanded.json: 3 of 3, or 2 of 2 on a post page), so this rule has no subject here. */
#dm .mg-blog-hidden.mg-blog-hidden.mg-blog-hidden {
  display: none !important;
}


#dm .postArticle:not(.mg-blog-hidden):has(+ .postArticle.mg-blog-hidden) {
  padding-bottom: 0 !important;
}

/* One document, three device bands. Breakpoints are this site's own, measured
 * (the media gates port-css applied): mobile <=767, tablet 768-1024, desktop >=1025. */
@media (max-width: 767px) {
  #dm .mg-only-d.mg-only-d.mg-only-d,
  #dm .mg-only-t.mg-only-t.mg-only-t {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  #dm .mg-only-d.mg-only-d.mg-only-d,
  #dm .mg-only-m.mg-only-m.mg-only-m {
    display: none !important;
  }
}

@media (min-width: 1025px) {
  #dm .mg-only-t.mg-only-t.mg-only-t,
  #dm .mg-only-m.mg-only-m.mg-only-m {
    display: none !important;
  }
}

/* Accordion open state. One accordion on this site: /personal-training-cork (generated/accordion-config.json). */
#dm .mg-acc-open.mg-acc-open.mg-acc-open {
  max-height: 2000px;
}

/* The mobile drawer's contact icons. Duda's lazy loader swaps a blurred placeholder for the real image when the
 * element comes into view; the capture never opened the drawer, so the build kept the placeholder. These are the images
 * live paints once the drawer is open (measured 2026-11-02), at live's own renditions. */
@media (max-width: 767px) {
  #dm #mobile-hamburger-drawer .u_1487279417 { background-image: url("/assets/lirp/b0560774/dms3rep/multi/opt/phone-640w.png") !important; }
  #dm #mobile-hamburger-drawer .u_1403839715 { background-image: url("/assets/lirp/b0560774/dms3rep/multi/opt/location-640w.png") !important; }
}
