/* ===== Oxford Islamic Information Centre: colours and fonts =====
   Change a colour here and it changes on every page. */
:root {
  --ink: #1b2430;          /* main text */
  --heading: #0b2a5b;      /* navy, from the old menu bar */
  --muted: #4f5b67;
  --paper: #ffffff;
  --mist: #f2f5ef;         /* soft green-grey boxes */
  --line: #d5ddd2;
  --field-line: #8a968b;
  --green: #0f6b3a;        /* the green of the OIIC logo, darkened for easy reading */
  --gold: #c9a227;         /* gold, from the old menu bar */
  --navy: #0b2a5b;
  --link: #0f6b3a;
  --button: #0f6b3a;
  --donate: #0f6b3a;
  --accent: #c9a227;
  --alert: #c9a227;
  --alert-bg: #fbf6e6;
  --focus: #1d4ed8;
  --focus-soft: rgba(29, 78, 216, 0.25);
  --header-bg: #ffffff;
  --nav-bg: #0b2a5b;
  --nav-text: #ffffff;
  --nav-current: #c9a227;
  --footer-bg: #0b2a5b;
  --footer-text: #ffffff;
  --head-font: "Amiri", Georgia, "Times New Roman", serif;
  --head-weight: 700;
  --body-font: "Atkinson Hyperlegible", "Amiri", Verdana, Arial, sans-serif;
  --logo-height: 92px;
  --logo-height-small: 58px;
}


/* ===== Layout and parts shared by every page. Colours and fonts are set at the top of this file. ===== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 1.1875rem;
  line-height: 1.6;
}
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 {
  font-family: var(--head-font);
  color: var(--heading);
  line-height: 1.2;
  margin: 1.6em 0 0.5em;
  font-weight: var(--head-weight, 700);
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); margin-top: 0.4em; }
h2 { font-size: clamp(1.55rem, 1.3rem + 1vw, 2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.75rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ----- buttons ----- */
.button {
  display: inline-block;
  padding: 0.7em 1.3em;
  border: 2px solid var(--button);
  border-radius: var(--radius-button, 6px);
  background: var(--button);
  color: #fff;
  font: 700 1.05rem/1.2 var(--body-font);
  text-decoration: none;
  cursor: pointer;
  margin: 0 0.4rem 0.6rem 0;
}
.button:hover { filter: brightness(1.12); }
.button-quiet { background: transparent; color: var(--button); }
.button-quiet:hover { background: var(--mist); filter: none; }
.button-donate { background: var(--donate); border-color: var(--donate); }
.button-light { background: #fff; border-color: #fff; color: var(--ink); }

/* ----- header ----- */
.site-header { background: var(--header-bg); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1rem; padding-block: 0.75rem; }
.brand { margin-right: auto; display: block; }
.brand img { height: var(--logo-height, 72px); width: auto; }
.header-row .button { margin: 0; }
.menu-button {
  display: none;
  font: 700 1.05rem/1 var(--body-font);
  padding: 0.75em 1em;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.site-nav { background: var(--nav-bg); }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 0.25rem; padding: 0; margin-block: 0; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  padding: 0.85rem 0.8rem;
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  border-bottom: 4px solid transparent;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.1); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--nav-current); }

@media (max-width: 760px) {
  body { font-size: 1.125rem; }
  .brand img { height: var(--logo-height-small, 56px); }
  .js .menu-button { display: block; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding-block: 0.5rem; }
  .site-nav a { padding: 0.9rem 0.25rem; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
  .site-nav a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, 0.15); text-decoration: underline; text-decoration-thickness: 3px; }
  .header-row .button-donate { padding: 0.65em 0.9em; }
}

