/* ==========================================================================
   Raynor Systems - site styles
   Palette mirrors the original site (and Theme/RaynorTheme.cs for MudBlazor).
   ========================================================================== */

:root {
    --rs-green: #5FB47C;
    --rs-green-dark: #49895F;
    --rs-green-tint: #EAF5EE;
    --rs-charcoal: #333333;
    --rs-muted: #7F7F7F;
    --rs-night: #1B1E21;
    --rs-graphite: #2B2D2B;
    --rs-line: #E3E7E5;
    --rs-soft: #F5F7F6;
    --rs-radius: 6px;
    --rs-shadow: 0 10px 30px rgba(20, 30, 25, .10);
    --rs-shadow-sm: 0 4px 14px rgba(20, 30, 25, .08);
    --rs-font-heading: "Mulish", "Roboto", Helvetica, Arial, sans-serif;
    --rs-font-body: "Roboto", Helvetica, Arial, sans-serif;
    --rs-max: 1200px;
}

html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
    font-family: var(--rs-font-body);
    color: var(--rs-charcoal);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--rs-green-dark); }
a:hover { color: var(--rs-green); }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 { font-family: var(--rs-font-heading); color: var(--rs-charcoal); }

.rs-container {
    width: 100%;
    max-width: var(--rs-max);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ---------- Header ---------- */

.site-header {
    position: relative;
    z-index: 20;
    background: var(--rs-night);
}
/* Over a hero image the header goes transparent so the network background shows through. */
body:has(main > .page-hero:first-child) .site-header,
body:has(main > .home-hero:first-child) .site-header { background: rgba(13, 17, 20, .35); }
.site-header + main > .page-hero:first-child,
.site-header + main > .home-hero:first-child { margin-top: -132px; padding-top: 132px; }

.topbar { font-size: .85rem; font-family: var(--rs-font-heading); font-weight: 700; }
.topbar-inner {
    display: flex; gap: 22px; justify-content: flex-end; align-items: center;
    padding-top: 8px; padding-bottom: 4px; flex-wrap: wrap;
}
.topbar a, .topbar span { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar .mud-icon-root { color: var(--rs-green); }
.topbar a:hover { color: var(--rs-green); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 92px; }
.brand img { display: block; width: 200px; height: auto; }

.nav-links { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; align-items: center; }
.nav-links > li { position: relative; }
.nav-links a {
    display: block; padding: 10px 14px; color: #fff; text-decoration: none;
    font-family: var(--rs-font-heading); font-weight: 700; font-size: 1.02rem;
    border-bottom: 2px solid transparent;
}
.nav-links > li > a:hover, .nav-links > li > a.active { border-bottom-color: var(--rs-green); color: #fff; }

.has-sub .sub-menu {
    display: none; position: absolute; top: 100%; left: 0; min-width: 260px;
    list-style: none; margin: 0; padding: 8px 0; background: var(--rs-night);
    border-top: 2px solid var(--rs-green); box-shadow: var(--rs-shadow);
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { display: block; }
.sub-menu a { font-size: .95rem; padding: 10px 18px; }
.sub-menu a:hover, .sub-menu a.active { color: var(--rs-green); }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

@media (max-width: 960px) {
    .topbar-location { display: none !important; }
    .topbar-inner { justify-content: center; gap: 14px; }
    .nav-inner { min-height: 72px; }
    .brand img { width: 160px; }
    .nav-toggle-label {
        display: block; width: 44px; height: 44px; cursor: pointer; position: relative;
    }
    .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
        content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: .2s;
    }
    .nav-toggle-label span { top: 21px; }
    .nav-toggle-label span::before { top: -8px; left: 0; right: 0; }
    .nav-toggle-label span::after { top: 8px; left: 0; right: 0; }
    .nav-toggle:checked + .nav-toggle-label span { background: transparent; }
    .nav-toggle:checked + .nav-toggle-label span::before { top: 0; transform: rotate(45deg); }
    .nav-toggle:checked + .nav-toggle-label span::after { top: 0; transform: rotate(-45deg); }

    .nav-links {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--rs-night); padding: 8px 0 16px; box-shadow: var(--rs-shadow);
    }
    .nav-toggle:checked ~ .nav-links { display: flex; }
    .nav-links a { padding: 12px 24px; border-bottom: 0; }
    .has-sub .sub-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 16px; background: transparent; }
    .site-header + main > .page-hero:first-child,
    .site-header + main > .home-hero:first-child { margin-top: -110px; padding-top: 110px; }
}

/* ---------- Heroes ---------- */

.home-hero, .page-hero {
    position: relative;
    color: #fff;
    background: var(--rs-night) url("/images/hero-network.jpg") center / cover no-repeat;
}
.home-hero::before, .page-hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10, 14, 17, .55), rgba(10, 14, 17, .35));
}
.home-hero > *, .page-hero > * { position: relative; }
.home-hero .rs-container { padding-top: 70px; padding-bottom: 150px; text-align: center; }
.home-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; margin: 0; }
.home-hero p { font-size: 1.2rem; opacity: .85; max-width: 720px; margin: 18px auto 0; }

