/* Final Journal acceptance corrections. Loaded after all landing-page recovery styles. */
.f4u-journal .f4u-breadcrumbs--journal-hero {
  position: relative;
  inset: auto;
  z-index: 6;
  margin: 0;
  padding: 0;
  background: transparent;
}

.f4u-journal .f4u-breadcrumbs--journal-hero .f4u-breadcrumbs__inner { width: var(--f4u-journal-shell); }
.f4u-journal .f4u-breadcrumbs--journal-hero ol { margin: 0; }
.f4u-journal.f4u-journal--landing .f4u-journal-hero {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-block: 0;
}
.f4u-journal .f4u-journal-hero__inner { flex: 1 0 auto; padding-top: clamp(1.5rem, 2.5vw, 3rem); }

@media (min-width: 44rem) and (max-width: 54rem) {
  .f4u-journal.f4u-journal--landing .f4u-journal-hero__inner {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 1.25rem;
  }
  .f4u-journal.f4u-journal--landing .f4u-journal-hero h1 { max-width: none; }
}

@media (min-width: 70.01rem) {
  .f4u-journal.f4u-journal--landing .f4u-journal-hero__photo--3 { right: 0; }
}

/* Journal cards use the central icon asset, with local layout only. */
.f4u-journal .f4u-journal-favourite .f4u-managed-icon {
  display: inline-grid;
  place-items: center;
  color: currentColor;
  line-height: 0;
}

.f4u-journal .f4u-journal-favourite .f4u-managed-icon__mask {
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  -webkit-mask: var(--f4u-managed-icon-mask) center / contain no-repeat;
  mask: var(--f4u-managed-icon-mask) center / contain no-repeat;
}

.f4u-journal-categories {
  background-color: var(--f4u-blush-soft);
  background-image:
    linear-gradient(180deg, rgba(255,253,251,.98) 0, rgba(255,247,245,.74) 16%, rgba(255,247,245,.9) 100%),
    url("../images/f4u-favourites-marble-user-approved.png");
}

.f4u-journal-categories::before { opacity: .28; }

/* Owner-approved text navigation, using the Shop's quiet category treatment. */
.f4u-journal.f4u-journal--landing .f4u-journal-categories__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.f4u-journal-category-button {
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid var(--f4u-line);
  border-radius: var(--f4u-radius-sm);
  background: var(--f4u-white);
  color: var(--f4u-ink);
  box-shadow: 0 4px 15px rgba(99,58,53,.045);
  font: 400 clamp(17px, 1.3vw, 21px)/1.2 var(--f4u-font-heading);
  text-align: center;
  text-decoration: none;
}
.f4u-journal-category-button:is(:hover,:focus-visible,[aria-current]) {
  border-color: var(--f4u-brand-pink);
  background: var(--f4u-blush-soft);
  color: var(--f4u-ink);
}
.f4u-journal-category-button:focus-visible { outline: 2px solid var(--f4u-petal); outline-offset: 3px; }
@media (max-width: 600px) {
  .f4u-journal.f4u-journal--landing .f4u-journal-categories__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .f4u-journal-category-button { padding-inline: 10px; }
}

/* Keep category navigation editorial rather than scaling it into large tiles. */
.f4u-journal.f4u-journal--landing .f4u-journal-categories > .f4u-journal-shell,
.f4u-journal.f4u-journal--landing .f4u-journal-categories__grid {
  max-width: 100rem;
  margin-inline: auto;
}

/* Legacy mobile rules reduced these labels to 8 px. Use the shared type roles
   for both the landing and the archive, including cards loaded afterwards. */
.f4u-journal:is(.f4u-journal--landing, .f4u-journal-all) .f4u-journal-card h3 {
  font-size: var(--f4u-design-title-card);
  line-height: 1.2;
}

.f4u-journal:is(.f4u-journal--landing, .f4u-journal-all) :is(.f4u-journal-label, .f4u-journal-card__meta) {
  font-family: var(--f4u-font-body);
  font-size: var(--f4u-design-label);
  line-height: 1.4;
}

