*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Open Sans,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-x-0{left:0;right:0}.-top-40{top:-10rem}.left-0{left:0}.left-\[calc\(50\%\+3rem\)\]{left:calc(50% + 3rem)}.left-\[calc\(50\%-11rem\)\]{left:calc(50% - 11rem)}.right-3{right:.75rem}.top-0{top:0}.top-2{top:.5rem}.top-\[calc\(100\%-13rem\)\]{top:calc(100% - 13rem)}.-z-10{z-index:-10}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.block{display:block}.inline{display:inline}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-\[1155\/678\]{aspect-ratio:1155/678}.aspect-video{aspect-ratio:16/9}.h-20{height:5rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-full{height:100%}.min-h-screen{min-height:100vh}.w-20{width:5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-\[36\.125rem\]{width:36.125rem}.w-full{width:100%}.min-w-0{min-width:0}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-6xl{max-width:72rem}.max-w-\[6rem\]{max-width:6rem}.max-w-\[986px\]{max-width:986px}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.rotate-\[30deg\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-\[30deg\]{--tw-rotate:30deg}.transform-gpu{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem*var(--tw-space-y-reverse))}.space-y-14>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(3.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(3.5rem*var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem*var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem*var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem*var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem*var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem*var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border-b{border-bottom-width:1px}.border-gray{--tw-border-opacity:1;border-color:rgb(114 109 140/var(--tw-border-opacity,1))}.\!bg-purple-medium{--tw-bg-opacity:1!important;background-color:rgb(56 43 140/var(--tw-bg-opacity,1))!important}.bg-amber-100{--tw-bg-opacity:1;background-color:rgb(254 243 199/var(--tw-bg-opacity,1))}.bg-off-white{--tw-bg-opacity:1;background-color:rgb(242 242 242/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-gradient-to-tr{background-image:linear-gradient(to top right,var(--tw-gradient-stops))}.from-purple-light{--tw-gradient-from:#dec9fc var(--tw-gradient-from-position);--tw-gradient-to:rgba(222,201,252,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-blue-light{--tw-gradient-to:#b4bef5 var(--tw-gradient-to-position)}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pb-12{padding-bottom:3rem}.text-center{text-align:center}.font-display{font-family:Georgia,serif}.font-sans{font-family:Open Sans,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.leading-none{line-height:1}.\!text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}.text-amber-600{--tw-text-opacity:1;color:rgb(217 119 6/var(--tw-text-opacity,1))}.text-gray{--tw-text-opacity:1;color:rgb(114 109 140/var(--tw-text-opacity,1))}.text-gray-dark{--tw-text-opacity:1;color:rgb(72 67 89/var(--tw-text-opacity,1))}.text-purple{--tw-text-opacity:1;color:rgb(30 7 65/var(--tw-text-opacity,1))}.text-rose-500{--tw-text-opacity:1;color:rgb(244 63 94/var(--tw-text-opacity,1))}.underline{text-decoration-line:underline}.opacity-30{opacity:.3}.blur-3xl{--tw-blur:blur(64px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\:bg-white:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.hover\:text-rose-500:hover{--tw-text-opacity:1;color:rgb(244 63 94/var(--tw-text-opacity,1))}.hover\:opacity-80:hover{opacity:.8}.dark\:bg-amber-900\/40:is(.dark *){background-color:rgba(120,53,15,.4)}.dark\:bg-purple:is(.dark *){--tw-bg-opacity:1;background-color:rgb(30 7 65/var(--tw-bg-opacity,1))}.dark\:bg-purple-medium:is(.dark *){--tw-bg-opacity:1;background-color:rgb(56 43 140/var(--tw-bg-opacity,1))}.dark\:text-purple-light:is(.dark *){--tw-text-opacity:1;color:rgb(222 201 252/var(--tw-text-opacity,1))}.dark\:text-white:is(.dark *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\:invert:is(.dark *){--tw-invert:invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.dark\:hover\:bg-purple-medium:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(56 43 140/var(--tw-bg-opacity,1))}@media (min-width:640px){.sm\:sticky{position:sticky}.sm\:-top-80{top:-20rem}.sm\:left-\[calc\(50\%\+36rem\)\]{left:calc(50% + 36rem)}.sm\:left-\[calc\(50\%-30rem\)\]{left:calc(50% - 30rem)}.sm\:top-20{top:5rem}.sm\:top-\[calc\(100\%-30rem\)\]{top:calc(100% - 30rem)}.sm\:col-span-2{grid-column:span 2/span 2}.sm\:flex{display:flex}.sm\:w-52{width:13rem}.sm\:w-\[72\.1875rem\]{width:72.1875rem}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width:768px){.md\:space-y-16>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(4rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(4rem*var(--tw-space-y-reverse))}.md\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\:text-7xl{font-size:4.5rem;line-height:1}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width:1024px){.lg\:col-span-3{grid-column:span 3/span 3}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:px-0{padding-left:0;padding-right:0}.lg\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width:1280px){.xl\:col-span-3{grid-column:span 3/span 3}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}/* Small shared styles on top of Tailwind */

/* ---- Stargate (Laravel) brand palette, brought over from the old app ---- */
:root {
    --blue: #200F8C;
    --blue-medium: #355B8C;
    --blue-light: #b4bef5;
    --purple: #1e0741;
    --purple-medium: #382B8C;
    --purple-light: #dec9fc;
    --pink: #BFAABC;
    --orange: #FEB3A5;
    --green: #16736F;
    --yellow: #F2C46D;
    --beige: #F2E4D8;
    --gray-dark: #484359;
    --gray: #726D8C;
    --gray-light: #E1E1E1;
    --off-white: #F2F2F2;
    /* Slightly lighter than --purple (the page background in dark mode) —
       used for form panels so they read as "a bit highlighted" instead of
       jumping all the way to --purple-medium. */
    --purple-soft: #2b1966;
}

/* ---- Site header / nav ---- */
.site-header {
    position: relative;
    color: #fff;
    background: var(--purple);
}

.site-header-nav {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

@media (min-width: 1024px) {
    .site-header-nav {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

.dark .site-header {
    background: var(--purple);
}

#logo {
    height: 32px;
    width: auto;
}

.site-logo-link {
    display: flex;
    align-items: center;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
    min-height: 2.1rem;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
    opacity: 0.9;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link-active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.14);
    text-decoration: none;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
    padding: 0.35rem 0.95rem;
    background: #fff;
    color: var(--purple);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.45);
}

.nav-cta-mobile {
    width: 100%;
}

.nav-user {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.2rem;
    padding: 0.35rem 0.8rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    opacity: 0.98;
}

.nav-user-menu {
    position: relative;
}

.nav-user-trigger {
    cursor: pointer;
}

.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    min-width: 11rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    padding: 0.35rem;
    background: var(--purple);
    box-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.7);
    z-index: 80;
}

.nav-user-dropdown-mobile {
    position: static;
    margin-top: 0.45rem;
    width: 100%;
    box-shadow: none;
}

.nav-user-dropdown-link {
    display: flex;
    align-items: center;
    width: 100%;
    border: none;
    border-radius: 0.55rem;
    padding: 0.5rem 0.65rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    background: transparent;
}

.nav-user-dropdown-link:hover {
    background: rgba(255, 255, 255, 0.12);
}

.nav-user-dropdown-button {
    cursor: pointer;
    text-align: left;
}

.nav-tools-menu {
    position: relative;
}

.nav-tools-trigger {
    gap: 0.3rem;
    cursor: pointer;
    background: transparent;
    border: none;
    font: inherit;
}

.nav-tools-trigger[aria-expanded="true"] {
    opacity: 1;
    background: rgba(255, 255, 255, 0.14);
}

.nav-tools-dropdown {
    left: 0;
    right: auto;
    min-width: 9rem;
}

.nav-user-dropdown-link.is-active {
    background: rgba(255, 255, 255, 0.14);
}

.lang-switcher {
    position: relative;
    min-width: 12.5rem;
}

.lang-switcher-desktop {
    display: none;
    /* Trigger + options show just the code (e.g. "Pt-br") here — the fixed
       12.5rem from .lang-switcher was sized for full names like "Português
       (Brasil)" and is only needed in the roomier mobile off-canvas menu. */
    min-width: 5rem;
}

.lang-switcher-mobile {
    display: block;
}

.lang-switcher-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    width: 100%;
    min-height: 2.3rem;
    padding: 0.34rem 0.62rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.lang-switcher-trigger:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.lang-switcher-trigger:focus-visible {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.lang-switcher-label {
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lang-switcher-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.86);
    transition: transform 0.18s ease;
}

.lang-switcher.is-open .lang-switcher-chevron {
    transform: rotate(180deg);
}

.lang-switcher-menu {
    position: absolute;
    top: calc(100% + 0.42rem);
    right: 0;
    width: 100%;
    padding: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(30, 12, 68, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.7);
    z-index: 90;
}

.lang-switcher-option {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 2rem;
    border: none;
    border-radius: 9px;
    padding: 0.32rem 0.55rem;
    color: rgba(255, 255, 255, 0.95);
    background: transparent;
    text-align: left;
    font-size: 0.79rem;
    font-weight: 600;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.lang-switcher-option:hover,
.lang-switcher-option.is-focused {
    background: rgba(180, 190, 245, 0.18);
}

.lang-switcher-option.is-selected {
    color: #fff;
    background: rgba(180, 190, 245, 0.24);
}

.lang-switcher-mobile {
    width: 100%;
}

.lang-switcher-mobile .lang-switcher-trigger {
    min-height: 2.5rem;
    font-size: 0.86rem;
}

.lang-switcher-mobile .lang-switcher-label,
.lang-switcher-mobile .lang-switcher-option {
    font-size: 0.9rem;
}

.lang-switcher-mobile .lang-switcher-menu {
    position: static;
    margin-top: 0.5rem;
}

.nav-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0.7rem 0;
}

.nav-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
    padding: 0.35rem 0.88rem;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-auth-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
}

.nav-auth-btn-mobile {
    width: 100%;
}

.theme-toggle-btn,
.mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle-btn:hover,
.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 640px) {
    .lang-switcher {
        min-width: 100%;
    }
}

@media (min-width: 640px) {
    .lang-switcher-desktop {
        display: block;
    }

    .lang-switcher-mobile {
        display: none;
    }
}

/* ---- Star list (premium responsive) ---- */
.stars-list {
    --stars-surface: rgba(255, 255, 255, 0.7);
    --stars-border: rgba(113, 106, 156, 0.22);
    --stars-shadow: 0 16px 32px -26px rgba(23, 10, 45, 0.5);
}

.stars-desktop-only {
    display: block;
}

.stars-mobile-only {
    display: none;
}

.dark .stars-list {
    --stars-surface: rgba(30, 13, 68, 0.65);
    --stars-border: rgba(209, 201, 252, 0.2);
    --stars-shadow: 0 18px 34px -24px rgba(5, 2, 15, 0.78);
}

.stars-list__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.stars-list__stats {
    display: grid;
    gap: 0.1rem;
    min-width: 10rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(113, 106, 156, 0.25);
    background: rgba(255, 255, 255, 0.75);
}

.stars-list__stats-label,
.stars-list__stats-note {
    color: var(--gray);
    font-size: 0.78rem;
}

.stars-list__stats-value {
    color: var(--purple);
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.dark .stars-list__stats {
    border-color: rgba(209, 201, 252, 0.2);
    background: rgba(30, 13, 68, 0.65);
}

.dark .stars-list__stats-label,
.dark .stars-list__stats-note {
    color: var(--purple-light);
}

.dark .stars-list__stats-value {
    color: #fff;
}

.stars-list__subtitle {
    margin-top: 0.3rem;
    max-width: 38rem;
    color: var(--gray);
}

.dark .stars-list__subtitle {
    color: var(--purple-light);
}

.stars-list__count {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--gray);
    white-space: nowrap;
}

.dark .stars-list__count {
    color: var(--purple-light);
}

.stars-toolbar {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr auto;
    gap: 0.85rem;
    align-items: end;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid var(--stars-border);
    background: var(--stars-surface);
    backdrop-filter: blur(10px);
    box-shadow: var(--stars-shadow);
}

.stars-toolbar__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.stars-toolbar__field > span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray);
}

.dark .stars-toolbar__field > span {
    color: var(--purple-light);
}

.stars-toolbar .form-input {
    min-height: 2.55rem;
    border-radius: 0.8rem;
}

.stars-toolbar__field--search {
    grid-column: span 1;
}

.stars-input-wrap,
.stars-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.stars-input {
    padding-left: 2.2rem;
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(113, 106, 156, 0.28);
}

.dark .stars-input {
    background: rgba(42, 21, 86, 0.7);
    border-color: rgba(209, 201, 252, 0.22);
}

.stars-input::placeholder {
    color: #7f7898;
}

.dark .stars-input::placeholder {
    color: #b8b2df;
}

.stars-input-icon {
    gap: 0.75rem;
    margin-top: 0;
    justify-content: center;
    padding: 0.8rem;
    border: 1px solid rgba(113, 106, 156, 0.3);
    border-radius: 9999px;
    background: #fff;
    height: 1rem;
    color: #726d8c;
    pointer-events: none;
}

.dark .stars-input-icon {
    min-height: 2rem;
    padding: 0 0.8rem;

    border: 0;
    background: transparent;
    color: #5C4EE5;
    font-weight: 600;
    border-color: rgba(113, 106, 156, 0.28);
    transition: background-color 250ms ease, color 250ms ease;
}

.dark .stars-select {
    background: rgba(42, 21, 86, 0.7);
    background: rgba(92, 78, 229, 0.08);
    color: #4338CA;
    border-color: rgba(209, 201, 252, 0.22);
.stars-input:focus-visible {
    outline: none;
    border-color: rgba(56, 43, 140, 0.7);
    color: var(--gray);
    font-size: 0.84rem;
    padding: 0 0.25rem;
    color: #251253;
    background: #fff;
}

    color: var(--gray);
    opacity: 0.55;
    background: transparent;
    color: #726d8c;
    pointer-events: none;
}

.dark .stars-select-chevron {
    color: #c6c1eb;
}

.stars-toolbar__submit {
    min-height: 2.55rem;
    border-radius: 0.8rem;
    padding-inline: 1.2rem;
}

.stars-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.stars-toolbar__clear {
    min-height: 2.55rem;
    border-radius: 0.8rem;
    white-space: nowrap;
}

.stars-pagination .pagination {
    margin-top: 1rem;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.stars-pagination .pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 9999px;
    border: 1px solid rgba(113, 106, 156, 0.3);
    background: rgba(255, 255, 255, 0.86);
    color: #31245f;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.stars-pagination .pagination-link:hover,
.stars-pagination .pagination-link:focus-visible {
    text-decoration: none;
    border-color: rgba(56, 43, 140, 0.48);
    box-shadow: 0 10px 20px -14px rgba(23, 10, 45, 0.55);
    transform: translateY(-1px);
}

.stars-pagination .pagination-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    padding: 0.45rem 0.95rem;
    border-radius: 9999px;
    border: 1px solid rgba(113, 106, 156, 0.24);
    background: rgba(255, 255, 255, 0.72);
    color: #4c4172;
    font-weight: 700;
}

.stars-pagination .pagination-disabled {
    color: #9a95b7;
    border-color: rgba(113, 106, 156, 0.2);
    background: rgba(255, 255, 255, 0.5);
    box-shadow: none;
    transform: none;
    pointer-events: none;
}

.dark .stars-pagination .pagination-link {
    color: var(--off-white);
    border-color: rgba(209, 201, 252, 0.26);
    background: rgba(42, 21, 86, 0.72);
}

.dark .stars-pagination .pagination-link:hover,
.dark .stars-pagination .pagination-link:focus-visible {
    border-color: rgba(222, 201, 252, 0.58);
    box-shadow: 0 12px 24px -16px rgba(5, 2, 15, 0.9);
}

.dark .stars-pagination .pagination-info {
    color: var(--purple-light);
    border-color: rgba(209, 201, 252, 0.24);
    background: rgba(36, 17, 78, 0.7);
}

.dark .stars-pagination .pagination-disabled {
    color: #8f88bb;
    border-color: rgba(209, 201, 252, 0.16);
    background: rgba(36, 17, 78, 0.38);
}

.stars-table-wrap {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--stars-border);
    background: var(--stars-surface);
    backdrop-filter: blur(12px);
    box-shadow: var(--stars-shadow);
}

