:root {
  color-scheme: light;
  --ink: #211820;
  --muted: #665d64;
  --wine: #8b2045;
  --wine-dark: #671332;
  --paper: #faf8f6;
  --white: #fff;
  --line: #e8e0df;
  --display: 'Manrope', 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 'DM Sans', system-ui, sans-serif;
}
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b53c66; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.16; }
.container { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: absolute;
  inset: .6rem auto auto .6rem;
  z-index: 2;
  padding: .6rem .9rem;
  background: var(--white);
  color: var(--wine-dark);
}

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  font: 800 1.3rem/1 var(--display);
  letter-spacing: -.045em;
  white-space: nowrap;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: .65rem;
  background: var(--wine-dark);
  color: var(--white);
  font-size: 1.35rem;
}
.brand-accent { color: var(--wine); }
.header-nav { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2.15rem); }
.header-nav a {
  padding-block: .65rem;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header-nav a:hover, .header-nav .nav-selected { color: var(--wine-dark); }
.header-nav .nav-selected { box-shadow: inset 0 -2px var(--wine); }

.home-hero {
  color: var(--white);
  background-color: #321124;
  background-image: linear-gradient(90deg, rgba(39, 9, 28, .98), rgba(47, 13, 33, .86) 37%, rgba(71, 18, 43, .28) 78%),
    url('/assets/qatar-digest-doha.webp');
  background-size: cover;
  background-position: center, center 53%;
}
.home-hero-inner { padding-block: clamp(3rem, 6vw, 4.7rem); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .58rem;
  color: #f5d7b8;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow span { width: 1.3rem; height: 1px; background: #e9bd91; }
.home-hero h1 {
  margin-block: .7rem 1rem;
  font-size: clamp(2.8rem, 6.2vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -.07em;
  line-height: 1.01;
}
.hero-summary { max-width: 28rem; color: #f1e5ea; font-size: clamp(1rem, 2vw, 1.17rem); }
.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.5rem;
  padding: .64rem 1.05rem;
  border-radius: .55rem;
  background: #fbf1e8;
  color: #552039;
  font-weight: 800;
  text-decoration: none;
}
.hero-button:hover { background: #f9dec9; }

.page-hero { background: #f5eaed; border-bottom: 1px solid #ebdce1; }
.page-hero .container { padding-block: clamp(1.55rem, 4vw, 3.15rem); }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .7rem;
  color: var(--muted);
  font-size: .88rem;
  overflow-wrap: anywhere;
}
.breadcrumb a { color: var(--wine-dark); text-underline-offset: .2em; }
.breadcrumb [aria-current] { font-weight: 700; }
.page-hero h1, .not-found h1 {
  margin-top: .75rem;
  color: #361b2b;
  font-size: clamp(2rem, 5vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}
.page-hero p { max-width: 48rem; margin-top: .75rem; color: var(--muted); overflow-wrap: anywhere; }

.content-section { padding-block: clamp(1.85rem, 4vw, 3.45rem); }
.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: .7rem 1rem;
  margin-bottom: 1.35rem;
}
.section-header h2 {
  font-size: clamp(1.55rem, 3.1vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.05em;
}
.section-description { margin-top: .42rem; color: var(--muted); }
.section-count { color: var(--muted); font-size: .9rem; font-weight: 700; }
.directory-grid, .listing-grid {
  display: grid;
  gap: .9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.directory-card, .listing-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--white);
  box-shadow: 0 2px 4px rgba(39, 20, 29, .035);
}
.directory-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem;
  min-height: 5.1rem;
  padding: .9rem 1rem;
  text-decoration: none;
  transition: background-color .14s ease, border-color .14s ease;
}
.directory-card:hover { background: #fffafc; border-color: #c894a6; }
.card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: .62rem;
  background: #f7eaf0;
  font-size: 1.18rem;
}
.card-name {
  font: 800 .99rem/1.25 var(--display);
  overflow-wrap: anywhere;
}
.card-arrow { color: var(--wine); font-size: 1.1rem; }
.listing-card { padding: clamp(1rem, 2.3vw, 1.55rem); }
.listing-header { display: flex; align-items: center; gap: .75rem; }
.listing-header h3 { font-size: clamp(1.06rem, 2vw, 1.25rem); overflow-wrap: anywhere; }
.listing-icon { color: var(--wine-dark); }
.listing-details {
  margin-top: .85rem;
  color: #4e444c;
  font-size: .97rem;
  overflow-wrap: anywhere;
}
.listing-details p + p, .listing-details ul { margin-top: .65rem; }
.listing-details ul { padding-inline-start: 1.25rem; }
.listing-details a { color: var(--wine-dark); text-underline-offset: .18em; }

.directory-ad {
  grid-column: 1 / -1;
  min-width: 0;
  margin-block: .45rem;
  padding: .75rem clamp(.4rem, 1.5vw, .95rem) .85rem;
  border-block: 1px solid #e2dddd;
  background: #f1eeee;
}
.ad-label {
  display: block;
  margin-bottom: .4rem;
  color: #625a60;
  font-size: .75rem;
  line-height: 1.3;
  text-align: center;
}
.directory-ad .adsbygoogle { min-height: 100px; }
.ads-unavailable .directory-ad,
.directory-ad:has(> .adsbygoogle[data-ad-status="unfilled"]) { display: none; }

.listing-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin-top: 1.55rem;
}
.listing-pagination a, .current-page {
  display: grid;
  min-width: 2.65rem;
  min-height: 2.65rem;
  place-items: center;
  padding: .32rem .75rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--white);
  color: var(--wine-dark);
  font-weight: 800;
  text-decoration: none;
}
.listing-pagination a:hover { border-color: var(--wine); }
.listing-pagination .current-page { background: var(--wine-dark); color: var(--white); }
.pagination-ellipsis { padding-inline: .2rem; }
.directory-note { max-width: 48rem; margin-top: 1.65rem; color: var(--muted); }
.empty-state { padding: 1.5rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--white); color: var(--muted); }
.not-found { padding-block: 3rem 5rem; }
.not-found p { margin-block: .9rem; }
.not-found a { color: var(--wine-dark); }

