:root {
  --green:#387838;
  --bright:#90d0b0;
  --bg:#06110b;
  --bg2:#0a1710;
  --surface:rgba(8,22,14,0.94);
  --surface-2:rgba(5,14,9,0.96);
  --champagne:#d4b896;
  --copper-glow:rgba(212,184,150,0.55);
  --copper-glow-soft:rgba(190,118,72,0.30);
  --text:#f4f1e9;
  --muted:rgba(244,241,233,0.82);
  --faint:rgba(244,241,233,0.55);
  --line:rgba(244,241,233,0.14);
  --sans:"Inter",system-ui,-apple-system,sans-serif;
  --serif:"Cormorant Garamond",Georgia,serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background-color: #cdf0db;
  background-image:
    radial-gradient(circle at 14% 6%, rgba(212,184,150,0.72), transparent 40%),
    radial-gradient(circle at 86% 12%, rgba(144,208,176,0.66), transparent 42%),
    radial-gradient(circle at 50% 85%, rgba(190,118,72,0.32), transparent 52%),
    linear-gradient(180deg,
      rgba(205,240,219,0.42) 0%,
      rgba(184,232,204,0.22) 50%,
      rgba(144,208,176,0.12) 100%),
    url("/assets/fashionjungle_tausta.jpeg");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

#app[data-loading="true"]::before {
  content: "Loading FashionJungle…";
  position: fixed; inset: 0;
  display: grid; place-items: center;
  color: var(--muted);
  background: var(--bg);
  z-index: 100;
}

.smoke {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo {
  width: min(70vw, 720px);
  max-width: 720px;
  height: auto;
  margin-bottom: 28px;
  filter:
    drop-shadow(0 0 10px var(--copper-glow))
    drop-shadow(0 0 26px var(--copper-glow-soft))
    drop-shadow(0 8px 22px rgba(6,17,11,0.32));
}

.tagline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
  color: var(--text);
  text-shadow: 0 2px 8px rgba(6,17,11,0.45);
  max-width: 22ch;
  margin: 0 0 56px;
  position: relative;
}
.tagline::after {
  content: "";
  display: block;
  width: 90px;
  height: 2px;
  background: var(--champagne);
  margin: 18px auto 0;
  opacity: 0.9;
}

.pulse-block {
  max-width: 820px;
  margin: 24px auto 0;
  text-align: center;
}

.pulse-sign-image {
  display: block;
  width: min(82vw, 820px);
  height: auto;
  margin: 0 auto 24px;
  filter: drop-shadow(0 2px 12px rgba(212, 184, 150, 0.25));
}

.pulse {
  position: relative;
  width: fit-content;
  max-width: min(100%, 820px);
  margin: 24px auto 0;
  background: var(--surface-2);
  border: 1px solid var(--copper-glow);
  border-radius: 28px;
  padding: 36px 42px 38px;
  text-align: left;
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 0 0 1px rgba(6,17,11,0.40),
    0 22px 52px rgba(6,17,11,0.50);
}
.pulse h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--champagne);
  margin: 0 0 14px;
}
.pulse h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
  margin: 0 0 16px;
  color: var(--text);
  text-align: center;
}
.pulse p {
  margin: 0 auto;
  max-width: 58ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  text-align: center;
}
.pulse .forming {
  color: var(--faint);
  font-style: italic;
  margin: 0;
}

.market-selector {
  width: 100%;
  max-width: 560px;
  margin: 64px auto 0;
  text-align: center;
}
.market-selector-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 28px);
  color: var(--text);
  text-shadow: 0 2px 6px rgba(6,17,11,0.35);
  margin: 0 0 18px;
}
.market-select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--copper-glow);
  border-radius: 14px;
  padding: 14px 42px 14px 18px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--champagne) 50%),
    linear-gradient(135deg, var(--champagne) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  backdrop-filter: blur(8px);
}
.market-select:focus { outline: none; border-color: var(--champagne); }
.market-select option { background: var(--bg); color: var(--text); }

/* === Market view (H2A.7c) === */

.market-view {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 120px;
  text-align: left;
}