/* ----- page bodies ----- */
main { display: block; padding-bottom: 3rem; }
.prose { max-width: 46rem; padding-top: 1.5rem; }
.prose figure, .story figure { margin: 1.5rem 0; }
.prose figure img { border-radius: 4px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.lead { font-size: 1.3rem; line-height: 1.55; }
.page-date { color: var(--muted); font-weight: 700; margin-top: -0.2em; }
.lead-image img { width: 100%; }
blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 5px solid var(--accent);
  background: var(--mist);
}
blockquote p:last-child { margin-bottom: 0; }
.quote-by { font-weight: 700; }
.quote-by::before { content: "\2014\00a0"; }
.alert {
  border-left: 6px solid var(--alert);
  background: var(--alert-bg);
  padding: 0.9rem 1.1rem;
  font-size: 1.2rem;
}
.more { margin-top: 1.5rem; }
.small, .source { font-size: 0.95rem; color: var(--muted); }
.video { position: relative; aspect-ratio: 16 / 9; margin: 1.5rem 0; background: #1b1b1b; border-radius: 4px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
video { width: 100%; margin: 1.5rem 0; background: #000; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { border-collapse: collapse; width: 100%; }
td { border: 1px solid var(--line); padding: 0.5rem 0.7rem; vertical-align: top; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.6rem; margin: 1.5rem 0; }
.gallery a, .gallery > img { display: block; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.prose .gallery { grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }

.band { background: var(--mist); padding-block: 2.5rem; margin-block: 2.5rem; }
.section-title { margin-top: 1.4em; }
.band .section-title:first-child, .band h2:first-child { margin-top: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 0; } }

.link-list { list-style: none; padding: 0; }
.link-list li { border-bottom: 1px solid var(--line); margin: 0; }
.link-list a { display: block; padding: 0.7rem 0; font-weight: 700; }

.section-nav { margin-top: 3rem; padding: 1.25rem 1.5rem; background: var(--mist); border-radius: 6px; }
.section-nav h2 { margin-top: 0; font-size: 1.3rem; }
.section-nav ul { list-style: none; padding: 0; margin: 0; columns: 2 16rem; }
.section-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: none; }

/* lists of posts and guides */
.post-list, .guide-list { list-style: none; padding: 0; }
.post-card { display: grid; grid-template-columns: 11rem 1fr; gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.post-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.post-card h2 { font-size: 1.35rem; margin: 0 0 0.4rem; }
.post-card h2 a { color: var(--heading); }
.post-card p { margin-bottom: 0.4rem; }
.post-card .page-date { margin: 0 0 0.2rem; font-size: 0.95rem; }
.post-card:not(:has(img)) { grid-template-columns: 1fr; }
@media (max-width: 560px) { .post-card { grid-template-columns: 1fr; } }
.guide-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.guide-list strong { font-size: 1.2rem; }
.guide-list span { color: var(--muted); }

/* people (team, patrons) */
.person { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.person figure { margin: 0; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 6px; }
.person h2 { margin: 0; font-size: 1.45rem; }
.person-role { color: var(--muted); font-weight: 700; margin: 0.2rem 0 0.6rem; }
@media (max-width: 560px) { .person { grid-template-columns: 6.5rem 1fr; gap: 1rem; } .person h2 { font-size: 1.25rem; } }
.document { aspect-ratio: 3 / 4; max-height: 85vh; margin: 1.5rem 0 0.5rem; }
.document iframe { width: 100%; height: 100%; border: 1px solid var(--line); }

/* videos */
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 0 3rem; }
@media (min-width: 900px) {
  .hero-inner:has(.hero-video) { grid-template-columns: 1.05fr 1fr; align-items: center; }
  .hero-inner:has(.hero-video) > :not(.hero-video) { grid-column: 1; }
  .hero-inner > .hero-video { grid-column: 2; grid-row: 1 / span 6; }
}
.hero-video { margin: 1.75rem 0 0; }
.hero-video .video, .hero-video video { margin: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9); }
.hero-video figcaption { font-size: 0.95rem; margin-top: 0.5rem; opacity: 0.9; }
.video-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.video-pair .video, .video-grid .video { margin: 0; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
@media (max-width: 760px) { .video-pair { grid-template-columns: 1fr; } }

/* contact boxes */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.contact-cards section { border: 2px solid var(--line); border-radius: 6px; padding: 1rem 1.25rem; }
.contact-cards h2, .contact-cards h3 { margin-top: 0; font-size: 1.25rem; }
.contact-cards ul { padding-left: 1.1em; margin: 0; }
.contact-cards p:last-child { margin-bottom: 0; }
.contact-cards a { overflow-wrap: anywhere; }

/* forms */
.site-form { background: var(--mist); padding: 1.25rem 1.5rem; border-radius: 6px; }
.site-form h2 { margin-top: 0; }
.field { margin: 0 0 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.field input, .field textarea {
  display: block;
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 2px solid var(--field-line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px var(--focus-soft); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; }
.site-form .button { width: 100%; margin: 0.25rem 0 0.75rem; font-size: 1.1rem; padding: 0.85em; }
.form-and-contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: start; margin-top: 1.5rem; }
.form-and-contact h2 { margin-top: 0; }
@media (max-width: 760px) { .form-and-contact { grid-template-columns: 1fr; } }

/* footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding-top: 2.5rem; font-size: 1.05rem; }
.site-footer a { color: inherit; }
.site-footer h2 { color: inherit; font-size: 1.15rem; margin: 0 0 0.6rem; font-family: var(--body-font); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2rem; }
.footer-name { font-weight: 700; font-size: 1.2rem; }
.footer-small { border-top: 1px solid rgba(255, 255, 255, 0.2); padding: 1rem 0 1.5rem; margin-top: 1.5rem; font-size: 0.95rem; opacity: 0.85; }
.site-footer img { background: #fff; padding: 6px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-nav, .help-band, .menu-button, .site-footer, .button-donate { display: none !important; } }

/* ===== this site only ===== */
h1, h2 { letter-spacing: 0; }
h1 { font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.3rem); }
.site-nav { border-bottom: 4px solid var(--gold); }
.header-row { gap: 1.5rem; }
.bismillah { height: 56px; width: auto; }
.new-muslims { margin: 0; text-align: right; font-size: 0.98rem; color: var(--muted); line-height: 1.35; }
.new-muslims a { font-weight: 700; font-size: 1.25rem; color: var(--green); text-decoration: none; }
.call-to-prayer { text-align: center; }
.call-to-prayer p { margin: 0 0 0.2rem; font-size: 0.95rem; font-weight: 700; color: var(--heading); }
.call-to-prayer audio { width: 15rem; height: 2.4rem; display: block; }
@media (max-width: 1100px) { .bismillah { display: none; } }
@media (max-width: 760px) {
  .header-row { flex-wrap: wrap; row-gap: 0.4rem; }
  .new-muslims { order: 3; width: 100%; text-align: left; border-top: 1px solid var(--line); padding-top: 0.4rem; }
  .call-to-prayer { order: 4; width: 100%; display: flex; align-items: center; gap: 0.6rem; text-align: left; }
  .call-to-prayer p { margin: 0; flex: none; }
  .call-to-prayer audio { flex: 1; width: auto; min-width: 0; }
  .new-muslims br { display: none; }
  .new-muslims a { margin-left: 0.4rem; }
}
.button-gold { background: var(--gold); border-color: var(--gold); color: #1b2430; }

.center { text-align: center; }
.hero {
  background: linear-gradient(rgba(6, 24, 52, 0.62), rgba(6, 24, 52, 0.82)), url("/wp-content/uploads/slider/cache/aedcb9db20ace7dd296a40155cd0cd36/slide-4.jpg") center 60% / cover;
  color: #fff;
  padding: 4.5rem 0 4rem;
  text-align: center;
}
.hero h1 { color: #fff; max-width: 22ch; margin: 0 auto 1rem; }
.hero .lead { max-width: 40rem; margin-inline: auto; }
.hero-buttons { margin: 1.75rem 0 0; }

/* the picture tiles (from the old home page) */
.tiles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem 1rem; margin: 1.5rem 0; }
.tiles li { margin: 0; }
.tiles a { display: block; text-align: center; text-decoration: none; color: var(--heading); font: 700 1.3rem/1.25 var(--head-font); }
.tiles img { width: 78%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin: 0 auto 0.7rem; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--gold); }
.tiles a:hover img { box-shadow: 0 0 0 5px var(--green); }
.tiles a:hover span { text-decoration: underline; }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, 1fr); } .tiles a { font-size: 1.15rem; } }

