/* Thannaka - template for CMSimple_XH 1.8 */

@font-face { font-family: Nunito; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/nunito-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/nunito-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/nunito-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Nunito; font-weight: 800; font-style: normal; font-display: swap; src: url(fonts/nunito-latin-800-normal.woff2) format("woff2"); }

:root {
  --orange: #f28a1c;
  --orange-dark: #ad5305;
  --orange-soft: #fdeedd;
  --teal: #1f7a74;
  --teal-dark: #154f4b;
  --ink: #23201c;
  --muted: #6b645c;
  --line: #ece4da;
  --cream: #fbf7f2;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(60, 40, 20, .10);
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  display: flex; flex-direction: column; min-height: 100vh;
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.7 Nunito, "Segoe UI", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: .6em 1.3em;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--orange-dark); color: var(--white); transform: translateY(-1px); }
.content a.btn { text-decoration: none; }
.btn-ghost { background: transparent; color: var(--teal-dark); box-shadow: inset 0 0 0 2px var(--teal); }
.btn-ghost:hover { background: var(--teal); color: var(--white); }

/* ---------- header & menu ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.editing .site-header { position: static; }   /* the editor's toolbar sticks to the top instead */
.editing .tox-tinymce--toolbar-sticky-on .tox-editor-header { top: var(--xh-bar, 0px) !important; }
.editing .main { padding: 12px 0 32px; }
.editing .breadcrumb { margin-bottom: 8px; }
.editing .content { max-width: 920px; padding: 10px 12px 16px; border-radius: 14px; }
.admin-screen .content { max-width: none; padding: 24px; }
.admin-screen .content h1::after { display: none; }
/* inside the editor (TinyMCE loads this stylesheet; CMSimple's plugin overwrites content_style) */
body.mce-content-body.content { max-width: 820px; margin: 0 auto; padding-block: 12px; border-radius: 0; box-shadow: none; background: var(--white); }
body.mce-content-body.content { padding-inline: 16px !important; }   /* TinyMCE's autoresize writes 1px inline */
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { flex: none; display: block; line-height: 0; }
.brand img { width: 150px; }
.nav-toggle { display: none; }

.main-nav { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav .menulevel1 { display: flex; gap: 2px; }
.main-nav li { position: relative; }
.main-nav .menulevel1 > li > a,
.main-nav .menulevel1 > li > span {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav .menulevel1 > li.docs > a::after,
.main-nav .menulevel1 > li.sdocs > a::after,
.main-nav .menulevel1 > li.sdocs > span::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .5;
}
.main-nav .menulevel1 > li > a:hover { background: var(--orange-soft); color: var(--orange-dark); }
.main-nav .menulevel1 > li.sdoc > *:first-child,
.main-nav .menulevel1 > li.sdocs > *:first-child { color: var(--orange-dark); }
.main-nav .menulevel1 > li.sdoc > *:first-child::before,
.main-nav .menulevel1 > li.sdocs > *:first-child::before {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--orange);
}

/* dropdowns */
.main-nav .menulevel2 {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  padding: 8px; margin-top: 6px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.main-nav .menulevel2::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.main-nav li:hover > .menulevel2,
.main-nav li:focus-within > .menulevel2 { opacity: 1; visibility: visible; transform: none; }
.main-nav .menulevel2 a,
.main-nav .menulevel2 span {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-size: 15.5px; font-weight: 600;
}
.main-nav .menulevel2 a:hover { background: var(--orange-soft); color: var(--orange-dark); }
.main-nav .menulevel2 .sdoc > span, .main-nav .menulevel2 .sdocs > span { background: var(--orange-soft); color: var(--orange-dark); }
.main-nav .menulevel3 { padding-left: 12px; }

/* ---------- hero (home) ---------- */
.hero { background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 56px 0 40px; }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--teal-dark); color: var(--white); }
.skip-link:focus { top: 12px; color: var(--white); }
.hero h1 { margin: 0 0 16px; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; font-weight: 800; letter-spacing: -.01em; }
.hero-text > p:not(.eyebrow):not(.hero-actions) { margin: 0 0 16px; font-size: 19px; color: var(--muted); max-width: 34em; }
.hero-actions { margin-top: 28px !important; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.hero-photo { position: relative; margin: 0 18px 18px 0; }
.hero-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 28px; background: var(--orange); opacity: .9;
}
.hero-photo img { position: relative; display: block; width: 100%; border-radius: 28px; box-shadow: var(--shadow); }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 40px 0 8px; }
.project-card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow); aspect-ratio: 3 / 2; text-decoration: none;
}
.project-card img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project-card:hover img { transform: scale(1.05); }
.project-title {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px;
  background: linear-gradient(transparent, rgba(20, 15, 10, .78));
  color: var(--white); font-weight: 800; font-size: 19px;
}

