/* 2026-11-05: consistent reading and navigation across every public template.
   Original copy, botanical title images, diagrams and anchor targets are retained. */
:root {
  --clinic-sky:#edf5f7;
  --clinic-outline:#d5e3dd;
  --clinic-quiet:#f6faf8;
}

/* Shared actions: reserve the solid fill for the primary reservation action. */
.button { border-radius:10px; }
.booking-dialog { border-radius:18px; }
/* Keep the existing dialogs, with consistent labels and readable conditions. */
.site-menu .menu-top > .eyebrow,
.booking-dialog .booking-dialog-top > .eyebrow {
  font:500 13px/1.5 var(--sans);
  letter-spacing:.12em;
}
.site-menu .booking-block > .notice-text,
.booking-dialog .booking-block > .notice-text {
  font-size:14px;
  line-height:1.9;
}
.booking-dialog .notice-text,
.article-booking .notice-text { border-radius:0 10px 10px 0; }
.search-form { border-radius:10px; }
.search-form input { border-radius:10px 0 0 10px; }
.search-form button { border-radius:0 10px 10px 0; }

/* The selected title artwork stays intact; the reading surface starts below it. */
.page-hero-botanical .page-title .eyebrow { color:var(--brand-secondary); }
.page-hero-botanical .page-title .eyebrow::before {
  height:2px;
  background:var(--brand-soft);
}
.article-lead { color:var(--brand-dark); }
.page-hero-intro .intro-phrase { display:inline-block; max-width:100%; }
.page-hero-botanical > .container { min-height:440px; }
.page-hero-botanical .page-title,
.page-hero-botanical .page-title:has(.page-symptom-icon) { padding-block:84px 88px; }

/* Navigation is a quiet left rail; colored surfaces belong to medical notes. */
.page-toc {
  border:0;
  border-left:2px solid var(--clinic-outline);
  border-radius:0;
  background:none;
  padding:0 0 0 14px;
}
.page-toc > summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 6px 18px;
  margin:0;
  color:var(--brand-dark);
  font:600 14px/1.7 var(--sans);
  list-style:none;
  cursor:pointer;
}
.page-toc > summary::-webkit-details-marker { display:none; }
.page-toc > summary .icon { width:12px; height:12px; flex:none; }
.page-toc[open] > summary .icon { transform:rotate(180deg); }
.page-toc ol { padding:0; border:0; }
.page-toc a {
  min-height:46px;
  padding:12px 6px;
  border:0;
  border-bottom:1px solid var(--clinic-outline);
  border-radius:0;
  color:var(--body-copy);
}
.page-toc a .toc-label { text-wrap:pretty; }
.page-toc a > span:last-child { color:var(--brand-action); }
.sidebar-consult {
  border:1px solid var(--clinic-outline);
  border-radius:10px;
  background:#fff;
  color:var(--brand-dark);
}

/* A short color segment on the fine rule marks the start of a section. */
.entry-content > h2 {
  --section-heading-size:30px;
  padding:24px 0 0;
  border:0;
  border-top:1px solid var(--clinic-outline);
  border-radius:0;
  background:linear-gradient(var(--brand-secondary),var(--brand-secondary)) left top/64px 2px no-repeat;
  margin:60px 0 24px;
  color:var(--brand-dark);
  font:500 var(--section-heading-size)/1.6 var(--serif);
  text-wrap:balance;
}
.entry-content > h2:first-child { margin-top:0; }
.entry-content > h2::before { content:none; }
.entry-content .medical-reviewer {
  margin:clamp(32px,5vw,56px) 0 0;
  padding:16px 20px;
  border-inline-start:3px solid var(--brand-secondary);
  background:var(--clinic-quiet);
}
.entry-content .medical-reviewer h2 {
  margin:0 0 8px;
  color:var(--brand-dark);
  font:600 18px/1.6 var(--sans);
}
.entry-content .medical-reviewer p {
  margin:0;
  font:400 16px/1.8 var(--sans);
}
.entry-content .article-faq {
  border-top:1px solid var(--clinic-outline);
}
.entry-content .article-faq > summary {
  padding:12px 8px;
  color:var(--brand-dark);
  cursor:pointer;
}
.entry-content .article-faq > summary::marker { color:var(--brand-secondary); }
.entry-content .article-faq > p { margin:0 8px 20px; }
.entry-content h3 {
  padding:0;
  border:0;
  margin:36px 0 18px;
  color:var(--brand-dark);
  font:600 21px/1.75 var(--sans);
}
.entry-content .wp-block-list:not(:where(.onaga-link-list, .onaga-step-list)) {
  padding:0 0 0 1.4em;
  border-radius:0;
  background:none;
}
.entry-content .wp-block-list .wp-block-list { background:none; }
.entry-content .wp-block-group.onaga-callout {
  border:1px solid var(--clinic-outline);
  border-left:3px solid var(--brand-soft);
  border-radius:0 14px 14px 0;
  background:var(--clinic-sky);
}
.urgent-guidance {
  border-left-color:var(--brand-action);
  border-radius:0 12px 12px 0;
  background:var(--brand-surface);
  color:var(--brand-dark);
}

