:root {
  --fff-ink: #1D2D3E;
  --fff-ink-soft: #2A3A4D;
  --fff-text: #344454;
  --fff-muted: #667481;
  --fff-paper: #FBF8EF;
  --fff-cream: #F4E8CC;
  --fff-cream-light: #FFF8E8;
  --fff-parchment: #E9DDBF;
  --fff-border: rgba(29, 45, 62, 0.14);
  --fff-rust: #B9653B;
  --fff-rust-dark: #9F4F2E;
  --fff-gold: #D89B3A;
  --fff-blue: #24415F;
  --fff-blue-dark: #182D42;
  --fff-blue-soft: #DCE9F2;
  --fff-card: rgba(255, 252, 243, 0.82);
  --fff-card-solid: #FFFCF3;
  --fff-shadow: rgba(29, 45, 62, 0.12);
  --fff-radius-lg: 32px;
  --fff-radius-md: 24px;
  --fff-radius-sm: 16px;
  --fff-safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 6%, rgba(216, 155, 58, 0.13), transparent 30vw),
    radial-gradient(circle at 86% 8%, rgba(36, 65, 95, 0.10), transparent 28vw),
    linear-gradient(135deg, var(--fff-paper) 0%, var(--fff-cream) 54%, var(--fff-cream-light) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(29, 45, 62, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 45, 62, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 68%);
}

.wp-site-blocks {
  min-height: 100vh;
}

.fff-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0;
  padding: 12px clamp(14px, 2.4vw, 28px);
  background: rgba(251, 248, 239, 0.74);
  border-bottom: 1px solid rgba(29, 45, 62, 0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.fff-header-inner {
  max-width: 1240px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fff-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: max-content;
}

.fff-brand .wp-block-site-title {
  margin: 0;
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.26rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 850;
}

.fff-brand .wp-block-site-title a {
  color: var(--fff-ink);
  text-decoration: none;
}

.fff-brand .wp-block-site-tagline {
  margin: 2px 0 0;
  color: var(--fff-muted);
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 680;
  letter-spacing: 0.01em;
}

.fff-nav :where(.wp-block-navigation__container) {
  gap: 8px;
}

.fff-nav :where(.wp-block-navigation-item__content) {
  border: 1px solid rgba(29, 45, 62, 0.12);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 252, 243, 0.68);
  color: var(--fff-ink);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(29, 45, 62, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.fff-nav :where(.wp-block-navigation-item__content:hover) {
  transform: translateY(-1px);
  background: rgba(255, 252, 243, 0.96);
  color: var(--fff-rust-dark);
  box-shadow: 0 10px 24px rgba(29, 45, 62, 0.10);
}

.fff-nav :where(.current-menu-item .wp-block-navigation-item__content),
.fff-nav :where(.current_page_item .wp-block-navigation-item__content) {
  background: linear-gradient(135deg, var(--fff-blue) 0%, var(--fff-blue-dark) 100%);
  border-color: transparent;
  color: var(--fff-cream-light);
}

.fff-hero {
  min-height: clamp(460px, 56vh, 620px);
  margin: 0;
  padding: clamp(42px, 6vw, 84px) clamp(18px, 3vw, 32px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 20%, rgba(216, 155, 58, 0.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(36, 65, 95, 0.12), transparent 30%),
    linear-gradient(135deg, #FBF8EF 0%, #F4E8CC 52%, #FFF8E8 100%);
  border-bottom: 1px solid rgba(29, 45, 62, 0.09);
}

.fff-hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  opacity: 0.28;
  background:
    repeating-linear-gradient(0deg, rgba(29,45,62,.04) 0, rgba(29,45,62,.04) 1px, transparent 1px, transparent 12px);
  transform: rotate(-7deg);
}

.fff-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 390px;
  height: 390px;
  border-radius: 999px;
  border: 1px solid rgba(29, 45, 62, 0.09);
  box-shadow: inset 0 0 0 26px rgba(255, 252, 243, 0.24);
  opacity: 0.65;
}

.fff-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.fff-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 1px solid rgba(29, 45, 62, 0.12);
  border-radius: 999px;
  background: rgba(255, 252, 243, 0.62);
  color: var(--fff-rust-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fff-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fff-rust);
  box-shadow: 0 0 0 5px rgba(185, 101, 59, 0.12);
}

.fff-hero__title {
  margin: 0;
  max-width: 820px;
  font-size: clamp(52px, 7vw, 92px);
  line-height: 0.96;
  font-weight: 880;
  letter-spacing: -0.055em;
  color: var(--fff-ink);
}

.fff-hero__kicker {
  margin: 20px 0 0;
  max-width: 640px;
  color: var(--fff-ink-soft);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.35;
  font-weight: 720;
  letter-spacing: -0.018em;
}

.fff-hero__text {
  margin: 14px 0 0;
  max-width: 640px;
  color: var(--fff-text);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65;
}

.fff-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.fff-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 820;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.fff-button:hover,
.wp-block-button__link:hover {
  transform: translateY(-2px);
}

.fff-button--primary {
  background: linear-gradient(135deg, #24415F 0%, #182D42 100%);
  color: #FFF8E8;
  box-shadow: 0 14px 36px rgba(29, 45, 62, 0.20);
}

.fff-button--secondary {
  background: rgba(255, 252, 243, 0.78);
  color: var(--fff-ink);
  border: 1px solid rgba(29, 45, 62, 0.16);
  box-shadow: 0 10px 24px rgba(29, 45, 62, 0.08);
}

.fff-app-preview {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(29, 45, 62, 0.14);
  border-radius: 34px;
  background: rgba(255, 252, 243, 0.68);
  box-shadow: 0 24px 70px rgba(29, 45, 62, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.fff-app-preview::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.fff-preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.fff-preview-title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--fff-ink);
  font-size: 0.92rem;
  font-weight: 850;
}

.fff-preview-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--fff-gold);
  box-shadow: 0 0 0 5px rgba(216, 155, 58, 0.13);
}

.fff-preview-status {
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--fff-rust-dark);
  background: rgba(185, 101, 59, 0.09);
  font-size: 0.72rem;
  font-weight: 800;
}

.fff-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fff-mini-card {
  position: relative;
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(29, 45, 62, 0.14);
  border-radius: 26px;
  background: rgba(255, 252, 243, 0.82);
  box-shadow: 0 18px 40px rgba(29, 45, 62, 0.09);
  overflow: hidden;
  animation: fffFloat 6s ease-in-out infinite;
}

.fff-mini-card:nth-child(2) { animation-delay: -1.4s; }
.fff-mini-card:nth-child(3) { animation-delay: -2.8s; }
.fff-mini-card:nth-child(4) { animation-delay: -4.2s; }

.fff-mini-card::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: var(--fff-rust);
}

.fff-mini-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 94px;
  height: 94px;
  border-radius: 999px;
  border: 1px solid rgba(29, 45, 62, 0.10);
}

.fff-mini-card strong {
  display: block;
  color: var(--fff-ink);
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.fff-mini-card span {
  display: block;
  margin-top: 8px;
  color: var(--fff-muted);
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 650;
}

.fff-pulse-line {
  position: relative;
  height: 52px;
  margin-top: 16px;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(36,65,95,0.06) 0 12%, transparent 12% 16%, rgba(36,65,95,0.08) 16% 32%, transparent 32% 36%, rgba(185,101,59,0.10) 36% 54%, transparent 54% 60%, rgba(36,65,95,0.07) 60% 100%);
  border: 1px solid rgba(29, 45, 62, 0.08);
}

.fff-pulse-line::before,
.fff-pulse-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 18px;
  right: 18px;
  height: 1px;
  background: rgba(29, 45, 62, 0.16);
}

.fff-pulse-line::after {
  top: auto;
  bottom: 16px;
  opacity: 0.52;
}

.fff-section {
  padding: clamp(46px, 6vw, 88px) clamp(18px, 3vw, 32px);
}

.fff-section__inner {
  max-width: 1240px;
  margin-inline: auto;
}

.fff-section__intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.fff-section__intro h2 {
  margin: 0;
  max-width: 780px;
  color: var(--fff-ink);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: .98;
  letter-spacing: -0.055em;
}

.fff-section__intro p {
  margin: 0;
  max-width: 420px;
  color: var(--fff-text);
}

.fff-app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.fff-app-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(29, 45, 62, 0.14);
  border-radius: 28px;
  overflow: hidden;
  background: var(--fff-card-solid);
  color: var(--fff-text);
  text-decoration: none;
  box-shadow: 0 16px 46px rgba(29, 45, 62, 0.10);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.fff-app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(29, 45, 62, 0.16);
}

.fff-app-card__media {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 18% 18%, rgba(216,155,58,.24), transparent 34%),
    radial-gradient(circle at 82% 28%, rgba(36,65,95,.18), transparent 32%),
    linear-gradient(135deg, var(--fff-cream-light), var(--fff-cream));
  border-bottom: 1px solid rgba(29, 45, 62, 0.10);
}

.fff-app-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.fff-app-card__body h3 {
  margin: 0;
  color: var(--fff-ink);
  font-size: 1.2rem;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.fff-app-card__body p {
  margin: 0;
  color: var(--fff-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.fff-app-card__button {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--fff-blue);
  color: var(--fff-cream-light);
  font-size: .82rem;
  font-weight: 800;
}

.fff-page-content {
  max-width: 1000px;
  margin-inline: auto;
  padding: clamp(34px, 6vw, 72px) clamp(18px, 3vw, 32px);
}

.fff-card-surface {
  border: 1px solid rgba(29, 45, 62, 0.14);
  border-radius: 28px;
  background: rgba(255, 252, 243, 0.84);
  box-shadow: 0 18px 55px rgba(29, 45, 62, 0.10);
  backdrop-filter: blur(14px);
}

.fff-site-footer {
  margin-top: 44px;
  padding: 34px clamp(18px, 3vw, 32px) calc(34px + var(--fff-safe-bottom));
  border-top: 1px solid rgba(29, 45, 62, 0.10);
  background: rgba(255, 252, 243, 0.56);
}

.fff-footer-inner {
  max-width: 1240px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--fff-muted);
  font-size: 0.9rem;
}

.fff-animate {
  opacity: 0;
  animation: fffFadeUp 0.72s cubic-bezier(.2,.8,.2,1) forwards;
}
.fff-delay-1 { animation-delay: .05s; }
.fff-delay-2 { animation-delay: .13s; }
.fff-delay-3 { animation-delay: .21s; }
.fff-delay-4 { animation-delay: .29s; }
.fff-delay-5 { animation-delay: .37s; }

@keyframes fffFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fffFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (max-width: 980px) {
  .fff-hero__inner {
    grid-template-columns: 1fr;
  }

  .fff-app-preview {
    max-width: 680px;
  }

  .fff-app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    background:
      radial-gradient(circle at 12% 0%, rgba(216, 155, 58, 0.18), transparent 60vw),
      linear-gradient(135deg, var(--fff-paper) 0%, var(--fff-cream-light) 100%);
  }

  .fff-site-header {
    padding: 10px 12px;
  }

  .fff-header-inner {
    min-height: 52px;
  }

  .fff-brand .wp-block-site-title {
    font-size: 1.05rem;
  }

  .fff-brand .wp-block-site-tagline {
    display: none;
  }

  .fff-nav :where(.wp-block-navigation__responsive-container-open) {
    border: 1px solid rgba(29,45,62,.14);
    border-radius: 999px;
    padding: 10px;
    background: rgba(255, 252, 243, 0.76);
    box-shadow: 0 8px 24px rgba(29, 45, 62, 0.08);
  }

  .fff-nav :where(.wp-block-navigation__responsive-container.is-menu-open) {
    background: linear-gradient(135deg, var(--fff-paper), var(--fff-cream-light));
    padding: 20px;
  }

  .fff-nav :where(.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content) {
    padding-top: 64px;
  }

  .fff-nav :where(.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content) {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 16px 18px;
    font-size: 1.08rem;
  }

  .fff-hero {
    min-height: auto;
    padding: 34px 14px 24px;
  }

  .fff-hero::after {
    width: 240px;
    height: 240px;
    right: -100px;
    bottom: -110px;
  }

  .fff-hero__inner {
    gap: 24px;
  }

  .fff-eyebrow {
    margin-bottom: 14px;
    padding: 7px 10px;
    font-size: 0.72rem;
  }

  .fff-hero__title {
    font-size: clamp(44px, 13vw, 62px);
    line-height: .94;
  }

  .fff-hero__kicker {
    margin-top: 16px;
    font-size: clamp(18px, 5vw, 22px);
  }

  .fff-hero__text {
    font-size: 1rem;
    line-height: 1.56;
  }

  .fff-hero__actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 20px;
  }

  .fff-button,
  .wp-block-button__link {
    width: 100%;
    min-height: 52px;
  }

  .fff-app-preview {
    padding: 14px;
    border-radius: 26px;
  }

  .fff-preview-topbar {
    margin-bottom: 12px;
  }

  .fff-preview-status {
    display: none;
  }

  .fff-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .fff-mini-card {
    min-height: 112px;
    padding: 13px;
    border-radius: 20px;
  }

  .fff-mini-card::before {
    margin-bottom: 16px;
  }

  .fff-mini-card span {
    font-size: 0.76rem;
  }

  .fff-pulse-line {
    height: 42px;
    margin-top: 10px;
  }

  .fff-section {
    padding: 38px 14px;
  }

  .fff-section__intro {
    display: block;
  }

  .fff-section__intro h2 {
    font-size: clamp(2.15rem, 10vw, 3.3rem);
  }

  .fff-section__intro p {
    margin-top: 12px;
  }

  .fff-app-grid {
    grid-template-columns: 1fr;
  }

  .fff-app-card {
    border-radius: 24px;
  }

  .fff-app-card__media {
    aspect-ratio: 16 / 8.5;
  }

  .fff-footer-inner {
    display: block;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .fff-mini-grid {
    grid-template-columns: 1fr;
  }

  .fff-mini-card {
    min-height: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* v0.2 refinements: desktop nav, mobile app shell, tighter card section */
body.admin-bar .fff-site-header {
  top: 32px;
}

.fff-site-header {
  box-shadow: 0 10px 30px rgba(29, 45, 62, 0.05);
}

.fff-nav :where(.wp-block-navigation__responsive-container:not(.is-menu-open)) {
  background: transparent;
}

.fff-nav :where(.wp-block-navigation__responsive-container-open) {
  color: var(--fff-ink);
}

.fff-nav :where(.wp-block-navigation__responsive-container-open svg) {
  width: 22px;
  height: 22px;
}

.fff-nav :where(.wp-block-navigation__responsive-container-open:hover) {
  color: var(--fff-rust-dark);
}

.fff-section__intro {
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  margin-bottom: clamp(18px, 2.5vw, 30px);
}

.fff-section__label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(29, 45, 62, 0.12);
  border-radius: 999px;
  background: rgba(255, 252, 243, 0.72);
  color: var(--fff-rust-dark);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fff-section__label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--fff-gold);
  box-shadow: 0 0 0 5px rgba(216, 155, 58, 0.12);
}