/* Use the existing brand-pink/ink button pairing. White labels on the pale
   pink search button and the old active chips did not meet text contrast. */
.f4u-journal .f4u-journal-all__category:is(:hover, :focus-visible, .is-active),
.f4u-journal .f4u-journal-all__view button.is-active,
.f4u-journal .f4u-journal-all__columns button.is-active {
  background: var(--f4u-brand-pink, #EB9FA4);
  color: var(--f4u-ink);
}

.f4u-journal .f4u-journal-filters__submit,
.f4u-journal .f4u-journal-all__category,
.f4u-journal .f4u-journal-all__view button,
.f4u-journal .f4u-journal-all__columns button,
.f4u-journal .f4u-journal-all__filters select {
  min-height: 44px;
  font-size: var(--f4u-design-label);
}

.f4u-journal.f4u-journal--landing .f4u-journal-read-link {
  color: #a24e59;
  font-size: var(--f4u-design-label);
}

/* List view is one row per story, regardless of the remembered grid columns. */
.f4u-journal.f4u-journal--landing .f4u-journal-filters { grid-template-columns: minmax(0, 1fr) auto; }
.f4u-journal.f4u-journal-all .f4u-journal-all__results[data-view="list"] .f4u-journal-all__grid {
  grid-template-columns: minmax(0, 1fr);
}

.f4u-journal.f4u-journal-all .f4u-journal-all__results[data-view="list"] .f4u-journal-card__link {
  grid-template-columns: minmax(0, clamp(7.4rem, 22%, 14rem)) minmax(0, 1fr);
}

.f4u-journal.f4u-journal-all .f4u-journal-all__results[data-view="list"] .f4u-journal-card__media {
  position: relative;
  align-self: center;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 4;
}

.f4u-journal.f4u-journal-all .f4u-journal-all__results[data-view="list"] .f4u-journal-card__media img {
  position: absolute;
  inset: 0;
  min-height: 0;
}

.f4u-journal.f4u-journal-all .f4u-journal-all__results[data-view="list"] .f4u-journal-card h3 {
  font-size: var(--f4u-design-title-card);
  line-height: 1.2;
}

.f4u-journal-archive__all {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.1rem, 2.4vw, 2rem);
}

.f4u-journal-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
}

.f4u-journal-card__media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 3 / 4 !important;
  object-fit: cover;
  object-position: var(--f4u-journal-focus-x, 50%) var(--f4u-journal-focus-y, 35%);
}

.f4u-journal-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-content: center;
  background:
    linear-gradient(145deg, rgba(255,255,255,.86), rgba(250,224,225,.72)),
    url("../images/f4u-favourites-marble-user-approved.png") center / cover;
  color: var(--f4u-petal);
  text-align: center;
}

.f4u-journal-card__placeholder strong { font: 400 clamp(2rem, 4vw, 3.35rem)/1 var(--f4u-font-heading); }
.f4u-journal-card__placeholder span { margin-top: .35rem; font: 600 .65rem/1 var(--f4u-font-body); letter-spacing: .18em; text-transform: uppercase; }

.f4u-journal-all__results[data-view="list"] .f4u-journal-card__media { aspect-ratio: auto; }
.f4u-journal-all__results[data-view="list"] .f4u-journal-card__media img { aspect-ratio: auto !important; }

@media (max-width: 47.99rem) {
  .f4u-journal .f4u-breadcrumbs--journal-hero { padding: 0; }
  .f4u-journal .f4u-breadcrumbs--journal-hero .f4u-breadcrumbs__inner { width: min(100% - 2rem, 82rem); }
  .f4u-journal .f4u-journal-hero__inner { padding-top: 1.35rem; }
  .f4u-journal-categories__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  .f4u-journal-category-card,
  .f4u-journal-card__media img { transition: none !important; }
}