.site-footer { padding: 2.45rem 0 1.05rem; background: #2a1924; color: #eadce4; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
  padding-bottom: 1.65rem;
}
.footer-brand { color: var(--white); font: 800 1.3rem/1.15 var(--display); text-decoration: none; }
.footer-grid p { margin-top: .6rem; }
.footer-grid h2 { color: var(--white); font-size: .98rem; }
.footer-links { display: grid; gap: .25rem; padding: 0; margin: .62rem 0 0; list-style: none; }
.footer-links a, .share-links a { text-decoration: none; }
.footer-links a:hover, .share-links a:hover, .share-links button:hover { text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .6rem 1.25rem;
  padding-top: .85rem;
  border-top: 1px solid #ffffff29;
  font-size: .86rem;
}
.share-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; }
.share-links button { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }

@media (max-width: 47rem) {
  .container { width: calc(100% - 2rem); }
  .directory-grid { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
  .directory-card { min-height: 4.35rem; padding: .65rem .8rem; }
  .home-hero {
    background-image: linear-gradient(90deg, rgba(39, 9, 28, .94), rgba(47, 13, 33, .65)),
      url('/assets/qatar-digest-doha.webp');
    background-position: center, 64% center;
  }
}
@media (max-width: 36rem) {
  .header-inner { min-height: 3.8rem; gap: .5rem; }
  .brand { gap: .4rem; font-size: 1.1rem; }
  .brand-icon { width: 1.9rem; height: 1.9rem; font-size: 1.05rem; }
  .header-nav { gap: .75rem; }
  .header-nav a { font-size: .8rem; }
  .hero-break { display: none; }
  .listing-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .directory-card { transition: none; }
}