.fff-section__intro h2 {
  max-width: 860px;
  font-size: clamp(2.2rem, 4.2vw, 4.35rem);
}

.fff-app-card__media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
  overflow: hidden;
}

.fff-app-card__media::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  border: 1px solid rgba(29, 45, 62, 0.08);
  background:
    repeating-linear-gradient(0deg, rgba(29, 45, 62, 0.050) 0 1px, transparent 1px 14px),
    radial-gradient(circle at 75% 80%, rgba(255, 252, 243, 0.62), transparent 34%);
  transform: rotate(-2deg);
}

.fff-card-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 28px;
  background: rgba(255, 252, 243, 0.68);
  border: 1px solid rgba(29, 45, 62, 0.12);
  box-shadow: 0 20px 50px rgba(29, 45, 62, 0.12);
  color: var(--fff-blue);
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 900;
}

.fff-app-card--rhythm .fff-card-mark {
  color: var(--fff-rust-dark);
}

.fff-app-card--diary .fff-card-mark {
  color: var(--fff-gold);
}

.fff-mobile-dock {
  display: none;
}

@media (max-width: 782px) {
  body.admin-bar .fff-site-header {
    top: 46px;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(84px + var(--fff-safe-bottom));
  }

  .fff-site-header {
    border-bottom: 0;
    background: rgba(251, 248, 239, 0.86);
  }

  .fff-header-inner {
    padding: 0 2px;
  }

  .fff-brand {
    min-width: 0;
  }

  .fff-nav :where(.wp-block-navigation__responsive-container-open) {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
  }

  .fff-hero {
    padding-top: 28px;
    padding-bottom: 18px;
  }

  .fff-hero__title {
    max-width: 7.2em;
  }

  .fff-app-preview {
    box-shadow: 0 16px 40px rgba(29, 45, 62, 0.11);
  }

  .fff-section__intro h2 {
    font-size: clamp(2rem, 9.8vw, 3rem);
    max-width: 9.5em;
  }

  .fff-app-card__media {
    min-height: 156px;
    aspect-ratio: 16 / 8.5;
  }

  .fff-card-mark {
    width: 70px;
    height: 70px;
    border-radius: 22px;
    font-size: 2rem;
  }

  .fff-mobile-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + var(--fff-safe-bottom));
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    max-width: 430px;
    margin-inline: auto;
    padding: 7px;
    border: 1px solid rgba(29, 45, 62, 0.13);
    border-radius: 28px;
    background: rgba(255, 252, 243, 0.82);
    box-shadow: 0 20px 60px rgba(29, 45, 62, 0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .fff-mobile-dock__item {
    display: grid;
    place-items: center;
    gap: 3px;
    min-height: 54px;
    border-radius: 22px;
    color: var(--fff-ink);
    text-decoration: none;
    font-size: .72rem;
    font-weight: 800;
  }

  .fff-mobile-dock__item span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: var(--fff-rust-dark);
    font-size: 1.05rem;
    line-height: 1;
  }

  .fff-mobile-dock__item:nth-child(2) {
    background: linear-gradient(135deg, var(--fff-blue) 0%, var(--fff-blue-dark) 100%);
    color: var(--fff-cream-light);
    box-shadow: 0 10px 26px rgba(29, 45, 62, 0.18);
  }

  .fff-mobile-dock__item:nth-child(2) span {
    color: var(--fff-gold);
  }
}


/* v0.3: curated static navigation; prevents WordPress fallback from dumping all pages into the header */
.fff-brand-link {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: max-content;
  color: var(--fff-ink);
  text-decoration: none;
}

.fff-brand-title {
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.26rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 850;
}

.fff-brand-tagline {
  color: var(--fff-muted);
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 680;
  letter-spacing: 0.01em;
}

.fff-main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.fff-main-nav a,
.fff-profile-pill,
.fff-footer-nav a,
.fff-footer-nav button {
  border: 1px solid rgba(29, 45, 62, 0.12);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 252, 243, 0.68);
  color: var(--fff-ink);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(29, 45, 62, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
  white-space: nowrap;
  font-weight: 750;
}

.fff-main-nav a:hover,
.fff-profile-pill:hover,
.fff-footer-nav a:hover,
.fff-footer-nav button:hover {
  transform: translateY(-1px);
  background: rgba(255, 252, 243, 0.96);
  color: var(--fff-rust-dark);
  box-shadow: 0 10px 24px rgba(29, 45, 62, 0.10);
}

.fff-main-nav a[href="#laboratorij"],
.fff-profile-pill {
  background: linear-gradient(135deg, var(--fff-blue) 0%, var(--fff-blue-dark) 100%);
  border-color: transparent;
  color: var(--fff-cream-light);
}

.fff-profile-pill {
  flex: 0 0 auto;
}

.fff-footer-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.fff-footer-nav button {
  font: inherit;
  cursor: pointer;
}

.fff-footer-legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.fff-footer-legal-links > span {
  color: var(--fff-ink-soft);
}

@media (max-width: 1080px) {
  .fff-main-nav a:nth-child(3),
  .fff-main-nav a:nth-child(4) {
    display: none;
  }
}

@media (max-width: 760px) {
  .fff-main-nav {
    display: none;
  }

  .fff-profile-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 13px;
    font-size: .86rem;
  }

  .fff-brand-link {
    min-width: 0;
  }

  .fff-brand-title {
    font-size: 1.02rem;
  }

  .fff-brand-tagline {
    display: none;
  }

  .fff-site-footer {
    padding-bottom: calc(90px + var(--fff-safe-bottom));
  }
}


/* v0.4: anchor offset and safer desktop/mobile spacing */
.fff-section[id] {
  scroll-margin-top: 112px;
}

body.admin-bar .fff-section[id] {
  scroll-margin-top: 148px;
}

.fff-main-nav a[href="#laboratorij"] {
  scroll-margin-top: 148px;
}

/* Keep anchored section from feeling cropped after clicking the desktop/mobile Lab links. */
#laboratorij .fff-section__intro {
  padding-top: 4px;
}

/* External fixed donation buttons can visually collide with the footer. Give footer actions a safer right side on wide screens. */
@media (min-width: 1024px) {
  .fff-site-footer {
    padding-right: clamp(18px, 24vw, 390px);
  }
}

@media (max-width: 760px) {
  .fff-section[id],
  body.admin-bar .fff-section[id] {
    scroll-margin-top: 92px;
  }

  #laboratorij .fff-section__intro {
    padding-top: 2px;
  }
}


/* v0.5: mobile app polish based on first device test */
@media (max-width: 760px) {
  /* On phones the bottom app dock is handled by the mobile/PWA layer; keep the theme from competing with it. */
  .fff-mobile-dock {
    display: none !important;
  }

  body {
    padding-bottom: calc(108px + var(--fff-safe-bottom));
  }

  .fff-site-header {
    display: none;
  }

  .fff-hero {
    padding: 22px 14px 16px;
  }

  .fff-hero__inner {
    gap: 18px;
  }

  .fff-eyebrow {
    margin-bottom: 12px;
    padding: 6px 10px;
  }

  .fff-hero__title {
    max-width: 6.6em;
    font-size: clamp(38px, 11.6vw, 54px);
    line-height: .93;
    letter-spacing: -0.058em;
  }

  .fff-hero__kicker {
    margin-top: 14px;
    font-size: clamp(17px, 4.7vw, 20px);
    line-height: 1.22;
  }

  .fff-hero__text {
    margin-top: 10px;
    font-size: .95rem;
    line-height: 1.48;
  }

  .fff-hero__actions {
    gap: 10px;
    margin-top: 16px;
  }

  .fff-hero__actions .fff-button--secondary {
    display: none;
  }

  .fff-button,
  .wp-block-button__link {
    min-height: 50px;
    padding-block: 12px;
  }

  .fff-app-preview {
    margin-top: 4px;
    padding: 12px;
    border-radius: 24px;
  }

  .fff-app-preview::before {
    inset: 8px;
    border-radius: 20px;
  }

  .fff-preview-topbar {
    margin-bottom: 10px;
  }

  .fff-preview-title {
    font-size: .86rem;
  }

  .fff-mini-grid {
    gap: 8px;
  }

  .fff-mini-card {
    min-height: 78px;
    padding: 10px 11px;
    border-radius: 18px;
  }

  .fff-mini-card::before {
    width: 7px;
    height: 7px;
    margin-bottom: 10px;
  }

  .fff-mini-card::after {
    width: 66px;
    height: 66px;
  }

  .fff-mini-card strong {
    font-size: .9rem;
    line-height: 1.08;
  }

  .fff-mini-card span {
    display: none;
  }

  .fff-pulse-line {
    display: none;
  }

  .fff-section {
    padding: 32px 14px 38px;
  }

  .fff-section[id],
  body.admin-bar .fff-section[id] {
    scroll-margin-top: 16px;
  }

  .fff-section__intro {
    margin-bottom: 16px;
  }

  .fff-section__intro h2 {
    max-width: 10.5em;
    font-size: clamp(1.85rem, 8.8vw, 2.65rem);
    line-height: .98;
  }

  .fff-app-grid {
    gap: 14px;
  }

  .fff-app-card {
    border-radius: 24px;
  }

  .fff-app-card__media {
    min-height: 128px;
    aspect-ratio: 16 / 7;
  }

  .fff-app-card__media::before {
    inset: 12px;
    border-radius: 20px;
  }

  .fff-card-mark {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    font-size: 1.8rem;
  }

  .fff-app-card__body {
    gap: 8px;
    padding: 16px;
  }

  .fff-app-card__body h3 {
    font-size: 1.12rem;
  }

  .fff-app-card__body p {
    font-size: .92rem;
  }

  .fff-app-card__button {
    min-height: 38px;
    padding: 10px 14px;
  }

  .fff-site-footer {
    display: none;
  }
}


