/* lmdn.org on sitebuilder — brand colours taken from the WordPress theme (little-missionary/style.css) */
:root {
  --purple: #4f2973;
  --orange: #fbaa1a;
  --green: #22ad6c;
  --mint: #ebf7f5;
  --ink: #222;
  --muted: #5b5b5b;
  --paper: #fff;
  --quote-bg: #f7f9fb;
  --serif: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans: 'Trebuchet MS', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mint); color: var(--ink); font: 18px/1.6 var(--serif); }
/* Every image slot sets its own shape and crops into it (aspect-ratio + object-fit: cover), so a
   replacement photo of any size or orientation fills the same space. object-position keeps faces
   (top third) in frame when a photo is cropped. The width/height attributes carried over from
   WordPress only reserve space while loading; CSS decides the final size. */
img { max-width: 100%; height: auto; }
a { color: var(--purple); }
a:hover, a:focus { color: var(--green); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 10; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1100px; margin: 0 auto; padding: 16px; }
.logo img { display: block; width: 150px; }
.header-contact { margin: 0 0 0 auto; font-family: var(--sans); display: flex; gap: 16px; align-items: center; }
.header-contact a { text-decoration: none; font-weight: bold; }
.cta { background: var(--orange); color: var(--ink); padding: 10px 18px; border-radius: 999px; }
.cta:hover, .cta:focus { background: var(--purple); color: var(--paper); }

.menu-toggle { display: none; font: bold 16px var(--sans); background: var(--purple); color: var(--paper); border: 0; border-radius: 6px; padding: 10px 16px; }

.site-nav { max-width: 1100px; margin: 0 auto; padding: 0 16px; font-family: var(--sans); }
.site-nav > ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a { display: block; padding: 10px 16px; background: var(--purple); color: var(--paper); text-decoration: none; text-transform: uppercase; letter-spacing: .04em; font-size: 15px; border-radius: 6px 6px 0 0; }
.site-nav > ul > li > a:hover, .site-nav > ul > li:focus-within > a { background: var(--green); }
.site-nav ul ul { display: none; position: absolute; left: 0; top: 100%; min-width: 240px; list-style: none; margin: 0; padding: 8px 0; background: var(--paper); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); z-index: 5; }
.site-nav li:hover > ul, .site-nav li:focus-within > ul { display: block; }
.site-nav ul ul a { display: block; padding: 8px 16px; text-decoration: none; font-size: 15px; }

.hero { display: block; width: 100%; max-width: 1100px; height: auto; aspect-ratio: 954 / 439; object-fit: cover; object-position: center 35%; margin: 0 auto; }
main { max-width: 1100px; margin: 0 auto 32px; padding: 24px 40px 40px; background: var(--paper); }
main > * { max-width: 46rem; }
main > img, main > figure, main > p:not(.staff-photo):has(> img:only-child) { max-width: 100%; }
/* photos carried over from the WordPress theme's left image column: a paragraph holding only
   images. Two or more become a row of same-shape tiles; a single one keeps its own proportions,
   capped to the column width and 70% of the screen height. */
main p:has(> img + img) { display: flex; flex-wrap: wrap; gap: 12px; max-width: 100%; margin: 1.5rem 0; }
main p:has(> img + img) > img { flex: 1 1 200px; width: 0; max-width: 280px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 8px; }
main > p:not(.staff-photo):has(> img:only-child) img, main figure img { display: block; max-height: 70vh; width: auto; border-radius: 8px; }
main figure { margin: 1.5rem 0; }
.donate-qr { display: grid; grid-template-columns: repeat(2, minmax(0, 240px)); justify-content: center; gap: 40px; margin: 1.5rem 0 2rem; }
.donate-qr a { display: block; border-radius: 12px; transition: transform .15s; }
.donate-qr a:hover, .donate-qr a:focus-visible { transform: translateY(-3px); }
.donate-qr img { display: block; width: 100%; height: auto; }
figcaption { font: 14px var(--sans); color: var(--muted); margin-top: 6px; }

