/* ============================================================
   Qatar Visa Status Guide — shared stylesheet
   Hand-written, no frameworks. Mobile-first responsive.
   ============================================================ */

:root {
  --maroon: #7a1f3d;          /* Qatar maroon */
  --maroon-dark: #5c1530;
  --navy: #1c2b3a;
  --ink: #2b3644;
  --muted: #5d6b7d;
  --gold: #c9a227;
  --bg: #f7f5f2;
  --card: #ffffff;
  --line: #e5ded4;
  --green: #1e7a4c;
  --amber: #9a6200;
  --red: #b3261e;
  --radius: 10px;
  --maxw: 1060px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
}
img { max-width: 100%; height: auto; }
a { color: var(--maroon); }
a:hover { color: var(--maroon-dark); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
main .wrap { padding-top: 28px; padding-bottom: 40px; }
article.guide { background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 34px 30px; }
@media (max-width: 640px) { article.guide { padding: 22px 18px; } }

/* ---------- header / nav ---------- */
.site-header { background: var(--maroon); color: #fff; position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px; }
.brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem;
  letter-spacing: .2px; display: flex; align-items: center; gap: 10px; }
.brand:hover { color: #fff; }
.brand .mark { background: var(--gold); color: var(--maroon-dark); font-size: .8rem;
  font-weight: 800; border-radius: 6px; padding: 4px 8px; }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; padding: 8px; }
.nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
  display: block; background: #fff; height: 2px; width: 24px; border-radius: 2px; position: relative; }
.nav-toggle-label span::before, .nav-toggle-label span::after {
  content: ""; position: absolute; left: 0; }
.nav-toggle-label span::before { top: -7px; }
.nav-toggle-label span::after { top: 7px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 6px;
  font-size: .95rem; font-weight: 600; }
.site-nav a:hover, .site-nav a.active { background: rgba(255,255,255,.16); color: #fff; }

@media (max-width: 820px) {
  .nav-toggle-label { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--maroon-dark);
    display: none; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; padding: 10px 16px 16px; }
  .site-nav a { display: block; padding: 10px 8px; }
}

/* ---------- hero ---------- */
.hero { background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 70%);
  color: #fff; padding: 52px 0 46px; }
.hero h1 { margin: 0 0 10px; font-size: 2.1rem; line-height: 1.25; }
.hero p.lead { margin: 0; font-size: 1.1rem; color: #f3e4ea; max-width: 640px; }
.hero .updated { margin-top: 14px; font-size: .85rem; color: #e8c9d4; }
@media (max-width: 640px) { .hero h1 { font-size: 1.6rem; } }

/* ---------- quick answer box ---------- */
.quick-answer { background: var(--card); border: 1px solid var(--line);
  border-left: 5px solid var(--gold); border-radius: var(--radius);
  padding: 24px 26px; margin: 26px 0; }
.quick-answer h2 { margin: 0 0 12px; font-size: 1.25rem; }
.quick-answer ol { margin: 0; padding-left: 22px; }
.quick-answer li { margin-bottom: 8px; }
.quick-answer .go { margin-top: 14px; }

/* ---------- buttons ---------- */
.btn { display: inline-block; background: var(--maroon); color: #fff !important;
  text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 8px;
  border: none; cursor: pointer; font-size: 1rem; }
.btn:hover { background: var(--maroon-dark); color: #fff !important; }
.btn.gold { background: var(--gold); color: var(--maroon-dark) !important; }
.btn.gold:hover { background: #b8931f; color: var(--maroon-dark) !important; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* ---------- guide cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px; margin: 22px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card h3 a { text-decoration: none; color: var(--navy); }
.card h3 a:hover { color: var(--maroon); }
.card p { margin: 0 0 12px; color: var(--muted); font-size: .96rem; flex: 1; }
.card .more { font-weight: 700; font-size: .95rem; text-decoration: none; }

/* ---------- callouts ---------- */
.callout { border-radius: var(--radius); padding: 18px 20px; margin: 22px 0;
  border: 1px solid var(--line); background: #fffdf7; }
.callout h3, .callout h4 { margin-top: 0; }
.callout.official { border-left: 5px solid var(--green); background: #f3faf5; }
.callout.tip { border-left: 5px solid var(--gold); background: #fffdf4; }
.callout.warn { border-left: 5px solid var(--red); background: #fdf5f4; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 20px 0; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 58px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; }
.steps li::before { content: counter(step); position: absolute; left: 14px; top: 14px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--maroon); color: #fff;
  font-weight: 800; font-size: .95rem; display: flex; align-items: center; justify-content: center; }
.steps li strong { color: var(--navy); }
.steps code, p code, li code { background: #f1ece2; padding: 2px 7px; border-radius: 5px;
  font-size: .9em; color: var(--maroon-dark); }

/* ---------- tables ---------- */
table.spec { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .97rem;
  background: var(--card); border-radius: var(--radius); overflow: hidden; }
table.spec th, table.spec td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.spec th { background: var(--navy); color: #fff; }
table.spec tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }

/* ---------- status badges ---------- */
.badge { display: inline-block; font-size: .82rem; font-weight: 800; padding: 3px 10px;
  border-radius: 20px; letter-spacing: .3px; }
.badge.ok { background: #e2f3e9; color: var(--green); }
.badge.wait { background: #fdf3dd; color: var(--amber); }
.badge.bad { background: #fbe4e2; color: var(--red); }
.badge.info { background: #e4ecf5; color: var(--navy); }

/* ---------- toc ---------- */
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin: 22px 0; }
.toc h2 { margin: 0 0 8px; font-size: 1.05rem; }
.toc ul { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 4px; }

/* ---------- faq ---------- */
.faq details { background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 12px; padding: 0; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--navy);
  list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--maroon); font-weight: 800; margin-right: 10px; }
.faq details[open] summary::before { content: "–"; }
.faq details .a { padding: 0 20px 18px 42px; color: var(--ink); }
.faq details .a p:last-child { margin-bottom: 0; }

/* ---------- breadcrumb ---------- */
.crumb { font-size: .88rem; color: var(--muted); margin: 0 0 14px; }
.crumb a { text-decoration: none; }

/* ---------- meta rows ---------- */
.meta { font-size: .88rem; color: var(--muted); margin: 0 0 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); }

/* ---------- portals strip ---------- */
.portals { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px; margin: 20px 0; }
.portal { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 20px; }
.portal h3 { margin: 0 0 6px; font-size: 1.05rem; color: #fff; }
.portal p { margin: 0 0 12px; font-size: .92rem; color: #c8d2de; }
.portal a { color: var(--gold); font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #c8d2de; margin-top: 40px;
  padding: 34px 0 26px; font-size: .93rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin: 0 0 10px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px; margin-bottom: 22px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #e8c9d4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.disclaimer { border-top: 1px solid #3a4a5e; padding-top: 18px; font-size: .85rem;
  color: #93a1b3; }
.disclaimer strong { color: #c8d2de; }
.copy { margin-top: 14px; font-size: .82rem; color: #6e7d90; }

/* ---------- misc ---------- */
.section-title { margin: 34px 0 6px; font-size: 1.5rem; color: var(--navy); }
.section-sub { color: var(--muted); margin: 0 0 6px; }
hr.soft { border: none; border-top: 1px solid var(--line); margin: 28px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; }
.checklist li { padding: 8px 0 8px 32px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 4px; color: var(--green);
  font-weight: 800; }
.kicker { text-transform: uppercase; letter-spacing: 1.5px; font-size: .78rem;
  font-weight: 800; color: var(--gold); margin-bottom: 6px; }