/* v0.7.0 — rubric based laboratory catalog */
.fff-app-catalog {
  background:
    radial-gradient(circle at 8% 18%, rgba(216, 155, 58, 0.10), transparent 24%),
    radial-gradient(circle at 90% 12%, rgba(36, 65, 95, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(248, 247, 255, 0.92), rgba(251, 248, 239, 0.42));
}

.fff-catalog-intro {
  align-items: end;
}

.fff-catalog-intro p {
  max-width: 440px;
}

.fff-rubrics {
  display: grid;
  gap: clamp(34px, 5.5vw, 74px);
}

.fff-rubric {
  display: grid;
  gap: clamp(16px, 2.5vw, 26px);
  scroll-margin-top: 130px;
}

.fff-rubric__head {
  max-width: 820px;
}

.fff-rubric__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 9px;
  padding: 7px 11px;
  border: 1px solid rgba(29, 45, 62, 0.12);
  border-radius: 999px;
  background: rgba(255, 252, 243, 0.76);
  color: var(--fff-rust-dark);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fff-rubric__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--fff-gold);
  box-shadow: 0 0 0 5px rgba(216, 155, 58, 0.12);
}

.fff-rubric__head h3 {
  margin: 0;
  color: var(--fff-ink);
  font-size: clamp(1.72rem, 3vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.052em;
}

.fff-rubric__head p {
  margin: 10px 0 0;
  max-width: 720px;
  color: var(--fff-text);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.55;
}

.fff-app-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}

.fff-app-grid--featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fff-app-card {
  position: relative;
  border-radius: 30px;
  background: rgba(255, 252, 243, 0.92);
  box-shadow: 0 18px 56px rgba(29, 45, 62, 0.105);
  transform: translateZ(0);
}

.fff-app-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.fff-app-card:hover .fff-app-card__image {
  transform: scale(1.035);
}

.fff-app-card__media {
  position: relative;
  display: block;
  min-height: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--fff-cream);
  border-bottom: 1px solid rgba(29, 45, 62, 0.10);
}

.fff-app-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 75% 78%, rgba(255, 252, 243, 0.20), transparent 35%),
    linear-gradient(180deg, rgba(29, 45, 62, 0.00) 45%, rgba(29, 45, 62, 0.13) 100%);
  opacity: .42;
  transform: none;
  pointer-events: none;
}

.fff-app-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 260ms ease;
}

.fff-app-card__body {
  flex: 1;
  gap: 9px;
  padding: 18px 18px 20px;
}

.fff-app-card__tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(185, 101, 59, 0.10);
  color: var(--fff-rust-dark);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.fff-app-card__body h4,
.fff-app-card__body h3 {
  margin: 0;
  color: var(--fff-ink);
  font-size: 1.22rem;
  letter-spacing: -0.036em;
  line-height: 1.06;
}

.fff-app-card__body p {
  flex: 1;
  min-height: 3.9em;
}

.fff-app-card__button {
  margin-top: 4px;
}

@media (max-width: 1040px) {
  .fff-app-grid--featured {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  }
}

@media (max-width: 760px) {
  .fff-app-catalog {
    padding-top: 30px;
  }

  .fff-catalog-intro {
    display: grid;
    gap: 10px;
  }

  .fff-catalog-intro p {
    max-width: 32em;
    font-size: .95rem;
    line-height: 1.48;
  }

  .fff-rubrics {
    gap: 36px;
  }

  .fff-rubric {
    gap: 14px;
    scroll-margin-top: 18px;
  }

  .fff-rubric__head h3 {
    font-size: clamp(1.58rem, 8vw, 2.24rem);
  }

  .fff-rubric__head p {
    font-size: .96rem;
    line-height: 1.45;
  }

  .fff-app-grid,
  .fff-app-grid--featured {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .fff-app-card {
    border-radius: 26px;
  }

  .fff-app-card__media {
    aspect-ratio: 16 / 10;
  }

  .fff-app-card__body {
    padding: 15px 15px 16px;
  }

  .fff-app-card__tag {
    font-size: .64rem;
  }

  .fff-app-card__body h4,
  .fff-app-card__body h3 {
    font-size: 1.12rem;
  }

  .fff-app-card__body p {
    min-height: auto;
    font-size: .92rem;
  }
}


/* v0.8.0 — mobile tightening after real iPhone test */
@media (max-width: 760px) {
  /* The real bottom app navigation comes from the existing mobile/PWA layer.
     Keep the theme hero shorter so the first screen feels like an app landing screen, not a long brochure. */
  .fff-hero {
    padding: 24px 14px 22px;
  }

  .fff-hero__inner {
    gap: 0;
  }

  .fff-hero__title {
    font-size: clamp(40px, 12vw, 56px);
    max-width: 6.7em;
  }

  .fff-hero__kicker {
    max-width: 20em;
  }

  .fff-hero__text {
    max-width: 26em;
  }

  .fff-hero__actions {
    margin-top: 18px;
  }

  .fff-button,
  .wp-block-button__link {
    min-height: 58px;
    font-size: 1rem;
  }

  /* On phones the preview duplicates the real app cards and pushes useful content below the fold. */
  .fff-app-preview {
    display: none;
  }

  .fff-app-catalog {
    padding-top: 28px;
    padding-bottom: calc(124px + var(--fff-safe-bottom));
  }

  .fff-catalog-intro {
    margin-bottom: 22px;
  }

  .fff-catalog-intro h2 {
    max-width: 10.8em;
    font-size: clamp(2rem, 9vw, 2.85rem);
  }

  .fff-catalog-intro p {
    font-size: .94rem;
  }

  .fff-rubrics {
    gap: 42px;
  }

  .fff-rubric__eyebrow {
    padding: 6px 10px;
    font-size: .62rem;
  }

  .fff-rubric__head h3 {
    font-size: clamp(1.7rem, 8.2vw, 2.35rem);
  }

  .fff-app-grid,
  .fff-app-grid--featured {
    gap: 16px;
  }

  .fff-app-card {
    border-radius: 28px;
    box-shadow: 0 14px 42px rgba(29, 45, 62, 0.10);
  }

  .fff-app-card__media {
    aspect-ratio: 16 / 9.5;
  }

  .fff-app-card__body {
    padding: 18px 18px 20px;
  }

  .fff-app-card__body h4,
  .fff-app-card__body h3 {
    font-size: 1.2rem;
  }

  .fff-app-card__button {
    min-height: 50px;
    padding: 13px 18px;
    font-size: .92rem;
  }
}

@media (max-width: 380px) {
  .fff-hero__title {
    font-size: clamp(37px, 11.6vw, 50px);
  }

  .fff-button,
  .wp-block-button__link {
    min-height: 54px;
  }
}


/* v0.9.0 — true mobile app redesign: compact hero + list-style app cards */
@media (max-width: 760px) {
  /* The fixed bottom navigation is provided by the existing mobile/PWA layer, not by this theme.
     Give the page enough breathing room and make the theme content work around it. */
  body {
    padding-bottom: calc(150px + var(--fff-safe-bottom));
  }

  .fff-hero {
    padding: 18px 14px 20px;
    min-height: auto;
  }

  .fff-eyebrow {
    margin-bottom: 10px;
    padding: 5px 9px;
    font-size: .66rem;
  }

  .fff-eyebrow::before {
    width: 7px;
    height: 7px;
    box-shadow: 0 0 0 4px rgba(185, 101, 59, 0.11);
  }

  .fff-hero__title {
    max-width: 6.5em;
    font-size: clamp(34px, 10.3vw, 46px);
    line-height: .94;
    letter-spacing: -0.056em;
  }

  .fff-hero__kicker {
    margin-top: 12px;
    max-width: 19em;
    font-size: clamp(15.5px, 4.35vw, 18px);
    line-height: 1.22;
  }

  .fff-hero__text {
    margin-top: 8px;
    max-width: 25em;
    font-size: .9rem;
    line-height: 1.45;
  }

  .fff-hero__actions {
    margin-top: 14px;
  }

  .fff-button,
  .wp-block-button__link {
    min-height: 52px;
    padding: 12px 16px;
    border-radius: 28px;
    font-size: .96rem;
  }

  .fff-app-catalog {
    padding: 26px 14px calc(154px + var(--fff-safe-bottom));
    background:
      radial-gradient(circle at 12% 4%, rgba(216, 155, 58, 0.08), transparent 55vw),
      linear-gradient(180deg, rgba(248, 247, 255, 0.84), rgba(251, 248, 239, 0.50));
  }

  .fff-catalog-intro {
    margin-bottom: 18px;
    gap: 8px;
  }

  .fff-section__label {
    padding: 5px 9px;
    font-size: .60rem;
  }

  .fff-section__label::before {
    width: 7px;
    height: 7px;
    box-shadow: 0 0 0 4px rgba(216, 155, 58, 0.11);
  }

  .fff-catalog-intro h2,
  .fff-section__intro h2 {
    max-width: 11em;
    font-size: clamp(1.68rem, 7.4vw, 2.22rem);
    line-height: 1.02;
    letter-spacing: -0.047em;
  }

  .fff-catalog-intro p,
  .fff-section__intro p {
    margin-top: 8px;
    max-width: 28em;
    font-size: .88rem;
    line-height: 1.42;
  }

  .fff-rubrics {
    gap: 30px;
  }

  .fff-rubric {
    gap: 12px;
    scroll-margin-top: 30px;
  }

  .fff-rubric__head {
    padding-inline: 2px;
  }

  .fff-rubric__eyebrow {
    margin-bottom: 7px;
    padding: 5px 9px;
    font-size: .56rem;
  }

  .fff-rubric__eyebrow::before {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 0 4px rgba(216, 155, 58, 0.10);
  }

  .fff-rubric__head h3 {
    font-size: clamp(1.38rem, 6.35vw, 1.9rem);
    line-height: 1.05;
    letter-spacing: -0.044em;
  }

  .fff-rubric__head p {
    margin-top: 7px;
    font-size: .88rem;
    line-height: 1.4;
  }

  .fff-app-grid,
  .fff-app-grid--featured {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .fff-app-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 112px;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 252, 243, 0.95);
    box-shadow: 0 10px 28px rgba(29, 45, 62, 0.09);
  }

  .fff-app-card:hover {
    transform: none;
    box-shadow: 0 10px 28px rgba(29, 45, 62, 0.09);
  }

  .fff-app-card__media {
    width: 100%;
    height: 100%;
    min-height: 112px;
    aspect-ratio: auto;
    border-right: 1px solid rgba(29, 45, 62, 0.10);
    border-bottom: 0;
  }

  .fff-app-card__media::before {
    opacity: .20;
    background: linear-gradient(90deg, rgba(29, 45, 62, 0.00), rgba(29, 45, 62, 0.14));
  }

  .fff-app-card__image {
    object-fit: cover;
  }

  .fff-app-card__body {
    position: relative;
    min-width: 0;
    padding: 12px 42px 12px 13px;
    gap: 5px;
  }

  .fff-app-card__body::after {
    content: "›";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-52%);
    color: rgba(29, 45, 62, 0.42);
    font-size: 1.7rem;
    line-height: 1;
    font-weight: 700;
  }

  .fff-app-card__tag {
    margin: 0;
    padding: 4px 7px;
    font-size: .52rem;
    letter-spacing: .06em;
  }

  .fff-app-card__body h4,
  .fff-app-card__body h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: .99rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
  }

  .fff-app-card__body p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 0;
    margin: 0;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--fff-muted);
    font-size: .77rem;
    line-height: 1.3;
  }

  .fff-app-card__button {
    display: none;
  }
}