/* Diagrams keep their complete image; the surrounding frame supplies softness. */
.entry-content .onaga-image-text > .wp-block-image {
  padding:0;
  border:0;
  border-radius:0;
  background:none;
}
.entry-content .wp-block-image figcaption { color:var(--muted); text-align:left; padding-top:8px; }
.entry-content .wp-block-image > a[href$=".png" i]:has(> img) {
  display:block;
  width:fit-content;
  max-width:100%;
  margin-inline:auto;
  cursor:zoom-in;
}
.entry-content .wp-block-image > a + figcaption:has(> a[href$=".png" i]) {
  margin-top:14px;
  padding-top:0;
}
.entry-content .wp-block-image > a + figcaption > a[href$=".png" i] {
  display:inline-flex;
  align-items:center;
  gap:.5em;
  min-height:44px;
  padding:.5em .9em;
  border:1px solid currentColor;
  border-radius:8px;
  color:var(--brand-dark);
  background:#fff;
  font:600 1rem/1.5 var(--sans);
  text-decoration:none;
}
.entry-content .wp-block-image > a + figcaption > a[href$=".png" i]::before {
  content:"";
  width:1em;
  height:1em;
  flex:none;
  background:currentColor;
  mask:url("icons/magnifying-glass.svg") center / contain no-repeat;
}
.entry-content .wp-block-table {
  border:1px solid var(--clinic-outline);
  border-radius:12px;
  background:#fff;
}
.entry-content .wp-block-table th,
.entry-content .wp-block-table td {
  border:0;
  border-bottom:1px solid var(--clinic-outline);
}
.entry-content .wp-block-table tr:last-child > td { border-bottom:0; }
.entry-content .wp-block-table th { background:var(--clinic-sky); color:var(--brand-dark); }
.entry-content .wp-block-table tbody tr:nth-child(even) { background:var(--clinic-quiet); }

