/* Basmat Ameel
   Plan: lavender paper, deep plate-purple for header, hero and actions, one gold accent.
   The number "plate" is the memorable element; everything else stays quiet.
   Fonts: Lalezar for headings and plate labels, Tajawal for everything else. */

:root {
  --ink: #1c1230;
  --ink-soft: #43375a;
  --muted: #6b6180;
  --paper: #f6f3fb;
  --card: #ffffff;
  --line: #ddd5ea;
  --green: #3d2b5c; /* main action colour (the plate purple) */
  --green-dark: #2a1c44;
  --deep: #231638;
  --wa: #0f7a41;
  --gold: #f2b84b;
  --gold-dark: #d99a22;
  --gold-soft: #fbe7a8;
  --danger: #b3261e;
  --danger-soft: #fbe9e7;
  --ok-soft: #efe8fa;
  --radius: 12px;
  --font: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  --display: "Lalezar", "Tajawal", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding-block: 0.5rem 3rem;
}

a {
  color: var(--green);
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--green-dark);
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2 {
  line-height: 1.25;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 400;
}
h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.3rem);
}
h2 {
  font-size: 1.45rem;
}
p {
  margin: 0 0 1rem;
}
small {
  color: var(--muted);
}

.wrap {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}
.narrow {
  max-width: 560px;
}
.prose {
  max-width: 640px;
}

.skip {
  position: absolute;
  inset-inline-start: 0.5rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 10;
}
.skip:focus {
  top: 0;
}

/* ---- Header ---- */

.top {
  background: var(--deep);
  color: #fff;
}
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding-block: 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1.1;
  color: #fff;
  text-decoration: none;
}
.brand:hover {
  color: #fff;
}
.brand-mark {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 11px;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.1rem;
}
.nav a:not(.btn),
.link-btn {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.nav a:not(.btn):hover,
.link-btn:hover {
  text-decoration: underline;
}
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  color: #fff;
}
form.inline {
  display: inline;
  margin: 0;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.55rem 1.2rem;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--green);
}
.btn-ghost:hover {
  background: var(--ok-soft);
  color: var(--green-dark);
}
.btn-danger {
  background: transparent;
  border-color: var(--danger);
  color: var(--danger);
}
.btn-danger:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.btn-wa {
  background: var(--wa);
  border-color: var(--wa);
  width: 100%;
  min-height: 52px;
  font-size: 1.1rem;
}
.btn-wa:hover {
  background: #0b6034;
  border-color: #0b6034;
}
.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--deep);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--deep);
}
.btn-small {
  min-height: 38px;
  padding: 0.3rem 0.9rem;
  font-size: 0.95rem;
}

/* ---- Hero and search ---- */

.search-bar {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr auto;
  gap: 0.6rem;
}
.search-bar input,
.search-bar select {
  min-width: 0;
  min-height: 58px;
  font-size: 1.15rem;
  border: 0;
  border-radius: var(--radius);
}
.search-bar input:first-child {
  font-weight: 900;
  font-size: 1.35rem;
}
.search-bar .btn {
  min-height: 58px;
  padding-inline: 1.8rem;
  font-size: 1.15rem;
}
@media (max-width: 640px) {
  .search-bar {
    grid-template-columns: 1fr 1fr;
  }
  .search-bar input:first-child,
  .search-bar .btn {
    grid-column: 1 / -1;
  }
}

/* The hero is a full-width purple band; faint fingerprint ridges sit in one corner. */
.hero-band {
  background:
    repeating-radial-gradient(ellipse 90% 140% at 8% 130%, transparent 0 14px, rgba(242, 184, 75, 0.09) 14px 17px),
    linear-gradient(180deg, var(--deep), var(--green));
  color: #fff;
  padding-block: 1.5rem 2.4rem;
  margin-block-end: 1.5rem;
}
.hero {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}
.hero h1 {
  margin-block-end: 0.4rem;
  text-wrap: balance;
}
.hero .lede {
  color: #e4daf5;
  margin-block-end: 1.4rem;
}
.lede {
  color: var(--ink-soft);
  font-size: 1.15rem;
}
.search label,
.field label {
  display: block;
  font-weight: 600;
  margin-block-end: 0.3rem;
}
.search-row {
  display: flex;
  gap: 0.6rem;
}
.search-row input {
  flex: 1;
  min-width: 0;
  font-size: 1.25rem;
  min-height: 56px;
  border-width: 2px;
  border-color: var(--ink);
}
.search-row .btn {
  min-height: 56px;
  padding-inline: 1.6rem;
  font-size: 1.1rem;
}