@media (max-width: 380px) {
  .fff-app-card {
    grid-template-columns: 98px minmax(0, 1fr);
    min-height: 104px;
    border-radius: 20px;
  }

  .fff-app-card__media {
    min-height: 104px;
  }

  .fff-app-card__body {
    padding: 10px 36px 10px 11px;
  }

  .fff-app-card__body h4,
  .fff-app-card__body h3 {
    font-size: .95rem;
  }

  .fff-app-card__body p {
    font-size: .74rem;
  }
}

/* v0.10.0 — hero navigation refinements and clickable interest cards */
.fff-preview-title {
  font-size: clamp(1.45rem, 2.3vw, 2.25rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 880;
}

.fff-preview-title::before {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}

.fff-preview-topbar {
  margin-bottom: clamp(18px, 2vw, 24px);
}

.fff-mini-card {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.fff-mini-card:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 101, 59, 0.28);
  background: rgba(255, 252, 243, 0.95);
  box-shadow: 0 24px 52px rgba(29, 45, 62, 0.13);
}

.fff-mini-card:focus-visible {
  outline: 3px solid rgba(216, 155, 58, 0.42);
  outline-offset: 4px;
}

.fff-mini-card:hover strong,
.fff-mini-card:focus-visible strong {
  color: var(--fff-rust-dark);
}

#najbolj-priljubljeno,
#vaja-dela-mojstra,
#raziskuj,
#vec-ves-lepsi-je-svet {
  scroll-margin-top: 130px;
}

body.admin-bar #najbolj-priljubljeno,
body.admin-bar #vaja-dela-mojstra,
body.admin-bar #raziskuj,
body.admin-bar #vec-ves-lepsi-je-svet {
  scroll-margin-top: 166px;
}

@media (max-width: 760px) {
  #najbolj-priljubljeno,
  #vaja-dela-mojstra,
  #raziskuj,
  #vec-ves-lepsi-je-svet,
  body.admin-bar #najbolj-priljubljeno,
  body.admin-bar #vaja-dela-mojstra,
  body.admin-bar #raziskuj,
  body.admin-bar #vec-ves-lepsi-je-svet {
    scroll-margin-top: 30px;
  }
}


/* v0.11.0 — theme-owned app shell replacement for Glasbeni Laboratorij - App Stil plugin */
#gl-bottom-nav,
.gl-donate-button,
.gl-offline-badge {
  display: none !important;
}

.fff-header-hidden {
  transform: translateY(-105%);
}

.fff-site-header {
  transition: transform 220ms ease, background 180ms ease, border-color 180ms ease;
}

.fff-theme-tabbar,
.fff-offline-badge {
  display: none;
}

.fff-support-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(185, 101, 59, 0.22);
  background: linear-gradient(135deg, var(--fff-rust) 0%, var(--fff-rust-dark) 100%);
  color: var(--fff-cream-light);
  box-shadow: 0 10px 24px rgba(185, 101, 59, 0.18);
  font-size: 0.84rem;
  font-weight: 820;
  line-height: 1;
  letter-spacing: 0;
  appearance: none;
  cursor: pointer;
  max-width: 100%;
  min-width: 0;
  font-family: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.fff-support-button--desktop {
  min-height: 0;
  padding: 9px 13px;
  font-size: inherit;
  font-weight: 750;
  line-height: normal;
}

.fff-support-button:hover,
.fff-support-button:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #c97545 0%, var(--fff-rust-dark) 100%);
  color: var(--fff-cream-light);
  box-shadow: 0 14px 32px rgba(185, 101, 59, 0.28);
}

.fff-mobile-support-slot {
  display: none;
}

.fff-support-modal {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(29, 45, 62, 0.34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.fff-support-modal-open {
  overflow: hidden;
}

.fff-support-modal[hidden] {
  display: none !important;
}

.fff-support-modal__panel {
  box-sizing: border-box;
  position: relative;
  width: min(500px, calc(100vw - 24px));
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(29, 45, 62, 0.12);
  border-radius: 26px;
  background: rgba(255, 252, 243, 0.98);
  color: var(--fff-text);
  box-shadow: 0 28px 90px rgba(29, 45, 62, 0.28);
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  animation: fffSupportModalIn 240ms ease forwards;
}

.fff-support-modal__eyebrow {
  margin: 0 0 10px;
  color: var(--fff-rust-dark);
  font-size: 0.76rem;
  font-weight: 860;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fff-support-modal h2 {
  margin: 0;
  max-width: 100%;
  color: var(--fff-ink);
  font-size: clamp(1.85rem, 1.36rem + 2vw, 2.55rem);
  line-height: 1.04;
  font-weight: 860;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.fff-support-modal p {
  margin: 16px 0 0;
  max-width: 100%;
  color: var(--fff-text);
  font-size: 1rem;
  line-height: 1.58;
  font-weight: 520;
  overflow-wrap: anywhere;
}

.fff-support-modal__actions {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  width: 100%;
}

.fff-support-modal__actions > *,
.fff-support-modal__close {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
}

.fff-support-button--modal {
  min-height: 46px;
  padding-inline: 22px;
  font-size: 0.95rem;
}

.fff-support-modal__later,
.fff-support-modal__close {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.fff-support-modal__later {
  min-height: 46px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(29, 45, 62, 0.06);
  color: var(--fff-ink-soft);
  font-size: 0.92rem;
  font-weight: 780;
  transition: background 170ms ease, color 170ms ease, transform 170ms ease;
}

.fff-support-modal__later:hover,
.fff-support-modal__later:focus-visible {
  transform: translateY(-1px);
  background: rgba(29, 45, 62, 0.10);
  color: var(--fff-ink);
}

.fff-support-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(29, 45, 62, 0.06);
  color: var(--fff-ink);
  font-size: 1.35rem;
  line-height: 1;
  transition: background 170ms ease, transform 170ms ease;
}

.fff-support-modal__close:hover,
.fff-support-modal__close:focus-visible {
  transform: rotate(4deg);
  background: rgba(185, 101, 59, 0.12);
}

@keyframes fffSupportModalIn {
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@media (max-width: 520px) {
  .fff-support-modal {
    align-items: end;
    padding: 12px max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left));
  }

  .fff-support-modal__panel {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 22px 16px 18px;
    border-radius: 24px;
  }

  .fff-support-modal h2 {
    max-width: 100%;
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .fff-support-modal p {
    font-size: 0.94rem;
  }

  .fff-support-modal__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .fff-support-button--modal,
  .fff-support-modal__later {
    width: 100%;
  }
}

.fff-offline-badge {
  position: fixed;
  left: 50%;
  bottom: calc(92px + var(--fff-safe-bottom));
  z-index: 90;
  transform: translateX(-50%);
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--fff-blue-dark);
  color: var(--fff-cream-light);
  box-shadow: 0 18px 44px rgba(29, 45, 62, 0.24);
  font-size: 0.82rem;
  font-weight: 800;
}

.fff-offline-badge:not([hidden]) {
  display: inline-flex;
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(82px + var(--fff-safe-bottom));
  }

  .wp-site-blocks {
    padding-bottom: calc(26px + var(--fff-safe-bottom));
  }

  .fff-site-footer,
  .fff-footer-nav {
    display: none !important;
  }

  .fff-theme-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    min-height: calc(76px + var(--fff-safe-bottom));
    padding: 8px max(12px, env(safe-area-inset-left, 0px)) calc(8px + var(--fff-safe-bottom)) max(12px, env(safe-area-inset-right, 0px));
    background: #151628;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -18px 44px rgba(21, 22, 40, 0.22);
  }

  .fff-theme-tabbar__item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.56);
    text-decoration: none;
    font-size: 0.64rem;
    font-weight: 840;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    transition: color 170ms ease, background 170ms ease, transform 170ms ease;
  }

  button.fff-theme-tabbar__item {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
  }

  .fff-theme-tabbar__item svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
  }

  .fff-theme-tabbar__item.is-active {
    color: #f05267;
  }

  .fff-theme-tabbar__item:active {
    transform: translateY(1px) scale(0.99);
  }

  .fff-theme-tabbar__item:focus-visible {
    outline: 3px solid rgba(240, 82, 103, 0.42);
    outline-offset: 2px;
  }

  .fff-offline-badge:not([hidden]) {
    display: inline-flex;
  }

  .fff-app-catalog,
  .fff-page-content {
    padding-bottom: calc(34px + var(--fff-safe-bottom));
  }
}

/* v0.13.0 — new dashboard hero concept */
.fff-hero--dashboard {
  min-height: clamp(390px, 48vh, 560px);
  padding-block: clamp(34px, 5vw, 70px);
}

.fff-hero--dashboard .fff-hero__inner {
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1.08fr);
  gap: clamp(28px, 4.6vw, 68px);
}

.fff-hero--dashboard .fff-hero__title {
  max-width: 7em;
  font-size: clamp(50px, 6.4vw, 86px);
}

.fff-hero--dashboard .fff-hero__kicker {
  margin-top: 18px;
  max-width: 560px;
}

.fff-hero--dashboard .fff-hero__text {
  max-width: 560px;
}

.fff-choice-panel {
  position: relative;
  padding: clamp(22px, 2.8vw, 34px);
  border: 1px solid rgba(29, 45, 62, 0.14);
  border-radius: 36px;
  background:
    radial-gradient(circle at 16% 8%, rgba(216, 155, 58, 0.16), transparent 34%),
    radial-gradient(circle at 92% 18%, rgba(36, 65, 95, 0.10), transparent 33%),
    rgba(255, 252, 243, 0.72);
  box-shadow: 0 28px 78px rgba(29, 45, 62, 0.13);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.fff-choice-panel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 27px;
  pointer-events: none;
}

.fff-choice-panel::after {
  content: "";
  position: absolute;
  right: -68px;
  bottom: -88px;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  border: 1px solid rgba(29, 45, 62, 0.10);
  box-shadow: inset 0 0 0 22px rgba(255, 252, 243, 0.28);
  opacity: .75;
  pointer-events: none;
}

.fff-choice-panel__head {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(18px, 2vw, 24px);
}

.fff-choice-panel__head h2 {
  margin: 0;
  max-width: 9.2em;
  color: var(--fff-ink);
  font-size: clamp(2.45rem, 4.7vw, 4.95rem);
  line-height: .92;
  letter-spacing: -0.066em;
  font-weight: 900;
}

.fff-choice-panel__head p {
  margin: 12px 0 0;
  max-width: 29em;
  color: var(--fff-text);
  font-size: .98rem;
  line-height: 1.45;
  font-weight: 650;
}

.fff-choice-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fff-choice-card {
  --fff-choice-color: var(--fff-rust);
  --fff-choice-glow: rgba(185, 101, 59, 0.13);
  --fff-choice-soft: rgba(185, 101, 59, 0.80);
  position: relative;
  display: block;
  min-height: 118px;
  padding: 15px 16px 16px;
  border: 1px solid color-mix(in srgb, var(--fff-choice-color) 34%, rgba(29, 45, 62, 0.14));
  border-radius: 25px;
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 252, 243, 0.30), transparent 36%),
    linear-gradient(135deg, color-mix(in srgb, var(--fff-choice-color) 88%, white), var(--fff-choice-color));
  color: var(--fff-cream-light);
  text-decoration: none;
  box-shadow: 0 18px 42px var(--fff-choice-glow);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.fff-choice-card:nth-child(2) {
  --fff-choice-color: #6f7f3d;
  --fff-choice-glow: rgba(111, 127, 61, 0.15);
}

.fff-choice-card:nth-child(3) {
  --fff-choice-color: var(--fff-gold);
  --fff-choice-glow: rgba(216, 155, 58, 0.16);
}

.fff-choice-card:nth-child(4) {
  --fff-choice-color: var(--fff-blue);
  --fff-choice-glow: rgba(36, 65, 95, 0.14);
}

