/*
 * SEEPEG – stil po originalni predlogi (Neolab, App_Themes/Neolab), predelan na odziven prikaz.
 * Barve, pisava (Verdana), meni, črte in temna noga so ostali enaki.
 */
:root {
    --dark: #23282C;      /* zgornja črta, noga */
    --blue: #29ABE2;      /* aktivni meni, povezave */
    --link: #1E96CC;      /* povezave v besedilu (malo temnejša za berljivost) */
    --head: #404040;      /* naslovi */
    --text: #6E6E6E;      /* besedilo (original #808080) */
    --muted: #808080;
    --line: #C1C1C1;
    --grey: #B5B5B5;
    --break: #C9706F;     /* odmori v programu (original #d99594) */
    --red: #E00000;
    --wrap: 998px;
    --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    font-family: Verdana, Geneva, "DejaVu Sans", sans-serif;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text);
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

h1 { margin: 0 0 15px; color: var(--head); font-size: 28px; font-weight: normal; line-height: 1.2; }
h2 { margin: 18px 0 8px; color: var(--head); font-size: 21px; font-weight: normal; line-height: 1.25; }
h3 { margin: 18px 0 6px; color: var(--head); font-size: 15px; font-weight: bold; line-height: 1.35; }
h4 { margin: 12px 0 5px; color: var(--head); font-size: 13px; font-weight: bold; }
h1 + h2, .col-side > h3:first-child, .col-main > h2:first-child, .col-main > h3:first-child { margin-top: 0; }
p, li, td, th { color: var(--text); }
p { margin: 0 0 12px; }
ul { padding-left: 20px; margin: 0 0 12px; }
b, strong { color: var(--head); }
sup { line-height: 0; }
address { font-style: normal; }

.small { font-size: 10px; color: var(--muted); }
.red { color: var(--red); }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; padding: 8px 12px; background: #fff; }
.skip-link:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Glava ---------- */
.site-header {
    border-top: 4px solid var(--dark);
    box-shadow: inset 0 1px 0 #919395;
}
.header-inner { position: relative; padding-top: 38px; }
.logo { position: absolute; top: 9px; right: calc(var(--gutter) + 143px); display: block; line-height: 0; }
.menu {
    max-width: 855px;
    border-bottom: 3px solid var(--grey);
    box-shadow: 0 1px 0 #D4D4D4;
}
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; column-gap: 30px; }
.menu a { display: block; padding: 0 0 6px; font-size: 17px; color: var(--muted); }
.menu a:hover { color: var(--blue); text-decoration: none; }
.menu a.menu_on { color: var(--blue); }

/* ---------- Postavitev: vsebina + organizatorji ---------- */
.page {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 855px) 140px;
    column-gap: 3px;
    align-items: start;
    padding-top: 20px;
    padding-bottom: 50px;
}
.content { min-width: 0; padding-right: 30px; }