/* Routes read as rows, procedures as a sequence; neither resembles a note box. */
.entry-content .directory-list { gap:12px; }
.entry-content .directory-list li { border:0; }
.entry-content .directory-columns .directory-label { text-wrap:balance; }
.entry-content .directory-list a {
  height:100%;
  min-height:76px;
  padding:14px 4px;
  border:0;
  border-bottom:1px solid var(--clinic-outline);
  border-radius:0;
  background:none;
  color:var(--brand-dark);
  text-decoration:none;
}
.entry-content .onaga-link-list { gap:12px; }
.entry-content .onaga-link-list { padding:0; }
.entry-content .onaga-link-list > li { border:0; padding:0; }
.entry-content .onaga-link-list a {
  display:block;
  align-content:center;
  height:100%;
  min-height:72px;
  padding:16px 48px 16px 4px;
  border:0;
  border-bottom:1px solid var(--clinic-outline);
  border-radius:0;
  background:none;
  color:var(--brand-dark);
  text-decoration:none;
  text-wrap:balance;
}
.entry-content .onaga-link-list a::before { right:14px; background:var(--brand-pale); }
.entry-content .onaga-link-list a::after { right:23px; background:var(--brand-dark); }
.entry-content .onaga-step-list > li {
  padding:20px 4px;
  margin:0;
  border:0;
  border-bottom:1px solid var(--clinic-outline);
  border-radius:0;
  align-items:flex-start;
  background:none;
  font-family:var(--sans);
  text-wrap:pretty;
}
.entry-content .onaga-step-list > li::before {
  flex:0 0 30px;
  min-width:0;
  color:var(--brand-secondary);
  font:400 22px/1.5 var(--numeric);
  font-variant-numeric:lining-nums tabular-nums;
}
.related-links { gap:12px; }
.related-links .row-link {
  padding:20px 4px;
  border:0;
  border-bottom:1px solid var(--clinic-outline);
  border-radius:0;
  background:none;
  color:var(--brand-dark);
}
.related-links .circle-arrow,
.archive-content .circle-arrow,
ul.search-results .circle-arrow,
.single-content .back-link .circle-arrow { background:var(--brand-pale); }
.related-links .circle-arrow .icon,
.archive-content .circle-arrow .icon,
ul.search-results .circle-arrow .icon,
.single-content .back-link .circle-arrow .icon { filter:brightness(0); opacity:.65; }
.article-booking {
  border:0;
  border-top:3px solid var(--brand-soft);
  border-radius:0 0 12px 12px;
  background:var(--brand-surface);
}
.article-booking h2 { justify-content:flex-start; }
.article-booking .booking-options { align-items:center; }
.article-booking .booking-phone { color:var(--brand-dark); }
.article-booking .notice-text { background:#fff; }

/* News, search and the recovery page receive the same visual entry point. */
.simple-page-heading,
.error-page { position:relative; isolation:isolate; }
.simple-page-heading::before,
.error-page::before {
  content:'';
  position:absolute;
  inset:auto auto 0 0;
  width:72px;
  height:2px;
  z-index:-1;
  border-radius:0;
  background:var(--brand-soft);
  pointer-events:none;
}
.simple-page-heading .eyebrow,
.error-page .eyebrow {
  display:flex;
  align-items:center;
  gap:14px;
  color:var(--brand-secondary);
}
.simple-page-heading .eyebrow::before,
.error-page .eyebrow::before {
  content:'';
  width:32px;
  height:2px;
  background:var(--brand-soft);
}
.simple-page-heading h1,
.error-page h1 { color:var(--brand-dark); }
.single-content,
.archive-content { padding-top:32px; }
.archive-content .news-list a { gap:24px; }
ul.search-results li { padding:28px 0; }
ul.search-results h2 { line-height:1.7; }
.nav-links .page-numbers {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:44px;
  min-height:44px;
  border-radius:8px;
}

@media(hover:hover) {
  .page-toc a:hover,
  .sidebar-consult:hover,
  .entry-content .directory-list a:hover,
  .entry-content .onaga-link-list a:hover,
  .related-links .row-link:hover {
    background:var(--brand-surface);
    color:var(--brand-dark);
    border-color:#94b5a6;
    text-decoration:none;
  }
}
.page-toc a:focus-visible,
.page-toc > summary:focus-visible,
.entry-content .article-faq > summary:focus-visible,
.entry-content .onaga-link-list a:focus-visible,
.entry-content .directory-list a:focus-visible,
.related-links .row-link:focus-visible {
  outline:2px solid var(--brand-dark);
  outline-offset:2px;
  border-radius:8px;
}

@media(max-width:1100px) {
  html { scroll-padding-bottom:calc(80px + env(safe-area-inset-bottom)); }
  .back-top { display:inline-grid; place-items:center; min-width:44px; min-height:44px; }
}
@media(max-width:374px) {
  .mobile-actions { grid-template-columns:1fr 1.4fr 1fr; }
}
@media(max-width:900px) {
  .page-toc { padding:0; border:1px solid var(--clinic-outline); border-radius:8px; background:var(--clinic-quiet); }
  .page-toc > summary { min-height:54px; padding:14px 18px; font-size:15px; }
  .page-toc ol { padding:8px; border-top:1px solid var(--clinic-outline); }
  .page-toc a { padding:12px; }
  .page-toc li:last-child a { border-bottom:0; }
}
@media(max-width:767px) {
  .page-hero-botanical > .container { min-height:340px; }
  .page-hero-botanical .page-title,
  .page-hero-botanical .page-title:has(.page-symptom-icon) { padding-block:48px 56px; }
  .page-hero-botanical .page-title .page-symptom-icon { top:36px; }
  .entry-content > h2 {
    --section-heading-size:24px;
    padding:18px 0 0;
    margin:36px 0 18px;
    background-size:48px 2px;
  }
  .entry-content h3 { font-size:19px; padding:0; margin:28px 0 16px; }
  .entry-content .directory-list a { min-height:72px; padding:12px 4px; }
  .entry-content .directory-symptom .symptom-icon { margin-left:0; }
  .entry-content .onaga-link-list a { min-height:60px; padding:14px 48px 14px 4px; }
  .entry-content .onaga-step-list > li { gap:12px; padding:16px 4px; }
  .entry-content .onaga-step-list > li::before { flex-basis:26px; font-size:20px; }
  .entry-content .onaga-image-text > .wp-block-image { padding:0; }
  .article-booking { padding:24px 18px; }
  .article-booking h2 { font-size:22px; }
  .related-links .row-link { padding:16px 4px; }
  .simple-page-heading::before,
  .error-page::before { inset:auto auto 0 0; border-radius:0; }
  .single-content,
  .archive-content { padding-top:24px; }
  .archive-content .news-list a { gap:16px; }
}
@media print {
  .simple-page-heading::before,
  .error-page::before { display:none; }
  .entry-content > h2 { break-after:avoid; }
}

/* Keep both booking methods reachable in short or text-enlarged viewports. */
.booking-dialog {
  box-sizing:border-box;
  width:min(36rem, calc(100% - 1.5rem));
  max-height:calc(100vh - 1.5rem);
  max-height:calc(100dvh - 1.5rem);
  padding:0 1.25rem 1.25rem;
  overflow:auto;
  scroll-padding:5rem 0 1rem;
}
.booking-dialog .booking-dialog-top {
  top:0;
  margin:0 -1.25rem 1rem;
  padding:.6rem .75rem .6rem 1.25rem;
  gap:.5rem;
}
.booking-dialog .booking-dialog-top h2 {
  margin:0;
  font-size:clamp(1.125rem, 3.4vw, 1.4rem);
  line-height:1.4;
  overflow-wrap:anywhere;
}
.booking-dialog-top .close-button { flex:none; }
.booking-dialog .booking-methods { display:grid; gap:.9rem; }
.booking-dialog .booking-method { display:grid; gap:.4rem; min-width:0; }
.booking-dialog .booking-method + .booking-method {
  padding-top:.9rem;
  border-top:1px solid var(--clinic-outline);
}
.booking-dialog .booking-method p,
.booking-dialog .booking-lens-notice p {
  margin:0;
  font-size:.9375rem;
  line-height:1.6;
  overflow-wrap:anywhere;
}
.booking-dialog .booking-method .button {
  width:100%;
  min-width:0;
  min-height:2.875rem;
  padding:.5rem .75rem;
  box-sizing:border-box;
  line-height:1.4;
  white-space:normal;
  text-align:center;
  overflow-wrap:anywhere;
}
.booking-dialog .booking-call {
  gap:.55rem;
  color:var(--brand-dark);
  background:var(--clinic-quiet);
  border:2px solid currentColor;
}
.booking-dialog .booking-call .icon { width:1.1em; height:1.1em; flex:none; }
.booking-dialog .booking-call b { display:inline-block; max-width:100%; }
.booking-dialog .booking-lens-notice {
  margin-block:1rem;
  padding:.65rem .85rem;
  border-inline-start:3px solid var(--brand-secondary);
  background:var(--clinic-quiet);
}
.booking-dialog .booking-lens-notice h3 {
  margin:0 0 .3rem;
  color:var(--brand-dark);
  font:600 1rem/1.5 var(--sans);
}
.booking-dialog > .text-link { margin-top:.65rem; }
.home-lens-policy { padding-block-end:clamp(2rem, 5vw, 4.5rem); }
.home-lens-policy .booking-lens-notice,
.booking-block .booking-lens-notice {
  padding:1rem 1.25rem;
  border-inline-start:3px solid var(--brand-secondary);
  background:var(--clinic-quiet);
  color:var(--brand-dark);
}
.home-lens-policy .booking-lens-notice h2,
.booking-block .booking-lens-notice h3 {
  margin:0 0 .4rem;
  font:600 1.0625rem/1.55 var(--sans);
}
.home-lens-policy .booking-lens-notice p,
.booking-block .booking-lens-notice p { margin:0; line-height:1.8; }
@media (max-height:26rem) {
  .booking-dialog .booking-dialog-top { position:static; }
  .booking-dialog { scroll-padding-top:1rem; }
}

/* Shared Gothic headings and Pattern 2 palette. */
@font-face {
  font-family: 'Onaga Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/brand-refresh/ZenKakuGothicNew-Medium-common.woff2') format('woff2');
  unicode-range: U+20-7E,U+A0-FF,U+2000-206F,U+3000-30FF,U+4E0D,U+5185,U+533B,U+5B88,U+5C02,U+5E38,U+60A3,U+65E5,U+666F,U+7406,U+75BE,U+76EE,U+773C,U+79D1,U+7BA1,U+7D99-7D9A,U+7DB2,U+7DD1,U+7F8E,U+819C,U+8272,U+898B,U+8ABF,U+9577,U+9580,U+969C,U+FF00-FFEF;
}
@font-face {
  font-family: 'Onaga Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/brand-refresh/ZenKakuGothicNew-Medium-remainder.woff2') format('woff2');
  unicode-range: U+0-1F,U+7F-9F,U+100-1FFF,U+2070-2FFF,U+3100-4E0C,U+4E0E-5184,U+5186-533A,U+533C-5B87,U+5B89-5C01,U+5C03-5E37,U+5E39-60A2,U+60A4-65E4,U+65E6-666E,U+6670-7405,U+7407-75BD,U+75BF-76ED,U+76EF-773B,U+773D-79D0,U+79D2-7BA0,U+7BA2-7D98,U+7D9B-7DB1,U+7DB3-7DD0,U+7DD2-7F8D,U+7F8F-819B,U+819D-8271,U+8273-898A,U+898C-8ABE,U+8AC0-9576,U+9578-957F,U+9581-969B,U+969D-FEFF,U+FFF0-10FFFF;
}
@font-face {
  font-family: 'Onaga Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/brand-refresh/ZenKakuGothicNew-Bold-common.woff2') format('woff2');
  unicode-range: U+20-7E,U+A0-FF,U+2000-206F,U+3000-30FF,U+4E0D,U+5185,U+533B,U+5B88,U+5C02,U+5E38,U+60A3,U+65E5,U+666F,U+7406,U+75BE,U+76EE,U+773C,U+79D1,U+7BA1,U+7D99-7D9A,U+7DB2,U+7DD1,U+7F8E,U+819C,U+8272,U+898B,U+8ABF,U+9577,U+9580,U+969C,U+FF00-FFEF;
}
@font-face {
  font-family: 'Onaga Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/brand-refresh/ZenKakuGothicNew-Bold-remainder.woff2') format('woff2');
  unicode-range: U+0-1F,U+7F-9F,U+100-1FFF,U+2070-2FFF,U+3100-4E0C,U+4E0E-5184,U+5186-533A,U+533C-5B87,U+5B89-5C01,U+5C03-5E37,U+5E39-60A2,U+60A4-65E4,U+65E6-666E,U+6670-7405,U+7407-75BD,U+75BF-76ED,U+76EF-773B,U+773D-79D0,U+79D2-7BA0,U+7BA2-7D98,U+7D9B-7DB1,U+7DB3-7DD0,U+7DD2-7F8D,U+7F8F-819B,U+819D-8271,U+8273-898A,U+898C-8ABE,U+8AC0-9576,U+9578-957F,U+9581-969B,U+969D-FEFF,U+FFF0-10FFFF;
}