.stars-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.stars-table th:nth-child(1),
.stars-table td:nth-child(1) {
    width: 22%;
}

.stars-table th:nth-child(2),
.stars-table td:nth-child(2) {
    width: 20%;
}

.stars-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray);
    padding: 0.92rem 1rem;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(113, 106, 156, 0.2);
}

.dark .stars-table thead th {
    color: var(--purple-light);
    background: rgba(36, 17, 78, 0.88);
    border-bottom-color: rgba(209, 201, 252, 0.18);
}

.stars-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid rgba(113, 106, 156, 0.14);
    font-size: 0.92rem;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.dark .stars-table tbody td {
    border-bottom-color: rgba(209, 201, 252, 0.14);
}

.stars-table tbody tr:hover td {
    background: rgba(180, 190, 245, 0.12);
}

.dark .stars-table tbody tr:hover td {
    background: rgba(180, 190, 245, 0.1);
}

.stars-row-link {
    font-weight: 700;
    color: var(--purple);
    text-decoration: none;
}

.stars-row-link:hover,
.stars-row-link:focus-visible {
    text-decoration: underline;
}

.dark .stars-row-link {
    color: var(--off-white);
}

.stars-empty-cell {
    text-align: center;
    color: var(--gray);
    padding: 2.5rem 1rem;
}

.dark .stars-empty-cell {
    color: var(--purple-light);
}

.stars-mobile-grid {
    gap: 0.8rem;
}

.stars-mobile-grid.stars-mobile-only {
    display: none;
}

.stars-mobile-card {
    border-radius: 16px;
    border: 1px solid var(--stars-border);
    background: var(--stars-surface);
    backdrop-filter: blur(10px);
    box-shadow: var(--stars-shadow);
    padding: 0.95rem;
    animation: stars-card-enter 0.28s ease;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.stars-mobile-card:active {
    transform: scale(0.99);
}

.stars-mobile-card__header {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.7rem;
}

.stars-mobile-card__constellation {
    font-size: 0.84rem;
    color: var(--gray);
}

.dark .stars-mobile-card__constellation {
    color: var(--purple-light);
}

.stars-mobile-card__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.9rem;
    margin: 0;
}

.stars-mobile-card__meta div {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.stars-mobile-card__meta dt {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray);
    font-weight: 700;
}

.stars-mobile-card__meta dd {
    margin: 0;
    font-size: 0.9rem;
}

.dark .stars-mobile-card__meta dt {
    color: var(--purple-light);
}

.stars-mobile-card__link {
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--purple);
}

.stars-mobile-card__link:hover,
.stars-mobile-card__link:focus-visible {
    text-decoration: underline;
}

.dark .stars-mobile-card__link {
    color: var(--off-white);
}

@keyframes stars-card-enter {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .stars-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .stars-col-secondary {
        display: none;
    }

    .stars-toolbar__actions {
        grid-column: span 2;
        justify-content: flex-end;
    }
}

@media (max-width: 767px) {
    .stars-desktop-only {
        display: none;
    }

    .stars-mobile-only,
    .stars-mobile-grid.stars-mobile-only {
        display: grid;
    }

    .stars-list__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .stars-list__stats {
        width: max-content;
    }

    .stars-toolbar {
        grid-template-columns: 1fr;
        padding: 0.85rem;
    }

    .stars-toolbar__actions {
        grid-column: span 1;
        justify-content: stretch;
    }

    .stars-toolbar__submit,
    .stars-toolbar__clear {
        flex: 1 1 auto;
    }

    .stars-pagination .pagination {
        flex-wrap: wrap;
        border-radius: 20px;
    }
}

.stars-toolbar .stars-input {
    padding-left: 2.65rem;
}

/* ---- Correspondence tables (reuses .stars-table / .stars-list layout) ---- */
.corr-tabs__list {
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
}

.corr-tabs__list .star-tab-btn {
    white-space: nowrap;
    flex: 0 0 auto;
}

.corr-table {
    table-layout: auto;
}

.corr-table th:nth-child(1),
.corr-table td:nth-child(1) {
    width: auto;
}

.corr-table th:nth-child(2),
.corr-table td:nth-child(2) {
    width: auto;
}

.corr-extra-cell {
    font-size: 0.85rem;
    white-space: nowrap;
}

.corr-extra-meta dd {
    font-size: 0.86rem;
}

.corr-groups {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.corr-group__label {
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--gray);
    margin-bottom: 0.2rem;
}

.dark .corr-group__label {
    color: var(--purple-light);
}

.corr-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.corr-links-list li {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}

.corr-ref-number {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--purple);
    margin-left: 0.05rem;
}

.dark .corr-ref-number {
    color: var(--off-white);
}

.corr-ref-number a {
    color: inherit;
    text-decoration: none;
}

.corr-ref-number a:hover,
.corr-ref-number a:focus-visible {
    text-decoration: underline;
}

.corr-references {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(113, 106, 156, 0.22);
}

.dark .corr-references {
    border-top-color: rgba(209, 201, 252, 0.2);
}

.corr-references__title {
    font-family: var(--font-display, inherit);
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}

.corr-references__list {
    list-style: none;
    counter-reset: corr-ref;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: var(--gray);
}

.dark .corr-references__list {
    color: var(--purple-light);
}

.corr-references__list li {
    counter-increment: corr-ref;
    padding-left: 1.6rem;
    position: relative;
    scroll-margin-top: 5rem;
}

.corr-references__list li::before {
    content: counter(corr-ref) ".";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--purple);
}

.dark .corr-references__list li::before {
    color: var(--off-white);
}

.corr-references__list li:target {
    color: var(--purple);
    font-weight: 700;
}

.dark .corr-references__list li:target {
    color: #fff;
}

.corr-references__link {
    margin-left: 0.3rem;
    text-decoration: none;
}

/* ---- Info panel: one rounded container, labeled rows, refs at the
   bottom instead of one card per fact (reused across star detail tabs) ---- */
.info-panel {
    border: 1px solid rgba(113, 106, 156, 0.2);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 1rem;
}

.dark .info-panel {
    border-color: rgba(209, 201, 252, 0.18);
    background: rgba(255, 255, 255, 0.02);
}

.info-panel__row {
    padding: 0.85rem 0;
    border-top: 1px solid rgba(113, 106, 156, 0.14);
}

.info-panel__row:first-child {
    border-top: 0;
}

.dark .info-panel__row {
    border-top-color: rgba(209, 201, 252, 0.14);
}

.info-panel__row-label {
    margin: 0 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray);
}

.dark .info-panel__row-label {
    color: var(--purple-light);
}

.info-panel__row-content {
    font-size: 0.92rem;
    line-height: 1.65;
}

.info-panel__list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.info-panel__list li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem;
}

.info-panel__empty {
    padding: 0.85rem 0;
    color: var(--gray);
    font-size: 0.88rem;
}

.dark .info-panel__empty {
    color: var(--purple-light);
}

/* ---- Star detail (premium experience) ---- */
.star-detail-page {
    position: relative;
    isolation: isolate;
}

.star-detail-page__bg {
    position: absolute;
    inset: -2.5rem -1rem auto -1rem;
    height: 22rem;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 22%, rgba(206, 187, 250, 0.26), transparent 46%),
        radial-gradient(circle at 82% 18%, rgba(154, 142, 237, 0.18), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.76), transparent 70%);
}

.dark .star-detail-page__bg {
    background:
        radial-gradient(circle at 12% 22%, rgba(112, 89, 176, 0.32), transparent 48%),
        radial-gradient(circle at 82% 18%, rgba(88, 77, 155, 0.26), transparent 44%),
        linear-gradient(180deg, rgba(29, 15, 58, 0.82), transparent 74%);
}

.star-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
    font-size: 0.74rem;
    color: var(--gray);
}

.dark .star-breadcrumb {
    color: var(--purple-light);
}

.star-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.95fr) minmax(17rem, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.star-main-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.star-detail-page .star-surface {
    border: 1px solid rgba(113, 106, 156, 0.24);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    box-shadow: none;
    transition: border-color 0.22s ease, background-color 0.22s ease;
}

.star-detail-page .star-surface:hover {
    border-color: rgba(113, 106, 156, 0.34);
}

.dark .star-detail-page .star-surface {
    border-color: rgba(209, 201, 252, 0.18);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
}

.star-hero {
    padding: 1.2rem;
    animation: star-detail-fade-up 0.34s ease;
}

.star-hero__grid {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
}

.star-hero__glyph-wrap {
    width: 5.7rem;
    height: 5.7rem;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    border: 1px solid rgba(113, 106, 156, 0.2);
}

.dark .star-hero__glyph-wrap {
    border-color: rgba(209, 201, 252, 0.2);
    background: rgba(42, 21, 86, 0.54);
}

.star-hero__glyph {
    width: 4.25rem;
    height: 4.25rem;
    object-fit: contain;
}

.star-hero__orb {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 9999px;
    background: radial-gradient(circle at 35% 30%, #ffffff, #a194e0 45%, #5c479f 100%);
    box-shadow: 0 0 20px rgba(128, 112, 204, 0.45);
}

.star-hero__eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray);
}

.dark .star-hero__eyebrow {
    color: var(--purple-light);
}

.star-hero__title {
    margin: 0.15rem 0 0;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.03;
}

.star-hero__meta {
    margin: 0.45rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    color: var(--gray-dark);
    font-size: 0.95rem;
}

.dark .star-hero__meta {
    color: var(--purple-light);
}

.star-hero__summary {
    margin: 0.65rem 0 0;
    max-width: 64ch;
    font-size: 0.93rem;
    line-height: 1.65;
    color: var(--gray-dark);
}

.dark .star-hero__summary {
    color: var(--off-white);
}

