.mast .brand img { max-width: 166px; object-fit: contain; }
.mast nav a { text-align: center; }
.mast nav a[lang] { text-decoration: underline; text-underline-offset: 4px; }
.hero h1 { font-size: clamp(70px, 7vw, 115px); line-height: .94; }
.hero h1 em { font-size: .76em; }
.hero-without-photo { grid-template-columns: 1fr; }
.hero-picture img { object-position: 52% 50%; }
.home-races { padding: clamp(40px, 5vw, 72px) 0 6px; }
.home-races h2 { font-size: clamp(38px, 4vw, 60px); }
.home-races p { margin-top: 13px; max-width: 60ch; }
.race-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.race-tabs a { border: 1px solid var(--green); border-radius: 5px; padding: 8px 13px; font-size: 15px; font-weight: 700; }
.race-tabs a:hover { background: var(--green); color: white; }
.places-list { max-width: 900px; }
.places-list .editor-link { margin-top: 8px; }
.privacy { font-size: 13px; color: #415347; padding: 0; margin-top: 10px; }
.privacy a { text-decoration: underline; }
.calendar-page { padding-block: clamp(35px, 6vw, 80px); min-height: 60vh; }
.calendar-page h1 { font-size: clamp(48px, 6.5vw, 96px); line-height: .98; max-width: 18ch; }
.calendar-page > p { max-width: 70ch; }
.calendar-content { margin-top: 32px; max-width: 720px; }
.calendar-content .intake, .race-listing, .empty { border-top: 2px solid var(--green); padding-top: 18px; }
.race-listing h2 { font-size: clamp(31px, 4.1vw, 56px); margin-bottom: 12px; }
.site-footer .editor-link { margin-top: 0; }
@media (max-width: 700px) {
  .hero h1 { font-size: clamp(51px, 11vw, 72px); }
  .hero h1 br:first-of-type { display: initial; }
  .hero h1 em { white-space: normal; letter-spacing: -.05em; }
  .mast nav a { line-height: 1.2; }
}
.brand:not(:has(img)) { font-weight: 850; max-width: 13ch; line-height: 1.12; }
.photo-credit { margin-top: 16px; font-size: 13px; }
.photo-credit a { text-decoration: underline; text-underline-offset: 3px; }
.hero-without-photo { background: radial-gradient(ellipse at 92% 12%,#2f5655 1%,transparent 61%), #112c30; }
.hero-without-photo .hero-copy { width: min(100%,860px); padding-block: clamp(72px,10vw,145px); }
.hero-copy h1 { overflow-wrap: anywhere; }
.places-list { list-style: none; display:grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap:20px; padding:0; }
.places-list li { margin:0; padding:23px; border:1px solid #b5c1b7; border-radius:10px; }
.places-list li h3 { font-size: 22px; margin:0 0 8px; }
[dir=rtl] { font-family: Tahoma, Arial, sans-serif; }
[dir=rtl] .hero-copy h1, [dir=rtl] .hero-copy h1 em, [dir=rtl] h2 { letter-spacing:0; }
[dir=rtl] .hero-picture figcaption { left:auto; right:24px; }
[dir=rtl] .official { border-left:0; border-right:1px solid #b5c1b7; padding-inline:14px 0; }
[dir=rtl] .trap {
  inset: auto;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.bilingual-mark { display: grid; justify-items: center; gap: 2px; color: #192e3c; }
.mast .brand:has(.bilingual-mark) { max-width: none; }
.mast .brand img.archive-mark { height: 60px; width: 95px; object-fit: contain; }
.mark-arabic { font-weight: 850; font-size: 14px; line-height: 1.2; }
.city-emblem { position: relative; display: block; width: 94px; height: 64px; isolation: isolate; }
.city-emblem strong { position: absolute; inset: 3px 1px auto; color: white; font-family: 'Arial Black', 'DejaVu Sans', sans-serif; font-size: var(--city-text); font-weight: 1000; white-space: nowrap; text-align: center; line-height: 1; }
.mast .brand .city-emblem img { width: 94px; height: 64px; object-fit: fill; }
.medina-mark { display: block; position: relative; height: 64px; color: #192e3c; }
.medina-mark::before { content: ""; position: absolute; inset: 0 0 34%; background-color: var(--red); background-image: repeating-linear-gradient(45deg,transparent 0 7px,#10253832 7px 8px,transparent 8px 13px), repeating-linear-gradient(-45deg,transparent 0 7px,#10253825 7px 8px,transparent 8px 13px); }
.medina-mark i { position: absolute; z-index: 1; inset: 34% 0 27%; background: #192e3c; clip-path: polygon(0 52%,5% 52%,5% 26%,10% 26%,10% 52%,16% 52%,16% 11%,20% 0,24% 11%,24% 64%,32% 64%,32% 42%,37% 42%,37% 63%,44% 63%,44% 25%,50% 25%,50% 63%,62% 63%,62% 47%,67% 47%,67% 66%,76% 66%,76% 23%,80% 10%,85% 23%,85% 60%,92% 60%,92% 40%,100% 40%,100% 100%,0 100%); }
.medina-mark b { position: absolute; inset: auto 0 -1px; text-align: center; font-family: 'Arial Black', 'DejaVu Sans',sans-serif; font-size: 34px; letter-spacing: -.08em; font-weight: 1000; line-height: .92; }
.preview-note { color: #304743; border-inline-start: 3px solid var(--red); padding-inline-start: 12px; }
[lang=ar] { font-family: 'Noto Sans Arabic', Tahoma, Arial, sans-serif; }
.morocco .hero-without-photo { background: radial-gradient(ellipse at 92% 12%,var(--red) 0%,transparent 73%),#172d39; }
@media (min-width: 661px) { .morocco .mast-inner {height: 100px;} }
@media (max-width: 660px) { .morocco .mast .nav-places {display: none;} }
