/* ==========================================================================
   EMBASSY INDEX — clean white + blue design
   Poppins font, minimal, professional
   No gradients, no shadows, no rounded corners
   ========================================================================== */

:root {
  --white:    #FFFFFF;
  --bg:       #F8F9FA;
  --ink:      #111111;
  --ink-2:    #444444;
  --muted:    #666666;
  --line:     #E5E5E5;
  --line-2:   #CCCCCC;
  --blue:     #0066CC;
  --blue-2:   #0052A3;
  --blue-light: #E8F0FE;

  --sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1200px;
  --pad: 24px;
  --hdr-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + 24px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--blue); color: #fff; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

.skip {
  position: absolute; left: -9999px; z-index: 100;
  background: var(--blue); color: #fff; padding: 8px 16px;
}
.skip:focus { left: 12px; top: 12px; }

/* ============================================================ header ===== */

.hdr {
  position: sticky; top: 0; z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.hdr-in { display: flex; align-items: center; gap: 24px; height: var(--hdr-h); }

.brand { display: flex; align-items: center; gap: 8px; }
.brand-glyph { width: 10px; height: 10px; background: var(--blue); }
.brand-name {
  font-size: 18px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--ink);
}
.brand:hover .brand-glyph { background: var(--blue-2); }

.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a {
  font-size: 14px; font-weight: 400;
  color: var(--ink-2); padding: 4px 0;
}
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); font-weight: 500; }

.hdr-meta {
  font-size: 13px; color: var(--muted);
  border-left: 1px solid var(--line); padding-left: 16px;
}
.hdr-meta b { color: var(--blue); font-weight: 600; }

.menu-btn {
  display: none; margin-left: auto;
  background: transparent; border: 1px solid var(--line);
  padding: 6px 12px; cursor: pointer;
  font-size: 13px; color: var(--ink);
}

/* ============================================================ hero ===== */

.hero { padding: 48px 0 40px; text-align: center; }

.hero h1 {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
  margin-left: auto;
  margin-right: auto;
  max-width: 16ch;
}

.hero .lede {
  font-size: 16px; line-height: 1.6;
  color: var(--ink-2); max-width: 600px;
  margin: 0 auto 24px;
}

.searchbar {
  display: flex; border: 1px solid var(--line);
  background: var(--white); max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.searchbar input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  padding: 12px 16px; font-size: 15px; outline: none;
}
.searchbar input::placeholder { color: var(--muted); }
.searchbar button {
  border: 0; background: var(--blue); color: #fff;
  padding: 0 24px; cursor: pointer;
  font-weight: 500; font-size: 14px;
  transition: background 0.15s;
}
.searchbar button:hover { background: var(--blue-2); }

/* ============================================================ stats ===== */

.stats {
  display: flex; gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 0 40px;
}
.stat {
  flex: 1; padding: 20px 0;
  border-right: 1px solid var(--line);
  text-align: center;
}
.stat:last-child { border-right: 0; }
.stat b {
  display: block; font-weight: 700;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1; color: var(--blue);
}
.stat span {
  display: block; margin-top: 6px;
  font-size: 12px; color: var(--muted); font-weight: 400;
}

/* ============================================================ sections === */

.section { padding: 32px 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: 18px; font-weight: 600;
  color: var(--ink);
}
.section-head .count {
  font-size: 13px; color: var(--muted); font-weight: 400;
  margin-left: auto;
}
.section-note {
  margin: -8px 0 16px; color: var(--ink-2);
  font-size: 14px; max-width: 64ch;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

/* ============================================================ lists ===== */

.list { border-top: 1px solid var(--line); }
.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  transition: background 0.1s;
}
.list-row:hover { background: var(--bg); }
.list-row a { display: flex; align-items: center; gap: 12px; width: 100%; }
.list-row .name { flex: 1; font-weight: 400; font-size: 15px; }
.list-row .meta { color: var(--muted); font-size: 13px; white-space: nowrap; }
.list-row .val { font-weight: 600; font-size: 14px; color: var(--blue); min-width: 50px; text-align: right; }
.list-row .arrow { color: var(--muted); transition: transform 0.1s, color 0.1s; }
.list-row:hover .arrow { color: var(--blue); transform: translateX(3px); }

/* ============================================================ bars ===== */