/* ---------- home bands ---------- */
.projects { padding-bottom: 64px; }
.home-band { padding: 80px 0; }
.band-plain { background: var(--white); }
.band-alt { background: var(--cream); }
.band-cta { background: var(--orange-soft); }
.band-inner { max-width: 760px; }
.band-inner.has-media {
  max-width: var(--wrap);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center;
}
.band-inner.media-left .band-media { order: -1; }
.home-band .band-text.content {
  max-width: none; margin: 0; padding: 0; background: none; border-radius: 0; box-shadow: none;
}
.home-band .band-text h2 {
  margin: 0 0 20px; color: var(--ink); font-size: clamp(26px, 3.2vw, 34px); line-height: 1.15;
}
.home-band .band-text h2::before {
  content: ""; display: block; width: 44px; height: 4px; margin-bottom: 16px; border-radius: 4px; background: var(--orange);
}
.band-text > :last-child { margin-bottom: 0; }
.band-media { margin: 0; text-align: center; }
.band-media img { display: block; width: 100%; height: auto; border-radius: 20px; }
.band-media a { display: block; transition: transform .2s; }
.band-media a:hover { transform: translateY(-3px); }
.band-media.is-video iframe {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 20px; box-shadow: var(--shadow); background: var(--ink);
}
.band-cta .band-media img { box-shadow: var(--shadow); transform: rotate(1.5deg); }
.band-cta .band-text ul { list-style: none; padding: 0; margin: 0 0 24px; }
.band-cta .band-text li { list-style: none; position: relative; padding: 6px 0 6px 38px; font-weight: 700; font-size: 18px; }
.band-cta li::before {
  content: "✓"; position: absolute; left: 0; top: 7px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--orange); color: var(--ink); font-size: 14px; line-height: 26px; text-align: center; font-weight: 800;
}
.band-cta a[href^="mailto:"] {
  display: inline-block; margin-top: 4px; padding: .55em 1.2em; border-radius: 999px;
  background: var(--teal-dark); color: var(--white); font-weight: 800; text-decoration: none;
}
.band-cta a[href^="mailto:"]:hover { background: var(--teal); color: var(--white); }

/* ---------- inner pages ---------- */
.page-hero { background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%); border-bottom: 1px solid var(--line); }
.page-hero-inner { padding: 44px 0 40px; }
.page-hero-inner.has-photo { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 40px 0; }
.page-hero .breadcrumb { margin: 0 0 14px; }
.page-hero h1 {
  margin: 0; font-size: clamp(32px, 4.6vw, 50px); line-height: 1.08; font-weight: 800; letter-spacing: -.01em;
}
.page-hero h1::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 18px; border-radius: 4px; background: var(--orange); }
.page-hero-photo { position: relative; margin: 0 18px 18px 0; }
.page-hero-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 24px; background: var(--orange); }
.page-hero-photo img { position: relative; display: block; width: 100%; border-radius: 24px; box-shadow: var(--shadow); }

.page-band { padding: 64px 0; }
.page-band.band-plain { background: var(--white); }
.page-band.band-alt { background: var(--cream); }
.page-band .content { max-width: none; margin: 0 auto; padding: 0; background: none; border-radius: 0; box-shadow: none; }
.page-band .band-narrow { max-width: 760px; }
.page-band .content > :first-child { margin-top: 0; }
.page-band .content > :last-child { margin-bottom: 0; }
.page-band .content h2 { margin-top: 1.6em; }
.page-band .content > h2:first-child { font-size: 28px; color: var(--ink); }
.page-band .content > h2:first-child::before {
  content: ""; display: block; width: 40px; height: 4px; margin-bottom: 14px; border-radius: 4px; background: var(--orange);
}

