/* Girls in ICT Day portal (Areas/Gict) — colours of the 2026 visual: cyan/teal on white, ITU navy. */
:root {
    --g-navy: #0B1F3A;
    --g-teal: #0E7C9A;
    --g-cyan: #19A7D8;
    --g-cyan-soft: #E6F6FC;
    --g-ink: #1B2533;
    --g-muted: #5B6B7D;
    --g-line: #D7E1EA;
    --g-bg: #F5F8FB;
    --g-ok: #1E7F45;
    --g-ok-bg: #E4F5EA;
    --g-warn: #8A6100;
    --g-warn-bg: #FFF4D6;
    --g-err: #B3261E;
    --g-err-bg: #FDECEA;
    --g-radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.gict { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; font-size: 16px;
    line-height: 1.5; color: var(--g-ink); background: var(--g-bg); display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--g-teal); }
a:hover { color: var(--g-navy); }
img { max-width: 100%; }
h1, h2, h3 { color: var(--g-navy); line-height: 1.2; margin: 0 0 .6rem; }
h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.g-wrap { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.g-main { flex: 1; padding-bottom: 2.5rem; }
.g-muted { color: var(--g-muted); }
.g-inline { display: inline; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- header ---- */
.g-header { background: #fff; border-bottom: 1px solid var(--g-line); position: sticky; top: 0; z-index: 20; }
.g-header-row { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.g-brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--g-navy); margin-right: auto; }
.g-brand img { border-radius: 8px; object-fit: cover; }
.g-brand span { display: flex; flex-direction: column; line-height: 1.15; }
.g-brand strong { font-size: 1.08rem; }
.g-brand small { color: var(--g-muted); font-size: .8rem; }
.g-nav { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.g-nav a, .g-link-button { padding: .45rem .75rem; border-radius: 8px; text-decoration: none; color: var(--g-ink); font-weight: 600;
    font-size: .95rem; background: none; border: 0; font-family: inherit; cursor: pointer; }
.g-nav a:hover, .g-link-button:hover { background: var(--g-cyan-soft); color: var(--g-navy); }
.g-nav a.active { color: var(--g-teal); box-shadow: inset 0 -3px 0 var(--g-cyan); border-radius: 8px 8px 0 0; }
.g-nav a.g-nav-cta { background: var(--g-teal); color: #fff; }
.g-nav a.g-nav-cta:hover { background: var(--g-navy); color: #fff; }
.g-nav a.g-nav-cta.active { box-shadow: none; }
.g-menu-toggle { display: none; }
@media (max-width: 760px) {
    .g-menu-toggle { display: inline-flex; padding: .45rem .8rem; border: 1px solid var(--g-line); border-radius: 8px; background: #fff;
        font: inherit; font-weight: 600; color: var(--g-navy); }
    .g-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--g-line);
        flex-direction: column; align-items: stretch; padding: .5rem 1rem 1rem; box-shadow: 0 8px 18px rgba(11, 31, 58, .12); }
    .g-nav.open { display: flex; }
    .g-nav a, .g-link-button { padding: .7rem .8rem; text-align: left; width: 100%; }
    .g-nav a.active { box-shadow: inset 3px 0 0 var(--g-cyan); border-radius: 0 8px 8px 0; }
    .g-header-row { position: relative; }
}

/* ---- footer ---- */
.g-footer { background: var(--g-navy); color: #C9D6E6; font-size: .9rem; }
.g-footer a { color: #fff; }
.g-footer-row { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 0; }
.g-footer p { margin: 0; }

/* ---- buttons, cards, forms ---- */
.g-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .55rem 1.1rem;
    border-radius: 999px; border: 2px solid var(--g-teal); background: var(--g-teal); color: #fff; font: inherit; font-weight: 700;
    text-decoration: none; cursor: pointer; }
.g-btn:hover { background: var(--g-navy); border-color: var(--g-navy); color: #fff; }
.g-btn-ghost { background: #fff; color: var(--g-teal); }
.g-btn-ghost:hover { background: var(--g-cyan-soft); color: var(--g-navy); border-color: var(--g-teal); }
.g-btn-small { min-height: 36px; padding: .3rem .85rem; font-size: .9rem; }
.g-card { background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-radius); padding: 1.4rem; box-shadow: 0 1px 3px rgba(11, 31, 58, .06); }
.g-page { padding-top: 1.8rem; }
.g-narrow { width: min(560px, 100% - 2rem); margin-inline: auto; }
.g-form label { display: block; font-weight: 600; margin: 0 0 .9rem; font-size: .95rem; }
.g-form label small { font-weight: 400; color: var(--g-muted); }
.g-form input, .g-form textarea, .g-form select, .g-select {
    display: block; width: 100%; margin-top: .3rem; padding: .65rem .75rem; font: inherit; font-weight: 400; color: var(--g-ink);
    border: 1px solid #B9C7D5; border-radius: 8px; background: #fff; }
.g-form input:focus, .g-form textarea:focus, .g-select:focus { outline: 3px solid rgba(25, 167, 216, .35); border-color: var(--g-cyan); }
.g-form .g-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .g-form .g-row { grid-template-columns: 1fr; } }
.g-form .field-validation-error, .g-error-text { color: var(--g-err); font-weight: 400; font-size: .88rem; display: block; margin-top: .2rem; }
.g-form .input-validation-error { border-color: var(--g-err); }
.g-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1.2rem; }
.g-trap { position: absolute; left: -10000px; }
.g-alert { border-radius: 10px; padding: .75rem 1rem; margin: 0 0 1rem; border: 1px solid; }
.g-alert.ok { background: var(--g-ok-bg); border-color: #A7D9B9; color: var(--g-ok); }
.g-alert.warn { background: var(--g-warn-bg); border-color: #E8C76A; color: var(--g-warn); }
.g-alert.error { background: var(--g-err-bg); border-color: #F0B4AE; color: var(--g-err); }
.g-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.5rem; align-items: stretch; }
.g-split-visual { border-radius: var(--g-radius); overflow: hidden; background: #fff; border: 1px solid var(--g-line);
    display: flex; flex-direction: column; justify-content: flex-end; }
.g-split-visual img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.g-split-visual div { padding: 1rem 1.2rem; }
@media (max-width: 820px) { .g-split { grid-template-columns: 1fr; } .g-split-visual { display: none; } }

/* ---- landing page ---- */
.g-hero { position: relative; color: #fff; background: var(--g-navy) url("images/hero.jpg") center / cover no-repeat; }
.g-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11, 31, 58, .92) 0%, rgba(11, 31, 58, .65) 55%, rgba(14, 124, 154, .25) 100%); }
.g-hero-inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; padding: 3.2rem 0; }
.g-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .8rem; }
.g-hero p { font-size: 1.08rem; color: #E3EEF8; max-width: 60ch; }
.g-hero .g-kicker { display: inline-block; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem;
    color: #9BE3FA; margin-bottom: .6rem; }
.g-hero img.g-visual { width: 100%; max-width: 330px; justify-self: end; border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.g-hero .g-actions .g-btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.g-hero .g-actions .g-btn-ghost:hover { background: rgba(255, 255, 255, .12); }
@media (max-width: 820px) { .g-hero-inner { grid-template-columns: 1fr; padding: 2.2rem 0; } .g-hero img.g-visual { display: none; } }
.g-stats { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 1.4rem; }
.g-stats div { display: flex; flex-direction: column; }
.g-stats strong { font-size: 1.9rem; color: #fff; line-height: 1; }
.g-stats span { color: #BFD7EA; font-size: .85rem; }
.g-section { padding: 2rem 0 0; }
.g-section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.g-map { min-height: 420px; }
@media (max-width: 680px) { .g-map { min-height: 240px; } }
.g-map-empty { padding: 2rem; text-align: center; color: var(--g-muted); }
.g-filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.g-filters label { font-weight: 600; font-size: .85rem; color: var(--g-muted); }
.g-filters .g-select { min-width: 220px; margin-top: .2rem; }
@media (max-width: 560px) { .g-filters, .g-filters label, .g-filters .g-select { width: 100%; } }

/* event list: a table on large screens, cards on small ones */
.g-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-radius); overflow: hidden; }
.g-table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--g-muted);
    background: #EEF4F9; padding: .7rem .9rem; }
.g-table td { padding: .75rem .9rem; border-top: 1px solid var(--g-line); vertical-align: top; }
.g-table tbody tr:hover { background: var(--g-cyan-soft); }
.g-table a.g-title { font-weight: 700; text-decoration: none; }
.g-table a.g-title:hover { text-decoration: underline; }
@media (max-width: 680px) {
    .g-table, .g-table tbody { display: block; border: 0; background: none; }
    .g-table thead { display: none; }
    .g-table tr { display: block; background: #fff; border: 1px solid var(--g-line); border-left: 4px solid var(--g-cyan);
        border-radius: 10px; padding: .7rem .9rem; margin-bottom: .7rem; }
    .g-table td { display: block; border: 0; padding: .12rem 0; }
    .g-table td[data-label]::before { content: attr(data-label) ": "; color: var(--g-muted); font-size: .85rem; }
    .g-table td.g-cell-title { font-size: 1.05rem; padding-bottom: .3rem; }
    .g-table td.g-cell-title::before { content: none; }
}

/* ---- dashboard ---- */
.g-dash-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; margin-bottom: 1.2rem; }
.g-dash-head p { margin: 0; color: var(--g-muted); }
.g-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin-bottom: 1.4rem; }
.g-tab { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; background: #fff; border: 1px solid var(--g-line);
    border-radius: var(--g-radius); text-decoration: none; color: var(--g-navy); font-weight: 700; font-size: 1.05rem; }
.g-tab img { width: 42px; height: 42px; }
.g-tab:hover { border-color: var(--g-cyan); color: var(--g-navy); }
.g-tab.active { border: 2px solid var(--g-teal); background: var(--g-cyan-soft); }
@media (max-width: 560px) {
    .g-tabs { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
    .g-tab { flex-direction: column; gap: .3rem; padding: .7rem .3rem; font-size: .92rem; text-align: center; }
    .g-tab img { width: 36px; height: 36px; }
}
.g-records { display: grid; gap: .8rem; }
.g-record { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; background: #fff;
    border: 1px solid var(--g-line); border-radius: var(--g-radius); padding: .9rem 1rem; }
.g-record-thumb { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; background: #EEF4F9; display: block; }
.g-record-main h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
.g-record-main p { margin: 0; color: var(--g-muted); font-size: .9rem; }
.g-record-actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.g-record.no-thumb { grid-template-columns: 1fr auto; }
@media (max-width: 620px) {
    .g-record, .g-record.no-thumb { grid-template-columns: auto 1fr; }
    .g-record.no-thumb .g-record-main { grid-column: 1 / -1; }
    .g-record-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
.g-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 700; padding: .15rem .6rem;
    border-radius: 999px; margin-top: .35rem; }
.g-badge.ok { background: var(--g-ok-bg); color: var(--g-ok); }
.g-badge.no { background: var(--g-err-bg); color: var(--g-err); }
.g-badge.wait { background: var(--g-warn-bg); color: var(--g-warn); }
.g-note { font-size: .88rem; color: var(--g-muted); margin-top: .3rem; }
.g-empty { text-align: center; padding: 2.4rem 1rem; }
.g-empty img { width: 64px; opacity: .8; }

/* ---- record display ---- */
.g-display dl { display: grid; grid-template-columns: minmax(160px, 32%) 1fr; gap: .2rem 1.2rem; margin: 0; padding: .7rem 0;
    border-bottom: 1px solid var(--g-line); }
.g-display dt { font-weight: 600; color: var(--g-navy); }
.g-display dd { margin: 0; overflow-wrap: anywhere; }
.g-display dd img { max-width: 100%; height: auto; }
.g-display dd:empty::before { content: "—"; color: var(--g-muted); }
.g-display .g-section-title { margin: 1.3rem 0 .2rem; font-weight: 700; color: var(--g-teal); font-size: 1.05rem; }
@media (max-width: 600px) { .g-display dl { grid-template-columns: 1fr; } }
/* public event: the documents submitted with it, one card each */
.g-linked + .g-linked { margin-top: 1rem; }

/* ---- gallery & materials ---- */
.g-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 42vw), 1fr)); gap: 1rem; }
@media (max-width: 560px) { .g-gallery { gap: .6rem; } .g-photo figcaption { padding: .45rem .55rem .6rem; font-size: .85rem; } }
.g-photo { margin: 0; background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-radius); overflow: hidden; display: flex; flex-direction: column; }
.g-photo a { display: block; background: #EEF4F9; }
.g-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.g-photo figcaption { padding: .6rem .8rem .8rem; font-size: .9rem; }
.g-photo figcaption strong { display: block; color: var(--g-navy); }
.g-photo figcaption span { display: block; color: var(--g-muted); font-size: .82rem; }
.g-photo figcaption .g-photo-meta { font-size: .78rem; }
.g-filter-row { background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-radius); padding: .8rem 1rem; margin-bottom: 1.2rem; }
.g-filter-row .g-select { min-width: 180px; }
.g-filter-count { margin: 0 0 .55rem auto; color: var(--g-muted); display: flex; gap: .8rem; align-items: baseline; flex-wrap: wrap; }
.g-filter-count strong { color: var(--g-navy); }
@media (max-width: 560px) { .g-filter-count { margin: .2rem 0 0; } }
.g-pager { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; margin-top: 1.4rem; }
.g-pager a, .g-pager span { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px; border: 1px solid var(--g-line); background: #fff; text-decoration: none; font-weight: 600; }
.g-pager span { background: var(--g-teal); color: #fff; border-color: var(--g-teal); }
.g-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.g-chips a { padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--g-line); background: #fff; text-decoration: none;
    color: var(--g-ink); font-weight: 600; font-size: .9rem; }
.g-chips a.active { background: var(--g-teal); border-color: var(--g-teal); color: #fff; }
.g-materials { display: grid; gap: 1rem; }
.g-materials section { background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-radius); padding: 1rem 1.2rem; }
.g-materials h2 { font-size: 1.15rem; }
.g-material-type { display: grid; grid-template-columns: minmax(150px, 28%) 1fr; gap: .5rem 1rem; padding: .6rem 0; border-top: 1px solid var(--g-line); }
.g-material-type:first-of-type { border-top: 0; }
.g-material-type h3 { font-size: .95rem; margin: 0; }
.g-material-type h3 small { display: block; color: var(--g-muted); font-weight: 400; }
.g-material-links { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-start; }
.g-material-thumb { display: flex; flex-direction: column; width: 160px; border: 1px solid var(--g-line); border-radius: 10px;
    overflow: hidden; background: #fff; text-decoration: none; color: var(--g-navy); font-weight: 600; font-size: .88rem; }
.g-material-thumb img { display: block; width: 100%; height: 110px; object-fit: contain; background: #EEF4F9; }
.g-material-thumb span { padding: .4rem .6rem; border-top: 1px solid var(--g-line); }
.g-material-thumb:hover { border-color: var(--g-cyan); box-shadow: 0 2px 8px rgba(11, 31, 58, .12); }
@media (max-width: 600px) { .g-material-thumb { width: calc(50% - .3rem); } }
.g-material-cats { display: grid; gap: .9rem; }
.g-material-cat h4 { margin: 0 0 .4rem; font-size: .95rem; color: var(--g-teal); }
.g-material-year { display: grid; grid-template-columns: 4.2rem 1fr; gap: .6rem; align-items: start; padding: .35rem 0; }
.g-material-year + .g-material-year { border-top: 1px dashed var(--g-line); }
.g-year { display: inline-flex; justify-content: center; padding: .2rem .5rem; border-radius: 999px; background: var(--g-cyan-soft);
    color: var(--g-navy); font-weight: 700; font-size: .85rem; margin-top: .2rem; }
@media (max-width: 600px) { .g-material-year { grid-template-columns: 1fr; gap: .35rem; } .g-year { justify-self: start; } }
@media (max-width: 600px) { .g-material-type { grid-template-columns: 1fr; } }

/* ---- photo viewer: shared, css/lightbox.css + js/lightbox.js ---- */

/* ---- "Past editions" (landing page): a button like "See the events" that opens the list of the years ---- */
.g-dropdown { position: relative; }
.g-dropdown > summary { list-style: none; cursor: pointer; user-select: none; }
.g-dropdown > summary::-webkit-details-marker { display: none; }
.g-dropdown > summary span { font-size: .8em; transition: transform .15s; }
.g-dropdown[open] > summary span { transform: rotate(180deg); }
.g-hero .g-dropdown > summary.g-btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.g-hero .g-dropdown > summary.g-btn-ghost:hover, .g-hero .g-dropdown[open] > summary.g-btn-ghost { background: rgba(255, 255, 255, .12); }
.g-dropdown-menu { position: absolute; z-index: 30; top: calc(100% + .4rem); left: 0; min-width: 100%; margin: 0; padding: .35rem;
    list-style: none; background: #fff; border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .28); }
.g-dropdown-menu a { display: block; padding: .5rem .9rem; border-radius: 8px; color: var(--g-navy); font-weight: 600;
    text-decoration: none; white-space: nowrap; }
.g-dropdown-menu a:hover { background: var(--g-cyan-soft); }
.g-dropdown-menu a.active { background: var(--g-teal); color: #fff; }

/* the password rule under its label */
.g-pw-rule { display: block; font-weight: 400; margin-top: .3rem; line-height: 1.35; }

/* events list: icons of the photos and documents submitted with an event */
.g-table .g-cell-media { width: 1%; white-space: nowrap; text-align: right; }
.g-media { display: inline-flex; width: 1.6rem; height: 1.6rem; align-items: center; justify-content: center; border-radius: 6px;
           color: var(--g-teal); }
.g-media + .g-media { margin-left: .15rem; }
.g-media:hover, .g-media:focus-visible { background: var(--g-cyan-soft); }
.g-media svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.g-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 680px) {
    .g-table td.g-cell-media { text-align: left; padding-top: .25rem; }
    .g-table td.g-cell-media:empty { display: none; }
}