.page-hero .rs-container { padding-top: 50px; padding-bottom: 80px; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); margin: 0; font-weight: 800; }
.page-hero .hero-sub { margin-top: 12px; font-size: 1.1rem; opacity: .85; max-width: 760px; }
.breadcrumbs { font-size: .9rem; margin-bottom: 14px; opacity: .85; font-family: var(--rs-font-heading); font-weight: 600; }
.breadcrumbs a { color: var(--rs-green); text-decoration: none; }
.breadcrumbs span { margin: 0 8px; opacity: .6; }

/* ---------- Sections ---------- */

.section { padding: 90px 0; }
.section-soft { background: var(--rs-soft); }
.section-dark { background: var(--rs-graphite); color: rgba(255,255,255,.85); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-image { position: relative; background-size: cover; background-position: center; color: #fff; }
.section-image::before { content: ""; position: absolute; inset: 0; background: rgba(20, 26, 24, .82); }
.section-image > * { position: relative; }
.section-image h2, .section-image h3, .section-image h4 { color: #fff; }

.section-title { text-align: center; margin: 0 auto 50px; max-width: 760px; }
.section-title .overline {
    display: inline-block; font-family: var(--rs-font-heading); font-weight: 800; text-transform: uppercase;
    letter-spacing: .14em; color: var(--rs-green); font-size: .85rem; margin-bottom: 8px;
}
.overline-green {
    display: inline-block; font-family: var(--rs-font-heading); font-weight: 800; text-transform: uppercase;
    letter-spacing: .14em; color: var(--rs-green); font-size: .85rem; margin-bottom: 8px;
}
.section-title h2 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; }
.section-title p { color: var(--rs-muted); margin-top: 14px; font-size: 1.05rem; }
.section-dark .section-title p, .section-image .section-title p { color: rgba(255,255,255,.75); }
.section-title .title-rule { width: 64px; height: 3px; background: var(--rs-green); margin: 18px auto 0; border-radius: 2px; }

/* Hand-drawn green underline from the original "Welcome to Raynor Systems" heading */
.scribble {
    position: relative; display: inline-block; font-weight: 400; white-space: nowrap;
}
.scribble svg { position: absolute; left: -2%; bottom: -14px; width: 104%; height: 20px; overflow: visible; }
.scribble path { fill: none; stroke: var(--rs-green); stroke-width: 3; stroke-linecap: round; }

/* ---------- Welcome / "How can we help" ---------- */

.welcome h2 { text-align: center; font-family: "Roboto", sans-serif; font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 0 0 60px; }
.help-card {
    display: grid; grid-template-columns: 1fr 1fr; background: #fff;
    box-shadow: var(--rs-shadow); border-radius: var(--rs-radius); overflow: hidden;
}
.help-card .help-body { padding: 48px 36px; text-align: center; }
.help-card .help-image { background: url("/images/welcome.jpg") center / cover no-repeat; min-height: 360px; }
.help-card .kicker { color: var(--rs-muted); font-size: .95rem; }
.help-card h3 { font-size: 1.9rem; margin: 10px 0 18px; }
.hatch-divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0; }
.hatch-divider::before, .hatch-divider::after {
    content: ""; flex: 1; max-width: 260px; height: 14px;
    background: repeating-linear-gradient(-60deg, var(--rs-charcoal) 0 1.5px, transparent 1.5px 7px);
    opacity: .85;
}
.hatch-divider b { color: var(--rs-green); font-size: 2.4rem; font-family: var(--rs-font-heading); font-weight: 900; line-height: 1; }
.help-option {
    display: block; border: 1px solid #cfd5d2; border-radius: 4px; padding: 20px 18px; margin: 0 auto;
    font-family: var(--rs-font-heading); font-weight: 600; font-size: 1.3rem; color: var(--rs-charcoal);
    text-decoration: none; transition: .2s; background: #fff;
}
.help-option:hover { border-color: var(--rs-green); color: var(--rs-green-dark); box-shadow: var(--rs-shadow-sm); transform: translateY(-2px); }
.help-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rs-green); margin: 22px auto; }
.help-card h4 { font-size: 1.9rem; margin: 18px 0; }
@media (max-width: 860px) {
    .help-card { grid-template-columns: 1fr; }
    .help-card .help-image { min-height: 220px; order: -1; }
    .help-card .help-body { padding: 36px 20px; }
}

