/* Mobile reading groups and secondary actions. Desktop rules remain untouched. */
@media screen and (max-width:800px) {
 :root {
  --mr-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6'/%3E%3C/svg%3E");
  --mr-team: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='3'/%3E%3Cpath d='M3 21v-3a6 6 0 0 1 12 0v3M17 4a3 3 0 0 1 0 6m1 4a5 5 0 0 1 3 4v3'/%3E%3C/svg%3E");
  --mr-care: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.5 4.8a5 5 0 0 0-7 0L12 6.3l-1.5-1.5a5 5 0 0 0-7 7L12 21l8.5-9.2a5 5 0 0 0 0-7ZM4 12h4l2-4 3 8 2-4h5'/%3E%3C/svg%3E");
  --mr-leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 3C9 2 3 7 5 14c1 4 6 6 10 3 4-3 5-8 5-14ZM3 21 15 9'/%3E%3C/svg%3E");
 }

 /* One familiar action shape, scoped to navigation rather than prose links. */
 :is(
  .wp-site-blocks main.sh-editorial.sh-home a.sh-text-link,
  .wp-site-blocks main.ie-page a.ie-text-link,
  .wp-site-blocks main.sh-editorial.sh-home .yr-rail-footer>a.yr-all-source,
  .wp-site-blocks main.ie-about .ac-consultation-price>a,
  .wp-site-blocks main.ie-about .ac-document-links>a:first-child,
  .wp-site-blocks main.ie-page .ie-tour-row a.ie-tour-link,
  .wp-site-blocks .ed-site-footer a.ed-footer-route
 ) {
  --mr-action-ink:#103d34;
  --mr-action-line:#8c927c;
  display:inline-flex; align-items:center; justify-content:flex-start;
  align-self:start; justify-self:start;
  gap:10px; width:fit-content; max-width:100%; min-width:0; min-height:48px;
  padding:11px 14px; box-sizing:border-box;
  border:1px solid var(--mr-action-line); border-radius:4px;
  background:transparent; color:var(--mr-action-ink);
  font:600 16px/1.5 "Golos Text",sans-serif;
  letter-spacing:0; text-align:left; text-decoration:none;
  white-space:normal; overflow-wrap:break-word; touch-action:manipulation;
 }
 :is(
  .wp-site-blocks main.sh-editorial.sh-home a.sh-text-link,
  .wp-site-blocks main.ie-page a.ie-text-link,
  .wp-site-blocks main.sh-editorial.sh-home .yr-rail-footer>a.yr-all-source,
  .wp-site-blocks main.ie-about .ac-consultation-price>a,
  .wp-site-blocks main.ie-about .ac-document-links>a:first-child,
  .wp-site-blocks main.ie-page .ie-tour-row a.ie-tour-link,
  .wp-site-blocks .ed-site-footer a.ed-footer-route
 )::after {
  content:""; display:block; position:static; flex:0 0 20px;
  width:20px; height:20px; margin:0; background:currentColor;
  mask:var(--mr-arrow) center/contain no-repeat; transform:none;
 }
 :is(
  .wp-site-blocks main.sh-editorial.sh-home a.sh-text-link,
  .wp-site-blocks main.ie-page a.ie-text-link,
  .wp-site-blocks main.sh-editorial.sh-home .yr-rail-footer>a.yr-all-source,
  .wp-site-blocks main.ie-about .ac-consultation-price>a,
  .wp-site-blocks main.ie-about .ac-document-links>a:first-child,
  .wp-site-blocks .ed-site-footer a.ed-footer-route
 )>:is(svg,span[aria-hidden="true"]) { display:none; }
 :is(
  .wp-site-blocks main.sh-editorial.sh-home :is(.sh-method,.sh-china) a.sh-text-link,
  .wp-site-blocks main.ie-about .ac-medicine a.ie-text-link,
  .wp-site-blocks .ed-site-footer a.ed-footer-route
 ) {
  --mr-action-ink:#fff2d4;
  --mr-action-line:#a6ad88;
 }
 :is(.wp-site-blocks main a.sh-text-link,.wp-site-blocks main a.ie-text-link,
 .wp-site-blocks main .yr-all-source,.wp-site-blocks main .ie-tour-link,
 .wp-site-blocks main .ac-document-links a,.wp-site-blocks main .ac-consultation-price a,
 .wp-site-blocks .ed-site-footer a.ed-footer-route):focus-visible {
  outline:3px solid currentColor; outline-offset:3px;
 }
 .wp-site-blocks main.sh-editorial.sh-home .yr-home-heading {
  display:grid; grid-template-columns:minmax(0,1fr); gap:14px;
 }
 .wp-site-blocks main.sh-editorial.sh-home .yr-rail-footer { gap:16px; }
 .wp-site-blocks main.ie-page .ie-tour-row .ie-tour-actions {
  display:grid; grid-template-columns:minmax(0,1fr); gap:10px;
 }
 .wp-site-blocks main.ie-page .ie-tour-row a.ie-tour-enquiry {
  display:flex; justify-content:center; align-items:center; min-height:48px;
  padding:11px 14px; border:1px solid var(--ed-red); border-radius:4px;
  background:var(--ed-red); color:#fff8e8; font-size:16px; line-height:1.5;
  font-weight:600; text-decoration:none;
 }
 .wp-site-blocks main.ie-about .ac-consultation-price>a { margin-top:12px; }

 /* Linked cards lead to one shared action after the complete service list. */
 .wp-site-blocks main.sh-editorial.sh-home .sh-service .sh-service-copy>span.sh-text-link,
 .wp-site-blocks main.sh-editorial.sh-home .sh-services>.sh-section-heading>a.sh-text-link {
  display:none;
 }
 .wp-site-blocks main.sh-editorial.sh-home .sh-services-footer {
  display:block; margin-top:24px;
 }

 /* The mobile introduction moves directly from the cover to treatment directions. */
 .wp-site-blocks main.sh-editorial.sh-home .sh-hero-proof-band { display:none; }

 /* A compact paper offer, distinct from the primary booking action. */
 .wp-site-blocks main.sh-editorial.sh-home .sh-hero-price {
  display:grid; grid-template-columns:auto minmax(0,1fr) 18px; align-items:center;
  gap:12px; width:360px; max-width:100%; margin-top:16px; padding:12px 14px;
  box-sizing:border-box; border:1px solid #bea984; border-radius:4px;
  background:#f3e7d0; color:#153b32; text-decoration:none;
 }
 .wp-site-blocks main.sh-editorial.sh-home .sh-hero-price>strong {
  display:grid; gap:2px; padding-right:12px; border-right:1px solid #c8b895;
  color:#a2382c; line-height:1;
 }
 .wp-site-blocks main.sh-editorial.sh-home .sh-hero-price .sh-offer-label {
  font:600 13px/1.2 "Golos Text",sans-serif;
 }
 .wp-site-blocks main.sh-editorial.sh-home .sh-hero-price .sh-offer-value {
  font:600 36px/1 "Literata",Georgia,serif; white-space:nowrap;
 }
 .wp-site-blocks main.sh-editorial.sh-home .sh-hero-price>span:last-child {
  display:block; min-width:0; white-space:normal; font-size:15px; line-height:1.4;
 }
 .wp-site-blocks main.sh-editorial.sh-home .sh-hero-price::after {
  content:""; width:18px; height:18px; background:currentColor;
  mask:var(--mr-arrow) center/contain no-repeat;
 }
 .wp-site-blocks main.sh-editorial.sh-home .sh-hero-price:focus-visible {
  outline:3px solid var(--ed-red); outline-offset:3px;
 }
 .wp-site-blocks main.sh-editorial.sh-home .sh-hero-price:not(.sh-hero-offer-mobile) {
  display:none;
 }

 /* Keep the complete personal letter; the facts get their own reading rhythm. */
 .wp-site-blocks main.sh-editorial.sh-home .sh-about-copy>p { margin-top:18px; }
 .wp-site-blocks main.sh-editorial.sh-home .sh-about-copy .sh-lead { font-weight:500; }
 .wp-site-blocks main.sh-editorial.sh-home .sh-about-copy>a { margin-top:20px; }
 .wp-site-blocks main.sh-editorial.sh-home .sh-care-strip {
  padding:0; gap:0; background:transparent;
 }
 .wp-site-blocks main.sh-editorial.sh-home .sh-care-strip>.sh-about-facts {
  padding:18px 20px; background:#e5d8be; margin-bottom:4px;
 }
 .wp-site-blocks main.sh-editorial.sh-home .sh-care-strip>div:not(:first-child) {
  padding:16px 0; border-bottom:1px solid var(--ed-line);
 }
 .wp-site-blocks main.sh-editorial.sh-home .sh-care-strip>div:nth-child(2) { --mr-topic-icon:var(--mr-team); }
 .wp-site-blocks main.sh-editorial.sh-home .sh-care-strip>div:nth-child(3) { --mr-topic-icon:var(--mr-care); }
 .wp-site-blocks main.sh-editorial.sh-home .sh-care-strip>div:nth-child(4) { --mr-topic-icon:var(--mr-leaf); }
 .wp-site-blocks main.sh-editorial.sh-home .sh-care-strip h3 {
  display:flex; align-items:center; gap:10px;
 }
 .wp-site-blocks main.sh-editorial.sh-home .sh-care-strip h3::before {
  content:""; display:block; width:24px; height:24px; flex:0 0 24px;
  background:var(--ed-jade); mask:var(--mr-topic-icon) center/contain no-repeat;
 }
 .wp-site-blocks main.sh-editorial.sh-home .sh-care-strip p { margin-top:8px; }
 @media (hover:hover) {
  .wp-site-blocks main.ie-page .ie-tour-row a.ie-tour-enquiry:hover {
   color:#fff8e8; background:#862e24; border-color:#862e24;
  }
 }
}