body.onaga-front:not([class*="onaga-design-"]) {
  --heading-font:'Onaga Zen Kaku Gothic New',var(--sans);
  --serif:var(--heading-font);
  --numeric:var(--heading-font);
  --brand-paper:#fff;
  --brand-surface:#f6f9ed;
  --brand-pale:#f1f9e4;
  --brand-main:#a7cf5f;
  --brand-soft:var(--brand-main);
  --brand-action:#496c36;
  --brand-dark:#365c3a;
  --brand-secondary:#536b41;
  --body-copy:#364337;
  --ink:var(--body-copy);
  --muted:#565f51;
  --line:#d9e4c9;
  --sand:#b9cda3;
  --bronze:var(--brand-action);
  --bronze-deep:var(--brand-dark);
  --cream:var(--brand-paper);
  --cream-deep:var(--brand-pale);
  --heading-primary:var(--brand-dark);
  --heading-secondary:var(--brand-dark);
  --label-copy:var(--brand-secondary);
  --clinic-outline:var(--line);
  --clinic-sky:var(--brand-pale);
  --clinic-quiet:var(--brand-surface);
  background:var(--brand-paper);
  color:var(--body-copy);
}
body.onaga-front:not(.home) :is(h1,h2,h3,h4,h5,h6) { font-family:var(--heading-font); }
body:not(.home) :is(.eyebrow,.menu-caption,.simple-page-heading time,.news-list time,.news-date,.page-numbers) {
  font-family:var(--heading-font);
  font-variant-numeric:lining-nums tabular-nums;
}
body:not(.home) :is(.simple-page-heading,.page-title,.error-page) h1 {
  color:var(--brand-dark);
  font-weight:700;
}
body:not(.home) :is(.header-phone,.footer-phone,.page-hero-intro,.related-section h2,.section-heading) { color:var(--brand-dark); }
body:not(.home) .article-content :is(h2,h3,h4,h5,h6) { color:var(--brand-dark); }
body:not(.home) .entry-content > h2 { background-image:linear-gradient(var(--brand-action),var(--brand-soft)); font-weight:700; }
body:not(.home) .entry-content :is(h3,h4,h5,h6) { font-weight:700; }
body:not(.home) .entry-content .onaga-step-list > li::before { font-family:var(--heading-font); }
body:not(.home) .breadcrumb { color:var(--muted); }
body:not(.home) ::selection { color:var(--brand-dark); background:var(--brand-pale); }

