/* Födelsedagslistan – Custom CSS */

html, body { background-color: #0E0F13; }
body {
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01", "cv11";
}
::selection { background-color: #E62A63; color: white; }

/* Hero carousel slides */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}
.hero-slide .slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    transform: scale(1.02);
    transition: transform 8s ease-out;
}
.hero-slide.active .slide-img {
    transform: scale(1.08);
}

/* Line clamps */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card portrait positioning — keeps faces visible */
.face-crop {
    object-fit: cover;
    object-position: center 22%;
}

/* Star glow */
.star-glow {
    filter: drop-shadow(0 0 30px rgba(255,255,255,0.15));
}

/* Mobile menu transitions */
.mobile-menu {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}
.mobile-menu.hidden-menu {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

body.menu-open { overflow: hidden; }

/* Footer link hover underline */
.footer-link {
    position: relative;
    display: inline-block;
}
.footer-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    height: 1px;
    width: 0;
    background: #E62A63;
    transition: width 0.25s ease;
}
.footer-link:hover::after { width: 100%; }

/* Article prose styling */
.prose-fd {
    color: #d1d5db;
    line-height: 1.75;
    font-size: 16px;
}
.prose-fd p { margin: 0 0 1.25em; }
.prose-fd p:last-child { margin-bottom: 0; }
.prose-fd a { color: #E62A63; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose-fd a:hover { color: #fff; }
.prose-fd h2 { font-family: 'Playfair Display', serif; color: #fff; font-weight: 700; font-size: 1.75rem; margin: 2.25em 0 0.75em; line-height: 1.2; }
.prose-fd h3 { color: #fff; font-weight: 700; font-size: 1.25rem; margin: 1.75em 0 0.5em; }
.prose-fd strong { color: #fff; font-weight: 700; }
.prose-fd ul, .prose-fd ol { padding-left: 1.5em; margin: 0 0 1.25em; }
.prose-fd ul { list-style: disc; }
.prose-fd ol { list-style: decimal; }
.prose-fd ul ul { list-style: circle; }
.prose-fd ul ul ul { list-style: square; }
.prose-fd li { margin: 0.4em 0; padding-left: 0.35em; }
.prose-fd li::marker { color: #E62A63; }
/* Tabeller i Markdown-artiklar */
.prose-fd table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.75em 0;
    font-size: 14.5px;
    background: #181A20;
    border: 1px solid #262932;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    overflow-x: auto;
}
.prose-fd thead { background: #1C1F27; }
.prose-fd th {
    color: #fff;
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #262932;
    white-space: nowrap;
}
.prose-fd td {
    padding: 12px 16px;
    border-bottom: 1px solid #262932;
    vertical-align: top;
    color: #d1d5db;
}
.prose-fd tr:last-child td { border-bottom: none; }
.prose-fd tbody tr:hover { background: rgba(230,42,99,0.04); }
.prose-fd table strong { color: #fff; }

/* Skeleton for missing portrait */
.no-portrait {
    background:
        radial-gradient(circle at 50% 35%, rgba(230,42,99,0.12), transparent 55%),
        linear-gradient(135deg, #1f222b, #181A20);
}

/* Focus ring for a11y — outline följer elementets egen border-radius */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid #E62A63;
    outline-offset: 2px;
}

/* Dölj reCAPTCHA v3-badgen permanent. Google tillåter detta så länge alternativ attribution finns
   på formuläret (se kontaktsidans "Skyddad av reCAPTCHA"-text). */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Cookie-banner: dolas innan body renderas om consent finns i localStorage. Sätts av inline-skript i <head>. */
html.cookie-acked #cookieBanner { display: none !important; }