.star-hero__keywords {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.star-hero__contribute {
    min-height: 2.6rem;
}

.star-quick-facts {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.star-fact-card {
    border-radius: 0.9rem;
    border: 1px solid rgba(113, 106, 156, 0.2);
    background: rgba(255, 255, 255, 0.08);
    padding: 0.72rem 0.82rem;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.star-fact-card:hover {
    border-color: rgba(56, 43, 140, 0.36);
}

.dark .star-fact-card {
    border-color: rgba(209, 201, 252, 0.18);
    background: rgba(255, 255, 255, 0.03);
}

.star-fact-card__label {
    margin: 0;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray);
}

.dark .star-fact-card__label {
    color: var(--purple-light);
}

.star-fact-card__value {
    margin: 0.32rem 0 0;
    font-weight: 700;
    color: #2f255c;
}

.dark .star-fact-card__value {
    color: var(--off-white);
}

.star-contribution {
    padding: 1rem;
    animation: star-detail-fade-up 0.36s ease;
}

.star-tabs {
    animation: star-detail-fade-up 0.38s ease;
}

.star-tabs__list {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem;
    border-radius: 9999px;
    border: 1px solid rgba(113, 106, 156, 0.24);
    background: rgba(255, 255, 255, 0.64);
    backdrop-filter: blur(10px);
    margin-bottom: 1rem;
}

.dark .star-tabs__list {
    border-color: rgba(209, 201, 252, 0.2);
    background: rgba(36, 17, 78, 0.68);
}

.star-tabs__indicator {
    position: absolute;
    top: 0.28rem;
    left: 0.28rem;
    height: calc(100% - 0.56rem);
    border-radius: 9999px;
    background: rgba(56, 43, 140, 0.16);
    border: 1px solid rgba(56, 43, 140, 0.25);
    transition: transform 0.24s ease, width 0.24s ease, background-color 0.24s ease;
    pointer-events: none;
}

.dark .star-tabs__indicator {
    background: rgba(209, 201, 252, 0.18);
    border-color: rgba(209, 201, 252, 0.3);
}

.star-tab-btn {
    position: relative;
    z-index: 1;
    border: 0;
    background: transparent;
    color: var(--gray-dark);
    min-height: 2.3rem;
    padding: 0.45rem 0.92rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    font-size: 0.84rem;
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

.star-tab-btn:hover {
    transform: translateY(-1px);
}

.star-tab-btn:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

.star-tab-btn i {
    width: 0.95rem;
    height: 0.95rem;
}

.star-tab-btn.tab-active {
    color: #2f255c;
}

.dark .star-tab-btn {
    color: var(--purple-light);
}

.dark .star-tab-btn.tab-active {
    color: var(--off-white);
}

.star-tab-panel {
    border: 1px solid rgba(113, 106, 156, 0.22);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 1rem;
    backdrop-filter: blur(10px);
    animation: star-detail-fade-up 0.3s ease;
}

.star-tab-panel[hidden] {
    display: none;
}

.star-tab-panel--astro {
    box-shadow: inset 0 1px 0 rgba(142, 183, 230, 0.32);
}

.star-tab-panel--myths {
    box-shadow: inset 0 1px 0 rgba(224, 189, 125, 0.35);
}

.star-tab-panel--astrology {
    box-shadow: inset 0 1px 0 rgba(147, 197, 253, 0.38);
}

.star-tab-panel--magic {
    box-shadow: inset 0 1px 0 rgba(180, 152, 243, 0.38);
}

.dark .star-tab-panel {
    border-color: rgba(209, 201, 252, 0.18);
    background: rgba(255, 255, 255, 0.02);
}

.star-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.star-section__title {
    margin: 0;
    font-size: 1.45rem;
}

.star-section__subtitle {
    margin: -0.65rem 0 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.dark .star-section__subtitle {
    color: var(--purple-light);
}

.star-reading-block {
    border-top: 1px solid rgba(113, 106, 156, 0.15);
    padding-top: 0.95rem;
}

.dark .star-reading-block {
    border-top-color: rgba(209, 201, 252, 0.16);
}

.star-reading-block h3 {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
}

.star-reading-block p {
    margin: 0;
    line-height: 1.72;
}

.star-list-block {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.star-list-card {
    border: 1px solid rgba(113, 106, 156, 0.16);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.72rem;
}

.dark .star-list-card {
    border-color: rgba(209, 201, 252, 0.16);
    background: rgba(255, 255, 255, 0.02);
}

.star-detail-page .card {
    border-color: rgba(113, 106, 156, 0.16);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.star-detail-page .card-hover:hover {
    border-color: rgba(56, 43, 140, 0.34);
    box-shadow: none;
}

.dark .star-detail-page .card {
    border-color: rgba(209, 201, 252, 0.16);
    background: rgba(255, 255, 255, 0.02);
}

.star-sidebar {
    position: sticky;
    top: 5.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.star-sidebar-card {
    padding: 0.95rem;
}

.star-sidebar-card__title {
    margin: 0;
    font-size: 1rem;
}

.star-sidebar-card__desc {
    margin: 0.35rem 0 0.7rem;
    color: var(--gray);
    font-size: 0.88rem;
}

.dark .star-sidebar-card__desc {
    color: var(--purple-light);
}

.star-sidebar-facts dt {
    color: #6a6487;
}

.star-sidebar-facts dd {
    color: #26184f;
}

.dark .star-sidebar-facts dt {
    color: var(--purple-light);
}

.dark .star-sidebar-facts dd {
    color: var(--off-white);
}

.star-related-link {
    border-color: rgba(113, 106, 156, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #26184f;
}

.star-related-link small {
    color: var(--gray);
}

.dark .star-related-link {
    border-color: rgba(209, 201, 252, 0.16);
    background: rgba(255, 255, 255, 0.02);
    color: var(--off-white);
}

.dark .star-related-link small {
    color: var(--purple-light);
}

.star-detail-page .text-muted,
.star-detail-page .prose-user,
.star-reading-block p,
.star-section__subtitle {
    color: var(--gray-dark);
}

.dark .star-detail-page .text-muted,
.dark .star-detail-page .prose-user,
.dark .star-reading-block p,
.dark .star-section__subtitle {
    color: var(--purple-light);
}

.star-sidebar-contribute-btn {
    position: relative;
    gap: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background:
        radial-gradient(circle at 20% 28%, rgba(255, 255, 255, 0.36), transparent 42%),
        linear-gradient(135deg, #6e58cf 0%, #5035af 54%, #3e2a8f 100%);
    box-shadow: 0 18px 28px -18px rgba(56, 43, 140, 0.75);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.star-sidebar-contribute-btn i {
    width: 0.84rem;
    height: 0.84rem;
    opacity: 0.96;
    color: rgba(251, 248, 255, 0.96);
    filter: drop-shadow(0 1px 2px rgba(34, 17, 78, 0.35));
}

.star-sidebar-contribute-btn:hover,
.star-sidebar-contribute-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 22px 30px -18px rgba(56, 43, 140, 0.88);
}

.star-sidebar-contribute-btn:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

.dark .star-sidebar-contribute-btn {
    border-color: rgba(209, 201, 252, 0.4);
    background:
        radial-gradient(circle at 20% 28%, rgba(255, 255, 255, 0.18), transparent 42%),
        linear-gradient(135deg, #775fd7 0%, #573bb8 54%, #432d99 100%);
}

.dark .star-sidebar-contribute-btn i {
    color: rgba(243, 236, 255, 0.98);
}

/* ---- Constellation detail (premium atlas) ---- */
.const-detail-page {
    position: relative;
    isolation: isolate;
}

.const-detail-page__bg {
    position: absolute;
    inset: -2.5rem -1rem auto -1rem;
    height: 24rem;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 20%, rgba(204, 188, 250, 0.22), transparent 42%),
        radial-gradient(circle at 84% 14%, rgba(161, 145, 232, 0.16), transparent 44%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 72%);
}

.dark .const-detail-page__bg {
    background:
        radial-gradient(circle at 18% 20%, rgba(111, 87, 176, 0.3), transparent 44%),
        radial-gradient(circle at 84% 14%, rgba(88, 78, 154, 0.24), transparent 46%),
        linear-gradient(180deg, rgba(28, 14, 58, 0.82), transparent 74%);
}

.const-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.95fr) minmax(16.5rem, 1fr);
    gap: 2rem 2.25rem;
    align-items: start;
}

.const-detail-layout__stars {
    grid-column: 1 / -1;
}

.const-main-content {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    min-width: 0;
}

.const-detail-hero {
    padding: 1.1rem 1.15rem 1.2rem;
    border: 1px solid rgba(113, 106, 156, 0.18);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.06);
    animation: star-detail-fade-up 0.34s ease;
}

.dark .const-detail-hero {
    border-color: rgba(209, 201, 252, 0.14);
    background: rgba(255, 255, 255, 0.02);
}

.const-detail-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(11rem, 0.8fr);
    gap: 1rem;
    align-items: center;
}

.const-detail-hero__eyebrow {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--gray);
}

.dark .const-detail-hero__eyebrow {
    color: var(--purple-light);
}

.const-detail-hero__title {
    margin: 0.2rem 0 0;
    font-size: clamp(2rem, 2.9vw, 2.9rem);
    line-height: 1.05;
}

.const-detail-hero__meta {
    margin: 0.7rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    padding: 0;
    list-style: none;
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.const-detail-hero__meta li {
    position: relative;
}

.const-detail-hero__meta li:not(:last-child)::after {
    content: "•";
    position: absolute;
    right: -0.68rem;
    color: rgba(140, 128, 196, 0.8);
}

.dark .const-detail-hero__meta {
    color: var(--purple-light);
}

.const-detail-hero__summary {
    margin: 0.65rem 0 0;
    line-height: 1.65;
    max-width: 66ch;
    color: var(--gray-dark);
}

.dark .const-detail-hero__summary {
    color: var(--off-white);
}

.const-detail-hero__keywords {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.const-detail-hero__visual {
    min-height: 11rem;
    display: grid;
    place-items: center;
}

.const-detail-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.1rem;
    opacity: 0.84;
}

.const-detail-hero__placeholder {
    width: min(16rem, 92%);
    height: auto;
    opacity: 0.92;
}

.const-detail-hero__stats {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.35rem;
}

.const-detail-hero__stats li {
    display: flex;
    gap: 0.45rem;
    align-items: baseline;
    color: var(--gray-dark);
}

.const-detail-hero__stats span {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6a6487;
}

.const-detail-hero__stats strong {
    color: #26184f;
}

.dark .const-detail-hero__stats li {
    color: var(--purple-light);
}

.dark .const-detail-hero__stats span {
    color: rgba(209, 201, 252, 0.78);
}

.dark .const-detail-hero__stats strong {
    color: var(--off-white);
}

.const-sidebar {
    position: static;
    top: 5.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.const-section {
    padding: 1rem 1.05rem 1.1rem;
    border: 1px solid rgba(113, 106, 156, 0.16);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    animation: star-detail-fade-up 0.34s ease;
}

.dark .const-section {
    border-color: rgba(209, 201, 252, 0.13);
    background: rgba(255, 255, 255, 0.015);
}

.const-section__head {
    margin-bottom: 1rem;
}

.const-section__head--row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.const-section__title {
    margin: 0;
    font-size: 1.45rem;
}

.const-section__subtitle {
    margin: 0.25rem 0 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.dark .const-section__subtitle {
    color: var(--purple-light);
}

.const-overview-grid {
    display: none;
}

.const-overview-text {
    max-width: 72ch;
}

.const-overview-text p {
    margin: 0;
    line-height: 1.78;
    color: var(--gray-dark);
}

.dark .const-overview-text p {
    color: var(--off-white);
}

.const-richtext {
    line-height: 1.72;
}

.const-empty-state {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0.35rem 0 0;
    display: grid;
    gap: 0.45rem;
    text-align: left;
    justify-items: start;
}

.const-empty-state h3 {
    margin: 0;
    font-size: 1.05rem;
}

.const-empty-state p {
    margin: 0;
    max-width: 56ch;
}

.const-empty-state__icon {
    width: auto;
    height: auto;
    border-radius: 0;
    display: block;
    background: transparent;
    border: 0;
    font-size: 1.1rem;
}

.const-empty-state p,
.const-empty-state .text-muted {
    color: var(--gray-dark);
}

.dark .const-empty-state p,
.dark .const-empty-state .text-muted {
    color: var(--purple-light);
}

.const-stars-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.95rem 1rem;
}

.const-star-card {
    border: 1px solid rgba(113, 106, 156, 0.16);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    padding: 0.85rem 0.9rem 0.95rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.const-star-card:hover,
.const-star-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(56, 43, 140, 0.34);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
    text-decoration: none;
}

.const-star-card__eyebrow {
    margin-bottom: 0.45rem;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray);
    font-weight: 700;
}

.const-star-card__head {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: baseline;
}

.const-star-card__head strong {
    font-size: 0.98rem;
    line-height: 1.35;
    color: #25184f;
}

.const-star-card__go {
    font-size: 0.74rem;
    color: var(--gray);
    white-space: nowrap;
}

.const-star-card__designation {
    margin-top: 0.35rem;
    font-size: 0.84rem;
    color: var(--gray-dark);
}

.const-star-card__meta {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--gray);
}

.dark .const-star-card {
    border-color: rgba(209, 201, 252, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.015) 100%);
}

.dark .const-star-card:hover,
.dark .const-star-card:focus-visible {
    border-color: rgba(209, 201, 252, 0.3);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.dark .const-star-card__eyebrow {
    color: rgba(209, 201, 252, 0.72);
}

.dark .const-star-card__head strong {
    color: var(--off-white);
}

.dark .const-star-card__designation {
    color: rgba(243, 236, 255, 0.82);
}

.dark .const-star-card__meta {
    color: rgba(209, 201, 252, 0.72);
}

.const-stars-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

.const-stars-list__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(113, 106, 156, 0.18);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.const-stars-list__item:hover,
.const-stars-list__item:focus-visible {
    border-color: rgba(56, 43, 140, 0.34);
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.const-stars-list__primary {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.const-stars-list__name {
    font-size: 0.98rem;
    line-height: 1.35;
    color: #25184f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.const-stars-list__designation {
    font-size: 0.84rem;
    color: var(--gray-dark);
}

.const-stars-list__meta {
    font-size: 0.78rem;
    color: var(--gray);
    white-space: nowrap;
}

.const-stars-list__go {
    font-size: 0.78rem;
    color: var(--gray);
    white-space: nowrap;
}

.dark .const-stars-list__item {
    border-color: rgba(209, 201, 252, 0.14);
    background: rgba(255, 255, 255, 0.015);
}

.dark .const-stars-list__item:hover,
.dark .const-stars-list__item:focus-visible {
    border-color: rgba(209, 201, 252, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.dark .const-stars-list__name {
    color: var(--off-white);
}

.dark .const-stars-list__designation {
    color: rgba(243, 236, 255, 0.82);
}

.dark .const-stars-list__meta,
.dark .const-stars-list__go {
    color: rgba(209, 201, 252, 0.72);
}

.const-sidebar-section {
    padding: 1rem 1.05rem;
    border: 1px solid rgba(113, 106, 156, 0.16);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
}

.dark .const-sidebar-section {
    border-color: rgba(209, 201, 252, 0.13);
    background: rgba(255, 255, 255, 0.015);
}

.const-sidebar-section__title {
    margin: 0;
    font-size: 1rem;
}

.const-sidebar-section__desc {
    margin: 0.35rem 0 0.8rem;
    color: var(--gray-dark);
    line-height: 1.6;
}

.dark .const-sidebar-section__desc {
    color: var(--purple-light);
}

.const-sidebar-list {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.8rem;
}

.const-sidebar-list dt {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6a6487;
    font-weight: 700;
}

.const-sidebar-list dd {
    margin: 0.16rem 0 0;
    color: #26184f;
    font-weight: 700;
}

.dark .const-sidebar-list dt {
    color: rgba(209, 201, 252, 0.68);
}

.dark .const-sidebar-list dd {
    color: var(--off-white);
}

.const-sidebar-links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.const-sidebar-link {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    color: #26184f;
    text-decoration: none;
    padding: 0;
}

.const-sidebar-link small {
    color: var(--gray);
}

.dark .const-sidebar-link {
    color: var(--off-white);
}

.dark .const-sidebar-link small {
    color: rgba(209, 201, 252, 0.72);
}

.const-sidebar-link:hover,
.const-sidebar-link:focus-visible {
    text-decoration: underline;
}

.const-magic-block {
    padding: 0.95rem 1rem 1rem;
    border: 1px solid rgba(113, 106, 156, 0.16);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
}

.dark .const-magic-block {
    border-color: rgba(209, 201, 252, 0.13);
    background: rgba(255, 255, 255, 0.015);
}

.const-section__meta {
    color: var(--gray);
    font-size: 0.84rem;
    font-weight: 700;
}

.dark .const-section__meta {
    color: var(--purple-light);
}

@media (max-width: 1024px) {
    .const-detail-layout {
        grid-template-columns: 1fr;
    }

    .const-detail-hero__grid {
        grid-template-columns: 1fr;
    }

    .const-stars-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .const-detail-layout {
        gap: 1.6rem;
    }

    .const-detail-hero,
    .const-section,
    .const-sidebar-section {
        padding: 0.9rem;
    }

    .const-stars-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .const-stars-list__item {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .const-section__head--row {
        flex-direction: column;
        align-items: flex-start;
    }

    .const-detail-hero__meta {
        flex-direction: column;
        gap: 0.35rem;
    }

    .const-detail-hero__meta li:not(:last-child)::after {
        content: none;
    }

    .const-detail-hero__stats {
        flex-direction: column;
        gap: 0.45rem;
    }
}

@media (max-width: 560px) {
    .const-stars-grid {
        grid-template-columns: 1fr;
    }
}

.star-sidebar-facts {
    margin: 0.7rem 0 0;
    display: grid;
    gap: 0.55rem;
}

.star-sidebar-facts dt {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray);
    font-weight: 700;
}

.dark .star-sidebar-facts dt {
    color: var(--purple-light);
}

.star-sidebar-facts dd {
    margin: 0.14rem 0 0;
    font-weight: 700;
}

.star-related-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.star-related-link {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.72rem;
    border: 1px solid rgba(113, 106, 156, 0.16);
    background: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    color: inherit;
    transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.star-related-link small {
    font-size: 0.72rem;
    color: var(--gray);
}

.dark .star-related-link small {
    color: var(--purple-light);
}

.star-related-link:hover,
.star-related-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(56, 43, 140, 0.35);
    text-decoration: none;
}

.star-detail-facts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

@keyframes star-detail-fade-up {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .star-detail-layout {
        grid-template-columns: 1fr;
    }

    .star-sidebar {
        position: static;
        top: auto;
    }

    .star-quick-facts,
    .star-detail-facts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .star-hero,
    .star-tab-panel,
    .star-contribution,
    .star-sidebar-card {
        padding: 0.82rem;
    }

    .star-hero__grid {
        grid-template-columns: 1fr;
    }

    .star-hero__glyph-wrap {
        width: 4.8rem;
        height: 4.8rem;
    }

    .star-hero__cta {
        width: 100%;
    }

    .star-hero__contribute {
        width: 100%;
    }

    .star-quick-facts,
    .star-detail-facts-grid {
        grid-template-columns: 1fr;
    }

    .star-tabs__list {
        width: 100%;
        justify-content: space-between;
    }

    .star-tab-btn {
        flex: 1 1 0;
        justify-content: center;
        padding-inline: 0.55rem;
    }

    .star-tab-btn span {
        white-space: nowrap;
    }
}

.mobile-offcanvas-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 6, 24, 0.5);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 60;
}

.mobile-offcanvas-overlay.is-visible {
    opacity: 1;
}

.mobile-offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    width: min(85vw, 22rem);
    height: 100dvh;
    z-index: 70;
    color: #fff;
    background:
        radial-gradient(circle at 8% 18%, rgba(222, 201, 252, 0.2), transparent 45%),
        linear-gradient(180deg, #251050 0%, #160a33 100%);
    box-shadow: -14px 0 34px -18px rgba(0, 0, 0, 0.7);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mobile-offcanvas.is-open {
    transform: translateX(0);
}

.mobile-offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-offcanvas-title {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.9;
}

.mobile-offcanvas-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
}

.mobile-offcanvas-content {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem;

.mobile-auth-card {
    margin-top: 0.2rem;
    padding: 0.85rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

.mobile-auth-label {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    opacity: 0.85;
}

.nav-user-trigger-mobile {
    width: 100%;
    justify-content: space-between;
    min-height: 2.5rem;
    padding: 0.45rem 0.8rem;
}
}

.mobile-nav-link {
    display: block;
    width: 100%;
    border-radius: 0.7rem;
    padding: 0.62rem 0.78rem;
    text-decoration: none;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background-color 0.2s ease;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.16);
}

.mobile-nav-link-sub {
    width: calc(100% - 0.9rem);
    margin-left: 0.9rem;
    font-size: 0.85em;
    opacity: 0.85;
}

@media (min-width: 1024px) {
    .mobile-menu-btn,
    .mobile-offcanvas,
    .mobile-offcanvas-overlay {
        display: none !important;
    }
}

body.mobile-menu-open {
    overflow: hidden;
}

/* ---- Cards: the boxed surface used for every "item" on the grimoire
   (correspondences, constellations, stars, posts, references...). Dark mode
   background matches the page background instead of standing out. ---- */
.card {
    border-radius: 0.75rem;
    border: 1px solid var(--gray-light);
    background: #fff;
    padding: 1.25rem;
}
.dark .card {
    border-color: var(--purple-medium);
    background: var(--purple);
}
.card-sm { padding: 1rem; }
.card-xs { padding: 0.75rem; }
.card-xxs { padding: 0.5rem; }

/* Add to .card on clickable/linked cards for the hover affordance. */
.card-hover {
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.card-hover:hover {
    border-color: var(--purple);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.dark .card-hover:hover {
    border-color: var(--purple-light);
}

/* ---- Form panels: toggleable contribution forms & fieldsets. Close to the
   page background, with just enough contrast to read as "a form". ---- */
.form-panel {
    border-radius: 0.75rem;
    border: 1px solid var(--gray-light);
    background: #fff;
    padding: 1rem;
}
.dark .form-panel {
    border-color: var(--purple-medium);
    background: var(--purple-soft);
}
.form-panel-dashed {
    border-style: dashed;
    border-color: var(--gray-light);
}
.dark .form-panel-dashed {
    border-color: var(--purple-light);
}
.form-panel-sm { padding: 0.75rem; }
.form-panel-lg { padding: 1.5rem; }

/* ---- Links (in-content, not nav) ---- */
.link {
    color: var(--purple);
    text-decoration: none;
}
.link:hover { text-decoration: underline; }
.dark .link { color: var(--purple-light); }

/* Text that only picks up link color on hover (card titles, list rows...). */
.link-hover {
    transition: color 0.15s ease-in-out;
}
.link-hover:hover { color: var(--purple); }
.dark .link-hover:hover { color: var(--purple-light); }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.btn-primary {
    background: var(--purple);
    color: #fff;
}
.btn-primary:hover { opacity: 0.9; }
.dark .btn-primary { background: var(--purple-medium); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-light);
    color: var(--purple);
}
.btn-outline:hover { background: var(--off-white); }
.dark .btn-outline {
    border-color: var(--purple-light);
    color: var(--purple-light);
}
.dark .btn-outline:hover { background: var(--purple); }

.btn-sm { padding: 0.375rem 0.75rem; }
.btn-block { width: 100%; }

/* Dashed "add a row" affordance (dynamic form rows) */
.btn-dashed {
    display: block;
    width: 100%;
    background: transparent;
    border: 2px dashed var(--gray-light);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    text-align: center;
    color: var(--gray);
    cursor: pointer;
    transition: border-color 0.15s ease-in-out, color 0.15s ease-in-out;
}
.dark .btn-dashed { border-color: var(--purple-medium); color: var(--purple-light); }
.btn-dashed:hover { border-color: var(--purple); color: var(--purple); }
.dark .btn-dashed:hover { border-color: var(--purple-light); color: var(--purple-light); }

/* ---- Muted / secondary text (metadata, captions, empty states) ---- */
.text-muted {
    color: var(--gray);
}
.dark .text-muted {
    color: var(--purple-light);
}

/* ---- Body text & links (ported from stargate's <x-text> and <x-link> Blade components) ---- */
.text-body {
    font-size: 0.875rem;
    line-height: 1.625;
    padding-bottom: 0.25rem;
}

.link-accent {
    color: var(--purple);
    font-weight: 700;
    text-decoration: none;
    transition: font-weight 0.1s ease-in-out;
}

.link-accent:hover {
    font-weight: 800;
    text-decoration: underline;
}

.dark .link-accent {
    color: var(--off-white);
}

/* Plain in-content link (e.g. a star name inside a table row/list) */
.link-plain {
    font-weight: 700;
    text-decoration: none;
}

.link-plain:hover {
    text-decoration: underline;
}

/* ---- Messages ---- */
.message {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.message-success {
    background: #d1fae5;
    color: #065f46;
}

.message-error {
    background: #fee2e2;
    color: #991b1b;
}

.message-info {
    background: var(--gray-light);
    color: var(--gray-dark);
}

/* ---- Footer (ported from stargate's Laravel layout) ---- */
.site-footer {
    margin-top: 4rem;
    position: relative;
    background: var(--purple);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.site-footer::before,
.site-footer::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.site-footer::before {
    inset: 0;
    background:
        radial-gradient(circle at 12% 24%, rgba(180, 190, 245, 0.2), transparent 22%),
        radial-gradient(circle at 86% 78%, rgba(222, 201, 252, 0.15), transparent 20%);
}

.site-footer::after {
    right: -2rem;
    bottom: -2rem;
    width: 14rem;
    height: 14rem;
    opacity: 0.28;
    background-image:
        radial-gradient(circle at 20% 26%, rgba(255, 255, 255, 0.92) 0 2px, transparent 3px),
        radial-gradient(circle at 42% 48%, rgba(255, 255, 255, 0.72) 0 2px, transparent 3px),
        radial-gradient(circle at 66% 36%, rgba(255, 255, 255, 0.84) 0 2px, transparent 3px),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.74) 0 2px, transparent 3px);
}

.site-footer__inner {
    position: relative;
    z-index: 1;
}

.site-footer__grid {
    display: grid;
    gap: 2rem;
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.site-footer__logo-link {
    display: inline-flex;
    align-items: center;
}

.site-footer__logo {
    height: 3rem;
    width: auto;
}

.site-footer__heading {
    font-family: Georgia, serif;
    font-size: 1rem;
    line-height: 1.2;
    margin: 0 0 0.85rem;
    color: #fff;
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.site-footer__links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.15s ease-in-out, opacity 0.15s ease-in-out;
}

.site-footer__links a:hover {
    color: #fff;
}

.site-footer__tagline {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.95rem;
    font-style: italic;
}

.footer-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.86);
    margin: 0;
}

.dark .footer-text {
    color: rgba(255, 255, 255, 0.86);
}

.footer-brand {
    color: #fff;
}

.dark .footer-brand {
    color: #fff;
}

.site-footer__byline {
    color: rgba(255, 255, 255, 0.72);
}

.footer-link {
    text-decoration: underline;
}

.footer-social {
    font-size: 0.92rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-social a:hover {
    text-decoration: none;
}

.form-input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #c9cbec;
    background: transparent;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}
.dark .form-input { border-color: #3b3d6b; }
.form-input:focus { outline: 2px solid #f59e0b; outline-offset: 1px; }
.form-textarea { min-height: 4rem; }

.prose-user h1 { font-weight: 700; font-size: 1.5em; margin: 0.9em 0 0.4em; }
.prose-user h2, .prose-user h3, .prose-user h4 { font-weight: 700; margin: 0.75em 0 0.35em; }
.prose-user p { margin: 0.5em 0; }
.prose-user ul { list-style: disc; padding-left: 1.25rem; }
.prose-user ol { list-style: decimal; padding-left: 1.25rem; }
.prose-user blockquote { border-left: 3px solid #f59e0b; padding-left: 0.75rem; font-style: italic; }
.prose-user a { text-decoration: underline; }
.prose-user img { max-width: 100%; border-radius: 0.75rem; margin: 0.75em 0; }
.prose-user figure { margin: 0.75em 0; }
.prose-user figcaption { font-size: 0.8em; text-align: center; opacity: 0.7; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    border-radius: 9999px;
    background: #e6e7f6;
    color: #2a2b4e;
}
.dark .badge { background: #3b3d6b; color: #e6e7f6; }
.badge-pending { background: #fef3c7; color: #92400e; }
.dark .badge-pending { background: #78350f; color: #fde68a; }

/* ---- Pagination ---- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

.pagination-link {
    color: var(--purple-medium);
    text-decoration: none;
    font-weight: 600;
}

.pagination-link:hover {
    text-decoration: underline;
}

.dark .pagination-link {
    color: var(--purple-light);
}

.pagination-disabled {
    color: var(--gray-light);
    cursor: default;
}

.pagination-disabled:hover {
    text-decoration: none;
}

.pagination-info {
    color: var(--gray-dark);
}

.dark .pagination-info {
    color: var(--gray-light);
}

/* ---- Back to top ---- */
.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 40;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    border: none;
    background: var(--purple);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    opacity: 0.85;
}

.dark .back-to-top {
    background: var(--purple-light);
    color: var(--purple);
}

/* ---- Home -------------------------------------------------------------- */
.home-page {
    position: relative;
}

.home-hero {
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: -2rem;
    border-radius: 0 0 2rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-top: none;
    background:
        radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72) 34%, rgba(242, 228, 216, 0.62) 100%),
        linear-gradient(135deg, rgba(180, 190, 245, 0.45), rgba(222, 201, 252, 0.4));
    box-shadow: 0 28px 80px rgba(30, 7, 65, 0.12);
    padding: 4rem 1.5rem 2.75rem;
}

.dark .home-hero {
    border-color: rgba(222, 201, 252, 0.18);
    background:
        radial-gradient(circle at 50% 15%, rgba(56, 43, 140, 0.88), rgba(30, 7, 65, 0.95) 55%, rgba(18, 7, 44, 1) 100%),
        linear-gradient(135deg, rgba(180, 190, 245, 0.18), rgba(222, 201, 252, 0.16));
}

.home-hero__glow,
.home-hero__constellation {
    position: absolute;
    pointer-events: none;
}

.home-hero__glow {
    inset: 0;
    background:
        radial-gradient(circle at 0% 22%, rgba(176, 146, 255, 0.38), transparent 22%),
        radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.84), transparent 12%),
        radial-gradient(circle at 88% 68%, rgba(222, 201, 252, 0.44), transparent 16%);
}

.home-hero__constellation {
    width: 11rem;
    height: 11rem;
    opacity: 0.55;
}

.home-hero__constellation::before,
.home-hero__constellation::after {
    content: "";
    position: absolute;
    inset: 0;
}

.home-hero__constellation::before {
    background-image:
        radial-gradient(circle at 15% 24%, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px),
        radial-gradient(circle at 36% 52%, rgba(255, 255, 255, 0.9) 0 2px, transparent 3px),
        radial-gradient(circle at 67% 38%, rgba(255, 255, 255, 0.92) 0 2px, transparent 3px),
        radial-gradient(circle at 80% 72%, rgba(255, 255, 255, 0.85) 0 2px, transparent 3px),
        radial-gradient(circle at 48% 84%, rgba(255, 255, 255, 0.72) 0 2px, transparent 3px);
}

.home-hero__constellation::after {
    background-image:
        linear-gradient(127deg, transparent 22%, rgba(255, 255, 255, 0.28) 22.8%, rgba(255, 255, 255, 0.28) 23.8%, transparent 24.6%),
        linear-gradient(43deg, transparent 41%, rgba(255, 255, 255, 0.22) 41.8%, rgba(255, 255, 255, 0.22) 42.6%, transparent 43.5%),
        linear-gradient(73deg, transparent 58%, rgba(255, 255, 255, 0.22) 58.8%, rgba(255, 255, 255, 0.22) 59.6%, transparent 60.5%);
}

.dark .home-hero__constellation {
    opacity: 0.32;
}

.dark .home-hero__constellation::before {
    filter: blur(0.3px);
    background-image:
        radial-gradient(circle at 15% 24%, rgba(255, 255, 255, 0.72) 0 1.5px, transparent 3px),
        radial-gradient(circle at 36% 52%, rgba(222, 201, 252, 0.58) 0 1.5px, transparent 3px),
        radial-gradient(circle at 67% 38%, rgba(255, 255, 255, 0.68) 0 1.5px, transparent 3px),
        radial-gradient(circle at 80% 72%, rgba(222, 201, 252, 0.52) 0 1.5px, transparent 3px),
        radial-gradient(circle at 48% 84%, rgba(255, 255, 255, 0.48) 0 1.5px, transparent 3px);
}

.dark .home-hero__constellation::after {
    opacity: 0.42;
    background-image:
        linear-gradient(127deg, transparent 22%, rgba(180, 190, 245, 0.12) 22.8%, rgba(180, 190, 245, 0.12) 23.8%, transparent 24.6%),
        linear-gradient(43deg, transparent 41%, rgba(222, 201, 252, 0.1) 41.8%, rgba(222, 201, 252, 0.1) 42.6%, transparent 43.5%),
        linear-gradient(73deg, transparent 58%, rgba(180, 190, 245, 0.1) 58.8%, rgba(180, 190, 245, 0.1) 59.6%, transparent 60.5%);
}

.home-hero__constellation--left {
    left: -1rem;
    top: 2.5rem;
}

.home-hero__constellation--right {
    right: -1.25rem;
    top: 2rem;
    transform: scale(1.05);
}

.home-hero__content {
    position: relative;
    z-index: 1;
}

.home-hero__inner {
    width: 100%;
    max-width: 986px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.home-kicker,
.home-section-heading__eyebrow {
    color: var(--purple-medium);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dark .home-kicker,
.dark .home-section-heading__eyebrow {
    color: var(--purple-light);
}

.home-hero__mark {
    margin: 1rem 0 0.75rem;
    color: var(--purple-medium);
    font-size: 1.8rem;
    line-height: 1;
}

.dark .home-hero__mark {
    color: var(--purple-light);
}

.home-hero__lede {
    color: var(--gray-dark);
}

.dark .home-hero__lede {
    color: rgba(242, 242, 242, 0.82);
}

.home-search__shell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.45rem 0.45rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(56, 43, 140, 0.12);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 32px rgba(30, 7, 65, 0.08);
}

.dark .home-search__shell {
    border-color: rgba(222, 201, 252, 0.18);
    background: rgba(30, 7, 65, 0.76);
}

.home-search__icon {
    color: var(--purple-medium);
    font-size: 1.15rem;
}

.home-search__input {
    flex: 1;
    border: none;
    background: transparent;
    box-shadow: none;
    padding-left: 0;
    padding-right: 0;
}

.home-search__input:focus {
    outline: none;
    box-shadow: none;
}

.home-search__button {
    min-width: 8.5rem;
    min-height: 3.2rem;
    border-radius: 0.85rem;
}

.home-stats {
    display: grid;
    gap: 1rem;
}

.home-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    padding: 1.25rem 1.35rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(56, 43, 140, 0.08);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 32px rgba(30, 7, 65, 0.07);
}

.dark .home-stat-card {
    border-color: rgba(222, 201, 252, 0.16);
    background: rgba(43, 25, 102, 0.66);
}

.home-stat-card__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    border-radius: 9999px;
    color: var(--purple-medium);
    background: linear-gradient(135deg, rgba(222, 201, 252, 0.95), rgba(180, 190, 245, 0.85));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.home-stat-card__value {
    font-family: Georgia, serif;
    font-size: 2rem;
    line-height: 1;
    color: var(--purple);
}

.dark .home-stat-card__value {
    color: #fff;
}

.home-stat-card__label {
    margin-top: 0.35rem;
    font-size: 0.92rem;
    color: var(--gray);
}

.dark .home-stat-card__label {
    color: rgba(242, 242, 242, 0.72);
}

.home-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.home-section-link {
    white-space: nowrap;
}

.home-result-card__meta,
.home-post-card__meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
}

.home-result-card {
    display: block;
}

.home-star-card,
.home-post-card,
.home-constellation-card {
    overflow: hidden;
    box-shadow: 0 18px 38px rgba(30, 7, 65, 0.08);
}

.home-star-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    border-top: 3px solid rgba(56, 43, 140, 0.22);
}

.dark .home-star-card {
    border-top-color: rgba(222, 201, 252, 0.3);
}

.home-star-card--violet {
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(248, 245, 255, 1));
}

.home-star-card--azure {
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(244, 249, 255, 1));
}

.home-star-card--ember {
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 246, 241, 1));
}

.dark .home-star-card--violet,
.dark .home-star-card--azure,
.dark .home-star-card--ember {
    background: var(--purple);
}

.home-star-card__body,
.home-post-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.25rem;
    flex: 1;
}

