/* Clear explanations and preparation. Load after mobile.css. */

.service-dialog {
  width: min(560px, calc(100% - 24px));
  max-width: calc(100% - 24px);
  max-height: calc(100vh - 24px);
  max-height: min(760px, calc(100dvh - 24px));
  box-sizing: border-box;
  border-radius: 22px;
  overflow: hidden;
}
.service-dialog .dialog-shell {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 28px);
  max-height: min(756px, calc(100dvh - 28px));
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
.dialog-header {
  flex: 0 0 auto;
  padding: 20px 24px 0;
  border-bottom: 1px solid #dce6e0;
  background: #fff;
}
.dialog-header .dialog-top {
  gap: 14px;
  margin-bottom: 8px;
}
.dialog-header .dialog-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  font-size: 26px;
}
.dialog-header .dialog-category {
  font-size: 11px;
  letter-spacing: .1em;
}
.service-dialog .dialog-header h2 {
  max-width: 100%;
  margin: 0 0 18px;
  font-size: 34px;
  line-height: 1.15;
  text-wrap: initial;
  overflow-wrap: break-word;
}
.dialog-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  margin: 0 0 16px;
  border: 1px solid #d6e3da;
  border-radius: 13px;
  background: #f1f6f1;
}
.dialog-tabs button {
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #506c76;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  transition: background .16s, color .16s, border-color .16s;
}
.dialog-tabs button:hover {
  background: #e7f1e9;
  color: var(--navy);
}
.dialog-tabs button[aria-selected="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
.dialog-tabs button:focus-visible {
  outline-offset: 2px;
}
.dialog-content {
  flex: 1 1 auto;
  min-height: 0;
  padding: 20px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.dialog-panel {
  min-width: 0;
  outline-offset: -2px;
}
.service-dialog .dialog-description {
  margin: 0 0 17px;
  color: #405b68;
  font-size: 16px;
  line-height: 1.7;
}
.service-dialog .dialog-guidance {
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid #82b6a3;
  border-radius: 0 12px 12px 0;
  background: #f1f6ef;
}
.dialog-guidance > span {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.dialog-guidance p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
.preparation-status {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 8px 11px;
  border: 1px solid #cddfd2;
  border-radius: 9px;
  background: #eef5ed;
  color: #325d53;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.preparation-list {
  display: grid;
  gap: 13px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.preparation-list > li {
  position: relative;
  min-width: 0;
  padding-left: 20px;
  color: #405b68;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: break-word;
}
.preparation-list > li::before {
  content: "";
  position: absolute;
  top: .67em;
  left: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-dark);
}
.preparation-note {
  margin: 17px 0 0;
  padding: 13px 14px;
  border-left: 3px solid #a5bdb1;
  border-radius: 0 10px 10px 0;
  background: #f6f7f2;
  color: #506771;
  font-size: 14px;
  line-height: 1.6;
}
.care-sources {
  margin-top: 18px;
  padding-top: 4px;
  border-top: 1px solid #e0e7e2;
}
.care-sources > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  padding: 9px 1px;
  list-style: none;
  color: #4c6975;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.care-sources > summary::-webkit-details-marker,
.care-preparation > summary::-webkit-details-marker {
  display: none;
}
.care-sources > summary::after {
  content: "+";
  flex: 0 0 22px;
  width: 22px;
  color: var(--teal-dark);
  font-size: 20px;
  font-weight: 400;
  text-align: center;
}
.care-sources[open] > summary::after,
.care-preparation[open] > summary::after {
  content: "−";
}
.care-sources > summary:hover {
  color: var(--teal-dark);
}
.care-sources ul {
  display: grid;
  gap: 7px;
  padding: 0 0 4px;
  margin: 2px 0 0;
  list-style: none;
}
.care-sources li {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.care-sources a {
  display: inline-block;
  min-height: 44px;
  padding-block: 6px;
  color: #466b75;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.care-sources a:hover {
  color: var(--teal-dark);
}
.dialog-footer {
  flex: 0 0 auto;
  padding: 14px 24px 16px;
  border-top: 1px solid #dce6e0;
  background: #f7f9f5;
}
.dialog-footer .dialog-note {
  margin: 0 0 10px;
  color: #536b75;
  font-size: 14px;
  line-height: 1.5;
}
.dialog-footer .dialog-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
}
.dialog-footer .dialog-actions .button {
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.5;
  gap: 10px;
}
.dialog-footer .button:hover {
  transform: none;
}
.dialog-footer #care-dialog-cta-label {
  font-size: inherit;
  line-height: inherit;
}
.dialog-footer .dialog-secondary {
  min-height: 44px;
  padding: 10px 12px;
  color: #486570;
  font-size: 14px;
  line-height: 1.5;
}

/* The same information remains available in the full care directory. */
.care-reference-card {
  padding: 25px;
  border-color: #d1dfd7;
  border-radius: 17px;
  background: #fff;
}
.care-reference-card h3 {
  margin-bottom: 13px;
  font-size: 29px;
  line-height: 1.2;
}
.care-reference-card > p {
  max-width: 65ch;
  margin-bottom: 17px;
  font-size: 16px;
  line-height: 1.7;
}
.care-reference-card .reference-guidance {
  padding: 13px 15px;
  font-size: 15px;
  line-height: 1.6;
}
.care-preparation {
  margin: 18px 0;
  border: 1px solid #ccdcd1;
  border-radius: 13px;
  background: #f7f9f4;
}
.care-preparation > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 4px 12px;
  min-height: 60px;
  padding: 13px 16px;
  list-style: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
.care-preparation > summary .preparation-status {
  grid-column: 1;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #4e7164;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
.care-preparation > summary::after {
  content: "+";
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 24px;
  color: var(--teal-dark);
  font-size: 22px;
  font-weight: 400;
  text-align: center;
}
.care-preparation > summary:hover {
  background: #eff5ec;
  border-radius: 13px;
}
.care-preparation > summary:focus-visible,
.care-sources > summary:focus-visible {
  outline-offset: -3px;
}
.care-preparation[open] > summary {
  border-bottom: 1px solid #dbe6dc;
  border-radius: 13px 13px 0 0;
}
.care-preparation-body {
  padding: 17px 16px 18px;
}
.care-reference-card .preparation-note {
  max-width: none;
  margin: 17px 0 0;
  padding: 12px 13px;
  background: #fff;
  font-size: 14px;
  line-height: 1.6;
}
.care-reference-card > .button {
  min-height: 44px;
  max-width: 100%;
  margin-top: 0;
  padding: 10px 17px;
  font-size: 14px;
  line-height: 1.5;
}
.preparation-intro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 36px;
}
.preparation-intro > article {
  min-width: 0;
  padding: 21px;
  border: 1px solid #cfdfd2;
  border-radius: 15px;
  background: #f5f8f0;
}
.preparation-step {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border: 1px solid #b9d4c2;
  border-radius: 9px;
  color: #37675a;
  font-size: 14px;
  font-weight: 600;
}
.preparation-intro h3 {
  margin: 0 0 9px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}
.preparation-intro p {
  margin: 0;
  color: #4d6670;
  font-size: 15px;
  line-height: 1.6;
}
.privacy-contact {
  margin-top: 24px;
  padding: 23px;
  border: 1px solid #bdd4c7;
  border-radius: 16px;
  background: #f1f6ee;
}
.privacy-contact h2,
.privacy-contact h3 {
  margin: 0 0 11px;
  color: var(--ink);
}
.privacy-contact p {
  margin-bottom: 15px;
  font-size: 15px;
  line-height: 1.7;
}
.privacy-contact p:last-child {
  margin-bottom: 0;
}
.privacy-contact .button {
  min-height: 44px;
  max-width: 100%;
  padding: 10px 17px;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .service-dialog {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 18px;
  }
  .service-dialog .dialog-shell {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }
  .dialog-header {
    padding: 13px 17px 0;
  }
  .dialog-header .dialog-top {
    margin-bottom: 5px;
  }
  .dialog-header .dialog-category {
    font-size: 10px;
  }
  .service-dialog .dialog-header h2 {
    margin-bottom: 14px;
    font-size: 29px;
    line-height: 1.16;
  }
  .dialog-tabs {
    gap: 4px;
    margin-bottom: 13px;
  }
  .dialog-tabs button {
    padding-inline: 9px;
  }
  .dialog-content {
    padding: 17px;
  }
  .service-dialog .dialog-description {
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.65;
  }
  .service-dialog .dialog-guidance {
    padding: 13px 14px;
  }
  .dialog-guidance p,
  .preparation-list > li {
    font-size: 15px;
    line-height: 1.6;
  }
  .preparation-list {
    gap: 12px;
  }
  .preparation-status {
    margin-bottom: 14px;
  }
  .dialog-footer {
    padding: 12px 17px 13px;
  }
  .dialog-footer .dialog-note {
    margin-bottom: 9px;
    font-size: 14px;
    line-height: 1.45;
  }
  .dialog-footer .dialog-actions {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .dialog-footer .dialog-secondary {
    padding-block: 8px;
  }
  .care-reference-card {
    padding: 21px 17px;
    border-radius: 15px;
  }
  .care-reference-card h3 {
    font-size: 26px;
    line-height: 1.2;
  }
  .care-reference-card > p {
    font-size: 15px;
    line-height: 1.65;
  }
  .care-reference-card .reference-guidance {
    padding: 12px 13px;
    font-size: 14px;
    line-height: 1.6;
  }
  .care-preparation {
    margin-block: 16px;
  }
  .care-preparation > summary {
    padding: 12px 13px;
  }
  .care-preparation-body {
    padding: 15px 13px;
  }
  .preparation-intro {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 20px 0 28px;
  }
  .preparation-intro > article {
    padding: 16px 17px;
    border-radius: 13px;
  }
  .preparation-intro h3 {
    margin-bottom: 6px;
    font-size: 16px;
  }
  .preparation-step {
    margin-bottom: 9px;
  }
  .privacy-contact {
    padding: 19px 17px;
    border-radius: 14px;
  }
}

/* A short landscape window scrolls as one card so every control stays reachable. */
@media (max-height: 520px) {
  .service-dialog {
    overflow-y: auto;
  }
  .service-dialog .dialog-shell {
    max-height: none;
    overflow: visible;
  }
  .dialog-content {
    flex: 0 0 auto;
    overflow: visible;
    scrollbar-gutter: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dialog-tabs button {
    transition: none;
  }
}

/* A quiet disclosure beside the decorative portrait. */
.image-disclosure {
  position: absolute;
  z-index: 3;
  right: 32px;
  bottom: 14px;
  color: #506771;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 700px) {
  .image-disclosure { right: 40px; bottom: 8px; }
}

/* Short copy and a lighter hierarchy on the public landing pages. */
.lens-hero h1 em { display: block; }
.catalog-tools { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.care-card { box-shadow: none; }
.care-card:hover { box-shadow: none; }
.catalog-group-heading h3 { margin-bottom: 0; }
.cookie-banner { padding: 18px 22px; gap: 18px; }
.cookie-copy p { font-size: 14px; line-height: 1.6; }
@media (max-width: 700px) {
  .cookie-banner { padding: 15px 16px; gap: 12px; }
  .cookie-copy p { font-size: 13px; }
  .hero-copy > p { max-width: 35ch; }
}
