/* ============================================================
   USAEnglish non-profit sites · shared brand layer · 30 Sep 2026
   Loaded after each site's own stylesheet. One palette from Surin,
   one type pairing per site, one ribbon on every page.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Athiti:wght@400;500;600;700&family=Chonburi&family=Pridi:wght@300;400;500;600&family=Sarabun:ital,wght@0,400;0,500;0,700;1,400&family=Thasadith:ital,wght@0,400;0,700;1,400&display=swap');

:root{
  --f-navy:#2D2A4A;      /* uniform navy · the school uniform, the blue sign */
  --f-navy-deep:#1F1D36;
  --f-indigo:#22405E;    /* khram · mudmee silk before the red */
  --f-lac:#8B2332;       /* lac red · pha hol */
  --f-laterite:#A64B2A;  /* the red-earth road to Ban Ta Klang */
  --f-marigold:#F2A21C;  /* wai khru garlands */
  --f-paddy:#7BAA3C;     /* wet-season rice */
  --f-gold:#C9A227;      /* the gem · prasat gilding */
  --f-gold-deep:#A6851C;
  --f-cream:#F3E9D2;     /* sticky-rice cream · the kratip */
  --f-cream-deep:#EAD9B6;
  --f-bamboo:#C8A66B;
  --f-rule:#D9C9A3;
  --f-ink:#2D2A4A;
  --f-ink-soft:#54506E;
  --f-ink-faint:#7E7A93;
  /* the kratip weave, 5% */
  --f-kratip:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Crect width='8' height='8' fill='%23000' fill-opacity='.045'/%3E%3Crect x='8' y='8' width='8' height='8' fill='%23000' fill-opacity='.045'/%3E%3Crect x='8' width='8' height='8' fill='%23fff' fill-opacity='.05'/%3E%3Crect y='8' width='8' height='8' fill='%23fff' fill-opacity='.05'/%3E%3Cpath d='M0 4h8M8 12h8' stroke='%23000' stroke-opacity='.05'/%3E%3Cpath d='M4 8v8M12 0v8' stroke='%23000' stroke-opacity='.05'/%3E%3C/svg%3E");
  /* the mudmee diamond band, one row */
  --f-band:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cpath d='M12 1 23 6 12 11 1 6Z' fill='none' stroke='%23C9A227' stroke-width='1.2'/%3E%3Cpath d='M12 4 16 6 12 8 8 6Z' fill='%23C9A227'/%3E%3C/svg%3E");
  --f-gem:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5 22.5 12 12 22.5 1.5 12Z' fill='%23C9A227'/%3E%3Cpath d='M12 1.5 22.5 12H12Z' fill='%23E2BE4B'/%3E%3Cpath d='M1.5 12 12 22.5V12Z' fill='%23E2BE4B'/%3E%3Cpath d='M12 1.5 22.5 12 12 22.5 1.5 12Z M12 1.5v21M1.5 12h21' fill='none' stroke='%232D2A4A' stroke-width='1'/%3E%3C/svg%3E");
}

/* ---- paper, not glass ---- */
html{background:var(--f-cream)}
body{background:var(--f-cream);color:var(--f-ink)}
[lang="th"],.th,.thai{line-height:1.75}

/* ---- the mudmee band: put class="f-band" on any divider ---- */
.f-band{height:12px;background:var(--f-band) repeat-x center;opacity:.9;margin:0}

/* ---- the ribbon (HTML version; pages that carry it add class f-has to their footer) ---- */
.f-ribbon{background:var(--f-navy);color:var(--f-cream);border-top:12px solid var(--f-navy);position:relative;font-family:'Sarabun','Pridi',system-ui,sans-serif}
.f-ribbon::before{content:'';display:block;height:12px;background:var(--f-band) repeat-x center;position:absolute;top:-12px;left:0;right:0}
.f-ribbon-in{max-width:1180px;margin:0 auto;padding:26px 24px 22px;background:var(--f-kratip)}
.f-ribbon p{margin:0}
.f-ribbon-head{font-size:17px;font-weight:600;line-height:1.7;color:#fff;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.f-gem{display:inline-block;width:18px;height:18px;background:var(--f-gem) no-repeat center/contain;flex:0 0 18px}
.f-ribbon-sites{display:flex;flex-wrap:wrap;gap:6px 22px;margin-top:10px;font-size:14.5px;line-height:1.7}
.f-ribbon-sites a{color:#fff;text-decoration:none;border-bottom:1px solid rgba(243,233,210,.35);padding-bottom:1px;white-space:nowrap}
.f-ribbon-sites a:hover{border-bottom-color:var(--f-gold);color:#fff}
.f-ribbon-sites a i{font-style:normal;color:rgba(243,233,210,.72);margin-left:6px;font-size:13.5px}
.f-ribbon-promise{margin-top:12px;font-size:13.5px;line-height:1.7;color:rgba(243,233,210,.78);max-width:900px}
.f-ribbon-np{margin-top:10px;font-size:13px;line-height:1.7;color:rgba(243,233,210,.72);max-width:960px;border-top:1px solid rgba(201,162,39,.28);padding-top:10px}
.f-ribbon-np span[lang="th"]{color:rgba(243,233,210,.82)}
@media(max-width:640px){.f-ribbon-sites{flex-direction:column;gap:4px}.f-ribbon-sites a{white-space:normal}}

/* ---- the ribbon (CSS version, for pages that have not been re-edited yet) ---- */
footer.site::before,body>footer:not(.f-has)::before{
  content:'◆  เว็บขององค์กรไม่แสวงหากำไร USAEnglish · A USAEnglish non-profit site — Rattanaburi, Surin.   ploy.com · usaenglish.com · englishteacher.com · eslteacher.com · usaenglishteacher.com · tesolteacher.com   ใช้ฟรีทุกเว็บ ไม่ขายข้อมูล — All free. We do not sell your data.';
  display:block;white-space:pre-wrap;text-align:center;
  background:var(--f-navy) var(--f-kratip);color:var(--f-cream);
  font-family:'Sarabun','Pridi',system-ui,sans-serif;font-size:14px;line-height:1.8;
  padding:18px 24px;border-top:12px solid transparent;
  border-image:var(--f-band) 0 0 12 0 repeat;border-image-slice:0 0 12 0;
  box-shadow:inset 0 12px 0 var(--f-navy);
}
footer.f-has::before,footer.site.f-has::before{content:none}

/* ---- wide tables scroll on a phone instead of pushing the page wider ---- */
@media(max-width:640px){
  table.r, table.cmp, table.tbl, table.fig-table, table.ss, table.vocab, table.pay,
  .card > table, section > table{
    display:block; width:100%; max-width:100%;
    overflow-x:auto; -webkit-overflow-scrolling:touch;
  }
}

/* ---- print: the ribbon is one line ---- */
@media print{.f-ribbon{background:#fff;color:#000;border:0}.f-ribbon::before{display:none}.f-ribbon-sites a,.f-ribbon-head,.f-ribbon-promise{color:#000}.f-ribbon-sites a i{color:#333}footer::before{display:none!important}}

/* ---- site overrides ---- */
/* ploy.com: the family layer is loaded after styles.css; nothing to override here. */