.home-star-card__subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--purple-medium);
}

.dark .home-star-card__subtitle {
    color: var(--purple-light);
}

.home-constellation-card {
    display: flex;
    flex-direction: column;
    min-height: 15rem;
    padding: 0;
    border-top: 3px solid rgba(56, 43, 140, 0.14);
}

.dark .home-constellation-card {
    border-top-color: rgba(222, 201, 252, 0.24);
}

.home-constellation-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    flex: 1;
}

    .home-constellation-card__preview {
        margin-bottom: 0.75rem;
    }

.home-post-card {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.home-post-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.home-post-card__image--placeholder {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2rem;
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.26), transparent 18%),
        linear-gradient(135deg, #18124d, #382b8c 55%, #7b58d6);
}

.home-empty-state {
    padding: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .site-footer__grid {
        grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
        align-items: start;
    }

    .home-hero {
        padding: 5rem 0 3.25rem;
    }

    .home-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .site-footer {
        margin-top: 3rem;
    }

    .home-section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-search__shell {
        flex-direction: column;
        align-items: stretch;
        padding: 0.9rem;
    }

    .home-search__icon {
        display: none;
    }

    .home-search__button {
        width: 100%;
    }

    .home-hero__constellation {
        opacity: 0.28;
    }

    .home-hero {
        border-radius: 0 0 1.5rem 1.5rem;
    }

    .home-hero__inner {
        padding: 0 1rem;
    }
}

