/* Rahmah Education and Innovation Foundation — mockup styles
   Modelled on the Government of Canada design system look used by nserc-crsng.canada.ca */

/* Palette: Palestinian flag — black, white, green #007A3D, red #CE1126 */
:root {
  --font-body: "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Lato", "Helvetica Neue", Arial, sans-serif;
  --text: #1a1a1a;
  --text-light: #ffffff;
  --link: #00602f;          /* darker flag green for AA text contrast on white */
  --link-hover: #ce1126;    /* flag red */
  --black: #000000;
  --green: #007a3d;         /* flag green */
  --green-dark: #005a2c;
  --red: #ce1126;           /* flag red */
  --navy: var(--black);     /* hero card, footer main, search button */
  --navy-light: var(--green);   /* footer contextual band */
  --navy-dark: #2a2a2a;
  --blue-tag: var(--red);   /* "Featured" chips */
  --accent: var(--red);     /* hero + h1 rules */
  --bg-light: #f1f4f2;
  --bg-sub: #f7f9f8;
  --border: #6f7a73;
  --border-light: #cfd6d1;
  --container: 1140px;
  --gutter: 1.5rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: #ffffff;
}

/* Kufiya net pinned to the viewport ("Chowder" effect): the weave stays put while the page scrolls over it.
   A fixed pseudo-element is used instead of background-attachment: fixed so iOS Safari behaves the same. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'><g stroke='%23000' stroke-opacity='0.015' stroke-width='1.6' fill='none'><path d='M0 0L56 56M56 0L0 56'/></g><g fill='%23000' fill-opacity='0.02'><ellipse cx='28' cy='28' rx='8.5' ry='3.6' transform='rotate(45 28 28)'/><ellipse cx='0' cy='0' rx='8.5' ry='3.6' transform='rotate(45 0 0)'/><ellipse cx='56' cy='0' rx='8.5' ry='3.6' transform='rotate(45 56 0)'/><ellipse cx='0' cy='56' rx='8.5' ry='3.6' transform='rotate(45 0 56)'/><ellipse cx='56' cy='56' rx='8.5' ry='3.6' transform='rotate(45 56 56)'/></g></svg>");
  background-size: 56px 56px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--text);
}
h1 { font-size: 2.05rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a { color: var(--link); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover, a:focus { color: var(--link-hover); }
a:focus-visible { outline: 3px solid var(--link-hover); outline-offset: 2px; }

ul { margin: 0; padding: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  /* hidden above the viewport, not off to the side: a negative left offset becomes scrollable overflow in RTL */
  position: absolute; top: -6rem; inset-inline-start: 0; background: var(--navy); color: #fff;
  padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { top: 0; color: #fff; }

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


.brand-bar {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding-top: 0.5rem; padding-bottom: 1rem; gap: 2rem;
}
.brand {
  display: flex; align-items: center; gap: 0.75rem; background: #fff; padding: 0.35rem 0.6rem 0.35rem 0.35rem;
  text-decoration: none; color: var(--text);
}
.brand svg { width: 3rem; height: 3rem; flex: none; }
.brand-name {
  font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem; line-height: 1.15;
  color: var(--text);
}
.brand-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.brand-tools .lang { background: #fff; padding: 0 0.4rem; }
.brand-tools .lang { font-size: 0.75rem; }

.search { display: flex; }
.search input {
  font: inherit; font-size: 0.8rem; width: 15rem; padding: 0.35rem 0.5rem;
  border: 1px solid var(--border); border-right: 0; border-radius: 0;
}
.search button {
  background: var(--green); color: #fff; border: 0; width: 2.2rem; cursor: pointer;
  display: grid; place-items: center;
}
.search button:hover { background: var(--green-dark); }
.search svg { width: 1rem; height: 1rem; fill: #fff; }

.nav-bar { background: #fff; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.nav-bar .container { display: flex; align-items: center; justify-content: space-between; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.site-title {
  font-family: var(--font-heading); font-weight: 700; font-size: 0.8rem; line-height: 1.3;
  text-decoration: none; color: var(--text); max-width: 20rem;
}
.main-nav ul { list-style: none; display: flex; gap: 1.5rem; }
.main-nav a { font-size: 0.8rem; }

.breadcrumb { padding: 1rem 0 2.5rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0.1rem 0.5rem; display: inline-flex; gap: 0.5rem; font-size: 0.75rem; background: #fff; margin-left: -0.5rem; }
.breadcrumb li + li::before { content: "\203A"; margin-right: 0.5rem; color: var(--text); }

/* ---------- Hero ---------- */

.hero {
  position: relative; min-height: 34rem; display: flex; align-items: center;
  background:
    radial-gradient(circle at 12% 20%, rgba(0, 122, 61, 0.75) 0 6%, transparent 14%),
    radial-gradient(circle at 78% 30%, rgba(0, 122, 61, 0.55) 0 8%, transparent 18%),
    radial-gradient(circle at 60% 82%, rgba(206, 17, 38, 0.55) 0 5%, transparent 13%),
    radial-gradient(circle at 30% 75%, rgba(255, 255, 255, 0.18) 0 4%, transparent 10%),
    radial-gradient(circle at 90% 85%, rgba(206, 17, 38, 0.45) 0 5%, transparent 12%),
    radial-gradient(circle at 45% 35%, rgba(255, 255, 255, 0.12) 0 3%, transparent 9%),
    linear-gradient(135deg, #000000 0%, #0f1f17 55%, #003d1f 100%);
}
.hero .container { position: relative; z-index: 1; width: 100%; }
.hero-card {
  background: var(--black); color: var(--text-light); border-left: 0.4rem solid var(--green);
  max-width: 40rem; padding: 2.5rem 2.5rem 2rem;
  margin-left: calc(-1 * var(--gutter));
}
.hero-card h1 { color: #fff; margin-bottom: 0.9rem; }
.hero-card h1::after {
  content: ""; display: block; width: 2.6rem; height: 0.25rem; background: var(--accent); margin-top: 0.9rem;
}
.hero-card p { margin: 0; font-size: 0.9rem; }
.hero-card p.hero-tagline { font-size: 1.15rem; font-weight: 600; color: #fff; margin-bottom: 0.75rem; }

/* ---------- Bands ---------- */

.band { padding: 1.5rem 0; }
.band-light { background: var(--bg-light); }
.band-lg { padding: 2.5rem 0 2.75rem; }

.most-requested .container { display: flex; gap: 2.5rem; align-items: flex-start; }
.most-requested h2 { font-size: 1rem; margin: 0; white-space: nowrap; }
.most-requested ul {
  list-style: disc; padding-left: 1.2rem;
  columns: 2; column-gap: 2.5rem; font-size: 0.85rem; max-width: 40rem;
}
.most-requested li { break-inside: avoid; margin-bottom: 0.35rem; }

.ext::after {
  content: ""; display: inline-block; width: 0.7em; height: 0.7em; margin-left: 0.3em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M14 3h7v7h-2V6.4l-9.3 9.3-1.4-1.4L17.6 5H14V3zM5 5h6v2H7v10h10v-4h2v6H5V5z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M14 3h7v7h-2V6.4l-9.3 9.3-1.4-1.4L17.6 5H14V3zM5 5h6v2H7v10h10v-4h2v6H5V5z'/></svg>") center / contain no-repeat;
}

/* ---------- Card grids ---------- */

.section { padding: 1.75rem 0; }
.section > h2 { display: inline-block; background: #fff; padding: 0.15rem 0.6rem; margin-left: -0.6rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

.card {
  border: 1px solid var(--border); background: #fff; padding: 1.25rem 1.1rem 1.5rem;
  display: flex; flex-direction: column;
}
.card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.card h3 a { text-decoration: underline; }
.card p { font-size: 0.85rem; margin: 0; }

.card-media { border: 1px solid var(--border); padding: 0; }
.card-media .card-body { padding: 0.8rem 1rem 1.25rem; }
.card-media .card-body h3 { margin-bottom: 0.3rem; }
.card-media .card-body p { font-size: 0.85rem; margin: 0; }
.tag {
  display: inline-block; background: var(--blue-tag); color: #fff;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.7rem;
  padding: 0.15rem 0.8rem 0.15rem 0.6rem; margin: 0; align-self: flex-start;
}
.ph-img {
  display: block; margin: 0.5rem 1rem 0; aspect-ratio: 4 / 2.4;
  background: linear-gradient(135deg, #e3e8e5, #c3cdc7);
  position: relative; overflow: hidden;
}
.ph-img::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(0,0,0,0.35), transparent 45%),
              radial-gradient(circle at 25% 75%, rgba(0,122,61,0.35), transparent 40%);
}
.ph-img.portrait {
  aspect-ratio: 3 / 4;
  background: linear-gradient(180deg, #edf0ee, #cdd5d0);
}
.ph-img.portrait::before {
  /* simple silhouette */
  background:
    radial-gradient(circle at 50% 36%, #7f8a84 0 16%, transparent 17%),
    radial-gradient(ellipse at 50% 100%, #7f8a84 0 44%, transparent 45%);
}

/* News list */
.news h2 { margin-bottom: 1rem; }
.news-item h3 { font-size: 1.25rem; margin-bottom: 0.9rem; }
.news-item time { display: block; font-size: 0.85rem; margin-bottom: 0.1rem; }
.news-item p { font-size: 0.85rem; margin-bottom: 0.9rem; }
.news-item .more { font-size: 0.85rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--green); color: #fff; text-decoration: none;
  font-size: 0.8rem; font-weight: 400; padding: 0.55rem 0.7rem; border-radius: 4px;
  margin-top: 1.5rem;
}
.btn:hover, .btn:focus { background: var(--green-dark); color: #fff; }
.btn svg { width: 1em; height: 1em; fill: currentColor; }

/* About band */
.about-band .container { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.about-band h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.about-links { list-style: none; columns: 2; column-gap: 1.5rem; font-size: 0.85rem; font-weight: 700; }
.about-links li { break-inside: avoid; margin-bottom: 0.9rem; }
.about-band .btn { margin-top: 1.25rem; }
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.people .card-media h3 { font-size: 1.2rem; }

/* Feature links row */
.feature-links { padding: 2.75rem 0 1.5rem; }
.feature-links ul { background: #fff; padding: 1rem 1.25rem; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-links a { font-size: 0.85rem; font-weight: 700; }

.date-modified dl { display: inline-flex; background: #fff; padding: 0.2rem 0.6rem; margin-left: -0.6rem; }
.date-modified { font-size: 0.75rem; padding: 1rem 0 1.25rem; }
.date-modified dl { margin: 0; display: flex; gap: 0.4rem; }
.date-modified dd { margin: 0; }

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

.kufiya-border { background: #fff; }
.kufiya-border .stripes {
  height: 0.9rem;
  background: repeating-linear-gradient(180deg, #f2f4f3 0 3px, #fff 3px 6px, #f2f4f3 6px 9px, #fff 9px 100%);
}
.kufiya-border .chevrons {
  height: 3.2rem; margin: 0.35rem 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='36' viewBox='0 0 22 36'><path fill='none' stroke='%239aa39e' stroke-width='4.5' stroke-linejoin='round' d='M5 -2 L17 9 L5 18 L17 27 L5 38'/></svg>");
  background-size: 22px 36px; background-repeat: repeat;
}

footer { color: #fff; }
footer a { color: #fff; text-decoration: none; font-size: 0.75rem; }
footer a:hover, footer a:focus { color: #fff; text-decoration: underline; }
footer h2 { color: #fff; font-size: 1.15rem; margin-bottom: 0.9rem; }

.footer-contextual { background: var(--navy-light); padding: 1.6rem 0 1.4rem; }
.footer-contextual ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem 1.25rem; }

.footer-main { background: var(--navy); padding: 1.6rem 0 1.5rem; position: relative; overflow: hidden; }
.footer-main h2 { font-size: 1.15rem; }
.footer-main ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem 1.25rem; }
.footer-rule { width: 1.4rem; height: 0.2rem; background: var(--red); border: 0; margin: 1.1rem 0 1.5rem; }

.footer-sub { background: var(--bg-sub); padding: 1.6rem 0 1.5rem; }
.footer-sub .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-sub ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.2rem 0.6rem; }
.footer-sub li + li::before { content: "\2022"; margin-right: 0.6rem; color: var(--text); }
.footer-sub a { color: var(--link); }
.footer-sub a:hover { color: var(--link-hover); }
.wordmark { display: flex; align-items: center; gap: 0.5rem; color: var(--text); font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; }
.wordmark svg { width: 2.2rem; height: 2.2rem; }

/* ---------- Inner page ---------- */

.page-intro { padding-bottom: 1rem; }
.page-intro h1 { position: relative; padding-bottom: 0.6rem; margin-bottom: 1.25rem; }
.page-intro h1::after { content: ""; display: block; width: 3.5rem; height: 0.2rem; background: var(--accent); margin-top: 0.6rem; }
.page-layout { display: grid; grid-template-columns: 1fr 17rem; gap: 3rem; padding-bottom: 2rem; }
.page-layout h2 { font-size: 1.4rem; margin-top: 1.5rem; }
.side-nav { border-left: 1px solid var(--border-light); padding-left: 1.25rem; font-size: 0.85rem; }
.side-nav h2 { font-size: 1rem; margin: 0 0 0.75rem; }
.side-nav ul { list-style: none; }
.side-nav li { margin-bottom: 0.5rem; }
.side-nav .current { font-weight: 700; color: var(--text); text-decoration: none; }
.prose ul { padding-left: 1.4rem; margin-bottom: 1rem; }

@media (prefers-reduced-motion: reduce) {
  body::before { position: absolute; height: 100%; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid-3, .feature-links ul, .footer-contextual ul, .footer-main ul { grid-template-columns: repeat(2, 1fr); }
  .about-band .container { grid-template-columns: 1fr; }
  .page-layout { grid-template-columns: 1fr; }
  .side-nav { border-left: 0; padding-left: 0; }
}

@media (max-width: 680px) {
  html { font-size: 18px; }
  .brand-bar { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .brand-tools { align-items: flex-start; }
  .search input { width: 100%; }
  .nav-bar .container { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .hero { min-height: 0; padding: 2rem 0; }
  .hero-card { margin-left: 0; padding: 1.5rem; }
  .most-requested .container { flex-direction: column; gap: 0.75rem; }
  .most-requested ul { columns: 1; }
  .grid-3, .grid-2, .people, .feature-links ul, .footer-contextual ul, .footer-main ul { grid-template-columns: 1fr; }
  .about-links { columns: 1; }
  .footer-sub .container { flex-direction: column; align-items: flex-start; }
}

.people .ph-img.portrait { max-width: 14rem; }

/* ---------- Child-page components ---------- */

.side-nav h2 a { color: var(--text); text-decoration: none; }
.side-nav h2 a:hover { text-decoration: underline; }
.prose ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.35rem; }
.prose h3 { font-size: 1.05rem; margin-top: 1.25rem; margin-bottom: 0.4rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.85rem; margin: 0.5rem 0 1.25rem; background: #fff; }
.prose th, .prose td { text-align: left; padding: 0.5rem 0.75rem; border: 1px solid var(--border-light); vertical-align: top; }
.prose th { background: var(--bg-light); font-family: var(--font-heading); }
.prose td:last-child, .prose th:last-child { font-variant-numeric: tabular-nums; }
.prose blockquote { margin: 1rem 0; padding: 0.5rem 1.25rem; border-left: 0.3rem solid var(--green); font-style: italic; }
.note { font-size: 0.8rem; color: #555; border-top: 1px solid var(--border-light); padding-top: 0.75rem; margin-top: 1.5rem; }
.dateline { font-size: 0.85rem; color: #555; margin-top: -0.75rem; }
.callout { background: var(--bg-light); border-left: 0.3rem solid var(--green); padding: 1rem 1.25rem 1.25rem; margin: 1rem 0 1.5rem; }
.callout p { margin-bottom: 0.5rem; }
.callout .btn { margin-top: 0.5rem; }

.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.5rem; margin: 0 0 1.25rem; font-size: 0.9rem; }
.contact-list dt { font-weight: 700; }
.contact-list dd { margin: 0; }

.contact-form, .search-form { display: grid; gap: 0.35rem; max-width: 28rem; margin-bottom: 1.5rem; }
.contact-form label, .search-form label { font-size: 0.85rem; font-weight: 700; margin-top: 0.5rem; }
.contact-form input, .contact-form select, .contact-form textarea,
.search-form input, .search-form select {
  font: inherit; font-size: 0.9rem; padding: 0.4rem 0.5rem; border: 1px solid var(--border); border-radius: 0; background: #fff;
}
.contact-form .btn, .search-form .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-size: 0.8rem; margin-top: 1rem; }

.event-list, .news-list { list-style: none; margin-bottom: 1.5rem; }
.event-list li, .news-list li { display: grid; gap: 0.15rem; padding: 0.9rem 0; border-bottom: 1px solid var(--border-light); }
.event-list time, .news-list time { font-size: 0.8rem; color: #555; }
.event-list strong { font-family: var(--font-heading); font-size: 1.05rem; }
.event-list li { font-size: 0.9rem; }
.news-list a { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; }
.news-list p { font-size: 0.85rem; margin: 0; }

.story-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin: 0.5rem 0 1.5rem; }
.bio-photo { display: block; width: 12rem; max-width: 100%; margin: 0 0 1.25rem; }
.story-photo { display: block; margin: 0 0 1.25rem; aspect-ratio: 16 / 7; }

@media (max-width: 680px) {
  .story-grid { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; gap: 0.1rem; }
  .contact-list dd { margin-bottom: 0.5rem; }
}

/* ---------- Page arrival ---------- */

main h1:focus { outline: none; }
.page-intro h1 { position: relative; }
.page-intro h1::before {
  /* green marker that appears when a page loads, so a new page reads as new */
  content: ""; position: absolute; left: -1.25rem; top: 0.25em; bottom: 0.25em; width: 0.4rem;
  background: var(--green); opacity: 0; transform: scaleY(0); transform-origin: top;
}
.arrived .page-intro h1::before { opacity: 1; transform: scaleY(1); transition: transform 0.35s ease-out 0.05s, opacity 0.2s; }
.arrived .page-intro h1::after { animation: rule-grow 0.6s ease-out 0.15s both; }
.arrived .page-layout, .arrived .page-intro h1 { animation: page-in 0.45s ease-out both; }
@keyframes rule-grow { from { width: 0; } to { width: 3.5rem; } }
@keyframes page-in { from { opacity: 0; transform: translateY(0.6rem); } to { opacity: 1; transform: none; } }

/* Current page in the section navigation: filled marker, not just bold */
.side-nav li { margin: 0; }
.side-nav a { display: block; padding: 0.3rem 0.6rem; margin-left: -0.6rem; border-left: 0.25rem solid transparent; }
.side-nav .current {
  background: var(--bg-light); border-left-color: var(--green); color: var(--text); font-weight: 700; text-decoration: none;
}
.side-nav .current::after { content: " \2190"; color: var(--green); }
.breadcrumb li:last-child a { color: var(--text); font-weight: 700; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .arrived .page-intro h1::before { transition: none; }
  .arrived .page-intro h1::after, .arrived .page-layout, .arrived .page-intro h1 { animation: none; }
}

/* ---------- Arabic / right-to-left ---------- */

[lang="ar"] { --font-body: "Noto Naskh Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; --font-heading: "Noto Kufi Arabic", "Noto Sans Arabic", Tahoma, sans-serif; }
[lang="ar"] body { line-height: 1.85; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { line-height: 1.45; }
[lang="ar"] .brand-name, [lang="ar"] .site-title { font-size: 0.9rem; }
[dir="rtl"] .brand { padding: 0.35rem 0.35rem 0.35rem 0.6rem; }
[dir="rtl"] .brand-tools { align-items: flex-start; }
[dir="rtl"] .search input { border-right: 1px solid var(--border); border-left: 0; }
[dir="rtl"] .breadcrumb li + li::before { content: "\2039"; margin-right: 0; margin-left: 0.5rem; }
[dir="rtl"] .breadcrumb ol { margin-left: 0; margin-right: -0.5rem; }
[dir="rtl"] .hero-card { margin-left: 0; margin-right: calc(-1 * var(--gutter)); border-left: 0; border-right: 0.4rem solid var(--green); }
[dir="rtl"] .most-requested ul { padding-left: 0; padding-right: 1.2rem; }
[dir="rtl"] .prose ul, [dir="rtl"] .prose ol { padding-left: 0; padding-right: 1.4rem; }
[dir="rtl"] .prose th, [dir="rtl"] .prose td { text-align: right; }
[dir="rtl"] .prose blockquote { border-left: 0; border-right: 0.3rem solid var(--green); }
[dir="rtl"] .callout { border-left: 0; border-right: 0.3rem solid var(--green); }
[dir="rtl"] .side-nav { border-left: 0; border-right: 1px solid var(--border-light); padding-left: 0; padding-right: 1.25rem; }
[dir="rtl"] .side-nav a { margin-left: 0; margin-right: -0.6rem; border-left: 0; border-right: 0.25rem solid transparent; }
[dir="rtl"] .side-nav .current { border-right-color: var(--green); }
[dir="rtl"] .side-nav .current::after { content: " \2192"; }
[dir="rtl"] .page-intro h1::before { left: auto; right: -1.25rem; }
[dir="rtl"] .section > h2 { margin-left: 0; margin-right: -0.6rem; }
[dir="rtl"] .date-modified dl { margin-left: 0; margin-right: -0.6rem; }
[dir="rtl"] .footer-sub li + li::before { margin-right: 0; margin-left: 0.6rem; }
[dir="rtl"] .bio-photo, [dir="rtl"] .story-photo { margin: 0 0 1.25rem; }
[dir="rtl"] time, [dir="rtl"] .contact-list dd { direction: ltr; unicode-bidi: isolate; display: inline-block; }
[dir="rtl"] .contact-list dd { text-align: right; }
[dir="rtl"] .contact-list { direction: rtl; }
[dir="rtl"] .contact-list dd { direction: ltr; }
[dir="rtl"] .contact-list dd:has(a), [dir="rtl"] .contact-list dd { unicode-bidi: plaintext; }
[dir="rtl"] .side-nav h2 a { text-align: right; }
@media (max-width: 680px) { [dir="rtl"] .hero-card { margin-right: 0; } }

/* Search results page */
.search-results { list-style: none; padding: 0; margin: 1rem 0 2rem; max-width: 48rem; }
.search-results li { padding: 0.9rem 0; border-bottom: 1px solid var(--border-light); }
.search-results a { font-size: 1.05rem; font-weight: 700; }
.search-results p { font-size: 0.85rem; margin: 0.3rem 0 0; color: #333; }
#search-status { font-weight: 700; margin-top: 1rem; }
/* Netlify Forms honeypot: never shown */
.hp { display: none; }
