/* Ministry of External Relations — 2010s institutional look */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: #222;
  background: #e8e8e8 url("data:image/gif;base64,R0lGODlhBAAEAIAAAODg4P///yH5BAAAAAAALAAAAAAEAAQAAAIFRB5mBQA7") repeat;
}
a { color: #003399; }
a:visited { color: #551a8b; }
a:hover { color: #cc0000; }

#wrapper {
  width: 920px;
  margin: 0 auto;
  background: #fff;
  border-left: 1px solid #999;
  border-right: 1px solid #999;
  min-height: 100vh;
}

#topbar {
  background: #00205b;
  color: #ccc;
  font-size: 11px;
  padding: 4px 16px;
  text-align: right;
}
#topbar a { color: #fff; text-decoration: none; margin-left: 12px; }

#header {
  background: linear-gradient(to bottom, #003399 0%, #00205b 100%);
  color: #fff;
  padding: 14px 20px 10px;
  border-bottom: 4px solid #c8a951;
  position: relative;
}
#header .crest {
  float: left;
  width: 56px;
  height: 56px;
  margin-right: 14px;
  background: #c8a951;
  border: 2px solid #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 52px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: bold;
  color: #00205b;
  font-size: 18px;
}
#header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: normal;
  letter-spacing: 0.5px;
}
#header .subtitle {
  font-size: 12px;
  color: #c8d4ef;
  margin-top: 2px;
}
#header .de {
  font-size: 11px;
  color: #aab8d8;
  margin-top: 4px;
}

#nav {
  background: #f0f0f0;
  border-bottom: 1px solid #bbb;
  padding: 0;
  font-size: 12px;
}
#nav ul { list-style: none; display: flex; flex-wrap: wrap; }
#nav li { border-right: 1px solid #ccc; }
#nav a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  color: #003399;
  font-weight: bold;
}
#nav a:hover, #nav a.active {
  background: #003399;
  color: #fff;
}

#breadcrumb {
  background: #fafafa;
  border-bottom: 1px solid #ddd;
  padding: 6px 20px;
  font-size: 11px;
  color: #666;
}

#content {
  display: flex;
  min-height: 480px;
}
#sidebar {
  width: 210px;
  background: #f5f5f5;
  border-right: 1px solid #ddd;
  padding: 14px 12px;
  font-size: 12px;
}
#sidebar h3 {
  font-size: 11px;
  text-transform: uppercase;
  color: #00205b;
  border-bottom: 2px solid #c8a951;
  padding-bottom: 4px;
  margin-bottom: 8px;
  margin-top: 16px;
}
#sidebar h3:first-child { margin-top: 0; }
#sidebar ul { list-style: none; }
#sidebar li { margin-bottom: 5px; border-bottom: 1px dotted #ccc; padding-bottom: 4px; }
#sidebar .box {
  background: #fff;
  border: 1px solid #ccc;
  padding: 8px;
  margin-top: 12px;
  font-size: 11px;
}
#sidebar .box strong { color: #00205b; }

#main {
  flex: 1;
  padding: 18px 22px 30px;
}
#main h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  color: #00205b;
  border-bottom: 1px solid #c8a951;
  padding-bottom: 6px;
  margin-bottom: 12px;
  font-weight: normal;
}
#main h3 {
  font-size: 14px;
  color: #003399;
  margin: 18px 0 8px;
}
#main p { margin-bottom: 10px; }
#main ul, #main ol { margin: 0 0 12px 22px; }
#main li { margin-bottom: 4px; }

.doc-meta {
  background: #f8f6ef;
  border: 1px solid #d4c9a0;
  padding: 8px 12px;
  font-size: 11px;
  margin-bottom: 16px;
  font-family: "Courier New", Courier, monospace;
}
.doc-meta span { margin-right: 16px; }

table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 12px;
}
table.data th {
  background: #003399;
  color: #fff;
  text-align: left;
  padding: 6px 8px;
  font-weight: normal;
}
table.data td {
  border: 1px solid #ccc;
  padding: 6px 8px;
  vertical-align: top;
}
table.data tr:nth-child(even) { background: #f4f7fb; }

.seal-block {
  border: 2px double #00205b;
  padding: 16px 20px;
  margin: 20px 0;
  background: #fffcf5;
  position: relative;
}
.seal-block .seal {
  float: right;
  width: 80px;
  height: 80px;
  border: 3px solid #c8a951;
  border-radius: 50%;
  text-align: center;
  padding-top: 18px;
  font-family: Georgia, serif;
  font-size: 10px;
  color: #00205b;
  background: #fff;
  line-height: 1.2;
  margin-left: 12px;
}
.seal-block .sig {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 20px;
  color: #1a1a4a;
  margin-top: 14px;
}

.notice {
  background: #fff8e0;
  border: 1px solid #e0c060;
  padding: 10px 12px;
  margin: 14px 0;
  font-size: 12px;
}
.notice strong { color: #664400; }

.doc-list a {
  display: block;
  padding: 8px 10px;
  border: 1px solid #ddd;
  margin-bottom: 6px;
  text-decoration: none;
  background: #fafafa;
}
.doc-list a:hover { background: #eef3ff; border-color: #003399; }
.doc-list .ref {
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: #666;
  float: right;
}

#footer {
  clear: both;
  background: #00205b;
  color: #aab8d8;
  font-size: 11px;
  padding: 14px 20px;
  border-top: 4px solid #c8a951;
}
#footer a { color: #c8a951; }
#footer .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

.quote {
  border-left: 3px solid #c8a951;
  padding: 8px 14px;
  margin: 14px 0;
  background: #f9f9f9;
  font-style: italic;
  color: #333;
}

.clearfix { clear: both; }
@media (max-width: 940px) {
  #wrapper { width: 100%; }
  #content { flex-direction: column; }
  #sidebar { width: 100%; border-right: none; border-bottom: 1px solid #ddd; }
}