.more {
  margin-block-start: 0.75rem;
}
.more summary,
.report summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--green);
  padding-block: 0.35rem;
}
.more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem 1rem;
  margin-block: 0.75rem 1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block-start: 1rem;
}
.chip {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.chip[aria-current="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ---- Forms ---- */

input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid #9fb0aa;
  border-radius: var(--radius);
  padding: 0.6rem 0.8rem;
  min-height: 46px;
}
textarea {
  resize: vertical;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}
.field {
  margin-block-end: 1.1rem;
}
.hint {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.has-error input,
.has-error select,
.has-error textarea {
  border-color: var(--danger);
  background: var(--danger-soft);
}
.error-text {
  margin: 0.3rem 0 0;
  color: var(--danger);
  font-weight: 500;
  font-size: 0.95rem;
}
.form .btn {
  margin-block-start: 0.4rem;
}
.alt {
  margin-block-start: 1.25rem;
}

/* ---- Notices ---- */

.notice {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  margin-block-end: 1rem;
}
.notice.ok {
  background: var(--ok-soft);
  border-color: #b7dccb;
}
.notice.error {
  background: var(--danger-soft);
  border-color: #efb8b2;
  color: #7f1a14;
}

.safety {
  margin-block: 1.5rem;
  padding: 0.9rem 1.1rem;
  background: #fff8e1;
  border-inline-start: 5px solid var(--gold);
  border-radius: var(--radius);
}
.safety h2 {
  font-size: 1.05rem;
}
.safety p:last-child {
  margin-block-end: 0;
}

/* ---- Results grid and number plate ---- */

.results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: 0.9rem;
}
.results-head h2 {
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 1.9rem 1.25rem;
}

/* The number plate: network on top, big number, then city / price / age in one row. */
:root {
  --plate: #3d2b5c;
}
.plate-card {
  container-type: inline-size;
  position: relative;
}
.plate-card + .plate-card {
  margin: 0;
}
.plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.5rem 1rem 0.7rem;
  background: #fff;
  border: 4px solid var(--plate);
  border-radius: 24px;
  box-shadow: 0 6px 18px -10px rgba(42, 28, 68, 0.55);
  color: var(--plate);
  text-align: center;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
a.plate:hover {
  color: var(--plate);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--plate);
}
.p-net {
  font-family: "Lalezar", var(--font);
  font-size: clamp(1.3rem, 7.5cqw, 1.9rem);
  line-height: 1.15;
}
.p-num {
  display: block;
  margin: 0;
  font-family: "Tajawal", var(--font);
  font-weight: 900;
  font-size: clamp(1.7rem, 13.4cqw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  unicode-bidi: isolate;
}
.p-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 0.6rem;
  width: 100%;
  margin-block-start: 0.15rem;
  font-family: "Lalezar", var(--font);
  font-size: clamp(1rem, 5.3cqw, 1.4rem);
  line-height: 1.2;
}
.p-city {
  justify-self: start;
}
.p-age {
  justify-self: end;
}
.p-foot .price {
  justify-self: center;
  font-family: "Lalezar", var(--font);
  font-weight: 400;
  font-size: 1.2em;
  color: var(--plate);
}
.p-foot .price small {
  font-weight: 400;
  font-size: 1em;
  color: inherit;
}
.p-foot .price.ask {
  font-weight: 400;
  font-size: 1em;
  color: var(--plate);
}
.plate-big .p-num {
  font-size: clamp(2rem, 13.4cqw, 5.2rem);
}
.plate-big .p-net {
  font-size: clamp(1.5rem, 7.5cqw, 2.4rem);
}
.plate-big .p-foot {
  font-size: clamp(1.1rem, 5.3cqw, 1.8rem);
}
/* Advertiser name: a dark tab hanging under the plate. */
.adv {
  display: block;
  width: max-content;
  max-width: 80%;
  min-width: 46%;
  margin: -4px auto 0;
  padding: 0.28rem 1.2rem 0.34rem;
  background: var(--plate);
  color: #fff;
  border-radius: 0 0 16px 16px;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
}
.plate-big .adv {
  font-size: 1.25rem;
  padding-block: 0.4rem 0.5rem;
}
.pin-badge {
  position: absolute;
  z-index: 2;
  top: -11px;
  inset-inline-start: 18px;
  background: var(--gold);
  color: var(--deep);
  font-weight: 900;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.is-pinned .plate {
  border-color: var(--gold-dark);
  box-shadow: 0 6px 18px -8px rgba(217, 154, 34, 0.9);
}
.is-pinned .adv {
  background: var(--gold-dark);
  color: var(--deep);
}
.is-sold .plate {
  opacity: 0.45;
}
.is-sold .adv {
  opacity: 0.6;
}
.sold-stamp {
  position: absolute;
  z-index: 2;
  top: 38%;
  inset-inline: 0;
  margin-inline: auto;
  width: max-content;
  transform: rotate(-7deg);
  padding: 0.1rem 1.1rem;
  border: 4px solid var(--danger);
  border-radius: 12px;
  color: var(--danger);
  background: rgba(255, 255, 255, 0.85);
  font-family: var(--display);
  font-size: clamp(1.6rem, 9cqw, 2.8rem);
  line-height: 1.3;
  pointer-events: none;
}
.sold-tag {
  display: inline-block;
  padding: 0.15rem 0.8rem;
  border: 2px solid var(--danger);
  border-radius: 8px;
  color: var(--danger);
  font-family: var(--display);
  font-size: 1.15rem;
}
.plate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-block-start: 0.6rem;
}
.plate-actions form {
  margin: 0;
}
.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* My ads list uses the same digits style */
.digits {
  display: block;
  margin: 0;
  font-family: "Tajawal", var(--font);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: start;
  unicode-bidi: isolate;
}
.digits b {
  font-weight: inherit;
  margin-inline-end: 0.45em;
}
.digits b:last-child {
  margin-inline-end: 0;
}
.digits .hit {
  background: linear-gradient(transparent 64%, var(--gold) 64%, var(--gold) 92%, transparent 92%);
}

