/* Researchers Schoolhouse - site design (child theme)
   Built by Adrian Ciorba - firestorm.ro

   One font, one navy, a little gold. Small corners (3px), straight images.
   Everything below is either a global rule (type, links, buttons) or an
   rs-* class that you type into a Divi section/row/module under
   Advanced > CSS ID & Classes. The README lists which class goes where. */

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */
:root {
  --rs-navy: #1B2D5B;
  --rs-navy-2: #23386C;
  --rs-navy-dark: #14224A;
  --rs-gold: #F3C669;        /* fill only: lines, underlines, text on navy */
  --rs-gold-ink: #9A6B12;    /* gold that stays readable on white */
  --rs-gold-soft: #FBF4E2;
  --rs-gold-line: #E9D7A6;
  --rs-ink: #1F2430;
  --rs-muted: #5B6270;
  --rs-faint: #8A909C;
  --rs-rule: #DADDE3;
  --rs-bg-2: #F4F5F7;
  --rs-r: 3px;
  --rs-font: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}

/* Divi 5 sets the page font through these two variables, in an inline
   style printed after this file. html:root outranks its :root, so every
   Divi rule that reads them gets Libre Franklin. (Setting the same font in
   Divi's own global fonts is still worth doing: it stops Divi loading the
   old fonts from Google.) */
html:root {
  --et_global_body_font: "Libre Franklin";
  --et_global_heading_font: "Libre Franklin";
}

/* Self-hosted font. Used when the file is in assets/fonts/, otherwise
   functions.php loads the same family from Google Fonts. */
/* Libre Franklin, served from this theme (SIL Open Font License, fonts/OFL.txt).
   Variable weight 400 to 700, split like Google's own files: Latin, and
   Latin Extended for Romanian letters (ă, â, î, ș, ț). */
