/* UAE Translation Guide — ledger & seal design. Paper, ink, one red seal. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #f7f3ec; color: #22303c; font: 17px/1.65 Georgia, 'Times New Roman', serif; }
a { color: #9c3524; }
a:hover { color: #6e2417; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 9; }
.site-head { border-bottom: 3px double #22303c; background: #fbf8f1; }
.brandrow { max-width: 1060px; margin: 0 auto; padding: 22px 20px 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #22303c; }
.wordmark { font: 700 26px/1.1 Georgia, serif; letter-spacing: .2px; }
.tagline { margin: 0 0 0 auto; font: italic 15px Georgia, serif; color: #6b5d43; max-width: 340px; text-align: right; }
.mainnav { max-width: 1060px; margin: 0 auto; padding: 0 20px 12px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.mainnav a { font: 700 14px/1.4 'Segoe UI', system-ui, sans-serif; text-decoration: none; color: #22303c; border-bottom: 2px solid transparent; padding-bottom: 2px; }
.mainnav a:hover { border-bottom-color: #b3402e; color: #9c3524; }
main { max-width: 1060px; margin: 0 auto; padding: 26px 20px 40px; }
.crumbs { font: 13px 'Segoe UI', system-ui, sans-serif; color: #6b5d43; margin: 0 0 14px; }
.crumbs a { color: #6b5d43; }
h1 { font: 700 34px/1.2 Georgia, serif; margin: 0 0 8px; color: #1c2836; }
h2 { font: 700 24px/1.3 Georgia, serif; margin: 34px 0 10px; color: #1c2836; border-top: 1px solid #c9bfa9; padding-top: 16px; }
h3 { font: 700 19px/1.35 Georgia, serif; margin: 24px 0 8px; color: #33302a; }
p { margin: 0 0 14px; }
.lede { font-size: 19px; line-height: 1.6; color: #3d4a57; }
ul, ol { margin: 0 0 16px; padding-left: 24px; }
li { margin-bottom: 6px; }
table { border-collapse: collapse; width: 100%; margin: 0 0 18px; font: 15px/1.5 'Segoe UI', system-ui, sans-serif; background: #fff; }
th, td { border-bottom: 1px solid #d8cfba; text-align: left; padding: 9px 10px; vertical-align: top; }
th { background: #22303c; color: #f7f3ec; font-weight: 700; }
tr:nth-child(even) td { background: #faf6ee; }
figure { margin: 18px 0; }
figcaption { font: 13px 'Segoe UI', system-ui, sans-serif; color: #6b5d43; margin-top: 6px; }
.sealbox { border: 2px solid #b3402e; background: #fff; padding: 16px 18px; margin: 20px 0; position: relative; }
.sealbox::before { content: "NOTE"; position: absolute; top: -11px; left: 14px; background: #b3402e; color: #fff; font: 700 11px 'Segoe UI', sans-serif; letter-spacing: 1.5px; padding: 2px 8px; }
.sealbox p:last-child { margin-bottom: 0; }
.keybox { background: #22303c; color: #f2ede2; padding: 18px 20px; margin: 20px 0; }
.keybox h2, .keybox h3 { color: #f2ede2; border: none; padding: 0; margin-top: 0; }
.keybox a { color: #f0c96a; }
.verified { font: 13px 'Segoe UI', system-ui, sans-serif; color: #6b5d43; border-top: 1px solid #c9bfa9; padding-top: 10px; margin-top: 28px; }
.verified a { color: #6b5d43; }
.sources { font: 13px 'Segoe UI', system-ui, sans-serif; color: #5a5344; }
.sources li { margin-bottom: 4px; }
.toc { background: #fff; border: 1px solid #d8cfba; padding: 14px 18px; margin: 18px 0; font-family: 'Segoe UI', system-ui, sans-serif; font-size: 15px; }
.toc b { display: block; margin-bottom: 6px; font-family: Georgia, serif; font-size: 17px; }
.toc a { display: block; padding: 2px 0; }
.twocol { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.cardlist { list-style: none; padding: 0; margin: 0 0 18px; }
.cardlist li { border: 1px solid #d8cfba; background: #fff; padding: 14px 16px; margin-bottom: 12px; }
.cardlist a { font: 700 18px Georgia, serif; text-decoration: none; color: #1c2836; }
.cardlist p { margin: 6px 0 0; font-size: 15px; }
label { display: block; font: 700 14px 'Segoe UI', system-ui, sans-serif; margin: 14px 0 4px; }
input[type=number], input[type=text], select { width: 100%; max-width: 420px; padding: 9px 10px; font: 16px 'Segoe UI', system-ui, sans-serif; border: 1px solid #8a8271; background: #fff; border-radius: 0; }
button { background: #b3402e; color: #fff; border: none; padding: 11px 22px; font: 700 16px 'Segoe UI', system-ui, sans-serif; cursor: pointer; margin-top: 16px; }
button:hover { background: #8f2f20; }
.result { background: #fff; border: 2px solid #22303c; padding: 16px 18px; margin-top: 18px; display: none; }
.result.show { display: block; }
.error { color: #9c3524; font: 700 14px 'Segoe UI', system-ui, sans-serif; margin-top: 8px; }
.checkrow { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #d8cfba; font-family: 'Segoe UI', system-ui, sans-serif; font-size: 15px; }
.checkrow input { margin-top: 4px; width: 18px; height: 18px; }
.progress { font: 700 15px 'Segoe UI', system-ui, sans-serif; margin-top: 14px; }
.site-foot { border-top: 3px double #22303c; background: #efe8d8; padding: 26px 20px 34px; }
.site-foot p, .site-foot nav { max-width: 1060px; margin: 0 auto 12px; }
.foot-about { font-size: 15px; }
.footnav { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 14px 'Segoe UI', system-ui, sans-serif; }
.foot-meta { font: 13px 'Segoe UI', system-ui, sans-serif; color: #6b5d43; }
@media (max-width: 760px) {
  h1 { font-size: 27px; }
  .twocol { grid-template-columns: 1fr; }
  .tagline { text-align: left; margin: 0; }
  body { font-size: 16px; }
  table { font-size: 14px; }
}
@media print {
  .mainnav, .site-foot, .skip { display: none; }
  body { background: #fff; }
}