/* ---------- Service / feature cards ---------- */

.card-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.feature-card {
    background: #fff; color: var(--rs-charcoal); border-radius: var(--rs-radius); padding: 36px 30px;
    box-shadow: var(--rs-shadow); border-top: 4px solid var(--rs-green); height: 100%; box-sizing: border-box;
}
.feature-card h3 { margin-top: 0; font-size: 1.45rem; color: var(--rs-charcoal) !important; }
.feature-card p { color: var(--rs-muted); }
.feature-card .card-icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--rs-green-tint); color: var(--rs-green-dark); margin-bottom: 18px; }

.check-list { list-style: none; padding: 0; margin: 14px 0 0; }
.check-list li { position: relative; padding: 6px 0 6px 30px; }
.check-list li::before {
    content: ""; position: absolute; left: 2px; top: 11px; width: 14px; height: 8px;
    border-left: 3px solid var(--rs-green); border-bottom: 3px solid var(--rs-green); transform: rotate(-45deg);
}
.check-list.two-col { columns: 2; column-gap: 24px; }
@media (max-width: 600px) { .check-list.two-col { columns: 1; } }

/* "Our Areas of Expertise" numbered blocks */
.expertise-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.expertise-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--rs-radius); padding: 28px 24px; }
.expertise-item .num { font-family: var(--rs-font-heading); font-weight: 900; font-size: 2.6rem; color: var(--rs-green); line-height: 1; }
.expertise-item h3 { margin: 10px 0 12px; font-size: 1.4rem; }
.expertise-item .check-list li { padding-top: 4px; padding-bottom: 4px; color: rgba(255,255,255,.85); }

