/* Fitted Homes (/fitted). Built by tools/fitted/build.py; tokens come from the page's own :root. */
:root {
  --fx-ink: #1A3A4A;
  --fx-body: #3B4A52;
  --fx-muted: #56646B;
  --fx-line: #CFDDE2;
  --fx-surface: #FFFFFF;
  --fx-bg: #EEF7F9;
  --fx-teal: #3D8B9E;
  --fx-teal-ink: #2D6E7E;
  --fx-gold: #C8A96E;
  --fx-pin: #E60023;
  --fx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --z-dropdown: 30;
  --z-sheet: 60;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fx-main { background: var(--fx-bg); color: var(--fx-body); }
.fx-main h1, .fx-main h2, .fx-main h3 { color: var(--fx-ink); text-wrap: balance; }
.fx-main p { text-wrap: pretty; }
.fx-main a { color: var(--fx-teal-ink); }

/* placeholders HERA still has to fill */
.fx-todo { background: #FFF1B8; color: #5A4500; padding: 1px 6px; border-radius: 4px; font-size: 0.92em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ── top of listing pages ── */
.fx-top { background: var(--soft-black, #1A3A4A); color: #D9EFF3; padding: clamp(112px, 14vw, 168px) clamp(16px, 5vw, 64px) clamp(40px, 6vw, 72px); }
.fx-top h1 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.04; color: #F4FAFB; max-width: 16ch; letter-spacing: -0.01em; }
.fx-top .fx-lede { margin-top: 20px; max-width: 58ch; font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.7; color: #B9CDD3; }
.fx-top .fx-crumbs a, .fx-top .fx-crumbs li { color: #9FB8BF; }

.fx-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; margin-bottom: 18px; }
.fx-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.fx-crumbs a { text-decoration: none; color: var(--fx-muted); }
.fx-crumbs a:hover { color: var(--fx-teal); }
.fx-crumbs [aria-current] { color: var(--fx-ink); }

/* ── browse: chips, filter row, grid ── */
.fx-browse { padding: 28px clamp(16px, 5vw, 64px) 72px; max-width: 1360px; margin: 0 auto; }
.fx-chips { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.fx-chip { flex: 0 0 auto; width: 132px; scroll-snap-align: start; border: 1px solid var(--fx-line); background: var(--fx-surface); border-radius: 12px; overflow: hidden; cursor: pointer; padding: 0; font: inherit; text-align: center; transition: border-color .25s var(--fx-ease), transform .25s var(--fx-ease); }
.fx-chip img { display: block; width: 100%; height: 84px; object-fit: cover; }
.fx-chip span { display: block; padding: 9px 8px 10px; font-size: 0.82rem; font-weight: 600; color: var(--fx-ink); line-height: 1.25; }
.fx-chip:hover { border-color: var(--fx-teal); transform: translateY(-2px); }
.fx-chip[aria-pressed="true"] { border-color: var(--fx-teal); box-shadow: 0 0 0 2px var(--fx-teal) inset; }

.fx-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 0; border-top: 1px solid var(--fx-line); border-bottom: 1px solid var(--fx-line); margin-top: 6px; }
.fx-dd { position: relative; }
.fx-dd > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--fx-line); border-radius: 999px; background: var(--fx-surface); color: var(--fx-ink); font-size: 0.9rem; font-weight: 500; cursor: pointer; user-select: none; }
.fx-dd > summary::-webkit-details-marker { display: none; }
.fx-dd > summary svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .2s var(--fx-ease); }
.fx-dd[open] > summary { border-color: var(--fx-teal); }
.fx-dd[open] > summary svg { transform: rotate(180deg); }
.fx-dd.is-on > summary { background: #E3F1F4; border-color: var(--fx-teal); }
.fx-dd-n[hidden] { display: none; }
.fx-dd-n { min-width: 20px; height: 20px; border-radius: 999px; background: var(--fx-teal); color: #fff; font-size: 0.72rem; display: inline-grid; place-items: center; padding: 0 6px; }
.fx-dd-panel { position: absolute; z-index: var(--z-dropdown); top: calc(100% + 8px); left: 0; width: 300px; max-width: calc(100vw - 32px); background: var(--fx-surface); border: 1px solid var(--fx-line); border-radius: 14px; box-shadow: 0 18px 48px rgba(26, 58, 74, 0.16); display: flex; flex-direction: column; max-height: min(70vh, 520px); }
.fx-dd-wide .fx-dd-panel { width: 520px; }
.fx-dd-scroll { overflow-y: auto; padding: 12px 14px; }
.fx-dd-wide .fx-dd-scroll { columns: 2 220px; column-gap: 18px; }
.fx-opt-group { break-inside: avoid; margin-bottom: 12px; }
.fx-opt-head { font-size: 0.78rem; font-weight: 700; color: var(--fx-ink); margin: 4px 0 4px; }
.fx-opt { display: flex; align-items: center; gap: 9px; padding: 6px 4px; border-radius: 8px; font-size: 0.9rem; color: var(--fx-body); cursor: pointer; }
.fx-opt:hover { background: var(--fx-bg); }
.fx-opt-sub { padding-left: 14px; }
.fx-opt em { margin-left: auto; font-style: normal; font-size: 0.78rem; color: var(--fx-muted); }
.fx-opt input { accent-color: var(--fx-teal); width: 16px; height: 16px; }
.fx-opt.is-empty { color: #8C989D; cursor: default; }
.fx-opt.is-empty:hover { background: none; }
.fx-dd-foot { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--fx-line); }
.fx-dd-foot button, .fx-reset, .fx-reset-inline { font: inherit; font-size: 0.88rem; border: 0; background: none; color: var(--fx-teal-ink); cursor: pointer; padding: 8px 4px; }
.fx-dd-done { background: var(--fx-ink) !important; color: #fff !important; border-radius: 999px; padding: 8px 18px !important; font-weight: 600; }
.fx-toggle { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--fx-line); border-radius: 999px; background: var(--fx-surface); font-size: 0.9rem; color: var(--fx-ink); cursor: pointer; }
.fx-toggle input { accent-color: var(--fx-teal); }
.fx-sort select { height: 40px; padding: 0 34px 0 14px; border: 1px solid var(--fx-line); border-radius: 999px; background: var(--fx-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%231A3A4A' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center / 12px; font: inherit; font-size: 0.9rem; color: var(--fx-ink); appearance: none; cursor: pointer; }
.fx-reset { text-decoration: underline; }
.fx-count { font-size: 0.88rem; color: var(--fx-muted); margin: 16px 0 18px; }
.fx-empty { padding: 48px 0; text-align: center; color: var(--fx-muted); }

.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(16px, 2vw, 28px); }
.fx-card { position: relative; background: var(--fx-surface); border-radius: 16px; overflow: hidden; transition: transform .35s var(--fx-ease), box-shadow .35s var(--fx-ease); }
.fx-card[hidden] { display: none; }
.fx-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(26, 58, 74, 0.12); }
.fx-card-link { display: block; text-decoration: none; color: inherit; }
.fx-card-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #DCE7EA; }
.fx-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--fx-ease); }
.fx-card:hover .fx-card-img img { transform: scale(1.04); }
.fx-flag { position: absolute; left: 12px; bottom: 12px; background: rgba(26, 58, 74, 0.86); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.fx-card-body { padding: 16px 18px 20px; }
.fx-card-home { font-size: 0.8rem; color: var(--fx-muted); font-weight: 500; }
.fx-card h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 1.42rem; line-height: 1.15; margin: 6px 0 12px; }
.fx-card-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.fx-card-tags li { font-size: 0.75rem; padding: 4px 9px; border-radius: 999px; background: var(--fx-bg); color: var(--fx-teal-ink); font-weight: 500; }
.fx-card-when { margin-top: 10px; font-size: 0.8rem; color: var(--fx-muted); }

/* ── Save to Pinterest ── */
.fx-pin { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--fx-pin); color: #fff !important; font-size: 0.82rem; font-weight: 700; text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); opacity: 0; transform: translateY(-4px); transition: opacity .25s var(--fx-ease), transform .25s var(--fx-ease), background .2s; }
.fx-pin svg { width: 18px; height: 18px; fill: currentColor; }
.fx-pin:hover { background: #AD081B; }
.fx-pin:focus-visible { opacity: 1; transform: none; outline: 3px solid #fff; outline-offset: 2px; }
.fx-card:hover .fx-pin, .fx-photo:hover .fx-pin, .fx-pin.is-saved { opacity: 1; transform: none; }
.fx-pin.is-saved { background: var(--fx-ink); }
@media (hover: none) { .fx-pin { opacity: 1; transform: none; } }
.fx-pin-lg { height: 42px; font-size: 0.9rem; padding: 0 16px 0 12px; }
.fx-pin-btn { position: static; opacity: 1; transform: none; height: 48px; padding: 0 22px 0 18px; font-size: 0.92rem; box-shadow: none; }
.fx-photo { position: relative; border-radius: 16px; overflow: hidden; background: #DCE7EA; }
.fx-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── job page ── */
.fx-job-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 64px); align-items: center; max-width: 1280px; margin: 0 auto; padding: clamp(96px, 11vw, 132px) clamp(16px, 5vw, 64px) clamp(40px, 5vw, 64px); }
.fx-job-hero .fx-photo { aspect-ratio: 4 / 5; max-height: 82vh; }
.fx-job-home { font-size: 0.9rem; color: var(--fx-teal-ink); font-weight: 600; }
.fx-job-intro h1 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.05; margin: 10px 0 18px; letter-spacing: -0.01em; }
.fx-job-intro .fx-lede { font-size: 1.08rem; line-height: 1.7; max-width: 52ch; }
.fx-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 28px 0; border-top: 1px solid var(--fx-line); }
.fx-facts > div { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--fx-line); }
.fx-facts dt { font-size: 0.78rem; color: var(--fx-muted); font-weight: 600; }
.fx-facts dd { margin-top: 4px; color: var(--fx-ink); font-size: 0.98rem; }
.fx-job-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.fx-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 0.92rem; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.fx-btn-teal { background: var(--fx-teal); color: #fff !important; }
.fx-btn-teal:hover { background: var(--fx-teal-ink); }
.fx-btn-gold { background: var(--fx-gold); color: #1A3A4A !important; }
.fx-btn-gold:hover { background: #D8BE88; }
.fx-btn-line { border: 1px solid rgba(255, 255, 255, 0.35); color: #F4FAFB !important; }
.fx-btn-line:hover { border-color: #6FB5C4; color: #6FB5C4 !important; }

.fx-strip { padding: 0 clamp(16px, 5vw, 64px) 24px; max-width: 1280px; margin: 0 auto; }
.fx-strip ul { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 240px); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.fx-strip .fx-photo { aspect-ratio: 9 / 16; }

.fx-story { max-width: 1120px; margin: 0 auto; padding: clamp(32px, 5vw, 72px) clamp(16px, 5vw, 64px); }
.fx-part { display: grid; grid-template-columns: 1fr; gap: 28px; padding: clamp(24px, 4vw, 48px) 0; border-top: 1px solid var(--fx-line); }
.fx-part.has-fig { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 72px); }
.fx-part.has-fig.flip .fx-part-text { order: 2; }
.fx-part h2 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; }
.fx-part p { font-size: 1.06rem; line-height: 1.8; max-width: 62ch; }
.fx-story-fig .fx-photo { aspect-ratio: 4 / 5; }
.fx-story-fig figcaption { font-size: 0.85rem; color: var(--fx-muted); margin-top: 10px; }
.fx-quote { margin: clamp(24px, 4vw, 48px) 0 0; padding: clamp(28px, 4vw, 48px); background: var(--fx-surface); border-radius: 20px; }
.fx-quote p { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35; color: var(--fx-ink); }
.fx-quote cite { display: block; margin-top: 14px; font-style: normal; font-size: 0.9rem; color: var(--fx-muted); }

.fx-shop { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 64px) clamp(48px, 6vw, 80px); }
.fx-shop h2, .fx-related h2, .fx-faq h2, .fx-hubs h2 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 20px; }
.fx-prods { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.fx-prods a { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 18px 20px; background: var(--fx-surface); border: 1px solid var(--fx-line); border-radius: 14px; text-decoration: none; transition: border-color .2s; }
.fx-prods a:hover { border-color: var(--fx-teal); }
.fx-prod-cat { font-size: 0.78rem; color: var(--fx-muted); font-weight: 600; }
.fx-prod-name { grid-column: 1; color: var(--fx-ink); font-weight: 500; }
.fx-prod-go { grid-column: 2; grid-row: 1 / span 2; font-size: 0.85rem; font-weight: 600; color: var(--fx-teal-ink); }

.fx-cta { background: var(--soft-black, #1A3A4A); padding: clamp(56px, 8vw, 104px) clamp(16px, 5vw, 64px); }
.fx-cta-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.fx-cta h2 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); color: #F4FAFB; line-height: 1.12; }
.fx-cta p { color: #B9CDD3; margin: 16px auto 32px; line-height: 1.7; max-width: 52ch; }
.fx-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.fx-related { max-width: 1280px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) clamp(16px, 5vw, 64px) 24px; }
.fx-grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.fx-more, .fx-hubs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.fx-more a, .fx-hubs a { display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border: 1px solid var(--fx-line); border-radius: 999px; background: var(--fx-surface); text-decoration: none; font-size: 0.9rem; color: var(--fx-ink) !important; }
.fx-more a:hover, .fx-hubs a:hover { border-color: var(--fx-teal); }
.fx-hubs { max-width: 1360px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 64px) clamp(48px, 6vw, 80px); }
.fx-hubs em { font-style: normal; color: var(--fx-muted); font-size: 0.8rem; }

.fx-faq { max-width: 860px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) clamp(16px, 5vw, 64px) clamp(64px, 8vw, 112px); }
.fx-faq details { border-top: 1px solid var(--fx-line); padding: 18px 0; }
.fx-faq details:last-child { border-bottom: 1px solid var(--fx-line); }
.fx-faq summary { cursor: pointer; font-weight: 600; color: var(--fx-ink); font-size: 1.02rem; }
.fx-faq details p { margin-top: 10px; line-height: 1.75; }

/* ── small screens: filter panels become a bottom sheet ── */
@media (max-width: 860px) {
  .fx-job-top { grid-template-columns: 1fr; padding-top: 88px; }
  .fx-job-hero .fx-photo { aspect-ratio: 4 / 5; max-height: none; }
  .fx-part.has-fig { grid-template-columns: 1fr; }
  .fx-part.has-fig.flip .fx-part-text { order: 0; }
}
@media (max-width: 640px) {
  .fx-filters { gap: 8px; }
  .fx-dd > summary, .fx-toggle, .fx-sort select { height: 38px; font-size: 0.86rem; }
  .fx-dd-panel, .fx-dd-wide .fx-dd-panel { position: fixed; z-index: var(--z-sheet); left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; max-height: 78vh; border-radius: 20px 20px 0 0; animation: fx-sheet .32s var(--fx-ease); }
  .fx-dd-wide .fx-dd-scroll { columns: 1; }
  .fx-facts { grid-template-columns: 1fr; }
  .fx-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
}
@keyframes fx-sheet { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .fx-card, .fx-card-img img, .fx-chip, .fx-pin { transition: none; }
  .fx-dd-panel { animation: none; }
}

/* job pages start light, so the shared nav (white text until scrolled) gets a dark band behind it */
.fx-main[data-fitted] { background: linear-gradient(var(--soft-black, #1A3A4A) 0 84px, var(--fx-bg) 84px); }
@media (max-width: 768px) { .fx-main[data-fitted] { background: linear-gradient(var(--soft-black, #1A3A4A) 0 64px, var(--fx-bg) 64px); } }
