:root {
  color-scheme: light;
  --ink: #101a30;
  --blue: #203fc9;
  --blue-deep: #1832a7;
  --fog: #edf1f7;
  --muted: #49556d;
  --line: #cbd3e2;
  --wide: 1312px;
  color: var(--ink);
  background: #fff;
  font: 400 100%/1.65 "Noto Sans KR", "Malgun Gothic", sans-serif;
  word-break: keep-all;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, ol, ul { margin: 0; }
html { scroll-behavior: smooth; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #4567f6; outline-offset: 4px; }
.shell { width: min(var(--wide), calc(100% - 112px)); margin-inline: auto; }
.skip { position: fixed; z-index: 9; top: .75rem; left: .75rem; padding: .55rem .9rem; transform: translateY(-180%); background: #fff; }
.skip:focus { transform: translateY(0); }
.header { background: #fff; position: relative; z-index: 2; }
.nav-shell { min-height: 76px; width: min(var(--wide), calc(100% - 112px)); margin: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 9px; white-space: nowrap; font-size: 1.95rem; line-height: 1; letter-spacing: -.085em; }
.brand b { font-weight: 900; }
.header-brand .brand-mark { align-self: start; margin-top: .2rem; }
.header-brand-name { display: grid; gap: .24rem; }
.header-business-name { color: var(--muted); font-size: .75rem; font-weight: 600; letter-spacing: 0; line-height: 1.2; }
.brand-mark { width: 29px; height: 23px; display: inline-block; background: var(--blue); clip-path: polygon(31% 0,58% 0,29% 100%,2% 100%,31% 0,72% 0,99% 0,70% 100%,43% 100%,72% 0); }
.main-nav { display: flex; gap: clamp(1.5rem,5vw,4.5rem); align-items: center; }
.main-nav a { padding: .65rem 0; font-size: .95rem; font-weight: 700; white-space: nowrap; }
.main-nav a:hover { color: var(--blue); }
.header-consult, .mobile-consult { min-height: 44px; justify-self: end; padding: 0 1.45rem; border: 1px solid var(--blue); background: var(--blue); color: #fff; font-weight: 800; white-space: nowrap; }
.header-consult:hover, .mobile-consult:hover { background: var(--blue-deep); }
.menu-button, .mobile-consult { display: none; }
.hero { min-height: clamp(480px, 42vw, 650px); display: grid; align-items: center; position: relative; isolation: isolate; background: #101a30; color: #fff; }
.hero-photo { position: absolute; z-index: -2; inset: 0; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(8,16,31,.76), rgba(8,16,31,.48) 43%, rgba(8,16,31,.06) 77%); }
.hero-copy { padding-block: 4.25rem; }
h1, h2, h3 { font-weight: 850; letter-spacing: -.055em; }
h1 { font-size: clamp(3.4rem, 5.75vw, 6.2rem); line-height: 1.09; }
.hero p { margin: 1.35rem 0 1.9rem; color: #f3f5fa; font-size: clamp(1rem, 1.65vw, 1.37rem); font-weight: 500; letter-spacing: -.03em; }
.hero-link { min-height: 52px; display: inline-flex; align-items: center; padding: .65rem 1.35rem; background: #fff; color: var(--ink); font-weight: 800; transition: background-color .15s; }
.hero-link:hover { background: #dfe8ff; }
.quick-nav { background: var(--fog); border-bottom: 1px solid #e4e9f2; }
.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: .55rem; }
.quick-links a { display: flex; align-items: center; justify-content: center; padding: .85rem .8rem; font-weight: 800; font-size: 1.06rem; }
.quick-links a + a { border-left: 1px solid var(--line); }
.quick-links a:hover { color: var(--blue); }
.section { padding-block: clamp(3.6rem,7.1vw,6rem); scroll-margin-top: 1rem; }
h2 { font-size: clamp(2rem, 4.2vw, 3.75rem); line-height: 1.17; }
h3 { font-size: 1.27rem; line-height: 1.3; }
.section-intro { color: var(--muted); margin-top: .75rem; }
.country-grid { margin-top: 2.1rem; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 3vw, 3.5rem); align-items: start; }
.country-tabs { display: grid; }
.country-tabs button { border: 0; border-bottom: 1px solid var(--line); min-height: 79px; padding: .7rem 1.5rem; display: flex; justify-content: space-between; align-items: center; text-align: left; background: #fff; font-size: clamp(1.35rem,2.2vw,2.05rem); font-weight: 850; letter-spacing: -.04em; }
.country-tabs button:hover { background: var(--fog); }
.country-tabs button[aria-selected="true"] { color: #fff; background: var(--blue); border-bottom-color: var(--blue); }
.country-tabs i { width: .58em; height: .58em; border-right: 2px solid; border-top: 2px solid; transform: rotate(45deg); flex: none; margin-right: .25em; }
.country-panel img { height: clamp(190px,24vw,320px); object-fit: cover; }
.country-copy { background: var(--fog); padding: 1.35rem 1.6rem; }
.country-copy ul { padding-left: 1.15rem; margin-top: .65rem; color: var(--muted); }
.country-copy li + li { margin-top: .2rem; }
.process-section { background: var(--fog); }
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: .9rem; padding: 0; list-style: none; counter-reset: steps; margin: 2rem 0 1.9rem; }
.steps li { counter-increment: steps; border-top: 1px solid #aab6ce; padding: 1.1rem .4rem 0 0; }
.steps li::before { content: counter(steps, decimal-leading-zero); display: block; font-size: .88rem; font-weight: 800; color: var(--blue); margin-bottom: .55rem; }
.steps p { color: var(--muted); margin-top: .5rem; }
.cost { border-left: 4px solid var(--blue); padding: 1.1rem 1.35rem; background: #fff; }
.cost p { margin-top: .5rem; color: var(--muted); }
.visa { display: grid; grid-template-columns: 4fr 7fr; gap: 2rem; }
.visa details { border-bottom: 1px solid var(--line); padding: .85rem 0; }
.visa details:first-child { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 750; }
.visa details p { color: var(--muted); padding: .65rem 1rem .2rem; }
.visa-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: .8rem; color: var(--blue); font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }
.contact { background: var(--blue); color: #fff; padding-block: 3.1rem; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.contact h2 { font-size: clamp(1.85rem, 3vw, 2.7rem); }
.contact p { margin-top: .6rem; }
.contact-consult { background: #fff; color: var(--blue); border: 0; font-weight: 850; min-height: 50px; padding: .65rem 1.4rem; white-space: nowrap; }
.contact-consult:hover { background: var(--fog); }
.footer { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; padding-block: 1.6rem; color: var(--muted); }
.footer .brand { font-size: 1.35rem; color: var(--ink); }
.footer .brand-mark { height: 16px; width: 21px; }
.footer-brand { display: grid; justify-items: start; gap: .45rem; }
.business-name, .credits { font-size: .88rem; }
.credits { margin-left: auto; }
.credits a { text-decoration: underline; text-underline-offset: 3px; }
dialog { border: 0; border-top: 5px solid var(--blue); width: min(100% - 2rem, 490px); max-height: calc(100dvh - 2rem); padding: 1.65rem; color: var(--ink); box-shadow: 0 18px 70px #101a3040; }
dialog::backdrop { background: #101a30b8; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.dialog-heading h2 { font-size: 2rem; }
.close-dialog { width: 44px; height: 44px; background: #fff; border: 0; font-size: 1.7rem; }
#consult-note { margin-top: .65rem; color: var(--muted); }
#consult-form { display: grid; gap: 1rem; margin-top: 1.2rem; }
#consult-form label { display: grid; gap: .35rem; font-weight: 750; }
#consult-form select { background: #fff; border: 1px solid #9eaac2; min-height: 47px; width: 100%; padding: .55rem .65rem; font-weight: 500; }
.form-actions { display: flex; gap: .6rem; }
.form-submit, .form-cancel { padding: .55rem .9rem; min-height: 44px; border: 1px solid var(--blue); font-weight: 750; }
.form-submit { background: var(--blue); color: #fff; }
.form-cancel { background: #fff; color: var(--blue); }
.form-result { color: var(--blue-deep); font-weight: 650; }
.form-result:empty { display: none; }
@media (max-width: 850px) {
  .shell, .nav-shell { width: calc(100% - 64px); }
  .main-nav { gap: 1.45rem; }
  .hero-photo { object-position: 59% 52%; }
}
@media (max-width: 680px) {
  .shell, .nav-shell { width: calc(100% - 40px); }
  .nav-shell { min-height: 65px; grid-template-columns: 1fr auto; }
  .brand { font-size: 1.75rem; }
  .brand-mark { width: 25px; height: 20px; }
  .header-consult { display: none; }
  .menu-button { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .1rem 0 .5rem; background: #fff; border: 0; font-weight: 800; }
  .menu-button span { width: 17px; height: 9px; border-block: 2px solid var(--ink); }
  .main-nav { display: none; position: absolute; inset: 100% 0 auto; padding: .45rem 20px 1.15rem; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: grid; gap: 0; }
  .main-nav a { padding: .72rem 0; border-bottom: 1px solid var(--line); }
  .mobile-consult { display: block; justify-self: start; margin-top: .85rem; }
  .hero { min-height: clamp(490px, 132vw, 620px); align-items: end; }
  .hero-photo { object-position: 94% 50%; }
  .hero::after { background: linear-gradient(0deg, rgba(8,16,31,.91), rgba(8,16,31,.60) 39%, rgba(8,16,31,0) 75%); }
  .hero-copy { padding-block: 1.8rem 2.35rem; }
  h1 { font-size: clamp(2.15rem, 9.8vw, 3.5rem); }
  .hero p { margin: .85rem 0 1.1rem; font-size: 1rem; }
  .hero-link { min-height: 47px; padding: .55rem .95rem; }
  .quick-nav { background: #fff; border: 0; }
  .quick-links { display: block; padding: 0; }
  .quick-links a { justify-content: space-between; padding: .82rem .1rem; border-bottom: 1px solid var(--line); }
  .quick-links a + a { border-left: 0; }
  .quick-links a span { width: .52rem; height: .52rem; transform: rotate(45deg); border-top: 2px solid; border-right: 2px solid; margin-right: .3rem; }
  .section { padding-block: 3rem; }
  .country-grid { grid-template-columns: 1fr; margin-top: 1.45rem; gap: 1rem; }
  .country-tabs button { min-height: 58px; padding-inline: 1rem; }
  .country-panel img { height: clamp(175px, 53vw, 285px); }
  .country-copy { padding: 1.05rem 1rem; }
  .steps { grid-template-columns: repeat(2,1fr); gap: 1.25rem .75rem; }
  .visa { grid-template-columns: 1fr; gap: 1.3rem; }
  .contact { padding-block: 2.35rem; }
  .contact-inner { flex-direction: column; align-items: flex-start; gap: 1.05rem; }
  .credits { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-link { transition: none; }
}

.consult-fields { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: .9rem; }
.identity-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
#consult-form input:not([type="checkbox"]), #consult-form textarea {
  background: #fff; border: 1px solid #9eaac2; border-radius: 0; min-height: 47px; min-width: 0; width: 100%; padding: .55rem .65rem; font: inherit; font-weight: 500; color: inherit;
}

#consult-form textarea { resize: vertical; }
.privacy { background: var(--fog); padding: .75rem; font-size: .88rem; }
.privacy p { margin-block: .2rem .6rem; color: var(--muted); }
#consult-form .consent { display: flex; align-items: flex-start; gap: .5rem; }
.consent input { flex: none; margin: .29rem .1rem 0; width: 1rem; height: 1rem; accent-color: var(--blue); }
.form-submit:disabled { opacity: .65; cursor: wait; }
.form-result[data-error] { color: #9b251d; }
@media (max-width: 420px) {
  dialog { padding: 1rem; }
  .identity-fields { grid-template-columns: 1fr; gap: .9rem; }
}

.admin-header { border-bottom: 1px solid var(--line); }
.admin-header > div { min-height: 65px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.admin-header > div > a:last-child, .admin-page-links a { color: var(--blue); font-weight: 750; }
.admin-main { width: min(840px, calc(100% - 40px)); padding-block: 3rem; }
.admin-main > h1 { font-size: clamp(2.05rem, 6vw, 3.4rem); margin-bottom: 1.4rem; }
.admin-notice { background: var(--fog); padding: .9rem 1.1rem; margin-bottom: 1rem; }
.submission-list { display: grid; gap: 1rem; }
.submission { border: 1px solid var(--line); padding: 1.25rem; overflow-wrap: anywhere; }
.submission-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .35rem 1rem; }
.submission-heading h2 { font-size: 1.4rem; }
.submission-heading time { color: var(--muted); font-size: .88rem; }
.submission dl { display: flex; flex-wrap: wrap; gap: .45rem 1.45rem; margin-block: .65rem .95rem; }
.submission dl > div { display: flex; gap: .55rem; }
.submission dt { font-weight: 700; }
.submission dd { margin: 0; color: var(--muted); }
.submission h3 { font-size: 1rem; }
.submission-message { margin-top: .35rem; white-space: pre-wrap; }
.submission-delete { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.submission-delete p { margin-block: .45rem; color: var(--muted); }
.submission-delete button { border: 1px solid #9b251d; color: #9b251d; background: #fff; padding: .45rem .75rem; min-height: 44px; font-weight: 750; }
.admin-page-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }

.main-nav { gap: clamp(.92rem, 2.1vw, 2.2rem); }
.main-nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; text-underline-offset: .4rem; }
.context-link, .home-section-links a, .footer-links a { color: var(--blue); font-weight: 750; }
.context-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: .35rem; text-decoration: underline; text-underline-offset: .23rem; }
.home-section-links, .footer-links { display: flex; flex-wrap: wrap; gap: .35rem 1.3rem; }
.home-section-links { margin-top: 1rem; }
.home-section-links a, .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.home-section-links a:hover, .footer-links a:hover { text-decoration: underline; text-underline-offset: .23rem; }
.footer-links { margin-left: auto; font-size: .88rem; }
.footer .credits { margin-left: .25rem; }
.guide-heading { background: var(--fog); border-bottom: 1px solid #dde4f0; padding: 2rem 0 3rem; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .8rem; font-size: .9rem; color: var(--muted); margin-bottom: 1.6rem; }
.breadcrumbs > * + *::before { content: "/"; color: #68758b; padding-right: .8rem; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.guide-heading h1 { font-size: clamp(2.45rem, 5.5vw, 4.75rem); }
.guide-heading p { color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.2rem); margin-top: 1rem; }
.guide-content { padding-block: clamp(2.75rem, 6vw, 5rem); }
.guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, 28%); gap: clamp(2rem, 5vw, 5rem); }
.guide-aside { align-self: start; position: sticky; top: 1.5rem; border-top: 4px solid var(--blue); background: var(--fog); padding: 1.15rem 1.25rem; }
.guide-aside h2 { font-size: 1.2rem; }
.guide-links { list-style: none; padding: 0; margin-top: .65rem; }
.guide-links + .guide-links { border-top: 1px solid var(--line); padding-top: .55rem; }
.guide-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: .24rem; }
.guide-article { padding-block: 1.35rem 1.65rem; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.guide-article:first-child { padding-top: 0; }
.guide-article h2, .guide-steps h2 { font-size: clamp(1.32rem, 2.35vw, 1.95rem); }
.guide-article p, .guide-steps p { color: var(--muted); margin-top: .65rem; }
.guide-callout { margin-top: .85rem; background: var(--fog); border-left: 4px solid var(--blue); padding: .95rem 1.05rem; }
.guide-callout ul { padding-left: 1.2rem; }
.guide-callout li + li { margin-top: .4rem; }
.guide-country-picture { aspect-ratio: 2.4; object-fit: cover; margin-bottom: .65rem; }
.guide-countries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.guide-country { border: 1px solid var(--line); display: flex; flex-direction: column; }
.guide-country:hover { border-color: var(--blue); }
.guide-country img { aspect-ratio: 1.7; object-fit: cover; }
.guide-country div { padding: 1.15rem; }
.guide-country h2 { font-size: 1.6rem; color: var(--blue); }
.guide-country p { color: var(--muted); margin-top: .45rem; }
.guide-steps { list-style: none; counter-reset: guide-step; padding: 0; }
.guide-steps li { position: relative; padding: 1rem 0 1.65rem 3.4rem; border-bottom: 1px solid var(--line); counter-increment: guide-step; scroll-margin-top: 1rem; }
.guide-steps li::before { content: counter(guide-step, decimal-leading-zero); position: absolute; top: 1rem; left: 0; color: var(--blue); font-size: 1.05rem; font-weight: 850; }
.faq-group details { padding: .8rem 0; border-top: 1px solid var(--line); }
.faq-group details:first-of-type { margin-top: .8rem; }
.faq-group details p { padding-left: 1.1rem; }
.business-data { margin: .85rem 0 0; }
.business-data > div { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 2fr); gap: .9rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.business-data > div:last-child { border-bottom: 0; }
.business-data dt { font-weight: 750; }
.business-data dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 900px) and (min-width: 681px) {
  .nav-shell { grid-template-columns: 1fr auto; }
  .header-consult { display: none; }
  .menu-button { display: inline-flex; align-items: center; min-height: 44px; background: #fff; border: 0; font-weight: 800; }
  .main-nav { display: none; position: absolute; inset: 100% 0 auto; padding: .45rem 32px 1.15rem; background: #fff; border-block: 1px solid var(--line); }
  .main-nav.is-open { display: grid; gap: 0; }
  .main-nav a { padding: .72rem 0; border-bottom: 1px solid var(--line); }
  .mobile-consult { display: block; justify-self: start; margin-top: .85rem; }
}
@media (max-width: 680px) {
  .guide-grid, .guide-countries { grid-template-columns: 1fr; }
  .guide-aside { position: static; }
  .guide-heading { padding: 1.35rem 0 2.2rem; }
  .breadcrumbs { margin-bottom: .9rem; }
  .business-data > div { grid-template-columns: 1fr; gap: .15rem; }
  .footer-links { width: 100%; margin-left: 0; }
  .guide-country-picture { aspect-ratio: 1.8; }
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; }
button.hero-link { border: 0; }
.hero-guide-link { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 750; text-decoration: underline; text-underline-offset: .23rem; }
.contact-methods { margin-top: .85rem; display: flex; flex-wrap: wrap; gap: .1rem 1.25rem; font-style: normal; }
.contact-methods a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 750; text-decoration: underline; text-underline-offset: .23rem; overflow-wrap: anywhere; }