/* The editorial grid grows with its photographs while text stays readable. */
.f4u-journal {
  --f4u-journal-shell: min(100% - clamp(1.25rem, 4vw, 6rem), clamp(82rem, 78vw, 146rem));
  background: var(--f4u-white);
}
.f4u-journal :is(.f4u-journal-hero,.f4u-journal-all__hero) {
  background-image: linear-gradient(to bottom,transparent 44%,var(--f4u-white)),url("../images/f4u-favourites-marble-user-approved.png");
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
}
.f4u-journal.f4u-journal--landing .f4u-journal-hero::after {
  inset: auto auto .8rem max(2%,calc((100% - var(--f4u-journal-shell))/2));
  width:min(46%,58rem);
  height:clamp(5rem,14vw,17rem);
  background:url("../images/f4u-favourites-gold-brush-user-approved.png") center / contain no-repeat;
  opacity:.62;
  transform:none;
}
.f4u-journal .f4u-journal-all__hero::before {
  inset: 7% 8% 6% auto;
  width:min(44%,52rem);
  height:auto;
  background:url("../images/f4u-favourites-gold-brush-user-approved.png") center / contain no-repeat;
  opacity:.6;
  transform:none;
}
.f4u-journal-script,.f4u-journal-all__script {font-weight:400;font-synthesis:none}
.f4u-journal [data-journal-load-more][hidden] {display:none}
.f4u-journal [data-journal-sentinel] {min-height:1px}
@media(min-width:120rem){
  .f4u-journal.f4u-journal--landing .f4u-journal-hero__copy{max-width:55rem}
  .f4u-journal.f4u-journal--landing .f4u-journal-hero__inner{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
  .f4u-journal.f4u-journal--landing .f4u-journal-hero__collage{width:100%;margin-inline:0}
  .f4u-journal.f4u-journal--landing .f4u-journal-hero__photo{width:38%}
  .f4u-journal.f4u-journal--landing .f4u-journal-hero__photo--1{left:1%}
  .f4u-journal.f4u-journal--landing .f4u-journal-hero__photo--2{left:30%}
  .f4u-journal.f4u-journal--landing .f4u-journal-hero__photo--3{right:1%}
}

/* Stack the three tilted frames in one grid cell so the collage's height is
   measured from its actual photos before the shared breadcrumbs start. */
.f4u-journal.f4u-journal--landing .f4u-journal-hero__collage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  height: auto;
  min-height: 0;
  padding-bottom: clamp(.55rem, 1vw, 1.65rem);
}
.f4u-journal.f4u-journal--landing .f4u-journal-hero__photo {
  position: relative;
  grid-area: 1 / 1;
  align-self: start;
  top: auto;
}
.f4u-journal.f4u-journal--landing :is(.f4u-journal-hero__photo--1,.f4u-journal-hero__photo--3) {
  margin-block-start: clamp(.7rem, 2.5vw, 3rem);
}
.f4u-journal.f4u-journal--landing .f4u-journal-hero__photo--3 { justify-self: end; }
@media (min-width: 54.01rem) {
  .f4u-journal.f4u-journal--landing .f4u-journal-hero__collage {
    width: min(100%, clamp(40rem, 35vw, 64rem));
    margin-inline: 0;
    justify-self: center;
  }
}
@media (min-width: 36rem) and (max-width: 54rem) {
  .f4u-journal.f4u-journal--landing .f4u-journal-hero__collage { width: min(100%, 25rem); }
}
@media (max-width: 54rem) {
  .f4u-journal.f4u-journal--landing :is(.f4u-journal-hero__photo--1,.f4u-journal-hero__photo--3) {
    margin-block-start: clamp(.65rem, 1.9vw, 1.3rem);
  }
}
@media(max-width:47.99rem){
  .f4u-journal.f4u-journal--landing .f4u-journal-hero::after{width:65%;left:1%;bottom:1.2rem}
  .f4u-journal .f4u-journal-all__hero::before{right:3%;width:42%}
}

.f4u-journal.f4u-journal--landing :is(.f4u-journal-categories,.f4u-journal-archive)::after{
  background-image:url("../images/f4u-favourites-gold-brush-user-approved.png");
  background-size:contain;
  background-repeat:no-repeat;
  pointer-events:none;
}

/* Keep the shared heart in the upper-right corner of the photograph,
   including the compact cards with copy next to their photographs. */
