/* Premium public plate catalogue. Isolated from the admin and car bundles. */
@font-face {
  font-family: "Saudi Plate Arabic";
  src: url("../fonts/ibm-plex-sans-arabic/ibm-plex-arabic-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

@font-face {
  font-family: "Saudi Plate Latin";
  src: url("../fonts/ibm-plex-sans-arabic/ibm-plex-latin-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

@font-face {
  font-family: "Saudi Plate Digits";
  src: url("../fonts/saudi-plate-digits/noto-kufi-arabic-900-digits.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  /* A fixed heavy cut gives Arabic ٢ a clear angular shape distinct from ٣;
     Canvas and DOM request the same face for consistent story artwork. */
  font-stretch: normal;
  font-display: swap;
  unicode-range: U+0660-0669;
}
:root {
  --plate-ink: #102127;
  --plate-muted: #66777a;
  --plate-line: #dce6e2;
  --plate-soft: #f6f8f7;
  --plate-paper: #fff;
  --plate-gold: #c7a977;
  --plate-brand: #102127;
  --plate-green: #0c7a6b;
  --plate-shadow: 0 1.4rem 4rem rgb(19 31 25 / 9%);
  --plate-width: 84rem;
  --plate-radius: 1.35rem;
  --plate-ease: cubic-bezier(.22, 1, .36, 1);
}

.plates-brand-mark {
  position: relative;
  width: 2.55rem;
  height: 2.55rem;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--plate-gold) 52%, #fff);
  border-radius: .78rem;
  background: linear-gradient(145deg, var(--plate-brand), #26302a);
  box-shadow: inset 0 1px rgb(255 255 255 / 15%);
}

.plates-brand-mark::before,
.plates-brand-mark::after,
.plates-brand-mark i,
.plates-brand-mark b {
  position: absolute;
  content: "";
  transform: rotate(45deg);
}

.plates-brand-mark::before { width: 1.3rem; height: 1.3rem; border: 1px solid var(--plate-gold); }
.plates-brand-mark::after { width: .56rem; height: .56rem; background: var(--plate-gold); }
.plates-brand-mark i { width: 1.75rem; height: 1px; background: rgb(255 255 255 / 55%); }
.plates-brand-mark b { width: 1px; height: 1.75rem; background: rgb(255 255 255 / 32%); }
.plates-brand-mark.is-large { width: 7rem; height: 7rem; border-radius: 1.7rem; opacity: .82; }
.plates-brand-mark.is-large::before { width: 3.4rem; height: 3.4rem; border-width: 2px; }
.plates-brand-mark.is-large::after { width: 1.35rem; height: 1.35rem; }
.plates-brand-mark.is-large i { width: 4.6rem; }
.plates-brand-mark.is-large b { height: 4.6rem; }
.plates-brand-mark.is-light { border-color: rgb(255 255 255 / 25%); background: rgb(255 255 255 / 9%); }

.plates-header-nav { display: flex; align-items: center; gap: .32rem; }
.plates-header-nav a {
  min-height: 2.65rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding-inline: .7rem;
  border: 1px solid var(--plate-line);
  border-radius: .75rem;
  background: #fff;
  color: #3f4944;
  font-size: .7rem;
  font-weight: 700;
}
.plates-header-nav a:last-child { display: none; }
.plates-header-nav svg { width: 1rem; height: 1rem; fill: currentColor; }

.plates-index-page,
.plate-detail-page {
  width: 100%;
  display: grid;
  gap: 1.15rem;
  padding: .8rem max(.75rem, env(safe-area-inset-right)) 2rem max(.75rem, env(safe-area-inset-left));
  background: var(--plate-soft);
  color: var(--plate-ink);
  font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
}

.plates-index-page > *,
.plate-detail-page > * { width: min(100%, var(--plate-width)); min-width: 0; margin-inline: auto; }

.plates-hero {
  position: relative;
  min-height: 21rem;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(1.25rem, 6vw, 3.5rem);
  border-radius: 1.55rem;
  background:
    radial-gradient(circle at 12% 3%, color-mix(in srgb, var(--plate-gold) 38%, transparent), transparent 16rem),
    linear-gradient(145deg, #18343a, #102127 68%);
  box-shadow: 0 1.5rem 4.5rem rgb(9 17 13 / 18%);
  color: #fff;
  isolation: isolate;
}

.plates-hero::before {
  position: absolute;
  width: 21rem;
  height: 21rem;
  inset: auto -9rem -10rem auto;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgb(255 255 255 / 2%), 0 0 0 8rem rgb(255 255 255 / 1%);
  content: "";
  z-index: -1;
}

.plates-hero-copy { position: relative; z-index: 1; max-width: 47rem; }
.plates-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  color: color-mix(in srgb, var(--plate-gold) 76%, #fff);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .03em;
}
.plates-eyebrow i { width: .42rem; height: .42rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 .24rem rgb(205 164 91 / 12%); }
.plates-eyebrow.is-dark { color: color-mix(in srgb, var(--plate-gold) 75%, #674a1a); }
.plates-hero h1 { margin: .7rem 0 0; color: #fff; font-size: clamp(2.45rem, 12.5vw, 5.5rem); font-weight: 800; line-height: 1.04; letter-spacing: -.045em; }
.plates-hero h1 em { color: var(--plate-gold); font-style: normal; }
.plates-hero-copy > p { max-width: 38rem; margin: 1rem 0 0; color: rgb(255 255 255 / 63%); font-size: .82rem; line-height: 1.9; }
.plates-hero-art { position: absolute; inset: 1.5rem auto auto 1.5rem; opacity: .45; }
.plates-hero-orbit { position: absolute; width: 10rem; height: 10rem; inset: -1.5rem -1.5rem auto auto; border: 1px solid rgb(255 255 255 / 16%); border-radius: 50%; }

.plates-catalog-shell,
.plate-info-card,
.plate-notes-card,
.plate-story-card {
  padding: 1rem;
  border: 1px solid var(--plate-line);
  border-radius: var(--plate-radius);
  background: var(--plate-paper);
  box-shadow: 0 .8rem 2.8rem rgb(20 31 26 / 4%);
}

.plates-section-heading { display: flex; align-items: end; justify-content: space-between; gap: .8rem; }
.plates-section-heading h2 { margin: .22rem 0 0; color: var(--plate-ink); font-size: clamp(1.45rem, 7vw, 2.25rem); line-height: 1.25; }
.plates-section-heading > p { display: none; margin: 0; color: var(--plate-muted); font-size: .74rem; }
.plates-section-heading > a { color: var(--plate-brand); font-size: .74rem; font-weight: 800; text-decoration: underline; text-underline-offset: .22rem; }

.plates-filter-form { display: grid; gap: .65rem; margin-block-start: 1.1rem; padding: .7rem; border: 1px solid var(--plate-line); border-radius: 1rem; background: var(--plate-soft); }
.plates-search-field { min-height: 3.25rem; display: flex; align-items: center; gap: .55rem; padding-inline: .8rem; border: 1px solid #d9dfdb; border-radius: .8rem; background: #fff; }
.plates-search-field svg { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; fill: #7a837e; }
.plates-search-field input { width: 100%; min-width: 0; height: 2.9rem; border: 0; outline: 0; background: transparent; font: inherit; font-size: .78rem; }
.plates-filter-field { min-width: 0; display: grid; gap: .28rem; }
.plates-filter-field > span { color: #6c7570; font-size: .64rem; font-weight: 700; }
.plates-filter-field select { width: 100%; min-height: 3.1rem; padding: .5rem .75rem; border: 1px solid #d9dfdb; border-radius: .8rem; outline: 0; background: #fff; font: inherit; font-size: .74rem; }
.plates-filter-submit,
.plates-filter-reset {
  min-height: 3.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .8rem;
  font: 800 .74rem/1.2 "Tajawal", sans-serif;
}
.plates-filter-submit { border: 0; background: var(--plate-brand); color: #fff; box-shadow: 0 .6rem 1.4rem rgb(16 22 19 / 14%); }
.plates-filter-reset { color: #6a736e; text-decoration: underline; text-underline-offset: .2rem; }

.plates-grid { display: grid; gap: .8rem; margin-block-start: 1rem; }
.featured-plate-track { position: relative; z-index: 1; display: grid; grid-auto-columns: min(88%, 24rem); grid-auto-flow: column; gap: .75rem; overflow-x: auto; padding: .2rem .1rem .65rem; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: none; }
.featured-plate-track::-webkit-scrollbar { display: none; }
.featured-plate-track .plate-card { scroll-snap-align: start; color: var(--plate-ink); }
.featured-plates.has-inventory .featured-plates-copy { align-self: center; }
.plate-card { min-width: 0; overflow: hidden; border: 1px solid var(--plate-line); border-radius: 1.15rem; background: #fff; box-shadow: 0 .75rem 2rem rgb(20 31 26 / 5%); }
.plate-card-link { min-height: 100%; display: grid; grid-template-rows: auto auto 1fr; padding: .8rem; color: inherit; text-decoration: none; }
.plate-card-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-block-end: .72rem; }
.plate-type-pill,
.plate-status-pill { min-height: 1.8rem; display: inline-flex; align-items: center; gap: .35rem; padding-inline: .58rem; border-radius: 999px; font-size: .61rem; font-weight: 700; line-height: 1.25; }
.plate-type-pill { overflow: hidden; border: 1px solid #e1e5e2; background: #f5f7f5; color: #5e6862; text-overflow: ellipsis; white-space: nowrap; }
.plate-status-pill { background: #e4f4f0; color: var(--plate-green); }
.plate-status-pill i { width: .38rem; height: .38rem; flex: 0 0 auto; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 .2rem rgb(20 109 81 / 10%); }
.plate-card--reserved .plate-status-pill { background: #fff4dc; color: #8a641c; }
.plate-card--sold .plate-status-pill { background: #f1f2f1; color: #6c736f; }
.plate-card--sold .plate-face { filter: grayscale(.72); opacity: .72; }

/* Approved plate artwork + dynamic values. The plate uses its own local font,
   intentionally independent from the site's Tajawal typography. */
.saudi-plate-template,
.plate-face.saudi-plate-template,
.plate-admin-mockup.saudi-plate-template {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  width: 100%;
  min-height: 0;
  aspect-ratio: 5 / 1;
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: clamp(.34rem, 1.2cqw, .75rem);
  background: #f7f7f5;
  box-shadow: 0 .8rem 2.15rem rgb(16 20 18 / 18%);
  color: #050505;
  direction: ltr;
}

.saudi-plate-template-image {
  position: absolute;
  z-index: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  display: block;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.saudi-plate-value {
  position: absolute;
  z-index: 2;
  top: 8%;
  bottom: 8%;
  min-width: 0;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  overflow: hidden;
  color: #050505;
  line-height: .86;
  text-align: center;
  text-shadow: 0 .04em 0 rgb(255 255 255 / 65%);
  white-space: nowrap;
}

.saudi-plate-value--numbers { left: 3.4%; width: 36.5%; }
.saudi-plate-value--letters { left: 58.2%; width: 31.5%; }
.saudi-plate-template--transport .saudi-plate-value--numbers { left: 2.6%; width: 35.7%; }
.saudi-plate-template--transport .saudi-plate-value--letters { left: 56.2%; width: 41.2%; }

.saudi-plate-value-ar,
.saudi-plate-value-en {
  position: static;
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  margin: 0;
  padding: 0;
  color: inherit;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  font-synthesis: none;
  font-weight: 900;
  line-height: .86;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}

.saudi-plate-value-ar {
  font-family: "Saudi Plate Arabic", Tahoma, sans-serif;
  font-size: clamp(.74rem, 6.6cqw, 4.8rem);
  letter-spacing: .09em;
  transform: scaleX(.9);
  transform-origin: center;
}

.saudi-plate-value-en {
  font-family: "Saudi Plate Latin", "Arial Narrow", sans-serif;
  font-size: clamp(.69rem, 5.85cqw, 4.3rem);
  letter-spacing: .12em;
  transform: scaleX(.88);
  transform-origin: center;
}

.saudi-plate-value--numbers .saudi-plate-value-ar,
.saudi-plate-value--numbers .saudi-plate-value-en {
  direction: ltr;
  unicode-bidi: isolate-override;
  /* The markup separates digits with spaces. Keep the visible gap close to
     the .14em tracking used when the same plate is drawn on the story canvas. */
  letter-spacing: 0;
  word-spacing: -.11em;
}
.saudi-plate-value--numbers .saudi-plate-value-ar {
  font-family: "Saudi Plate Digits", "Saudi Plate Arabic", Tahoma, sans-serif;
  transform: scaleX(.96);
}
.saudi-plate-template--transport .saudi-plate-value { top: 5%; bottom: 5%; }
.saudi-plate-template--transport .saudi-plate-value-ar { font-size: clamp(.74rem, 6.25cqw, 4.55rem); }
.saudi-plate-template--transport .saudi-plate-value-en { font-size: clamp(.68rem, 5.65cqw, 4.1rem); }
.plate-face--compact { max-width: 35rem; margin-inline: auto; }

.plate-card-foot { min-width: 0; display: flex; align-items: end; justify-content: space-between; gap: .65rem; margin-block-start: .8rem; padding-block-start: .72rem; border-block-start: 1px solid #edf0ee; }
.plate-card-identity,
.plate-card-price { min-width: 0; display: grid; gap: .08rem; }
.plate-card-identity small,
.plate-card-price small { color: #858d89; font-size: .58rem; font-weight: 600; }
.plate-card-identity strong { overflow: hidden; color: #303a35; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.plate-card-price { justify-items: end; text-align: end; }
.plate-card-price strong { color: var(--plate-green); font-size: .93rem; line-height: 1.3; white-space: nowrap; }
.plate-card-price em { color: #7c8580; font-size: .57rem; font-style: normal; font-weight: 700; white-space: nowrap; }
.plate-card-cta { display: inline-flex; align-items: center; gap: .35rem; color: #766037; font-size: .65rem; font-weight: 800; }
.plate-card-cta svg { width: .95rem; height: .95rem; fill: currentColor; }
.plate-card-sold { display: inline-flex; align-items: center; min-height: 1.9rem; padding-inline: .7rem; border-radius: 999px; background: #232826; color: #fff; font-size: .68rem; font-weight: 800; }

.plates-empty { display: grid; justify-items: center; margin-block-start: 1rem; padding: 3.4rem 1rem; border: 1px dashed #cbd2cd; border-radius: 1.1rem; background: #fbfcfb; text-align: center; }
.plates-empty h3 { margin: .9rem 0 0; font-size: 1.1rem; }
.plates-empty p { max-width: 30rem; margin: .35rem 0 0; color: var(--plate-muted); font-size: .76rem; line-height: 1.8; }
.plates-empty > a { margin-block-start: .9rem; color: var(--plate-brand); font-size: .72rem; font-weight: 800; text-decoration: underline; text-underline-offset: .2rem; }

.plates-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; margin-block-start: 1.1rem; }
.plates-pagination > div { display: flex; justify-content: center; gap: .28rem; }
.plates-pagination a { min-width: 2.3rem; min-height: 2.3rem; display: inline-grid; place-items: center; padding-inline: .55rem; border: 1px solid var(--plate-line); border-radius: .65rem; background: #fff; color: #59635e; font-size: .68rem; font-weight: 800; }
.plates-pagination > a:first-child { justify-self: start; }
.plates-pagination > a:last-child { justify-self: end; }
.plates-pagination a.is-current { border-color: var(--plate-brand); background: var(--plate-brand); color: #fff; }

.plates-contact-banner { display: grid; justify-items: start; gap: .9rem; overflow: hidden; padding: 1.25rem; border-radius: 1.35rem; background: linear-gradient(135deg, #18343a, #102127); color: #fff; box-shadow: var(--plate-shadow); }
.plates-contact-banner > div > span { color: color-mix(in srgb, var(--plate-gold) 76%, #fff); font-size: .63rem; font-weight: 800; }
.plates-contact-banner h2 { margin: .2rem 0 0; color: #fff; font-size: 1.5rem; }
.plates-contact-banner p { margin: .32rem 0 0; color: rgb(255 255 255 / 57%); font-size: .74rem; }
.plates-contact-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.plates-contact-actions a { min-height: 2.9rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border-radius: .72rem; background: #fff; color: #171c19; font-size: .72rem; font-weight: 800; }
.plates-contact-actions a.is-whatsapp { background: var(--plate-green); color: #fff; }
.plates-contact-actions svg { width: 1rem; height: 1rem; fill: currentColor; }

.plates-footer { display: grid; justify-items: center; gap: .8rem; padding: 1.8rem 1rem calc(5.8rem + env(safe-area-inset-bottom)); border-block-start: 1px solid rgb(255 255 255 / 8%); background: #101411; color: #fff; font-family: "Tajawal", sans-serif; text-align: center; }
.plates-footer > div strong { font-size: .9rem; }
.plates-footer > div p { max-width: 35rem; margin: .25rem 0 0; color: rgb(255 255 255 / 52%); font-size: .68rem; }
.plates-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.plates-footer nav a { min-height: 2.25rem; display: inline-flex; align-items: center; padding-inline: .7rem; border: 1px solid rgb(255 255 255 / 10%); border-radius: 999px; color: rgb(255 255 255 / 72%); font-size: .65rem; font-weight: 700; }
.plates-footer > small { color: rgb(255 255 255 / 38%); font-size: .62rem; }

.plates-floating-contact { position: fixed; inset: auto .75rem max(.65rem, env(safe-area-inset-bottom)); z-index: 95; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; padding: .35rem; border: 1px solid rgb(255 255 255 / 72%); border-radius: 1rem; background: rgb(255 255 255 / 89%); box-shadow: 0 1rem 3rem rgb(15 25 20 / 20%); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.plates-floating-contact.is-single { grid-template-columns: 1fr; }
.plates-floating-contact a { min-height: 3rem; display: inline-flex; align-items: center; justify-content: center; gap: .42rem; border-radius: .72rem; background: var(--plate-brand); color: #fff; font-size: .72rem; font-weight: 800; text-decoration: none; }
.plates-floating-contact a.is-whatsapp { background: var(--plate-green); }
.plates-floating-contact svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }

/* Detail page */
.plate-detail-header { position: sticky; inset-block-start: 0; z-index: 90; padding-inline: max(.8rem, env(safe-area-inset-right)) max(.8rem, env(safe-area-inset-left)); border-block-end: 1px solid rgb(17 22 19 / 8%); background: rgb(255 255 255 / 93%); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }
.plate-detail-header .public-brand { min-width: 0; }
.plate-detail-header .public-brand > span:last-child { min-width: 0; display: grid; }
.plate-detail-header .public-brand strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plate-detail-header .public-brand small { color: #727b76; font-size: .6rem; }
.plate-detail-header .public-brand.has-image-logo img { width: min(8.3rem, 38vw); height: 3.2rem; object-fit: contain; object-position: right center; }
.plate-detail-header .public-header-actions { flex: 0 0 auto; }
.plate-detail-header .public-header-actions > a:first-child { display: none; }

.plate-detail-page { padding-block-start: .85rem; padding-block-end: 2rem; }
.plate-detail-hero { display: grid; gap: 1rem; overflow: hidden; padding: 1rem; border: 1px solid var(--plate-line); border-radius: 1.45rem; background: #fff; box-shadow: var(--plate-shadow); }
.plate-detail-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.plate-detail-badges { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-block-end: .9rem; }
.plate-detail-copy h1 { margin: .35rem 0 0; color: var(--plate-ink); font-size: clamp(2rem, 10vw, 4.1rem); line-height: 1.08; }
.plate-detail-copy h1 strong { color: color-mix(in srgb, var(--plate-gold) 74%, #6c4c18); font-weight: 900; }
.plate-detail-copy > p { max-width: 38rem; margin: .6rem 0 0; color: var(--plate-muted); font-size: .78rem; line-height: 1.85; }
.plate-detail-price { width: 100%; display: grid; gap: .05rem; margin-block-start: 1rem; padding: .85rem; border: 1px solid #e1e7e3; border-radius: .9rem; background: #f7f9f7; }
.plate-detail-price > span { color: #7a837e; font-size: .63rem; font-weight: 700; }
.plate-detail-price > strong { overflow-wrap: anywhere; color: var(--plate-green); font-size: clamp(1.4rem, 7vw, 2.15rem); line-height: 1.3; }
.plate-detail-price > small { color: #737c77; font-size: .68rem; font-weight: 700; }
.plate-share-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin-block-start: .65rem; }
.plate-share-actions button { min-height: 2.85rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid var(--plate-line); border-radius: .75rem; background: #fff; color: #3d4742; font: 800 .7rem/1 "Tajawal", sans-serif; }
.plate-share-actions button:first-child { border-color: var(--plate-brand); background: var(--plate-brand); color: #fff; }
.plate-share-actions svg { width: 1rem; height: 1rem; fill: currentColor; }
.plate-detail-visual { min-width: 0; display: grid; align-items: center; padding: clamp(.6rem, 4vw, 2rem); border-radius: 1.1rem; background: radial-gradient(circle at 50% 15%, color-mix(in srgb, var(--plate-gold) 20%, transparent), transparent 55%), #151a17; }
.plate-face--hero { max-width: 44rem; justify-self: center; transform: rotate(-.45deg); }

.plate-sold-banner { display: grid; justify-items: center; gap: .55rem; padding: clamp(1.5rem, 7vw, 3.8rem); border: 1px solid var(--plate-line); border-radius: 1.4rem; background: #fff; box-shadow: var(--plate-shadow); text-align: center; }
.plate-sold-banner > span { width: 3.7rem; height: 3.7rem; display: grid; place-items: center; border-radius: 50%; background: #eff2ef; color: #657069; font-size: 1.45rem; }
.plate-sold-banner small { color: #858e89; font-size: .66rem; font-weight: 700; }
.plate-sold-banner h1 { margin: .22rem 0 0; font-size: clamp(1.8rem, 8vw, 3.2rem); }
.plate-sold-banner p { max-width: 32rem; margin: .4rem auto 0; color: var(--plate-muted); font-size: .78rem; }
.plate-sold-banner > a { min-height: 2.85rem; display: inline-flex; align-items: center; margin-block-start: .6rem; padding-inline: 1rem; border-radius: .75rem; background: var(--plate-brand); color: #fff; font-size: .72rem; font-weight: 800; text-decoration: none; }

.plate-detail-grid { display: grid; gap: 1rem; }
.plate-detail-main { min-width: 0; display: grid; gap: 1rem; }
.plate-info-card .plates-section-heading,
.plate-notes-card .plates-section-heading { margin-block-end: .8rem; }
.plate-spec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1rem 0 0; padding: 0; border-block-start: 1px solid #edf0ee; }
.plate-spec-list > div { min-width: 0; display: grid; gap: .18rem; padding: .8rem .2rem; border-block-end: 1px solid #edf0ee; }
.plate-spec-list > div:nth-child(odd) { padding-inline-end: .65rem; border-inline-end: 1px solid #edf0ee; }
.plate-spec-list > div:nth-child(even) { padding-inline-start: .65rem; }
.plate-spec-list dt { color: #858d89; font-size: .62rem; }
.plate-spec-list dd { margin: 0; overflow-wrap: anywhere; color: #313a35; font-size: .8rem; font-weight: 800; }
.plate-notes-card h2 { margin: .25rem 0 0; font-size: 1.35rem; }
.plate-notes-card p { margin: .65rem 0 0; color: #58625d; font-size: .78rem; line-height: 1.95; }

.plate-detail-aside { min-width: 0; display: grid; align-content: start; gap: .8rem; }
.plate-contact-card,
.plate-qr-card,
.plate-address-card { padding: 1rem; border: 1px solid var(--plate-line); border-radius: 1.15rem; background: #fff; box-shadow: 0 .7rem 2rem rgb(20 31 26 / 4%); }
.plate-contact-card { background: linear-gradient(145deg, #18343a, #102127); color: #fff; }
.plate-contact-card > span { color: color-mix(in srgb, var(--plate-gold) 75%, #fff); font-size: .63rem; font-weight: 800; }
.plate-contact-card h2 { margin: .2rem 0 0; color: #fff; font-size: 1.35rem; }
.plate-contact-card p { margin: .4rem 0 0; color: rgb(255 255 255 / 57%); font-size: .72rem; line-height: 1.8; }
.plate-contact-card > div { display: grid; gap: .45rem; margin-block-start: .8rem; }
.plate-contact-card a { min-height: 2.85rem; display: inline-flex; align-items: center; justify-content: center; gap: .42rem; border-radius: .72rem; background: #fff; color: #151a17; font-size: .7rem; font-weight: 800; text-decoration: none; }
.plate-contact-card a.is-whatsapp { background: var(--plate-green); color: #fff; }
.plate-contact-card svg { width: 1rem; height: 1rem; fill: currentColor; }
.plate-qr-card { display: grid; justify-items: center; text-align: center; }
.plate-qr-card h2 { margin: .18rem 0 0; font-size: 1.25rem; }
.plate-qr-card p { max-width: 24rem; margin: .28rem 0 0; color: var(--plate-muted); font-size: .7rem; }
.plate-qr-frame { width: 11rem; height: 11rem; display: grid; place-items: center; margin-block-start: .8rem; padding: .6rem; border: 1px solid #dce2de; border-radius: .9rem; background: #fff; box-shadow: 0 .55rem 1.6rem rgb(19 31 25 / 7%); }
.plate-qr-frame canvas,
.plate-qr-frame img,
.plate-qr-frame svg { width: 100% !important; height: 100% !important; image-rendering: pixelated; }
.plate-qr-card > small { max-width: 100%; margin-block-start: .5rem; overflow: hidden; color: #8a918d; font-size: .55rem; text-overflow: ellipsis; white-space: nowrap; }
.plate-address-card > span { color: #888f8b; font-size: .62rem; }
.plate-address-card > p { margin: .25rem 0 0; color: #353e39; font-size: .75rem; font-weight: 700; }

.plate-story-card { display: grid; gap: 1rem; overflow: hidden; }
.plate-story-copy { align-self: center; }
.plate-story-copy h2 { margin: .25rem 0 0; font-size: clamp(1.35rem, 6vw, 2rem); }
.plate-story-copy > p { margin: .45rem 0 0; color: var(--plate-muted); font-size: .74rem; line-height: 1.85; }
.plate-story-copy > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .42rem; margin-block-start: .8rem; }
.plate-story-copy button { min-height: 2.8rem; border: 1px solid var(--plate-brand); border-radius: .72rem; background: var(--plate-brand); color: #fff; font: 800 .68rem/1.35 "Tajawal", sans-serif; }
.plate-story-copy button:last-child { border-color: color-mix(in srgb, var(--plate-gold) 70%, #a37935); background: var(--plate-gold); color: #17130c; }
.plate-story-copy button:disabled { cursor: wait; opacity: .5; }
.plate-story-copy > small { display: block; min-height: 1.4em; margin-block-start: .45rem; color: #77807b; font-size: .61rem; }
.plate-story-preview { width: min(100%, 19rem); justify-self: center; overflow: hidden; border: .35rem solid #171b19; border-radius: 1.35rem; background: #111; box-shadow: 0 1.15rem 3rem rgb(14 20 16 / 20%); }
.plate-story-preview canvas { width: 100%; height: auto; display: block; aspect-ratio: 9 / 16; background: #121713; }

.plate-related { padding: 1rem; border: 1px solid var(--plate-line); border-radius: var(--plate-radius); background: #fff; }
.plate-related .plates-grid { margin-block-start: .85rem; }

/* Small live preview contract shared with the admin form. */
[data-plate-live-preview] [data-plate-preview-letters],
[data-plate-live-preview] [data-plate-preview-letters-en],
[data-plate-live-preview] [data-plate-preview-numbers],
[data-plate-live-preview] [data-plate-preview-numbers-en] { transition: opacity 140ms ease; }

.saudi-plate-template .plate-admin-sold-stamp {
  right: auto;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-7deg);
}

@media (hover: hover) {
  .plate-card { transition: transform 180ms var(--plate-ease), border-color 180ms ease, box-shadow 180ms ease; }
  .plate-card:hover { border-color: color-mix(in srgb, var(--plate-gold) 45%, var(--plate-line)); box-shadow: var(--plate-shadow); transform: translateY(-4px); }
  .plates-header-nav a:hover,
  .plate-share-actions button:hover { border-color: color-mix(in srgb, var(--plate-gold) 45%, var(--plate-line)); }
}

@media (min-width: 35rem) {
  .plates-index-page,
  .plate-detail-page { gap: 1.4rem; padding: 1rem 1rem 2.6rem; }
  .plates-hero { min-height: 25rem; }
  .plates-catalog-shell,
  .plate-info-card,
  .plate-notes-card,
  .plate-story-card { padding: 1.35rem; }
  .plates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plates-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
  .plates-search-field { grid-column: 1 / -1; }
  .plates-filter-submit { align-self: end; }
  .plates-filter-reset { min-height: 2rem; }
  .plates-contact-banner { grid-template-columns: auto minmax(0, 1fr); align-items: center; padding: 1.6rem; }
  .plates-contact-actions { grid-column: 1 / -1; }
  .plate-detail-hero { padding: 1.35rem; }
  .plate-story-card { grid-template-columns: minmax(0, 1fr) minmax(12rem, 17rem); align-items: center; }
}

@media (min-width: 52rem) {
  .plates-header-nav a:last-child { display: inline-flex; border-color: transparent; background: transparent; }
  .plates-hero { min-height: 28rem; grid-template-columns: minmax(0, 1fr) 14rem; align-items: center; padding-inline: 3.8rem; }
  .plates-hero-art { position: relative; inset: auto; display: grid; justify-items: center; opacity: 1; }
  .plates-hero-orbit { width: 13rem; height: 13rem; inset: 50% auto auto 50%; transform: translate(-50%, -50%); }
  .plates-catalog-shell { padding: 1.75rem; }
  .plates-section-heading > p { display: block; }
  .plates-filter-form { grid-template-columns: minmax(14rem, 2fr) repeat(3, minmax(9rem, 1fr)) auto; padding: .8rem; }
  .plates-search-field { grid-column: auto; align-self: end; }
  .plates-filter-reset { grid-column: 1 / -1; min-height: 1.7rem; justify-self: start; }
  .plates-contact-banner { grid-template-columns: auto minmax(0, 1fr) auto; padding: 1.8rem 2rem; }
  .plates-contact-actions { width: auto; grid-column: auto; }
  .plates-contact-actions a { min-width: 7rem; padding-inline: .8rem; }
  .featured-plates.has-inventory { grid-template-columns: minmax(15rem, .55fr) minmax(0, 1.45fr); }
  .featured-plate-track { grid-auto-columns: minmax(17rem, 46%); align-self: stretch; }
  .plates-footer { grid-template-columns: minmax(0, 1fr) auto auto; justify-items: start; align-items: center; padding: 2rem max(1rem, calc((100% - var(--plate-width)) / 2)); text-align: start; }
  .plates-footer > small { justify-self: end; }
  .plates-floating-contact { inset: auto auto 1.15rem 1.15rem; width: auto; grid-template-columns: repeat(2, 3.1rem); border-radius: 999px; }
  .plates-floating-contact a { width: 3.1rem; padding: 0; border-radius: 50%; }
  .plates-floating-contact a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .plate-detail-header .public-header-actions > a:first-child { display: inline-flex; }
  .plate-detail-hero { grid-template-columns: minmax(17rem, .75fr) minmax(24rem, 1.25fr); align-items: stretch; padding: 1.6rem; }
  .plate-detail-copy { justify-content: center; padding: 1rem; }
  .plate-detail-price { max-width: 25rem; }
  .plate-share-actions { max-width: 25rem; }
  .plate-detail-grid { grid-template-columns: minmax(0, 1fr) minmax(17rem, 21rem); align-items: start; }
  .plate-detail-aside { position: sticky; inset-block-start: 5.8rem; }
  .plate-story-card { grid-template-columns: minmax(0, 1fr) minmax(15rem, 18rem); padding: 1.7rem; }
  .plate-related { padding: 1.5rem; }
}

@media (min-width: 72rem) {
  .plates-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .plates-grid.is-related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plate-card-link { padding: .9rem; }
}

@media (max-width: 23rem) {
  .plates-index-page,
  .plate-detail-page { padding-inline: .55rem; }
  .plates-hero { min-height: 19rem; padding-inline: 1rem; }
  .plates-hero h1 { font-size: 2.15rem; }
  .plates-header-nav a { width: 2.6rem; padding: 0; justify-content: center; }
  .plates-header-nav a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .plate-card-foot { align-items: start; flex-direction: column; }
  .plate-card-price { justify-items: start; text-align: start; }
  .plate-detail-header .public-brand > span:last-child { display: none; }
  .plate-share-actions { grid-template-columns: 1fr; }
  .plate-story-copy > div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .plate-card,
  [data-plate-live-preview] * { transition-duration: .01ms !important; }
}

@media print {
  .plates-index-header,
  .plate-detail-header,
  .plates-filter-form,
  .plates-contact-banner,
  .plates-floating-contact,
  .plate-share-actions,
  .plate-contact-card,
  .plate-story-card,
  .plates-footer { display: none !important; }
  .plates-index-page,
  .plate-detail-page { display: block; padding: 0; background: #fff; }
  .plates-grid { grid-template-columns: repeat(2, 1fr); }
  .plate-detail-hero { box-shadow: none; }
}