.card-grid { display: grid; gap: 24px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 900px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.page-band .info-card {
  margin: 0; padding: 28px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--cream); text-align: center;
}
.page-band .info-card > h2:first-child { font-size: 21px; color: var(--teal-dark); }
.page-band .info-card > h2:first-child::before { margin: 0 auto 12px; }
.info-card p { margin: .35em 0; }
.info-card > p:first-child:not(:has(img)) { font-weight: 800; }
.info-card img { display: inline-block; width: auto; max-width: 100%; max-height: 130px; object-fit: contain; border-radius: 10px; }
.info-card p:has(img) { display: flex; align-items: center; justify-content: center; min-height: 140px; margin: 0 0 8px; }
.info-card .box { text-align: left; background: var(--white); }

.band-nav .nav-title { margin: 0 0 20px; font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.nav-cards a {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%;
  padding: 20px 22px 20px 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--white);
  color: var(--ink); font-weight: 800; font-size: 17px; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.nav-cards a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--orange); }
.nav-cards a::after { content: "→"; color: var(--orange-dark); transition: transform .2s; }
.nav-cards a:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-2px); }
.nav-cards a:hover::after { transform: translateX(3px); }

/* ---------- content ---------- */
.main { flex: 1 0 auto; padding: 32px 0 56px; }
.page-main, .home-main { flex: 1 0 auto; }
.breadcrumb { margin-bottom: 12px; color: var(--muted); font-size: 14.5px; }
.breadcrumb a { color: var(--muted); }
.content {
  max-width: 820px; margin-inline: auto; padding: 40px 48px;
  background: var(--white); border-radius: 20px; box-shadow: var(--shadow);
}
.home .content { margin-top: 24px; }
.content > :first-child { margin-top: 0; }
.content h1 { margin: 0 0 24px; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; font-weight: 800; }
.content h1::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 14px; border-radius: 4px; background: var(--orange); }
.content h2 { margin: 1.8em 0 .5em; color: var(--teal-dark); font-size: 23px; line-height: 1.3; font-weight: 800; }
.content h3 { margin: 1.5em 0 .4em; font-size: 19px; font-weight: 800; }
.content hr { border: 0; height: 1px; margin: 2.2em 0; background: var(--line); }
.content img { border-radius: 10px; }
.content ul { padding-left: 1.2em; }
.content li::marker { color: var(--orange); }
.content .center { text-align: center; }
.content p:has(> img:only-child), .content p:has(> a:only-child > img:only-child) { text-align: center; }
.content .lead { font-size: 20px; color: var(--muted); }
.content .highlight {
  padding: 14px 18px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-dark); font-weight: 800; text-align: center;
}
.content .box {
  position: relative; overflow: hidden; padding: 18px 22px 18px 28px;
  border-radius: 12px; background: var(--cream); font-variant-numeric: tabular-nums;
}
.content .box::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--teal); }
.content blockquote {
  margin: 1.5em 0; padding: 0 0 0 0; text-align: center;
  font-size: 22px; font-style: italic; color: var(--teal-dark); line-height: 1.5;
}

/* sub pages / sibling pages as cards */
.siblings { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.siblings ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.siblings a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); font-weight: 700; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.siblings a::after { content: "→"; color: var(--orange); }
.siblings a:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-2px); }

.subpages { margin-top: 40px; }
.subpages-title { font-size: 15px !important; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) !important; }
.subpages ul.submenu { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.subpages ul.submenu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); font-weight: 800; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.subpages ul.submenu a::after { content: "→"; color: var(--orange); }
.subpages ul.submenu a:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-2px); }

