/* Navigation and footer layouts follow the reading paths for each publication. */
.mast .mast-inline {
  display: flex;
  min-height: 4.9rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.mast .brand { width: fit-content; min-height: 2.75rem; }
.mast .site-nav { display: flex; flex-wrap: nowrap; gap: 0; margin: 0; }
.mast .site-nav a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: .625rem .875rem;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}
.mast .site-nav a[aria-current] { box-shadow: none; }
.mast .site-nav a:focus-visible { position: relative; z-index: 1; }
.mast .site-nav a:hover { text-decoration: none; }
.mast .site-menu { display: none; }

.mast--menopause .site-nav { gap: clamp(.1rem, 2vw, 1.5rem); }
.mast--menopause .site-nav a { border-bottom: 2px solid transparent; }
.mast--menopause .site-nav a:is(:hover,[aria-current]) { border-color: var(--accent); }

.mast--glutathione {
  color: #f2faf6;
  background: #0a2827;
  border-bottom: 3px solid #89b99e;
}
.mast--glutathione .brand, .mast--glutathione .site-nav a { color: inherit; }
.mast--glutathione .wordmark small { color: #bfd5c8; }
.mast--glutathione .brand-icon { border: 1px solid #89b99e; }
.mast--glutathione .site-nav { border: 1px solid #54716b; }
.mast--glutathione .site-nav a + a { border-left: 1px solid #54716b; }
.mast--glutathione .site-nav a:is(:hover,[aria-current]) { color: #0a2827; background: #d2eee1; }
.mast--glutathione :is(.brand,.site-nav a):focus-visible { outline-color: #a8dfc2; }

.mast--trt .site-nav a { border-bottom: 2px solid transparent; }
.mast--trt .site-nav a + a { border-left: 1px solid var(--line); }
.mast--trt .site-nav a:is(:hover,[aria-current]) { background: var(--soft); border-bottom-color: var(--accent); }

.mast--ed .site-nav { gap: .25rem; padding: .2rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--soft); }
.mast--ed .site-nav a { border-radius: .45rem; color: var(--ink); }
.mast--ed .site-nav a:is(:hover,[aria-current]) { color: white; background: var(--accent); }

.mast--chew { border-bottom: 2px solid var(--line); }
.mast--chew .site-nav { gap: .35rem; }
.mast--chew .site-nav a { border-radius: 2rem; }
.mast--chew .site-nav a:hover { background: var(--soft); }
.mast--chew .site-nav a[aria-current] { color: white; background: var(--accent); }

.site-footer { padding-block: 2rem 1.15rem; color: var(--ink); }
.site-footer h2 { font: 730 1rem/1.32 Host,system-ui,sans-serif; letter-spacing: 0; text-wrap: initial; margin-bottom: .4rem; }
.site-footer p { max-width: 38ch; margin: .6rem 0 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.site-footer .brand-icon { width: 2.5rem; height: 2.5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer :is(li a, .privacy-choice-open) {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: inherit;
  font-weight: 620;
  line-height: 1.25;
  white-space: normal;
}
.site-footer nav { display: block; }
.site-footer nav a { padding: 0; }
.site-footer .footer-policies ul { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.footer-policies :is(a, .privacy-choice-open), .footer-copyright { font-size: .86rem; }
.footer-policies .privacy-choice-open {
  text-underline-offset: .19em;
  text-decoration-thickness: .08em;
}
.footer-policies .privacy-choice-open:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  text-decoration: underline;
}
.footer-copyright { display: block; margin-top: .4rem; color: var(--muted); line-height: 1.45; }

.footer-menopause-main { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.2rem 3rem; }
.footer-menopause-main ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 1rem; }
.footer-menopause-bottom { margin-top: 1.25rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.footer-menopause-bottom > ul { display: flex; flex-wrap: wrap; gap: 0 1rem; }

.site-footer--glutathione { color: #f2faf6; background: #0a2827; }
.site-footer--glutathione :is(p,.brand,.wordmark small,.footer-copyright) { color: #d0e1d7; }
.site-footer--glutathione :is(a, .privacy-choice-open):focus-visible { outline-color: #a8dfc2; }
.footer-glut-index { display: grid; grid-template-columns: minmax(0,1.4fr) repeat(3,minmax(0,1fr)); gap: 1rem 2rem; align-items: start; }
.footer-glut-index h2 { color: #a8dfc2; }
.footer-glut-index li a { font-size: .92rem; }
.footer-glut-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .3rem 1rem; border-top: 1px solid #54716b; margin-top: 1.15rem; }

.site-footer--trt { background: #fff; }
.footer-trt-ledger { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.95fr) minmax(0,.9fr) minmax(0,1fr); align-items: start; gap: 1.5rem; }
.footer-trt-ledger > section { border-left: 1px solid var(--line); padding-left: 1.1rem; }
.footer-trt-tool { padding: .9rem 1rem; background: var(--soft); border-top: 2px solid var(--accent); }
.footer-trt-tool .button { width: fit-content; margin-top: .8rem; }
.footer-trt-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .3rem 1rem; margin-top: 1.2rem; border-top: 1px dashed var(--line); }

.site-footer--ed { background: white; padding-top: 1.45rem; }
.footer-ed-next { display: flex; align-items: center; justify-content: space-between; gap: .85rem 1.5rem; background: var(--soft); border-radius: .9rem; padding: 1.15rem 1.5rem; }
.footer-ed-next h2 { font-size: 1.25rem; }
.footer-ed-next p { margin-top: .25rem; max-width: none; }
.footer-ed-next .button { flex: none; }
.footer-ed-body { display: grid; grid-template-columns: 1.1fr 1fr 1fr; align-items: start; gap: 1.15rem; padding-block: 1.4rem .8rem; }
.site-footer--ed .footer-policies { border-top: 1px solid var(--line); }

.site-footer--chew { background: var(--soft); }
.footer-chew-banner { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2.5rem; }
.footer-chew-banner ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.footer-chew-banner li a { border: 1px solid var(--line); border-radius: 2rem; background: var(--paper); padding: .4rem .85rem; }
.footer-chew-notes { border-block: 1px solid var(--line); margin-top: 1.15rem; }
.footer-chew-notes ul { display: flex; flex-wrap: wrap; gap: 0 1rem; }

@media (max-width: 53rem) {
  .footer-trt-ledger { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-glut-index { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 39rem) {
  .mast .mast-inline { position: relative; min-height: 4rem; gap: .6rem; padding-block: .5rem; }
  .mast .brand { min-width: 0; gap: .55rem; }
  .mast .wordmark { min-width: 0; }
  .mast .wordmark strong { font-size: clamp(.86rem,3.9vw,1.08rem); }
  .mast .wordmark small { font-size: .62rem; }
  .mast .site-nav-desktop { display: none; }
  .mast .site-menu { display: block; flex: none; }
  .site-menu > summary { display: flex; gap: .46rem; min-height: 2.75rem; align-items: center; padding-inline: .65rem; border: 1px solid var(--line); border-radius: .45rem; color: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
  .site-menu > summary::-webkit-details-marker { display: none; }
  .site-menu > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
  .menu-icon { width: .88rem; height: 2px; background: currentColor; box-shadow: 0 -.26rem currentColor,0 .26rem currentColor; }
  .mast .site-nav-mobile { position: absolute; z-index: 6; inset: calc(100% + .3rem) 0 auto auto; width: min(100%,18rem); display: grid; grid-template-columns: 1fr; gap: .25rem; padding: .4rem; background: var(--paper); border: 1px solid var(--line); border-radius: .6rem; box-shadow: 0 8px 24px #16233324; }
  .mast .site-menu:not([open]) .site-nav-mobile { display: none; }
  .mast .site-nav-mobile a { justify-content: flex-start; padding-inline: .8rem; text-align: left; font-size: .92rem; }
  .mast--glutathione .site-nav-mobile { background: #0a2827; border-color: #54716b; }
  .mast .site-nav-mobile a + a { border-left: 0; }
  .site-footer { padding-top: 1.5rem; }
  .footer-menopause-main, .footer-chew-banner { grid-template-columns: 1fr; }
  .footer-glut-index > div:first-child { grid-column: 1/-1; }
  .footer-trt-ledger { gap: 1rem .6rem; }
  .footer-trt-ledger > div:first-child { grid-column: 1/-1; }
  .footer-trt-ledger > section { padding-left: .7rem; }
  .footer-trt-tool { grid-column: 1/-1; }
  .footer-ed-next { align-items: flex-start; flex-direction: column; padding: 1rem; }
  .footer-ed-body { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
  .footer-ed-body .brand { grid-column: 1/-1; }
  .footer-ed-body section { min-width: 0; }
}
