/* ForwardConnects — public site styles (Web host only) */
:root {
    --fc-ink: #14202e;
    --fc-muted: #5d6b7a;
    --fc-line: #e2e8ee;
    --fc-bg: #ffffff;
    --fc-bg-soft: #f6f8fa;
    --fc-primary: #1f6f5c;
    --fc-primary-ink: #ffffff;
    --fc-accent: #d97706;
    --fc-radius: 10px;
    --fc-max: 1080px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--fc-ink);
    background: var(--fc-bg);
    line-height: 1.6;
}

a { color: var(--fc-primary); }

.page { display: flex; flex-direction: column; min-height: 100vh; }

.site-header {
    border-bottom: 1px solid var(--fc-line);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wordmark {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--fc-ink);
}

.content {
    flex: 1;
    width: 100%;
    max-width: var(--fc-max);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.site-footer {
    border-top: 1px solid var(--fc-line);
    padding: 2rem 1.5rem;
    background: var(--fc-bg-soft);
    font-size: 0.9rem;
}
.site-footer p { margin: 0.25rem 0; }

.muted { color: var(--fc-muted); }

/* ---- hero / landing ---- */

.hero { padding: 2rem 0 3rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0.5rem 0; }
.tagline { font-size: 1.25rem; font-weight: 600; color: var(--fc-primary); margin: 0.25rem 0 1rem; }
.lede { font-size: 1.05rem; color: var(--fc-muted); max-width: 60ch; }

.notice, .success, .error {
    border-radius: var(--fc-radius);
    padding: 0.85rem 1rem;
    margin: 1rem 0;
    border: 1px solid var(--fc-line);
}
.notice  { background: #fff8ed; border-color: #f5d6a8; }
.success { background: #edf7f3; border-color: #b9ddd0; }
.error   { background: #fdeceb; border-color: #f2bfbb; color: #8c2f28; }

.town-grid {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem;
}
.town-card {
    border: 1px solid var(--fc-line);
    border-radius: var(--fc-radius);
    background: var(--fc-bg);
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.town-card:hover { border-color: var(--fc-primary); transform: translateY(-2px); }
.town-card h3 { margin: 0.5rem 0 0.35rem; font-size: 1.15rem; }
.town-card p  { margin: 0; color: var(--fc-muted); font-size: 0.92rem; }
.town-card-link, .town-card-body {
    display: block; padding: 1.25rem; text-decoration: none; color: inherit; height: 100%;
}
.town-card-body a { display: inline-block; margin-top: 0.75rem; font-size: 0.92rem; font-weight: 600; }
.town-card.is-soon { background: var(--fc-bg-soft); }

.badge {
    display: inline-block; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em; padding: 0.2rem 0.5rem; border-radius: 999px;
}
.badge-live { background: #e2f1eb; color: var(--fc-primary); }
.badge-soon { background: #fbeedd; color: #a8600a; }

.how-grid {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem;
}
.how-grid h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.how-grid p  { margin: 0; color: var(--fc-muted); font-size: 0.95rem; }

.interest { margin-top: 3rem; }
.interest form { max-width: 32rem; }
.interest label { display: block; margin-bottom: 1rem; font-weight: 600; font-size: 0.92rem; }
.interest input, .interest textarea {
    display: block; width: 100%; margin-top: 0.35rem; padding: 0.6rem 0.7rem;
    border: 1px solid var(--fc-line); border-radius: 8px; font: inherit; font-weight: 400;
}
.interest input:focus, .interest textarea:focus {
    outline: 2px solid var(--fc-primary); outline-offset: 1px; border-color: var(--fc-primary);
}
.req { color: var(--fc-accent); }

button[type="submit"] {
    background: var(--fc-primary); color: var(--fc-primary-ink); border: 0; border-radius: 8px;
    padding: 0.65rem 1.4rem; font: inherit; font-weight: 600; cursor: pointer;
}
button[type="submit"]:hover { filter: brightness(1.08); }

.back { margin-top: 2.5rem; }
section { margin-bottom: 2.5rem; }
h2 { font-size: 1.4rem; letter-spacing: -0.01em; }

/* ---- town homepage sections (rendered by the shared module component) ---- */

.town-themed { display: block; }
.sec { margin: 0 0 2.5rem; }
.sec-hero {
    border-radius: var(--fc-radius); background: var(--fc-bg-soft); padding: 3.5rem 2rem;
    text-align: center; background-size: cover; background-position: center;
}
.sec-hero.has-bg { color: #fff; position: relative; overflow: hidden; }
.sec-hero.has-bg::before { content: ""; position: absolute; inset: 0; background: rgba(20, 32, 46, 0.5); }
.sec-hero-inner { position: relative; max-width: 46rem; margin: 0 auto; }
.sec-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 0.75rem; letter-spacing: -0.02em; }
.sec-hero .sec-sub { font-size: 1.2rem; margin: 0 0 1.5rem; opacity: 0.95; }
.sec-text { max-width: 46rem; }
.sec-text h2 { font-size: 1.5rem; margin: 0 0 0.75rem; }
.sec-text p { margin: 0 0 1rem; }
.sec-image { margin-left: 0; margin-right: 0; }
.sec-image img { width: 100%; max-width: 100%; border-radius: var(--fc-radius); display: block; }
.sec-image figcaption { color: var(--fc-muted); font-size: 0.9rem; margin-top: 0.5rem; text-align: center; }
.sec-cta { background: var(--fc-primary); color: #fff; border-radius: var(--fc-radius); padding: 2.5rem 2rem; text-align: center; }
.sec-cta h2 { margin: 0 0 0.5rem; }
.sec-cta p { margin: 0 0 1.25rem; opacity: 0.95; }
.sec-btn {
    display: inline-block; background: var(--fc-primary); color: #fff; padding: 0.7rem 1.6rem;
    border-radius: 8px; font-weight: 600; text-decoration: none;
}
.sec-btn:hover { filter: brightness(1.08); }
.sec-hero.has-bg .sec-btn, .sec-cta .sec-btn { background: #fff; color: var(--fc-primary); }

#blazor-error-ui {
    background: #ffe9e9; border-top: 1px solid #f2bfbb; bottom: 0; display: none;
    left: 0; padding: 0.6rem 1.25rem; position: fixed; width: 100%; z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

/* ---- public directory (town page) ---- */

.dir-grid {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem;
}
.dir-card {
    border: 1px solid var(--fc-line); border-radius: var(--fc-radius); background: var(--fc-bg);
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.dir-card:hover { border-color: var(--fc-primary); transform: translateY(-2px); }
.dir-card a { display: block; padding: 1.25rem; text-decoration: none; color: inherit; }
.dir-logo { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; margin-bottom: 0.5rem; }
.dir-card h4 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.dir-card p { margin: 0; color: var(--fc-muted); font-size: 0.92rem; }
.dir-cat { font-size: 1.05rem; margin: 1.5rem 0 0.75rem; color: var(--fc-muted); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; }
.dir-cat:first-of-type { margin-top: 0.5rem; }

/* ---- public events list ---- */

.ev-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.ev-item { display: flex; gap: 1rem; border: 1px solid var(--fc-line); border-radius: var(--fc-radius); padding: 1rem 1.25rem; }
.ev-date {
    flex: 0 0 auto; width: 3.5rem; text-align: center; border-radius: 8px;
    background: var(--fc-bg-soft); padding: 0.4rem 0; align-self: flex-start;
}
.ev-mon { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--fc-primary); }
.ev-day { display: block; font-size: 1.4rem; font-weight: 700; line-height: 1; }
.ev-item h3 { margin: 0 0 0.2rem; font-size: 1.1rem; }
.ev-item p { margin: 0.15rem 0; font-size: 0.95rem; }
.see-all { font-size: 0.85rem; font-weight: 600; margin-left: 0.5rem; }
.submit-cta { margin-top: 2rem; }

/* ---- partner one-page website ---- */

.partner-banner {
    border-radius: var(--fc-radius); background: var(--fc-bg-soft); padding: 3.5rem 2rem;
    text-align: center; background-size: cover; background-position: center; margin-bottom: 2rem;
}
.partner-banner.has-img { color: #fff; position: relative; overflow: hidden; }
.partner-banner.has-img::before { content: ""; position: absolute; inset: 0; background: rgba(20,32,46,0.55); }
.partner-banner-inner { position: relative; }
.partner-logo {
    width: 96px; height: 96px; object-fit: cover; border-radius: 14px;
    border: 3px solid #fff; margin-bottom: 1rem; background: #fff;
}
.partner-banner h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.partner-tagline { font-size: 1.15rem; margin: 0; opacity: 0.95; }

.partner-body { display: grid; grid-template-columns: 1fr 20rem; gap: 2.5rem; align-items: start; }
.partner-main p { margin: 0 0 1rem; }
.partner-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; margin-top: 1.5rem; }
.partner-gallery img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; }

.partner-side { border: 1px solid var(--fc-line); border-radius: var(--fc-radius); padding: 1.5rem; background: var(--fc-bg-soft); }
.partner-side h2 { font-size: 1.05rem; margin: 0 0 0.75rem; }
.partner-side h2:not(:first-child) { margin-top: 1.5rem; }
.partner-contact { list-style: none; padding: 0; margin: 0; }
.partner-contact li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; border-bottom: 1px solid var(--fc-line); font-size: 0.95rem; }
.partner-contact li span { color: var(--fc-muted); }
.partner-address { margin: 0; color: var(--fc-muted); }

@media (max-width: 720px) {
    .partner-body { grid-template-columns: 1fr; }
}

/* ============================================================================
   FC #22 - umbrella landing page. All classes namespaced fc-* (zero HC overlap).
   Mobile-first: single column by default, grids unlock at min-width breakpoints.
   Colors go through var(--fc-*, fallback) so per-town theming can override where
   it applies; the umbrella page resolves them from :root above (FC #20 contract:
   theme vars are emitted only on .town-themed, so the landing uses site defaults).
   ============================================================================ */

.fc-landing { display: block; }
.fc-muted { color: var(--fc-muted, #5d6b7a); }

/* The landing is full-bleed, but .content (MainLayout) constrains width. Break out
   so hero/manifesto span edge to edge without touching the shared layout. */
.fc-hero, .fc-manifesto {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
}

.fc-notice {
    border-radius: var(--fc-radius, 10px); padding: 0.85rem 1rem; margin: 0 0 1.5rem;
    background: #fff8ed; border: 1px solid #f5d6a8;
}

.fc-section-title {
    font-size: clamp(1.4rem, 4vw, 1.9rem); letter-spacing: -0.02em; margin: 0 0 1.25rem;
}

/* ---- buttons ---- */
.fc-btn {
    padding: 0.8rem 1.5rem; border-radius: 999px;
    font-weight: 650; text-decoration: none; line-height: 1.2;
    min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: transform 0.15s ease, filter 0.15s ease;
}
.fc-btn--primary { background: var(--fc-primary, #1f6f5c); color: #fff; }
.fc-btn--ghost   { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.55); }
.fc-btn:hover    { filter: brightness(1.08); transform: translateY(-1px); }
.fc-btn:focus-visible { outline: 3px solid var(--fc-accent, #d97706); outline-offset: 2px; }

/* ---- 1. hero ---- */
.fc-hero {
    padding: 4rem 1.25rem 4.5rem; text-align: center; color: #fff;
    background-size: cover; background-position: center; position: relative;
}
.fc-hero--gradient {
    background-image: linear-gradient(150deg, #12352c 0%, var(--fc-primary, #1f6f5c) 55%, #2b7f69 100%);
}
.fc-hero--photo::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,20,16,0.85) 0%, rgba(10,20,16,0.45) 60%, rgba(10,20,16,0.3) 100%);
}
.fc-hero__inner { position: relative; max-width: 46rem; margin: 0 auto; }
.fc-hero__title {
    font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 1rem;
}
.fc-hero__sub { font-size: clamp(1rem, 2.6vw, 1.2rem); opacity: 0.94; margin: 0 auto 2rem; max-width: 40rem; }
.fc-hero__ctas { display: flex; flex-direction: column; gap: 0.75rem; align-items: stretch; }

/* ---- 2. manifesto ---- */
.fc-manifesto {
    padding: 4rem 1.25rem; color: #fff; background-color: #14202e;
    background-size: cover; background-position: center; position: relative;
}
.fc-manifesto--photo::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(8,14,20,0.92) 20%, rgba(8,14,20,0.72) 100%);
}
.fc-manifesto__inner { position: relative; max-width: 46rem; margin: 0 auto; }
.fc-manifesto__block { margin-bottom: 2rem; }
.fc-manifesto__block h2 { font-size: clamp(1.2rem, 3.6vw, 1.6rem); margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.fc-manifesto__block p  { margin: 0; opacity: 0.92; }
.fc-pullquote {
    margin: 2.5rem 0 0; padding: 0; text-align: center; border: 0;
    font-size: clamp(1.4rem, 5vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em;
    color: var(--fc-accent, #d97706);
}

/* ---- 3. pillars ---- */
.fc-pillars { padding: 3.5rem 0 1rem; }
.fc-pillar-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.fc-pillar {
    border: 1px solid var(--fc-line, #e2e8ee); border-radius: var(--fc-radius, 10px);
    padding: 1.5rem; background: var(--fc-bg, #fff);
}
.fc-pillar__icon { display: block; width: 32px; height: 32px; color: var(--fc-primary, #1f6f5c); margin-bottom: 0.75rem; }
.fc-pillar__icon svg { width: 100%; height: 100%; }
.fc-pillar h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.fc-pillar p  { margin: 0; color: var(--fc-muted, #5d6b7a); font-size: 0.96rem; }

/* ---- 4. network ---- */
.fc-network { padding: 3.5rem 0 1rem; }
.fc-town-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.fc-town-card {
    border: 1px solid var(--fc-line, #e2e8ee); border-radius: var(--fc-radius, 10px);
    background: var(--fc-bg, #fff); overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.fc-town-card:hover {
    border-color: var(--fc-primary, #1f6f5c); transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(20,32,46,0.08);
}
.fc-town-card__link, .fc-town-card__body {
    display: block; padding: 1.35rem; text-decoration: none; color: inherit; height: 100%;
}
.fc-town-card__img {
    display: block; height: 130px; object-fit: cover;
    margin: -1.35rem -1.35rem 0.9rem; width: calc(100% + 2.7rem);
}
.fc-town-card h3 { margin: 0.5rem 0 0.35rem; font-size: 1.15rem; }
.fc-town-card p  { margin: 0; color: var(--fc-muted, #5d6b7a); font-size: 0.92rem; }
.fc-town-card.is-soon { background: var(--fc-bg-soft, #f6f8fa); }
.fc-town-card__body a { display: inline-block; margin-top: 0.7rem; font-weight: 600; font-size: 0.92rem; }

.fc-badge {
    display: inline-block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; padding: 0.2rem 0.55rem; border-radius: 999px;
}
.fc-badge--live { background: #e2f1eb; color: var(--fc-primary, #1f6f5c); }
.fc-badge--soon { background: #fbeedd; color: #a8600a; }

/* ---- 5. testimonials ---- */
.fc-tm { padding: 3.5rem 0 1rem; }
.fc-tm__spotlight {
    margin: 0 0 1.25rem; padding: 2rem 1.5rem; border-radius: var(--fc-radius, 10px);
    background: var(--fc-bg-soft, #f6f8fa); border-left: 4px solid var(--fc-primary, #1f6f5c);
}
.fc-tm__spotlight blockquote {
    margin: 0 0 1rem; padding: 0; border: 0;
    font-size: clamp(1.05rem, 3vw, 1.3rem); line-height: 1.5; font-weight: 500;
}
.fc-tm__pair { display: grid; gap: 1rem; margin-bottom: 1.25rem; }
.fc-tm__card {
    margin: 0; padding: 1.35rem; border: 1px solid var(--fc-line, #e2e8ee);
    border-radius: var(--fc-radius, 10px);
}
.fc-tm__card blockquote { margin: 0 0 0.85rem; padding: 0; border: 0; font-size: 0.98rem; }
.fc-tm figcaption { font-size: 0.9rem; display: flex; flex-direction: column; gap: 0.1rem; }
.fc-tm__strip { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.fc-tm__strip li {
    background: var(--fc-bg-soft, #f6f8fa); border-radius: var(--fc-radius, 10px);
    padding: 1rem 1.15rem; font-size: 0.92rem;
}
.fc-tm__stars { color: var(--fc-accent, #d97706); letter-spacing: 0.1em; display: block; margin-bottom: 0.35rem; }
.fc-tm__strip q { display: block; margin-bottom: 0.4rem; }
.fc-tm__strip cite { font-style: normal; font-weight: 650; font-size: 0.85rem; color: var(--fc-muted, #5d6b7a); }

/* ---- 6. founder ---- */
.fc-founder { padding: 3.5rem 0 1rem; display: grid; gap: 1.5rem; align-items: start; }
.fc-founder__media img {
    width: 100%; max-width: 320px; border-radius: var(--fc-radius, 10px); display: block;
}
.fc-founder__placeholder {
    width: 100%; max-width: 320px; aspect-ratio: 4 / 5; border-radius: var(--fc-radius, 10px);
    background: linear-gradient(140deg, var(--fc-primary, #1f6f5c), #2b7f69);
}
.fc-founder__body h2 { font-size: clamp(1.25rem, 3.6vw, 1.7rem); margin: 0 0 0.9rem; letter-spacing: -0.01em; }
.fc-founder__body p  { margin: 0 0 1rem; }
.fc-founder__sig { font-weight: 700; }

/* ---- 7. FAQ ---- */
.fc-faq { padding: 3.5rem 0 1rem; }
.fc-faq__list { display: grid; gap: 0.6rem; }
.fc-faq__item {
    border: 1px solid var(--fc-line, #e2e8ee); border-radius: var(--fc-radius, 10px);
    background: var(--fc-bg, #fff); padding: 0 1.15rem;
}
.fc-faq__item summary {
    cursor: pointer; font-weight: 650; padding: 1rem 0; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    min-height: 44px;
}
.fc-faq__item summary::-webkit-details-marker { display: none; }
.fc-faq__item summary::after { content: "+"; font-size: 1.35rem; color: var(--fc-primary, #1f6f5c); line-height: 1; }
.fc-faq__item[open] summary::after { content: "\2013"; }
.fc-faq__item p { margin: 0 0 1rem; color: var(--fc-muted, #5d6b7a); }
.fc-faq__item summary:focus-visible { outline: 3px solid var(--fc-accent, #d97706); outline-offset: 2px; }

/* ---- 8. interest form ---- */
.fc-interest { padding: 3.5rem 0 1rem; }
.fc-interest__lede { color: var(--fc-muted, #5d6b7a); max-width: 40rem; margin: -0.5rem 0 1.5rem; }
.fc-interest form { max-width: 32rem; }
.fc-interest label { display: block; margin-bottom: 1rem; font-weight: 600; font-size: 0.92rem; }
.fc-interest input, .fc-interest textarea {
    display: block; width: 100%; margin-top: 0.35rem; padding: 0.7rem;
    border: 1px solid var(--fc-line, #e2e8ee); border-radius: 8px; font: inherit; font-weight: 400;
    min-height: 44px;
}
.fc-interest input:focus, .fc-interest textarea:focus {
    outline: 2px solid var(--fc-primary, #1f6f5c); outline-offset: 1px; border-color: var(--fc-primary, #1f6f5c);
}
.fc-req { color: var(--fc-accent, #d97706); }
.fc-success, .fc-error {
    border-radius: var(--fc-radius, 10px); padding: 0.85rem 1rem; margin: 1rem 0; border: 1px solid;
}
.fc-success { background: #edf7f3; border-color: #b9ddd0; }
.fc-error   { background: #fdeceb; border-color: #f2bfbb; color: #8c2f28; }

/* ---- 9. credits ---- */
.fc-credits { padding: 2.5rem 0 1rem; font-size: 0.82rem; color: var(--fc-muted, #5d6b7a); }
.fc-credits h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.5rem; }
.fc-credits ul { margin: 0; padding-left: 1.1rem; }

/* ---- breakpoints ---- */
@media (min-width: 560px) {
    .fc-hero__ctas { flex-direction: row; justify-content: center; }
}
@media (min-width: 760px) {
    .fc-hero { padding: 6rem 2rem 6.5rem; }
    .fc-manifesto { padding: 5.5rem 2rem; }
    .fc-pillar-grid { grid-template-columns: repeat(3, 1fr); }
    .fc-town-grid   { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .fc-tm__pair    { grid-template-columns: 1fr 1fr; }
    .fc-tm__strip   { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .fc-founder     { grid-template-columns: 320px 1fr; gap: 2.5rem; }
    .fc-tm__spotlight { padding: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .fc-btn, .fc-town-card { transition: none; }
    .fc-btn:hover, .fc-town-card:hover { transform: none; }
}

/* FC #22 follow-up: kill browser default focus outline on programmatically-focused non-interactive elements.
   Blazor's router focuses the H1 with tabindex="-1" for screen-reader accessibility on navigation —
   that shouldn't paint a visible box on page load. Keyboard-tab focus rings on real interactive
   elements (buttons, links, inputs) still work via their own :focus / :focus-visible rules. */
[tabindex="-1"]:focus { outline: none; }

/* ============================================================================
   FC #21 - partner detail rendering parity with HutchConnect (Phase A).
   Every selector namespaced fc-* (zero HC overlap). Colors resolve through
   var(--fc-*) so per-town theme (emitted on .town-themed) carries through.
   Copy-adapted from HC's hc-detail-* patterns, never referenced.
   ============================================================================ */

.fc-detail { display: block; }

/* ---- breadcrumb ---- */
.fc-breadcrumb {
    display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
    font-size: 0.84rem; color: var(--fc-muted); margin-bottom: 1.25rem; padding: 0.4rem 0;
}
.fc-breadcrumb a { color: var(--fc-primary); text-decoration: none; }
.fc-breadcrumb a:hover { text-decoration: underline; }
.fc-breadcrumb-sep { color: #cbd5e1; user-select: none; }
.fc-breadcrumb-current { color: var(--fc-ink); font-weight: 500; }

/* ---- reusable section heading + card ---- */
.fc-section-heading {
    font-size: 1.1rem; font-weight: 700; color: var(--fc-ink);
    margin: 0 0 0.875rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--fc-line);
}
.fc-detail-section { margin-bottom: 1.25rem; }
.fc-detail-card {
    border: 1px solid var(--fc-line); border-radius: var(--fc-radius);
    background: var(--fc-bg); padding: 1.5rem;
}

/* ---- blurred-background hero ---- */
.fc-detail-hero-outer {
    position: relative; border-radius: 16px; overflow: hidden;
    margin-bottom: 1.5rem; box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.fc-detail-hero-blur {
    position: absolute; inset: -40px; background-size: cover; background-position: center;
    filter: blur(32px) saturate(2.2) brightness(1.05); transform: scale(1.15); z-index: 0;
}
.fc-detail-hero-blur-banner { filter: blur(24px) saturate(1.4) brightness(0.6); }
.fc-detail-hero-banner-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center center; z-index: 1;
}
.fc-detail-hero-banner-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.35); z-index: 2; }
.fc-detail-hero-blur-default {
    background: linear-gradient(135deg, var(--fc-primary), #0891b2); filter: none;
}
.fc-detail-hero-blur-overlay { position: absolute; inset: 0; background: rgba(255,255,255,0.68); z-index: 1; }
.fc-detail-hero-fade {
    position: absolute; bottom: 0; left: 0; right: 0; height: 32px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6));
    z-index: 4; pointer-events: none;
}
.fc-detail-hero {
    position: relative; z-index: 3; padding: 3rem 2.5rem 2.5rem;
    display: flex; align-items: flex-end; gap: 1.5rem; background: transparent; min-height: 420px;
}
.fc-detail-hero-logo {
    width: 110px; height: 110px; border-radius: 12px; background: rgba(255,255,255,0.95);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    flex-shrink: 0; border: 2px solid rgba(255,255,255,0.85); box-shadow: 0 2px 12px rgba(0,0,0,0.14);
}
.fc-detail-hero-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.fc-detail-hero-logo-placeholder { font-size: 2.2rem; font-weight: 700; color: var(--fc-primary); }
.fc-detail-hero-text h1 {
    color: var(--fc-ink); font-size: 2rem; font-weight: 800; margin: 0 0 0.25rem;
    text-shadow: 0 1px 3px rgba(255,255,255,0.6); line-height: 1.2;
}
.fc-detail-hero-tagline { color: #334155; font-size: 1.1rem; margin: 0; font-weight: 700; }

.fc-detail-hero.fc-detail-hero--banner { min-height: min(600px, 55vw); }
.fc-detail-hero--banner .fc-detail-hero-text h1 { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.fc-detail-hero--banner .fc-detail-hero-tagline { color: rgba(255,255,255,0.88); }
.fc-detail-hero--banner .fc-detail-hero-logo { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.5); }

/* ---- badges row ---- */
.fc-badges-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.fc-badge {
    display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; font-weight: 600;
    padding: 0.3rem 0.75rem; border-radius: 20px; border: 1px solid transparent; white-space: nowrap;
}
.fc-badge-category { background: var(--fc-bg-soft); color: var(--fc-primary); border-color: var(--fc-line); }
.fc-badge-verified { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.fc-badge-tier { background: #fef9c3; color: #854d0e; border-color: #fde047; }

/* ---- two-column layout ---- */
.fc-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 1.25rem; align-items: start; }

/* ---- contact rows ---- */
.fc-contact-list { display: flex; flex-direction: column; gap: 0.75rem; }
.fc-contact-row {
    display: flex; align-items: center; gap: 0.625rem;
    color: var(--fc-ink); text-decoration: none; font-size: 0.875rem;
}
.fc-contact-row:hover { color: var(--fc-primary); }
.fc-contact-icon {
    width: 32px; height: 32px; border-radius: 8px; display: flex;
    align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.fc-contact-icon-phone { background: #f0fdfa; color: #0d9488; }
.fc-contact-icon-email { background: #eff6ff; color: #2563eb; }
.fc-contact-icon-web { background: #f5f3ff; color: #7c3aed; }
.fc-contact-break { word-break: break-all; }

/* ---- location ---- */
.fc-detail-address { font-style: normal; line-height: 1.6; color: var(--fc-ink); margin: 0 0 0.75rem; }
.fc-map-link { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.fc-map-link:hover { text-decoration: underline; }

/* ---- photo gallery ---- */
.fc-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
.fc-photo-grid img { width: 100%; height: 130px; object-fit: cover; border-radius: 8px; }

/* ---- social buttons ---- */
.fc-social-list { display: flex; flex-direction: column; gap: 0.5rem; }
.fc-social-btn {
    display: flex; align-items: center; gap: 0.625rem; padding: 0.625rem 0.875rem;
    color: #fff; border-radius: 8px; font-weight: 600; font-size: 0.875rem;
    text-decoration: none; transition: opacity 0.2s ease;
}
.fc-social-btn:hover { opacity: 0.9; color: #fff; text-decoration: none; }
.fc-social-facebook { background: #1877f2; }
.fc-social-instagram { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }

/* ---- back link ---- */
.fc-back-link {
    display: flex; align-items: center; gap: 0.375rem;
    color: var(--fc-primary); font-size: 0.875rem; font-weight: 500; text-decoration: none;
}
.fc-back-link:hover { text-decoration: underline; }

/* ---- description prose (safe rendered) ---- */
.fc-description { font-size: 0.95rem; line-height: 1.8; color: #374151; }
.fc-description p { margin: 0 0 1rem; }
.fc-description p:last-child { margin-bottom: 0; }
.fc-description p:empty { display: none; }

/* ---- responsive: stack the grid + collapse the hero on small screens ---- */
@media (max-width: 768px) {
    .fc-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .fc-detail-hero {
        flex-direction: column; align-items: flex-start;
        padding: 1.5rem 1.25rem 1.25rem; gap: 0.875rem; min-height: 300px;
    }
    .fc-detail-hero.fc-detail-hero--banner { min-height: 200px; }
    .fc-detail-hero-logo { width: 72px; height: 72px; }
    .fc-detail-hero-text h1 { font-size: 1.35rem; }
    .fc-detail-hero-tagline { font-size: 0.95rem; }
}