.price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}
.price small {
  font-weight: 500;
}
.price.ask {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-soft);
}

.empty {
  padding: 2rem 0;
  max-width: 480px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block-start: 1.5rem;
}

/* ---- Listing page ---- */

.listing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.listing > .notice,
.listing > .safety,
.listing > .report {
  grid-column: 1 / -1;
}
.listing-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.facts {
  margin: 0;
  border-block-start: 1px solid var(--line);
}
.facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.55rem;
  border-block-end: 1px solid var(--line);
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
  font-weight: 500;
}
.desc p {
  margin: 0;
  overflow-wrap: anywhere;
}

.report {
  max-width: 420px;
}
.report form {
  margin-block-start: 0.5rem;
}

@media (min-width: 860px) {
  .listing {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: start;
  }
}

/* ---- Badges ---- */

.badge {
  display: inline-block;
  padding: 0.05rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--line);
  color: var(--ink);
}
.badge-active {
  background: var(--ok-soft);
  color: var(--green-dark);
}
.badge-pending {
  background: var(--gold-soft);
  color: #6b4b00;
}
.badge-sold {
  background: #e4e8f7;
  color: #2b3a7a;
}
.badge-hidden {
  background: var(--danger-soft);
  color: var(--danger);
}

/* ---- My ads ---- */

.my-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.my-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  align-items: center;
  padding: 0.9rem 1.1rem;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}
.my-number {
  color: var(--ink);
  text-decoration: none;
}
.my-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  color: var(--ink-soft);
}
.my-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.my-actions form {
  margin: 0;
}
@media (min-width: 760px) {
  .my-item {
    grid-template-columns: 15rem 1fr auto;
  }
}

/* ---- Admin ---- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-block: 0.5rem 1.25rem;
}
.tabs a {
  padding: 0.35rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.tabs a[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
}
.stats div {
  padding: 1rem 1.1rem;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}
.stats strong {
  display: block;
  font-size: 2rem;
  line-height: 1.1;
}
.stats span {
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
th,
td {
  padding: 0.65rem 0.85rem;
  text-align: start;
  vertical-align: top;
  border-block-end: 1px solid var(--line);
}
th {
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper);
}
tr:last-child td {
  border-block-end: 0;
}
td.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
td.actions form {
  margin: 0;
}

/* ---- Safety page ---- */

.tips {
  padding-inline-start: 1.25rem;
  margin-block-end: 1.5rem;
}
.tips li {
  margin-block-end: 0.75rem;
  max-width: 62ch;
}

/* ---- Footer ---- */

.foot {
  background: var(--deep);
  color: #cfc3e6;
  font-size: 0.95rem;
}
.foot a {
  color: var(--gold);
}
.foot-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.1rem;
}
.foot p {
  margin: 0;
}