/* ---- Lab Estelar (members area: announcements + curated resources) ----
   Visual language borrowed from the two most polished pages: the frosted
   `star-surface` panels + radial backdrop of the star detail page, and the
   gradient icon chips / eyebrow headings of the home page. ---- */
.lab-page {
    position: relative;
    isolation: isolate;
}

/* Frosted panel shared by the notices, the forms and the empty states. */
.lab-surface {
    border: 1px solid rgba(113, 106, 156, 0.24);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(10px);
    transition: border-color 0.22s ease, background-color 0.22s ease;
}

.dark .lab-surface {
    border-color: rgba(209, 201, 252, 0.18);
    background: rgba(255, 255, 255, 0.03);
}

/* Gradient circular chip for icons — same recipe as .home-stat-card__icon. */
.lab-chip {
    display: grid;
    place-items: center;
    border-radius: 9999px;
    color: var(--purple-medium);
    background: linear-gradient(135deg, rgba(222, 201, 252, 0.95), rgba(180, 190, 245, 0.85));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.dark .lab-chip {
    color: #fff;
    background: linear-gradient(135deg, rgba(119, 95, 215, 0.9), rgba(67, 45, 153, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* ---- Page header: deliberately compact — no panel, no backdrop, so the
   notices and resource cards carry the visual weight. Actions sit top-right. ---- */
.lab-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.lab-head__brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

/* The logo art has generous transparent padding of its own, so a negative
   margin keeps it visually aligned with the text block. */
.lab-head__logo {
    width: 5rem;
    height: 5rem;
    flex: 0 0 5rem;
    margin: -0.5rem 0;
}

.lab-head__text {
    min-width: 0;
}

.lab-head__title {
    margin: 0.1rem 0 0;
    font-family: Georgia, serif;
    font-size: 1.9rem;
    line-height: 1.1;
}

.lab-head__lede {
    margin: 0.35rem 0 0;
    max-width: 56ch;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--gray);
}

.dark .lab-head__lede {
    color: rgba(242, 242, 242, 0.7);
}

.lab-head__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex-shrink: 0;
}

.lab-head__actions .btn i {
    width: 0.9rem;
    height: 0.9rem;
}

/* ---- Section headings ---- */
.lab-section {
    animation: star-detail-fade-up 0.38s ease;
}

.lab-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.lab-section__title {
    margin: 0.1rem 0 0;
    font-family: Georgia, serif;
    font-size: 1.65rem;
    line-height: 1.15;
}

.lab-section__count {
    font-size: 0.8rem;
    color: var(--gray);
}

.dark .lab-section__count {
    color: rgba(242, 242, 242, 0.66);
}

/* ---- Announcements (pinned notices) ---- */
.lab-notices {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.lab-notice {
    position: relative;
    display: flex;
    gap: 0.9rem;
    padding: 1.15rem 1.25rem 1.15rem 1.15rem;
    overflow: hidden;
}

/* Warm accent edge so notices read as "read me first" without shouting. */
.lab-notice::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #f2c46d, #feb3a5);
}

.lab-notice__icon {
    width: 2.1rem;
    height: 2.1rem;
    flex: 0 0 2.1rem;
    border-radius: 0.65rem;
    display: grid;
    place-items: center;
    color: #9a6a12;
    background: rgba(242, 196, 109, 0.22);
}

.dark .lab-notice__icon {
    color: var(--yellow);
    background: rgba(242, 196, 109, 0.16);
}

.lab-notice__icon i {
    width: 1.05rem;
    height: 1.05rem;
}

.lab-notice__body {
    min-width: 0;
    flex: 1;
}

/* Title left, date (+ delete) right — keeps the notice compact by not
   spending a whole extra line on the date. */
.lab-notice__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.3rem;
}

.lab-notice__title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
}