.prevnext { display: flex; justify-content: space-between; gap: 16px; max-width: 820px; margin: 20px auto 0; font-weight: 600; }
.prevnext a { text-decoration: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--teal-dark); color: rgba(255, 255, 255, .82); font-size: 15.5px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--orange-soft); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 48px 0 32px; }
.footer-grid p { margin: 0 0 6px; }
.footer-col h2 { margin: 0 0 10px; color: var(--white); font-size: 13.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.footer-col:first-child h2 { font-size: 20px; letter-spacing: 0; text-transform: none; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 0 28px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 14px;
}
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.footer-links form { display: inline-flex; gap: 6px; margin: 0 8px 0 0; }
.footer-links input[type=search], .footer-links input[type=text] {
  width: 175px; padding: 5px 12px; border: 0; border-radius: 999px; font: inherit; font-size: 14px;
}
.footer-links input[type=submit], .footer-links button {
  padding: 5px 12px; border: 0; border-radius: 999px; background: var(--orange); color: var(--ink); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
}

/* ---------- mobile ---------- */
/* ---------- typography ---------- */
@font-face { font-family: Fraunces; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/fraunces-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Fraunces; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/fraunces-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Fraunces; font-weight: 500; font-style: italic; font-display: swap; src: url(fonts/fraunces-latin-500-italic.woff2) format("woff2"); }
:root { --serif: Fraunces, Georgia, "Times New Roman", serif; --sans: Nunito, "Segoe UI", system-ui, sans-serif; }
body {
  font-size: 17.5px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
h1, h2, h3,
.hero h1, .page-hero h1, .content h1, .content h2, .content h3,
.home-band .band-text h2, .page-band .content > h2:first-child, .page-band .info-card > h2:first-child,
.project-title, .footer-col:first-child h2 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.005em; text-wrap: balance;
}
.hero h1, .page-hero h1 { font-weight: 700; letter-spacing: -.015em; line-height: 1.06; }
.page-hero h1 { font-size: clamp(34px, 4.8vw, 54px); }
.hero h1 { font-size: clamp(36px, 4.7vw, 56px); }
sup, sub { line-height: 0; }

/* reading rhythm */
.content p { margin: 0 0 1.05em; text-wrap: pretty; }
.content h2 { margin: 1.9em 0 .5em; font-size: 26px; line-height: 1.22; color: var(--teal-dark); }
.content h3 { margin: 1.6em 0 .4em; font-size: 20px; line-height: 1.3; }
.content h2 + p, .content h3 + p, .content h2 + ul { margin-top: 0; }
.content ul, .content ol { margin: 0 0 1.2em; padding-left: 1.25em; }
.content li { margin: .35em 0; padding-left: .15em; }
.content p:has(> img:only-child), .content p:has(> a:only-child > img:only-child) { margin: 1.8em 0; }
.content strong { font-weight: 800; }
.content a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.page-band .band-narrow { max-width: 700px; }
.home-band .band-text h2, .page-band .content > h2:first-child { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; color: var(--ink); }
.page-band .info-card > h2:first-child { font-size: 22px; }
.content blockquote {
  margin: 1.4em 0; font-family: var(--serif); font-weight: 500; font-style: italic; font-size: clamp(21px, 2.6vw, 26px); line-height: 1.4;
}
.content .highlight { font-family: var(--sans); font-size: 17px; line-height: 1.5; }
.content .lead { font-size: 20px; line-height: 1.6; }
.info-card { font-size: 16px; line-height: 1.6; }
.page-band .info-card p { margin: .25em 0; }
.page-band .info-card p:has(img) { margin: 0 0 14px; }
.page-band .info-card h2 + p { margin-top: .4em; }
.hero-text > p:not(.eyebrow):not(.hero-actions) { line-height: 1.6; }
.project-title { font-size: 21px; font-weight: 600; }
.footer-col:first-child h2 { font-size: 22px; }
.nav-title, .eyebrow, .footer-col h2, .content .subpages-title { font-family: var(--sans); }

/* ---------- robustness on small screens ---------- */
.band-inner > *, .page-hero-inner > *, .card-grid > *, .footer-grid > * { min-width: 0; }
.content, .info-card, .footer-col { overflow-wrap: break-word; }
.content a[href^="mailto:"], .info-card a, .footer-col a { overflow-wrap: anywhere; }
.band-cta a[href^="mailto:"] { max-width: 100%; }
.content iframe, .content video, .content table { max-width: 100%; }
.breadcrumb a { display: inline-block; padding: 4px 0; }
.footer-links a { display: inline-block; padding: 6px 0; }

/* ---------- desktop menu on narrower screens (a laptop at 125–150 % Windows scaling is ~1000–1100 px) ---------- */
@media (min-width: 861px) and (max-width: 1100px) {
  .header-inner { gap: 16px; }
  .brand img { width: 128px; }
  .main-nav { gap: 10px; }
  .main-nav .menulevel1 > li > a, .main-nav .menulevel1 > li > span { padding: 9px 8px; font-size: 15px; }
  .main-nav .menulevel1 > li > *:first-child::before { left: 8px; right: 8px; }
  .btn-donate { padding: .5em 1em; font-size: 15px; }
}

@media (max-width: 860px) {
  .header-inner { min-height: 70px; justify-content: space-between; }
  .brand img { width: 120px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px;
    border: 0; border-radius: 999px; background: var(--orange-soft); color: var(--orange-dark); font: 800 15px Nunito, sans-serif; cursor: pointer;
  }
  .burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
  .burger { position: relative; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
  .burger::before { top: -6px; }
  .burger::after { top: 6px; }
  .nav-open .burger { background: transparent; }
  .nav-open .burger::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .burger::after { transform: translateY(-6px) rotate(-45deg); }

  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 12px;
    max-height: calc(100vh - 70px); overflow-y: auto;
    padding: 12px 16px 20px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-open .main-nav { display: flex; }
  .main-nav .menulevel1 { flex-direction: column; }
  .main-nav .menulevel1 > li > a, .main-nav .menulevel1 > li > span { padding: 9px 12px; font-size: 17px; }
  .main-nav .menulevel2 a, .main-nav .menulevel2 span { padding: 6px 12px; }
  .main-nav .menulevel1 > li > *:first-child::after { display: none !important; }
  .main-nav .menulevel1 > li > *:first-child::before { display: none; }
  .main-nav .menulevel2 {
    position: static; opacity: 1; visibility: visible; transform: none;
    margin: 0 0 6px 12px; padding: 0 0 0 10px; min-width: 0;
    border: 0; border-left: 2px solid var(--orange-soft); border-radius: 0; box-shadow: none;
  }
  .btn-donate { align-self: flex-start; margin-left: 12px; }
}

/* ---------- tablet & phone layout ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 28px 0 24px; }
  .hero-text > p:not(.eyebrow):not(.hero-actions) { font-size: 17px; }
  .hero-photo { margin-right: 18px; max-width: 560px; }
  .projects { grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 24px; }
  .project-title { font-size: 16px; padding: 30px 12px 10px; }
  .content { padding: 28px 20px; border-radius: 16px; }
}
@media (max-width: 960px) {
  .page-hero-inner.has-photo { grid-template-columns: 1fr; gap: 28px; padding: 28px 0 36px; }
  .page-hero-photo { max-width: 520px; }
  .page-band { padding: 44px 0; }
  .cards-3, .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .home-band { padding: 52px 0; }
  .band-inner.has-media { grid-template-columns: 1fr; gap: 32px; }
  .band-inner.media-left .band-media { order: 0; }
  .band-media img, .band-media.is-video iframe { max-width: 640px; margin-inline: auto; }
  .projects { padding-bottom: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .content p, .content li { hyphens: auto; -webkit-hyphens: auto; }
  .info-card p, .info-card li { hyphens: manual; -webkit-hyphens: manual; }
  .content h2 { font-size: 23px; }
  .cards-2, .cards-3 { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: 1fr; }
  .cards-4:has(img) { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cards-4:has(img) .info-card { padding: 18px 12px; font-size: 15px; }
  .main-nav .menulevel2 a, .main-nav .menulevel2 span { padding: 9px 12px; }
  .page-hero-inner { padding: 28px 0; }
  .band-cta .band-text li { font-size: 16.5px; }
  .projects { grid-template-columns: 1fr; }
  .project-title { font-size: 19px; padding: 40px 18px 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; padding-top: 36px; }
}

@media print {
  .site-header, .site-footer, .prevnext, .breadcrumb, .hero, .projects { display: none; }
  .content { box-shadow: none; padding: 0; }
}