.fff-choice-card:hover,
.fff-choice-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 252, 243, 0.56);
  box-shadow: 0 24px 56px var(--fff-choice-glow);
}

.fff-choice-card:focus-visible {
  outline: 3px solid rgba(216, 155, 58, 0.42);
  outline-offset: 4px;
}

.fff-choice-card::after {
  content: "→";
  position: absolute;
  right: 16px;
  bottom: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 252, 243, 0.22);
  color: var(--fff-cream-light);
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.fff-choice-card:hover::after,
.fff-choice-card:focus-visible::after {
  transform: translateX(2px);
  background: rgba(255, 252, 243, 0.34);
  color: var(--fff-cream-light);
}

.fff-choice-card__dot {
  display: block;
  width: 8px;
  height: 8px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 252, 243, 0.92);
  box-shadow: 0 0 0 6px rgba(255, 252, 243, 0.14);
}

.fff-choice-card strong {
  display: block;
  max-width: 8.4em;
  color: var(--fff-cream-light);
  font-size: clamp(1.22rem, 1.72vw, 1.68rem);
  line-height: .98;
  letter-spacing: -0.036em;
}

.fff-choice-card span:not(.fff-choice-card__dot) {
  display: block;
  margin-top: 7px;
  padding-right: 20px;
  color: rgba(255, 252, 243, 0.88);
  font-size: .84rem;
  line-height: 1.28;
  font-weight: 650;
}

@media (max-width: 980px) {
  .fff-hero--dashboard .fff-hero__inner {
    grid-template-columns: 1fr;
  }

  .fff-choice-panel {
    max-width: 760px;
  }
}

@media (max-width: 760px) {
  .fff-hero--dashboard {
    padding: 18px 14px 18px;
  }

  .fff-hero--dashboard .fff-hero__inner {
    display: block;
  }

  .fff-hero--dashboard .fff-hero__title {
    max-width: 6.25em;
    font-size: clamp(34px, 10.1vw, 45px);
    line-height: .94;
  }

  .fff-hero--dashboard .fff-hero__kicker {
    margin-top: 11px;
    max-width: 18em;
    font-size: clamp(15.5px, 4.35vw, 18px);
  }

  .fff-hero--dashboard .fff-hero__text {
    margin-top: 8px;
    max-width: 25em;
    font-size: .9rem;
    line-height: 1.43;
  }

  .fff-hero--dashboard .fff-hero__actions {
    margin-top: 14px;
  }

  .fff-choice-panel {
    display: none;
  }
}


/* v0.14.0 — mobile CTA width and desktop hero polish */
.fff-hero__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
  max-width: 620px;
}

.fff-hero__signals span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(29, 45, 62, 0.11);
  border-radius: 999px;
  background: rgba(255, 252, 243, 0.54);
  color: var(--fff-ink-soft);
  box-shadow: 0 10px 28px rgba(29, 45, 62, 0.06);
  font-size: 0.82rem;
  line-height: 1;
  font-weight: 780;
  letter-spacing: -0.01em;
}

.fff-hero__signals span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--fff-gold);
  box-shadow: 0 0 0 5px rgba(216, 155, 58, 0.12);
}

.fff-hero--dashboard .fff-choice-panel {
  transform: translateY(-2px);
}

.fff-hero--dashboard .fff-choice-panel__head h2 {
  text-wrap: balance;
}

@media (min-width: 981px) {
  .fff-hero--dashboard .fff-button--primary {
    box-shadow: 0 18px 48px rgba(29, 45, 62, 0.24), 0 0 0 1px rgba(255, 248, 232, 0.16) inset;
  }

  .fff-hero--dashboard .fff-choice-card {
    min-height: 156px;
  }
}

@media (max-width: 760px) {
  .fff-hero--dashboard {
    min-height: auto;
    padding: 18px 14px 20px;
  }

  .fff-hero--dashboard .fff-hero__actions {
    display: flex;
    align-items: flex-start;
    margin-top: 16px;
  }

  .fff-hero--dashboard .fff-hero__actions .fff-button--primary {
    width: min(315px, calc(100vw - 56px));
    min-width: 0;
    max-width: 315px;
    padding: 16px 22px;
    justify-content: center;
    border-radius: 999px;
  }

  .fff-hero__signals {
    display: none;
  }
}

@media (max-width: 380px) {
  .fff-hero--dashboard .fff-hero__actions .fff-button--primary {
    width: min(286px, calc(100vw - 44px));
    padding-inline: 18px;
  }
}


/* v0.15.0 — hard mobile CTA fix.
   Earlier mobile rules made all .fff-button elements 100% wide.
   This deliberately targets only the hero CTA and wins even when older mobile rules linger. */
.fff-hero--dashboard .fff-hero__actions .fff-hero-cta {
  width: auto !important;
  max-width: 320px !important;
  min-width: 0 !important;
  align-self: flex-start !important;
  flex: 0 0 auto !important;
}

@media (max-width: 760px) {
  .fff-hero--dashboard .fff-hero__actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: auto !important;
  }

  .fff-hero--dashboard .fff-hero__actions .fff-hero-cta {
    display: inline-flex !important;
    width: auto !important;
    max-width: calc(100vw - 72px) !important;
    min-width: 0 !important;
    padding: 15px 24px !important;
    min-height: 54px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 380px) {
  .fff-hero--dashboard .fff-hero__actions .fff-hero-cta {
    max-width: calc(100vw - 56px) !important;
    padding-inline: 20px !important;
  }
}


/* v0.16.0 — mobile hero as app dashboard + cleaner catalog headings */
.fff-mobile-dashboard {
  display: none;
}

.fff-app-catalog > .fff-section__inner {
  padding-top: clamp(38px, 6vw, 80px);
}

.fff-rubric:first-child {
  margin-top: 0;
}

@media (max-width: 760px) {
  .fff-hero--dashboard {
    min-height: auto;
    padding: 18px 16px 24px;
  }

  .fff-hero--dashboard .fff-hero__inner {
    display: block;
  }

  .fff-hero--dashboard .fff-hero__content,
  .fff-hero--dashboard .fff-choice-panel,
  .fff-hero--dashboard .fff-hero__signals {
    display: none !important;
  }

  .fff-mobile-dashboard {
    display: block;
    position: relative;
    border: 1px solid rgba(29, 45, 62, 0.12);
    border-radius: 30px;
    padding: 18px 16px 16px;
    background:
      radial-gradient(circle at 12% 6%, rgba(216, 155, 58, 0.15), transparent 32%),
      radial-gradient(circle at 92% 18%, rgba(36, 65, 95, 0.09), transparent 34%),
      rgba(255, 252, 243, 0.76);
    box-shadow: 0 22px 54px rgba(29, 45, 62, 0.10);
    overflow: hidden;
  }

  .fff-mobile-dashboard::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -58px;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    border: 1px solid rgba(29, 45, 62, 0.09);
    pointer-events: none;
  }

  .fff-mobile-dashboard__brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    margin-bottom: 14px;
    padding: 8px 12px;
    border: 1px solid rgba(29, 45, 62, 0.11);
    border-radius: 999px;
    background: rgba(255, 252, 243, 0.72);
    color: var(--fff-rust-dark);
    font-size: 0.82rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  .fff-mobile-dashboard__brand::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--fff-rust);
    box-shadow: 0 0 0 6px rgba(185, 101, 59, 0.13);
  }

  .fff-mobile-dashboard h1 {
    margin: 0;
    color: var(--fff-ink);
    font-size: clamp(38px, 11vw, 50px);
    line-height: 0.95;
    letter-spacing: -0.065em;
    font-weight: 900;
    max-width: 7.2em;
    text-wrap: balance;
  }

  .fff-mobile-dashboard p {
    margin: 12px 0 16px;
    max-width: 24em;
    color: var(--fff-text);
    font-size: 0.98rem;
    line-height: 1.38;
    font-weight: 650;
  }

  .fff-mobile-dashboard__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .fff-mobile-dashboard__card {
    --fff-mobile-card-color: var(--fff-rust);
    --fff-mobile-card-glow: rgba(185, 101, 59, 0.14);
    position: relative;
    display: flex;
    min-height: 92px;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 12px 11px;
    border: 1px solid rgba(255, 252, 243, 0.32);
    border-radius: 22px;
    background:
      radial-gradient(circle at 12% 5%, rgba(255, 252, 243, 0.28), transparent 38%),
      linear-gradient(135deg, color-mix(in srgb, var(--fff-mobile-card-color) 88%, white), var(--fff-mobile-card-color));
    color: var(--fff-cream-light);
    text-decoration: none;
    box-shadow: 0 14px 34px var(--fff-mobile-card-glow);
    overflow: hidden;
  }

  .fff-mobile-dashboard__card::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 252, 243, 0.92);
    box-shadow: 0 0 0 6px rgba(255, 252, 243, 0.14);
  }

  .fff-mobile-dashboard__card:nth-child(2) {
    --fff-mobile-card-color: #6f7f3d;
    --fff-mobile-card-glow: rgba(111, 127, 61, 0.15);
  }

  .fff-mobile-dashboard__card:nth-child(3) {
    --fff-mobile-card-color: var(--fff-gold);
    --fff-mobile-card-glow: rgba(216, 155, 58, 0.16);
  }

  .fff-mobile-dashboard__card:nth-child(4) {
    --fff-mobile-card-color: var(--fff-blue);
    --fff-mobile-card-glow: rgba(36, 65, 95, 0.14);
  }

  .fff-mobile-dashboard__card span {
    display: block;
    color: var(--fff-cream-light);
    font-size: 1.08rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.035em;
  }

  .fff-mobile-dashboard__card small {
    display: block;
    color: rgba(255, 252, 243, 0.86);
    font-size: 0.75rem;
    line-height: 1.16;
    font-weight: 750;
  }

  .fff-mobile-dashboard__all {
    display: inline-flex;
    position: relative;
    z-index: 1;
    width: fit-content;
    margin-top: 13px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(36, 65, 95, 0.08);
    color: var(--fff-blue-dark);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 900;
  }

  .fff-app-catalog > .fff-section__inner {
    padding-top: 28px;
  }

  .fff-rubric__head {
    margin-bottom: 13px;
  }
}

@media (max-width: 380px) {
  .fff-mobile-dashboard__grid {
    gap: 8px;
  }

  .fff-mobile-dashboard__card {
    min-height: 88px;
    padding: 12px;
  }

  .fff-mobile-dashboard__card span {
    font-size: 1.02rem;
  }
}


/* v0.17.0 — app/plugin page template and automatic app page canvas */
.fff-app-page-content,
body.fff-is-app-page .fff-page-content {
  width: min(100%, 1360px);
  max-width: 1360px;
  margin-inline: auto;
  padding: clamp(18px, 3.8vw, 48px) clamp(14px, 3vw, 32px) clamp(58px, 7vw, 96px);
}

