@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=Kantumruy+Pro:wght@400;500;600;700&display=swap');

:root {
  --paper: #f9f8f1;
  --surface: #fffef9;
  --forest: #234636;
  --deep: #163428;
  --lime: #e6eead;
  --line: #dedfd2;
  --muted: #526558;
  --sans: "DM Sans", "Kantumruy Pro", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--deep); background: var(--paper); font: 16px/1.6 var(--sans); }
a { color: inherit; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #849b34; outline-offset: 4px; }
img { display: block; max-width: 100%; }
.wrap { width: min(100% - 100px, 1296px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 4; padding: 10px; background: white; }
.skip:focus { top: 10px; }
.top { background: var(--deep); color: #f1f3e7; font-size: 11px; }
.top-inner, .mast, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.top-inner { min-height: 33px; }
.top-inner span:lang(en) { letter-spacing: .12em; }
.top a, .mast a, .navigation a { text-decoration: none; }
.mast { min-height: 81px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 13px; font-size: clamp(17px, 2vw, 23px); font-weight: 700; line-height: 1.2; }
.brand img { width: 67px; mix-blend-mode: multiply; }
.brand small { display: block; margin-top: 5px; font-size: 11px; font-weight: 500; color: var(--muted); }
.mast-actions, .hero-actions, .button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.navigation { border-block: 1px solid var(--line); }
.nav-links { display: flex; flex-wrap: wrap; column-gap: clamp(14px, 2.5vw, 34px); font-size: 15px; font-weight: 600; }
.nav-links a { display: inline-flex; align-items: center; gap: 7px; padding-block: 11px 10px; border-bottom: 2px solid transparent; }
.menu-icon { display: block; flex: none; }
.nav-links .menu-icon, .account-dropdown .menu-icon { width: 16px; height: 16px; }
.mast-actions .menu-icon { width: 17px; height: 17px; }
.nav-links a:hover, .nav-links a[aria-current] { border-bottom-color: #6e842f; color: #3d612a; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 10px 18px; border-radius: 8px; border: 1px solid transparent; font: 700 14px/1.45 var(--sans); text-decoration: none; cursor: pointer; }
.outline { border-color: #aeb7a5; background: transparent; }
.solid { background: var(--deep); color: #fff; }
.lime { background: var(--lime); color: var(--deep); }
.pill:hover { filter: brightness(.93); }
h1, h2, h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; line-height: 1.06; }
h1:lang(th), h2:lang(th), h3:lang(th) { font-family: var(--sans); font-weight: 700; line-height: 1.2; }
h1 { margin: 0 0 18px; font-size: clamp(42px, 5vw, 70px); }
h2 { margin: 0 0 14px; font-size: clamp(29px, 3.4vw, 49px); }
h3 { margin: 0 0 10px; font-size: clamp(23px, 2.6vw, 35px); }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 17px; font-size: 12px; font-weight: 700; letter-spacing: .045em; }
.eyebrow span { width: 8px; height: 8px; flex: none; background: #9db344; border-radius: 50%; }
.journal-band { background: var(--surface); border: 1px solid var(--line); }
.journal-cover { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; width: min(100%, 290px); min-height: 320px; aspect-ratio: 4 / 5; margin: 0 auto; padding: clamp(20px, 3vw, 32px); border-left: 7px solid #112a20; border-radius: 2px 8px 8px 2px; background: linear-gradient(150deg, var(--forest), var(--deep)); color: #fffef9; box-shadow: 6px 6px 0 #d7e0ce, 12px 12px 0 #e8ece2, 16px 20px 26px #16342822; }
.journal-cover::before, .journal-cover::after { content: ""; position: absolute; z-index: -1; width: 62%; aspect-ratio: 1; border: 1px solid #e6eead50; border-radius: 100% 0; background: #b9cd7130; }
.journal-cover::before { bottom: 3%; right: -18%; }
.journal-cover::after { bottom: -21%; right: 3%; transform: rotate(70deg); }
.cover-type small { display: block; max-width: 170px; color: var(--lime); font-size: 10px; letter-spacing: .09em; line-height: 1.5; text-transform: uppercase; }
.cover-type strong { display: block; margin-top: 22px; overflow-wrap: anywhere; font: 400 clamp(27px, 3vw, 43px)/1.03 "Instrument Serif", Georgia, serif; }
.journal-cover figcaption { margin-top: 18px; color: #e0ead6; font-size: 11px; }
.journal-copy h2 { max-width: 620px; font-size: clamp(36px, 4.4vw, 58px); overflow-wrap: anywhere; }
.journal-copy > p:not(.eyebrow) { max-width: 560px; color: var(--muted); }
.text-link { font-size: 14px; font-weight: 700; }
.news-band { background: color-mix(in srgb, var(--paper) 72%, #e9f1e8); }
.news-section { padding-block: clamp(40px, 6vw, 77px); }
.section-heading { margin-bottom: 20px; }
.section-heading h1, .section-heading h2 { margin: 0; }
.news-heading { align-items: end; gap: 12px; margin-bottom: 25px; }
.news-lede { margin: 12px 0 0; color: var(--muted); }
.news-image { display: block; overflow: hidden; background: #e3ebd3; }
.news-image:focus-visible { outline-offset: -4px; }
.news-image img { width: 100%; height: auto; aspect-ratio: 1.84; object-fit: cover; }
.news-card-content { display: flex; flex: 1; flex-direction: column; padding: clamp(16px, 2vw, 24px); overflow-wrap: anywhere; }
.news-card-date { margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.news-card h3 { margin: 0; font-size: clamp(18px, 1.9vw, 25px); line-height: 1.35; }
.news-card h3 a { text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; }
.news-meta { color: var(--muted); font-size: 13px; font-weight: 600; margin: 0 0 12px; }
.news-summary { margin: 12px 0 17px; color: var(--muted); }
.news-card-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.news-read { color: var(--forest); font-size: 13px; font-weight: 700; text-decoration: none; }
.news-read:hover { text-decoration: underline; }
.news-empty { grid-column: 1 / -1; border: 1px dashed var(--line); padding: 10px 20px; border-radius: 10px; color: var(--muted); }
.news-filters, .news-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 23px; }
.news-filters a, .news-pages a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; background: var(--surface); font-size: 14px; }
.news-filters a[aria-current], .news-filters a:hover, .news-pages a:hover { background: var(--deep); color: #fff; }
.news-pages { justify-content: center; color: var(--muted); }
.news-detail { max-width: 830px; }
.news-detail h1 { font-size: clamp(32px, 5vw, 59px); }
.news-detail-photo { margin: 24px 0; }
.news-detail-photo img { width: 100%; height: auto; max-height: 580px; object-fit: contain; background: #eaf0e0; }
.news-article-body { line-height: 1.85; margin-bottom: 24px; overflow-wrap: anywhere; }
.site-footer { background: var(--deep); color: #f0f4e9; }
.footer-logo-band { background: rgba(255, 255, 255, .045); border-bottom: 1px solid rgba(255, 255, 255, .15); }
.footer-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 3vw, 34px);
  margin-block: 0;
  padding: 26px 0;
  list-style: none;
}
.footer-logos li {
  display: grid;
  place-items: center;
  width: clamp(68px, 12vw, 104px);
  aspect-ratio: 1;
  border: 1px solid var(--lime);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(230, 238, 173, .12);
}
.footer-logos img { width: 72%; height: auto; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.footer-grid { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr; gap: 24px; padding-block: clamp(28px, 4vw, 52px); }
.footer-grid strong, .footer-grid a { display: block; }
.footer-grid strong { margin-bottom: 8px; }
.footer-grid a, .footer-grid p { margin: 5px 0; color: #dce7da; font-size: 13px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--lime); text-decoration: underline; }
.footer-grid .footer-brand { display: flex; align-items: center; gap: 12px; margin-top: 0; color: #fffef9; font-size: 16px; }
.footer-brand strong { margin: 0; }
.footer-brand-image { display: grid; flex: 0 0 52px; place-items: center; height: 52px; border-radius: 50%; background: var(--surface); }
.footer-brand-image img { width: 34px; height: 34px; object-fit: contain; }
.footer-identity p { margin-top: 10px; }
.link { background: none; color: inherit; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.interior { padding-block: 47px 72px; min-height: 60vh; }
.interior h1 { overflow-wrap: anywhere; }
.interior h2 { margin-top: 30px; }
.reading { max-width: 760px; }
.reading p { overflow-wrap: anywhere; }
.breadcrumb { display: inline-block; margin-bottom: 15px; color: var(--muted); font-size: 14px; }
.button-row { margin-top: 22px; }
.form-panel, .field-section { background: var(--surface); border: 1px solid var(--line); padding: clamp(18px, 3vw, 32px); }
.form-panel { margin-top: 22px; }
.fields p { display: grid; gap: 5px; margin: 0 0 17px; }
.fields label { font-weight: 700; }
.fields input:not([type=checkbox]), .fields textarea, .fields select { width: 100%; border: 1px solid #a9b5a6; border-radius: 7px; padding: 11px; color: var(--deep); background: #fffefa; font: inherit; }
.fields textarea { min-height: 90px; max-height: 195px; resize: vertical; }
.fields input[type=file] { border-style: dashed; }
.fields .helptext { display: block; color: var(--muted); font-size: 14px; }
.errorlist { color: #9c2d17; }
.rows { margin-block: 16px; padding: 0 19px; background: var(--surface); border: 1px solid var(--line); }
.rows > a { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; text-decoration: none; }
.rows > a + a { border-top: 1px solid var(--line); }
.rows > a:hover strong { text-decoration: underline; }
.rows small, .rows strong { display: block; }
.rows small { color: var(--muted); }
.status { display: inline-block; padding: 5px 10px; border-radius: 20px; background: #e9edda; font-size: 13px; }
.society-photo { margin: 25px 0; }
.society-photo img { max-width: min(100%, 480px); border-radius: 10px; }
.society-photo figcaption { font-size: 13px; }
.field-section { margin-block: 0 15px; }
.field-section h2 { margin: 0 0 17px; font-size: 32px; }
.field-item { margin-bottom: 14px; }
.contributor-row { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.contributor-row legend { padding-inline: 5px; color: var(--forest); font-weight: 700; }
.contributor-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 10px; }
.contributor-fields label { display: grid; align-content: start; gap: 4px; }
.contributor-row .link { margin-top: 8px; font-size: 13px; }
[data-contributors] [hidden] { display: none; }
.check-field { display: flex; flex-direction: row-reverse; justify-content: start; align-items: baseline; gap: 10px; }
.submission-help { padding: 21px; border-radius: 12px; background: #edf1e2; }
.submission-help h2 { margin: 0; font-size: 32px; }
.submission-help ul { padding-left: 21px; }
@media (max-width: 980px) {
  .wrap { width: calc(100% - 48px); }

}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 32px); }
  .mast { flex-wrap: wrap; padding-block: 10px; }
  .brand img { width: 49px; }
  .top-inner { gap: 10px; padding-block: 4px; font-size: 9px; }
  .nav-links { column-gap: 15px; font-size: 13px; }
  .nav-links a { padding-block: 7px 6px; }
  .nav-links .menu-icon { width: 14px; height: 14px; }
  .journal-cover { min-height: 270px; width: min(224px, 100%); }
  .footer-logos { padding-block: 20px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .footer-identity { grid-column: 1 / -1; }
  .section-heading { align-items: start; flex-wrap: wrap; }
}

.fields [aria-invalid="true"] { border-color: #a23e26; }
.portal-intro h1 { margin: 0 0 8px; }
.portal-intro p { margin: 0; color: #e0eadc; }
.portal-intro .section-heading { margin: 0; }
.portal-intro .pill { white-space: nowrap; }
.portal-empty { padding: 18px 0; }
.portal-empty p { margin: 0 0 8px; color: var(--muted); }
.portal-row-title { min-width: 0; overflow-wrap: anywhere; }
.portal-row-status { flex-shrink: 0; max-width: 43%; }

.home-intro { background: radial-gradient(ellipse at 75% 40%, color-mix(in srgb, var(--lime) 28%, transparent), transparent 67%); }
.home-intro-label { display: inline-block; margin: 0 0 16px; padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--forest); font-size: 13px; font-weight: 700; }
.home-title { font-size: clamp(34px, 4.4vw, 66px); letter-spacing: -.035em; overflow-wrap: anywhere; }
.home-intro .pill { padding: 12px 20px; border-radius: 12px; }
.home-journal-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.home-journal-links a { display: inline-flex; gap: 5px; color: var(--forest); text-decoration: none; }
.home-journal-links a:hover { text-decoration: underline; }

.account-menu { position: relative; min-width: 0; }
.account-trigger { display: flex; align-items: center; gap: 8px; max-width: min(285px, 72vw); padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); cursor: pointer; list-style: none; font-size: 14px; font-weight: 700; }
.account-trigger::-webkit-details-marker { display: none; }
.account-trigger:hover, .account-menu[open] .account-trigger { border-color: #8ba17f; }
.account-avatar { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--deep); color: #fff; }
.account-trigger-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-dropdown { position: absolute; z-index: 5; top: calc(100% + 8px); right: 0; min-width: 215px; width: max-content; max-width: min(300px, 86vw); padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 8px 24px #16342822; }
.account-context { display: grid; gap: 2px; padding: 9px 11px; margin-bottom: 5px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.account-context span { color: var(--muted); font-size: 13px; }
.account-dropdown a, .account-dropdown button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 11px; text-align: start; border: 0; border-radius: 5px; background: transparent; color: var(--deep); font: inherit; font-size: 14px; cursor: pointer; }
.account-dropdown a:hover, .account-dropdown button:hover { background: #e9efdf; }
.account-dropdown form { margin: 0; }
.profile-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 24px; }
.profile-tabs a { padding: 9px 15px; border: 1px solid transparent; border-radius: 8px 8px 0 0; color: var(--muted); text-decoration: none; font-weight: 700; }
.profile-tabs a[aria-current] { border-color: var(--line); border-top-color: var(--deep); background: var(--surface); color: var(--deep); }
.profile-tabs a:hover { background: #e9efdf; }
.profile-panel { padding: clamp(18px, 4vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: 0 10px 10px 10px; }
.profile-panel h2 { margin-top: 0; font-size: clamp(24px, 3vw, 35px); }
.profile-panel .fields { max-width: 610px; }
.profile-identity { padding: 10px 14px; background: #eef1e7; border-radius: 8px; overflow-wrap: anywhere; }
.profile-identity dt { font-weight: 700; }
.profile-identity dd { margin: 0; }
@media (max-width: 650px) {
  .account-dropdown { right: auto; left: 0; max-width: min(230px, 76vw); }
  .profile-tabs a { padding: 7px 10px; }
}

.top-actions, .site-language { display: flex; align-items: center; gap: 8px; }
.top-actions { flex-shrink: 0; gap: 13px; }
.site-language { padding: 2px; gap: 2px; border: 1px solid #ffffff55; border-radius: 5px; }
.site-language button { background: transparent; color: inherit; border: 0; border-radius: 3px; padding: 2px 6px; font: inherit; cursor: pointer; }
.site-language button[aria-pressed="true"] { background: var(--lime); color: var(--deep); font-weight: 700; }
.site-language button:hover { text-decoration: underline; }
@media (max-width: 520px) {
  .top-actions { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
  .top-inner > span { max-width: 45%; }
}
.account-admin { margin-block: 4px; border-block: 1px solid var(--line); padding-block: 3px; font-weight: 700; }
.reading > h1 + p:empty { display: none; }

.trial-note { padding: 8px 12px; border: 1px solid #e5d1ab; border-radius: 7px; background: #fff7e7; color: #67471b; font-size: 14px; }
