:root {
    --bg: #0b0f0c;
    --panel: #111815;
    --panel2: #0f1411;
    --text: #e9f2ec;
    --muted: #b7c6be;
    --line: rgba(255,255,255,0.08);
    --accent: #6ee7a8;
    --accent2: #8ab4ff;
    --radius: 16px;
    --shadow: 0 12px 40px rgba(0,0,0,0.35);
    --max: 1100px;
    --pad: 20px;
    font-synthesis-weight: none;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    line-height: 1.55;
    background-color: var(--bg);
    background-image: radial-gradient(1200px 800px at 10% -10%, rgba(110,231,168,0.15), transparent 70%), radial-gradient(1200px 800px at 90% -10%, rgba(138,180,255,0.12), transparent 70%);
    background-repeat: no-repeat;
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
}

code {
    background: rgba(255,255,255,0.06);
    padding: 2px 6px;
    border-radius: 8px;
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11,15,12,0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.brand-mark {
    font-size: 20px;
}

.brand-name {
    letter-spacing: 0.2px;
}

.nav {
    position: relative;
}

    .nav a {
        padding: 10px 12px;
        border-radius: 12px;
        color: var(--muted);
    }

        .nav a[aria-current="page"], .nav a:hover {
            background: rgba(255,255,255,0.06);
            color: var(--text);
        }

/* Mobile nav (hamburger only on small screens) */
.nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Desktop links visible by default */
.nav-links {
    display: flex;
    gap: 14px;
}

/* Hamburger hidden by default */
.nav-toggle {
    display: none;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.06);
    color: var(--text);
    cursor: pointer;
}

/* Mobile menu panel */
.mobile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: rgba(11,15,12,0.96);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px;
    margin-top: 8px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.45);
    z-index: 1000;
}

    .mobile-menu a {
        display: block;
        padding: 12px 10px;
        border-radius: 12px;
        color: var(--muted);
    }

        .mobile-menu a:hover,
        .mobile-menu a[aria-current="page"] {
            background: rgba(255,255,255,0.06);
            color: var(--text);
        }

/* On mobile: hide desktop links, show hamburger */
@media (max-width: 700px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

.hero {
    padding: 64px 0 28px;
}

    .hero h1 {
        font-size: clamp(28px, 4vw, 44px);
        line-height: 1.1;
        margin: 0 0 12px;
    }

/* Hero Logo Styling (Cursive Version) */

.hero-logo {
    font-family: 'Pacifico', cursive;
    font-size: clamp(48px, 9vw, 96px);
    font-weight: 400;
    letter-spacing: 1px;
    margin: 0 0 16px;
    line-height: 1.1;
}

    .hero-logo .canna {
        background: linear-gradient(90deg, #6ee7a8, #8ab4ff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .hero-logo .hut {
        color: #ffffff;
    }

.hero-tagline {
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 24px;
}

.lead {
    color: var(--muted);
    font-size: 1.08rem;
    margin: 0 0 18px;
    max-width: 70ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(110,231,168,0.35);
    background: rgba(110,231,168,0.12);
    color: var(--text);
    box-shadow: var(--shadow);
}

    .btn:hover {
        transform: translateY(-1px);
    }

.btn-secondary {
    border: 1px solid rgba(138,180,255,0.35);
    background: rgba(138,180,255,0.10);
    box-shadow: none;
}

.disclaimer {
    color: var(--muted);
    font-size: 0.95rem;
    max-width: 80ch;
}

.page-head {
    padding: 28px 0 10px;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 0.92rem;
}

.hidden {
    display: none;
}

.grid-2 {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 520px));
    justify-content: center; 
    margin: 40px auto;
}


.grid-3 {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 18px 0 40px;
}

.card {
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.card-link {
    display: block;
    padding: 0;
    overflow: hidden;
}

    .card-link .card-body {
        padding: 14px 14px 16px;
    }

.thumb {
    aspect-ratio: 16/9;
    background: var(--panel2);
    border-bottom: 1px solid var(--line);
}

    .thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.law-doc h2 {
    margin-top: 28px;
}

    .law-doc h2:first-of-type {
        margin-top: 0;
    }

.h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.18);
    color: var(--muted);
    font-size: 0.85rem;
}

.checklist {
    padding-left: 18px;
}

.callout {
    padding: 20px;
    margin: 22px 0 50px;
}

.notice {
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin: 18px 0;
}

.notice-error {
    border-color: rgba(255,90,90,0.35);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 22px 0;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.backlink {
    display: inline-block;
    margin: 22px 0 12px;
    color: var(--muted);
}

    .backlink:hover {
        color: var(--text);
    }

.review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0 12px;
}

    .review-header h1 {
        margin: 0 0 6px;
        font-size: clamp(26px, 3vw, 38px);
    }

.review-layout {
    display: grid;
    gap: 16px;
    grid-template-columns: 2fr 1fr;
    align-items: start;
    margin-bottom: 24px;
}

.dl-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

dt {
    color: var(--muted);
    font-size: 0.9rem;
}

dd {
    margin: 4px 0 0;
}

.pn-meter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meter {
    flex: 1;
    height: 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(0,0,0,0.18);
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    width: 0%;
    background: rgba(110,231,168,0.55);
    border-right: 1px solid rgba(255,255,255,0.12);
}

.meter-label {
    min-width: 44px;
    text-align: right;
    color: var(--muted);
    font-size: 0.9rem;
}

#pn_notes p {
    margin: 0 0 12px;
}

    #pn_notes p:last-child {
        margin-bottom: 0;
    }

.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.gallery-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
}

    .gallery-item img {
        width: 100%;
        height: 140px;
        object-fit: cover;
        display: block;
    }

.spacer {
    height: 10px;
}

.review > section.card {
    margin-top: 20px;
}

    .review > section.card:first-of-type {
        margin-top: 0;
    }

.disabled {
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .review-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    .dl-grid {
        grid-template-columns: 1fr;
    }
}

.nav-toggle {
    display: none !important;
}

.nav-links {
    display: flex !important;
}

/* Only show hamburger on mobile */
@media (max-width: 700px) {
    .nav-toggle {
        display: inline-flex !important;
    }

    .nav-links {
        display: none !important;
    }
}
/* Lightbox overlay */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10,14,11,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    .lightbox img {
        max-width: 90vw;
        max-height: 85vh;
        border-radius: 14px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    }

    .lightbox.hidden {
        display: none;
    }

/* Controls */
.lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 34px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 42px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px 14px;
}

.lightbox-prev {
    left: 18px;
}

.lightbox-next {
    right: 18px;
}