.bar-list { }
.bar-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.bar-row .label { flex: 0 0 140px; font-weight: 400; font-size: 14px; }
.bar-row .label a { color: var(--ink); }
.bar-row .label a:hover { color: var(--blue); }
.bar-row .bar { flex: 1; height: 4px; background: var(--bg); }
.bar-row .bar i { display: block; height: 100%; background: var(--blue); }
.bar-row .val { font-weight: 600; font-size: 13px; color: var(--blue); min-width: 50px; text-align: right; }

/* ============================================================ directory === */

.dir-group { margin-top: 32px; }
.dir-group:first-child { margin-top: 20px; }
.dir-head {
  display: flex; align-items: baseline; gap: 12px;
  border-bottom: 2px solid var(--ink); padding-bottom: 8px;
  margin-bottom: 4px;
}
.dir-head h3 { font-size: 16px; font-weight: 600; color: var(--ink); }
.dir-head .count { margin-left: auto; font-size: 13px; color: var(--muted); }
.dir-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0;
}
.dir-grid a {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; padding: 8px 4px;
  border-bottom: 1px solid var(--line); font-size: 14px;
  transition: color 0.1s;
}
.dir-grid a span { color: var(--muted); font-size: 13px; }
.dir-grid a:hover { color: var(--blue); }
.dir-grid a:hover span { color: var(--blue); }

/* ============================================================ place head === */

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 16px 0 0; font-size: 13px; color: var(--muted);
}
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: var(--line-2); }

.place-head {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 28px 0 24px; border-bottom: 2px solid var(--ink);
}
.place-head .flag {
  width: 64px; height: 43px; flex: none;
  border: 1px solid var(--line); background: var(--bg);
  display: grid; place-items: center; overflow: hidden;
}
.place-head .flag img { width: 100%; height: 100%; object-fit: cover; }
.place-head .flag .mono { font-size: 14px; font-weight: 700; color: var(--muted); }
.place-head h1 {
  font-size: clamp(24px, 4vw, 40px); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.02em; color: var(--ink);
}
.place-head .meta {
  margin-top: 6px; font-size: 14px; color: var(--muted);
}
.place-head .meta b { color: var(--ink); font-weight: 600; }
.place-head .meta i { font-style: normal; color: var(--line-2); margin: 0 6px; }
.place-head .lede { margin-top: 10px; color: var(--ink-2); font-size: 15px; max-width: 64ch; }

/* ============================================================ subnav ===== */

.subnav {
  position: sticky; top: var(--hdr-h); z-index: 30;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.subnav-in { display: flex; overflow-x: auto; scrollbar-width: none; }
.subnav-in::-webkit-scrollbar { display: none; }
.subnav a {
  font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 10px 14px 8px; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.subnav a:first-child { padding-left: 0; }
.subnav a:hover { color: var(--blue); }
.subnav a.on { color: var(--blue); border-bottom-color: var(--blue); }
.subnav a span { color: var(--line-2); margin-left: 4px; font-size: 12px; }
.subnav a.on span { color: var(--blue); }

/* ============================================================ missions === */

.missions { border-top: 1px solid var(--line); }
.mission-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 180px 160px;
  gap: 12px; align-items: center;
  padding: 10px 4px; border-bottom: 1px solid var(--line);
}
.mission-row:last-child { border-bottom: 0; }
.mission-row:hover { background: var(--bg); }
.mission-row .name { font-weight: 500; font-size: 14px; line-height: 1.4; }
.mission-row .name .hon {
  font-style: italic; color: var(--blue); font-weight: 400;
  font-size: 12px; margin-left: 4px;
}
.mission-row .loc { color: var(--muted); font-size: 13px; }
.mission-row .tel { font-size: 13px; color: var(--ink-2); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mission-row .tel a { color: var(--blue); }

/* ============================================================ detail ===== */

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; padding: 32px 0 48px; align-items: start; }

.detail-section { padding: 20px 0; border-bottom: 1px solid var(--line); }
.detail-section:first-child { padding-top: 0; }
.detail-section h2 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 12px;
}

.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 12px; }
.kv dt { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; padding-top: 2px; }
.kv dd { font-size: 15px; }
.kv dd a { color: var(--blue); }
.kv dd a:hover { text-decoration: underline; }

address { font-style: normal; font-size: 15px; line-height: 1.6; }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table td:first-child { width: 90px; font-weight: 600; font-size: 12px; color: var(--muted); }
.hours-table .off { color: var(--muted); font-style: italic; }