.market-back {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--champagne);
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(6,17,11,0.40);
  margin-bottom: 32px;
  transition: opacity 0.15s;
}
.market-back:hover { opacity: 0.78; text-decoration: underline; }

.market-header {
  margin-bottom: 28px;
}
.market-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(12px, 1.2vw, 14px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--champagne);
  margin: 0 0 14px;
}
.market-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.14;
  letter-spacing: -0.008em;
  color: var(--text);
  text-shadow: 0 2px 10px rgba(6,17,11,0.40);
  margin: 0;
}

.market-body {
  background: var(--surface-2);
  border: 1px solid var(--copper-glow);
  border-radius: 24px;
  padding: 34px 38px 36px;
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 0 0 1px rgba(6,17,11,0.40),
    0 18px 44px rgba(6,17,11,0.45);
}

.market-read {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.32;
  color: var(--text);
  margin: 0 0 22px;
}

.market-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.market-paragraph {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.error {
  max-width: 560px;
  margin: 80px auto;
  padding: 0 24px;
  text-align: center;
  color: var(--muted);
}
.error h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--text);
}

@media (max-width: 720px) {
  .pulse { padding: 28px 26px 30px; max-width: 100%; }
  .market-view { padding: 40px 18px 80px; }
  .market-body { padding: 24px 22px 26px; }
}


/* H2A.7d.3 creator cards layout */
.manifesto {
  max-width: 820px;
  margin: 0 auto 56px;
  padding: 48px 48px 52px;
  background: var(--surface-2);
  border: 1px solid var(--copper-glow);
  border-radius: 28px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(6,17,11,0.40);
}

.manifesto-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
  color: var(--text);
  margin: 0 0 22px;
  text-align: center;
}

.manifesto-text {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 auto 18px;
  max-width: 58ch;
}

.manifesto-lead {
  margin-top: 24px;
  color: var(--text);
  font-weight: 500;
}

.manifesto-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: center;
}

.manifesto-list li {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 10px;
}

.manifesto-list li::before {
  content: "— ";
  color: var(--muted);
}

.manifesto-list strong {
  color: var(--text);
  font-weight: 600;
}

.manifesto--pro {
  margin-top: 56px;
}

.manifesto-title--secondary {
  margin-top: 32px;
}

.creator-section {
  max-width: 1120px;
  margin: 56px auto 80px;
  padding: 0 24px;
}
.creator-section-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--champagne);
  margin: 0 0 8px;
}
.creator-section-meta {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 18px;
}
.creator-section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--text);
  margin: 0 0 24px;
}

.creator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.creator-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.creator-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg2);
}

.creator-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  color: var(--faint);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.creator-platform-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--champagne);
  margin: 18px 18px 6px;
}

.creator-handle {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  color: var(--text);
  margin: 0 18px 8px;
  line-height: 1.25;
}

.creator-text {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 18px 14px;
}

.creator-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 18px 12px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--faint);
}
.creator-meta-source {
  color: var(--bright);
  text-decoration: none;
  white-space: nowrap;
}
.creator-meta-source:hover {
  opacity: 0.82;
  text-decoration: underline;
}