.fff-app-page-content > .wp-block-post-content,
body.fff-is-app-page .fff-page-content > .wp-block-post-content {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

.fff-app-page-content :where(.wp-block-group, .wp-block-columns, .wp-block-cover),
body.fff-is-app-page .fff-page-content :where(.wp-block-group, .wp-block-columns, .wp-block-cover) {
  max-width: 100%;
}

.fff-app-page-content :where(.wp-block-post-title),
body.fff-is-app-page .fff-page-content :where(.wp-block-post-title),
.fff-app-page-title,
body.fff-is-app-page .fff-page-title {
  max-width: min(1180px, calc(100vw - 32px));
  margin: clamp(18px, 4vw, 34px) auto clamp(12px, 2.8vw, 22px);
  color: var(--fff-color-ink, #1d2d3e);
  font-size: clamp(1.55rem, 3.8vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 780;
}

.fff-page-title {
  max-width: min(1060px, calc(100vw - 32px));
  margin: clamp(24px, 5vw, 48px) auto clamp(16px, 3vw, 28px);
}

.fff-app-page-content :where(.wp-block-post-content > :first-child),
body.fff-is-app-page .fff-page-content :where(.wp-block-post-content > :first-child) {
  margin-top: 0;
}

body.fff-is-app-page .fff-site-footer,
body.page-template-app-page .fff-site-footer {
  margin-top: 10px;
}

@media (min-width: 761px) {
  .fff-app-page-content,
  body.fff-is-app-page .fff-page-content {
    min-height: calc(100vh - 210px);
  }

  .fff-app-page-content > .wp-block-post-content,
  body.fff-is-app-page .fff-page-content > .wp-block-post-content {
    border: 1px solid rgba(29, 45, 62, 0.10);
    border-radius: 30px;
    background: rgba(255, 252, 243, 0.52);
    box-shadow: 0 18px 54px rgba(29, 45, 62, 0.07);
    padding: clamp(18px, 2.4vw, 34px);
  }

  .fff-app-page-content > .wp-block-post-content:empty,
  body.fff-is-app-page .fff-page-content > .wp-block-post-content:empty {
    display: none;
  }
}

@media (max-width: 760px) {
  .fff-app-page-content,
  body.fff-is-app-page .fff-page-content {
    width: 100%;
    max-width: 100%;
    padding: 12px 12px calc(126px + var(--fff-safe-bottom));
  }

  .fff-app-page-content > .wp-block-post-content,
  body.fff-is-app-page .fff-page-content > .wp-block-post-content {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }

  body.fff-is-app-page .fff-site-footer,
  body.page-template-app-page .fff-site-footer {
    display: none;
  }

  body.fff-is-app-page .fff-theme-tabbar,
  body.page-template-app-page .fff-theme-tabbar {
    box-shadow: 0 -16px 42px rgba(8, 12, 28, 0.28);
  }
}


/* v0.18.0 — app page polish: safer bottom space and back-to-lab pill */
.fff-app-page-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto 14px;
}

.fff-app-back-pill,
.fff-app-share-facebook {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin: 0;
  padding: 9px 13px;
  border: 1px solid rgba(29, 45, 62, 0.12);
  border-radius: 999px;
  background: rgba(255, 252, 243, 0.76);
  color: var(--fff-ink-soft);
  box-shadow: 0 10px 26px rgba(29, 45, 62, 0.07);
  font-size: 0.86rem;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.012em;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.fff-app-share-facebook {
  border-color: rgba(24, 119, 242, 0.16);
  background: rgba(255, 252, 243, 0.62);
  color: rgba(29, 45, 62, 0.72);
  font-size: 0.8rem;
  font-weight: 830;
  box-shadow: 0 8px 22px rgba(29, 45, 62, 0.05);
}

.fff-app-share-facebook span[aria-hidden="true"] {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #1877f2;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
}

.fff-app-back-pill:hover,
.fff-app-back-pill:focus-visible,
.fff-app-share-facebook:hover,
.fff-app-share-facebook:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 252, 243, 0.96);
  color: var(--fff-rust-dark);
  box-shadow: 0 14px 34px rgba(29, 45, 62, 0.11);
}

.fff-app-share-facebook:hover,
.fff-app-share-facebook:focus-visible {
  color: #145dbf;
}

.fff-app-back-pill:focus-visible,
.fff-app-share-facebook:focus-visible {
  outline: 3px solid rgba(216, 155, 58, 0.42);
  outline-offset: 3px;
}

body.fff-is-app-page .fff-page-content,
.fff-app-page-content {
  padding-top: clamp(16px, 3vw, 36px);
}

@media (min-width: 761px) {
  .fff-app-page-actions {
    margin-bottom: 16px;
  }
}

@media (max-width: 760px) {
  body.fff-is-app-page,
  body.page-template-app-page {
    padding-bottom: calc(138px + var(--fff-safe-bottom));
  }

  .fff-app-page-content,
  body.fff-is-app-page .fff-page-content {
    padding: 12px 12px calc(184px + var(--fff-safe-bottom));
  }

  .fff-app-page-actions {
    align-items: stretch;
    margin: 0 0 10px;
  }

  .fff-app-back-pill,
  .fff-app-share-facebook {
    margin: 0;
    padding: 8px 11px;
    font-size: 0.78rem;
    box-shadow: 0 8px 22px rgba(29, 45, 62, 0.07);
  }

  .fff-app-share-facebook {
    margin-left: auto;
  }

  .fff-app-page-content > .wp-block-post-content,
  body.fff-is-app-page .fff-page-content > .wp-block-post-content {
    padding-bottom: calc(32px + var(--fff-safe-bottom));
  }
}

/* v0.19.0 — O nas layout, desktop hero polish and rubric color accents */
@media (min-width: 981px) {
  .fff-choice-panel {
    padding: clamp(26px, 3.2vw, 40px);
    box-shadow: 0 32px 88px rgba(29, 45, 62, 0.15);
  }

  .fff-choice-grid {
    gap: 14px;
  }

  .fff-choice-card {
    min-height: 128px;
    padding: 16px 17px 17px;
  }

  .fff-choice-card__dot {
    width: 9px;
    height: 9px;
    margin-bottom: 14px;
  }

  .fff-choice-card strong {
    max-width: 8.6em;
    font-size: clamp(1.28rem, 1.82vw, 1.72rem);
    line-height: .98;
    letter-spacing: -0.036em;
    text-wrap: balance;
  }

  .fff-choice-card span:not(.fff-choice-card__dot) {
    margin-top: 7px;
    max-width: 18em;
    font-size: .84rem;
  }
}

.fff-rubric {
  --fff-rubric-color: var(--fff-gold);
  --fff-rubric-glow: rgba(216, 155, 58, 0.12);
  --fff-rubric-soft: rgba(216, 155, 58, 0.07);
  position: relative;
  padding: clamp(16px, 2.2vw, 26px);
  border: 1px solid rgba(29, 45, 62, 0.08);
  border-radius: 34px;
  background:
    radial-gradient(circle at 8% 0%, var(--fff-rubric-glow), transparent 34%),
    linear-gradient(135deg, var(--fff-rubric-soft), rgba(255, 252, 243, 0.28));
}

.fff-rubric::before {
  content: "";
  position: absolute;
  left: clamp(18px, 2.2vw, 28px);
  top: 0;
  width: min(260px, 42vw);
  height: 4px;
  border-radius: 999px;
  background: var(--fff-rubric-color);
  opacity: .62;
}

.fff-rubric--popular {
  --fff-rubric-color: #f05267;
  --fff-rubric-glow: rgba(240, 82, 103, 0.10);
  --fff-rubric-soft: rgba(240, 82, 103, 0.045);
}

.fff-rubric--practice {
  --fff-rubric-color: var(--fff-rust);
  --fff-rubric-glow: rgba(185, 101, 59, 0.12);
  --fff-rubric-soft: rgba(185, 101, 59, 0.055);
}

.fff-rubric--harmony {
  --fff-rubric-color: #6f7f3d;
  --fff-rubric-glow: rgba(111, 127, 61, 0.13);
  --fff-rubric-soft: rgba(111, 127, 61, 0.055);
}

.fff-rubric--explore {
  --fff-rubric-color: var(--fff-gold);
  --fff-rubric-glow: rgba(216, 155, 58, 0.16);
  --fff-rubric-soft: rgba(216, 155, 58, 0.065);
}

.fff-rubric--knowledge {
  --fff-rubric-color: var(--fff-blue);
  --fff-rubric-glow: rgba(36, 65, 95, 0.12);
  --fff-rubric-soft: rgba(36, 65, 95, 0.045);
}

.fff-rubric__head h3::before {
  content: "";
  display: inline-block;
  width: .34em;
  height: .34em;
  margin-right: .22em;
  vertical-align: .08em;
  border-radius: 999px;
  background: var(--fff-rubric-color);
  box-shadow: 0 0 0 .22em var(--fff-rubric-glow);
}

.fff-rubric .fff-app-card__tag {
  background: color-mix(in srgb, var(--fff-rubric-color) 13%, white);
  color: color-mix(in srgb, var(--fff-rubric-color) 58%, var(--fff-blue-dark));
}

.fff-about-page {
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(34px, 5vw, 72px) clamp(18px, 3vw, 32px) clamp(70px, 8vw, 112px);
}

.fff-about-page :where(h1, h2, p, figure) {
  margin-top: 0;
}

.fff-about-panel {
  position: relative;
  border: 1px solid rgba(29, 45, 62, 0.12);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 0%, rgba(216, 155, 58, 0.12), transparent 32%),
    rgba(255, 252, 243, 0.78);
  box-shadow: 0 24px 72px rgba(29, 45, 62, 0.10);
  overflow: hidden;
}

.fff-about-hero,
.fff-about-story {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(320px, .82fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: stretch;
  padding: clamp(20px, 3.3vw, 40px);
}

.fff-about-story--reverse {
  grid-template-columns: minmax(320px, .82fr) minmax(0, .94fr);
}

.fff-about-story--reverse .fff-about-copy {
  order: 2;
}

.fff-about-story--reverse .fff-about-media {
  order: 1;
}

.fff-about-copy {
  align-self: center;
  max-width: 760px;
}

.fff-about-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(29, 45, 62, 0.12);
  border-radius: 999px;
  background: rgba(255, 252, 243, 0.76);
  color: var(--fff-rust-dark);
  font-size: .74rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.fff-about-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--fff-gold);
  box-shadow: 0 0 0 6px rgba(216, 155, 58, .12);
}

.fff-about-copy h1,
.fff-about-copy h2,
.fff-about-cta h2 {
  margin-bottom: 18px;
  color: var(--fff-ink);
  font-size: clamp(2.45rem, 5vw, 5.3rem);
  line-height: .92;
  letter-spacing: -0.065em;
  font-weight: 900;
  text-wrap: balance;
}

.fff-about-copy h2,
.fff-about-cta h2 {
  font-size: clamp(2.1rem, 4.2vw, 4.2rem);
}

.fff-about-copy p,
.fff-about-cta p {
  color: var(--fff-text);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.68;
}

.fff-about-copy p:not(:last-child) {
  margin-bottom: 14px;
}

.fff-about-media {
  position: relative;
  min-height: 320px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(29, 45, 62, 0.12);
  box-shadow: 0 20px 54px rgba(29, 45, 62, 0.12);
  background: var(--fff-cream);
}

.fff-about-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
}

.fff-about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(29, 45, 62, 0.00) 42%, rgba(29, 45, 62, 0.16));
  pointer-events: none;
}

.fff-about-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
  margin-block: clamp(18px, 2.8vw, 34px);
}

.fff-about-feature-card {
  min-height: 176px;
  padding: 20px;
  border: 1px solid rgba(29, 45, 62, 0.12);
  border-radius: 28px;
  background: rgba(255, 252, 243, 0.86);
  box-shadow: 0 18px 48px rgba(29, 45, 62, 0.08);
}

.fff-about-feature-card::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  margin-bottom: 42px;
  border-radius: 999px;
  background: var(--fff-rust);
  box-shadow: 0 0 0 6px rgba(185, 101, 59, .10);
}