.holidays-list li { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.holidays-list li:last-child { border-bottom: 0; }
.holidays-list .date { font-weight: 600; color: var(--blue); min-width: 90px; }

.services-list li { padding: 6px 0 6px 14px; position: relative; border-bottom: 1px solid var(--line); font-size: 14px; }
.services-list li:last-child { border-bottom: 0; }
.services-list li::before { content: "•"; position: absolute; left: 0; color: var(--blue); }

.aside { position: sticky; top: calc(var(--hdr-h) + 12px); }
.aside-box { border: 1px solid var(--line); padding: 16px; margin-bottom: 12px; }
.aside-box h3 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue); margin-bottom: 10px; }
.aside-box .name { font-size: 16px; font-weight: 600; color: var(--ink); }
.aside-box .role { font-size: 13px; color: var(--muted); margin-top: 2px; }
.aside-box .map { border: 1px solid var(--line); height: 220px; }
.aside-box .map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1); }
.aside-box .map .none { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 13px; }
.aside-box .btns { display: grid; gap: 8px; margin-top: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 8px 14px;
  border: 1px solid var(--blue); background: var(--white);
  color: var(--blue); font-weight: 500; font-size: 13px;
  cursor: pointer; transition: all 0.15s;
}
.btn:hover { background: var(--blue); color: #fff; }
.btn.solid { background: var(--blue); color: #fff; }
.btn.solid:hover { background: var(--blue-2); }

/* ============================================================ chips ===== */

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--white);
  padding: 5px 10px; font-size: 13px; font-weight: 500;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip span { font-size: 12px; font-weight: 600; color: var(--muted); }
.chip:hover span { color: var(--blue); }

/* ============================================================ search ===== */

.search-page { padding: 40px 0 24px; }
.search-page h1 { font-size: clamp(24px, 4vw, 36px); font-weight: 700; margin-bottom: 20px; }
.search-meta { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.search-meta b { color: var(--blue); }
.empty { padding: 40px 0; text-align: center; }
.empty b { display: block; font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.empty p { color: var(--muted); font-size: 14px; }

/* ============================================================ footer ===== */

.foot { background: var(--blue); color: #fff; margin-top: 48px; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 32px; padding: 40px 0 24px; }
.foot .brand { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.foot p { font-size: 13px; color: rgba(255,255,255,0.85); line-height: 1.6; }
.foot h3 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.7); margin-bottom: 10px; }
.foot li { padding: 3px 0; font-size: 13px; }
.foot a { color: rgba(255,255,255,0.9); }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-legal {
  border-top: 1px solid rgba(255,255,255,0.2); padding: 12px 0 16px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: rgba(255,255,255,0.6);
}

/* ============================================================ country grid === */

.country-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.country-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: all 0.15s;
  flex: 0 0 auto;
  min-width: 200px;
  max-width: 100%;
}

.country-card:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}

.country-flag {
  width: 28px;
  height: 19px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
}

.country-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.country-flag .flag-mono {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
}

.country-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.country-card:hover .country-name {
  color: var(--blue);
}

.country-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  min-width: 24px;
  text-align: right;
}

.country-card:hover .country-count {
  color: var(--blue);
}

/* ============================================================ responsive = */

@media (max-width: 1024px) {
  .split { gap: 24px; }
  .detail { grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; }
  .foot-in { grid-template-columns: 1fr 1fr; gap: 24px; }
  .dir-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --pad: 16px; --hdr-h: 52px; }
  .hero { padding: 32px 0 24px; }
  .stats { flex-wrap: wrap; }
  .stat { flex: 1 1 45%; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(n+3) { border-bottom: 0; }
  .split { grid-template-columns: 1fr; gap: 20px; }
  .detail { grid-template-columns: 1fr; gap: 8px; }
  .aside { position: static; }
  .place-head { flex-direction: column; gap: 12px; }
  .place-head .flag { width: 48px; height: 32px; }
  .mission-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .mission-row .tel { display: none; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .dir-grid { grid-template-columns: 1fr; }
  .nav { display: none; position: absolute; top: var(--hdr-h); left: 0; right: 0; background: var(--white); border-bottom: 2px solid var(--blue); padding: 8px var(--pad) 16px; flex-direction: column; gap: 10px; }
  .nav.open { display: flex; }
  .menu-btn { display: block; }
  .hdr-meta { display: none; }
  .foot-in { grid-template-columns: 1fr; gap: 20px; padding: 32px 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .hdr, .subnav, .foot, .aside, .searchbar { display: none !important; }
  body { background: #fff; }
  .detail { grid-template-columns: 1fr; }
}
CSSEOF
echo "CSS written successfully"