.creator-public-signals {
  border-top: 1px solid var(--line);
  padding: 10px 18px 14px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

@media (max-width: 980px) {
  .creator-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .creator-section { margin: 40px auto 60px; padding: 0 18px; }
}
@media (max-width: 620px) {
  .creator-grid { grid-template-columns: 1fr; gap: 16px; }
}


/* H2A.7e iridescent beetle polish for JungleSound section */
.creator-section-eyebrow {
  background: linear-gradient(
    90deg,
    var(--champagne) 0%,
    #b87850 35%,
    #8a4d8a 60%,
    var(--bright) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  text-shadow: 0 0 18px rgba(212, 184, 150, 0.18);
}

.creator-section-meta {
  color: rgba(244, 241, 233, 0.78);
}

.creator-section-title {
  color: var(--text);
  text-shadow:
    0 1px 0 rgba(0,0,0,0.4),
    0 0 24px rgba(144, 208, 176, 0.10),
    0 0 36px rgba(212, 184, 150, 0.08);
}


/* H2A.7e readability polish — stronger color, larger text */
.creator-section-eyebrow {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #d97a3f;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-shadow:
    0 1px 0 rgba(0,0,0,0.5),
    0 0 12px rgba(217, 122, 63, 0.35);
  margin: 0 0 14px;
}

.creator-section-meta {
  color: rgba(244, 241, 233, 0.92);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 22px;
}

.creator-section-title {
  font-size: clamp(28px, 3.2vw, 40px);
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-shadow:
    0 2px 4px rgba(0,0,0,0.6),
    0 0 18px rgba(0,0,0,0.4);
  margin: 0 0 32px;
}


/* H2A.7e text hierarchy hard constraints
   - body min 16px, 1.5-1.6 line-height
   - subtitles 20-24px
   - hero 32-40px
   - tags min 14px bold + letter-spacing
   - no fixed card height
   - generous padding/margins */

/* Section labels (eyebrows / tags) */
.creator-section-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.4;
  margin: 0 0 16px;
}

/* Section meta line (body text) */
.creator-section-meta {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 24px;
}

/* Section hero title */
.creator-section-title {
  font-size: clamp(32px, 3.4vw, 40px);
  line-height: 1.2;
  margin: 0 0 36px;
}

/* Cards: no fixed height, generous spacing */
.creator-card {
  height: auto;
  min-height: 0;
  padding: 0;
}

/* Platform label inside card (tag) */
.creator-platform-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  margin: 22px 22px 10px;
}

/* Creator handle (card subtitle) */
.creator-handle {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 22px 12px;
}

/* Card body text */
.creator-text {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 22px 18px;
}

/* Card meta row (date + source link) */
.creator-meta {
  font-size: 14px;
  line-height: 1.5;
  padding: 0 22px 16px;
  gap: 16px;
}

/* Card footer */
.creator-public-signals {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  padding: 14px 22px 18px;
}

/* Image placeholder */
.creator-placeholder {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* Tag in Global Pulse card too */
.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.4;
}


/* H2A.7e.1 size override — bigger fonts across creator section */
.creator-section-eyebrow {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.4;
  margin: 0 0 18px;
}

.creator-section-meta {
  font-size: 20px;
  line-height: 1.55;
  margin: 0 0 28px;
}

.creator-section-title {
  font-size: clamp(48px, 5vw, 64px);
  line-height: 1.15;
  margin: 0 0 40px;
}

.creator-platform-label {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  margin: 24px 24px 12px;
}

.creator-handle {
  font-size: 28px;
  line-height: 1.25;
  margin: 0 24px 14px;
}

.creator-text {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 24px 20px;
}

.creator-meta {
  font-size: 16px;
  line-height: 1.5;
  padding: 0 24px 18px;
  gap: 18px;
}

.creator-public-signals {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  padding: 16px 24px 20px;
}