.f4u-journal.f4u-journal--landing .f4u-journal-featured-card:not(.f4u-journal-featured-card--large) {
  --f4u-featured-photo-share: 46%;
}

.f4u-journal.f4u-journal--landing .f4u-journal-featured-card:not(.f4u-journal-featured-card--large) .f4u-journal-featured-card__link {
  grid-template-columns: var(--f4u-featured-photo-share) minmax(0, 1fr);
}

.f4u-journal.f4u-journal--landing .f4u-journal-featured-card:not(.f4u-journal-featured-card--large) > .f4u-journal-favourite {
  right: auto;
  left: calc(var(--f4u-featured-photo-share) - var(--f4u-design-heart-size) - .55rem);
}

.f4u-journal .f4u-journal-featured-card:not(.f4u-journal-featured-card--large) .f4u-journal-featured-card__media {
  position: relative;
}

.f4u-journal .f4u-journal-featured-card:not(.f4u-journal-featured-card--large) .f4u-journal-featured-card__media img {
  position: absolute;
  inset: 0;
  min-height: 0;
}

.f4u-journal .f4u-journal-featured-card__media img {
  object-position: var(--f4u-journal-focus-x, 50%) var(--f4u-journal-focus-y, 35%);
}

/* The compact archive collage crops closer to the top of the same portraits,
   keeping faces visible without increasing the introduction height. */
.f4u-journal .f4u-journal-all__collage img {
  object-position: center top;
}

/* The main Featured photo remains wide on mobile too. Its separate focus
   must therefore follow the same photo, without moving the 3:4 archive crop. */
.f4u-journal .f4u-journal-featured-card--large .f4u-journal-featured-card__media img {
  object-position: var(--f4u-journal-focus-x, 50%) var(--f4u-journal-featured-focus-y, var(--f4u-journal-focus-y, 35%));
}

.f4u-journal.f4u-journal--landing .f4u-journal-featured__grid {
  --f4u-featured-row-height: clamp(16rem, 17.5vw, 26rem);
  grid-template-rows: repeat(2, minmax(0, var(--f4u-featured-row-height)));
}

/* Size the two portrait frames from their row, rather than cropping a
   portrait into a short landscape strip. Keep the existing split cards. */
.f4u-journal.f4u-journal--landing .f4u-journal-featured-card:not(.f4u-journal-featured-card--large) {
  --f4u-featured-photo-share: calc((var(--f4u-featured-row-height) - 2px) * .75);
}

.f4u-journal.f4u-journal--landing .f4u-journal-featured-card:not(.f4u-journal-featured-card--large) .f4u-journal-featured-card__media {
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 4;
  align-self: center;
}

@media (min-width: 38.01rem) and (max-width: 54rem) {
  .f4u-journal.f4u-journal--landing .f4u-journal-featured__grid {
    --f4u-featured-row-height: 12.5rem;
  }
}

@media (max-width: 38rem) {
  .f4u-journal.f4u-journal--landing .f4u-journal-featured__grid {
    --f4u-featured-row-height: clamp(6.5rem, 30.6667vw, 8rem);
    grid-template-rows: auto;
    grid-auto-rows: minmax(var(--f4u-featured-row-height), auto);
  }

  .f4u-journal.f4u-journal--landing .f4u-journal-featured-card--large .f4u-journal-featured-card__link {
    grid-template-rows: auto auto;
  }

  .f4u-journal.f4u-journal--landing .f4u-journal-featured-card--large .f4u-journal-featured-card__media {
    position: relative;
    height: auto;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .f4u-journal.f4u-journal--landing .f4u-journal-featured-card--large .f4u-journal-featured-card__media img {
    position: absolute;
    inset: 0;
  }

  .f4u-journal.f4u-journal--landing .f4u-journal-featured-card:not(.f4u-journal-featured-card--large) > .f4u-journal-favourite {
    left: auto;
    right: .55rem;
  }

  .f4u-journal.f4u-journal--landing .f4u-journal-featured-card:not(.f4u-journal-featured-card--large) .f4u-journal-featured-card__body {
    padding-inline-end: 3.75rem;
  }
}