@font-face {
  font-family: "Libre Franklin";
  src: url("fonts/LibreFranklin-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("fonts/LibreFranklin-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------ */
/* Type: one family everywhere, Divi's defaults overridden             */
/* ------------------------------------------------------------------ */
html body,
html body .et_pb_module,
html body .et_pb_text,
html body input,
html body textarea,
html body select,
html body button {
  font-family: var(--rs-font);
}
body {
  color: var(--rs-ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
body .et_pb_module_header,
body .et_pb_slide_title,
body .et_pb_post .entry-title {
  font-family: var(--rs-font);
  font-weight: 600;
  line-height: 1.18;
  color: var(--rs-navy);
  text-wrap: balance;
  padding-bottom: 0;
}
body h1 { font-size: clamp(34px, 3.4vw, 52px); letter-spacing: -.018em; }
body h2 { font-size: clamp(28px, 2.6vw, 38px); }
body h3 { font-size: 22px; }
body h4 { font-size: 17px; }
body p, body li, body blockquote { text-wrap: pretty; }
body p { padding-bottom: 1em; }
/* Number ranges (rs_keep_ranges): no wrapping, otherwise exactly like the
   text around them, even where a parent styles every span (contact cards). */
body span.rs-nw { all: unset !important; white-space: nowrap !important; }
/* E-mail addresses always stay on one line. On narrow phones they scale
   down a little so they still fit (contact cards, footer, policy text). */
a[href^="mailto:"] { white-space: nowrap; overflow-wrap: normal !important; word-break: normal !important; }
@media (max-width: 480px) { a[href^="mailto:"] { font-size: min(1em, 4vw); } }
body p:last-of-type { padding-bottom: 0; }

body a { color: var(--rs-navy); }
body .et_pb_text a,
body .entry-content a {
  text-decoration: none;
  border-bottom: 1px solid var(--rs-gold-ink);
}
body .et_pb_text a:hover,
body .entry-content a:hover { border-bottom-color: var(--rs-navy); }

/* ------------------------------------------------------------------ */
/* Buttons: Divi button module and forms                               */
/* ------------------------------------------------------------------ */
body .et_pb_button,
body .et_pb_contact_submit,
body .et_pb_newsletter_button,
body .et_pb_promo_button {
  font-family: var(--rs-font) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  padding: 13px 24px !important;
  border-radius: var(--rs-r) !important;
  border: 1px solid var(--rs-navy) !important;
  background: var(--rs-navy) !important;
  color: #fff !important;
  letter-spacing: 0 !important;
  transition: background .15s ease, border-color .15s ease !important;
}
body .et_pb_button:hover,
body .et_pb_contact_submit:hover {
  background: var(--rs-navy-dark) !important;
  padding: 13px 24px !important; /* Divi grows the button on hover; keep it still */
}
body .et_pb_button:after,
body .et_pb_contact_submit:after { display: none !important; } /* Divi's arrow icon */

/* Second button style: add class rs-btn-plain to a Button module */
body .rs-btn-plain .et_pb_button,
body .et_pb_button.rs-btn-plain {
  background: #fff !important;
  color: var(--rs-navy) !important;
}
body .rs-btn-plain .et_pb_button:hover,
body .et_pb_button.rs-btn-plain:hover { background: var(--rs-bg-2) !important; }

/* On navy sections: rs-btn-light (white) and rs-btn-ghost (outline) */
body .et_pb_button.rs-btn-light { background: #fff !important; color: var(--rs-navy) !important; border-color: #fff !important; }
body .et_pb_button.rs-btn-ghost { background: transparent !important; color: #fff !important; border-color: rgba(255,255,255,.5) !important; }
body .et_pb_button.rs-btn-ghost:hover { border-color: #fff !important; }

/* Forms (Admissions contact form) */
body .et_pb_contact_form .input,
body .et_pb_contact_form input[type="text"],
body .et_pb_contact_form textarea,
body .et_pb_contact_form select {
  font-family: var(--rs-font) !important;
  background: #fff !important;
  border: 1px solid var(--rs-rule) !important;
  border-radius: var(--rs-r) !important;
  color: var(--rs-ink) !important;
  font-size: 16px !important;
  padding: 13px 14px !important;
}
body .et_pb_contact_form .input:focus,
body .et_pb_contact_form textarea:focus {
  border-color: var(--rs-navy) !important;
  outline: 2px solid rgba(27,45,91,.12);
}
body .et_pb_contact_form label,
body .et_pb_contact_field_options_title { color: var(--rs-ink); font-weight: 500; }

/* Images: straight corners everywhere */
body .et_pb_image_wrap,
body .et_pb_image img,
body .et_pb_gallery_image img { border-radius: 0; }

/* ------------------------------------------------------------------ */
/* Layout helpers                                                      */
/* ------------------------------------------------------------------ */
/* Wider content than Divi's default 1080px (v2 felt narrow). */
/* Same edges as the header: 1400px including the side padding. The id
   outranks Divi 5's own .et_pb_row:not(...) rule, which caps rows at 1080px. */
#page-container .et_pb_row,
body .container {
  width: calc(100% - 2 * clamp(20px, 4vw, 56px));
  max-width: calc(1400px - 2 * clamp(20px, 4vw, 56px));
}

/* rs-alt on a Section: the light grey band */
.rs-alt { background-color: var(--rs-bg-2) !important; }
/* rs-navy on a Section: navy band with white text */
.rs-navy { background-color: var(--rs-navy) !important; color: #fff; }
.rs-navy h1, .rs-navy h2, .rs-navy h3, .rs-navy h4 { color: #fff; }
.rs-navy p { color: #C3CBE0; }

/* rs-kicker on a Text module: the small grey line above the main title */
.rs-kicker, .rs-kicker p { font-size: 16px; font-weight: 500; color: var(--rs-muted); }

/* rs-title-1line on the hero title: stays on one line from tablet up */
@media (min-width: 981px) { .rs-title-1line h1 { white-space: nowrap; } }

/* rs-quote on a Text module: the hero quote */
.rs-quote blockquote, .rs-quote p { border: 0; padding: 0; margin: 0; font-size: 21px; line-height: 1.5; color: var(--rs-ink); }
.rs-quote cite, .rs-quote footer { display: block; font-style: normal; font-size: 15px; color: var(--rs-muted); margin-top: 8px; }

/* rs-photo on an Image module: fixed proportions, cropped neatly */
.rs-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rs-photo-wide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ------------------------------------------------------------------ */
/* Accreditation strip (Section: rs-accred, each column: rs-accred-cell) */
/* ------------------------------------------------------------------ */
.rs-accred { background: var(--rs-navy) !important; border-top: 3px solid var(--rs-gold); color: #fff; }
.rs-accred .et_pb_row { padding: 0 !important; }
.rs-accred-cell { padding: 34px 36px !important; border-left: 1px solid rgba(255,255,255,.14); margin: 0 !important; }
.rs-accred-cell:first-child { border-left: 0; padding-left: 0 !important; }
.rs-accred-cell h4, .rs-accred-cell strong { display: block; color: var(--rs-gold); font-size: 17px; font-weight: 600; }
.rs-accred-cell p { color: #BAC3DA; font-size: 15px; }

/* ------------------------------------------------------------------ */
/* Cards (Kindergarten / School / Community)  column: rs-card          */
/* ------------------------------------------------------------------ */
.rs-card { background: #fff; border: 1px solid var(--rs-rule); border-radius: var(--rs-r); overflow: hidden; }
.rs-card .et_pb_image { margin: 0 !important; }
.rs-card .et_pb_image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.rs-card .et_pb_text { padding: 28px 30px 32px; margin: 0 !important; }
.rs-card p { color: var(--rs-muted); font-size: 16px; }
/* The three cards share one height on desktop, whatever the text length. */
@media (min-width: 981px) {
  #page-container .et_pb_row.rs-cards { display: flex; align-items: stretch; }
  .rs-cards .rs-card .et_pb_text { flex: 1 1 auto; }
}

/* ------------------------------------------------------------------ */
/* Document card (Curriculum)  column or module: rs-doc                */
/* ------------------------------------------------------------------ */
.rs-doc { background: #fff; border: 1px solid var(--rs-rule); border-top: 3px solid var(--rs-gold); border-radius: var(--rs-r); padding: 34px 36px !important; }
.rs-doc .rs-meta, .rs-doc .rs-meta p { color: var(--rs-muted); font-size: 15px; }

/* ------------------------------------------------------------------ */
/* Testimonials  Section: rs-navy, each column: rs-voice               */
/* ------------------------------------------------------------------ */
.rs-voice { background: var(--rs-navy-2); border: 1px solid rgba(255,255,255,.1); border-radius: var(--rs-r); padding: 38px 40px !important; }
.rs-voice .rs-pull, .rs-voice .rs-pull p { color: #fff; font-size: 21px; font-weight: 600; line-height: 1.4; }
.rs-voice p { color: #C3CBE0; font-size: 15.5px; line-height: 1.75; }
.rs-voice .rs-who { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(243,198,105,.35); }
.rs-voice .rs-who p { color: var(--rs-gold); font-weight: 600; font-size: 16px; }
.rs-voice .rs-who p + p { color: #9AA5C3; font-weight: 400; font-size: 14px; }

/* ------------------------------------------------------------------ */
/* Document list  Text module: rs-doclist, with a plain list of links  */
/* ------------------------------------------------------------------ */
.rs-doclist ul { list-style: none !important; padding: 0 !important; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rs-doclist li { padding: 0; }
.rs-doclist li a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 76px; padding: 16px 20px; background: #fff;
  border: 1px solid var(--rs-rule) !important; border-radius: var(--rs-r);
  color: var(--rs-navy); font-weight: 600; font-size: 15.5px; line-height: 1.35; text-wrap: balance;
}
.rs-doclist li a:hover { border-color: var(--rs-navy) !important; }
.rs-doclist li a::after { content: "\2192"; color: var(--rs-faint); font-weight: 400; }
.rs-doclist li small { display: block; color: var(--rs-faint); font-weight: 400; font-size: 13.5px; }
.rs-doclist h4 { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--rs-muted); margin: 26px 0 10px; }
.rs-doclist h4:first-child { margin-top: 0; }

/* ------------------------------------------------------------------ */
/* Enrolment box  Row: rs-cta                                          */
/* ------------------------------------------------------------------ */
.rs-cta { background: var(--rs-gold-soft); border: 1px solid var(--rs-gold-line); border-radius: var(--rs-r); padding: 56px 64px !important; }
.rs-cta p { color: var(--rs-muted); font-size: 18px; }

/* ------------------------------------------------------------------ */
/* Header and footer: [rs_header] / [rs_footer] in the Theme Builder    */
/* ------------------------------------------------------------------ */
/* The Theme Builder wraps each shortcode in a section, row and module;
   strip their spacing so the header and footer run edge to edge. */
.et-l--header .et_pb_section, .et-l--header .et_pb_row, .et-l--header .et_pb_column, .et-l--header .et_pb_module,
.et-l--footer .et_pb_section, .et-l--footer .et_pb_row, .et-l--footer .et_pb_column, .et-l--footer .et_pb_module {
  padding: 0 !important; margin: 0 !important; width: 100% !important; max-width: none !important; background: transparent;
}
/* Divi gives #page-container overflow-y: hidden, which stops a sticky
   header from sticking. clip trims the same overflow without that side effect. */
#page-container { overflow: clip !important; }
/* In-page links (#curriculum) are scrolled by a small script in
   inc/layout.php. No smooth-scroll CSS: Divi's smoothscroll.js already
   animates the wheel, and the two together make scrolling feel heavy. */
.et-l--header { position: sticky; top: 0; z-index: 99; }
body.admin-bar .et-l--header { top: var(--wp-admin--admin-bar--height, 32px); }
/* On phones the WordPress admin bar scrolls away, so no offset there. */
@media (max-width: 600px) { body.admin-bar .et-l--header { top: 0; } }

.rs-wrap { max-width: 1400px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); box-sizing: border-box; }
.rs-ico { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.rs-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: var(--rs-r); font: 600 15px/1.2 var(--rs-font); text-decoration: none !important; border: 1px solid var(--rs-navy) !important; white-space: nowrap; }
.rs-btn--solid { background: var(--rs-navy); color: #fff !important; }
.rs-btn--solid:hover { background: var(--rs-navy-dark); }

.rs-site-header { background: #fff; border-bottom: 1px solid var(--rs-rule); font-family: var(--rs-font); }
.rs-site-header__bar { display: flex; align-items: center; gap: 24px; height: 90px; }
.rs-brand { display: flex; align-items: center; gap: 14px; text-decoration: none !important; border: 0 !important; margin-right: auto; }
.rs-brand img { width: 56px; height: 56px; }
.rs-brand b { display: block; font-weight: 700; font-size: 19px; line-height: 1.15; color: var(--rs-navy); white-space: nowrap; }
.rs-brand small { display: block; font-size: 13px; font-weight: 500; color: var(--rs-muted); }

.rs-menu { display: flex; align-items: center; list-style: none !important; margin: 0 !important; padding: 0 !important; }
.rs-menu li { position: relative; list-style: none; padding: 0 !important; margin: 0; }
.rs-menu > li > a { display: flex; align-items: center; gap: 5px; padding: 10px 13px; font-size: 15px; font-weight: 500; color: var(--rs-ink) !important; text-decoration: none !important; border: 0 !important; white-space: nowrap; border-radius: var(--rs-r); }
.rs-menu > li > a:hover, .rs-menu > li:focus-within > a { background: var(--rs-bg-2); color: var(--rs-navy) !important; }
.rs-menu > li.current-menu-item > a { color: var(--rs-navy) !important; font-weight: 600; border-radius: 0; box-shadow: inset 0 -3px 0 var(--rs-gold); }
.rs-menu > li.menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .55; margin-left: 2px; }
.rs-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none !important; margin: 0 !important; padding: 6px 0 !important; background: #fff; border: 1px solid var(--rs-rule); border-top: 2px solid var(--rs-gold); border-radius: 0 0 var(--rs-r) var(--rs-r); box-shadow: 0 14px 30px -16px rgba(20,34,74,.3); opacity: 0; visibility: hidden; transition: opacity .15s ease; z-index: 10; }
.rs-menu li:hover > .sub-menu, .rs-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
.rs-menu .sub-menu a { display: block; padding: 10px 18px; font-size: 14.5px; color: var(--rs-ink) !important; text-decoration: none !important; border: 0 !important; }
.rs-menu .sub-menu a:hover { background: var(--rs-bg-2); color: var(--rs-navy) !important; }
.rs-burger { display: none; background: #fff; border: 1px solid var(--rs-rule); border-radius: var(--rs-r); padding: 9px 14px; font: 600 14px var(--rs-font); color: var(--rs-navy); cursor: pointer; }

@media (max-width: 1200px) {
  .rs-nav, .rs-site-header__cta { display: none; }
  .rs-burger { display: inline-block; }
  body.rs-nav-open .rs-nav { display: block; position: absolute; left: 0; right: 0; top: 90px; background: #fff; border-bottom: 1px solid var(--rs-rule); padding: 8px clamp(20px, 4vw, 56px) 18px; max-height: calc(100vh - 90px); overflow-y: auto; }
  body.rs-nav-open .rs-menu { flex-direction: column; align-items: stretch; }
  body.rs-nav-open .rs-menu > li > a { padding: 12px 0; border-bottom: 1px solid var(--rs-rule) !important; border-radius: 0; box-shadow: none; }
  body.rs-nav-open .rs-menu .sub-menu { position: static; opacity: 1; visibility: visible; border: 0; box-shadow: none; padding: 0 0 6px 14px !important; }
}
@media (max-width: 560px) {
  /* Contact cards: label above the value, so the e-mail never breaks mid-word */
  .rs-info .rs-fee-list li { flex-direction: column; align-items: flex-start; gap: 2px; }
  .rs-info .rs-fee-list li b { text-align: left; overflow-wrap: normal; }
  .rs-brand b { font-size: 16px; }
  .rs-brand img { width: 46px; height: 46px; }
}

.rs-site-footer { background: var(--rs-navy-dark); color: #AEB7CF; font: 15px/1.65 var(--rs-font); }
.rs-site-footer__cols { display: grid; grid-template-columns: 5fr 4fr 4fr 3fr; gap: 44px; padding: 72px 0 52px; }
.rs-site-footer .rs-brand b { color: #fff; white-space: normal; }
.rs-site-footer .rs-brand small { color: #AEB7CF; }
.rs-site-footer h4 { color: var(--rs-gold); font-size: 15px; font-weight: 600; margin: 4px 0 14px; padding: 0; }
.rs-site-footer p { color: #AEB7CF; margin: 0 0 6px; padding: 0; font-size: 15px; }
.rs-site-footer a { color: #AEB7CF !important; text-decoration: none !important; border: 0 !important; }
.rs-site-footer a:hover { color: #fff !important; }
.rs-site-footer__about { margin-top: 18px !important; max-width: 340px; }
.rs-footer-menu { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.rs-footer-menu li { list-style: none; margin: 0 0 7px; padding: 0 !important; }
.rs-social { display: flex; gap: 8px; margin-top: 22px; }
.rs-social a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.2) !important; border-radius: var(--rs-r); display: flex; align-items: center; justify-content: center; color: #C9D0E2 !important; }
.rs-social a:hover { border-color: var(--rs-gold) !important; color: var(--rs-gold) !important; }
.rs-site-footer__base { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
@media (max-width: 980px) { .rs-site-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rs-site-footer__cols { grid-template-columns: 1fr; } .rs-site-footer__base { flex-direction: column; gap: 4px; } }

/* ------------------------------------------------------------------ */
/* Cookie banner and Cookie settings: inc/consent.php                   */
/* ------------------------------------------------------------------ */
.rs-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999; max-width: 760px; margin: 0 auto; background: #fff; color: var(--rs-ink); border: 1px solid var(--rs-rule); border-top: 3px solid var(--rs-gold); border-radius: var(--rs-r); box-shadow: 0 10px 30px rgba(27,45,91,.16); padding: 18px 22px; display: flex; align-items: center; gap: 18px 24px; font: 15px/1.5 var(--rs-font); }
.rs-consent[hidden] { display: none; }
.rs-consent p { margin: 0; padding: 0; flex: 1 1 auto; }
.rs-consent a { color: var(--rs-navy); border-bottom: 1px solid var(--rs-gold-ink); text-decoration: none; }
.rs-consent__btns { display: flex; gap: 10px; flex: none; }
.rs-consent .rs-btn { padding: 10px 20px; cursor: pointer; }
.rs-cookie-settings { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; border-bottom: 1px solid currentColor; }
.rs-site-footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.rs-embed { position: relative; aspect-ratio: 16 / 9; background: var(--rs-navy); color: #fff; border-radius: var(--rs-r); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; }
.rs-embed p { color: #C9D1E6; font-size: 14px; max-width: 420px; padding: 0 !important; }
.rs-embed .rs-btn { cursor: pointer; }
.rs-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--rs-r); }
@media (max-width: 640px) {
  .rs-consent { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; padding: 16px; }
  .rs-consent__btns .rs-btn { flex: 1; justify-content: center; }
}

/* ------------------------------------------------------------------ */
/* Page layouts imported from the layout files (layouts/*.json)        */
/* ------------------------------------------------------------------ */
/* Section rhythm: generous, the same on every page. */
#et-main-area .et_pb_section { padding-top: 88px; padding-bottom: 88px; }
#et-main-area .et_pb_section.rs-accred { padding-top: 0; padding-bottom: 0; }
#et-main-area .et_pb_section.rs-hero { padding-top: 64px; padding-bottom: 72px; }
#et-main-area .et_pb_section.rs-cta-section { padding-top: 0; }

/* Headings inside Divi text modules follow the theme sizes. */
html body .et_pb_text h1 { font-size: clamp(34px, 3.4vw, 52px); margin-bottom: 26px; }
html body .et_pb_text h2 { font-size: clamp(28px, 2.6vw, 38px); margin-bottom: 20px; }
html body .et_pb_text h3 { font-size: 22px; margin-bottom: 10px; }
html body .et_pb_text h4 { font-size: 17px; margin-bottom: 2px; }
.rs-lead, .et_pb_text p.rs-lead { font-size: 20px; line-height: 1.55; color: var(--rs-ink); }

/* Vertically centred two-column rows */
.et_pb_row.rs-middle, .et_pb_row.rs-hero-row { align-items: center; }

/* Buttons written as links inside a text module: <p class="rs-btns"> */
.rs-btns { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }
.rs-btns--end { justify-content: flex-end; }
.rs-btn--plain { background: #fff; color: var(--rs-navy) !important; }
.rs-btn--plain:hover { background: var(--rs-bg-2); }
.rs-btn--light { background: #fff; color: var(--rs-navy) !important; border-color: #fff !important; }

/* Photo placeholder: a Text module with class rs-ph, until real photos */
.et_pb_text.rs-ph { background: #E4E6EA; aspect-ratio: 4 / 3; display: flex; align-items: flex-end; padding: 14px 16px !important; margin: 0 !important; }
.et_pb_text.rs-ph p { color: var(--rs-faint); font-size: 13px; }

/* COBIS plaque in a white frame */
.rs-plaque { border: 1px solid var(--rs-rule); background: #fff; padding: 28px !important; }

/* Cards: placeholder or image on top, text below */
.rs-card .et_pb_text.rs-ph { aspect-ratio: 3 / 2; }
.rs-card .et_pb_text:not(.rs-ph) { padding: 28px 30px 32px; }
.rs-card { display: flex; flex-direction: column; }

/* Document list items: title with a small line under it */
.rs-doclist li a span { display: block; }

/* Testimonials: names line */
.rs-voice .et_pb_text { margin-bottom: 0 !important; }
.rs-voice .rs-pull { margin-bottom: 16px !important; }

/* ------------------------------------------------------------------ */
/* Inner pages                                                         */
/* ------------------------------------------------------------------ */
/* Page heading band: title and intro, a rule underneath */
#et-main-area .et_pb_section.rs-page-head { padding-top: 44px; padding-bottom: 40px; border-bottom: 1px solid var(--rs-rule); }
#page-container .rs-page-head .et_pb_row { padding-top: 0 !important; padding-bottom: 0 !important; }
html body .rs-page-head .et_pb_text h1 { margin-bottom: 10px; }
html body .rs-page-head .et_pb_text h1:last-child { margin-bottom: 0; }
#et-main-area .et_pb_section.rs-page-head + .et_pb_section { padding-top: 64px; }
.rs-narrow { max-width: 860px; }
.rs-eyebrow, .et_pb_text p.rs-eyebrow { font-size: 16px; font-weight: 500; color: var(--rs-muted); padding-bottom: 8px; }
.et_pb_row.rs-top { align-items: flex-start; }
.et_pb_row.rs-story-more { padding-top: 0; }

/* Photos: straight crops at fixed proportions */
.rs-photo-wide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.rs-photo-tall img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Embedded video (Code module rs-video): full column width, 16:9 */
.rs-video iframe { display: block; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; border: 0; }

/* Toggles (Programs) */
.et_pb_toggle.rs-toggle { background: #fff !important; border: 1px solid var(--rs-rule) !important; border-radius: var(--rs-r); padding: 0 !important; margin-bottom: 10px !important; }
.et_pb_toggle.rs-toggle .et_pb_toggle_title { font-family: var(--rs-font); font-size: 17px; font-weight: 600; color: var(--rs-navy) !important; padding: 18px 56px 18px 22px; margin: 0; }
/* A thin plus / minus instead of Divi's filled icon */
.et_pb_toggle.rs-toggle .et_pb_toggle_title:before { content: "+" !important; font-family: var(--rs-font) !important; font-weight: 400; font-size: 26px; line-height: 1; right: 22px; margin-top: -13px; color: var(--rs-gold-ink); }
.et_pb_toggle.rs-toggle.et_pb_toggle_open .et_pb_toggle_title:before { content: "\2212" !important; }
.et_pb_toggle.rs-toggle.et_pb_toggle_open { border-color: var(--rs-navy) !important; }
.et_pb_toggle.rs-toggle .et_pb_toggle_content { padding: 0 22px 20px; color: var(--rs-ink); }

/* ------------------------------------------------------------------ */
/* Admissions                                                          */
/* ------------------------------------------------------------------ */
.rs-pos-top img { object-position: center 25%; }

/* Fee cards */
.rs-fee, .rs-info { background: #fff; border: 1px solid var(--rs-rule); border-top: 3px solid var(--rs-gold); border-radius: var(--rs-r); padding: 26px 26px 22px !important; }
.rs-fee h3, .rs-info h3 { margin-bottom: 2px !important; }
.rs-fee .rs-meta { color: var(--rs-muted); font-size: 15px; padding-bottom: 6px; }
.rs-fee-list { list-style: none !important; margin: 10px 0 0 !important; padding: 0 !important; }
.rs-fee-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 0 !important; border-top: 1px solid var(--rs-rule); font-size: 15.5px; }
.rs-fee-list li span { color: var(--rs-muted); }
.rs-fee-list li b { color: var(--rs-navy); font-weight: 600; white-space: nowrap; text-align: right; }
.rs-fee-list li span small { display: block; font-size: 13px; color: var(--rs-faint); }
/* Contact cards: values are links and may be long (e-mail) */
.rs-info { padding: 30px 32px 24px !important; }
.rs-info .rs-fee-list li b { white-space: normal; overflow-wrap: anywhere; font-weight: 500; }
.rs-info .rs-fee-list li a { color: var(--rs-navy); border-bottom: 1px solid var(--rs-gold-ink); }

/* The inquiry form in a white panel */
.et_pb_contact_form_container.rs-form { background: #fff; border: 1px solid var(--rs-rule); border-radius: var(--rs-r); padding: 32px !important; }
.rs-form .et_pb_contact_field { margin-bottom: 14px !important; }
.rs-form .et_contact_bottom_container { margin-top: 6px; align-items: center; }
.rs-form .et_pb_contact_captcha_question { color: var(--rs-ink); font-weight: 600; }

/* Come Visit Us: photo with the text under it */
.rs-visit .et_pb_image { margin-bottom: 26px !important; }

/* ------------------------------------------------------------------ */
/* Policy pages (ordinary pages under Policies, no Divi builder)        */
/* ------------------------------------------------------------------ */
.rs-prose-page #main-content .container { width: calc(100% - 2 * clamp(20px, 4vw, 56px)); max-width: 860px; padding-top: 64px; }
.rs-prose-page #main-content .container:before { display: none; } /* Divi's sidebar divider */
.rs-prose-page #left-area { width: 100%; padding: 0 0 72px !important; float: none; }
.rs-prose-page #sidebar { display: none; }
.rs-prose-page .entry-title { font-size: clamp(30px, 3vw, 44px); margin-bottom: 18px; }
.rs-policy-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 0 22px; margin-bottom: 30px; border-bottom: 1px solid var(--rs-rule); }
.rs-policy-back { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rs-gold-ink) !important; }
.rs-policy-back:before { content: "\2190  "; }
.rs-policy-print { cursor: pointer; padding: 9px 18px; font-size: 14px; }
.rs-prose, .rs-prose-page .entry-content { font-size: 17px; line-height: 1.7; }
.rs-prose h2, .rs-prose-page .entry-content h2 { font-size: 24px !important; margin: 38px 0 12px; }
.rs-prose h3, .rs-prose-page .entry-content h3 { font-size: 19px !important; margin: 28px 0 8px; }
.rs-prose h4, .rs-prose-page .entry-content h4 { font-size: 17px !important; margin: 22px 0 6px; }
.rs-prose p, .rs-prose-page .entry-content p { padding-bottom: 14px; }
.rs-prose ul, .rs-prose ol, .rs-prose-page .entry-content ul, .rs-prose-page .entry-content ol { margin: 0 0 18px 22px; padding: 0 !important; line-height: 1.65; }
.rs-prose ul { list-style: disc !important; }
.rs-prose li, .rs-prose-page .entry-content li { margin-bottom: 6px; padding-left: 4px; }
.rs-prose-page .entry-content table { width: 100%; border-collapse: collapse; margin: 6px 0 22px; font-size: 15px; border: 1px solid var(--rs-rule); }
.rs-prose-page .entry-content th, .rs-prose-page .entry-content td { padding: 10px 12px; border-top: 1px solid var(--rs-rule); text-align: left; vertical-align: top; }
.rs-prose-page .entry-content thead th { background: var(--rs-bg-2); color: var(--rs-navy); font-weight: 600; border-top: 0; }
@media (max-width: 700px) { .rs-prose-page .entry-content table { display: block; overflow-x: auto; } }
.rs-prose table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 15.5px; border: 1px solid var(--rs-rule); }
.rs-prose td, .rs-prose th { border: 1px solid var(--rs-rule); padding: 10px 12px; vertical-align: top; }
.rs-prose td p { padding: 0 !important; }
.rs-prose tr:first-child td { background: var(--rs-bg-2); font-weight: 600; color: var(--rs-navy); }
.rs-prose .rs-policy-meta { color: var(--rs-muted); font-size: 15px; }
.rs-prose table { display: block; overflow-x: auto; }
/* On phones a wide table scrolls sideways instead of breaking words letter by letter */
.rs-prose table tbody { display: table; width: 100%; min-width: 520px; }
.rs-prose td, .rs-prose td p { overflow-wrap: normal !important; word-break: normal; hyphens: manual; }
.rs-prose a { overflow-wrap: anywhere; }
/* Long blank lines (____) in the complaints form wrap instead of running off a phone screen */
.rs-prose li, .rs-prose p, .rs-prose-page .entry-content li, .rs-prose-page .entry-content p { overflow-wrap: anywhere; }

/* Policies index: cards of equal height, button at the bottom */
.et_pb_row.rs-policy-row { padding: 12px 0 !important; align-items: stretch; }
.rs-policy-card .et_pb_text, .rs-policy-card .et_pb_text_inner { height: 100%; display: flex; flex-direction: column; }
.rs-policy-card .rs-btns { margin-top: auto; padding-top: 14px; }
.rs-policy-card p { color: var(--rs-ink); font-size: 16px; }

/* Policies index: one compact row per policy, grouped */
.rs-policy-groups h3 { font-size: 14px !important; letter-spacing: .06em; text-transform: uppercase; color: var(--rs-muted) !important; margin: 34px 0 10px !important; }
.rs-policy-groups h3:first-child { margin-top: 0 !important; }
.rs-policy-list { list-style: none !important; margin: 0 !important; padding: 0 !important; background: #fff; border: 1px solid var(--rs-rule); border-radius: var(--rs-r); }
.rs-policy-list li { padding: 0 !important; margin: 0; border-top: 1px solid var(--rs-rule); }
.rs-policy-list li:first-child { border-top: 0; }
.rs-policy-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t arrow" "d arrow"; column-gap: 20px; row-gap: 2px; align-items: center; padding: 16px 22px; border: 0 !important; text-decoration: none; }
.rs-policy-list a::after { content: "\2192"; grid-area: arrow; color: var(--rs-gold-ink); font-size: 18px; transition: transform .15s ease; }
.rs-policy-list a:hover { background: var(--rs-bg-2); }
.rs-policy-list a:hover::after { transform: translateX(3px); }
.rs-pl-title { grid-area: t; font-weight: 600; font-size: 17px; color: var(--rs-navy); line-height: 1.35; }
.rs-pl-desc { grid-area: d; font-size: 15px; color: var(--rs-muted); line-height: 1.5; }
@media (min-width: 861px) {
  .rs-policy-list a { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) auto; grid-template-areas: "t d arrow"; column-gap: 32px; padding: 18px 26px; }
}

/* Printing a policy: only the text */
@media print {
  .et-l--header, .et-l--footer, .rs-policy-bar, #cookie-notice, #wpadminbar { display: none !important; }
  .rs-prose-page #main-content .container { padding-top: 0; max-width: none; width: 100%; }
  .rs-prose { padding-bottom: 0; font-size: 12pt; }
  body { color: #000; }
}

/* ------------------------------------------------------------------ */
/* Blog                                                                */
/* ------------------------------------------------------------------ */
/* Category links under the blog title */
.rs-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.rs-chips a { padding: 8px 14px; border: 1px solid var(--rs-rule) !important; border-radius: var(--rs-r); font-size: 14.5px; font-weight: 500; color: var(--rs-navy); background: #fff; }
.rs-chips a:hover { border-color: var(--rs-navy) !important; }
.rs-quote-line { font-size: 19px; font-weight: 600; color: var(--rs-navy); }

/* Blog module grid: white cards, straight images, theme type */
.rs-blog .et_pb_post { background: #fff; border: 1px solid var(--rs-rule) !important; border-radius: var(--rs-r); padding: 0 !important; overflow: hidden; box-shadow: none !important; }
.rs-blog .et_pb_post .et_pb_image_container { margin: 0 !important; }
.rs-blog .et_pb_post .et_pb_image_container img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0; }
.rs-blog .et_pb_post .entry-title, .rs-blog .et_pb_post .post-meta, .rs-blog .et_pb_post .post-content { padding-left: 24px; padding-right: 24px; }
.rs-blog .et_pb_post .entry-title { margin-top: 20px !important; font-size: 19px !important; line-height: 1.3 !important; }
.rs-blog .et_pb_post .entry-title a { color: var(--rs-navy) !important; border: 0 !important; }
.rs-blog .et_pb_post .post-meta { font-size: 13.5px !important; color: var(--rs-faint) !important; }
.rs-blog .et_pb_post .post-meta a { color: var(--rs-gold-ink) !important; border: 0 !important; }
.rs-blog .et_pb_post .post-content { padding-bottom: 24px; font-size: 15.5px; color: var(--rs-muted); }
.rs-blog .et_pb_post .more-link { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--rs-navy) !important; border-bottom: 1px solid var(--rs-gold-ink) !important; }
.rs-blog .pagination a { color: var(--rs-navy) !important; font-weight: 600; border: 0 !important; }

/* A blog article (plain, not built with Divi) */
.rs-prose-page.single-post .et_post_meta_wrapper img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: 22px 0 8px; }
.rs-prose-page.single-post .post-meta { color: var(--rs-faint); font-size: 14px; padding-bottom: 6px; }
.rs-prose-page.single-post .post-meta a { color: var(--rs-gold-ink); border: 0 !important; }
.rs-prose-page .entry-content img { height: auto; }

/* ------------------------------------------------------------------ */
/* 404 / no results (includes/no-results.php)                          */
/* ------------------------------------------------------------------ */
.error404 #main-content .container, .search-no-results #main-content .container { padding-top: 0; }
.error404 #main-content .container:before { display: none; }
.error404 #left-area { width: 100%; float: none; padding: 0 !important; }
.error404 #sidebar { display: none; }
.rs-notfound { max-width: 760px; padding: 96px 0 120px; }
.rs-notfound h1 { font-size: clamp(32px, 3.4vw, 48px); margin-bottom: 14px; }

/* ------------------------------------------------------------------ */
/* Student Profile pages: the coloured tables of the school documents  */
/* ------------------------------------------------------------------ */
.rs-profile-page #main-content .container { max-width: 1100px; }
.gp-banner { background: #EAF1FB; border: 1px solid var(--rs-navy); border-radius: var(--rs-r); text-align: center; padding: 18px 22px; margin: 0 0 30px; }
.gp-banner strong { display: block; color: var(--rs-navy); text-transform: uppercase; letter-spacing: .04em; font-size: 15px; }
.gp-banner span { display: block; color: #2B579A; font-style: italic; font-size: 15px; margin-top: 4px; }
.gp-quote { border: 1px solid var(--rs-navy); border-radius: var(--rs-r); text-align: center; padding: 18px 24px; margin: 26px 0; }
.gp-quote strong { display: block; color: var(--rs-navy); font-size: 17px; }
.gp-quote span { display: block; color: #2B579A; font-style: italic; font-size: 15px; margin-top: 4px; }
.gp-quote.gp-blue { background: #EEF3FA; }
.gp-quote.gp-slate { background: #DDE8EC; text-align: left; }
.gp-quote.gp-gold { background: #FFF3B8; border-color: #2B579A; text-align: left; }
.gp-quote.gp-gold strong { font-weight: 500; color: var(--rs-ink); }

.gp-grid { display: grid; gap: 0; margin: 18px 0 26px; border: 1px solid #C9D3E3; border-radius: var(--rs-r); overflow: hidden; }
.gp-cols-1 { grid-template-columns: 1fr; }
.gp-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gp-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gp-cell { padding: 18px 20px 14px; border-right: 1px solid rgba(27,45,91,.12); border-bottom: 1px solid rgba(27,45,91,.12); }
.gp-cell h4 { font-size: 16px !important; margin: 0 0 8px !important; color: var(--rs-navy) !important; }
.gp-cell p, .gp-cell li { font-size: 15.5px; line-height: 1.6; }
.gp-cell p { font-style: italic; padding: 0 !important; }
.gp-cell ul, .gp-box ul { margin: 0 0 4px 18px !important; padding: 0 !important; list-style: disc !important; }
.gp-cell li, .gp-box li { margin-bottom: 6px; }
/* Strong fills */
.gp-navy { background: var(--rs-navy) !important; color: #fff; }
.gp-blue { background: #2B579A; color: #fff; }
.gp-cell.gp-navy h4, .gp-cell.gp-blue h4 { color: #fff !important; }
.gp-cell.gp-navy p, .gp-cell.gp-blue p { color: #E6ECF7; }
/* Coloured header over a tinted body */
.gp-navy-head h4, .gp-blue-head h4, .gp-red-head h4 { margin: -18px -20px 12px !important; padding: 12px 20px; color: #fff !important; text-transform: uppercase; letter-spacing: .03em; font-size: 15px !important; }
.gp-navy-head { background: #EEF2F8; } .gp-navy-head h4 { background: var(--rs-navy); }
.gp-blue-head { background: #EAF1FB; } .gp-blue-head h4 { background: #2B579A; }
.gp-red-head { background: #FBECEC; } .gp-red-head h4 { background: #B23A3A; }
/* Soft fills */
.gp-soft-blue { background: #E9F0FA; } .gp-soft-sky { background: #E3EEF9; } .gp-soft-gold { background: #FDF4DC; }
.gp-soft-peach { background: #FBE3D2; } .gp-soft-slate { background: #DDE6EB; } .gp-soft-lavender { background: #E3E6F6; }
.gp-soft-cream { background: #FDF5DF; } .gp-soft-amber { background: #FBE2A6; } .gp-soft-sage { background: #E3EFDC; }
.gp-soft-violet { background: #ECE4F3; } .gp-soft-teal { background: #D6EFF0; } .gp-soft-rose { background: #F3E1E7; }
.gp-soft-apricot { background: #F7D2B0; } .gp-soft-orange { background: #F0BE8A; } .gp-plain { background: #fff; }
.gp-red-title h4, .gp-cell.red-title h4, .gp-box.red-title h4 { color: #B23A3A !important; }
.gp-blue-title h4, .gp-cell.blue-title h4, .gp-box.blue-title h4 { color: #2B579A !important; }

/* Boxes: a heading and a list in one coloured panel */
.gp-box { border: 1px solid #C9D3E3; border-left-width: 1px; border-radius: var(--rs-r); padding: 16px 20px 10px; margin: 14px 0; }
.gp-box h4 { font-size: 16px !important; margin: 0 0 10px !important; color: var(--rs-navy) !important; }
.gp-box li { font-size: 15.5px; }

/* Two-column domain tables */
.gp-table-wrap { overflow-x: auto; margin: 18px 0 24px; }
.gp-table { width: 100%; border-collapse: collapse; font-size: 15.5px; border: 1px solid #C9D3E3; min-width: 520px; }
.gp-table thead th { color: #fff; text-align: left; padding: 12px 16px; text-transform: uppercase; letter-spacing: .03em; font-size: 14px; }
.gp-table tbody th { text-align: left; padding: 14px 16px; width: 32%; color: var(--rs-navy); font-weight: 600; border-top: 1px solid #C9D3E3; }
.gp-table tbody td { padding: 14px 16px; border-top: 1px solid #C9D3E3; background: #fff; }
.gp-note { border: 1px solid #C9D3E3; border-radius: var(--rs-r); padding: 14px 20px; margin-top: 26px; color: var(--rs-muted); font-size: 15px; }
.gp-note p { padding: 0 0 4px !important; }

@media (max-width: 860px) {
  .gp-cols-2, .gp-cols-3 { grid-template-columns: 1fr; }
  /* Two-column tables stack on phones: the heading bar keeps the column
     title, each row shows its tinted label above the text. */
  .gp-table-wrap { overflow-x: visible; }
  .gp-table { min-width: 0; }
  .gp-table, .gp-table thead, .gp-table tbody, .gp-table tr,
  .gp-table th, .gp-table td { display: block; width: auto; }
  .gp-table thead th:first-child { display: none; }
  .gp-table tbody th { width: auto; padding: 10px 16px; }
  .gp-table tbody td { border-top: 0; }
}

/* ------------------------------------------------------------------ */
/* Our Team (/our-team/): ordinary page content, body class rs-team-page */
/* Cards: .rs-person (photo or initials, name, roles, optional bio)      */
/* ------------------------------------------------------------------ */
.rs-team-page #main-content .container { width: calc(100% - 2 * clamp(20px, 4vw, 56px)); max-width: 1288px; padding-top: 44px; }
.rs-team-page #main-content .container:before { display: none; }
.rs-team-page #left-area { width: 100%; padding: 0 0 88px !important; float: none; }
.rs-team-page #sidebar { display: none; }
.rs-team-page .entry-title { font-size: clamp(34px, 3.4vw, 52px); margin-bottom: 10px; }
.rs-team-page .entry-content p.rs-team-lead { font-size: 20px; line-height: 1.55; color: var(--rs-ink); max-width: 860px; padding-bottom: 0; }
.rs-team-group { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--rs-rule); }
html body .rs-team-group h2 { font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 26px; }
.rs-team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 24px; }
.rs-team-grid--lead { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.rs-person { background: #fff; border: 1px solid var(--rs-rule); border-radius: var(--rs-r); overflow: hidden; display: flex; flex-direction: column; }
.rs-person-photo { aspect-ratio: 4 / 5; background: #E9EDF5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rs-person-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rs-person-photo span { font-size: 40px; font-weight: 600; letter-spacing: .04em; color: #8A98B6; }
.rs-person-text { padding: 18px 20px 22px; }
html body .rs-person-text h3 { font-size: 19px; margin: 0 0 6px; padding: 0; }
.rs-team-page .entry-content .rs-person-text p { padding-bottom: 0; font-size: 15px; line-height: 1.5; }
.rs-team-page .entry-content p.rs-person-role { color: var(--rs-gold-ink); font-weight: 600; }
.rs-team-page .entry-content p.rs-person-more { color: var(--rs-muted); }
.rs-person-bio { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rs-rule); }
.rs-team-page .entry-content .rs-person-bio p { color: var(--rs-ink); padding-bottom: 8px; }
/* Founders: photo beside the text */
.rs-team-grid--lead .rs-person { flex-direction: row; }
.rs-team-grid--lead .rs-person-photo { flex: 0 0 40%; aspect-ratio: auto; min-height: 320px; }
.rs-team-grid--lead .rs-person-text { padding: 28px 30px; }
html body .rs-team-grid--lead h3 { font-size: 24px; }
@media (max-width: 1100px) { .rs-team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) { .rs-team-page #main-content .container { padding-top: 32px; } }
@media (max-width: 860px) {
  .rs-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rs-team-grid--lead { grid-template-columns: 1fr; }
}
/* Phones: one compact card per row, small photo on the left */
@media (max-width: 560px) {
  .rs-team-grid, .rs-team-grid--lead { grid-template-columns: 1fr; gap: 14px; }
  .rs-person, .rs-team-grid--lead .rs-person { flex-direction: row; }
  .rs-person-photo, .rs-team-grid--lead .rs-person-photo { flex: 0 0 104px; aspect-ratio: 4 / 5; min-height: 0; align-self: flex-start; }
  .rs-person-photo span { font-size: 26px; }
  .rs-person-text, .rs-team-grid--lead .rs-person-text { padding: 14px 16px; }
  html body .rs-team-grid--lead h3 { font-size: 19px; }
  .rs-team-group { margin-top: 36px; padding-top: 30px; }
}

/* ------------------------------------------------------------------ */
/* Phones and tablets                                                  */
/* ------------------------------------------------------------------ */
@media (max-width: 980px) {
  body { font-size: 16px; }
  .rs-accred-cell { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); padding: 20px 0 !important; }
  .rs-accred-cell:first-child { border-top: 0; }
  .rs-doclist ul { grid-template-columns: 1fr; }
  .rs-cta { padding: 36px 28px !important; }
  .rs-voice { padding: 28px !important; }
  #et-main-area .et_pb_section { padding-top: 56px; padding-bottom: 56px; }
  #et-main-area .et_pb_section.rs-hero { padding-top: 36px; padding-bottom: 48px; }
  #et-main-area .et_pb_section.rs-page-head { padding-top: 32px; padding-bottom: 30px; }
  #et-main-area .et_pb_section.rs-page-head + .et_pb_section { padding-top: 48px; }
  .rs-hero .rs-photo-tall img { aspect-ratio: 4 / 3; object-position: 50% 40%; }
  .rs-btns--end { justify-content: flex-start; }
  .et_pb_contact_form_container.rs-form { padding: 22px !important; }
}

/* Contact cards on phones: less side padding, so the e-mail address fits
   on one line (kept last so it wins over the card's own padding). */
@media (max-width: 480px) { .rs-info { padding: 26px 20px 20px !important; } }