h1, h2, h3, h4, h5, h6 { color: var(--purple); font-family: var(--sans); line-height: 1.25; }
h1 { font-size: 2rem; margin: .5rem 0 1rem; }
h2 { font-size: 1.5rem; }
h3, h4 { font-size: 1.2rem; }
.lede { font-size: 1.2rem; color: var(--muted); }
.dateline { color: var(--muted); font-family: var(--sans); font-size: 15px; }

/* %%BREADCRUMB%% */
.breadcrumb { font: 14px/1.4 var(--sans); color: var(--muted); margin: 0 0 8px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb a { color: var(--purple); text-decoration: none; }
.breadcrumb a:hover, .breadcrumb a:focus { color: var(--green); text-decoration: underline; }
.breadcrumb-sep { margin: 0 8px; color: var(--orange); }
.breadcrumb-current { color: var(--ink); }

/* snippets */
/* home slides: the first reads as a full-width hero, the rest as a strip of four beneath it */
.slides { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 100%; margin: 0 0 24px; }
.slides img:first-child { grid-column: 1 / -1; border-radius: 8px; }
.slides img { border-radius: 6px; }
.slides img { width: 100%; aspect-ratio: 954 / 424; object-fit: cover; display: block; }
#home-quote { background: var(--quote-bg); padding: 24px 32px; margin: 32px 0; max-width: 100%; font-size: 1.15rem; }
#home-quote blockquote { margin: 0; font-style: italic; }
#home-quote footer { font: 15px var(--sans); font-style: normal; color: var(--muted); margin-top: 8px; }
#home-quote footer::before { content: "\2014\00a0"; }
.staff-name { margin-top: 2.5rem; border-top: 1px solid var(--mint); padding-top: 1.5rem; }
.staff-photo img { float: right; width: 200px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; margin: 0 0 16px 24px; border-radius: 6px; }
.staff-role { font: bold 16px var(--sans); color: var(--green); }
.bookshelf { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px; }
.bookshelf img { display: block; width: 120px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; margin-bottom: 8px; }
.promo img { display: block; width: 100%; max-width: 320px; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; }
.press-list { list-style: none; padding: 0; }
.books li, .fees li { margin-bottom: .4rem; }
.press-list li { margin-bottom: 1rem; }
.calendar-month { font: bold 1.2rem var(--sans); color: var(--purple); margin: 1.5rem 0 .5rem; }
.calendar-closed { color: #790000; }
caption { text-align: left; font: bold 1.1rem var(--sans); color: var(--purple); padding-bottom: 8px; }
.tuition-table, .programs-table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 16px; }
.tuition-table th, .tuition-table td, .programs-table th, .programs-table td { border-bottom: 1px solid #ddd; padding: 8px; text-align: left; }
.faq-question { font: bold 1.1rem var(--sans); color: var(--purple); margin-bottom: .25rem; }
.faq-answer { margin-top: 0; }

.site-footer { background: var(--purple); color: var(--paper); padding: 32px 16px; font: 16px/1.6 var(--sans); }
.site-footer > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.site-footer a { color: var(--paper); }
.footer-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.copyright { font-size: 14px; opacity: .85; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .site-header { flex-wrap: wrap; }
  .logo img { width: 110px; }
  .header-contact { order: 3; width: 100%; margin: 0; justify-content: space-between; }
  .menu-toggle { display: block; }
  .site-nav { display: none; }
  .nav-open .site-nav { display: block; }
  .site-nav > ul { display: block; }
  .site-nav > ul > li > a { border-radius: 0; }
  .site-nav ul ul { display: block; position: static; box-shadow: none; padding: 0 0 8px 16px; }
  main { padding: 16px; }
  main p:has(> img + img) > img { flex: 0 1 calc(50% - 6px); max-width: none; }
  .tuition-table, .programs-table { display: block; overflow-x: auto; }
  .slides { grid-template-columns: repeat(2, 1fr); }
  .staff-photo img { float: none; width: 160px; margin: 0 0 8px; }
  .donate-qr { gap: 16px; }
}

@media (max-width: 400px) {
  .donate-qr { grid-template-columns: minmax(0, 240px); }
}
