/* Modern Family: presentation only; shared Drupal behavior stays in the parent. */
body.filos-modern {
  --filos-blue-900: #163b60;
  --filos-blue-800: #204d78;
  --filos-blue-700: #245f99;
  --filos-blue-500: #357ab8;
  --filos-ink: #18344f;
  --filos-muted: #526b80;
  --filos-line: #d8e4ee;
  --filos-hellenic-sky: #eaf3fb;
  --filos-hellenic-ivory: #ffffff;
  --filos-hellenic-gold: #c8a65c;
  background: #f1f6fb;
}
.filos-modern .filos-header {
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid #d8e4ee;
  box-shadow: 0 3px 18px rgba(22, 59, 96, .035);
}
.filos-modern .filos-system { padding-top: clamp(1.25rem, 3vw, 2.75rem); }
.filos-modern .filos-system__content {
  width: min(100%, 72rem);
  padding: clamp(1.15rem, 3.5vw, 2.75rem);
  background: #ffffff;
  border: 1px solid #dce7f0;
  border-radius: 1.5rem;
  box-shadow: 0 12px 44px rgba(22, 59, 96, .045);
}
body.filos-modern :is(h1, h2, h3, h4, h5, h6) {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  color: #163b60;
  overflow-wrap: anywhere;
}
.filos-modern h1 { letter-spacing: -.035em; line-height: 1.12; }
.filos-modern h2 { letter-spacing: -.015em; }
.filos-modern .filos-profile-header { border-bottom-color: #d8e4ee; }
.filos-modern :is(.filos-learning-summary, .filos-available-exercises) {
  background: #ffffff;
  border-color: #d8e4ee;
  border-radius: 1.15rem;
  box-shadow: none;
}
.filos-modern :is(.filos-available-exercises__item, .filos-client-advisor, .filos-story-filter-panel, .filos-story-section, .filos-roadmap-card, .filos-roadmap-allocation) {
  background: #f5f9fd;
  border-color: #d8e4ee;
  border-radius: 1rem;
}
.filos-modern .filos-story-card {
  background: #ffffff;
  border-color: #d8e4ee;
  border-radius: 1.15rem;
  box-shadow: 0 4px 18px rgba(22, 59, 96, .035);
}
.filos-modern .filos-story-timeline { border-left-color: #b9d3e9; }
.filos-modern .filos-story-card::before { background: #245f99; }
.filos-modern .filos-story-topics li { background: #eaf3fb; color: #204d78; }
.filos-modern .filos-manual { --manual-blue: #245f99; color: #18344f; }
.filos-modern :is(.filos-manual__contents, .filos-manual__cards a, .filos-manual__pagination a, .filos-manual__audiences a, .filos-manual th) {
  background: #f1f6fb;
  border-color: #d8e4ee;
}
.filos-modern .filos-manual a[aria-current=page] { background: #245f99; color: white; }
.filos-modern .filos-hero::before { background: linear-gradient(90deg, #daeafa, #f5f9fd, #ffffff); }
.filos-modern .filos-hero__glow--left { background: radial-gradient(circle, #b8d5ee, transparent 68%); }
.filos-modern .filos-hero__glow--right { background: radial-gradient(circle, #e9debc, transparent 70%); }
.filos-modern .filos-hero__logo { filter: drop-shadow(0 2rem 4rem rgba(22, 59, 96, .09)); }
/* Generous hit targets, subtle color feedback and an immediate keyboard ring. */
body.filos-modern :is(.filos-button, .button, input[type="submit"], input[type="button"], input[type="reset"], button[type="submit"]) {
  min-height: 2.75rem;
  background: transparent;
  color: #204d78;
  border: 1px solid #a9c1d4;
  border-radius: .55rem;
  font-weight: 600;
  box-shadow: none;
  transition: background-color 180ms ease, color 180ms ease,
    border-color 180ms ease, transform 100ms ease;
}
body.filos-modern :is(.filos-button, .button, input[type="submit"], input[type="button"], input[type="reset"], button[type="submit"]):is(:hover, :focus):not(:disabled):not([aria-disabled="true"]) {
  background: #e3eef7;
  color: #163b60;
  border-color: #799db9;
}
body.filos-modern :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #245f99;
  outline-offset: 3px;
}
body.filos-modern :is(.filos-button, .button, input[type="submit"], input[type="button"], input[type="reset"], button[type="submit"]):active:not(:disabled):not([aria-disabled="true"]) {
  transform: translateY(1px) scale(.985);
}
body.filos-modern :is(.filos-button, .button, input[type="submit"], input[type="button"], input[type="reset"], button[type="submit"]):is(:disabled, [aria-disabled="true"]) {
  opacity: .55;
  cursor: not-allowed;
}
.filos-modern .form-item > div { min-width: 0; }
.filos-modern .filos-system__content textarea { max-width: 100%; }
/* The family dashboard is an open canvas, not another nested white panel. */
.filos-family-modern .filos-system__content {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-top: 0;
}
.filos-family-modern .filos-group-heading {
  position: relative;
  margin-bottom: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: linear-gradient(115deg, #e0eefb, #f8fbff);
  border: 1px solid #c9deef;
  border-left: 0;
  border-radius: 1.5rem;
  box-shadow: none;
}
.filos-family-modern .filos-modern-eyebrow {
  margin: 0 0 .8rem;
  color: #365e80;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.filos-family-modern .filos-group-heading h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 400;
  max-width: 18ch;
  line-height: 1.08;
}
.filos-family-modern .filos-group-members { border: 0; padding: .5rem 0; }
.filos-family-modern .filos-group-members h2 { font-size: 1.45rem; margin-bottom: 1.25rem; }
.filos-family-modern .filos-group-members__generations { gap: 1.25rem; }
.filos-family-modern .filos-group-members__generation {
  background: white;
  padding: 1.5rem;
  gap: 1.25rem;
  border: 1px solid #d8e4ee;
  border-radius: 1.25rem;
}
.filos-family-modern .filos-group-members__generation h3 {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.15rem;
}
.filos-family-modern .filos-group-members__generation h3::before {
  content: '';
  width: .4rem;
  height: 1.15rem;
  background: #c8a65c;
  border-radius: .2rem;
  flex-shrink: 0;
}
.filos-family-modern .filos-group-members__grid { justify-content: flex-start; gap: 1rem; }
.filos-family-modern .filos-group-members__item {
  flex: 0 1 10rem;
  background: #f6f9fd;
  border: 1px solid #e1ebf3;
  border-radius: 1rem;
  padding: 1.25rem .8rem 1rem;
}
.filos-family-modern .filos-group-members__avatar-link { width: 5rem; height: 5rem; }
.filos-family-modern .filos-group-members__avatar-link.filos-avatar-glow {
  box-shadow: 0 0 0 3px white, 0 0 0 5px var(--filos-avatar-glow-color);
}
.filos-family-modern .filos-group-members__item:hover { border-color: #97bddc; }
.filos-family-modern .filos-modern-stories {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  background: #163b60;
  border: 1px solid #163b60;
  border-radius: 1.25rem;
}
.filos-family-modern .filos-modern-stories h2 { margin: 0 0 .4rem; color: #ffffff; font-size: 1.6rem; }
.filos-family-modern .filos-modern-stories p { margin: 0; color: #deebf7; }
.filos-family-modern .filos-modern-stories > .filos-button {
  flex-shrink: 0;
  background: #ffffff;
  color: #204d78;
  border-color: #ffffff;
}
body.filos-family-modern .filos-modern-stories > .filos-button:is(:hover, :focus):not(:disabled):not([aria-disabled="true"]) {
  background: #eaf3fb;
  color: #163b60;
  border-color: #b9d3e9;
}
.filos-family-modern .filos-modern-stories > .filos-button:focus-visible { outline-color: #ffffff; }
.filos-family-modern .filos-sign-in-support {
  background: #ffffff;
  border: 1px solid #d8e4ee;
  border-radius: 1.25rem;
  box-shadow: none;
}
@media (max-width: 540px) {
  .filos-modern .filos-system { padding: 1.25rem .65rem 2rem; }
  .filos-modern .filos-system__content { border-radius: 1rem; }
  .filos-family-modern .filos-system__content { padding: 0 .35rem; }
  .filos-family-modern .filos-group-heading { padding: 1.5rem 1.15rem; }
  .filos-family-modern .filos-group-members__generation { padding: 1rem .8rem; }
  .filos-family-modern .filos-group-members__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }
  .filos-family-modern .filos-group-members__item { padding: 1.15rem .4rem .9rem; }
  .filos-family-modern .filos-group-members__avatar-link { width: 4.25rem; height: 4.25rem; }
  .filos-family-modern .filos-modern-stories { flex-direction: column; align-items: flex-start; padding: 1.25rem; }
  .filos-family-modern .filos-modern-stories > .filos-button { white-space: normal; }
  .filos-family-modern .filos-group-actions .filos-button { white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  body.filos-modern :is(.filos-button, .button, input[type="submit"], input[type="button"], input[type="reset"], button[type="submit"]) { transition: none; }
  body.filos-modern :is(.filos-button, .button, input[type="submit"], input[type="button"], input[type="reset"], button[type="submit"]):active:not(:disabled):not([aria-disabled="true"]) { transform: none; }
}

/* Family grove: an illustrated, spacious composition rather than a reskin. */
body.filos-modern {
  background-image: radial-gradient(ellipse at 0 8%, #dcebf8 0, transparent 45%),
    radial-gradient(ellipse at 100% 70%, #e3eeed 0, transparent 42%);
  background-attachment: fixed;
}
.filos-modern .filos-system { padding-top: clamp(1.5rem, 3vw, 3rem); }
.filos-modern .filos-system__content {
  border-radius: 1.75rem;
  box-shadow: 0 24px 70px -35px #224c7050;
}
.filos-family-modern .filos-system__content { width: min(100%, 80rem); box-shadow: none; }
.filos-family-modern .filos-group-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  grid-template-rows: auto auto auto 1fr;
  align-content: center;
  min-height: 25rem;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 4.5vw, 3.75rem);
  margin-bottom: 1.75rem;
  background: #e5f0f8;
  border: 0;
  border-radius: 2rem 2rem 6rem 2rem;
  box-shadow: 0 24px 50px -35px #224c7060;
}
.filos-family-modern .filos-group-heading > :not(.filos-modern-grove) { position: relative; z-index: 1; grid-column: 1; }
.filos-family-modern .filos-group-heading h1 {
  max-width: 12ch;
  font-size: clamp(2.7rem, 5.5vw, 4.8rem);
  letter-spacing: -.05em;
  text-wrap: balance;
}
.filos-family-modern .filos-modern-eyebrow { margin-top: .25rem; font-size: .75rem; letter-spacing: .16em; }
.filos-family-modern .filos-modern-intro { max-width: 25ch; margin: 1.25rem 0; color: #365e80; font-size: 1.2rem; line-height: 1.5; }
.filos-family-modern .filos-modern-explore {
  justify-self: start;
  align-self: start;
  margin-top: .5rem;
  padding: .7rem 0;
  font-weight: 700;
  text-decoration: none;
  color: #163b60;
  border-bottom: 2px solid #b89462;
  transition: border-color 180ms ease, color 180ms ease;
}
.filos-family-modern .filos-modern-explore:hover { border-color: #245f99; color: #245f99; }
.filos-family-modern .filos-modern-grove {
  position: absolute;
  inset: 0 0 0 45%;
  z-index: 0;
  background: url('../assets/family-grove.webp') center / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent, #000 18%);
}
.filos-family-modern .filos-modern-stories {
  position: relative;
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr) auto;
  column-gap: 1.5rem;
  row-gap: .75rem;
  padding: 1.75rem 2rem;
  overflow: hidden;
  background: radial-gradient(ellipse at 0 100%, #315f7f, transparent 70%), #163b60;
  border: 0;
  border-radius: 1.75rem;
  box-shadow: 0 20px 35px -25px #163b6080;
}
.filos-family-modern .filos-modern-stories > div:first-child { grid-column: 2; grid-row: 1; }
.filos-family-modern .filos-modern-stories h2 { font-size: clamp(1.65rem, 3vw, 2.1rem); letter-spacing: -.025em; }
.filos-family-modern .filos-modern-stories p { line-height: 1.5; }
.filos-family-modern .filos-modern-stories > .filos-button { grid-column: 3; grid-row: 1; justify-self: end; }
.filos-family-modern .filos-modern-album {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 10rem;
  height: 9rem;
  background: url('../assets/story-album.webp') center / contain no-repeat;
  transition: transform 280ms ease;
}
.filos-family-modern .filos-modern-stories:has(a:hover, a:focus-visible) .filos-modern-album { transform: rotate(-4deg) translateY(-3px); }
.filos-family-modern .filos-modern-inspiration {
  grid-column: 2 / 4;
  grid-row: 2;
  min-width: 0;
  border: 0;
  border-top: 1px solid #ffffff30;
  padding: .65rem 0 0;
  margin: .5rem 0 0;
  color: #fff;
  background: transparent;
}
.filos-family-modern .filos-modern-inspiration summary { color: #f2d69a; padding: .35rem 0; cursor: pointer; font-weight: 700; }
.filos-family-modern .filos-modern-inspiration .details-wrapper { padding: .75rem 0 0; }
.filos-family-modern .filos-modern-inspiration p { max-width: 58ch; color: #fff8e9; }
.filos-family-modern .filos-modern-next {
  margin-top: .7rem;
  padding: .5rem 0;
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
  border: 0;
  border-bottom: 1px solid #8cb4cd;
  color: #e1effa;
  background: transparent;
}
.filos-family-modern .filos-modern-next:hover { color: #f2d69a; border-color: #f2d69a; }
.filos-family-modern .filos-modern-inspiration :is(summary, button):focus-visible { outline-color: #f2d69a; }
.filos-family-modern #filos-group-members-title { scroll-margin-top: 2rem; }
.filos-family-modern .filos-group-members > h2 { font-size: 1.8rem; margin: 1.5rem 0; }
.filos-family-modern .filos-group-members__generations { gap: 1.65rem; position: relative; }
.filos-family-modern .filos-group-members__generations::before {
  content: ''; position: absolute; left: 2.1rem; top: 1rem; bottom: 1rem;
  width: 2px; background: linear-gradient(#b89462, #91bad5, #b89462); z-index: 0;
}
.filos-family-modern .filos-group-members__generation {
  position: relative;
  padding: 1.6rem 1.8rem 1.8rem 4rem;
  border-radius: 1.5rem;
  background: linear-gradient(115deg, #ffffffed, #ffffffa8);
  border: 1px solid #ffffff;
  box-shadow: 0 15px 35px -28px #163b6070;
}
.filos-family-modern .filos-group-members__generation h3 { gap: .75rem; font-size: 1.2rem; }
.filos-family-modern .filos-group-members__generation h3::before {
  position: absolute; left: 1.55rem; top: 1.85rem;
  height: .9rem; width: .9rem; border: 3px solid #fff; border-radius: 50%;
  background: #b89462; box-shadow: 0 0 0 1px #b8946260;
}
.filos-family-modern .filos-group-members__item {
  flex-basis: 10.5rem;
  padding: 1.4rem .9rem 1.1rem;
  background: #fff;
  border: 1px solid #e0eaf2;
  border-radius: 1.15rem;
  box-shadow: 0 5px 15px -9px #163b6030;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.filos-family-modern .filos-group-members__item:is(:hover, :focus-within) {
  transform: translateY(-5px);
  border-color: #91bad5;
  box-shadow: 0 18px 28px -18px #163b6080;
}
.filos-family-modern .filos-group-members__avatar-link { width: 5.5rem; height: 5.5rem; }
.filos-family-modern .filos-group-members__name a { text-decoration: none; }
.filos-family-modern .filos-group-members__name a::after { content: ' ↗'; color: #456f91; font-size: .85em; }
/* Carry the illustrated design language onto the quieter working pages. */
.filos-modern .filos-profile-header {
  padding: clamp(1rem, 2.5vw, 1.75rem);
  border: 1px solid #d5e5f0;
  border-radius: 1.25rem 1.25rem 3rem 1.25rem;
  background: radial-gradient(ellipse at 100% 0, #d9eaf4 0, transparent 65%), #f2f7fb;
}
.filos-modern .filos-available-exercises { padding: clamp(1rem, 2.5vw, 1.75rem); border-top: 3px solid #91bad5; }
.filos-modern .filos-available-exercises__item {
  position: relative;
  border-left: 3px solid #b8d4e7;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
.filos-modern .filos-available-exercises__item:focus-within,
.filos-modern .filos-available-exercises__item:hover { border-left-color: #245f99; box-shadow: 0 6px 18px -12px #163b6050; }
.filos-modern .filos-story-card { border-radius: .75rem 1.75rem 1.75rem 1.75rem; box-shadow: 0 15px 30px -24px #163b6070; }
.filos-modern .filos-story-card img { border-radius: .8rem; }
.filos-modern .filos-manual__cards a { transition: background-color 180ms ease, border-color 180ms ease; }
.filos-modern .filos-manual__cards a:hover { background: #e3eff8; border-color: #91bad5; }
@keyframes modern-arrival { from { transform: translateY(12px); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .filos-family-modern .filos-group-heading { animation: modern-arrival 650ms cubic-bezier(.2,.7,.3,1) both; }
  .filos-modern .filos-modern-arrived { animation: modern-arrival 550ms cubic-bezier(.2,.7,.3,1) both; }
}
@media (max-width: 900px) {
  .filos-family-modern .filos-modern-stories { grid-template-columns: 8rem minmax(0, 1fr); }
  .filos-family-modern .filos-modern-album { grid-column: 1; grid-row: 1 / 4; width: 8rem; }
  .filos-family-modern .filos-modern-stories > .filos-button { grid-column: 2; grid-row: 2; justify-self: start; }
  .filos-family-modern .filos-modern-inspiration { grid-column: 2; grid-row: 3; }
}
@media (max-width: 600px) {
  .filos-family-modern .filos-group-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.75rem 1.4rem 12.5rem;
    min-height: 0;
    border-radius: 1.5rem 1.5rem 3.5rem 1.5rem;
  }
  .filos-family-modern .filos-group-heading h1 { font-size: clamp(2.6rem, 10vw, 3.5rem); max-width: 13ch; }
  .filos-family-modern .filos-modern-intro { font-size: 1.1rem; margin: .8rem 0 .4rem; }
  .filos-family-modern .filos-modern-grove {
    inset: auto 0 0;
    height: 12rem;
    background-position: center 48%;
    mask-image: linear-gradient(transparent, #000 24%);
  }
  .filos-family-modern .filos-modern-stories { padding: 1.4rem; gap: 1rem; grid-template-columns: minmax(0, 1fr) 5.5rem; }
  .filos-family-modern .filos-modern-stories > div:first-child { grid-column: 1; grid-row: 1; }
  .filos-family-modern .filos-modern-album { grid-column: 2; grid-row: 1; width: 5.5rem; height: 6rem; }
  .filos-family-modern .filos-modern-stories > .filos-button { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; text-align: center; }
  .filos-family-modern .filos-modern-inspiration { grid-column: 1 / -1; grid-row: 3; width: 100%; }
  .filos-family-modern .filos-group-members__generation { padding: 1.2rem .8rem; }
  .filos-family-modern .filos-group-members__generation h3 { padding-left: 1.4rem; }
  .filos-family-modern .filos-group-members__generation h3::before { left: .9rem; top: 1.4rem; width: .65rem; height: .65rem; }
  .filos-family-modern .filos-group-members__generations::before { left: 1.35rem; }
  .filos-family-modern .filos-group-members__item { padding: 1.25rem .4rem 1rem; }
  .filos-family-modern .filos-group-members__avatar-link { width: 4.25rem; height: 4.25rem; }
  .filos-modern .filos-profile-header { border-radius: 1rem 1rem 2rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .filos-modern *, .filos-modern *::before, .filos-modern *::after { animation: none !important; scroll-behavior: auto !important; }
  .filos-modern :is(.filos-group-members__item, .filos-modern-album, .filos-available-exercises__item, .filos-manual__cards a, .filos-modern-explore) { transition: none; }
  .filos-family-modern .filos-group-members__item:is(:hover, :focus-within),
  .filos-family-modern .filos-modern-stories:has(a:hover, a:focus-visible) .filos-modern-album { transform: none; }
}
@media (min-width: 901px) {
  .filos-family-modern .filos-group-members__generations { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .filos-family-modern .filos-group-members__generations::before { display: none; }
  .filos-family-modern .filos-group-members__generation { align-content: start; }
  .filos-family-modern .filos-group-members__generation:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Editorial imagery: natural light and tactile materials, quietly framed.
 * Landscape and still life are decorative commissions, never family records.
 */
.filos-family-modern .filos-group-heading {
  background: #e5f0f8;
  border-radius: 1.5rem;
  box-shadow: 0 24px 55px -38px #163b6060;
}
.filos-family-modern .filos-modern-grove {
  inset: 0 0 0 38%;
  background-position: 63% center;
  mask-image: linear-gradient(90deg, transparent, #000 30%);
}
.filos-family-modern .filos-modern-stories {
  grid-template-columns: 12rem minmax(0, 1fr) auto;
  border-radius: 1.5rem;
  background: linear-gradient(115deg, #244b66, #142f48);
}
.filos-family-modern .filos-modern-album {
  width: 12rem;
  height: 10rem;
  background-size: cover;
  background-position: center;
  border-radius: .65rem;
  box-shadow: 0 12px 28px -14px #0009;
}
@media (max-width: 900px) and (min-width: 601px) {
  .filos-family-modern .filos-modern-stories { grid-template-columns: 9rem minmax(0, 1fr); }
  .filos-family-modern .filos-modern-album { width: 9rem; height: 10rem; }
}
@media (max-width: 600px) {
  .filos-family-modern .filos-group-heading { padding-bottom: 14.5rem; }
  .filos-family-modern .filos-modern-grove {
    inset: auto 0 0;
    height: 14rem;
    background-position: 65% 54%;
    mask-image: linear-gradient(transparent, #000 28%);
  }
  .filos-family-modern .filos-modern-stories { grid-template-columns: minmax(0, 1fr); }
  .filos-family-modern .filos-modern-stories > div:first-child { grid-column: 1; grid-row: 2; }
  .filos-family-modern .filos-modern-album {
    grid-column: 1; grid-row: 1;
    width: 100%; height: auto; aspect-ratio: 16 / 9;
    background-position: center 55%;
  }
  .filos-family-modern .filos-modern-stories > .filos-button { grid-row: 3; }
  .filos-family-modern .filos-modern-inspiration { grid-row: 4; }
}

/* Logo-inspired display type and a restrained generation flourish. */
body.filos-family-modern .filos-group-heading h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.02;
}
.filos-family-modern .filos-group-members__generation h3::before {
  width: .95rem;
  height: .95rem;
  border: 0;
  border-radius: 0;
  background: linear-gradient(135deg, #d6bb80, #a67e42);
  box-shadow: none;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.filos-family-modern .filos-group-members__generation h3::after {
  content: '';
  flex: 1 1 2rem;
  min-width: 1rem;
  height: 1px;
  margin-left: .35rem;
  background: linear-gradient(90deg, #b89462b3, #b8946220);
}
@media (max-width: 600px) {
  .filos-family-modern .filos-group-members__generation h3::before {
    width: .75rem;
    height: .75rem;
  }
}

/* Stories becomes part of the same editorial family, without replacing its
 * collection controls, private content, timeline semantics or native forms. */
body.filos-modern .filos-story-collection-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 13rem;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  padding-right: 40%;
  align-content: center;
  background: #e5f0f8;
  border-radius: 1.25rem;
  box-shadow: 0 20px 45px -35px #163b6060;
}
body.filos-modern .filos-story-collection-header::before {
  content: '';
  position: absolute;
  inset: 0 0 0 57%;
  z-index: -1;
  background: url('../assets/story-album.webp') center / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent, #000 30%);
}
body.filos-modern .filos-story-collection-header h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}
body.filos-modern .filos-modern-stories-navigation {
  display: flex;
  justify-content: flex-end;
  margin-block: 1rem;
}
body.filos-modern .filos-modern-stories-navigation .filos-family-back {
  margin: 0;
  color: #204d78;
}
body.filos-modern .filos-story-intro { margin-block: 1.5rem; color: #365e80; line-height: 1.65; }
body.filos-modern .filos-story-timeline { border-left: 1px solid #b8946280; }
/* Quiet year accents complement the timeline glints and detail-heading motif. */
body.filos-modern :is(.filos-story-year, .filos-story-section > h2) {
  display: flex;
  align-items: center;
  gap: .7rem;
}
body.filos-modern .filos-story-section > h2::before,
body.filos-modern .filos-story-card::before {
  content: '';
  flex: 0 0 .85rem;
  width: .85rem;
  height: .85rem;
  border: 0;
  border-radius: 0;
  background: linear-gradient(135deg, #d6bb80, #a67e42);
  box-shadow: none;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
body.filos-modern :is(.filos-story-year, .filos-story-section > h2)::after {
  content: '';
  flex: 1 1 2rem;
  min-width: 1rem;
  height: 1px;
  background: linear-gradient(90deg, #b89462b3, #b8946220);
}
body.filos-modern .filos-story-section { background: linear-gradient(115deg, #f5f9fd, #fff); }
@media (max-width: 600px) {
  body.filos-modern .filos-story-collection-header {
    min-height: 0;
    padding: 1.5rem 1.15rem 11.5rem;
    align-items: flex-start;
    flex-direction: column;
  }
  body.filos-modern .filos-story-collection-header::before {
    inset: auto 0 0;
    height: 10.5rem;
    background-position: center 55%;
    mask-image: linear-gradient(transparent, #000 28%);
  }
}

/* A quiet personal record beneath the portrait; existing field access is retained. */
.filos-modern .filos-modern-profile-details {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid #d9e5ed;
  border-radius: 1.25rem;
  background: linear-gradient(125deg, #f5f9fc, #fff 75%);
  box-shadow: 0 12px 30px -26px #163b6060;
}
.filos-modern .filos-modern-profile-details__heading {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.4rem;
  color: #183c5c;
  font-size: 1.5rem;
  font-weight: 400;
}
.filos-modern .filos-modern-profile-details__heading::before {
  content: '';
  flex: 0 0 .75rem;
  height: .75rem;
  background: #b89462;
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
}
.filos-modern .filos-modern-profile-details__heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #b8946280, transparent);
}
.filos-modern .filos-modern-profile-details__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1rem, 3vw, 2.5rem);
  row-gap: 1.25rem;
}
.filos-modern .filos-modern-profile-details .filos-modern-profile-field {
  min-width: 0;
  padding: 0 0 .9rem;
  border-bottom: 1px solid #dce6ed;
  overflow-wrap: anywhere;
}
.filos-modern .filos-modern-profile-details .filos-modern-profile-field__label {
  margin-bottom: .45rem;
  color: #526b7e;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .09em;
  line-height: 1.5;
  text-transform: uppercase;
}
.filos-modern .filos-modern-profile-details .filos-modern-profile-field__value {
  color: #183c5c;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.2rem;
  line-height: 1.45;
}
@media (max-width: 480px) {
  .filos-modern .filos-modern-profile-details__fields { grid-template-columns: minmax(0, 1fr); row-gap: 1rem; }
}

/* Quiet navigation and a deliberate action hierarchy, without hiding controls. */
body.filos-modern :is(.filos-header__nav, .filos-profile-header__actions, .filos-client-advisor__actions) .filos-button {
  min-height: 2.75rem;
  padding: .5rem .85rem;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
  border-radius: .55rem;
  background: transparent;
  color: #204d78;
  border-color: transparent;
}
body.filos-modern :is(.filos-header__nav, .filos-profile-header__actions, .filos-client-advisor__actions) .filos-button:is(:hover, :focus):not(:disabled):not([aria-disabled="true"]) {
  background: #e3eef7;
  color: #163b60;
  border-color: transparent;
}
body.filos-modern :is(.filos-profile-header__actions a[href$="/edit"], .filos-profile-header__actions a[href$="/photo"], .filos-client-advisor__actions a[href^="mailto:"], .filos-client-advisor__actions a[href^="tel:"]) {
  border-color: #a9c1d4;
}
body.filos-modern .filos-client-advisor__actions .filos-modern-advisor-action--schedule {
  background: transparent;
  border-color: #a9c1d4;
  color: #204d78;
}
body.filos-modern .filos-client-advisor__actions .filos-modern-advisor-action--schedule:is(:hover, :focus) {
  background: #eaf3fb;
  border-color: #245f99;
  color: #204d78;
}
.filos-modern .filos-header__nav { gap: .2rem; }
.filos-modern .filos-profile-header__actions { gap: .25rem; align-items: center; }
.filos-modern .filos-client-advisor__actions {
  grid-column: 1 / -1;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #d8e4ee;
  gap: .5rem;
  align-items: center;
}
/* Portrait and identity occupy the top; actions get the card's full width. */
.filos-modern .filos-client-advisor > .filos-profile-header__picture { grid-row: 1 / 3; }
@media (max-width: 30rem) {
  .filos-modern .filos-profile-header__actions { justify-content: flex-start; }
  .filos-modern .filos-client-advisor__actions .filos-modern-advisor-action--schedule {
    flex-basis: 100%;
    justify-content: center;
  }
}

/* Give first and last names equal emphasis in profile details. */
.filos-modern .filos-modern-profile-details :is(.filos-modern-profile-field--field-first-name, .filos-modern-profile-field--field-last-name) .filos-modern-profile-field__value {
  font-weight: 700;
}

/* Enlarge the shared static glint, retaining its existing center and spacing. */
.filos-family-modern .filos-group-members__generation h3::before,
body.filos-modern .filos-story-section > h2::before,
body.filos-modern .filos-story-card::before,
.filos-modern .filos-modern-profile-details__heading::before {
  scale: 1.5;
}

/* Reserve the glint for timeline markers; years get a restrained gold dash. */
body.filos-modern .filos-story-year::before {
  content: '';
  border: 0;
  border-radius: 0;
  box-shadow: none;
  flex: 0 0 .85rem;
  width: .85rem;
  height: 2px;
  background: #b89462;
  clip-path: none;
  scale: none;
}

/* Exercise section headings share the editorial glint/rule; cards stay plain. */
body.filos-modern .filos-roadmap-result-page .filos-roadmap h2,
body.filos-modern .filos-leadership-result-page :is(.filos-leadership__intro, .filos-leadership__scores, .filos-leadership__reflection) > h3,
body.filos-modern .filos-philanthropy :is(.filos-philanthropy-leading, .filos-philanthropy-picture, .filos-philanthropy-reflections) > h2,
body.filos-modern .filos-philanthropy-onepager .filos-philanthropy-editorial > section > h2,
body.filos-modern .filos-learning-result-page :is(.filos-learning-summary__header > h2, .filos-learning-interpretation > h3),
body.filos-modern .filos-me-money-result-page :is(.filos-me-money__header > h2, .filos-me-money__radar > h3),
body.filos-modern .filos-social-styles-result-page :is(.filos-social-styles__header > h2, .filos-social-styles__section-title),
body.filos-modern .filos-appreciation-result-page :is(.filos-appreciation__heading > h2, .filos-appreciation__intro > h3, .filos-appreciation__scores > h3),
body.filos-modern .filos-culture-result-page :is(.filos-culture__heading > h2, .filos-culture__reflection > h3),
body.filos-modern .filos-estate-document__section > h2 {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
}
body.filos-modern .filos-roadmap-result-page .filos-roadmap h2::before,
body.filos-modern .filos-leadership-result-page :is(.filos-leadership__intro, .filos-leadership__scores, .filos-leadership__reflection) > h3::before,
body.filos-modern .filos-philanthropy :is(.filos-philanthropy-leading, .filos-philanthropy-picture, .filos-philanthropy-reflections) > h2::before,
body.filos-modern .filos-philanthropy-onepager .filos-philanthropy-editorial > section > h2::before,
body.filos-modern .filos-learning-result-page :is(.filos-learning-summary__header > h2, .filos-learning-interpretation > h3)::before,
body.filos-modern .filos-me-money-result-page :is(.filos-me-money__header > h2, .filos-me-money__radar > h3)::before,
body.filos-modern .filos-social-styles-result-page :is(.filos-social-styles__header > h2, .filos-social-styles__section-title)::before,
body.filos-modern .filos-appreciation-result-page :is(.filos-appreciation__heading > h2, .filos-appreciation__intro > h3, .filos-appreciation__scores > h3)::before,
body.filos-modern .filos-culture-result-page :is(.filos-culture__heading > h2, .filos-culture__reflection > h3)::before,
body.filos-modern .filos-estate-document__section > h2::before {
  content: '';
  flex: 0 0 1.275rem;
  width: 1.275rem;
  height: 1.275rem;
  background: linear-gradient(135deg, #d6bb80, #a67e42);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
body.filos-modern .filos-roadmap-result-page .filos-roadmap h2::after,
body.filos-modern .filos-leadership-result-page :is(.filos-leadership__intro, .filos-leadership__scores, .filos-leadership__reflection) > h3::after,
body.filos-modern .filos-philanthropy :is(.filos-philanthropy-leading, .filos-philanthropy-picture, .filos-philanthropy-reflections) > h2::after,
body.filos-modern .filos-philanthropy-onepager .filos-philanthropy-editorial > section > h2::after,
body.filos-modern .filos-learning-result-page :is(.filos-learning-summary__header > h2, .filos-learning-interpretation > h3)::after,
body.filos-modern .filos-me-money-result-page :is(.filos-me-money__header > h2, .filos-me-money__radar > h3)::after,
body.filos-modern .filos-social-styles-result-page :is(.filos-social-styles__header > h2, .filos-social-styles__section-title)::after,
body.filos-modern .filos-appreciation-result-page :is(.filos-appreciation__heading > h2, .filos-appreciation__intro > h3, .filos-appreciation__scores > h3)::after,
body.filos-modern .filos-culture-result-page :is(.filos-culture__heading > h2, .filos-culture__reflection > h3)::after,
body.filos-modern .filos-estate-document__section > h2::after {
  content: '';
  flex: 1 1 2rem;
  min-width: 1rem;
  height: 1px;
  background: linear-gradient(90deg, #b89462b3, #b8946220);
}

/* Estate section rules replace the inherited full-width bottom border. */
body.filos-modern .filos-estate-document__section > h2 {
  border-bottom: 0;
  padding-bottom: 0;
}

/* Let the result heading rule fill the space beside its saved-score caption. */
body.filos-modern .filos-learning-result-page .filos-learning-summary__header > h2 {
  flex: 1 1 auto;
}

/* Money & Me: a clear result heading with secondary actions after the report. */
body.filos-modern .filos-me-money-result-page .filos-me-money__header > h2 {
  flex: 1 1 auto;
}
body.filos-modern .filos-me-money-result-page .filos-me-money__header {
  border-bottom: 0;
  padding-bottom: 0;
}

/* Social Styles report headings; keep the map marker and compact summary intact. */
body.filos-modern .filos-social-styles-result-page .filos-social-styles__header > h2 { flex: 1 1 auto; }
body.filos-modern .filos-social-styles-result-page .filos-social-styles__header { border-bottom: 0; padding-bottom: 0; }
