/* EKMOA site. Colours come from a nautical chart: white deep water, blue shallows, buff land, magenta notes. */
:root {
  --ink: #12304f;
  --text: #24384d;
  --soft: #506579;
  --blue: #1b5fa6;
  --shallow: #e3f1f8;
  --shallow2: #c3e0ee;
  --land: #f2e2ae;
  --magenta: #a3195b;
  --magenta-d: #7f1147;
  --line: #c9d8e3;
  --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(--magenta); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--magenta); 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(--magenta); color: #fff; text-decoration: none; font-weight: 600; padding: .68em 1.25em; border-radius: 4px; }
.btn:hover { background: var(--magenta-d); color: #fff; }
.btn.quiet { background: #fff; color: var(--magenta); box-shadow: inset 0 0 0 2px var(--magenta); }
.btn.quiet:hover { background: var(--magenta); color: #fff; }

.top { border-bottom: 1px solid var(--line); background: #fff; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); text-decoration: none; font-weight: 600; font-size: 1.5rem; letter-spacing: .01em; }
.brand:hover { color: var(--ink); }
.wheel { width: 34px; height: 34px; flex: none; }
.top nav { display: flex; align-items: center; gap: 28px; }
.top ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.top nav a { color: var(--ink); text-decoration: none; padding: 8px 0; white-space: nowrap; }
.top nav a:hover { color: var(--magenta); }
.top nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--magenta); }
.top nav a.nav-wsos { color: var(--magenta); font-weight: 600; }
.top nav a.lang { border-left: 1px solid var(--line); padding-left: 24px; color: var(--blue); }
.menu { display: none; font: 600 1rem var(--font); color: var(--ink); background: none; border: 2px solid var(--line); border-radius: 4px; padding: 8px 14px; }

/* Hero chart */
.hero { position: relative; max-width: 1760px; margin: 0 auto; aspect-ratio: 1600 / 720; }
.chart { display: block; width: 100%; height: 100%; }
.sea { fill: #fff; }
.sh2 { fill: none; stroke: var(--shallow); stroke-width: 64; stroke-linejoin: round; }
.sh1 { fill: none; stroke: var(--shallow2); stroke-width: 24; stroke-linejoin: round; }
.land { fill: var(--land); stroke: var(--ink); stroke-width: .9; stroke-linejoin: round; }
.grid path { stroke: #7f9db5; stroke-width: .6; opacity: .55; }
.deg text { font: 400 13px var(--font); fill: var(--soft); }
.frame { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.sc1 { stroke: var(--ink); stroke-width: 7; }
.sc0 { stroke: #fff; stroke-width: 7; }
.route { fill: none; stroke: var(--magenta); stroke-width: 2.6; stroke-dasharray: 1; animation: sail 2.6s .3s cubic-bezier(.4, 0, .2, 1) backwards; }
@keyframes sail { from { stroke-dashoffset: 1; } }
.korea { fill: none; stroke: var(--magenta); stroke-width: 2; stroke-dasharray: 9 7; }
.koreat { font: italic 400 17px Georgia, 'Batang', serif; fill: var(--magenta); }
:lang(ko) .koreat { font: 400 16px var(--font); }
.port { text-decoration: none; }
.ring { fill: #fff; stroke: var(--magenta); stroke-width: 2.4; }
.dot { fill: var(--magenta); }
.port.next .ring { fill: var(--magenta); }
.port.next .dot { fill: #fff; }
.port text { fill: var(--ink); paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 5px; stroke-linejoin: round; }
.pname { font: 600 19px var(--font); }
.pyear { font: 400 16px var(--font); }
.port:hover text, .port:focus-visible text { fill: var(--magenta); }
.hero-t { position: absolute; left: max(4.5%, 34px); top: 0; bottom: 0; width: 35%; display: flex; flex-direction: column; justify-content: center; }
.hero-t h1 { margin-bottom: .45em; }
.hero-t .lead { margin-bottom: 1.5em; }
.next { border-left: 4px solid var(--magenta); padding-left: 20px; }
.next p { margin: 0 0 .4em; }
.next .btn { margin-top: .6em; }
.next-l { color: var(--soft); font-size: .95rem; }
.next-n { font-size: 1.7rem; font-weight: 600; color: var(--ink); line-height: 1.15; }

/* 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: 28px; }
.do { color: inherit; text-decoration: none; display: grid; grid-template-columns: 210px 1fr; gap: 24px; align-items: baseline; }
.do h3 { margin: 0; color: var(--blue); }
.do p { margin: 0; }
.do:hover h3 { color: var(--magenta); text-decoration: underline; text-underline-offset: .18em; }
.photo { margin: 0 0 72px; background: var(--shallow); }
.photo img { width: 100%; max-height: 560px; object-fit: cover; object-position: 50% 62%; }
.photo figcaption { padding-block: 12px; 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; color: #8fb9d3; }
.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(--magenta); 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(--magenta); border-radius: 50%; }
.topics { columns: 2; column-gap: 40px; }
.topics li { break-inside: avoid; }
.hist { border-left: 3px solid var(--magenta); 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(--magenta); }
.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(--magenta); color: var(--magenta); 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); }

.phead { background: var(--shallow); padding-block: 64px 52px; }
.phead h1 { margin-bottom: .3em; }
.phead .lead:last-child { margin-bottom: 0; }
.phead.wsos { padding-bottom: 0; }
.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; gap: 6px; list-style: none; margin: 40px 0 0; padding: 0; }
.tabs a { display: block; padding: .75em 1.3em; text-decoration: none; color: var(--ink); border-radius: 4px 4px 0 0; }
.tabs a:hover { background: var(--shallow2); color: var(--ink); }
.tabs a[aria-current] { background: #fff; font-weight: 600; color: var(--magenta); }
.reg { border-left: 4px solid var(--magenta); 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: 56px 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-name { display: flex; align-items: center; gap: 12px; 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(--land); }

@media (max-width: 1100px) {
  .hero { aspect-ratio: auto; display: flex; flex-direction: column-reverse; }
  .hero .chart { width: 130vw; height: 58.5vw; max-width: none; margin-left: -30vw; }
  .hero { overflow: hidden; }
  .hero-t { position: static; width: min(1180px, 100% - 48px); margin-inline: auto; padding-block: 48px 40px; }
  .pname { font-size: 25px; } .pyear { font-size: 22px; } .koreat { font-size: 22px; } .deg text { font-size: 18px; }
  .menu { display: block; }
  .top-in { flex-wrap: wrap; }
  .top nav { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding-bottom: 20px; }
  .top nav.open { display: flex; }
  .top ul { flex-direction: column; gap: 0; }
  .top nav a.lang { border: 0; padding-left: 0; }
}
@media (min-width: 1101px) and (max-width: 1320px) {
  .top ul { gap: 18px; } .top nav { gap: 18px; } .top nav a.lang { padding-left: 18px; }
  .hero-t h1 { font-size: 2.2rem; } .hero-t .lead { font-size: 1.02rem; margin-bottom: 1em; } .hero-t { width: 37%; }
}
@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; }
  .hero .chart { width: 182vw; height: 82vw; margin-left: -70vw; }
  .pname { font-size: 30px; } .pyear { font-size: 24px; }
  .item a { grid-template-columns: 96px 1fr; gap: 16px; }
  .item-s { display: none; }
  .partners, .people { grid-template-columns: minmax(0, 1fr); }
  .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 a { padding: .7em .8em; }
  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; }
  .photo img { max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route { animation: none; }
}