.lab-notice__meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    margin-left: auto;
}

.lab-notice__date {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    color: var(--gray);
}

.dark .lab-notice__date {
    color: rgba(242, 242, 242, 0.6);
}

/* ---- Discreet delete affordance (staff only) ---- */
.lab-delete {
    display: grid;
    place-items: center;
    width: 1.6rem;
    height: 1.6rem;
    padding: 0;
    border: none;
    border-radius: 9999px;
    background: transparent;
    color: var(--gray);
    opacity: 0.55;
    cursor: pointer;
    transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.lab-delete i {
    width: 0.85rem;
    height: 0.85rem;
}

.lab-delete:hover,
.lab-delete:focus-visible {
    opacity: 1;
    color: #b91c1c;
    background: rgba(185, 28, 28, 0.1);
}

.dark .lab-delete {
    color: rgba(242, 242, 242, 0.7);
}

.dark .lab-delete:hover,
.dark .lab-delete:focus-visible {
    color: #fca5a5;
    background: rgba(252, 165, 165, 0.16);
}

/* ---- Tag filter chips ---- */
.lab-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
}

.lab-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.8rem;
    border-radius: 9999px;
    border: 1px solid rgba(113, 106, 156, 0.22);
    background: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-dark);
    text-decoration: none;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.lab-filter:hover {
    border-color: var(--purple-medium);
    color: var(--purple);
}

.dark .lab-filter {
    border-color: rgba(209, 201, 252, 0.18);
    background: rgba(43, 25, 102, 0.45);
    color: var(--purple-light);
}

.dark .lab-filter:hover {
    border-color: var(--purple-light);
    color: #fff;
}

.lab-filter.is-active {
    border-color: transparent;
    background: var(--purple-medium);
    color: #fff;
}

.dark .lab-filter.is-active {
    border-color: transparent;
    background: var(--purple-medium);
    color: #fff;
}

/* ---- Resource cards ---- */
.lab-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
}

.lab-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.15rem;
    border: 1px solid rgba(113, 106, 156, 0.22);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(10px);
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dark .lab-card {
    border-color: rgba(209, 201, 252, 0.16);
    background: rgba(255, 255, 255, 0.03);
}

/* Sheen that only shows on hover — keeps the resting state calm. */
.lab-card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--purple-medium), var(--blue-light));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.lab-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 43, 140, 0.38);
    box-shadow: 0 22px 34px -24px rgba(30, 7, 65, 0.5);
}

.dark .lab-card:hover {
    border-color: rgba(222, 201, 252, 0.4);
}

.lab-card:hover::after {
    opacity: 1;
}

/* Focus lands on the inner link, so show the ring on the whole card. */
.lab-card:focus-within {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* Stretched link: the anchor is on the title (meaningful for screen readers
   and for "copy link address") but its ::after covers the card, so clicking
   anywhere opens the resource. The delete form sits above it via z-index. */
.lab-card__link {
    color: inherit;
    text-decoration: none;
}

.lab-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.lab-card__delete {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
}

.lab-card__head {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    /* Room for the delete button in the corner, so long titles don't run under it. */
    padding-right: 1.4rem;
}

.lab-card__icon {
    width: 2.3rem;
    height: 2.3rem;
    flex: 0 0 2.3rem;
    border-radius: 0.7rem;
    display: grid;
    place-items: center;
    color: var(--purple-medium);
    background: rgba(56, 43, 140, 0.09);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.dark .lab-card__icon {
    color: var(--purple-light);
    background: rgba(222, 201, 252, 0.12);
}

.lab-card:hover .lab-card__icon {
    color: #fff;
    background: var(--purple-medium);
}

.lab-card__icon i {
    width: 1.05rem;
    height: 1.05rem;
}

.lab-card__title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.3;
}

.lab-card__host {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.74rem;
    color: var(--gray);
    word-break: break-all;
}

.dark .lab-card__host {
    color: rgba(242, 242, 242, 0.6);
}

.lab-card__desc {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--gray-dark);
}

.dark .lab-card__desc {
    color: rgba(242, 242, 242, 0.78);
}

.lab-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.lab-card__cue {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.15rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--purple-medium);
}

.dark .lab-card__cue {
    color: var(--purple-light);
}

.lab-card__cue i {
    width: 0.9rem;
    height: 0.9rem;
    transition: transform 0.2s ease;
}

.lab-card:hover .lab-card__cue i {
    transform: translate(2px, -2px);
}

/* ---- Empty states ---- */
.lab-empty {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.5rem;
    border-style: dashed;
}

.lab-empty__icon {
    width: 2.4rem;
    height: 2.4rem;
    flex: 0 0 2.4rem;
}

.lab-empty__icon i {
    width: 1.1rem;
    height: 1.1rem;
}

.lab-empty__text {
    font-size: 0.9rem;
    color: var(--gray);
}

.dark .lab-empty__text {
    color: rgba(242, 242, 242, 0.7);
}

/* ---- Add forms (announcement / resource) ---- */
.lab-form {
    padding: 1.35rem;
    margin-bottom: 0.5rem;
    animation: star-detail-fade-up 0.28s ease;
}

.lab-form__title {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.lab-form p {
    margin-bottom: 1rem;
}

.lab-form label {
    display: block;
    font-weight: 600;
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
    color: var(--gray-dark);
}

.dark .lab-form label {
    color: var(--purple-light);
}

.lab-form .helptext {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.74rem;
    color: var(--gray);
}

.lab-form ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    list-style: none;
    padding: 0;
}

.lab-form ul li label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0;
    font-weight: 500;
}

.lab-form .ql-container {
    font-size: 0.95rem;
}

.lab-form .ql-editor {
    min-height: 12rem;
}

.lab-form .ql-toolbar,
.lab-form .ql-container {
    border-color: rgba(113, 106, 156, 0.24);
}

.lab-form .ql-toolbar {
    border-radius: 0.5rem 0.5rem 0 0;
    background: rgba(255, 255, 255, 0.7);
}

.lab-form .ql-container {
    border-radius: 0 0 0.5rem 0.5rem;
}

