/* EKMOA site, option B "horizon" (chosen 2026-11-24). Colours follow the official logo: blue, navy, sky. */
:root {
  --ink: #0B2454;
  --text: #24384d;
  --soft: #506579;
  --blue: #0070C0;
  --blue-d: #0B2454;
  --sky: #6FB7E6;
  --shallow: #E9F4FB;
  --shallow2: #BFDDF1;
  --line: #D3E4F1;
  --font: 'IBM Plex Sans KR', 'Segoe UI', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
html { background: #fff; scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.65 var(--font); color: var(--text); background: #fff; word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3 { color: var(--ink); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.25rem); line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 2.2vw, 1.95rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 66ch; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-d); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.narrow { max-width: 760px; }
.lead { font-size: 1.16rem; line-height: 1.55; }
.note { color: var(--soft); font-size: .95rem; margin-top: 1.2em; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px 16px; z-index: 9; }
.skip:focus { left: 12px; top: 12px; }

.btn { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; padding: .68em 1.25em; border-radius: 4px; }
.btn:hover { background: var(--blue-d); color: #fff; }
.btn.quiet { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn.quiet:hover { background: var(--blue); color: #fff; }

.top { background: var(--blue); color: #fff; position: relative; z-index: 3; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 108px; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; font-weight: 600; line-height: 1.35; font-size: 1rem; }
.brand:hover { color: #fff; }
.brand img { height: 74px; width: auto; flex: none; }
.top nav { display: flex; align-items: center; gap: 28px; }
.top ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.top nav a { color: #fff; text-decoration: none; padding: 8px 0; white-space: nowrap; }
.top nav a:hover { box-shadow: inset 0 -2px 0 var(--sky); }
.top nav a[aria-current] { box-shadow: inset 0 -3px 0 #fff; }
.top nav a.nav-wsos { font-weight: 600; }
.top nav a.lang { border-left: 1px solid var(--sky); padding-left: 26px; }
.menu { display: none; font: 600 1rem var(--font); color: #fff; background: none; border: 2px solid #fff; border-radius: 4px; padding: 8px 14px; min-height: 44px; }
.top :focus-visible, .hero :focus-visible, .phead :focus-visible, .foot :focus-visible { outline-color: #fff; }

/* Home: one blue sea with a curved horizon */
.hero { position: relative; margin-top: -1px; background: linear-gradient(var(--blue) calc(100% - 6px), #fff 0); color: #fff; overflow: hidden; }
.hero-t { position: relative; z-index: 1; padding-block: 92px 120px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 4.5vw, 4rem); line-height: 1.12; max-width: 13em; margin-bottom: .4em; }
:lang(en) .hero h1 { max-width: 11em; }
.hero .lead { max-width: 32em; margin: 0; }
.helm { position: absolute; right: -30px; bottom: -130px; width: 820px; color: #2388D2; }
.horizon { position: relative; z-index: 1; display: block; width: 100%; height: clamp(110px, 22.9vw, 330px); margin-bottom: -1px; }
.card { position: relative; z-index: 2; margin-top: -96px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px 56px; align-items: end; }
.card-n { font-size: clamp(2.2rem, 3.8vw, 3.3rem); font-weight: 600; color: var(--ink); line-height: 1; margin: 0; white-space: nowrap; }
.card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 0; align-items: end; }
.card dt { color: var(--soft); font-size: .95rem; }
.card dd { margin: 0; font-weight: 600; color: var(--ink); line-height: 1.4; }

/* Sections */
.band { padding-block: 72px; }
.band + .band:not(.shallow):not(.band.shallow + .band) { padding-top: 0; }
.shallow { background: var(--shallow); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 48px; }
.does { display: grid; gap: 22px; }
.do { color: inherit; text-decoration: none; display: grid; grid-template-columns: 210px 1fr; gap: 24px; align-items: baseline; }
.do { padding-bottom: 22px; border-bottom: 2px solid var(--line); }
.do h3 { margin: 0; color: var(--blue); }
.do p { margin: 0; }
.do:hover h3 { color: var(--blue); text-decoration: underline; text-underline-offset: .18em; }
.photo { margin: 0 0 56px; }
.photo-i { position: relative; overflow: hidden; background: #fff; }
.photo img { width: 100%; height: clamp(260px, 42vw, 640px); object-fit: cover; object-position: 50% 62%; }
.arch, .wake { position: absolute; left: 0; width: 100%; display: block; }
.arch { top: -1px; height: clamp(26px, 6.2vw, 90px); }
.wake { bottom: -2px; height: clamp(30px, 7.6vw, 110px); }
.photo figcaption { padding-block: 10px 0; font-size: .95rem; color: var(--soft); }
.home .photo + .band { padding-top: 0; }

.list { display: grid; gap: 30px; }
.item a { display: grid; grid-template-columns: 168px 1fr; gap: 24px; color: inherit; text-decoration: none; }
.thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--shallow); border-radius: 3px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.none { display: grid; place-items: center; }
.thumb.none img { width: 52%; height: auto; object-fit: contain; }
.item-t { display: flex; flex-direction: column; }
.meta { color: var(--soft); font-size: .93rem; margin: 0 0 .2em; }
.cat { margin-left: .9em; color: var(--blue); }
.item-h { font-weight: 600; font-size: 1.17rem; line-height: 1.35; color: var(--ink); margin-bottom: .2em; }
.item-s { line-height: 1.55; }
.item a:hover .item-h { color: var(--blue); text-decoration: underline; text-underline-offset: .18em; }
.newsp { padding-block: 40px 88px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chips button { font: 400 1rem var(--font); color: var(--ink); background: var(--shallow); border: 0; border-radius: 4px; padding: .5em .95em; cursor: pointer; }
.chips button span { color: var(--soft); margin-left: .35em; }
.chips button:hover { background: var(--shallow2); }
.chips button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chips button[aria-pressed="true"] span { color: #cfe0ec; }

.partners, .people, .past, .hist, .topics, .steps, .plain { margin: 0; padding: 0; list-style: none; }
.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 40px; }
.partners .pn, .people .pn, .past .pn { display: block; font-weight: 600; color: var(--ink); line-height: 1.35; }
.partners .py, .people .po, .past .po { color: var(--soft); font-size: .95rem; display: block; }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 40px; }
.people .pn { font-size: 1.15rem; }
.people .pr { display: block; color: var(--blue); }
.plain li, .topics li { padding-left: 1.3em; position: relative; margin-bottom: .55em; max-width: 66ch; }
.plain li::before, .topics li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border: 2px solid var(--blue); border-radius: 50%; }
.topics { columns: 2; column-gap: 40px; }
.topics li { break-inside: avoid; }
.hist { border-left: 3px solid var(--blue); padding-left: 26px; }
.hist li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; margin-bottom: 18px; position: relative; }
.hist li::before { content: ''; position: absolute; left: -34px; top: .42em; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.hist .when { font-weight: 600; color: var(--ink); }
.steps { counter-reset: s; margin-bottom: 1.6em; }
.steps li { counter-increment: s; padding-left: 2.6em; position: relative; margin-bottom: .9em; max-width: 62ch; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -.02em; width: 1.75em; height: 1.75em; line-height: 1.7em; text-align: center; border-radius: 50%; border: 2px solid var(--blue); color: var(--blue); font-weight: 600; }
.past li { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; align-items: baseline; padding-block: 14px; border-bottom: 1px solid var(--line); }
#past .past li:first-child { padding-top: 4px; }
.past .py { font-size: 1.5rem; font-weight: 600; color: var(--ink); }

.sign { font-weight: 600; color: var(--ink); }
.files { list-style: none; margin: 0 0 1em; padding: 0; }
.files li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.files li:first-child { padding-top: 2px; }
.files .po { color: var(--soft); font-size: .95rem; white-space: nowrap; }
.att { font-size: 1.25rem; }
.pics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pics figure { margin: 0; }
.pics img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; }
.pics figcaption { color: var(--soft); font-size: .95rem; margin-top: 6px; }
.counts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0 0 2em; }
.counts dt { color: var(--soft); font-size: .95rem; }
.counts dd { margin: 0; font-size: 1.5rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.inst { margin: 0; }
.inst div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.inst dt { font-weight: 600; color: var(--ink); }
.inst dd { margin: 0; }
.phead { margin-top: -1px; background: linear-gradient(var(--blue) calc(100% - 6px), #fff 0); color: #fff; padding-top: 44px; }
.phead h1 { color: #fff; margin-bottom: .3em; }
.phead .lead:last-child { margin-bottom: 0; }
.phead.bare { padding-top: 0; }
.shore { display: block; width: 100%; height: clamp(40px, 6.2vw, 90px); margin: 34px 0 -1px; }
.phead.bare .shore { margin-top: 0; }
.phead .facts dt { color: #d5eaf8; }
.phead .facts dd { color: #fff; }
.facts { display: flex; flex-wrap: wrap; gap: 18px 56px; margin: 26px 0 0; }
.facts dt { color: var(--soft); font-size: .95rem; }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); line-height: 1.45; max-width: 24em; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px 30px; list-style: none; margin: 14px 0 0; padding: 0; border-bottom: 2px solid var(--line); }
.tabs a { display: block; padding: .7em 0; text-decoration: none; color: var(--ink); margin-bottom: -2px; border-bottom: 3px solid transparent; }
.tabs a:hover { border-color: var(--shallow2); }
.tabs a[aria-current] { font-weight: 600; color: var(--blue); border-color: var(--blue); }
.reg { border-left: 4px solid var(--blue); padding: 4px 0 4px 24px; }
.reg .facts { margin: 0 0 20px; }
.reg.closed, .reg.not_open { border-color: var(--shallow2); }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 480px; }
th, td { text-align: left; vertical-align: top; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); }
th { color: var(--soft); font-weight: 400; }
td:first-child { white-space: nowrap; font-weight: 600; color: var(--ink); }
.bigmail { font-size: 1.4rem; }

.post article { padding-block: 24px 88px; }
.post h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.18; }
.fallback { background: var(--shallow); padding: 10px 16px; border-radius: 4px; display: inline-block; }
.md { margin-block: 24px 40px; }
.md img { border-radius: 3px; margin-block: 1.4em; }
.md h1, .md h2, .md h3 { margin-top: 1.5em; font-size: 1.25rem; }
.md li { margin-bottom: .35em; }

.foot { background: var(--ink); color: #dbe7f0; }
.foot-in { display: flex; justify-content: space-between; gap: 40px; padding-block: 48px; }
.foot p { margin: 0 0 .5em; }
.foot-b { display: flex; align-items: center; gap: 24px; }
.foot-b img { height: 84px; width: auto; flex: none; }
.foot-name { font-weight: 600; color: #fff; }
.foot ul { list-style: none; margin: 0; padding: 0; text-align: right; }
.foot a { color: #fff; }
.foot a:hover { color: var(--sky); }

@media (max-width: 1320px) {
  .card { margin-top: -28px; }
  .top ul, .top nav { gap: 20px; }
  .top nav a.lang { padding-left: 20px; }
}
@media (max-width: 1180px) {
  .menu { display: block; }
  .top-in { flex-wrap: wrap; min-height: 0; }
  .brand img { height: 62px; }
  .top nav { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding-bottom: 12px; }
  .top nav.open { display: flex; }
  .top ul { flex-direction: column; gap: 0; }
  .top nav a { display: block; }
  .top nav a.lang { border: 0; padding-left: 0; }
  .hero-t { padding-block: 60px 90px; }
  .helm { width: 500px; right: -150px; bottom: -90px; }
  .card { margin-top: 20px; grid-template-columns: 1fr auto; }
  .card dl { grid-column: 1 / -1; grid-row: 2; justify-content: start; }
}
@media (max-width: 760px) {
  .band { padding-block: 52px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .do { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .top-in { gap: 12px; }
  .brand { gap: 9px; font-size: .8rem; }
  .brand img { height: 48px; }
  .menu { padding: 8px 12px; font-size: .95rem; }
  .hero-t { padding-block: 44px 72px; }
  .helm { width: 320px; right: -120px; bottom: -60px; }
  .card { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .card dl { grid-template-columns: minmax(0, 1fr); gap: 12px; grid-row: auto; }
  .card .btn { justify-self: start; }
  .phead { padding-top: 24px; }
  .shore { margin-top: 24px; }
  .item a { grid-template-columns: 96px 1fr; gap: 16px; }
  .item-s { display: none; }
  .partners, .people, .pics { grid-template-columns: minmax(0, 1fr); }
  .inst div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .topics { columns: 1; }
  .hist li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .past li { grid-template-columns: 70px 1fr; }
  .past li > a { grid-column: 2; }
  .tabs { gap: 2px 22px; }
  .foot-b { align-items: flex-start; gap: 16px; }
  .foot-b img { height: 60px; }
  table { min-width: 0; }
  thead { position: absolute; left: -999px; }
  tr { display: grid; grid-template-columns: 4.2em 1fr; padding-block: 10px; border-bottom: 1px solid var(--line); }
  td { border: 0; padding: 0; }
  td:last-child { grid-column: 2; color: var(--soft); }
  .foot-in { flex-direction: column; }
  .foot ul { text-align: left; }
}
/* Opening of the home page. Plays once, the text stays readable without it, the emblem never moves */
@keyframes helm-settle { from { transform: rotate(-52deg); } 72% { transform: rotate(4deg); } to { transform: none; } }
@keyframes sea-rise { from { transform: translateY(110px); } to { transform: none; } }
@keyframes line-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero .helm { animation: helm-settle 1.9s cubic-bezier(.3, .6, .25, 1) both; }
  /* The white shore stays, so the card below is readable from the first frame */
  .hero .horizon path:nth-child(1) { animation: sea-rise 1s cubic-bezier(.2, .75, .25, 1) .12s both; }
  .hero .horizon path:nth-child(2) { animation: sea-rise 1s cubic-bezier(.2, .75, .25, 1) both; }
  .hero h1 { animation: line-rise .7s ease-out .1s both; }
  .hero .lead { animation: line-rise .7s ease-out .3s both; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (max-width: 365px) {
  .wrap { width: calc(100% - 32px); }
  .top-in { gap: 8px; }
  .brand { gap: 7px; font-size: .68rem; }
  .brand img { height: 40px; }
  .menu { padding: 8px 10px; font-size: .88rem; }
}