/* H2A.7e final readability scale */
.tagline { color: #143b25; }
.market-selector-title { color: #143b25; font-size: clamp(26px, 2.8vw, 36px); font-weight: 600; }
.creator-section-eyebrow { color: #d97a3f; background: none; -webkit-background-clip: initial; background-clip: initial; font-size: 22px; font-weight: 800; letter-spacing: 0.18em; line-height: 1.35; }
.creator-section-meta { color: #143b25; font-size: 20px; font-weight: 600; line-height: 1.6; }
.creator-section-title { color: #143b25; font-size: clamp(48px, 5vw, 64px); line-height: 1.08; }
.creator-platform-label { color: #d97a3f; font-size: 18px; font-weight: 800; letter-spacing: 0.14em; }
.creator-handle { font-size: 28px; line-height: 1.24; }
.creator-text { font-size: 18px; line-height: 1.62; }
.creator-meta { font-size: 16px; line-height: 1.5; }
.creator-public-signals { font-size: 14px; font-weight: 800; }


/* H2A.8a world map — editorial, static */
.world-map-section {
  max-width: 1600px;
  margin: 40px auto 48px;
  padding: 0 24px;
}
.world-map-container {
  width: 100%;
  height: 820px;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
}
@media (max-width: 620px) {
  .world-map-container { height: 520px; }
  .world-map-section { margin: 24px auto 32px; padding: 0 16px; }
}

.world-map-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.market-activation {
  max-width: 720px;
  margin: 48px auto 32px;
  padding: 32px 36px;
  background: var(--surface-2);
  border: 1px solid var(--copper-glow);
  border-radius: 22px;
}
.market-activation-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--text);
  margin: 0 0 16px;
}
.market-activation-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 14px;
}
.market-activation-body:last-child {
  margin-bottom: 0;
}

.world-map-country-active {
  cursor: pointer;
  transition: fill-opacity 0.15s ease;
}
.world-map-country-active:hover {
  fill-opacity: 0.85;
}
.world-map-country-inactive {
  pointer-events: none;
}


/* === FJ ANALYTICS OPERATOR DEV PANEL (H2A.11g) === */
.fj-debug-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  z-index: 99999;
  background: #0a0a0a;
  color: #e5e5e5;
  border: 2px solid #444;
  border-radius: 8px;
  font-family: "SF Mono", "Consolas", "Monaco", monospace;
  font-size: 16px;
  line-height: 1.5;
  padding: 0;
  box-shadow: 0 4px 32px rgba(0,0,0,0.6);
}
.fj-debug-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #1a1a1a;
  border-bottom: 1px solid #444;
  border-radius: 8px 8px 0 0;
  position: sticky;
  top: 0;
  z-index: 1;
}
.fj-debug-panel__title {
  color: #fbbf24;
  font-weight: 600;
  font-size: 16px;
}
.fj-debug-panel__close {
  background: transparent;
  color: #d4d4d4;
  border: none;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  padding: 0 8px;
}
.fj-debug-panel__close:hover { color: #ef4444; }
.fj-debug-panel__section {
  padding: 12px 16px;
  border-bottom: 1px solid #2a2a2a;
}
.fj-debug-panel__section:last-child { border-bottom: none; }
.fj-debug-panel__section-title {
  color: #fbbf24;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.fj-debug-panel__row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
  line-height: 1.4;
}
.fj-debug-panel__label { color: #888; }
.fj-debug-panel__value { color: #4ade80; font-weight: 500; }
.fj-debug-panel__bucket {
  color: #4ade80;
  font-size: 18px;
  font-weight: 700;
  padding: 6px 0;
}
.fj-debug-panel__sequence {
  color: #d4d4d4;
  word-break: break-word;
  padding: 4px 0;
}
.fj-debug-panel__chain {
  color: #e5e5e5;
  word-break: break-word;
  padding: 6px 0;
  font-size: 14px;
}
.fj-debug-panel__candidate {
  font-size: 18px;
  font-weight: 700;
  padding: 6px 0;
}
.fj-debug-panel__candidate--yes { color: #4ade80; }
.fj-debug-panel__candidate--no  { color: #888; }
.fj-debug-panel__action {
  color: #4ade80;
  font-weight: 700;
  font-size: 17px;
  padding: 6px 0;
}
.fj-debug-panel__event {
  display: grid;
  grid-template-columns: 80px 1fr 100px;
  gap: 8px;
  padding: 4px 0;
  font-size: 14px;
}
.fj-debug-panel__event-time { color: #888; }
.fj-debug-panel__event-type { color: #d4d4d4; }
.fj-debug-panel__event-slug { color: #4ade80; text-align: right; }
.fj-debug-panel__hint {
  color: #888;
  font-size: 13px;
  font-style: italic;
  padding-top: 6px;
}
.fj-debug-panel__buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.fj-debug-panel__button {
  background: #1f2937;
  color: #e5e5e5;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.fj-debug-panel__button:hover {
  background: #374151;
  border-color: #4ade80;
}

/* Export modal */
.fj-debug-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fj-debug-modal__inner {
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 6px;
  width: 80%;
  max-width: 700px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  font-family: "SF Mono", "Consolas", monospace;
  font-size: 12px;
  color: #d4d4d4;
}
.fj-debug-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #161616;
  border-bottom: 1px solid #333;
}
.fj-debug-modal__title { color: #fbbf24; font-weight: 600; }
.fj-debug-modal__close {
  background: transparent; color: #d4d4d4; border: none;
  cursor: pointer; font-size: 18px; padding: 0 6px;
}
.fj-debug-modal__textarea {
  flex: 1;
  background: #0a0a0a;
  color: #d4d4d4;
  border: none;
  padding: 12px;
  font-family: inherit;
  font-size: 11px;
  resize: none;
  min-height: 300px;
  outline: none;
}
.fj-debug-modal__hint {
  padding: 8px 12px;
  background: #161616;
  border-top: 1px solid #333;
  color: #666;
  font-size: 11px;
  font-style: italic;
}


/* === H2A.11i: CONSENT BANNER + PRIVACY PAGE === */

.fj-consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 18px 22px;
  z-index: 99998;
  font-family: inherit;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.fj-consent-banner__text {
  flex: 1 1 300px;
  font-size: 14px;
  line-height: 1.5;
}
.fj-consent-banner__text strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: #111;
}
.fj-consent-banner__text p {
  margin: 0 0 6px 0;
  color: #374151;
}
.fj-consent-banner__link {
  color: #2563eb;
  text-decoration: underline;
  font-size: 13px;
  cursor: pointer;
}
.fj-consent-banner__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.fj-consent-banner__button {
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}
.fj-consent-banner__button--accept {
  background: #1f6f3a;
  color: #ffffff;
  border-color: #1f6f3a;
}
.fj-consent-banner__button--accept:hover { background: #155a2e; }
.fj-consent-banner__button--decline {
  background: #ffffff;
  color: #1f6f3a;
  border-color: #1f6f3a;
}
.fj-consent-banner__button--decline:hover { background: #f3f4f6; }

@media (max-width: 600px) {
  .fj-consent-banner { flex-direction: column; align-items: stretch; }
  .fj-consent-banner__actions { justify-content: stretch; }
  .fj-consent-banner__button { flex: 1; }
}

/* Privacy page */
.fj-privacy-page {
  max-width: 720px;
  margin: 40px auto;
  padding: 0 24px 80px;
  color: #1a1a1a;
  font-family: inherit;
  line-height: 1.6;
}
.fj-privacy-page__back {
  display: inline-block;
  color: #1f6f3a;
  text-decoration: none;
  margin-bottom: 24px;
  font-size: 14px;
}
.fj-privacy-page__back:hover { text-decoration: underline; }
.fj-privacy-page h1 {
  font-size: 32px;
  margin: 0 0 24px 0;
  color: #111;
}
.fj-privacy-page h2 {
  font-size: 20px;
  margin: 32px 0 12px 0;
  color: #1f6f3a;
}
.fj-privacy-page p {
  margin: 0 0 14px 0;
  color: #374151;
}
.fj-privacy-page__buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 24px 0;
}
.fj-privacy-page__button {
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #1f6f3a;
  background: #1f6f3a;
  color: #ffffff;
  font-family: inherit;
}
.fj-privacy-page__button:hover { background: #155a2e; }
.fj-privacy-page__button--reset {
  background: #ffffff;
  color: #1f6f3a;
}
.fj-privacy-page__button--reset:hover { background: #f3f4f6; }


/* === H2A.11i: PRIVACY LEDE + FOOTER === */
.fj-privacy-page__lede {
  font-size: 16px;
  color: #1f6f3a;
  font-weight: 600;
  border-left: 3px solid #1f6f3a;
  padding-left: 14px;
  margin: 0 0 24px 0;
}
.fj-footer {
  margin-top: 60px;
  padding: 24px 16px;
  border-top: 1px solid #d1d5db;
  background: transparent;
  font-family: inherit;
}
.fj-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #6b7280;
}
.fj-footer__copy { color: #6b7280; }
.fj-footer__link {
  color: #1f6f3a;
  text-decoration: none;
  font-weight: 600;
}
.fj-footer__link:hover { text-decoration: underline; }

/* === Cookie consent: banner + preference centre (Layer 1/2/3) === */
.fj-consent-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  background: #14251c; color: #f3efe6; padding: 20px 24px;
  display: flex; gap: 20px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; box-shadow: 0 -2px 16px rgba(0,0,0,0.25);
}
.fj-consent-banner__text { flex: 1 1 380px; min-width: 280px; }
.fj-consent-banner__text strong { display: block; font-size: 16px; margin-bottom: 6px; color: #f3efe6; }
.fj-consent-banner__text p { font-size: 13.5px; line-height: 1.55; margin: 0 0 8px; color: #eef0ea; }
.fj-consent-banner__link { color: #e8b87a; font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }
.fj-consent-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fj-consent-banner__button {
  padding: 11px 18px; border-radius: 7px; border: 1px solid #cfa06a;
  font-size: 14px; cursor: pointer; background: transparent; color: #f3efe6;
  font-weight: 600;
}
/* kaikki kolme nappia sama paino - reject yhta helppo kuin accept */
.fj-consent-banner__button--accept { background: #cfa06a; color: #14251c; border-color: #cfa06a; }
.fj-consent-banner__button--reject { background: transparent; color: #f3efe6; }
.fj-consent-banner__button--manage { background: transparent; color: #f3efe6; }
.fj-consent-banner__button:hover { opacity: 0.88; }

.fj-cookie-centre {
  position: fixed; inset: 0; z-index: 9100; background: rgba(10,16,12,0.55);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.fj-cookie-centre__panel {
  background: #f6f0e7; color: #16251c; max-width: 600px; width: 100%;
  max-height: 86vh; overflow-y: auto; border-radius: 12px; padding: 32px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.3);
}
.fj-cookie-centre__title { font-size: 24px; margin: 0 0 10px; }
.fj-cookie-centre__lede { font-size: 14px; line-height: 1.6; margin: 0 0 20px; opacity: 0.85; }
.fj-cookie-cat { border-top: 1px solid #d8cdba; padding: 18px 0; }
.fj-cookie-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.fj-cookie-cat strong { font-size: 15.5px; }
.fj-cookie-cat p { font-size: 13.5px; line-height: 1.55; margin: 0; opacity: 0.82; }
.fj-cookie-cat__always { font-size: 12.5px; color: #5a7a4a; font-weight: 600; }
.fj-cookie-cat--info { background: #ece4d4; border-radius: 8px; padding: 16px; border-top: none; margin-top: 6px; }
.fj-cookie-toggle { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.fj-cookie-toggle input { opacity: 0; width: 0; height: 0; }
.fj-cookie-toggle__slider {
  position: absolute; inset: 0; background: #bcae98; border-radius: 26px; transition: 0.2s; cursor: pointer;
}
.fj-cookie-toggle__slider::before {
  content: ""; position: absolute; height: 20px; width: 20px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%; transition: 0.2s;
}
.fj-cookie-toggle input:checked + .fj-cookie-toggle__slider { background: #5a7a4a; }
.fj-cookie-toggle input:checked + .fj-cookie-toggle__slider::before { transform: translateX(20px); }
.fj-cookie-toggle input:focus-visible + .fj-cookie-toggle__slider { outline: 2px solid #14251c; outline-offset: 2px; }
.fj-cookie-centre__actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 14px; }
.fj-cookie-centre__button {
  padding: 11px 18px; border-radius: 7px; border: 1px solid #14251c;
  font-size: 14px; cursor: pointer; background: transparent; color: #14251c; font-weight: 600;
}
.fj-cookie-centre__button--save { background: #14251c; color: #f6f0e7; }
.fj-cookie-centre__button:hover { opacity: 0.88; }
.fj-cookie-centre__link { font-size: 13px; color: #7a4a22; }
.fj-cookie-confirm {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 9200;
  background: #14251c; color: #f3efe6; padding: 14px 22px; border-radius: 8px;
  font-size: 14px; box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
@media (max-width: 700px) {
  .fj-consent-banner { padding: 16px; gap: 12px; }
  .fj-consent-banner__button { flex: 1 1 auto; }
  .fj-cookie-centre__panel { padding: 22px; }
}
