:root {
  --bg: #f3f7f9;
  --paper: #ffffff;
  --ink: #1d344e;
  --muted: #657386;
  --line: #d8e3ea;
  --soft: #edf5f8;
  --accent: #c5874c;
  --accent-strong: #9b5b2f;
  --blue: #1785c7;
  --navy: #1d344e;
  --success: #0f766e;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at top left, rgba(23, 133, 199, .14), transparent 34rem),
    linear-gradient(180deg, #f8fbfc, var(--bg));
  color: var(--ink);
  font-family: "Tajawal", "Segoe UI", sans-serif;
  line-height: 1.55;
}

body { padding: 32px; }

.doc-shell {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.doc-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 55px rgba(29, 52, 78, .07);
}

.doc-cover {
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(135deg, rgba(29, 52, 78, .98), rgba(23, 133, 199, .82)),
    var(--navy);
  color: #fff;
  border: none;
  min-height: 390px;
}

.doc-cover::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

.brand-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  z-index: 1;
  margin-bottom: 34px;
}

.akkad-logo {
  display: block;
  width: 180px;
  max-height: 86px;
  object-fit: contain;
}

.sm-badge {
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  padding: 9px 14px;
  color: rgba(255, 255, 255, .86);
  font-size: .86rem;
  letter-spacing: .02em;
}

.doc-cover h1 {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 0;
  font-size: clamp(2.25rem, 4.25vw, 4.35rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -.045em;
  white-space: nowrap;
}

.cover-lead {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 1.08rem;
  white-space: nowrap;
}

.doc-card h2,
.doc-card h3 {
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.doc-card h2 { font-size: 1.85rem; }

.kicker {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  margin-bottom: 12px;
}

.doc-cover .kicker {
  border-color: rgba(255, 255, 255, .24);
  color: #f4d7b1;
  margin: 0;
}

.confidential-note {
  border: 1px solid rgba(197, 135, 76, .38);
  border-left: 5px solid var(--accent);
  border-radius: 16px;
  padding: 15px 17px;
  background: #fffaf4;
  color: var(--ink);
}

.cover-confidential {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  color: rgba(255, 255, 255, .86);
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
}

.meta-grid,
.link-grid,
.two-col,
.readiness-grid {
  display: grid;
  gap: 16px;
}

.meta-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

.link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.readiness-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.meta-item,
.link-item,
.readiness-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fbfdfe;
  text-decoration: none;
  display: block;
}

.link-item:hover {
  border-color: var(--accent);
  background: #fff8f0;
}

.meta-item span,
.link-item span,
.readiness-item span {
  display: block;
  color: var(--muted);
  font-size: .84rem;
  margin-bottom: 6px;
}

.readiness-item strong {
  color: var(--success);
}

.empty-section {
  margin-top: 18px;
  border: 1px dashed rgba(197, 135, 76, .58);
  border-radius: 18px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(197, 135, 76, .09), rgba(23, 133, 199, .05)),
    #fffdf9;
}

.empty-section strong {
  display: block;
  color: var(--accent-strong);
  margin-bottom: 6px;
}

.empty-section p {
  margin: 0;
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.pill {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  text-decoration: none;
  font-size: .86rem;
  background: #fff;
}

.pill.primary {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: #fffaf4;
  font-weight: 700;
}

a { color: inherit; }

.muted,
.print-note {
  color: var(--muted);
}

.print-note {
  font-size: .9rem;
  margin-bottom: 0;
}

.section-intro {
  max-width: 850px;
  color: var(--muted);
}

.disclosure-box {
  margin: 20px 0 24px;
  padding: 18px 20px;
  border: 1px solid rgba(197, 135, 76, .36);
  border-left: 5px solid var(--accent);
  border-radius: 18px;
  background: #fffaf4;
  color: var(--ink);
}

.disclosure-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1rem;
}

.disclosure-box p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.68;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  overflow: hidden;
  border-radius: 14px;
}

th,
td {
  border: 1px solid var(--line);
  padding: 11px 12px;
  vertical-align: top;
  text-align: left;
}

th {
  background: var(--soft);
  font-weight: 700;
}

.table-scroll { overflow-x: auto; }

@media (max-width: 860px) {
  body { padding: 16px; }
  .brand-strip { align-items: flex-start; flex-direction: column; }
  .doc-cover h1,
  .cover-lead { white-space: normal; }
  .meta-grid,
  .link-grid,
  .readiness-grid { grid-template-columns: 1fr; }
  .doc-card { padding: 20px; border-radius: 18px; }
}

@media print {
  body { padding: 0; background: #fff; }
  .doc-shell { max-width: none; }
  .doc-card,
  .doc-cover {
    border: none;
    border-radius: 0;
    box-shadow: none;
    break-inside: avoid;
  }
  .actions { display: none; }
}