/* AI-assisted development process */
.process-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.process-step { background: #fff; border-radius: var(--rs-radius); padding: 28px 24px; box-shadow: var(--rs-shadow-sm); border-left: 4px solid var(--rs-green); }
.process-head { display: flex; justify-content: space-between; align-items: center; color: var(--rs-green-dark); }
.process-head .num { font-family: var(--rs-font-heading); font-weight: 900; font-size: 2rem; color: var(--rs-green); line-height: 1; }
.process-step h3 { margin: 14px 0 8px; font-size: 1.25rem; }
.process-step p { color: #5b605d; margin: 0; }
.ai-benefits { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: center; margin-top: 40px; }
.ai-benefits > div { display: flex; align-items: center; gap: 10px; }
.ai-benefits .mud-icon-root { color: var(--rs-green); }

/* About band */
.about-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.about-band h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0 0 18px; }
.about-band .lead { font-size: 1.35rem; color: var(--rs-green); font-family: var(--rs-font-heading); font-weight: 800; }
.stat-row { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 26px; }
.stat b { display: block; font-family: var(--rs-font-heading); font-size: 2.4rem; color: var(--rs-green); font-weight: 900; line-height: 1; }
.stat span { font-size: .9rem; opacity: .8; }
@media (max-width: 860px) { .about-band { grid-template-columns: 1fr; } }

/* Team */
.team-card { display: grid; grid-template-columns: 340px 1fr; gap: 50px; align-items: center; }
.team-card img { width: 100%; border-radius: var(--rs-radius); box-shadow: var(--rs-shadow); aspect-ratio: 4 / 5; object-fit: cover; }
.team-card h3 { font-size: 2rem; margin: 0; }
.team-card .role { color: var(--rs-green); font-family: var(--rs-font-heading); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; }
.team-card p { color: #555; font-size: 1.05rem; }
@media (max-width: 860px) { .team-card { grid-template-columns: 1fr; } .team-card img { max-width: 340px; } }

/* ---------- Forms (static server-rendered) ---------- */

.rs-form { display: grid; gap: 16px; }
.rs-form.inline { grid-template-columns: 1fr 1fr auto; align-items: start; }
@media (max-width: 760px) { .rs-form.inline { grid-template-columns: 1fr; } }
.rs-field label { display: block; font-family: var(--rs-font-heading); font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.rs-field input, .rs-field textarea {
    width: 100%; box-sizing: border-box; border: 1px solid #cfd5d2; border-radius: 4px; padding: 13px 14px;
    font: inherit; color: var(--rs-charcoal); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.rs-field textarea { min-height: 150px; resize: vertical; }
.rs-field input:focus, .rs-field textarea:focus { outline: none; border-color: var(--rs-green); box-shadow: 0 0 0 3px rgba(95,180,124,.2); }
.rs-field input.invalid, .rs-field textarea.invalid { border-color: #D64545; }
.validation-message { color: #D64545; font-size: .85rem; margin-top: 4px; }
.section-image .rs-field label, .section-dark .rs-field label { color: #fff; }
.rs-form .mud-button-root { min-height: 50px; }
.rs-form.inline .mud-button-root { margin-top: 27px; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-success { border-radius: var(--rs-radius); }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: start; }
.contact-panel { background: #fff; border-radius: var(--rs-radius); padding: 36px; box-shadow: var(--rs-shadow); color: var(--rs-charcoal); }
.contact-info h2 { margin-top: 0; }
.contact-info .info-row { display: flex; gap: 14px; align-items: center; margin: 18px 0; }
.contact-info .info-row .mud-icon-root { color: var(--rs-green); }
.contact-info .info-row a { color: inherit; font-weight: 700; text-decoration: none; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Blog ---------- */

.post-card {
    display: flex; flex-direction: column; background: #fff; border-radius: var(--rs-radius); overflow: hidden;
    box-shadow: var(--rs-shadow-sm); transition: transform .2s, box-shadow .2s; height: 100%;
    text-decoration: none; color: inherit;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--rs-shadow); color: inherit; }
.post-card .thumb { aspect-ratio: 16 / 9; background: var(--rs-soft); display: grid; place-items: center; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .thumb img.contain { object-fit: contain; width: 40%; height: 60%; }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: .85rem; color: var(--rs-muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.post-meta .cat { color: var(--rs-green-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; }
.post-card h3 { font-size: 1.25rem; margin: 10px 0; line-height: 1.35; }
.post-card p { color: #666; margin: 0 0 18px; flex: 1; }
.read-more { font-family: var(--rs-font-heading); font-weight: 800; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; color: var(--rs-green-dark); }

.category-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.category-bar a {
    padding: 8px 16px; border-radius: 999px; border: 1px solid var(--rs-line); text-decoration: none;
    color: var(--rs-charcoal); font-family: var(--rs-font-heading); font-weight: 700; font-size: .9rem;
}
.category-bar a.active, .category-bar a:hover { background: var(--rs-green); border-color: var(--rs-green); color: #fff; }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 50px; flex-wrap: wrap; }
.pager a, .pager span {
    min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 4px; padding: 0 10px;
    border: 1px solid var(--rs-line); text-decoration: none; color: var(--rs-charcoal); font-weight: 700; box-sizing: border-box;
}
.pager .current { background: var(--rs-green); border-color: var(--rs-green); color: #fff; }

.post-layout { max-width: 860px; margin: 0 auto; }
.post-featured { text-align: center; margin: -40px 0 30px; }
.post-featured img { max-height: 380px; width: auto; border-radius: var(--rs-radius); box-shadow: var(--rs-shadow); background: #fff; }

/* Rendered Markdown */
.prose { font-size: 1.08rem; line-height: 1.8; color: #2f3432; }
.prose h2 { font-size: 1.8rem; margin: 2.2em 0 .6em; }
.prose h3 { font-size: 1.4rem; margin: 1.8em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.2em; }
.prose img { border-radius: var(--rs-radius); box-shadow: var(--rs-shadow-sm); margin: 10px 0; }
.prose blockquote {
    margin: 1.6em 0; padding: 14px 22px; border-left: 4px solid var(--rs-green);
    background: var(--rs-green-tint); border-radius: 0 var(--rs-radius) var(--rs-radius) 0; color: #2f3e35;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose :not(pre) > code {
    background: #eef1ef; padding: .15em .4em; border-radius: 4px; font-size: .9em;
    font-family: "Cascadia Code", Consolas, "Courier New", monospace; color: #2b5d3c;
}
.prose pre { margin: 1.4em 0; border-radius: var(--rs-radius); overflow: auto; background: #282c34; }
.prose pre code { display: block; padding: 18px 20px; font-size: .9rem; line-height: 1.6; font-family: "Cascadia Code", Consolas, "Courier New", monospace; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.4em 0; }
.prose th, .prose td { border: 1px solid var(--rs-line); padding: 8px 12px; text-align: left; }
.prose a { color: var(--rs-green-dark); font-weight: 500; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 60px; border-top: 1px solid var(--rs-line); padding-top: 30px; }
.post-nav a { text-decoration: none; color: inherit; padding: 18px; border-radius: var(--rs-radius); border: 1px solid var(--rs-line); }
.post-nav a:hover { border-color: var(--rs-green); }
.post-nav small { display: block; color: var(--rs-muted); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; }
.post-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: 1; } }

/* ---------- Projects ---------- */

.project-card {
    display: block; position: relative; border-radius: var(--rs-radius); overflow: hidden; background: #fff;
    box-shadow: var(--rs-shadow-sm); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--rs-shadow); color: inherit; }
.project-card .shot { aspect-ratio: 4 / 3; overflow: hidden; background: var(--rs-soft); }
.project-card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: object-position 3s ease; }
.project-card:hover .shot img { object-position: bottom; }
.project-card .caption { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.project-card .caption h3 { font-size: 1.1rem; margin: 0; }
.project-card .tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--rs-green-dark); background: var(--rs-green-tint); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }

.project-detail { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: start; }
.screenshot-frame { border-radius: var(--rs-radius); box-shadow: var(--rs-shadow); overflow: auto; max-height: 720px; border: 1px solid var(--rs-line); }
.screenshot-frame img { display: block; width: 100%; }
@media (max-width: 860px) { .project-detail { grid-template-columns: 1fr; } }

/* ---------- Service pages ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split img { border-radius: var(--rs-radius); box-shadow: var(--rs-shadow); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.faq { max-width: 900px; margin: 0 auto; }
.faq details { border: 1px solid var(--rs-line); border-radius: var(--rs-radius); margin-bottom: 14px; background: #fff; }
.faq summary {
    cursor: pointer; padding: 18px 50px 18px 22px; font-family: var(--rs-font-heading); font-weight: 800;
    font-size: 1.1rem; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 12px; font-size: 1.6rem; color: var(--rs-green); }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { color: var(--rs-green-dark); }
.faq .answer { padding: 0 22px 18px; color: #555; }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 16px 0; }
.pill-list li { background: var(--rs-green-tint); color: var(--rs-green-dark); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; }

.cta-band { background: var(--rs-green); color: #fff; padding: 50px 0; }
.cta-band .rs-container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; font-size: 1.8rem; }

/* ---------- Footer ---------- */

.site-footer { background: var(--rs-night); color: rgba(255,255,255,.72); padding-top: 70px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo { width: 180px; height: auto; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin: 6px 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: var(--rs-green); }
.footer-contact .mud-icon-root { color: var(--rs-green); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.footer-social a:hover { background: var(--rs-green); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 50px; padding: 22px 0; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */

.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.empty-state { text-align: center; color: var(--rs-muted); padding: 40px 0; }

#blazor-error-ui {
    background: lightyellow; bottom: 0; box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2); box-sizing: border-box;
    display: none; left: 0; padding: 0.6rem 1.25rem 0.7rem 1.25rem; position: fixed; width: 100%; z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

/* ---------- Admin ---------- */

.admin-editor-textarea {
    width: 100%; box-sizing: border-box; min-height: 520px; resize: vertical; padding: 16px;
    border: 1px solid var(--mud-palette-lines-inputs); border-radius: var(--mud-default-borderradius);
    font-family: "Cascadia Code", Consolas, "Courier New", monospace; font-size: .92rem; line-height: 1.6;
    color: var(--mud-palette-text-primary); background: var(--mud-palette-surface); tab-size: 4;
}
.admin-editor-textarea:focus { outline: none; border-color: var(--mud-palette-primary); }
.admin-preview { min-height: 520px; max-height: 760px; overflow: auto; padding: 8px 20px; border: 1px solid var(--mud-palette-lines-default); border-radius: var(--mud-default-borderradius); }
.media-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.media-grid .media-thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--rs-soft); display: grid; place-items: center; }
.media-grid .media-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.media-grid .media-thumb.selected { outline: 3px solid var(--rs-green); }
.login-wrap { min-height: 60vh; display: grid; place-items: center; padding: 60px 20px; }
.login-card { width: 100%; max-width: 420px; }
