/* Ageless People / November 2026. Loaded after the existing theme styles. */
html.agpl-site { scroll-padding-top: var(--agpl-scroll-offset, 96px); }
.agpl-header.navwrap {
  position: sticky;
  top: var(--agpl-admin-offset, 0px);
  z-index: 60;
  border-top: 0;
  border-bottom: 1px solid var(--ink, #1d211f);
  background: var(--paper, #fff);
}
.admin-bar .agpl-header.navwrap { top: var(--agpl-admin-offset, 32px); }
.agpl-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  min-height: 76px;
}
.agpl-brand { min-width: 0; }
.agpl-brand .wordmark {
  display: inline-block;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: 1.1;
  white-space: nowrap;
}
.agpl-brand .wordmark i { font-style: normal; color: var(--blue, #2345eb); }
.agpl-brand .custom-logo-link { display: inline-block; vertical-align: middle; }
.agpl-brand .custom-logo-link img { width: auto; height: auto; max-width: 240px; max-height: 40px; }
.agpl-header .agpl-navigation {
  display: flex;
  position: static;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
}
.agpl-header .agpl-navigation ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.agpl-header .agpl-navigation li { margin: 0; }
.agpl-header .agpl-navigation li a { display: block; padding: 24px 0; font-size: 15px; line-height: 1.5; white-space: nowrap; }
.agpl-header-tools { display: flex; align-items: center; gap: 12px; }
.agpl-header .agpl-search { width: 44px; height: 44px; padding: 0; }
.agpl-header .agpl-search::before { left: 11px; top: 11px; }
.agpl-header .agpl-search::after { left: 26px; top: 23px; }
.agpl-header .agpl-newsletter { margin-left: 7px; font-size: 13px; white-space: nowrap; }
.agpl-header .menubutton { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; }
.agpl-header .agpl-mobile-actions { display: none; }

.agpl-language { position: relative; flex-shrink: 0; }
.agpl-language-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  list-style: none;
  color: var(--ink, #1d211f);
  cursor: pointer;
}
.agpl-language-trigger::-webkit-details-marker { display: none; }
.agpl-language-trigger::marker { content: ''; }
.agpl-language-trigger svg { display: block; flex-shrink: 0; }
.agpl-language-trigger:hover, .agpl-language[open] > summary { color: var(--blue, #2345eb); }
.agpl-language-trigger:focus-visible { outline: 3px solid var(--blue, #2345eb); outline-offset: 3px; }
.agpl-language-panel {
  position: absolute;
  z-index: 70;
  right: 0;
  top: calc(100% + 10px);
  width: 210px;
  max-width: calc(100vw - 36px);
  padding: 14px;
  border: 1px solid var(--line, #d9ddda);
  background: var(--paper, #fff);
  box-shadow: 0 10px 28px #1d211f14;
}
.agpl-language-panel .agpl-language-label { margin: 0 8px 6px; color: var(--muted, #656964); font-size: 12px; letter-spacing: .04em; }
.agpl-language-panel ul { list-style: none; padding: 0; margin: 0; }
.agpl-language-panel li { margin: 0; }
.agpl-language-panel a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 18px; padding: 9px 8px; color: var(--ink, #1d211f); font-size: 15px; line-height: 1.5; }
.agpl-language-panel a:hover { background: var(--soft, #f4f5f2); }
.agpl-language-panel a[aria-current] { color: var(--blue, #2345eb); font-weight: 600; }
.agpl-language-panel small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted, #656964); }
.agpl-language--header > .agpl-language-trigger { width: auto; min-height: 40px; gap: 8px; padding: 7px 11px; border: 1px solid var(--ink, #1d211f); font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.agpl-language--header > .agpl-language-trigger svg { width: 18px; height: 18px; }
.agpl-language-chevron { display: block; flex-shrink: 0; width: 6px; height: 6px; margin: -3px 2px 0 3px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.agpl-language[open] > summary .agpl-language-chevron { margin-top: 3px; transform: rotate(225deg); }
.agpl-language--header .agpl-language-panel { top: calc(100% + 6px); width: 100%; padding: 6px; }
.agpl-language--header .agpl-language-label, .agpl-language--mobile .agpl-language-label { display: none; }
.agpl-footer .agpl-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; }
.agpl-footer .copyright { margin: 0; }
.agpl-footer .agpl-language-trigger { width: auto; font-size: 13px; }
.agpl-footer .agpl-language-panel { top: auto; bottom: calc(100% + 10px); }
.agpl-footer .agp-brand-dot { color: var(--blue, #2345eb); }

/* Wellness: an obvious category navigation followed by the latest four stories. */
.agpw-section { padding: 44px 0; border-top: 1px solid var(--ink, #1d211f); border-bottom: 1px solid var(--ink, #1d211f); }
.agpw-categories { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.agpw-categories a { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; padding: 8px 14px; border: 1px solid var(--line, #d9ddda); font-size: 13px; line-height: 1.5; }
.agpw-categories a:hover { border-color: var(--blue, #2345eb); color: var(--blue, #2345eb); }
.agpw-categories a span { color: var(--blue, #2345eb); }
.agpw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; }
.agpw-grid > li { min-width: 0; margin: 0; padding: 0; }
.agpw-card { display: block; color: var(--ink, #1d211f); }
.agpw-photo { margin-bottom: 17px; background: var(--soft, #f4f5f2); }
.agpw-photo img { display: block; position: static; width: 100%; max-width: 100%; height: auto; }
.agpw-placeholder { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; padding: 20px; font-family: var(--serif, Georgia, serif); font-size: 28px; overflow-wrap: anywhere; }
.agpw-category { display: block; margin-bottom: 9px; color: var(--blue, #2345eb); font-size: 11px; font-weight: 600; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; }
.agpw-card h3 { margin: 0 0 11px; font-size: 19px; font-weight: 500; line-height: 1.65; letter-spacing: -.025em; overflow-wrap: anywhere; }
.agpw-card:hover h3 { color: var(--blue, #2345eb); }
.agpw-card .agpw-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; margin: 0; color: var(--muted, #656964); font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.agpw-all { margin-top: 30px; }

@media (max-width: 1099px) {
  .agpl-header-inner { gap: 24px; }
  .agpl-brand .wordmark { font-size: 29px; }
  .agpl-header .agpl-navigation ul { gap: 22px; }
  .agpw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
}
@media (max-width: 980px) {
  .agpl-header-inner { grid-template-columns: minmax(0, 1fr) auto; min-height: 64px; gap: 12px; }
  .agpl-header .agpl-navigation { display: none; position: absolute; left: 0; right: 0; top: 100%; width: 100%; max-height: calc(100vh - 110px); max-height: calc(100dvh - var(--agpl-header-height, 64px) - var(--agpl-admin-offset, 0px)); overflow-y: auto; padding: 16px 24px 24px; background: var(--paper, #fff); border-bottom: 1px solid var(--ink, #1d211f); flex-direction: column; align-items: stretch; box-shadow: 0 12px 24px #1d211f0a; }
  .agpl-header .agpl-navigation.open { display: flex; }
  .agpl-header .agpl-navigation ul { display: block; }
  .agpl-header .agpl-navigation li a { padding: 13px 0; font-size: 16px; }
  .agpl-header .agpl-mobile-actions { display: grid; gap: 0; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line, #d9ddda); }
  .agpl-header .agpl-mobile-actions > * { display: block; padding: 13px 0; border: 0; text-align: left; font-size: 15px; }
  .agpl-header .agpl-mobile-actions > .agpl-language { padding: 0; }
  .agpl-header .agpl-language--mobile > .agpl-language-trigger { justify-content: flex-start; width: 100%; min-height: 50px; padding: 13px 0; gap: 10px; font-size: 15px; font-weight: 600; line-height: 1.5; }
  .agpl-language--mobile > .agpl-language-trigger svg { width: 19px; height: 19px; }
  .agpl-language--mobile > .agpl-language-trigger .agpl-language-chevron { margin-left: auto; margin-right: 6px; }
  .agpl-language--mobile .agpl-language-panel { position: static; width: 100%; max-width: none; padding: 0 0 6px 17px; border: 0; box-shadow: none; }
  .agpl-header .agpl-language--mobile .agpl-language-panel a { padding: 10px 12px; font-size: 15px; }
  .agpl-header-tools > .agpl-language--header { display: none; }
  .agpl-header .agpl-search, .agpl-header .agpl-newsletter { display: none; }
  .agpl-header .menubutton { display: flex; }
  .agpl-header-tools { gap: 4px; }
}
@media (max-width: 782px) {
  .admin-bar .agpl-header.navwrap { top: var(--agpl-admin-offset, 46px); }
}
@media (max-width: 599px) {
  .agpl-brand .wordmark { font-size: 24px; }
  .agpl-brand .custom-logo-link img { max-width: 178px; max-height: 32px; }
  .agpl-header .agpl-navigation { padding: 12px 18px 20px; }
  .agpl-footer .agpl-footer-bottom { gap: 12px; }
  .agpw-section { padding: 32px 0; }
  .agpw-grid { gap: 28px 18px; }
  .agpw-categories { gap: 8px; margin-bottom: 24px; }
  .agpw-categories a { gap: 12px; padding: 8px 11px; font-size: 12px; }
  .agpw-photo { margin-bottom: 13px; }
  .agpw-card h3 { font-size: 16px; margin-bottom: 9px; }
  .agpw-card .agpw-excerpt { font-size: 13px; }
  .agpw-all { margin-top: 25px; }
}
@media (max-width: 600px) {
  .admin-bar .agpl-header.navwrap { top: var(--agpl-admin-offset, 0px); }
}
@media (max-width: 359px) {
  .agpl-brand .wordmark { font-size: 22px; }
  .agpl-brand .custom-logo-link img { max-width: 152px; }
  .agpw-grid { grid-template-columns: 1fr; }
  .agpw-card h3 { font-size: 19px; }
}

/* Quiet desktop language control. Mobile and footer styling stay independent. */
@media (min-width: 981px) {
  .agpl-header-tools > .agpl-language--header { margin-left: 20px; }
  .agpl-language--header > .agpl-language-trigger {
    padding: 7px 0;
    border: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--ink, #1d211f);
  }
  .agpl-language--header > .agpl-language-trigger svg { width: 17px; height: 17px; }
  .agpl-language--header > .agpl-language-trigger svg circle,
  .agpl-language--header > .agpl-language-trigger svg path { stroke-width: 1.2; }
  .agpl-language--header > .agpl-language-trigger .agpl-language-chevron { width: 5px; height: 5px; opacity: .7; }
  .agpl-language--header > .agpl-language-trigger:hover,
  .agpl-language--header[open] > .agpl-language-trigger { color: var(--ink, #1d211f); }
  .agpl-language--header .agpl-language-panel { min-width: 160px; }
}
