/* =========================================================
   Dansk Tera Klub - modern nautical stylesheet
   Rewritten 2026. Replaces legacy linuxforum.dk styles.
   ========================================================= */

:root {
    --navy:      #0d3b66;   /* deep sea */
    --ocean:     #145da0;   /* primary blue */
    --sky:       #2a9dd6;   /* bright accent blue */
    --accent:    #e63946;   /* warm red (Danish flag / old site nod) */
    --accent-dk: #c1121f;
    --bg:        #f4f7fb;   /* page background */
    --card:      #ffffff;
    --text:      #1a2b3c;
    --muted:     #5a6b7b;
    --line:      #e2e8f0;
    --radius:    14px;
    --shadow:    0 6px 24px rgba(13, 59, 102, 0.10);
    --shadow-sm: 0 2px 8px rgba(13, 59, 102, 0.08);
    --maxw:      920px;
    --font:      "Ubuntu", -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img, iframe {
    max-width: 100%;
}
img { height: auto; border: 0; border-radius: 8px; }

/* ---------- Navigation bar ---------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 59, 102, 0.96);
    backdrop-filter: saturate(160%) blur(8px);
    box-shadow: 0 2px 14px rgba(13, 59, 102, 0.25);
}
.nav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    gap: 12px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: .2px;
    white-space: nowrap;
}
.nav-brand img {
    height: 40px;
    width: auto;
    border-radius: 6px;
    background: #fff;
    padding: 3px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    display: block;
    color: #dbe8f5;
    text-decoration: none;
    font-weight: 600;
    font-size: .93rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background .15s ease, color .15s ease;
    background: transparent;
}
.nav-links a:hover,
.nav-links a:focus {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}
.nav-links a.nav-fb {
    background: var(--accent);
    color: #fff;
}
.nav-links a.nav-fb:hover { background: var(--accent-dk); }

/* Mobile menu (pure CSS toggle) */
.nav-toggle { display: none; }
.nav-burger {
    display: none;
    cursor: pointer;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 8px;
    user-select: none;
}
.nav-burger:hover { background: rgba(255,255,255,.14); }

/* ---------- Hero banner ---------- */
.hero {
    position: relative;
    background:
        linear-gradient(120deg, rgba(13,59,102,.82), rgba(20,93,160,.55)),
        url("/Tera.JPG") center 40% / cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 54px 20px;
}
.hero h1, .hero p { margin: 0; }
.hero .hero-title {
    font-size: clamp(1.8rem, 5vw, 2.9rem);
    font-weight: 700;
    letter-spacing: .3px;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hero .hero-sub {
    margin-top: 10px;
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    font-style: italic;
    color: #eaf3fb;
    text-shadow: 0 1px 8px rgba(0,0,0,.35);
}

/* ---------- Main content ---------- */
main, .content {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 28px 20px 60px;
}

/* Page-level headings that sit outside cards */
main > h1, .content > h1 {
    color: var(--navy);
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    margin: 12px 0 6px;
    line-height: 1.2;
}
main > h3, .content > h3 {
    color: var(--muted);
    font-weight: 500;
    font-style: italic;
    margin: 0 0 8px;
}
main > h2, .content > h2 {
    color: var(--navy);
    margin: 28px 0 10px;
}

/* ---------- Cards (legacy .transbox) ---------- */
.transbox {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 22px 26px;
    margin: 20px 0;
    width: auto;            /* override legacy 800px */
    max-width: 100%;
    transition: box-shadow .2s ease, transform .2s ease;
}
.transbox:hover { box-shadow: var(--shadow); }

.transbox h1 {
    font-size: 1.5rem;
    color: var(--navy);
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--sky);
    display: inline-block;
}
.transbox h2 {
    font-size: 1.3rem;
    color: var(--ocean);
    margin: 0 0 12px;
}
.transbox h3 {
    font-size: 1.08rem;
    color: var(--navy);
    font-style: normal;
    margin: 18px 0 8px;
}
.transbox p { margin: 0 0 14px; }
.transbox p:last-child,
.transbox ul:last-child { margin-bottom: 0; }

.transbox ul, .transbox ol {
    margin: 0 0 14px;
    padding-left: 22px;
}
.transbox li { margin: 6px 0; }

.transbox iframe {
    width: 100%;
    border: 0;
    border-radius: 10px;
    display: block;
}

/* Generic headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    line-height: 1.25;
}

/* ---------- Links ---------- */
a {
    color: var(--ocean);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(20, 93, 160, .28);
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
a:visited { color: var(--ocean); }

/* Standalone / big iframe (video, calendar) */
main > iframe, .content > iframe {
    width: 100%;
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin: 10px 0 24px;
}

/* ---------- Tables ---------- */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 16px 0;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    font-size: .95rem;
}
th, td {
    padding: 10px 12px;
    border: 1px solid var(--line);
    text-align: left;
    font-family: var(--font);
}
th {
    background: var(--navy);
    color: #fff;
    font-weight: 600;
}
tr:nth-child(even) td { background: #f7fafd; }
td.blank { background: #eef2f6; }
td.time, td.break { background: #e7eef5; text-align: center; }
td.cafe {
    background: var(--accent);
    color: #fff;
    text-align: center;
    font-weight: 700;
}
td.com  { background: #fde4e4; }
td.spons { background: #fff; text-align: center; width: 50%; }

/* ---------- Accordion / panel (kalender) ---------- */
.accordion {
    background: var(--navy);
    color: #fff;
    cursor: pointer;
    padding: 16px 18px;
    width: 100%;
    border: none;
    border-radius: 10px;
    text-align: left;
    outline: none;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 10px;
    transition: background .2s ease;
}
.active, .accordion:hover { background: var(--ocean); }
.panel {
    padding: 0 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-top: none;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

/* ---------- Responsive video helper ---------- */
.responsive-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    margin: 16px 0;
}
.responsive-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy);
    color: #cfe0f0;
    text-align: center;
    padding: 26px 20px;
    font-size: .95rem;
    margin-top: 40px;
}
.site-footer a {
    color: #fff;
    border-bottom-color: rgba(255,255,255,.4);
}
.site-footer a:hover { color: var(--sky); border-bottom-color: var(--sky); }
.site-footer p { margin: 6px 0; }

blockquote {
    border-left: 4px solid var(--sky);
    margin: 16px 0;
    padding: 4px 0 4px 18px;
    color: var(--muted);
    font-style: italic;
}
dt { font-weight: 700; color: var(--navy); }
dd { margin: 0 0 10px; }

.minilink { font-size: .8rem; }
.term   { color: var(--accent); }
.phrase { color: var(--ocean); }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
    .nav-burger { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--navy);
        padding: 8px 12px 14px;
        box-shadow: 0 12px 24px rgba(0,0,0,.28);
    }
    .nav-toggle:checked ~ .nav-links { display: flex; }
    .nav-links a {
        padding: 12px 14px;
        border-radius: 8px;
        font-size: 1rem;
    }
    .nav-links a.nav-fb { margin-top: 6px; text-align: center; }
    .hero { padding: 40px 18px; }
    .transbox { padding: 18px 18px; }
    body { font-size: 16px; }
}
