*{box-sizing:border-box;margin:0;padding:0}
@media(prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{background:#FFFFFF;color:#1E2024;font-family:Karla,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit}
a:focus-visible{outline:2px solid #2E6FB7;outline-offset:2px}
img,svg{display:block}
.wrap{max-width:1100px;margin:0 auto;padding-left:28px;padding-right:28px}

/* five-color band */
.band{display:flex;height:9px}
.band span{flex:1}
.b1{background:#2E6FB7}.b2{background:#F2F2F0}.b3{background:#C8402F}.b4{background:#2F8F5B}.b5{background:#E9B824}

/* header */
.nv{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;padding-top:22px;padding-bottom:22px}
/* text that is read aloud / read by Google, but not shown on screen */
.vh{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.lg{display:flex;align-items:center;gap:11px}
.ic{width:34px;height:34px;flex:none;color:#C8402F}
.lgt{font-weight:800;font-size:19px;line-height:1.05;display:flex;flex-direction:column;letter-spacing:-.01em}
.lgt em{font-style:normal;font-weight:700;font-size:9.5px;letter-spacing:.18em;text-transform:uppercase;color:#8A8F98;margin-top:4px}
.nl{display:flex;gap:20px;flex-wrap:wrap;font-size:13.5px;font-weight:700;align-items:center}
.nl a:hover{color:#2E6FB7}
.nl a.on{color:#2E6FB7;box-shadow:inset 0 -2px 0 #2E6FB7;padding-bottom:3px}
.nl .soon{color:#B8BCC2;cursor:default}

/* hero */
.hero{padding:56px 0 36px;max-width:760px}
.home .hero{padding:74px 0 42px}
.kick{font-size:12px;font-weight:800;letter-spacing:.24em;text-transform:uppercase;color:#2E6FB7}
.man{font-family:'Noto Serif Tibetan',serif;font-size:20px;color:#C8402F;margin-top:14px}
.tib{font-family:'Noto Serif Tibetan',serif}
h1{font-weight:800;font-size:clamp(32px,4.8vw,50px);line-height:1.08;letter-spacing:-.02em;margin:14px 0 16px}
.home h1{font-size:clamp(40px,6.4vw,66px);margin:10px 0 18px}
/* the logo doubles as the home page <h1>; this keeps it looking like a logo */
h1.lgh,.home h1.lgh{font:inherit;font-size:inherit;font-weight:inherit;letter-spacing:normal;line-height:inherit;margin:0;display:block}
.sub{font-size:17px;line-height:1.75;color:#565B63;max-width:56ch}

/* prayer-flag cards (home) */
.flags{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;max-width:900px;margin:0 auto;padding:8px 0 76px}
.flag{aspect-ratio:3/3.35;min-height:190px;display:flex;flex-direction:column;justify-content:space-between;padding:14px;color:#fff;font-weight:800;font-size:14px;line-height:1.24;position:relative;transition:transform .15s}
.flag:hover{transform:translateY(-4px)}
.flag::after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:6px;background:inherit;clip-path:polygon(0 0,100% 0,90% 100%,80% 0,70% 100%,60% 0,50% 100%,40% 0,30% 100%,20% 0,10% 100%)}
.flag svg{width:22px;height:22px;opacity:.95}
.flag small{display:block;font-size:10.5px;font-weight:700;letter-spacing:.04em;line-height:1.4;opacity:.85;margin-top:6px}
.flag>span{display:block;min-height:70px}
.f1{background:#2E6FB7}.f3{background:#C8402F}.f4{background:#2F8F5B}.f5{background:#E9B824;color:#3A3000}
.f2{background:#fff;color:#1E2024;border:2px solid #1E2024}
.f2::after{background:#1E2024}
.flag.soon{cursor:default}
.flag.soon:hover{transform:none}

/* generic sections */
.sec{padding:4px 0 70px}
h2{font-size:22px;font-weight:800;letter-spacing:-.01em;margin:30px 0 14px}

/* events */
.mo{font-size:12px;font-weight:800;letter-spacing:.22em;text-transform:uppercase;color:#8A8F98;margin:26px 0 2px}
.ev{display:flex;gap:16px;padding:18px 0;border-bottom:1px solid #ECECEA;align-items:flex-start}
.dt{flex:none;width:62px;text-align:center;border:2px solid #1E2024;padding:8px 4px 9px}
.dt b{display:block;font-size:20px;line-height:1;font-weight:800}
.dt span{font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.d1{border-color:#2E6FB7;color:#2E6FB7}
.d3{border-color:#C8402F;color:#C8402F}
.d4{border-color:#2F8F5B;color:#2F8F5B}
.d5{border-color:#E9B824;color:#A07E00}
.ev h3{font-size:17px;font-weight:800}
.ev .meta{font-size:12px;font-weight:700;color:#8A8F98;letter-spacing:.06em;text-transform:uppercase;margin:3px 0 6px}
.ev p{font-size:14.5px;line-height:1.7;color:#565B63;max-width:64ch}

/* articles */
.arts{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding:4px 0 76px}
.art{border:1px solid #ECECEA;border-top:4px solid var(--c);padding:20px 20px 22px;transition:transform .15s,box-shadow .15s}
.art:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(20,24,30,.08)}
.art .tag{font-size:10.5px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:#8A8F98}
.art h3{font-size:17.5px;font-weight:800;line-height:1.3;margin:8px 0}
.art p{font-size:14px;line-height:1.7;color:#565B63}

/* resources */
.res{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.r{border:1px solid #ECECEA;padding:18px 20px}
.r h3{font-size:16.5px;font-weight:800}
.r .by{font-size:12px;font-weight:700;color:#8A8F98;margin:2px 0 8px}
.r p{font-size:14px;line-height:1.7;color:#565B63}
.r .ext{display:inline-block;margin-top:9px;font-size:12.5px;font-weight:800;color:#2E6FB7}
.r .ext:hover{text-decoration:underline}

/* about */
.prose{max-width:66ch}
.prose p{font-size:16px;line-height:1.85;color:#3C4048;margin-bottom:16px}
.man-big{font-family:'Noto Serif Tibetan',serif;font-size:30px;color:#C8402F;margin:6px 0 8px}
.mini{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;max-width:820px;margin-top:6px}
.mini div{border-left:4px solid var(--c);padding:4px 0 4px 14px}
.mini b{font-size:15px}
.mini span{display:block;font-size:13.5px;color:#565B63;line-height:1.6;margin-top:3px}

/* footer */
.ft{border-top:1px solid #ECECEA;display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;padding:26px 0 60px;font-size:12.5px;color:#6C7078;margin-top:8px}
.ftm{font-family:'Noto Serif Tibetan',serif;font-size:15px;color:#9AA0A8}
.ftl{display:flex;gap:14px;flex-wrap:wrap}
.ftl a:hover{color:#2E6FB7}

@media(max-width:900px){.arts{grid-template-columns:repeat(2,1fr)}.res{grid-template-columns:1fr}}
@media(max-width:820px){.flags{grid-template-columns:repeat(auto-fit,minmax(136px,1fr))}}
@media(max-width:640px){.arts{grid-template-columns:1fr}.mini{grid-template-columns:1fr}.nl{gap:14px;font-size:12.5px}.lgt{font-size:17px}}

/* ============================================================
   ADDED — mantra beside the logo, and the home photo carousel
   ============================================================ */

/* (1) mantra now sits at the top, next to the logo */
.brandrow{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.man-top{font-family:'Noto Serif Tibetan',serif;font-size:19px;line-height:1;color:#C8402F;white-space:nowrap;padding-left:16px;border-left:1px solid #ECECEA}

/* small page title on the template pages */
.ptl{padding:30px 0 6px}
.ptl h1{font-size:27px;font-weight:800;letter-spacing:-.01em;line-height:1.2;margin:0}
@media(max-width:640px){.ptl h1{font-size:22px}}

/* (3) photo gallery carousel on the home page */
.gal{padding:30px 0 26px}
.car{position:relative;width:100%;max-width:700px;margin:0 auto;aspect-ratio:14/9;background:#F7F7F5;border:1px solid #ECECEA;overflow:hidden}
.car:focus-visible{outline:2px solid #2E6FB7;outline-offset:2px}
.trk{position:absolute;inset:0}
.sl{position:absolute;inset:0;opacity:0;transition:opacity .45s ease}
.sl.on{opacity:1}
.sl img{width:100%;height:100%;object-fit:cover}
.ph{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:20px;color:#9AA0A8;background:repeating-linear-gradient(45deg,#F7F7F5 0 14px,#F1F1EF 14px 28px)}
.ph b{font-size:15px;font-weight:800;color:#7A7F87}
.ph span{font-size:12.5px;font-weight:700}
.cbtn{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border:none;border-radius:50%;background:rgba(255,255,255,.92);box-shadow:0 1px 6px rgba(20,24,30,.18);cursor:pointer;font-size:20px;line-height:1;color:#1E2024;display:flex;align-items:center;justify-content:center;transition:background .15s}
.cbtn:hover{background:#fff}
.cprev{left:14px}.cnext{right:14px}
.dots{display:flex;justify-content:center;gap:9px;padding:14px 0 0}
.dot{width:8px;height:8px;border-radius:50%;border:none;padding:0;background:#D8D8D4;cursor:pointer;transition:background .15s,transform .15s}
.dot:hover{background:#B8BCC2}
.dot.on{background:#C8402F;transform:scale(1.25)}

@media(max-width:640px){
  .man-top{padding-left:0;border-left:none;font-size:17px}
  .car{aspect-ratio:4/3}
  .flag>span{min-height:78px}
}

/* ============================================================
   ADDED — Resources index list, and teaching quotes
   ============================================================ */

/* list of links on resources/index.html */
.rlist{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:22px 0 8px}
.rl{display:flex;align-items:center;gap:12px;border:1px solid #ECECEA;border-left:4px solid var(--c);padding:16px 18px;font-weight:800;font-size:16px;transition:transform .15s,box-shadow .15s,border-color .15s}
.rl:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(20,24,30,.08)}
.rl .arw{margin-left:auto;color:#B8BCC2;font-weight:700}
.rl:hover .arw{color:var(--c)}
@media(max-width:900px){.rlist{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.rlist{grid-template-columns:1fr}}

/* teaching quotes (Words of our Perfect Teachers) */
.teach{max-width:74ch;padding:18px 0 20px}
.tq{border-top:4px solid var(--c);border-bottom:1px solid #ECECEA;padding:26px 0 30px;margin-bottom:26px}
.tq:last-child{border-bottom:none}
.tq h2{font-size:20px;font-weight:800;line-height:1.3;margin:0 0 4px}
.tq .by{font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#8A8F98;margin-bottom:14px}
.tq p{font-size:16.5px;line-height:1.9;color:#3C4048;margin-bottom:15px}
.tq .verse{font-size:16.5px;line-height:2;color:#3C4048;margin-bottom:15px}
.tq .qa{font-size:16.5px;line-height:1.9;color:#3C4048;margin-bottom:15px}
.tq .qa b{font-weight:800}
.tq .src{font-size:13px;font-weight:700;color:#8A8F98;line-height:1.6;margin:0}
@media(max-width:640px){.tq p,.tq .verse,.tq .qa{font-size:16px;line-height:1.85}}

@media(prefers-reduced-motion:reduce){.sl,.flag,.art,.rl,.cbtn,.dot{transition:none}}