@media (max-width: 520px) {
  .search-row {
    flex-direction: column;
  }
  .search-row .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
  .plate:hover {
    transform: none;
  }
}

/* ---- Password help ---- */
.forgot {
  margin-block-start: 1rem;
  color: var(--ink-soft);
}
.temp-pass {
  display: inline-block;
  margin: 0.5rem 0 1rem;
  padding: 0.6rem 1.2rem;
  font-family: "Tajawal", var(--font);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--plate);
  background: #fff;
  border: 3px dashed var(--plate);
  border-radius: 14px;
  user-select: all;
}

/* ---- Browse links and intro text (also give Google crawlable links) ---- */

.browse h2 {
  font-size: 1.15rem;
  margin: 1.6rem 0 0.5rem;
}
.browse .chips {
  margin-block-start: 0;
}
.chip small {
  color: var(--muted);
}
.chip:hover {
  background: var(--ok-soft);
}
.about {
  max-width: 70ch;
  margin-block-start: 2.2rem;
  color: var(--ink-soft);
}
.badge-pin {
  background: var(--gold-soft);
  color: var(--deep);
}

/* ---- Everything centred ---- */

main,
.results-head,
.browse,
.about,
.pager {
  text-align: center;
}
.results-head {
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.browse .chips,
.chips {
  justify-content: center;
}
.about,
.narrow,
.prose,
.empty {
  margin-inline: auto;
}
.pager {
  justify-content: center;
  gap: 1.5rem;
}
.bar {
  justify-content: center;
}
.foot-bar {
  justify-content: center;
  text-align: center;
}
.field label,
.hint,
.error-text,
.form,
.facts,
.desc {
  text-align: start;
}
.plate-actions,
.form-actions {
  justify-content: center;
}

/* ---- Header: brand on top, one rounded bar of segments below ---- */

.bar {
  flex-direction: column;
  gap: 0.7rem;
  padding-block: 1rem 1.1rem;
}
.nav {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
.nav > a,
.nav > form {
  display: flex;
  align-items: center;
}
.nav > a:not(.nav-add),
.nav .link-btn {
  padding: 0.55rem 1.05rem;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  white-space: nowrap;
}
.nav > a:not(.nav-add):hover,
.nav .link-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}
.nav > * + * {
  border-inline-start: 1.5px solid rgba(255, 255, 255, 0.28);
}
.nav .link-btn {
  height: 100%;
}
.nav > a[hreflang] {
  letter-spacing: 0.04em;
}
.nav-add {
  padding: 0.55rem 1.2rem;
  background: var(--gold);
  color: var(--deep);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}
.nav-add:hover {
  background: var(--gold-dark);
  color: var(--deep);
}
@media (max-width: 480px) {
  .nav {
    display: flex;
    width: 100%;
  }
  .nav > * {
    flex: 1 1 auto;
    justify-content: center;
  }
  .nav > a:not(.nav-add),
  .nav .link-btn {
    padding-inline: 0.4rem;
    font-size: 0.88rem;
  }
  .nav-add {
    padding-inline: 0.6rem;
    font-size: 0.9rem;
  }
}

/* Search box text sits in the middle */
.search-bar input {
  text-align: center;
}
.search-bar input::placeholder {
  text-align: center;
}

.name-edit {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}
.name-edit input {
  min-height: 38px;
  width: 11rem;
  padding: 0.2rem 0.6rem;
}

/* Long advertiser names shrink to stay inside the tab. */
.adv {
  width: 62%;
  max-width: 62%;
  min-width: 0;
}
.adv-m {
  font-size: 0.94rem;
}
.adv-s {
  font-size: 0.84rem;
}
.adv-xs {
  font-size: 0.74rem;
}
.plate-big .adv.adv-m {
  font-size: 1.1rem;
}
.plate-big .adv.adv-s {
  font-size: 0.95rem;
}
.plate-big .adv.adv-xs {
  font-size: 0.8rem;
}

/* Saudi riyal sign next to prices */
.sar {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-inline-start: 0.22em;
  vertical-align: -0.08em;
}
.p-foot .sar {
  width: 0.95em;
  height: 0.95em;
}

/* Network, city and price on a plate are links; the number link covers the whole card. */
.plate {
  position: relative;
}
.plate:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--plate);
}
.plate a {
  color: inherit;
  text-decoration: none;
}
.p-num[href]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
}
a.p-net,
a.p-city,
a.price-link {
  position: relative;
  z-index: 1;
}
a.p-net:hover,
a.p-city:hover,
a.price-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
.price-link {
  justify-self: center;
}