.icon-picker {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.icon-picker .form-input {
    flex: 1;
    width: auto;
    min-width: 0;
}

.icon-picker-preview {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 9999px;
    color: var(--purple-medium);
    background: linear-gradient(135deg, rgba(222, 201, 252, 0.95), rgba(180, 190, 245, 0.85));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.dark .icon-picker-preview {
    color: #fff;
    background: linear-gradient(135deg, rgba(119, 95, 215, 0.9), rgba(67, 45, 153, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.icon-picker-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.icon-picker-option {
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(113, 106, 156, 0.24);
    background: rgba(255, 255, 255, 0.6);
    color: var(--gray-dark);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.icon-picker-option:hover {
    border-color: var(--purple-medium);
    color: var(--purple);
}

.icon-picker-option.is-selected {
    border-color: transparent;
    background: var(--purple-medium);
    color: #fff;
}

.dark .icon-picker-option {
    border-color: rgba(209, 201, 252, 0.18);
    background: rgba(43, 25, 102, 0.45);
    color: var(--purple-light);
}

.dark .icon-picker-option:hover {
    border-color: var(--purple-light);
    color: #fff;
}

.dark .icon-picker-option.is-selected {
    border-color: transparent;
    background: var(--purple-medium);
    color: #fff;
}

.lab-field-error {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.74rem;
    color: #dc2626;
}

.dark .lab-field-error {
    color: #fca5a5;
}

@media (max-width: 640px) {
    .lab-head__logo {
        width: 3.4rem;
        height: 3.4rem;
        flex: 0 0 3.4rem;
    }

    .lab-head__actions {
        width: 100%;
    }

    .lab-head__actions .btn {
        flex: 1;
    }

    .lab-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Contribution form (star page, two steps) ---- */
/* Step 1 is a list of big tappable cards; step 2 is the fields for the
   chosen card plus the shared source block. Sized for a thumb first —
   this is the form people fill in from a phone right after a rite. */

.contribution-step {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.contribution-step[hidden] {
    display: none;
}

.contribution-step__eyebrow {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray);
}

.dark .contribution-step__eyebrow {
    color: var(--purple-light);
}

.contribution-step__title {
    margin: -0.4rem 0 0;
    font-family: Georgia, serif;
    font-size: 1.2rem;
}

.contribution-step__head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.contribution-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2.2rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(113, 106, 156, 0.3);
    background: rgba(255, 255, 255, 0.55);
    color: var(--gray-dark);
    font-size: 0.78rem;
    font-weight: 700;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.contribution-back:hover {
    border-color: var(--purple-medium);
    transform: translateX(-2px);
}

.contribution-back i {
    width: 0.9rem;
    height: 0.9rem;
}

.dark .contribution-back {
    border-color: rgba(209, 201, 252, 0.25);
    background: rgba(255, 255, 255, 0.04);
    color: var(--purple-light);
}

.contribution-choices {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contribution-choice {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    min-height: 3.9rem;
    padding: 0.8rem 0.9rem;
    text-align: left;
    border-radius: 0.9rem;
    border: 1px solid rgba(113, 106, 156, 0.24);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.contribution-choice:hover {
    border-color: var(--purple-medium);
    transform: translateY(-1px);
}

.contribution-choice:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

.contribution-choice.is-selected {
    border-color: var(--purple-medium);
    background: rgba(222, 201, 252, 0.34);
}

.dark .contribution-choice {
    border-color: rgba(209, 201, 252, 0.18);
    background: rgba(255, 255, 255, 0.03);
}

.dark .contribution-choice:hover,
.dark .contribution-choice.is-selected {
    border-color: var(--purple-light);
    background: rgba(255, 255, 255, 0.06);
}

.contribution-choice__icon {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    flex: 0 0 2.6rem;
    border-radius: 9999px;
    color: var(--purple-medium);
    background: linear-gradient(135deg, rgba(222, 201, 252, 0.95), rgba(180, 190, 245, 0.85));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.contribution-choice__icon--sign {
    background: linear-gradient(135deg, rgba(242, 196, 109, 0.95), rgba(254, 179, 165, 0.85));
    color: #7a4b12;
}

.contribution-choice__icon i {
    width: 1.15rem;
    height: 1.15rem;
}

.contribution-choice__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.contribution-choice__title {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.25;
}

.contribution-choice__hint {
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--gray);
}

.dark .contribution-choice__hint {
    color: var(--purple-light);
}

.contribution-choice__arrow {
    width: 1rem;
    height: 1rem;
    margin-left: auto;
    flex: 0 0 auto;
    color: var(--gray);
}

.contribution-group,
.contribution-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contribution-group[hidden],
.contribution-panel[hidden] {
    display: none;
}

.contribution-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0;
}

.contribution-field > label,
.contribution-field > .contribution-field__label {
    font-size: 0.85rem;
    font-weight: 700;
}

.contribution-hint {
    font-size: 0.74rem;
    line-height: 1.45;
    color: var(--gray);
}

.contribution-hint--center {
    text-align: center;
}

.dark .contribution-hint {
    color: var(--purple-light);
}

.contribution-error {
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    color: #e11d48;
}

.contribution-more {
    align-self: flex-start;
}

.contribution-details {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.contribution-details[hidden] {
    display: none;
}

.contribution-submit {
    width: 100%;
    min-height: 2.9rem;
    font-size: 0.95rem;
}

/* ---- Source block + personal gnosis switch ---- */

.contribution-source {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.contribution-source[hidden] {
    display: none;
}

.contribution-source__legend {
    padding: 0 0.3rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.contribution-source__body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contribution-source__body[hidden] {
    display: none;
}

/* Deliberately loud: this checkbox is the difference between a citation
   and a personal revelation, and it has to be impossible to skim past. */
.contribution-gnosis {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.75rem;
    border: 1px dashed rgba(242, 196, 109, 0.75);
    background: rgba(242, 196, 109, 0.14);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contribution-gnosis:hover {
    border-color: rgba(242, 196, 109, 1);
    background: rgba(242, 196, 109, 0.22);
}

.dark .contribution-gnosis {
    border-color: rgba(242, 196, 109, 0.5);
    background: rgba(242, 196, 109, 0.08);
}

.contribution-gnosis__input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.12rem;
    flex: 0 0 1.15rem;
    accent-color: var(--purple-medium);
}

.contribution-gnosis__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.contribution-gnosis__title {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.86rem;
    font-weight: 700;
}

.contribution-gnosis__title i {
    width: 0.95rem;
    height: 0.95rem;
}

.contribution-gnosis__hint {
    font-size: 0.76rem;
    line-height: 1.45;
    color: var(--gray-dark);
}

.dark .contribution-gnosis__hint {
    color: var(--purple-light);
}

/* ---- Signs tab ---- */

.star-tab-panel--signs {
    box-shadow: inset 0 1px 0 rgba(242, 196, 109, 0.4);
}

.star-tab-btn__count {
    display: inline-grid;
    place-items: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.28rem;
    border-radius: 9999px;
    background: rgba(56, 43, 140, 0.16);
    font-size: 0.66rem;
    font-weight: 700;
}

.dark .star-tab-btn__count {
    background: rgba(209, 201, 252, 0.22);
}

.sign-entry {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.sign-entry__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.sign-entry__question {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0;
    padding: 0.45rem 0.6rem;
    border-radius: 0.6rem;
    background: rgba(242, 196, 109, 0.16);
    font-size: 0.82rem;
    font-style: italic;
}

.sign-entry__question i {
    width: 0.9rem;
    height: 0.9rem;
    margin-top: 0.2rem;
    flex: 0 0 auto;
}

.sign-entry__meta {
    font-size: 0.82rem;
}

.sign-entry__meta-label {
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
}

.dark .sign-entry__meta-label {
    color: var(--purple-light);
}

.sign-entry__foot {
    font-size: 0.72rem;
    color: var(--gray);
}

.dark .sign-entry__foot {
    color: var(--purple-light);
}

@media (max-width: 640px) {
    .contribution-choice {
        padding: 0.75rem 0.7rem;
        gap: 0.7rem;
    }

    .contribution-choice__icon {
        width: 2.3rem;
        height: 2.3rem;
        flex: 0 0 2.3rem;
    }

    .contribution-choice__hint {
        font-size: 0.74rem;
    }

    .contribution-step__head {
        gap: 0.5rem;
    }
}

/* ---- Turmas ---- */
.turma-page {
    position: relative;
    isolation: isolate;
}

/* Entry card on the Lab Estelar home page, linking into /turmas/ */
.turma-entry-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.turma-entry-card:hover {
    border-color: rgba(56, 43, 140, 0.38);
    transform: translateY(-2px);
}

.turma-entry-card__icon {
    width: 2.6rem;
    height: 2.6rem;
    flex-shrink: 0;
}

.turma-entry-card__text {
    flex: 1;
    min-width: 0;
}

.turma-entry-card__title {
    font-weight: 700;
    font-family: var(--font-display, Georgia, serif);
}

.turma-entry-card__desc {
    font-size: 0.82rem;
    color: var(--gray);
    margin-top: 0.15rem;
}

.dark .turma-entry-card__desc {
    color: var(--purple-light);
    opacity: 0.85;
}

.turma-entry-card__arrow {
    flex-shrink: 0;
    opacity: 0.6;
}

/* ---- Cohort list ---- */
.turma-list-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}

.turma-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.15rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.turma-card:hover {
    border-color: rgba(56, 43, 140, 0.38);
    transform: translateY(-3px);
}

.turma-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.6rem;
}

.turma-card__title {
    font-weight: 700;
    font-size: 1rem;
}

.turma-card__desc {
    color: var(--gray-dark);
}

.dark .turma-card__desc {
    color: var(--purple-light);
}

.turma-card__meta {
    display: flex;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--gray);
}

.turma-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* ---- Status badges ---- */
.turma-status--active { background: #dcfce7; color: #166534; }
.dark .turma-status--active { background: #14532d; color: #bbf7d0; }
.turma-status--ended { background: #e6e7f6; color: #2a2b4e; }
.dark .turma-status--ended { background: #3b3d6b; color: #e6e7f6; }
.turma-status--archived { background: var(--gray-light); color: var(--gray-dark); }
.dark .turma-status--archived { background: rgba(255, 255, 255, 0.1); color: var(--purple-light); }

.turma-desc {
    margin-top: 0.5rem;
}

/* ---- Status change / delete panel ---- */
.turma-status-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
}

.turma-status-form {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.turma-status-form label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-dark);
}

.dark .turma-status-form label {
    color: var(--purple-light);
}

.turma-status-form select {
    width: auto;
}

.turma-delete-btn {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.35);
}

.dark .turma-delete-btn {
    color: #fca5a5;
    border-color: rgba(252, 165, 165, 0.35);
}

/* ---- Tabs: reuse .lab-filter's pill look for the tab-active state the
   generic [data-tabs] JS toggles (see app.js) ---- */
.lab-filter.tab-active {
    border-color: transparent;
    background: var(--purple-medium);
    color: #fff;
}

.dark .lab-filter.tab-active {
    border-color: transparent;
    background: var(--purple-medium);
    color: #fff;
}

.turma-tabs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.turma-panel > .star-sidebar-contribute-btn {
    margin-bottom: 1rem;
}

.turma-panel .lab-form {
    margin-bottom: 1.25rem;
}

/* ---- Journey card (cohort detail "Jornadas" tab) ---- */
.turma-journey-card__head {
    align-items: center;
}

.turma-journey-card__head .badge {
    flex-shrink: 0;
}

.turma-journey-card__progress {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.turma-journey-card__progress .turma-progress-bar {
    flex: 1;
    margin-top: 0;
}

.turma-journey-card__progress .turma-progress-label {
    flex-shrink: 0;
    margin-top: 0;
    font-weight: 600;
}

/* ---- Progress bar + buttons (shared: journey cards, journey detail, resources) ---- */
.turma-progress-bar {
    height: 0.4rem;
    border-radius: 9999px;
    background: rgba(113, 106, 156, 0.2);
    overflow: hidden;
    margin-top: 0.4rem;
}

.turma-progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--purple-medium), var(--blue-light));
    border-radius: 9999px;
    transition: width 0.25s ease;
}

.turma-progress-label {
    display: block;
    font-size: 0.74rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

.turma-progress-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(113, 106, 156, 0.24);
    background: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-dark);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.dark .turma-progress-btn {
    border-color: rgba(209, 201, 252, 0.18);
    background: rgba(43, 25, 102, 0.45);
    color: var(--purple-light);
}

.turma-progress-btn.is-active {
    border-color: transparent;
    background: var(--green);
    color: #fff;
}

.turma-resource-progress {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* ---- Event badge (announcement / step calendar date) ---- */
.turma-event-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--yellow);
    color: #4a3400;
}

.dark .turma-event-badge {
    background: #78350f;
    color: #fde68a;
}

/* ---- Video/Drive embed (16:9) ---- */
.turma-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 0.6rem;
    overflow: hidden;
    background: #000;
}

.turma-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---- Roster (students / cohort admins) ---- */
.turma-roster-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.turma-roster {
    padding: 1.15rem;
}

.turma-roster__list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.turma-roster__list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    background: rgba(113, 106, 156, 0.08);
    font-size: 0.85rem;
}

.turma-add-person-form {
    display: flex;
    gap: 0.5rem;
}

.turma-add-person-form .form-input {
    flex: 1;
}

/* ---- Journey steps ---- */
.turma-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.turma-step {
    display: flex;
    gap: 0.9rem;
    padding: 1rem 1.15rem;
}

.turma-step.is-completed {
    border-color: rgba(22, 115, 111, 0.4);
}

.turma-step__index {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--purple-medium);
    background: linear-gradient(135deg, rgba(222, 201, 252, 0.95), rgba(180, 190, 245, 0.85));
}

.turma-step__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.turma-step__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.turma-step__title {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0;
}

.turma-step__extra {
    font-size: 0.8rem;
    color: var(--gray);
    font-style: italic;
}

.turma-step__edit-form {
    margin-top: 0.4rem;
    padding: 0.9rem;
}

/* ---- Calendar ---- */
.turma-calendar {
    padding: 1.15rem;
}

.turma-calendar__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.turma-calendar__title {
    font-family: var(--font-display, Georgia, serif);
    font-size: 1.15rem;
    text-transform: capitalize;
}

.turma-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.35rem;
}

.turma-calendar-weekday {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray);
    padding-bottom: 0.4rem;
}

.turma-calendar-cell {
    min-height: 5rem;
    padding: 0.35rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(113, 106, 156, 0.14);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.turma-calendar-cell--pad {
    border-color: transparent;
}

.turma-calendar-cell.is-today {
    border-color: var(--purple-medium);
    background: rgba(56, 43, 140, 0.06);
}

.dark .turma-calendar-cell.is-today {
    background: rgba(222, 201, 252, 0.08);
}

.turma-calendar-cell__day {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray);
}

.turma-calendar-event {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.4rem;
    border-radius: 0.4rem;
    font-size: 0.68rem;
    line-height: 1.2;
    text-decoration: none;
    color: var(--purple-medium);
    background: rgba(180, 190, 245, 0.35);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.turma-calendar-event--step {
    background: rgba(22, 115, 111, 0.18);
    color: var(--green);
}

.dark .turma-calendar-event {
    color: var(--purple-light);
    background: rgba(56, 43, 140, 0.35);
}

.dark .turma-calendar-event--step {
    background: rgba(22, 115, 111, 0.3);
    color: #6ee7d7;
}

@media (max-width: 640px) {
    .turma-calendar-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 0.2rem;
    }

    .turma-calendar-cell {
        min-height: 3.2rem;
        padding: 0.2rem;
    }

    .turma-calendar-event span {
        display: none;
    }
}

/* Calendar events link to #anuncio-N / #passo-N on another page. The site
   header is `position: sticky; top: 0`, so a plain anchor jump scrolls the
   target flush to the viewport top — right underneath the opaque header,
   clipping it. scroll-margin-top keeps the anchored card below the header. */
[id^="anuncio-"],
[id^="passo-"] {
    scroll-margin-top: 6rem;
}

/* ---- Importador de captura (research/import_capture) ---- */

/* A tela de revisão é um form só, dividido em abas. Os painéis são escondidos
   por classe (.is-active), nunca pelo atributo `hidden`: o syncHiddenFieldsDisabled
   do app.js desabilita qualquer campo dentro de `[hidden]`, e com atributo os
   campos de toda aba fechada sumiriam do POST em silêncio. */

.import-review { max-width: 62rem; }

.import-head {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border, #e5e7eb);
    margin-bottom: 1.25rem;
}

.dark .import-head { border-bottom-color: #3b3d6b; }

.import-head__eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted, #6b7280);
}

.import-head__title { font-size: 1.9rem; line-height: 1.15; margin: 0.15rem 0 0.5rem; }

.import-head__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.import-head__summary {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--muted, #6b7280);
    max-width: 48rem;
}

.import-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border, #e5e7eb);
    font-size: 0.75rem;
}

.dark .import-pill { border-color: #3b3d6b; }
.import-pill svg { width: 0.85rem; height: 0.85rem; }
.import-pill--ok { border-color: #16a34a; color: #16a34a; }
.import-pill--warn { border-color: #d97706; color: #d97706; }

/* Barra de abas */
.import-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border, #e5e7eb);
}

.dark .import-tabs { border-bottom-color: #3b3d6b; }

.import-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 0.6rem;
    background: none;
    font-size: 0.8rem;
    color: var(--muted, #6b7280);
    cursor: pointer;
}

.import-tab svg { width: 0.9rem; height: 0.9rem; }
.import-tab:hover { background: var(--off-white, #f7f7f9); color: inherit; }
.dark .import-tab:hover { background: var(--purple, #2a2c52); }

.import-tab.is-active {
    border-color: #f59e0b;
    color: inherit;
    font-weight: 600;
    background: rgba(245, 158, 11, 0.08);
}

.import-tab__count {
    font-size: 0.7rem;
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    background: var(--off-white, #f1f1f4);
}

.dark .import-tab__count { background: #3b3d6b; }

/* Painéis */
.import-panel { display: none; }
.import-panel.is-active { display: block; }

.import-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.import-panel__head--second {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border, #e5e7eb);
}

.dark .import-panel__head--second { border-top-color: #3b3d6b; }

.import-panel__title { font-size: 1.15rem; font-weight: 600; }

.import-panel__hint {
    font-size: 0.8rem;
    color: var(--muted, #6b7280);
    max-width: 44rem;
    margin-top: 0.15rem;
}

.import-panel__foot { font-size: 0.75rem; color: var(--muted, #6b7280); margin-top: 0.75rem; }
.import-panel__subhead { display: flex; justify-content: flex-end; margin-bottom: 0.4rem; }

.import-toggle-all {
    font-size: 0.75rem;
    text-decoration: underline;
    text-underline-offset: 2px;
    color: var(--muted, #6b7280);
    background: none;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
}

.import-toggle-all:hover { color: #f59e0b; }

/* Subgrupo = a seção da nota de onde as linhas vieram. É a procedência; a
   área (a aba) é a decisão, e essa fica no seletor de cada linha. */
.import-subgroup + .import-subgroup { margin-top: 1.5rem; }

.import-subgroup__title {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted, #6b7280);
    padding-bottom: 0.35rem;
    margin-bottom: 0.6rem;
    border-bottom: 1px dashed var(--border, #e5e7eb);
}

.dark .import-subgroup__title { border-bottom-color: #3b3d6b; }

/* Linhas */
.import-rows { display: flex; flex-direction: column; gap: 0.75rem; }

.import-row {
    display: grid;
    grid-template-columns: 2.25rem 1fr;
    align-items: start;
    gap: 0.5rem;
    padding: 0.6rem;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 0.6rem;
}

.dark .import-row { border-color: #3b3d6b; }
.import-row--dim { opacity: 0.6; }
.import-row--ref { border-style: dashed; }

.import-row__check {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding-top: 0.2rem;
    cursor: pointer;
}

.import-row__num { font-size: 0.7rem; color: var(--muted, #6b7280); }
.import-row__body { min-width: 0; }

.import-row__origin {
    font-size: 0.72rem;
    color: var(--muted, #6b7280);
    margin-bottom: 0.3rem;
}

.import-row__raw { font-size: 0.72rem; color: var(--muted, #6b7280); margin-top: 0.3rem; }

.import-row__fields {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.4rem;
    margin-top: 0.4rem;
    font-size: 0.8rem;
}

/* Only direct children: inside .import-inline-field the flex axis is
   vertical, so a `flex-basis: 9rem` there stretches the field to 9rem *tall*. */
.import-row__fields > .form-input { flex: 1 1 9rem; min-width: 0; }
.import-row__fields > .import-field-sm { flex: 0 0 5.5rem; }
.import-row__fields > .import-field-wide { flex: 1 1 100%; }

.import-inline-field { display: flex; flex-direction: column; gap: 0.15rem; flex: 1 1 9rem; min-width: 0; }
.import-inline-field--sm { flex: 0 0 6rem; }
.import-inline-field .form-input { flex: 0 0 auto; width: 100%; }

.import-inline-field > span {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted, #6b7280);
}

.import-status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
}

.import-status svg { width: 0.8rem; height: 0.8rem; }
.import-status--ok { color: #16a34a; }
.import-status--new { color: #2563eb; }
.import-status--warn { color: #d97706; }
.import-status--dim { color: var(--muted, #6b7280); }

.import-corr-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; font-size: 0.875rem; }
.import-corr-line svg { width: 0.8rem; height: 0.8rem; opacity: 0.5; }

.import-corr-line__attr {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted, #6b7280);
}

.import-empty { font-size: 0.85rem; color: var(--muted, #6b7280); }

/* Palavras-chave, entidades, contexto */
.import-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.import-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 999px;
    font-size: 0.8rem;
    cursor: pointer;
}

.dark .import-chip { border-color: #3b3d6b; }
.import-chip--dim { opacity: 0.55; }
.import-chip__tag { font-size: 0.65rem; color: var(--muted, #6b7280); }
.import-chip__tag--ok { color: #16a34a; }
.import-chip__tag--new { color: #2563eb; }

.import-entities { display: grid; gap: 1rem; }
@media (min-width: 640px) { .import-entities { grid-template-columns: 1fr 1fr; } }

.import-entity { display: block; }
.import-entity__label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.25rem; }
.import-entity__hint { display: block; font-size: 0.7rem; color: var(--muted, #6b7280); }
.import-entity__hint.is-ok { color: #16a34a; }
.import-entity__hint.is-new { color: #2563eb; }
.import-entity__hint.is-warn { color: #d97706; }

.import-context { display: flex; flex-direction: column; gap: 0.4rem; }
.import-context__item summary { cursor: pointer; font-size: 0.8rem; font-weight: 600; }
.import-context__item p { font-size: 0.8rem; color: var(--muted, #6b7280); white-space: pre-line; margin-top: 0.35rem; }

/* Barra de ação fixa: uma ficha tem centenas de linhas, o botão de importar
   não pode ficar só lá embaixo. */
.import-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding: 0.85rem 0;
    border-top: 1px solid var(--border, #e5e7eb);
    background: var(--bg, #fff);
}

.dark .import-actions { border-top-color: #3b3d6b; background: var(--dark-bg, #14152e); }
.import-actions__approve { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; }
.import-actions__buttons { display: flex; gap: 0.6rem; }

@media (max-width: 640px) {
    .import-row { grid-template-columns: 1.75rem 1fr; }
    .import-row__fields .form-input { flex: 1 1 100%; }
    .import-inline-field { flex: 1 1 100%; }
    .import-tab span:not(.import-tab__count) { display: none; }
}

/* ---- Informações documentadas (blocos por área) ---- */

/* Uma afirmação por linha, com marcador e o número da referência em
   sobrescrito — a citação completa vive na lista de References do fim do
   bloco, como já acontece em nomes alternativos e correspondências. Antes
   cada afirmação repetia a citação inteira embaixo dela. */
.finding-list {
    display: flex;
    flex-direction: column;
}

.finding {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dark .finding { border-bottom-color: rgba(255, 255, 255, 0.08); }
.finding:last-child { border-bottom: 0; }

.finding__body {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.finding__text { flex: 1 1 auto; min-width: 0; }

/* The footnote number must sit right after the last word, not float off to
   the right edge — so the statement's rich text renders inline here. */
.finding__text .prose-user,
.finding__text .prose-user > p:only-child { display: inline; }

.finding__marker {
    flex: 0 0 auto;
    font-size: 0.7rem;
    line-height: 1.6;
    color: #6f76c9;
}

.dark .finding__marker { color: #a5aef5; }

.finding__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.2rem 0 0 1.1rem;
    font-size: 0.72rem;
    color: var(--muted, #6b7280);
}

.finding__quote {
    margin: 0.35rem 0 0 1.1rem;
    padding-left: 0.75rem;
    border-left: 2px solid rgba(0, 0, 0, 0.12);
    font-size: 0.8rem;
    font-style: italic;
    color: var(--muted, #6b7280);
}

.dark .finding__quote { border-left-color: rgba(255, 255, 255, 0.18); }

.finding__interpretation { margin: 0.4rem 0 0 1.1rem; font-size: 0.85rem; }

.finding__interpretation-label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted, #6b7280);
}

/* Um dado "rótulo: valor" na revisão fica com o rótulo à esquerda, como ele
   aparece na nota e como vai aparecer no painel da página da estrela. */
.import-row__labelled { display: flex; gap: 0.4rem; align-items: flex-start; }
.import-row__labelled .import-label-input { flex: 0 0 10rem; font-weight: 600; }
.import-row__labelled .form-textarea { flex: 1 1 auto; min-height: 2.6rem; }

.import-lore-preview {
    margin-top: 0.4rem;
    padding: 0.5rem 0.7rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.03);
    font-size: 0.82rem;
    max-height: 16rem;
    overflow-y: auto;
}

.dark .import-lore-preview { background: rgba(255, 255, 255, 0.04); }
.import-lore-preview blockquote { font-style: italic; opacity: 0.9; margin: 0.3rem 0; }
.import-lore-preview p { margin: 0.3rem 0; }

@media (max-width: 640px) {
    .import-row__labelled { flex-direction: column; }
    .import-row__labelled .import-label-input { flex: 1 1 auto; width: 100%; }
}

/* Sub-bloco de uma seção da ficha: a cultura em "Tradições culturais", o
   autor/obra nos blocos de astrologia de estrelas fixas. */
.finding-subhead {
    margin: 1rem 0 0.4rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted, #6b7280);
}

.finding-subhead:first-child { margin-top: 0; }

/* ---- Índice de seções dentro da aba (star_detail/_ficha.html) ---- */

/* Cada aba é uma ficha inteira — o índice à esquerda é o que faz achar a
   seção sem rolar. Ele é sticky dentro do painel, então cada aba tem o seu:
   trocar de aba troca o índice junto. */
.star-tab-layout {
    display: grid;
    grid-template-columns: 204px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

/* Dentro da ficha, um dado "rótulo: valor" fica com o rótulo à esquerda e o
   valor à direita — é o formato que a nota usa e o que a página antiga em
   Laravel fazia. Escopado em `.star-tab-main` de propósito: `.info-panel__row`
   é empilhado no resto do site (hero, sidebar) e continua assim. */
@media (min-width: 640px) {
    .star-tab-main .info-panel__row {
        display: grid;
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 1rem;
        align-items: baseline;
    }
    .star-tab-main .info-panel__row-label { padding-top: 0.1rem; }
}

.star-index {
    position: sticky;
    top: 5.5rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.star-index__title {
    font-size: 0.68rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--muted, #6b7280);
    margin: 0 0 0.5rem;
}

.star-index__link {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.35rem 0.65rem;
    border-radius: 0.45rem;
    font-size: 0.82rem;
    line-height: 1.35;
    color: inherit;
    opacity: 0.75;
    text-decoration: none;
}

.star-index__link:hover { opacity: 1; background: rgba(122, 106, 190, 0.09); }

.star-index__link.is-active {
    opacity: 1;
    font-weight: 600;
    background: rgba(122, 106, 190, 0.14);
}

.star-index__link > span { font-size: 0.7rem; opacity: 0.5; flex: 0 0 auto; }

.star-index__link--last {
    margin-top: 0.35rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.dark .star-index__link--last { border-top-color: rgba(255, 255, 255, 0.12); }

.star-index__empty { font-size: 0.8rem; opacity: 0.6; padding: 0 0.65rem; }

/* Cada bloco é alvo de um link do índice, e o cabeçalho do site é sticky —
   sem isso o bloco ancorado para debaixo dele. */
.star-tab-main .star-reading-block,
.star-tab-main .corr-references { scroll-margin-top: 6rem; }

@media (max-width: 1100px) {
    .star-tab-layout { grid-template-columns: minmax(0, 1fr); }
    /* No celular o índice vira uma fita rolável acima do conteúdo, em vez de
       ocupar meia tela antes de qualquer informação. */
    .star-index {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        gap: 0.35rem;
        padding-bottom: 0.35rem;
    }
    .star-index__title { display: none; }
    .star-index__link { white-space: nowrap; border: 1px solid rgba(0, 0, 0, 0.1); }
    .dark .star-index__link { border-color: rgba(255, 255, 255, 0.14); }
    .star-index__link--last { margin-top: 0; padding-top: 0.35rem; border-top: 0; }
}

/* ---- Página da estrela em coluna única (star_detail.html) ---- */
/* A sidebar saiu: o botão de contribuir subiu pro hero e a lista de estrelas
   irmãs virou uma faixa no pé da página. `.star-detail-layout` continua
   definido acima, mas a página de estrela não usa mais. */

.star-hero__cta {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.star-hero__contribute {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.6rem;
}

.star-hero__contribute i {
    width: 1rem;
    height: 1rem;
}

.star-related-strip {
    padding: 1rem 1.15rem;
}

.star-related-strip__title {
    margin: 0 0 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.star-related-strip__title i {
    width: 1.05rem;
    height: 1.05rem;
    color: var(--purple);
}

.dark .star-related-strip__title i {
    color: var(--purple-light);
}

.star-related-strip .star-related-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
    gap: 0.5rem;
}