/* Stolpca vsebine: ozek (173 px) ali širok (342 px) levi stolpec, vmes navpična črta */
.cols {
    display: grid;
    grid-template-columns: 173px 1fr;
    column-gap: 25px;
    position: relative;
}
.cols--wide { grid-template-columns: 342px 1fr; }
.col-side { position: relative; padding-right: 25px; border-right: 2px solid #E3E3E3; min-height: 100%; }
.col-main { min-width: 0; }

.line { height: 8px; border-top: 1px solid var(--line); font-size: 0; margin-top: 12px; }

.key-visual { display: block; width: 460px; aspect-ratio: 460 / 250; object-fit: cover; }
.contact-banner { display: block; width: 460px; max-width: 100%; margin: 10px 0 28px; line-height: 0; }
.contact-banner img { transition: opacity .2s; }
.contact-banner:hover img { opacity: .88; }

.signature { color: var(--muted); margin-bottom: 30px; }

/* Podmeni (2. nivo) */
.submenu { margin-top: 50px; padding-top: 8px; border-top: 1px solid var(--line); }
.submenu ul { list-style: none; padding: 0; margin: 0; }
.submenu li { font-size: 11px; font-weight: bold; line-height: 2; color: var(--muted); }
.submenu li::before { content: "\25A0"; margin-right: 5px; font-size: 9px; }
.submenu li:has(a)::before { color: var(--blue); }
.submenu a { color: var(--blue); }
.submenu_on { color: var(--muted); }

/* Uredniki */
.person { margin: 0 0 24px; }
.photo { display: block; width: 174px; border: 1px solid gray; padding: 3px; background: #fff; }
.person h3 { margin-top: 10px; }

/* Sličice */
.thumbs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.thumbs a { display: block; padding: 3px; line-height: 0; }
.thumbs img { transition: transform .2s; }
.thumbs a:hover img { transform: scale(1.06); }

.gallery-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(166px, 196px)); gap: 15px; }
.gallery-grid a { display: block; line-height: 0; }
.gallery { padding: 5px; border: 1px outset #A0A0A0; background: #fff; width: 100%; transition: border-color .2s, box-shadow .2s; }
.gallery-grid a:hover .gallery { border-color: var(--blue); box-shadow: 0 2px 8px rgba(0,0,0,.12); }

/* Arhiv 2009 */
.archive-nav { margin: 0 0 12px; font-size: 11px; font-weight: bold; }
.overline { margin: 0 0 6px; font-size: 11px; font-weight: bold; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.photo-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 16px; }
.photo-list li { display: flex; align-items: center; gap: 10px; line-height: 1.3; }
.photo-list img { flex: none; padding: 2px; border: 1px solid #DDD; }
.photo-list span { font-size: 11px; color: var(--head); }
.photo-list small { display: block; font-size: 10px; color: var(--muted); }

/* Obvestilo (arhiv) */
.notice { padding: 8px 12px; border-left: 3px solid var(--blue); background: #F2F9FD; color: var(--head); }

/* ---------- Program ---------- */
.day { color: var(--red); margin: 0 0 12px; }
.day ~ .day { margin-top: 30px; }
.programme { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.programme td, .programme th { padding: 3px 0; vertical-align: top; text-align: left; font-weight: normal; }
.programme .time { width: 110px; padding-right: 10px; white-space: nowrap; }
.programme .session th { padding-top: 18px; color: var(--head); font-weight: bold; }
.programme .chairs td { color: var(--head); font-weight: bold; padding-bottom: 4px; }
.programme .key td { color: var(--head); font-weight: bold; padding: 8px 0; }
.programme .break td { color: var(--break); padding: 8px 0; }
.programme .sep td { border-bottom: 1px solid #D1D1D1; padding: 12px 0 0; }

/* ---------- Tabele ---------- */
.fees { border-collapse: collapse; width: 300px; max-width: 100%; margin-bottom: 8px; }
.fees th { text-align: left; color: var(--head); padding: 2px 0; }
.fees td { color: #000; font-weight: bold; padding: 2px 0; }
.table-scroll { overflow-x: auto; margin-bottom: 18px; }
.tabela { border-collapse: collapse; }
.tabela th, .tabela td { border: 1px solid #C8C8C8; padding: 10px; }
.tabela thead th, .tabela tbody td { text-align: center; }
.tabela th { color: var(--head); font-weight: normal; }
.tabela thead th:first-child, .tabela tbody th { text-align: left; font-weight: bold; }

/* ---------- Prijavnica (arhiv, onemogočena) ---------- */
.reg-form { border: 1px solid #DDD; margin: 0 0 24px; max-width: 600px; }
.form-row { display: grid; grid-template-columns: 250px 1fr; align-items: center; gap: 4px 10px; margin: 0; padding: 6px 10px; border: 0; border-bottom: 1px solid #DDD; }
.form-row > label, .form-row > legend, .form-row > .label { font-weight: bold; color: var(--head); }
fieldset.form-row legend { float: left; padding: 0; }
fieldset.form-row { display: block; }
fieldset.form-row::after { content: ""; display: table; clear: both; }
fieldset.form-row .choices { margin-left: 260px; }
.form-row input[type=text] { width: 100%; padding: 3px 5px; font: inherit; border: 1px solid #BDBDBD; background: #F6F6F6; }
.choices { display: grid; gap: 2px; }
.choices label { color: var(--text); }
.form-box { padding: 10px; border-bottom: 1px solid #DDD; }
.form-box h3 { margin-top: 0; }
.form-box p { margin-bottom: 6px; }
.form-hint, .form-sub { margin: 0; padding: 6px 10px; border-bottom: 1px solid #DDD; }
.form-sub { color: var(--head); }
.form-total { border-bottom: 1px solid #DDD; }
.form-buttons { border-bottom: 0; }
.form-buttons button { font: inherit; padding: 3px 12px; }

/* ---------- Organizatorji (desni stolpec) ---------- */
.sponsors { padding-top: 2px; }
.sponsors .small { margin: 0 0 8px; }
.sponsor-list, .archive-list { list-style: none; padding: 0; margin: 0 0 24px; }
.sponsor-list li { margin-bottom: 18px; line-height: 0; }
.sponsor { opacity: .5; transition: opacity .2s; }
.sponsor-list a:hover .sponsor, .sponsor-list a:focus-visible .sponsor { opacity: 1; }
.archive-list li { font-size: 11px; line-height: 1.6; padding-left: 12px; position: relative; }
.archive-list li::before { content: "\25A0"; position: absolute; left: 0; font-size: 8px; top: 3px; color: var(--blue); }
.archive-list a { font-weight: bold; }
.archive-list span { color: var(--muted); }

/* ---------- Noga ---------- */
.site-footer { background: var(--dark); color: #9A9B9B; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; min-height: 105px; padding-top: 10px; }
.footer-menu ul { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 4px; max-width: 855px; }
.footer-menu a { font-size: 11px; color: #A9AAAA; }
.footer-menu a:hover { color: #fff; }
.footer-note { font-size: 10px; color: #707171; margin: 0; }
.footer-note a { font-size: 10px; color: #8A8B8B; }
.dragon { flex: none; line-height: 0; margin-right: 143px; margin-top: -5px; }
.dragon img { transition: transform .3s; }
.dragon:hover img { transform: rotate(-8deg); }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 10px; background: #fff; max-width: 94vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0,0,0,.8); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; max-width: calc(94vw - 20px); max-height: calc(94vh - 60px); width: auto; height: auto; }
.lightbox figcaption { font-size: 10px; color: #666; padding-top: 8px; }
.lightbox button { position: absolute; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 28px; line-height: 1; width: 40px; height: 40px; cursor: pointer; }
.lightbox button:hover { background: rgba(0,0,0,.7); }
.lightbox-close { top: -20px; right: -20px; border-radius: 50%; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox[data-single] .lightbox-prev, .lightbox[data-single] .lightbox-next { display: none; }

/* ---------- Odzivnost ---------- */
@media (max-width: 1000px) {
    .logo { right: var(--gutter); }
    .dragon { margin-right: 0; }
}

@media (max-width: 860px) {
    .page { grid-template-columns: 1fr; padding-top: 16px; }
    .content { padding-right: 0; }
    .sponsors { margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0 40px; }
    .sponsors .small { flex-basis: 100%; }
    .sponsor-list { display: flex; flex-wrap: wrap; gap: 20px; }
    .sponsor-list li { margin: 0; }
    .sponsor { opacity: 1; }
    .cols--wide { grid-template-columns: minmax(220px, 300px) 1fr; }
}

@media (max-width: 700px) {
    body { font-size: 14px; }
    h1 { font-size: 24px; }
    h2 { font-size: 19px; }

    .header-inner { padding-top: 10px; }
    .logo { position: static; display: inline-block; margin-bottom: 8px; }
    .logo img { width: 110px; }
    .menu ul { column-gap: 18px; row-gap: 2px; }
    .menu a { font-size: 15px; padding: 4px 0 6px; }

    .cols, .cols--wide { grid-template-columns: 1fr; }
    .col-side { border-right: 0; padding-right: 0; border-bottom: 2px solid #E3E3E3; padding-bottom: 14px; margin-bottom: 20px; }
    .submenu { margin-top: 16px; }
    .people { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
    .person { margin: 0; }
    .photo { width: 100%; }

    .key-visual { width: 100%; }

    /* Program: ura nad naslovom predavanja */
    .programme, .programme tbody, .programme tr, .programme td, .programme th { display: block; }
    .programme .time { width: auto; padding: 0; font-weight: bold; color: var(--head); }
    .programme tr.talk { padding: 6px 0; border-bottom: 1px solid #EEE; }
    .programme .break, .programme .key { display: flex; gap: 10px; }
    .programme .break td, .programme .key td { padding: 6px 0; }
    .programme .break .time { color: var(--break); }

    .form-row { grid-template-columns: 1fr; }
    fieldset.form-row legend { float: none; margin-bottom: 4px; }
    fieldset.form-row .choices { margin-left: 0; }

    .footer-inner { padding-top: 16px; padding-bottom: 12px; }
    .dragon img { width: 70px; height: 70px; }
}

/* ---------- Arhiva 2009 / 2011 ---------- */
.archive-bar { background: #F2F9FD; border-bottom: 1px solid #DCEBF3; font-size: 11px; }
.archive-bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding-top: 6px; padding-bottom: 6px; max-width: var(--wrap); }
.archive-bar span { color: var(--head); }
.archive-bar a { font-weight: bold; }

/* Datum dneva v programu (na stari strani slika "September 25th") */
.day--date { color: var(--head); font-size: 34px; font-weight: bold; line-height: 1; margin: 0 0 14px; padding-left: 10px; border-left: 6px solid var(--blue); }
.day--date small { display: block; font-size: 15px; font-weight: normal; color: var(--muted); margin-bottom: 2px; }
.day--date ~ .day--date { margin-top: 34px; }

/* Novice (2009) */
.news p { margin: 12px 0 4px; line-height: 1.45; }
.news b { display: inline-block; margin: 2px 0; }

/* Pasica nad vsebino (2011) */
.event-banner { display: block; margin: 0 0 20px; line-height: 0; }
.event-banner img { width: 100%; }

/* Vsebinske tabele iz CMS (pristojbine, …) */
.tabela td, .tabela th { vertical-align: top; }
.tabela h4 { margin: 0 0 2px; }
.col-main .tabela td:not(:first-child) { text-align: center; }
.col-main .tabela td:first-child { text-align: left; }
.h4 { font-weight: bold; color: var(--head); }
.blue, .more { font-size: 11px; font-weight: bold; color: var(--blue); }
.col-main img:not(.key-visual):not(.gallery):not(.sponsor) { max-width: 100%; height: auto; }
.col-main p > img { display: block; margin: 6px 0; }
.col-side .photo { margin-bottom: 10px; }
.col-main ul ul, .col-main ul ol { margin: 4px 0; }

@media (max-width: 700px) {
    .archive-bar .wrap { flex-direction: column; }
    .day--date { font-size: 28px; }
}

/* 2009 ima 6 točk menija – manjši razmik, da se ne prekriva z logotipom */
.site-2009 .menu ul { column-gap: 20px; }
@media (min-width: 701px) and (max-width: 900px) { .site-2009 .menu ul { padding-right: 140px; } }
@media (max-width: 700px) {
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .gallery { padding: 3px; }
}