/* Keep the original botanical composition and leave custom banner artwork in its own colors. */
body:not(.home) .page-hero-background picture {
  position:relative;
  isolation:isolate;
  background:var(--brand-pale);
}
body:not(.home) .page-hero-background picture::after {
  content:"";
  position:absolute;
  inset:0;
  background:#93ad73;
  mix-blend-mode:color;
}
body:not(.home) :is(.simple-page-heading,.error-page) {
  background:var(--brand-surface);
  box-shadow:0 0 0 100vmax var(--brand-surface);
  clip-path:inset(0 -100vmax);
}
body:not(.home) :is(.page-toc a,.related-links .row-link,.entry-content .directory-list a,.archive-content .news-list a) {
  border-color:var(--line);
}
body:not(.home) .article-booking h2 .icon { filter:brightness(0); opacity:.65; }
body:not(.home) .side-actions a { box-shadow:inset 0 0 0 1px var(--sand),0 6px 20px rgb(54 79 44 / 9%); }
body:not(.home) .site-header { background:#fff; }
body:not(.home) .sidebar-consult { background:#fff; border-color:var(--sand); }
body:not(.home) .visit-section { background:var(--brand-surface); border-top:1px solid var(--line); }
body:not(.home) .onaga-hours thead { background:var(--brand-pale); }
body:not(.home) .onaga-hours :is(td,th) { border-color:var(--line); }
body:not(.home) .search-form { background:#fff; border-color:var(--sand); }
body:not(.home) :is(.search-form input,.search-form button) { color:var(--brand-dark); }
body:not(.home) .site-menu::backdrop,
body:not(.home) .booking-dialog::backdrop { background:rgb(31 44 29 / 48%); }
body:not(.home) :is(a,button,input,summary):focus-visible { outline-color:var(--brand-dark); }

@media (hover:hover) {
  body:not(.home) :is(.page-toc a,.sidebar-consult,.related-links .row-link,.archive-content .news-list a):hover,
  body:not(.home) .entry-content :is(.onaga-link-list,.directory-list) a:hover {
    color:var(--brand-dark);
    border-color:var(--brand-secondary);
    background:var(--brand-pale);
  }
  body:not(.home) .side-actions a:hover { box-shadow:inset 0 0 0 1px var(--brand-secondary),0 6px 20px rgb(54 79 44 / 12%); }
}
@media print {
  body:not(.home) :is(.simple-page-heading,.error-page) { box-shadow:none; clip-path:none; }
}

/* Mobile navigation occupies the usable viewport; the narrow outer edge remains dismissible. */
@media (max-width:767px) {
  body.onaga-front .site-menu {
    --menu-top:max(6px,env(safe-area-inset-top,0px));
    --menu-bottom:max(6px,env(safe-area-inset-bottom,0px));
    --menu-left:max(8px,env(safe-area-inset-left,0px));
    --menu-right:max(8px,env(safe-area-inset-right,0px));
    inset:var(--menu-top) auto auto var(--menu-left);
    margin:0;
    width:calc(100% - var(--menu-left) - var(--menu-right));
    height:calc(100vh - var(--menu-top) - var(--menu-bottom));
    height:calc(100dvh - var(--menu-top) - var(--menu-bottom));
    max-height:none;
    overflow:auto;
    scroll-padding-bottom:22px;
    background:var(--brand-paper);
    border:1px solid var(--sand);
  }
  body.onaga-front .site-menu::backdrop { background:#e8efdc; }
}

/* Use the clinic's official LINE account mark without a third-party image request. */
.line-friend-link::before {
  content:"";
  flex:none;
  width:26px;
  height:26px;
  background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABYlBMVEX///9V1QBOzABOzQBOzQBOzQBOzQBOzQBmzABMzwBOzQBOzABAvwBOzgBPzQBNzgBOzQBj0x6E3E6h5Xi/7aPc9c3Z9Mi77J2e5HOB20le0hdh0hy97KD+//3////7/vmx6Y9b0RNX0A2r54b5/fb1/PBTzgdRzgXT88DG761PzQG665uq54Sc43CM3lny++zi99Vt1ixy1zTF76y16pV92kPA7aRh0hvn+N132TuB3EpZ0BBo1CVd0RWY4mtk0yCs6Ihv1jC465hz1zX8/vpq1Siy6ZB12DiI3VTD7qjK8LOI3VNa0BGc43Ff0hh92kSl5n3L8LRPzQJUzwiV4Wd/20Z02DeL3lid43KW4Whx1zKo5oGq54XS8r6u6IrV88Oh5Hfz/O6P313b9cvK8LJn1CTx++vj99fI8LDQ8ryP317u+uZRzgRw1zGi5XnU88Fv1i+D3Ezz++3+//5Uzwng9tJQ6BhRAAAAEHRSTlMABnm+7u+7dQUl0c8EcrntqL0a5QAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAVYAAAFWAXvmZh8AAAAHdElNRQfjBQoMGTE4nfzeAAABbklEQVQ4y32TZ1PCQBCGjxJCiOUUBURYwYbGgigWjEoRwQbYMaLYO3b9/15GzeUg5vmUffeZzNzeLULIYrXZsQGcg3ciguDC/yIKCDlFbILYhHhsSjNymAstiKNFW7u7o9Pj9XX5adaKtM/uQBB+6QmFtfhP6O3rBx0D7kFWiAxBHcMSI4xAA6N6YQwMGKeCFDUSJqgQI+XkFEB8emZ2DhLeeVleINGiJiyRKhkASKUzeDm7ksuvrq2TaEMTAlTYDBeIUEyXSJTShC0qJLd3dnP5UipOoj1N2FeFg7JbFeAQ5/KxskKiI02QyZArinJ8UvVUIOs7DSnKGcB5hM6hanTMC92gIpeN/Stm1Nc39f3bInub/ju2fy/XXTfGD4+6fqaGGwQsPT2//LyZYIGmOkHlVX020Tf8r4Df4cMb1geIXapP+EowAYdsTC3FauwfHciKTeGRxWXWF8n6CibL6RLU9XbyDs6oa7dZLQh9A2e6aOTPD1yzAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE5LTA1LTEwVDEyOjI1OjQ5KzAyOjAwlfP+7AAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxOS0wNS0xMFQxMjoyNTo0OSswMjowMOSuRlAAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAV3pUWHRSYXcgcHJvZmlsZSB0eXBlIGlwdGMAAHic4/IMCHFWKCjKT8vMSeVSAAMjCy5jCxMjE0uTFAMTIESANMNkAyOzVCDL2NTIxMzEHMQHy4BIoEouAOoXEXTyQjWVAAAAAElFTkSuQmCC") center / contain no-repeat;
}
@media screen and (min-width:1101px) and (min-height:521px) {
  .side-actions { top:min(245px,calc(100dvh - 370px)); }
}
@media screen and (min-width:1101px) and (max-height:520px) {
  .side-actions { top:auto; bottom:8px; gap:5px; }
  .side-actions :is(a,button) { min-height:64px; padding-block:5px; gap:3px; }
}
@media screen and (max-width:1100px) {
  .mobile-actions {
    display:grid;
    grid-template-columns:minmax(0,.85fr) minmax(0,1.5fr) minmax(0,.85fr) minmax(0,1fr);
  }
  .mobile-actions :is(a,button) { width:100%; max-width:none; }
  .line-friend-link::before { width:22px; height:22px; }
}
@media screen and (max-width:767px) {
  .mobile-actions { grid-template-columns:repeat(4,auto); }
  .mobile-actions :is(a,button) {
    width:auto;
    padding-inline:2px;
    text-wrap:balance;
  }
}