.letter-and-info { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: start; }
.letter { max-width: 42rem; }
.letter h2 { margin-top: 0; }
.side-info section { background: #fff; border-top: 4px solid var(--gold); padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.side-info h2 { margin-top: 0; font-size: 1.5rem; }
.side-info audio { width: 100%; }
.big-phone { font-size: 1.5rem; font-weight: 700; }
@media (max-width: 860px) { .letter-and-info { grid-template-columns: 1fr; gap: 1rem; } }

.books { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr)); gap: 1.5rem 2.5rem; margin: 1.5rem 0; }
.books li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.25rem; margin: 0; align-items: start; }
.books img { width: 100%; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.books h3 { margin: 0 0 0.4rem; font-size: 1.45rem; }
.books p { margin-bottom: 0.6rem; }
@media (max-width: 560px) { .books { grid-template-columns: 1fr; } .books li { grid-template-columns: 5.5rem 1fr; gap: 1rem; } }

.topic-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0 2.5rem; }
.topic-group h2 { font-size: 1.6rem; }
.prose blockquote { font-family: var(--head-font); font-size: 1.3rem; line-height: 1.5; border-left-color: var(--gold); }
.prose blockquote p { margin-bottom: 0; }
.quran-search { max-width: 34rem; }
.latest-video .video { max-width: 52rem; margin-inline: auto; }