.fff-about-feature-card:nth-child(2)::before { background: var(--fff-gold); box-shadow: 0 0 0 6px rgba(216, 155, 58, .12); }
.fff-about-feature-card:nth-child(3)::before { background: var(--fff-blue); box-shadow: 0 0 0 6px rgba(36, 65, 95, .10); }
.fff-about-feature-card:nth-child(4)::before { background: #f05267; box-shadow: 0 0 0 6px rgba(240, 82, 103, .10); }

.fff-about-feature-card h2 {
  margin-bottom: 8px;
  color: var(--fff-ink);
  font-size: clamp(1.32rem, 2vw, 1.74rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.fff-about-feature-card p {
  margin: 0;
  color: var(--fff-muted);
  font-size: .96rem;
  line-height: 1.42;
  font-weight: 650;
}

.fff-about-button,
.fff-about-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 10px;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 860;
  letter-spacing: -0.015em;
}

.fff-about-button {
  background: linear-gradient(135deg, var(--fff-blue), var(--fff-blue-dark));
  color: var(--fff-cream-light);
  box-shadow: 0 14px 36px rgba(29, 45, 62, .18);
}

.fff-about-link {
  border: 1px solid rgba(29, 45, 62, 0.13);
  background: rgba(255, 252, 243, 0.72);
  color: var(--fff-ink);
}

.fff-about-cta {
  margin-top: clamp(18px, 2.8vw, 34px);
  padding: clamp(24px, 4vw, 48px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 82, 103, 0.10), transparent 42%),
    rgba(255, 252, 243, 0.82);
}

.fff-about-cta p {
  max-width: 760px;
  margin-inline: auto;
}

.fff-about-cta .fff-about-button {
  margin-top: 16px;
}

@media (max-width: 980px) {
  .fff-about-hero,
  .fff-about-story,
  .fff-about-story--reverse {
    grid-template-columns: 1fr;
  }

  .fff-about-story--reverse .fff-about-copy,
  .fff-about-story--reverse .fff-about-media {
    order: initial;
  }

  .fff-about-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .fff-rubric {
    padding: 15px 12px 14px;
    border-radius: 26px;
  }

  .fff-rubric::before {
    left: 18px;
    width: 110px;
    height: 3px;
  }

  .fff-rubric__head h3::before {
    width: .28em;
    height: .28em;
    margin-right: .20em;
  }

  .fff-about-page {
    padding: 18px 14px calc(112px + var(--fff-safe-bottom));
  }

  .fff-about-panel {
    border-radius: 28px;
  }

  .fff-about-hero,
  .fff-about-story {
    gap: 18px;
    padding: 16px;
  }

  .fff-about-eyebrow {
    margin-bottom: 12px;
    padding: 7px 10px;
    font-size: .64rem;
  }

  .fff-about-copy h1,
  .fff-about-copy h2,
  .fff-about-cta h2 {
    margin-bottom: 13px;
    font-size: clamp(2.05rem, 9.6vw, 3.15rem);
    line-height: .95;
  }

  .fff-about-copy p,
  .fff-about-cta p {
    font-size: .94rem;
    line-height: 1.54;
  }

  .fff-about-media {
    min-height: 230px;
    border-radius: 24px;
  }

  .fff-about-feature-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-block: 18px;
  }

  .fff-about-feature-card {
    min-height: auto;
    padding: 16px;
    border-radius: 22px;
  }

  .fff-about-feature-card::before {
    margin-bottom: 20px;
  }

  .fff-about-feature-card h2 {
    font-size: 1.35rem;
  }

  .fff-about-feature-card p {
    font-size: .91rem;
  }

  .fff-about-button,
  .fff-about-link {
    min-height: 44px;
    padding: 11px 15px;
    font-size: .92rem;
  }

  .fff-about-cta {
    padding: 24px 16px;
  }
}

/* v0.20.0 — simplified desktop menu, social footer and global app-skin foundations */
.fff-main-nav a[href="/#najbolj-priljubljeno"] {
  background: linear-gradient(135deg, var(--fff-blue) 0%, var(--fff-blue-dark) 100%);
  border-color: transparent;
  color: var(--fff-cream-light);
}

.fff-main-nav a[href="/#najbolj-priljubljeno"]:hover {
  color: var(--fff-cream-light);
  box-shadow: 0 12px 28px rgba(29, 45, 62, 0.15);
}

@media (max-width: 1080px) {
  .fff-main-nav a:nth-child(3),
  .fff-main-nav a:nth-child(4) {
    display: inline-flex;
  }
}

.fff-footer-inner {
  align-items: flex-start;
}

.fff-footer-main {
  display: grid;
  gap: 8px;
}

.fff-footer-main p {
  margin: 0;
}

.fff-footer-home-link {
  color: var(--fff-ink-soft);
  font-weight: 850;
  text-decoration: none;
}

.fff-footer-home-link:hover {
  color: var(--fff-rust-dark);
}

.fff-footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.fff-footer-social a {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(29, 45, 62, 0.12);
  border-radius: 999px;
  background: rgba(255, 252, 243, 0.74);
  color: var(--fff-ink);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(29, 45, 62, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.fff-footer-social a:hover,
.fff-footer-social a:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 252, 243, 0.96);
  color: var(--fff-rust-dark);
  box-shadow: 0 13px 30px rgba(29, 45, 62, 0.12);
}

.fff-footer-social span {
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 900;
}

@media (min-width: 1024px) {
  .fff-site-footer {
    padding-right: clamp(18px, 18vw, 310px);
  }
}

@media (max-width: 900px) {
  .fff-footer-inner {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .fff-footer-nav,
  .fff-footer-social {
    justify-content: center;
  }
}

/* Global app skin: makes embedded exercise plugins feel like one FFF Lab application layer. */
body.fff-is-app-page .wp-block-post-content,
body.page-template-app-page .wp-block-post-content {
  --fff-app-control-bg: rgba(255, 252, 243, 0.84);
  --fff-app-control-border: rgba(29, 45, 62, 0.14);
  --fff-app-focus: rgba(216, 155, 58, 0.38);
}

body.fff-is-app-page .wp-block-post-content :where(button, .button, .wp-element-button, .wp-block-button__link, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]),
body.page-template-app-page .wp-block-post-content :where(button, .button, .wp-element-button, .wp-block-button__link, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]) {
  border-radius: 999px;
  border: 1px solid rgba(29, 45, 62, 0.14);
  font-weight: 850;
  letter-spacing: -0.012em;
  min-height: 44px;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease, border-color 170ms ease, color 170ms ease;
}

body.fff-is-app-page .wp-block-post-content :where(button:hover, .button:hover, .wp-element-button:hover, .wp-block-button__link:hover, input[type="submit"]:hover, input[type="button"]:hover, [role="button"]:hover),
body.page-template-app-page .wp-block-post-content :where(button:hover, .button:hover, .wp-element-button:hover, .wp-block-button__link:hover, input[type="submit"]:hover, input[type="button"]:hover, [role="button"]:hover) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(29, 45, 62, 0.10);
}

body.fff-is-app-page .wp-block-post-content :where(button:focus-visible, .button:focus-visible, .wp-element-button:focus-visible, .wp-block-button__link:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [role="button"]:focus-visible, [role="tab"]:focus-visible),
body.page-template-app-page .wp-block-post-content :where(button:focus-visible, .button:focus-visible, .wp-element-button:focus-visible, .wp-block-button__link:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [role="button"]:focus-visible, [role="tab"]:focus-visible) {
  outline: 3px solid var(--fff-app-focus);
  outline-offset: 3px;
}

body.fff-is-app-page .wp-block-post-content :where(input:not([type]), input[type="text"], input[type="email"], input[type="number"], input[type="search"], input[type="date"], input[type="time"], input[type="password"], select, textarea),
body.page-template-app-page .wp-block-post-content :where(input:not([type]), input[type="text"], input[type="email"], input[type="number"], input[type="search"], input[type="date"], input[type="time"], input[type="password"], select, textarea) {
  border: 1px solid var(--fff-app-control-border);
  border-radius: 18px;
  background: var(--fff-app-control-bg);
  color: var(--fff-ink);
  box-shadow: 0 8px 22px rgba(29, 45, 62, 0.05);
}

body.fff-is-app-page .wp-block-post-content :where(.nav-tab, [role="tab"], .tab, .tabs button, .tab-button, .rt-tab, .gl-tab, .quiz-tab),
body.page-template-app-page .wp-block-post-content :where(.nav-tab, [role="tab"], .tab, .tabs button, .tab-button, .rt-tab, .gl-tab, .quiz-tab) {
  border-radius: 999px;
  border: 1px solid rgba(29, 45, 62, 0.12);
  background: rgba(255, 252, 243, 0.70);
  color: var(--fff-ink-soft);
  box-shadow: 0 8px 22px rgba(29, 45, 62, 0.06);
}

body.fff-is-app-page .wp-block-post-content :where(.nav-tab-active, [role="tab"][aria-selected="true"], .tab.active, .tabs button.active, .tab-button.active, .rt-tab.active, .gl-tab.active, .quiz-tab.active),
body.page-template-app-page .wp-block-post-content :where(.nav-tab-active, [role="tab"][aria-selected="true"], .tab.active, .tabs button.active, .tab-button.active, .rt-tab.active, .gl-tab.active, .quiz-tab.active) {
  background: linear-gradient(135deg, var(--fff-blue) 0%, var(--fff-blue-dark) 100%);
  border-color: transparent;
  color: var(--fff-cream-light);
}

body.fff-is-app-page .wp-block-post-content :where(.card, .panel, .box, .app-card, .quiz-card, .exercise-card, .result-card, .settings-panel, .stats-card),
body.page-template-app-page .wp-block-post-content :where(.card, .panel, .box, .app-card, .quiz-card, .exercise-card, .result-card, .settings-panel, .stats-card) {
  border-radius: 26px;
  border-color: rgba(29, 45, 62, 0.12);
  background-color: rgba(255, 252, 243, 0.78);
  box-shadow: 0 16px 42px rgba(29, 45, 62, 0.08);
}

body.fff-is-app-page .wp-block-post-content :where(.progress, progress, .meter, .xp-bar, .score-bar),
body.page-template-app-page .wp-block-post-content :where(.progress, progress, .meter, .xp-bar, .score-bar) {
  border-radius: 999px;
  overflow: hidden;
}

@media (max-width: 760px) {
  body.fff-is-app-page .wp-block-post-content :where(button, .button, .wp-element-button, input[type="submit"], input[type="button"], [role="button"]),
  body.page-template-app-page .wp-block-post-content :where(button, .button, .wp-element-button, input[type="submit"], input[type="button"], [role="button"]) {
    min-height: 48px;
  }
}


/* v0.23.0 — compact Polylang language switcher in header */
.fff-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  min-width: max-content;
}

.fff-language-switcher {
  position: relative;
  flex: 0 0 auto;
}

.fff-language-switcher summary {
  list-style: none;
}

.fff-language-switcher summary::-webkit-details-marker {
  display: none;
}

.fff-language-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(29, 45, 62, 0.12);
  border-radius: 999px;
  background: rgba(255, 252, 243, 0.72);
  color: var(--fff-ink);
  box-shadow: 0 6px 18px rgba(29, 45, 62, 0.06);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 880;
  line-height: 1;
  letter-spacing: 0.035em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.fff-language-summary:hover,
.fff-language-switcher[open] .fff-language-summary,
.fff-language-summary:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 252, 243, 0.96);
  color: var(--fff-rust-dark);
  box-shadow: 0 10px 24px rgba(29, 45, 62, 0.10);
}

.fff-language-caret {
  font-size: 0.74rem;
  line-height: 1;
  opacity: 0.76;
  transition: transform 170ms ease;
}

.fff-language-switcher[open] .fff-language-caret {
  transform: rotate(180deg);
}

