/* Only One You Counselling v3 (20 Nov 2026): the "Grief can look like this." section rebuilt.
   One large photo that changes with a list of the six feelings (desktop);
   the same list opening one at a time with its photo (phones). Loaded after polish.css. */
.fx { position: relative; }
.fx-item { border-top: 1px solid var(--line); background: linear-gradient(var(--amber), var(--amber)) left top / 0% 2px no-repeat; transition: background-size 0.45s ease; }
.fx-item:last-child { border-bottom: 1px solid var(--line); }
.fx-item.is-active { background-size: 100% 2px; }
.fx.auto .fx-item.is-active { animation: fxbar 5.5s linear both; }
@keyframes fxbar { from { background-size: 0% 2px; } to { background-size: 100% 2px; } }
.fx-item h3 { margin: 0; font-size: inherit; line-height: inherit; letter-spacing: inherit; }
.fx-head { -webkit-appearance: none; appearance: none; background: none; border: 0; margin: 0; width: 100%; text-align: left; cursor: pointer; display: grid; grid-template-columns: 40px 1fr 34px; align-items: center; column-gap: 12px; padding: 21px 2px; font: 600 clamp(1.2rem, 1.7vw, 1.42rem)/1.2 var(--sans); letter-spacing: -0.02em; color: var(--ink-soft); transition: color 0.25s ease; }
.fx-head .n { font: italic 400 1.32rem/1 var(--accent); letter-spacing: 0; color: var(--amber-deep); }
.fx-head:hover, .is-active .fx-head { color: var(--ink); }
.fx-head .pm { width: 34px; height: 34px; border-radius: 50%; background: var(--mist); position: relative; transition: background 0.25s ease, transform 0.3s ease; }
.fx-head .pm::before, .fx-head .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--ink); transform: translate(-50%, -50%); }
.fx-head .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.3s ease; }
.is-active .fx-head .pm { background: var(--amber); transform: rotate(180deg); }
.is-active .fx-head .pm::after { transform: translate(-50%, -50%) rotate(0); }
.fx-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.is-active .fx-panel { grid-template-rows: 1fr; }
.fx-in { overflow: hidden; min-height: 0; }
.fx-panel p { margin: 0; padding: 0 46px 22px 54px; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }
.fx-pic { background: var(--mist); }
.fx-pic img { width: 100%; height: 100%; object-fit: cover; }
.fx-count { display: none; }
.no-js .fx-panel { grid-template-rows: 1fr; }

/* Desktop and tablet: the photo stands on the left, the list on the right */
@media (min-width: 901px) {
  .fx { --gap: clamp(40px, 5vw, 76px); --stage: calc((100% - var(--gap)) * 0.57); display: grid; grid-template-columns: 1.14fr 0.86fr; column-gap: var(--gap); align-items: center; min-height: clamp(430px, 37vw, 520px); }
  .fx::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--stage); border-radius: var(--r-lg); background: var(--mist); box-shadow: 0 30px 70px rgba(16, 42, 48, 0.16); }
  .fx-list { grid-column: 2; }
  /* large type; the feeling in view is dark, the others wait in a paler tone (3.3:1 on white at this size) */
  .fx-head { grid-template-columns: 46px 1fr 12px; padding: 20px 2px; font-size: clamp(1.4rem, 2vw, 1.72rem); color: #7f9398; }
  .fx-head .n { font-size: 1.4rem; }
  .fx-head .pm, .is-active .fx-head .pm { width: 10px; height: 10px; background: var(--amber); transform: scale(0); transition: transform 0.3s ease; }
  .is-active .fx-head .pm { transform: scale(1); }
  .fx-head .pm::before, .fx-head .pm::after { display: none; }
  .fx-panel p { padding: 0 30px 22px 60px; font-size: 1.04rem; }
  .fx-panel p { min-height: calc(3.2em + 22px); }
  /* each photo fills the stage; the one leaving stays underneath until the new one has faded in */
  .fx-pic { position: absolute; left: 0; top: 0; bottom: 0; width: var(--stage); border-radius: var(--r-lg); overflow: hidden; opacity: 0; z-index: 0; pointer-events: none; transition: opacity 0s linear 0.7s; }
  .fx-pic img { transform: scale(1.045); transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .is-active .fx-pic { opacity: 1; z-index: 1; transition: opacity 0.7s ease; }
  .is-active .fx-pic img { transform: none; }
  .no-js .fx-item:not(.is-active) .fx-pic { display: none; }
  .fx-count { display: block; position: absolute; left: 22px; bottom: 22px; z-index: 2; background: var(--white); color: var(--muted); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 99px; padding: 9px 16px 9px 14px; font: 600 0.82rem/1 var(--sans); letter-spacing: 0.04em; box-shadow: 0 14px 34px rgba(8, 24, 28, 0.22); }
  .fx-count b { font: italic 400 1.25rem/1 var(--accent); color: var(--amber-deep); letter-spacing: 0; margin-right: 3px; }
}
@media (min-width: 901px) and (max-width: 1080px) { .fx { grid-template-columns: 1fr 1fr; --stage: calc((100% - var(--gap)) * 0.5); } }

/* Phones: the list opens one at a time and shows that feeling's photo */
@media (max-width: 900px) {
  .fx-head { padding: 19px 0; font-size: 1.22rem; scroll-margin-top: 96px; }
  .fx-pic { aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; margin: 2px 0 16px; }
  .fx-panel p { padding: 0 4px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-item, .fx-panel, .fx-pic, .fx-pic img, .fx-head .pm, .fx-head .pm::after { transition: none !important; }
  .fx-pic img { transform: none; }
  .fx.auto .fx-item.is-active { animation: none; }
}
