/* src/style.css */
html,
body,
#root {
  margin: 0;
  min-height: 100%;
}
body {
  background:
    linear-gradient(
      180deg,
      #e7f1ec 0%,
      #f4eee0 100%) fixed;
}
.file-card {
  background: transparent !important;
}
:root {
  --file-text: 16px;
  --file-small: 13px;
}
@media (min-width: 900px) {
  :root {
    --file-text: 17.5px;
    --file-small: 14px;
  }
}
.file-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 1px solid var(--ds-hairline);
}
.file-nav a {
  padding: 10px 0;
  color: var(--ds-ink-2);
  text-decoration: none;
}
.file-nav a[aria-current=page] {
  color: var(--ds-ink);
  box-shadow: inset 0 -1px 0 var(--ds-ink);
}
@media (max-width: 600px) {
  .file-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
.imp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 8px 0;
}
@media (min-width: 600px) {
  .imp-grid {
    grid-template-columns: 1fr 1fr;
  }
  .imp-span2 {
    grid-column: span 2;
  }
}
.imp-card {
  border: 1px solid var(--ds-hairline);
  border-radius: 12px;
  padding: 16px;
  margin: 10px 0;
  box-shadow: 0 1px 2px rgba(37, 31, 33, 0.04);
}
@media (prefers-reduced-motion: reduce) {
  .imp-check,
  .imp-check-box {
    transition: none;
  }
}
.imp-summary-list {
  font-size: var(--file-small);
  line-height: 1.8;
  background: var(--ds-page);
  border: 1px solid var(--ds-hairline);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 8px 0;
  list-style-position: inside;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.imp-summary-list li {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.imp-summary-list li::marker {
  color: #0f6b5c;
  font-weight: 700;
}
.imp-step {
  scroll-margin-top: 96px;
}
.imp-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0 6px;
}
@media (min-width: 700px) {
  .imp-nav {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}
.imp-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  min-height: 44px;
  text-decoration: none;
  border: 1px solid rgba(37, 31, 33, 0.06);
  box-shadow: 0 1px 2px rgba(37, 31, 33, 0.05);
}
.imp-tile:active {
  transform: scale(0.98);
}
.imp-tile-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.imp-tile-num {
  flex: none;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.7);
}
.imp-tile-title {
  font-family: var(--ds-font-display);
  font-size: 16.5px;
  font-weight: 600;
}
.imp-tile-desc {
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.85;
}
.imp-tile.c1 {
  background: #dff0ec;
  color: #0f6b5c;
}
.imp-tile.c2 {
  background: #e5edfa;
  color: #2f5aa8;
}
.imp-tile.c3 {
  background: #fbefd8;
  color: #8a5c0d;
}
.imp-tile.c4 {
  background: #fbe7e4;
  color: #b0442f;
}
.imp-tile.c5 {
  background: #efe7f7;
  color: #6b4fa8;
}
.imp-tile.c7 {
  background: #fdebd8;
  color: #8a4d0c;
}
.imp-tile.c8 {
  background: #e8eef0;
  color: #46606b;
}
.imp-step {
  border: 1px solid var(--ds-hairline);
  border-radius: 16px;
  margin: 14px 0;
  overflow: hidden;
  background: var(--ds-white, #fff);
  box-shadow: 0 1px 2px rgba(37, 31, 33, 0.04);
}
.imp-stephead {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  min-height: 60px;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: start;
  color: var(--ds-ink);
  background: var(--ds-success-wash);
}
.imp-step.is-open .imp-stephead {
  border-bottom: 1px solid var(--ds-hairline);
}
.imp-step.c1 .imp-stephead {
  background: #dff0ec;
}
.imp-step.c1 .imp-stepnum {
  color: #0f6b5c;
  border-color: #0f6b5c;
}
.imp-step.c1 .imp-stepchev {
  color: #0f6b5c;
}
.imp-step.c1 .imp-steptitle {
  color: #0f6b5c;
}
.imp-step.c2 .imp-stephead {
  background: #e5edfa;
}
.imp-step.c2 .imp-stepnum {
  color: #2f5aa8;
  border-color: #2f5aa8;
}
.imp-step.c2 .imp-stepchev {
  color: #2f5aa8;
}
.imp-step.c2 .imp-steptitle {
  color: #2f5aa8;
}
.imp-step.c3 .imp-stephead {
  background: #fbefd8;
}
.imp-step.c3 .imp-stepnum {
  color: #8a5c0d;
  border-color: #8a5c0d;
}
.imp-step.c3 .imp-stepchev {
  color: #8a5c0d;
}
.imp-step.c3 .imp-steptitle {
  color: #8a5c0d;
}
.imp-step.c7 .imp-stephead {
  background: #fdebd8;
}
.imp-step.c7 .imp-stepnum {
  color: #8a4d0c;
  border-color: #8a4d0c;
}
.imp-step.c7 .imp-stepchev {
  color: #8a4d0c;
}
.imp-step.c7 .imp-steptitle {
  color: #8a4d0c;
}
.imp-step.c8 .imp-stephead {
  background: #e8eef0;
}
.imp-step.c8 .imp-stepnum {
  color: #46606b;
  border-color: #46606b;
}
.imp-step.c8 .imp-stepchev {
  color: #46606b;
}
.imp-step.c8 .imp-steptitle {
  color: #46606b;
}
.imp-stepnum {
  flex: none;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ds-teal);
  border: 1px solid var(--ds-teal);
  border-radius: 999px;
  padding: 3px 10px;
  background: var(--ds-white, #fff);
}
.imp-steptitle {
  flex: 1;
  font-family: var(--ds-font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
}
.imp-stepchev {
  flex: none;
  font-size: 22px;
  font-weight: 700;
  color: var(--ds-teal);
  line-height: 1;
}
.imp-stepbody {
  padding: 12px 18px 18px;
}
@media (min-width: 900px) {
  .imp-steptitle {
    font-size: 23px;
  }
  .imp-stepbody {
    padding: 16px 26px 24px;
  }
}
.imp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
.imp-actions > * {
  min-width: 0;
}
.imp-wakereq {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 8px 0;
  max-width: 100%;
}
.imp-wakereq > * {
  max-width: 100%;
}
.imp-stepbody {
  min-width: 0;
}
.imp-checks {
  display: flex;
  flex-direction: column;
}
.imp-check {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: start;
  padding: 12px 0;
  min-height: 44px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--ds-hairline);
  cursor: pointer;
  font: inherit;
  color: var(--ds-ink);
  transition: color 180ms ease;
}
.imp-check:last-child {
  border-bottom: 0;
}
.imp-check[aria-checked=true] {
  color: var(--ds-ink-2);
}
.imp-check-box {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid var(--ds-hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ds-teal);
  font-weight: 600;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.imp-check[aria-checked=true] .imp-check-box {
  border-color: var(--ds-teal);
  background: var(--ds-teal);
  color: #fff;
}
.imp-total {
  border: 1px solid var(--ds-hairline);
  border-inline-start: 3px solid var(--ds-teal);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 10px 0;
  background: var(--ds-success-wash);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.imp-total-label {
  color: var(--ds-ink-2);
  font-size: 12px;
}
.imp-total-value {
  font-family: var(--ds-font-display);
  font-size: 30px;
  line-height: 1.2;
  color: var(--ds-teal);
  font-weight: 600;
}
.imp-total-sub {
  color: var(--ds-ink-2);
  font-size: 13px;
}
.imp-cardhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 0 8px;
}
.imp-cardtitle {
  font-weight: 600;
}
.imp-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.imp-pill.is-good {
  background: var(--ds-success-wash);
  color: var(--ds-teal);
}
.imp-pill.is-bad {
  background: var(--ds-danger-wash);
  color: var(--ds-red);
}
.imp-pill.is-mute {
  border: 1px solid var(--ds-hairline);
  color: var(--ds-ink-2);
}
.imp-containers {
  margin: 14px 0;
}
.imp-cont-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 10px 0 4px;
}
.imp-cont {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px;
  color: #fff;
}
.imp-cont-name {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.92;
}
.imp-cont-cap {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.imp-cont-note {
  font-size: 11.5px;
  line-height: 1.5;
  opacity: 0.88;
}
.imp-cont-a {
  background: #0f6b5c;
  border-radius: 18px 6px 18px 6px;
}
.imp-cont-b {
  background: #1d4e89;
  border-radius: 6px 18px 6px 18px;
}
.imp-cont-c {
  background: #b45309;
  border-radius: 24px 8px 24px 8px;
}
.imp-cont-d {
  background: #6d28a8;
  border-radius: 8px 24px 8px 24px;
}
.file-header {
  text-align: center;
}
.file-title {
  display: inline-block;
  background: #0f6b5c;
  color: #fff !important;
  padding: 10px 26px;
  border-radius: 16px;
  margin: 6px auto 10px;
  box-shadow: 0 2px 8px rgba(15, 82, 74, 0.25);
}
.imp-step.c5 .imp-stephead {
  background: #efe7f7;
}
.imp-step.c5 .imp-stepnum {
  color: #6b4fa8;
  border-color: #6b4fa8;
}
.imp-step.c5 .imp-stepchev {
  color: #6b4fa8;
}
.imp-step.c5 .imp-steptitle {
  color: #6b4fa8;
}
.imp-gcatblock {
  margin-top: 14px;
}
.imp-gcat {
  font-size: 12px;
  font-weight: 800;
  color: #6b4fa8;
  margin: 0 0 6px;
  padding-inline-start: 2px;
}
.imp-gitem {
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 14px;
  padding: 10px;
  background: #fff;
  margin-bottom: 8px;
}
.imp-gitem-ar {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}
.imp-gterm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.imp-gterm-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.imp-gterm-zh {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  text-align: right;
}
.imp-gterm-note {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.5;
}
.imp-gterm-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.imp-gempty {
  font-size: 13px;
  line-height: 1.8;
  color: #374151;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
}
.imp-ggo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f6b5c;
  color: #ffffff;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.imp-step.c4 .imp-stephead {
  background: #fbe7e4;
}
.imp-step.c4 .imp-stepnum {
  color: #b0442f;
  border-color: #b0442f;
}
.imp-step.c4 .imp-stepchev {
  color: #b0442f;
}
.imp-step.c4 .imp-steptitle {
  color: #b0442f;
}
.imp-step.c9 .imp-stephead {
  background: #e0f2f1;
}
.imp-step.c9 .imp-stepnum {
  color: #00796b;
  border-color: #00796b;
}
.imp-step.c9 .imp-stepchev {
  color: #00796b;
}
.imp-step.c9 .imp-steptitle {
  color: #00796b;
}
.imp-step.c10 .imp-stephead {
  background: #e4e7fb;
}
.imp-step.c10 .imp-stepnum {
  color: #3f51b5;
  border-color: #3f51b5;
}
.imp-step.c10 .imp-stepchev {
  color: #3f51b5;
}
.imp-step.c10 .imp-steptitle {
  color: #3f51b5;
}
.imp-step.c11 .imp-stephead {
  background: #e0f4fa;
}
.imp-step.c11 .imp-stepnum {
  color: #0e7490;
  border-color: #0e7490;
}
.imp-step.c11 .imp-stepchev {
  color: #0e7490;
}
.imp-step.c11 .imp-steptitle {
  color: #0e7490;
}
.imp-tile.c9 {
  background: #e0f2f1;
  color: #00796b;
}
.imp-tile.c10 {
  background: #e4e7fb;
  color: #3f51b5;
}
.imp-tile.c11 {
  background: #e0f4fa;
  color: #0e7490;
}
.imp-sim {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 12px auto 6px;
  border: 1px solid var(--ds-hairline);
  border-radius: 12px;
  background: #fbfdfc;
}
.imp-simrow {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: var(--file-small);
  line-height: 1.7;
  margin: 4px 0;
}
.imp-simdot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
  transform: translateY(1px);
}
.imp-hsrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.imp-hsname {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}
.imp-hscode {
  font-size: 15px;
  font-weight: 800;
  color: #3f51b5;
  background: #e4e7fb;
  border-radius: 8px;
  padding: 2px 10px;
  white-space: nowrap;
}
.imp-hslabel {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}
.imp-hsdesc {
  font-size: 12.5px;
  color: #1f2937;
  line-height: 1.6;
}
.imp-hsnote {
  font-size: 11.5px;
  color: #6b7280;
  line-height: 1.6;
  margin-top: 3px;
}
.imp-articles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
}
.imp-article {
  border: 1px solid var(--ds-hairline);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.imp-articlehead {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  min-height: 52px;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: start;
  color: var(--ds-ink);
  background: #fff;
}
.imp-article.is-open .imp-articlehead {
  border-bottom: 1px solid var(--ds-hairline);
  background: #e0f4fa;
}
.imp-articletitle {
  flex: 1;
  font-weight: 700;
  font-size: 15px;
  color: #0e7490;
}
.imp-article.is-open .imp-articletitle {
  color: #0e7490;
}
.imp-articlehead .imp-stepchev {
  color: #0e7490;
}
.imp-articlebody {
  padding: 10px 16px 14px;
}
.imp-articlebody p {
  margin: 8px 0;
  font-size: var(--file-small);
  line-height: 1.9;
}
.imp-pdfpage {
  width: 100%;
  border: 1px solid #d3ddd8;
  border-radius: 10px;
  background: #fff;
  margin-top: 10px;
  display: block;
}
.imp-hsdetails {
  margin-top: 2px;
}
.imp-hsdetails > summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: #3f51b5;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.imp-hsdetails > summary::before {
  content: "+";
  font-weight: 800;
}
.imp-hsdetails[open] > summary::before {
  content: "\2212";
}
.imp-hsdetails > summary::-webkit-details-marker {
  display: none;
}
.imp-hsdetails .imp-hsdesc {
  margin-top: 6px;
}
.imp-plitem {
  border: 1px solid #e3e9e6;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: #fbfdfc;
}
.imp-plitemhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #0f6b5c;
  margin-bottom: 6px;
}
.imp-pldel {
  border: none;
  background: none;
  color: #b3261e;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
:root {
  --ds-page: #f7f3ec;
  --ds-white: #ffffff;
  --ds-ink: #29211f;
  --ds-ink-soft: #6f655f;
  --ds-hairline: #e3dbd1;
  --ds-teal: #0f6b5c;
  --ds-red: #b0442f;
  --ds-danger-wash: #fbeae6;
  --ds-success-wash: #e6f2ec;
  --ds-font-display:
    "Tajawal",
    "Noto Sans Arabic",
    Tahoma,
    "Segoe UI",
    Arial,
    sans-serif;
  --file-small: 13px;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--ds-page);
  overflow-x: hidden;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--ds-font-display);
  color: var(--ds-ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
* {
  box-sizing: border-box;
}
.site-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}
.site-header {
  margin: 8px 0 4px;
  text-align: center;
}
.site-title {
  font-size: clamp(22px, 7vw, 30px);
  font-weight: 800;
  line-height: 1.45;
  margin: 4px 0 12px;
  padding: 18px 16px;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      #0f6b5c 0%,
      #12836f 100%);
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(15, 107, 92, 0.25);
  overflow-wrap: break-word;
  word-break: break-word;
}
.site-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ds-teal);
  background: var(--ds-success-wash);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 8px;
}
.site-intro {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ds-ink-soft);
  margin: 6px 0 0;
  text-align: start;
}
.site-figure {
  margin: 14px 0;
}
.site-figure img {
  width: 100%;
  border-radius: 14px;
  display: block;
}
.site-figure figcaption {
  font-size: 11px;
  color: var(--ds-ink-soft);
  margin-top: 6px;
}
.site-p {
  font-size: 14.5px;
  line-height: 1.9;
  margin: 10px 0;
}
.site-caption {
  font-size: var(--file-small);
  line-height: 1.8;
  color: var(--ds-ink-soft);
  margin: 6px 0;
}
.site-key {
  font-size: 17px;
  font-weight: 700;
  margin: 12px 0;
}
.site-facts {
  margin: 10px 0;
  padding: 12px 14px;
  background: var(--ds-white);
  border: 1px solid var(--ds-hairline);
  border-radius: 12px;
}
.site-factrow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}
.site-factrow + .site-factrow {
  border-top: 1px solid var(--ds-hairline);
}
.site-factrow dt {
  color: var(--ds-ink-soft);
  font-size: 13.5px;
}
.site-factrow dd {
  margin: 0;
  font-weight: 700;
  font-size: 14.5px;
  text-align: left;
}
.site-btn {
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 11px 16px;
  background: var(--ds-teal);
  color: #fff;
}
.site-btn.is-compact {
  padding: 8px 14px;
  font-size: 14px;
}
.site-btn-secondary {
  background: var(--ds-white);
  color: var(--ds-teal);
  border-color: var(--ds-teal);
}
.site-btn-ghost {
  background: none;
  color: var(--ds-teal);
  border-color: transparent;
}
.site-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.site-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 4px 0;
  min-width: 0;
}
.site-field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ds-ink-soft);
}
.site-field input {
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--ds-hairline);
  background: var(--ds-white);
  color: var(--ds-ink);
  width: 100%;
  min-width: 0;
}
.site-field input:focus {
  outline: 2px solid var(--ds-teal);
  outline-offset: -1px;
}
.site-choice {
  margin: 8px 0;
}
.site-choice-row {
  display: flex;
  gap: 6px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.site-choice-btn {
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--ds-hairline);
  background: var(--ds-white);
  color: var(--ds-ink-soft);
}
.site-choice-btn.is-on {
  background: var(--ds-teal);
  border-color: var(--ds-teal);
  color: #fff;
}
.site-closing {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--ds-hairline);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ds-ink-soft);
  text-align: center;
}