.fff-language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  z-index: 120;
  display: grid;
  gap: 4px;
  width: min(236px, calc(100vw - 28px));
  max-height: min(420px, calc(100vh - 110px));
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(29, 45, 62, 0.13);
  border-radius: 20px;
  background: rgba(255, 252, 243, 0.97);
  box-shadow: 0 24px 70px rgba(29, 45, 62, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.fff-language-option {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 14px;
  color: var(--fff-ink);
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.fff-language-option:hover,
.fff-language-option:focus-visible {
  background: rgba(36, 65, 95, 0.08);
  color: var(--fff-rust-dark);
}

.fff-language-option.is-current {
  background: rgba(185, 101, 59, 0.12);
  color: var(--fff-rust-dark);
}

.fff-language-option__slug {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(29, 45, 62, 0.08);
  color: var(--fff-ink);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.fff-language-option.is-current .fff-language-option__slug {
  background: var(--fff-rust);
  color: var(--fff-cream-light);
}

.fff-language-option__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 760;
}

@media (max-width: 760px) {
  .fff-header-actions {
    margin-left: auto;
    min-width: 0;
  }

  .fff-profile-pill {
    display: none !important;
  }

  .fff-support-button--desktop {
    display: none !important;
  }

  .fff-mobile-support-slot {
    display: block;
    padding: 8px 12px 0;
    text-align: center;
    background: rgba(251, 248, 239, 0.92);
  }

  .fff-support-button--mobile {
    width: min(280px, calc(100vw - 48px));
    min-height: 42px;
    padding-inline: 18px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(185, 101, 59, 0.20);
    font-size: 0.9rem;
  }

  .fff-language-summary {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 0.8rem;
  }

  .fff-language-menu {
    right: 0;
    top: calc(100% + 8px);
    width: min(232px, calc(100vw - 24px));
    max-height: min(380px, calc(100vh - 96px));
  }
}


/* v0.24.0 — restore compact mobile header so the language switcher is visible.
   Earlier prototype versions hid the whole header on phones because the old plugin
   owned the bottom app shell. Now the theme owns language switching, so mobile
   needs a small top app bar again. */
@media (max-width: 760px) {
  .fff-site-header {
    display: block !important;
    position: sticky;
    top: 0;
    z-index: 96;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(29, 45, 62, 0.10);
    background: rgba(251, 248, 239, 0.92);
    box-shadow: 0 10px 30px rgba(29, 45, 62, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  html.fff-standalone .fff-site-header {
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
  }

  body.admin-bar .fff-site-header {
    top: 46px;
  }

  .fff-header-inner {
    min-height: 42px;
    padding: 0;
    gap: 10px;
  }

  .fff-brand-link {
    display: inline-flex !important;
    min-width: 0;
    max-width: min(58vw, 220px);
  }

  .fff-brand-title {
    font-size: 1.02rem;
    line-height: 1;
  }

  .fff-brand-tagline {
    display: none !important;
  }

  .fff-main-nav {
    display: none !important;
  }

  .fff-header-actions {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    min-width: 0;
  }

  .fff-profile-pill {
    display: none !important;
  }

  .fff-support-button--desktop {
    display: none !important;
  }

  .fff-language-switcher {
    display: block !important;
  }

  .fff-language-summary {
    min-height: 38px;
    padding: 8px 11px;
    background: rgba(255, 252, 243, 0.86);
    font-size: 0.78rem;
  }

  .fff-language-menu {
    right: 0;
    top: calc(100% + 8px);
    width: min(232px, calc(100vw - 24px));
    max-height: min(380px, calc(100vh - 96px));
  }

  .fff-hero--dashboard {
    padding-top: 12px;
  }

  .fff-mobile-dashboard__brand {
    display: none;
  }

  .fff-mobile-dashboard h1 {
    margin-top: 0;
  }
}

@media (max-width: 380px) {
  .fff-brand-title {
    font-size: 0.96rem;
  }

  .fff-language-summary {
    min-height: 36px;
    padding-inline: 10px;
  }
}


/* v0.30.0: FFF logo */
.fff-brand-link {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.fff-brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  box-shadow: 0 8px 20px rgba(29, 45, 62, 0.16);
}

.fff-brand-text {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
}

@media (max-width: 760px) {
  .fff-brand-logo {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 11px;
  }
}

/* v0.31.0: hand-drawn symbolic app icons for the catalog cards */
.fff-app-card__media {
  display: grid;
  place-items: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 23% 18%, rgba(216, 155, 58, 0.24), transparent 32%),
    radial-gradient(circle at 78% 74%, rgba(36, 65, 95, 0.18), transparent 34%),
    linear-gradient(135deg, #fff8e8 0%, #f4e8cc 100%);
}

.fff-app-card__media::before {
  opacity: .34;
  background:
    repeating-linear-gradient(0deg, rgba(29, 45, 62, 0.055) 0 1px, transparent 1px 16px),
    radial-gradient(circle at 78% 76%, rgba(255, 252, 243, 0.56), transparent 36%);
}

.fff-app-card:hover .fff-app-icon {
  transform: translateY(-3px) rotate(-1.2deg) scale(1.025);
}

.fff-app-icon {
  position: relative;
  z-index: 2;
  width: min(72%, 238px);
  aspect-ratio: 1;
  color: var(--icon-a, var(--fff-blue));
  overflow: visible;
  filter: drop-shadow(0 18px 28px rgba(29, 45, 62, 0.13));
  transform: translateZ(0);
  transition: transform 260ms ease;
}

.fff-app-icon__tile {
  fill: rgba(255, 252, 243, 0.88);
  stroke: rgba(29, 45, 62, 0.16);
  stroke-width: 3;
}

.fff-app-icon__scribble {
  fill: none;
  stroke: rgba(29, 45, 62, 0.13);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2 14;
}

.fff-app-icon__scribble--two {
  stroke: rgba(185, 101, 59, 0.15);
}

.fff-app-icon__mark {
  transform-origin: 160px 160px;
  transform: rotate(var(--icon-tilt, -1deg));
}

.fff-app-icon__stroke {
  fill: none;
  stroke: var(--icon-a, var(--fff-blue));
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fff-app-icon__stroke--accent {
  stroke: var(--icon-b, var(--fff-rust));
}

.fff-app-icon__stroke--soft {
  stroke: var(--icon-c, var(--fff-gold));
  opacity: .72;
}

.fff-app-icon__fill {
  fill: var(--icon-a, var(--fff-blue));
}

.fff-app-icon__fill-accent {
  fill: var(--icon-b, var(--fff-rust));
  opacity: .92;
}

@media (min-width: 761px) {
  .fff-app-card__image {
    z-index: 0;
    display: block;
  }

  .fff-app-card__media::before {
    z-index: 1;
    opacity: .46;
    background:
      linear-gradient(180deg, rgba(29, 45, 62, 0.00) 32%, rgba(29, 45, 62, 0.30) 100%),
      radial-gradient(circle at 78% 76%, rgba(255, 252, 243, 0.38), transparent 36%);
  }

  .fff-app-icon {
    position: absolute;
    right: clamp(12px, 1.4vw, 18px);
    bottom: clamp(12px, 1.4vw, 18px);
    width: clamp(68px, 27%, 112px);
    filter: drop-shadow(0 14px 22px rgba(29, 45, 62, 0.20));
  }

  .fff-app-icon__tile {
    fill: rgba(255, 252, 243, 0.94);
  }
}

.fff-app-icon--solfeggio,
.fff-app-icon--recognize_piece {
  --icon-a: #24415f;
  --icon-b: #b9653b;
  --icon-c: #d89b3a;
  --icon-tilt: -2deg;
}

.fff-app-icon--quiz,
.fff-app-icon--anecdotes {
  --icon-a: #9f4f2e;
  --icon-b: #24415f;
  --icon-c: #d89b3a;
  --icon-tilt: 1.5deg;
}

.fff-app-icon--prism,
.fff-app-icon--dissonance {
  --icon-a: #24415f;
  --icon-b: #d89b3a;
  --icon-c: #b9653b;
  --icon-tilt: .8deg;
}

.fff-app-icon--rhythm,
.fff-app-icon--daily {
  --icon-a: #b9653b;
  --icon-b: #24415f;
  --icon-c: #d89b3a;
  --icon-tilt: -1.4deg;
}

.fff-app-icon--chords,
.fff-app-icon--cadences,
.fff-app-icon--voice_leading,
.fff-app-icon--polyphony_listening {
  --icon-a: #1d2d3e;
  --icon-b: #b9653b;
  --icon-c: #d89b3a;
}

.fff-app-icon--intervals,
.fff-app-icon--journal,
.fff-app-icon--dictionary {
  --icon-a: #24415f;
  --icon-b: #d89b3a;
  --icon-c: #b9653b;
}

.fff-app-icon--winds,
.fff-app-icon--slovenian_composers {
  --icon-a: #24415f;
  --icon-b: #9f4f2e;
  --icon-c: #d89b3a;
}

@media (max-width: 760px) {
  .fff-app-card__media {
    display: grid;
    place-items: center;
  }

  .fff-app-card__media::before {
    opacity: .24;
    background:
      repeating-linear-gradient(0deg, rgba(29, 45, 62, 0.05) 0 1px, transparent 1px 13px),
      linear-gradient(90deg, rgba(29, 45, 62, 0.00), rgba(29, 45, 62, 0.10));
  }

  .fff-app-card__image {
    display: none;
  }

  .fff-app-icon {
    width: 88px;
    filter: drop-shadow(0 10px 17px rgba(29, 45, 62, 0.12));
  }

  .fff-app-icon__stroke {
    stroke-width: 13;
  }
}

.fff-app-card--fallback {
  border: 1px solid rgba(185, 101, 59, 0.32);
}

.fff-app-card__availability {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(216, 155, 58, 0.16);
  color: #71471f;
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.25;
}

@media (max-width: 760px) {
  .fff-app-card__availability {
    padding: 3px 6px;
    font-size: .62rem;
  }
}

/* Phase 3: calmer public UI, fewer decorative layers, smaller radii. */
body {
  background: #f4f6f8;
}

body::before {
  opacity: 0.08;
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 58%);
}

.fff-hero {
  min-height: clamp(380px, 48vh, 520px);
  padding-block: clamp(34px, 5vw, 64px);
  background: linear-gradient(180deg, #fffdf8 0%, #f4f6f8 100%);
  border-bottom-color: rgba(23, 34, 43, 0.12);
}

.fff-hero::before {
  opacity: 0.10;
}

.fff-hero::after {
  display: none;
}

.fff-hero__title {
  max-width: 760px;
  font-size: clamp(42px, 5.8vw, 72px);
  letter-spacing: -0.025em;
}

.fff-hero__kicker,
.fff-hero__text {
  max-width: 600px;
}

.fff-mobile-dashboard,
.fff-choice-panel,
.fff-app-card,
.fff-about-panel {
  border-radius: 8px;
}

.fff-mobile-dashboard::after,
.fff-app-card__media::before {
  display: none;
}

.fff-mobile-dashboard__title {
  margin: 0;
  color: var(--fff-ink);
  font-size: clamp(2rem, 11vw, 3rem);
  font-weight: 860;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.fff-app-card {
  box-shadow: 0 10px 24px rgba(23, 34, 43, 0.08);
}

.fff-app-card:hover {
  transform: translateY(-2px);
}

.fff-app-card__media {
  border-radius: 8px 8px 0 0;
}

@media (max-width: 720px) {
  .fff-hero {
    min-height: auto;
  }

  .fff-mobile-dashboard__title {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
  }
}

/* Phase 3: standard app work surface. */
body.fff-is-app-page,
body.page-template-app-page {
  background: #f4f6f8;
}

body.fff-is-app-page .fff-page-content,
body.page-template-app-page .fff-page-content {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding-bottom: calc(132px + var(--fff-safe-bottom));
}

body.fff-is-app-page .fff-page-content > .wp-block-post-content,
body.page-template-app-page .fff-page-content > .wp-block-post-content {
  width: min(100%, 1080px);
  margin-inline: auto;
}

body.fff-is-app-page .wp-block-post-content :where(.card, .panel, .box, .app-card, .quiz-card, .exercise-card, .result-card, .settings-panel, .stats-card),
body.page-template-app-page .wp-block-post-content :where(.card, .panel, .box, .app-card, .quiz-card, .exercise-card, .result-card, .settings-panel, .stats-card) {
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(23, 34, 43, 0.08);
}

body.fff-is-app-page .wp-block-post-content :where(.tfl-mq, .tfl-music-quiz, .fpdiary-app, .fpdiary-shell, .tfl-satb-app, .tfl-satb-shell, .wws-simulator, .wws-app) {
  width: min(100%, 1080px);
  margin-inline: auto;
}

body.fff-is-app-page .wp-block-post-content :where(.tfl-header, .fpdiary-header, .tfl-satb-header, .wws-header) {
  border-radius: 8px;
}

body.fff-is-app-page .wp-block-post-content :where(.tfl-header h1, .wws-title, .fpdiary-title) {
  letter-spacing: 0;
}

@media (max-width: 760px) {
  body.fff-is-app-page .fff-page-content,
  body.page-template-app-page .fff-page-content {
    padding-inline: 12px;
    padding-bottom: calc(156px + var(--fff-safe-bottom));
  }

  body.fff-is-app-page .wp-block-post-content :where(.tfl-header, .fpdiary-header, .tfl-satb-header, .wws-header) {
    margin-bottom: 12px;
  }
}
