/* DIBAS — "five squares" design system
   Motif: the logo's arc of five squares. Squares mark the five tracks (D·I·B·A·S),
   section headings, timeline nodes and the active menu item. Outer squares blue, inner navy. */
:root {
  --navy: #14213D;
  --blue: #1E5AA8;
  --blue-d: #164A8C;
  --tint: #EDF3FB;
  --tint-2: #F6F9FD;
  --ink: #1b2236;
  --muted: #5a6378;
  --line: #dfe5ee;
  --white: #fff;
  --wrap: 1180px;
  --sq: 4px; /* corner radius of squares, as in the logo */
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Montserrat, Arial, sans-serif; color: var(--ink); background: var(--white); line-height: 1.65; font-size: 16px; }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.25rem); letter-spacing: -.3px; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.tbd { background: #fff4cc; border-radius: 3px; padding: 0 .3em; color: #6b5300; font-weight: 600; }

/* ---------- Square primitives ---------- */
.sq { display: inline-block; width: .62em; height: .62em; border-radius: 2px; background: var(--navy); flex: none; }
.sq.b { background: var(--blue); }
/* section title: row of five squares above */
.kicker { display: flex; align-items: center; gap: 12px; font-size: .74rem; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.kicker .dots { display: none; }
.kicker .dots i { width: 8px; height: 8px; border-radius: 2px; background: var(--line); }
.kicker .dots i.on { background: var(--blue); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--navy); letter-spacing: .5px; line-height: 1; }
.brand small { display: block; font-size: .6rem; letter-spacing: 2px; color: var(--muted); font-weight: 600; text-transform: uppercase; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; text-decoration: none; color: var(--navy); font-weight: 600; font-size: .85rem; padding: 10px 9px; white-space: nowrap; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 6px; height: 6px; margin-left: -3px; border-radius: 1.5px; background: var(--blue); transform: scale(0); transition: transform .15s; }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scale(1); }
.nav a.active { color: var(--blue); }
.nav-more { position: relative; }
.nav-more > button { font: inherit; font-weight: 600; font-size: .85rem; color: var(--navy); background: none; border: 0; padding: 10px 9px; cursor: pointer; }
.nav-more .dropdown { display: none; position: absolute; right: 0; top: 100%; min-width: 190px; background: var(--white); border: 1px solid var(--line); padding: 6px; box-shadow: 0 10px 30px rgba(20,33,61,.1); }
.nav-more:hover .dropdown, .nav-more:focus-within .dropdown { display: block; }
.nav-more .dropdown a { display: block; padding: 9px 12px; }
.nav-more .dropdown a::after { display: none; }
.nav-more .dropdown a:hover, .nav-more .dropdown a.active { background: var(--tint); }
.nav .btn { margin-left: 10px; padding: 9px 18px; font-size: .85rem; color: var(--white); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle i { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; }
@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 20px 18px; max-height: calc(100vh - 72px); overflow-y: auto; box-shadow: 0 16px 30px rgba(20,33,61,.12); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0 12px 18px; font-size: .97rem; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { left: 0; top: 50%; bottom: auto; margin: -3px 0 0; }
  .nav-more > button { display: none; }
  .nav-more .dropdown { display: block; position: static; border: 0; box-shadow: none; padding: 0; min-width: 0; }
  .nav-more .dropdown a { padding: 12px 0 12px 18px; }
  .nav-more .dropdown a:hover { background: none; }
  .nav .btn { margin: 14px 0 0; text-align: center; border-bottom: 0; padding: 12px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: .95rem; padding: 13px 24px; border-radius: var(--sq); border: 2px solid var(--navy); background: var(--navy); color: var(--white); cursor: pointer; font-family: inherit; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }
.btn.alt { background: transparent; color: var(--navy); }
.btn.alt:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn.on-dark { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn.on-dark:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn.on-dark.alt { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn.on-dark.alt:hover { background: var(--white); color: var(--navy); }

/* ---------- Home hero ---------- */
.hero { position: relative; padding: 72px 0 80px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero .edition { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; font-size: .78rem; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.hero .edition b { color: var(--blue); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); letter-spacing: -1px; margin: 0 0 .2em; }
.hero .full { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 500; color: var(--muted); max-width: 560px; margin: 0 0 26px; line-height: 1.5; }
.hero .meta { font-weight: 600; color: var(--navy); margin-bottom: 30px; }
.hero .meta span + span::before { content: "·"; margin: 0 10px; color: var(--muted); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* big mark on the right, squares rise in */
.hero-mark { position: relative; max-width: 340px; justify-self: center; width: 100%; }
.hero-mark svg { width: 100%; height: auto; overflow: visible; }
.hero-mark a text { font-family: Montserrat, Arial, sans-serif; font-weight: 800; fill: #fff; font-size: 6px; pointer-events: none; }
.hero-mark a rect { transition: fill .15s; }
.hero-mark a:hover rect { fill: var(--blue-d); }
@media (max-width: 900px) {
  .hero { padding: 40px 0 52px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
}

/* ---------- Inner page header ---------- */
.page-head { border-bottom: 1px solid var(--line); padding: 52px 0 44px; background: var(--tint-2); }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); margin: 0 0 .25em; letter-spacing: -.5px; }
.page-head p { margin: 0; color: var(--muted); max-width: 720px; font-size: 1.05rem; }
.page-head .mini { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 120px; opacity: .9; }
.crumbs { font-size: .78rem; color: var(--muted); margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.crumbs a { color: var(--muted); }
@media (max-width: 760px) { .page-head .mini { display: none; } }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.tint { background: var(--tint-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 760px; margin-bottom: 36px; }
.content { max-width: 800px; }
.content.wide { max-width: none; }
.content h2 { font-size: 1.45rem; margin-top: 1.4em; }
.content h2:first-child { margin-top: 0; }
.content ul, .content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.content li { margin-bottom: .4em; }
ul.sq-list { list-style: none; padding-left: 0; }
ul.sq-list li { position: relative; padding-left: 20px; }
ul.sq-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 1.5px; background: var(--blue); }
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.grid { display: grid; gap: 20px; }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.box { background: var(--white); border: 1px solid var(--line); padding: 26px; }

.box p:last-child { margin-bottom: 0; }

/* ---------- Track list (home) ---------- */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.tile { text-decoration: none; color: var(--ink); padding: 26px 22px 26px 0; border-bottom: 1px solid var(--line); }
.tile + .tile { padding-left: 22px; border-left: 1px solid var(--line); }
.tile .L { width: 36px; height: 36px; border-radius: 5px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 16px; }
.tile.b .L { background: var(--blue); }
.tile h3 { margin: 0 0 6px; font-size: 1rem; }
.tile p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.tile:hover h3 { color: var(--blue); }
@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile + .tile { display: grid; grid-template-columns: 36px 1fr; gap: 0 16px; padding: 18px 0; border-left: 0; }
  .tile .L { grid-row: span 2; margin: 0; }
}

/* Topics page rows */
.track { display: grid; grid-template-columns: 96px 1fr; gap: 28px; padding: 36px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.track:last-child { border-bottom: 0; }
.track .L { width: 96px; height: 96px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 3rem; font-weight: 800; }
.track.b .L { background: var(--blue); }
.track h2 { font-size: 1.45rem; margin-bottom: .3em; }
.track ul { columns: 2; column-gap: 36px; margin: 14px 0 0; }
.track li { break-inside: avoid; }
@media (max-width: 640px) { .track { grid-template-columns: 1fr; gap: 14px; } .track .L { width: 64px; height: 64px; font-size: 2rem; } .track ul { columns: 1; } }

/* ---------- Dates: square nodes ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--line); }
.steps li { position: relative; padding: 42px 16px 0 0; counter-increment: s; }
.steps li::before { content: ""; position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 5px; background: var(--white); border: 3px solid var(--blue); }
.steps li.key::before { background: var(--navy); border-color: var(--navy); }
.steps li::after { content: "0" counter(s); position: absolute; left: 40px; top: 4px; font-size: .72rem; font-weight: 700; letter-spacing: 2px; color: var(--muted); }
.steps b { display: block; color: var(--navy); font-size: 1.05rem; margin-bottom: 4px; }
.steps b.tbd { display: inline-block; }
.steps span { display: block; font-size: .87rem; color: var(--muted); line-height: 1.45; }
.steps.vert { grid-template-columns: 1fr; }
.steps.vert::before { left: 13px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
.steps.vert li { padding: 0 0 26px 48px; }
.steps.vert li::after { display: none; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before { left: 13px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .steps li { padding: 0 0 24px 48px; }
  .steps li::after { display: none; }
}

/* ---------- About band on home ---------- */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.facts div { background: var(--white); padding: 22px; }
.facts b { display: block; font-size: 1.6rem; font-weight: 800; color: var(--navy); line-height: 1.1; margin-bottom: 4px; }
.facts span { font-size: .85rem; color: var(--muted); }

/* ---------- News ---------- */
.news { border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.news-item time { font-weight: 700; color: var(--blue); font-size: .82rem; letter-spacing: 1px; text-transform: uppercase; }
.news-item h3 { margin-bottom: .2em; font-size: 1.02rem; }
.news-item p { margin: 0; color: var(--muted); font-size: .93rem; }
@media (max-width: 560px) { .news-item { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Partners ---------- */
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.partners div { background: var(--white); padding: 26px; min-height: 120px; display: flex; flex-direction: column; justify-content: center; }
.partners b { color: var(--navy); }
.partners span { font-size: .85rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { background: var(--navy); color: #fff; padding: 52px 0; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.cta h2 { color: #fff; margin: 0 0 .2em; }
.cta p { margin: 0; opacity: .8; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- People ---------- */
.person { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; padding: 18px; border: 1px solid var(--line); background: var(--white); }
.avatar { width: 72px; height: 72px; border-radius: 6px; background: var(--tint); color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin: 0 0 2px; font-size: 1rem; }
.person p { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.45; }
.keynote { display: grid; grid-template-columns: 180px 1fr; gap: 30px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.keynote .avatar { width: 180px; height: 180px; font-size: 2.6rem; border-radius: 8px; }
.keynote .talk { font-weight: 700; color: var(--blue); }
@media (max-width: 640px) { .keynote { grid-template-columns: 1fr; gap: 16px; } .keynote .avatar { width: 120px; height: 120px; } }
.committee { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 32px; }
.committee li { padding: 13px 0 13px 20px; border-bottom: 1px solid var(--line); position: relative; }
.committee li::before { content: ""; position: absolute; left: 0; top: 21px; width: 8px; height: 8px; border-radius: 2px; background: var(--navy); }
.committee b { display: block; color: var(--navy); }
.committee span { font-size: .86rem; color: var(--muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: var(--white); font-size: .95rem; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--tint); color: var(--navy); font-weight: 700; white-space: nowrap; font-size: .85rem; letter-spacing: .3px; }
tr:last-child td { border-bottom: 0; }

/* ---------- Program ---------- */
.day { margin-bottom: 36px; }
.day h3 { font-size: 1.2rem; padding-bottom: 12px; border-bottom: 2px solid var(--navy); margin: 0; }
.slot { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.slot time { font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.slot.break { color: var(--muted); }
.slot.break time { color: var(--muted); }
@media (max-width: 560px) { .slot { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 44px 20px 26px; font-weight: 700; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: ""; position: absolute; left: 0; top: 27px; width: 10px; height: 10px; border-radius: 2px; border: 2px solid var(--blue); transition: background .15s; }
.faq details[open] summary::before { background: var(--blue); }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--blue); font-weight: 500; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 26px 20px; color: var(--muted); }

.notice { border-left: 4px solid var(--blue); background: var(--tint); padding: 16px 20px; margin: 0 0 24px; }
.notice p:last-child { margin: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 600; font-size: .88rem; color: var(--navy); margin-bottom: 6px; }
.form .req { color: #b42318; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: .95rem; padding: 12px 13px; border: 1px solid #c8d2e0; border-radius: var(--sq); background: var(--white); color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
.form .hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .9rem; }
.form .check input { width: auto; margin-top: 5px; }
.form .hp { position: absolute; left: -9999px; }
.form-status { padding: 14px 18px; font-weight: 600; display: none; border-left: 4px solid; }
.form-status.ok { display: block; background: #e7f6ec; color: #1d6b3a; }
.form-status.err { display: block; background: #fdecec; color: #9b2c2c; }
.form-status.info { display: block; background: var(--tint); color: var(--navy); }
.form button[disabled] { opacity: .6; cursor: wait; }
.map { width: 100%; height: 360px; border: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b8c2d6; padding: 52px 0 24px; font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #b8c2d6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .brand b { color: #fff; }
.site-footer .brand small { color: #8a97b1; }
.site-footer .brand img { background: #fff; border-radius: 6px; padding: 4px; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .8rem; }
