@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Noto+Serif+Thai:wght@400;500;600&display=swap');

/* MentalInsight owns the copper accent; other Nexora apps can set their own. */
:root {
    --app-nexora-accent: light-dark(#96502e, #e2ad8c);
    --app-nexora-on-accent: light-dark(#fffaf6, #241b16);
    --app-nexora-accent-highlight: light-dark(#a65e3a, #efc5a9);
    --app-nexora-accent-soft: light-dark(#f6e9df, #352821);
    --app-nexora-accent-border: light-dark(#c7987a, #956e56);
}
html[data-appearance="nexora"] {
    --app-font-body: "Noto Sans Thai Looped", "Figtree", sans-serif;
    --app-font-heading: "Cormorant Garamond", "Noto Serif Thai", serif;
}
html[data-appearance="nexora"] .main-layout__brand > span { font-family: var(--app-font-heading); font-size: 1.4rem; font-weight: 500; letter-spacing: -.015em; }
.app-shell .app-shell__navigation-footer .company-footer {
    justify-content: flex-start;
    gap: .2rem .35rem;
    padding: .1rem;
    border: 0;
    font-size: .72rem;
    line-height: 1.8;
    letter-spacing: 0;
}
.app-shell .app-shell__navigation-footer .company-footer a { display: inline-flex; min-height: 1.5rem; align-items: center; font-weight: 400; text-decoration: none; }
.app-shell .app-shell__navigation-footer .company-footer a:hover { text-decoration: underline; }
.app-shell .app-shell__navigation-footer .company-footer__separator { display: none; }
.app-shell .app-shell__navigation-footer .company-footer__version { flex-basis: 100%; }
.participant-retreat { display: none; }
@media (min-width: 65.01rem) {
    html[data-appearance="nexora"] .participant-retreat { position: relative; display: grid; min-height: clamp(18rem, 42vh, 30rem); overflow: hidden; align-items: start; margin: 1.25rem .25rem .5rem; border-radius: .65rem; background: var(--app-accent-soft); }
    .participant-retreat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 57% center; }
    .participant-retreat::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, #fff5e8ed, #fff5e8a3 38%, transparent 70%); }
    .participant-retreat p { position: relative; z-index: 1; max-width: 12rem; margin: 0; padding: 1.25rem; color: #744323; font-family: var(--app-font-heading); font-size: 1.35rem; font-style: italic; line-height: 1.6; }
}
@media (min-width: 48.01rem) { html:has(.app-shell__frame.is-desktop-collapsed) .questionnaire-dock { left: clamp(1rem, 2.5vw, 1.75rem); } }
@media (max-width: 30rem) { html[data-appearance="nexora"] .main-layout__brand > span { font-size: 1.15rem; } }
/* Native radio focus and section jumps must clear the sticky shell and dock. */
html:has(.questionnaire-shell) { scroll-padding-block: 7rem 9rem; }
@media (min-width: 65.01rem) {
    html:has(.questionnaire-shell) { scroll-padding-bottom: 8rem; }
}
.participant-section-menu { margin-top: 1.2rem; padding: 1.15rem .6rem .6rem; border-top: 1px solid var(--app-border); }
.participant-menu-label { margin: 0 .65rem .8rem; color: var(--app-foreground-muted); font-size: .75rem; font-weight: 600; line-height: 1.6; }
.participant-section-links { display: grid; gap: .35rem; }
.participant-section-links :is(a, button) {
    display: flex; width: 100%; min-height: 3rem; box-sizing: border-box; align-items: center;
    gap: .7rem; padding: .65rem; border: 1px solid transparent; border-radius: .6rem;
    background: transparent; color: var(--app-foreground-muted); font: inherit;
    font-size: .85rem; line-height: 1.5; text-align: start; text-decoration: none; cursor: pointer;
}
.participant-section-links strong { font-weight: 500; }
.participant-section-links :is(a, button):hover:not(:disabled),
.participant-section-links button.active { border-color: var(--app-accent-border); background: var(--app-accent-soft); color: var(--app-foreground); }
.participant-section-links :is(a, button):focus-visible { outline: 2px solid var(--app-accent); outline-offset: 2px; }
.participant-section-links button:disabled { opacity: .55; cursor: default; }
.participant-step-number {
    display: grid; width: 1.7rem; height: 1.7rem; flex: 0 0 auto; place-items: center;
    border: 1px solid var(--app-border); border-radius: 50%; background: var(--app-surface-muted);
    color: var(--app-foreground-muted); font-size: .78rem; font-variant-numeric: tabular-nums;
}
.participant-section-links :is(.active, .complete) .participant-step-number { border-color: var(--app-accent); background: var(--app-accent); color: var(--app-on-brand); }
.participant-menu-note { margin: 1.5rem .65rem .5rem; color: var(--app-foreground-muted); font-size: .8rem; line-height: 1.9; }
html[data-appearance="nexora"] :is(.landing-primary-action, .home-primary-action, .landing-workspace-link) {
    border-radius: .5rem;
    border-color: var(--app-brand);
    background-color: var(--app-brand);
    color: var(--app-on-brand);
    background-image: var(--nexora-primary-background-image);
    box-shadow: var(--nexora-primary-shadow);
    transition: box-shadow 180ms ease;
}
html[data-appearance="nexora"] :is(.landing-primary-action, .home-primary-action, .landing-workspace-link):hover {
    box-shadow: var(--nexora-primary-hover-shadow);
}
html[data-appearance="nexora"] :is(.questionnaire-experience-mark, .result-experience-mark) { border-color: var(--app-accent-border); background: var(--app-accent-soft); color: var(--app-accent); box-shadow: none; }
html[data-appearance="nexora"] .glass-panel { border-color: var(--app-border); background: var(--app-surface); box-shadow: var(--app-shadow-sm); backdrop-filter: none; }
html:not([data-appearance="nexora"]) .nexora-access-image { display: none; }
@media (forced-colors: active) {
    html[data-appearance="nexora"] :is(.landing-primary-action, .home-primary-action, .landing-workspace-link) { background: ButtonFace; color: ButtonText; border-color: ButtonText; box-shadow: none; }
    .participant-section-links :is(a, button):focus-visible { outline-color: Highlight; }
    .participant-section-links button.active { border-color: Highlight; }
    .participant-section-links button:disabled { color: GrayText; opacity: 1; }
    .participant-retreat { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    html[data-appearance="nexora"] :is(.landing-primary-action, .home-primary-action, .landing-workspace-link) { transition: none; }
}
