:root {
  color-scheme: light;
  --ink: #083f49;
  --ink-soft: #526d69;
  --navy: #06333d;
  --teal: #087c85;
  --green: #2f8c24;
  --green-dark: #216b29;
  --green-pale: #eaf2d5;
  --cream: #fff7df;
  --paper: #f5ead0;
  --gold: #f7b83f;
  --coral: #ed6d5e;
  --line: #dec995;
  font-family: 'Trebuchet MS', Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { min-width: 320px; margin: 0; background: linear-gradient(180deg, #fbf1d7 0, var(--cream) 430px, #fff9e8 100%); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.section-wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 34px;
  min-height: 82px; padding: 12px max(32px, calc((100vw - 1320px) / 2));
  border-bottom: 3px solid #2f7f1d; background: #55b91f;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .19), 0 5px 0 rgba(47, 127, 29, .18), 0 10px 22px rgba(28, 82, 31, .16);
}
.brand { display: inline-flex; align-items: center; gap: 0; min-width: max-content; color: var(--cream); }
.brand-mascot { position: relative; z-index: 2; display: block; flex: 0 0 auto; width: 52px; aspect-ratio: 1; overflow: visible; }
.brand-mascot > img { position: absolute; z-index: 1; top: 50%; left: 50%; display: block; width: 58px; height: 58px; max-width: none; transform: translate(-50%, -50%); object-fit: contain; pointer-events: none; }
.brand-word { position: relative; z-index: 1; display: flex; min-height: 34px; flex-direction: column; align-items: center; justify-content: center; margin-left: -15px; padding: 2px 6px 2px 20px; border: 2px solid rgba(255, 247, 223, .94); border-left: 0; border-radius: 0 13px 13px 0; background: #2f8c24; color: #fff7df; text-align: center; }
.brand-word strong { display: inline-flex; font: 900 18px/.92 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif; letter-spacing: -.065em; -webkit-text-stroke: .8px #07515b; paint-order: stroke fill; }
.brand-word strong span { color: #fff7df; }
.brand-word strong b { margin-left: 1px; color: #ffd33e; font: inherit; }
.brand-word small { margin-top: 2px; color: #fff7df; font-size: 7px; font-weight: 900; letter-spacing: .055em; line-height: 1; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 42px); flex: 1; }
.main-nav a { color: #e7f3d2; font-size: 13px; font-weight: 700; transition: color .18s ease; }
.site-footer nav a { color: #315c3f; font-size: 13px; font-weight: 700; transition: color .18s ease; }
.main-nav a:hover { color: var(--gold); }
.site-footer nav a:hover { color: var(--teal); }
.mobile-nav-action { display: none; }
.header-actions, .hero-actions, .account-actions { display: flex; align-items: center; gap: 12px; }
.button { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border: 1px solid transparent; border-radius: 14px; font-size: 13px; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; cursor: pointer; }
.button:hover { transform: translateY(-2px); }
.button-small { min-height: 42px; padding-inline: 17px; }
.button-soft { border-color: #e4c36e; color: #604914; background: #fff0be; box-shadow: 0 3px 0 #c68b2b; }
.button-soft:hover { background: #ffe79b; }
.button-primary { border-color: #1e6f26; color: white; background: linear-gradient(180deg, #42ad3a, #28842d); box-shadow: 0 4px 0 #1b6422, 0 9px 19px rgba(38, 111, 41, .18); }
.button-primary:hover { box-shadow: 0 5px 0 #1b6422, 0 12px 22px rgba(38, 111, 41, .24); }
.button-outline { border-color: #a5c984; color: var(--green-dark); background: rgba(255, 255, 246, .8); }
.button-outline:hover { background: white; }
.nav-toggle { display: none; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #ac681b; font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow > i { width: 9px; height: 9px; border-radius: 50%; background: #88d33c; box-shadow: 0 0 0 4px #deedbd; }
.eyebrow-green { color: #277b70; }
.section-heading h2, .account-copy h2, .closing-inner h2 { margin: 15px 0 14px; font: 900 clamp(40px, 4.4vw, 56px)/1 'Trebuchet MS', sans-serif; letter-spacing: -.055em; }

.world-section { padding-top: 48px; padding-bottom: 76px; }
.section-heading { max-width: 680px; }
.section-heading h2, .account-copy h2 { margin: 11px 0 12px; font-size: clamp(34px, 4vw, 48px); line-height: 1.06; letter-spacing: -.04em; }
.section-heading p, .account-copy > p { margin: 0; color: #657b68; font-size: 15px; line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 37px; }
.feature-card { min-height: 290px; overflow: hidden; padding: 9px; border: 2px solid #087c85; border-radius: 18px; background: var(--cream); box-shadow: 0 5px 0 #d4b96f; }
.feature-card:nth-child(2) { background: #fff1c8; }
.feature-card:nth-child(3) { background: #f7ead1; }
.feature-image { display: block; width: 100%; height: 135px; border: 2px solid #fff7df; border-radius: 12px; object-fit: cover; }
.feature-copy { padding: 14px 13px 12px; }
.feature-card h3 { margin: 0 0 7px; font: 900 19px 'Trebuchet MS', sans-serif; }
.feature-card p { min-height: 42px; margin: 0; color: #64786a; font-size: 13px; line-height: 1.6; }
.feature-card a { display: inline-flex; align-items: center; gap: 8px; margin-top: 13px; color: var(--teal); font-size: 12px; font-weight: 900; }

.news-section { padding: 77px 0 88px; border-top: 5px solid #e3bf69; border-bottom: 5px solid #e3bf69; background: linear-gradient(130deg, #f1dfb7, #fff5dc 68%, #ebd4a0); }
.news-heading { display: flex; max-width: none; align-items: end; justify-content: space-between; gap: 24px; }
.news-heading h2 { margin-top: 10px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-top: 32px; }
.news-status { grid-column: 1 / -1; margin: 0; padding: 25px; border: 2px dashed #bca15f; border-radius: 16px; color: #60716a; background: rgba(255, 247, 223, .8); text-align: center; }
.news-card { display: flex; min-height: 214px; flex-direction: column; align-items: flex-start; padding: 22px; border: 2px solid #087c85; border-radius: 18px; background: var(--cream); box-shadow: 0 5px 0 #d0b56d; }
.news-card time, .news-dialog .news-date { color: #829177; font-size: 11px; font-weight: 700; }
.news-card h3 { margin: 9px 0 8px; font: 900 19px/1.2 'Trebuchet MS', sans-serif; }
.news-card p { display: -webkit-box; overflow: hidden; margin: 0; color: #667968; font-size: 12px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.news-card button { margin-top: auto; padding: 18px 0 0; border: 0; color: #378837; background: transparent; font-size: 12px; font-weight: 900; cursor: pointer; }

.account-section { position: relative; isolation: isolate; width: 100%; max-width: none; margin: 0; padding: 54px max(32px, calc((100vw - 1180px) / 2)); scroll-margin-top: 100px; background: linear-gradient(115deg, rgba(6, 51, 61, .36), rgba(8, 74, 68, .2)), url('../images/kwaakfu-nest-v1.webp') center 53% / cover no-repeat; }
.account-card { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1fr); overflow: hidden; border: 1px solid #cfe2b3; border-radius: 26px; background: var(--cream); box-shadow: 0 9px 0 rgba(57, 109, 45, .07); }
.account-art { position: relative; display: grid; min-height: 360px; place-items: center; overflow: hidden; background: linear-gradient(180deg, rgba(6, 51, 61, .08), rgba(6, 51, 61, .2)), url('../images/kwaakfu-nest-v1.webp') center / cover; }
.account-sun { position: absolute; top: 46px; right: 53px; width: 78px; height: 78px; border-radius: 50%; background: #ffdd64; box-shadow: 0 0 0 15px rgba(255, 221, 100, .22); }
.account-duck { position: relative; z-index: 1; display: block; width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(6, 51, 61, .32)); transform: rotate(-5deg); }
.account-ripple { position: absolute; bottom: 24px; width: 250px; height: 26px; border: 3px solid rgba(62, 150, 139, .38); border-radius: 50%; }
.account-copy { align-self: center; padding: clamp(32px, 6vw, 70px); }
.account-copy h2 { font-size: clamp(37px, 4vw, 52px); }
.account-copy > p { max-width: 500px; }
.account-actions { align-items: flex-start; flex-direction: column; margin-top: 24px; }
.text-link { padding: 6px 0; color: #398a37; font-size: 12px; font-weight: 800; }

.portal-card { overflow: hidden; border: 2px solid #d0dea8; border-radius: 20px; background: #fff9e7; box-shadow: 0 6px 0 rgba(57, 109, 45, .07), 0 14px 30px rgba(74, 100, 48, .06); }
.portal-home-card { width:min(100%,920px); margin-inline:auto; }
.portal-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:22px; padding:22px clamp(22px,4vw,34px) 18px; border-bottom:1px solid #ead9aa; background:linear-gradient(125deg,#fff9e7,#f0f5d8); }
.portal-heading h2 { margin:7px 0 5px; font:900 clamp(26px,3vw,34px)/1 'Trebuchet MS',sans-serif; letter-spacing:-.04em; }
.portal-heading p { max-width:620px; margin:0; color:#617566; font-size:14px; line-height:1.6; }
.portal-connection { display:inline-flex; align-items:center; gap:8px; flex:0 0 auto; margin-top:7px; color:#7a866a; font-size:11px; font-weight:800; }
.portal-connection i { width:9px; height:9px; border-radius:50%; background:#e0b83f; box-shadow:0 0 0 4px #f6eabf; }
.portal-connection.is-connected { color:#367536; }.portal-connection.is-connected i { background:#55b347; box-shadow:0 0 0 4px #d9edc2; }
.portal-connection.is-offline { color:#a34a29; }.portal-connection.is-offline i { background:#df7850; box-shadow:0 0 0 4px #f6dfcf; }
.portal-signed-out { width:min(100%,620px); margin:0 auto; padding:20px 24px 24px; }
.portal-tabs { display:flex; gap:7px; margin-bottom:20px; padding:5px; border:1px solid #d8e3b9; border-radius:14px; background:#edf3dc; }
.portal-tabs button { flex:1; min-height:42px; border:1px solid transparent; border-radius:10px; color:#5a735c; background:transparent; font-size:13px; font-weight:900; cursor:pointer; }
.portal-tabs button[aria-selected="true"] { border-color:#b7d494; color:#276e34; background:#fff9e7; box-shadow:0 2px 5px #47652a12; }
.portal-form,.portal-challenge,.portal-settings form { display:grid; gap:13px; }
.portal-form label,.portal-challenge label,.portal-settings label { display:grid; gap:6px; color:#224d42; font-size:12px; font-weight:800; }
.portal-form input:not([type=checkbox]),.portal-challenge input,.portal-settings input,.portal-settings select { width:100%; min-height:43px; padding:10px 12px; border:1px solid #b9d18e; border-radius:10px; outline:0; color:#284b43; background:#fffef8; font:inherit; font-size:13px; }
.portal-form input:focus,.portal-challenge input:focus,.portal-settings input:focus,.portal-settings select:focus { border-color:#4a9b3d; box-shadow:0 0 0 3px #86c35c32; }
.portal-remember { display:flex!important; grid-template-columns:none!important; align-items:center; gap:9px!important; color:#5c705e!important; font-weight:700!important; cursor:pointer; }
.portal-remember input { width:17px; height:17px; margin:0; accent-color:#398f37; }
.portal-terms { display:flex!important; grid-template-columns:none!important; align-items:flex-start; gap:9px!important; color:#5c705e!important; font-size:11px!important; font-weight:600!important; line-height:1.5; cursor:pointer; }
.portal-terms[hidden] { display:none!important; }
.portal-terms input { flex:0 0 16px; width:16px; height:16px; margin:1px 0 0; accent-color:#398f37; }
.portal-terms a { color:#286c36; text-underline-offset:2px; }
.portal-terms a:hover { color:#164e2e; }
.portal-form > .button,.portal-challenge > .button,.portal-settings .button { width:100%; }
.portal-notice { min-height:18px; margin:0; color:#a04c2a; font-size:12px; line-height:1.5; }
.portal-challenge { margin-top:18px; padding:18px; border:1px solid #e4d393; border-radius:14px; background:#fff2c9; }
.portal-challenge h3,.portal-settings h3,.portal-admin h3 { margin:0; font:900 18px 'Trebuchet MS',sans-serif; }
.portal-challenge p { margin:0; color:#6b7056; font-size:12px; line-height:1.6; }
.portal-secret { padding:12px; border-radius:9px; overflow-wrap:anywhere; color:#375b35!important; background:#fffdf1; font:700 13px/1.5 monospace!important; letter-spacing:.08em; }
.portal-signed-in { padding:18px clamp(16px,2.6vw,28px) 25px; }
.portal-profile { display:flex; align-items:center; gap:15px; padding:16px 18px; border:1px solid #d5e2b9; border-radius:16px; background:#f4f8e6; }
.portal-profile > img { width:58px; height:58px; flex:0 0 auto; object-fit:contain; padding:5px; border:1px solid #d6e2b7; border-radius:15px; background:#fffae9; }
.portal-profile > div { min-width:0; flex:1; }
.portal-profile h3 { overflow:hidden; margin:4px 0; color:#144e48; font:900 22px/1.1 'Trebuchet MS',sans-serif; text-overflow:ellipsis; }
.portal-profile p { margin:0; color:#607360; font-size:12px; }
.portal-profile .button { min-height:38px; padding-inline:15px; }
.portal-member-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; margin:14px 0 12px; }
.checkin-button { justify-content:flex-start; gap:14px; min-height:83px; padding:12px 18px; border-radius:16px; text-align:left; }
.checkin-stamp { display:grid; width:43px; height:43px; flex:0 0 auto; place-items:center; border:2px solid #ffed9a; border-radius:50%; color:#78570d; background:linear-gradient(#ffe975,#ffca42); box-shadow:0 3px 0 #b97520; font:900 25px 'Trebuchet MS',sans-serif; }
.checkin-button > span:nth-child(2) { display:grid; gap:4px; }
.checkin-button strong { font:900 16px 'Trebuchet MS',sans-serif; }
.checkin-button small { color:#e4f2cf; font-size:11px; font-weight:600; }
.checkin-arrow { margin-left:auto; font-size:24px; }
.portal-member-actions > .button-outline { min-height:83px; white-space:nowrap; }
.portal-settings { display:grid; grid-template-columns:minmax(0,.8fr) minmax(260px,1fr); gap:28px; padding:22px; border:1px solid #d4dfb4; border-radius:17px; background:#fffdf1; }
.portal-settings > div > p,.portal-admin-heading p { max-width:410px; margin:7px 0 0; color:#687968; font-size:12px; line-height:1.6; }
.portal-settings form { align-content:start; }
.portal-settings [data-settings-submit] { width:auto; justify-self:start; padding-inline:20px; }
.portal-admin { margin-top:25px; padding:20px; border:1px solid #b8d194; border-radius:17px; background:#eef5dc; }
.portal-admin-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:15px; }
.portal-admin-heading a { flex:0 0 auto; color:#367d33; font-size:11px; font-weight:900; text-decoration:underline; }
.portal-admin iframe { display:block; width:100%; height:min(1150px,125vh); border:1px solid #c8dba6; border-radius:13px; background:#f3f8dd; }
.account-manage-link { display:inline-flex; align-items:center; gap:8px; padding:8px 2px; color:#277b70; font-size:13px; font-weight:900; }
.account-manage-link:hover { text-decoration:underline; }
.account-management-main { width:min(960px,calc(100% - 48px)); margin:38px auto 68px; }
.account-management-intro { max-width:720px; margin:0 auto 23px; text-align:center; }
.account-management-intro h1 { margin:10px 0 9px; color:#144e48; font:900 clamp(34px,4vw,48px)/1 'Trebuchet MS',sans-serif; letter-spacing:-.045em; }
.account-management-intro > p:not(.portal-connection):not(.portal-notice) { margin:0; color:#617566; font-size:14px; line-height:1.7; }
.account-management-intro .portal-connection { justify-content:center; margin-top:15px; }
.account-management-intro .portal-notice { margin:9px 0 0; }
.account-management-card { width:100%; }
.account-management-content { display:grid; gap:16px; }
.account-email-status { padding-top:4px; }
.account-form-card { display:grid; grid-template-columns:minmax(0,.75fr) minmax(0,1fr); gap:24px; padding:21px; border:1px solid #d7e2bd; border-radius:16px; background:#fffdf3; }
.account-form-heading h3 { margin:7px 0; color:#164d46; font:900 20px/1.15 'Trebuchet MS',sans-serif; }
.account-form-heading p { max-width:380px; margin:0; color:#687968; font-size:12px; line-height:1.65; }
.account-form-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-content:start; gap:12px; }
.account-form-fields label { display:grid; grid-column:span 1; gap:6px; color:#224d42; font-size:12px; font-weight:800; }
.account-form-fields label:has(select),.account-form-fields label:has(textarea) { grid-column:span 2; }
.account-form-fields input,.account-form-fields select { width:100%; min-height:42px; padding:10px 12px; border:1px solid #b9d18e; border-radius:10px; outline:0; color:#284b43; background:#fffef8; font:inherit; font-size:13px; }
.account-form-fields input:focus,.account-form-fields select:focus { border-color:#4a9b3d; box-shadow:0 0 0 3px #86c35c32; }
.account-form-fields label > span { color:#71806c; font-size:11px; font-weight:600; }
.account-form-fields .button { min-height:41px; justify-self:start; }
.account-form-fields .portal-notice { grid-column:1 / -1; }
.account-form-grid .account-form-fields { grid-template-columns:1fr; }
.account-form-grid .account-form-fields label,.account-form-grid .account-form-fields label:has(select) { grid-column:auto; }
.account-form-grid .account-form-fields .button { justify-self:start; }
.account-profile-card { grid-template-columns:1fr; gap:17px; }
.account-profile-card .account-form-heading { padding-bottom:15px; border-bottom:1px solid #e0e8ce; }
.account-profile-card .account-form-heading p { max-width:620px; }
.account-profile-fields { display:grid; gap:13px; }
.account-profile-group { min-width:0; padding:15px 16px 16px; border:1px solid #d9e4c1; border-radius:13px; background:#f5f8e9; }
.account-profile-group-heading { margin-bottom:12px; }
.account-profile-group-heading h4 { margin:0 0 3px; color:#214f42; font:900 15px/1.25 'Trebuchet MS',sans-serif; }
.account-profile-group-heading p { margin:0; color:#687968; font-size:11px; line-height:1.45; }
.account-profile-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:14px; }
.account-profile-controls label { display:grid; min-width:0; gap:6px; color:#224d42; font-size:12px; font-weight:800; }
.account-profile-controls input,.account-profile-controls select { width:100%; min-height:42px; padding:10px 12px; border:1px solid #b9d18e; border-radius:10px; outline:0; color:#284b43; background:#fffef8; font:inherit; font-size:13px; }
.account-profile-controls input:focus,.account-profile-controls select:focus { border-color:#4a9b3d; box-shadow:0 0 0 3px #86c35c32; }
.account-profile-controls label > span { color:#71806c; font-size:11px; font-weight:600; }
.account-profile-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:12px; }
.account-profile-actions .button { width:auto; max-width:100%; min-height:40px; padding-inline:17px; }
.account-profile-actions .portal-notice { flex:1 1 240px; min-height:0; }
.account-profile-actions .portal-notice:empty { display:none; }
.maize-shop-panel { scroll-margin-top: 100px; margin-top: 28px; padding: clamp(22px, 4vw, 34px); border: 2px solid #d0dea8; border-radius: 20px; background: #fff9e7; box-shadow: 0 6px 0 rgba(57, 109, 45, .07), 0 14px 30px rgba(74, 100, 48, .06); }
.maize-shop-heading { max-width: 620px; margin-bottom: 22px; }
.maize-shop-heading h2 { margin: 7px 0 8px; color: #174e37; font: 900 clamp(28px, 4vw, 38px)/1.05 'Trebuchet MS', sans-serif; letter-spacing: -.04em; }
.maize-shop-heading p { margin: 0; color: #617566; font-size: 14px; line-height: 1.6; }
.maize-package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.maize-package-card { position: relative; display: flex; min-height: 170px; flex-direction: column; align-items: center; justify-content: center; gap: 11px; padding: 22px 16px 17px; border: 1px solid #c9dda5; border-radius: 15px; background: linear-gradient(180deg, #fffff8, #f5f8e7); text-align: center; }
.maize-package-featured { border: 2px solid #8bbd55; background: linear-gradient(180deg, #fffef1, #edf5d4); box-shadow: 0 4px 0 #dce9c0; }
.maize-package-card h3 { margin: 0; color: #285d3b; font-size: 20px; }
.maize-package-card .maize-price { margin: 0; color: #123f43; font-size: 25px; font-weight: 900; }
.maize-package-card .button { width: 100%; min-height: 40px; padding-inline: 9px; }
.maize-package-label { position: absolute; top: -11px; left: 50%; padding: 3px 10px; transform: translateX(-50%); border-radius: 999px; color: #fff; background: #318b35; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.maize-shop-notice { margin: 16px 0 0; }
.maize-status-refresh { margin-top: 8px; }
.legacy-name-dialog { width: min(470px, calc(100% - 28px)); max-width: none; padding: 0; border: 2px solid #2f8c24; border-radius: 20px; color: var(--ink); background: var(--cream); box-shadow: 0 12px 40px rgba(11, 49, 43, .28); }
.legacy-name-dialog::backdrop { background: rgba(5, 34, 34, .72); backdrop-filter: blur(3px); }
.legacy-name-card { display: grid; gap: 13px; padding: clamp(22px, 5vw, 32px); }
.legacy-name-card h2 { margin: 0; color: #174e37; font: 900 28px/1.1 'Trebuchet MS', sans-serif; }
.legacy-name-card > p:not(.portal-notice) { margin: 0; color: #5c735e; font-size: 14px; line-height: 1.6; }
.legacy-name-card label { display: grid; gap: 6px; color: #224d42; font-size: 12px; font-weight: 800; }
.legacy-name-card input { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid #b9d18e; border-radius: 10px; outline: 0; color: #284b43; background: #fffef8; font: inherit; font-size: 14px; }
.legacy-name-card input:focus { border-color: #4a9b3d; box-shadow: 0 0 0 3px #86c35c32; }
.legacy-name-card .button { width: 100%; }
.legal-layout { width:min(820px,calc(100% - 40px)); margin:48px auto 80px; padding:clamp(23px,5vw,48px); border:2px solid #d0dea8; border-radius:22px; color:#345348; background:#fffdf1; box-shadow:0 8px 0 rgba(57,109,45,.08); }
.legal-layout .eyebrow { margin-bottom:7px; }
.legal-layout h1 { margin:4px 0 12px; color:#164d46; font:900 clamp(34px,4vw,46px)/1.05 'Trebuchet MS',sans-serif; letter-spacing:-.045em; }
.legal-layout .legal-updated { margin:0 0 25px; color:#71806c; font-size:12px; }
.legal-layout h2 { margin:27px 0 8px; color:#216b29; font:900 20px/1.2 'Trebuchet MS',sans-serif; }
.legal-layout p,.legal-layout li { color:#536b5b; font-size:14px; line-height:1.75; }
.legal-layout ul { padding-left:22px; }
.legal-layout a { color:#277b70; text-decoration:underline; }
[hidden] { display:none!important; }

.closing-cta { padding: 56px 0; color: white; background: linear-gradient(110deg, #06333d, #087c85); border-block: 5px solid var(--gold); }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.closing-inner .eyebrow { color: #e2f5c8; }
.closing-inner h2 { margin: 10px 0 7px; font-size: clamp(30px, 4vw, 42px); }
.closing-inner p { margin: 0; color: #e7f4d9; font-size: 14px; }
.closing-inner .button-primary { flex: 0 0 auto; border-color: #ffe68a; color: #604a13; background: linear-gradient(#ffe374, #ffc83d); box-shadow: 0 4px 0 #c37d1d; }
.site-footer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-height: 124px; padding-top: 20px; padding-bottom: 20px; color: #61726d; font-size: 11px; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-brand { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font: 900 17px 'Trebuchet MS', sans-serif; }
.footer-brand img { width: 32px; height: 32px; object-fit: contain; }
.footer-brand-mark { position: relative; display: inline-block; flex: 0 0 42px; width: 42px; height: 42px; margin: 0; overflow: visible; }
.footer-brand-mark img { position: absolute; z-index: 1; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; pointer-events: none; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 20px; padding-top: 11px; border-top: 1px solid #d7e3bd; }
.site-footer nav a { font-size: 11px; }
.footer-meta { color: #61726d; font-size: 10px; line-height: 1.5; }
.footer-meta a { color: #315c3f; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.footer-meta a:hover { color: var(--teal); }
.legal-operator { margin: 24px 0; padding: 4px 18px 12px; border: 1px solid #cfdfa8; border-radius: 14px; background: #f5f8e5; }
.legal-operator h2 { margin-top: 14px; }

.news-dialog { position: fixed; width: min(650px, calc(100% - 28px)); max-height: min(82vh, 780px); padding: 35px; border: 1px solid #b7d497; border-radius: 23px; color: var(--ink); background: #fffef3; box-shadow: 0 25px 100px rgba(7, 46, 28, .35); }
.news-dialog::backdrop { background: rgba(13, 42, 26, .57); backdrop-filter: blur(4px); }
.news-dialog form { position: absolute; top: 13px; right: 13px; margin: 0; }
.news-close { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #d1a035; border-radius: 50%; color: #68490b; background: #ffdb4c; font-size: 24px; cursor: pointer; }
.news-dialog .news-date { margin: 19px 0 5px; }
.news-dialog h2 { max-width: 520px; margin: 0 0 20px; font: 900 30px/1.1 'Trebuchet MS', sans-serif; }
.news-dialog-body { overflow-y: auto; max-height: 55vh; color: #526b58; font-size: 14px; line-height: 1.75; }
.news-dialog-body img { max-width: 100%; height: auto; border-radius: 12px; }
.news-dialog-body a { color: #2e8131; text-decoration: underline; }
.news-dialog-body p:first-child { margin-top: 0; }

@media (max-width: 900px) {
  .site-header { gap: 19px; }
  .brand-word small { display: none; }
  .feature-card { padding: 22px 19px; }
}
@media (max-width: 680px) {
  .section-wrap { width: min(100% - 36px, 520px); }
  .site-header { min-height: 70px; padding: 9px 18px; }
  .brand-mascot { width: 44px; }
  .brand-mascot > img { width: 48px; height: 48px; }
  .brand-word { min-height: 34px; margin-left: -12px; padding: 2px 5px 2px 17px; }
  .brand-word strong { font-size: 16px; }
  .main-nav { position: absolute; top: calc(100% + 1px); right: 12px; left: 12px; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 9px; border: 1px solid var(--line); border-radius: 0 0 16px 16px; background: var(--cream); box-shadow: 0 15px 25px rgba(31, 79, 34, .13); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 12px; border-radius: 9px; }
  .main-nav a:hover { background: #eff7e1; }
  .header-actions { display: none; }
  .mobile-nav-action { display: flex; }
  .header-actions .button { min-height: 37px; padding-inline: 12px; font-size: 11px; }
  .nav-toggle { display: grid; width: 37px; height: 37px; align-content: center; justify-items: center; gap: 4px; margin-left: 2px; border: 1px solid #61999a; border-radius: 11px; background: #fff7df; }
  .nav-toggle span { width: 16px; height: 2px; border-radius: 2px; background: var(--green-dark); }
  .world-section { padding-top: 53px; padding-bottom: 72px; }
  .section-heading h2, .account-copy h2 { font-size: 37px; }
  .feature-grid, .news-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { display: grid; min-height: 0; grid-template-columns: 125px 1fr; align-items: stretch; gap: 5px; padding: 8px; }
  .feature-image { height: 100%; min-height: 142px; }
  .feature-copy { align-self: center; padding: 12px; }
  .feature-card p { min-height: 0; }
  .news-section { padding: 59px 0 65px; }
  .news-heading { align-items: flex-start; flex-direction: column; }
  .news-heading .button { min-height: 40px; }
  .news-card { min-height: 190px; }
  .maize-package-grid { grid-template-columns: 1fr; gap: 12px; }
  .maize-package-card { min-height: 145px; }
  .account-section { padding: 44px 18px 52px; background-position: center; }
  .account-card { grid-template-columns: 1fr; }
  .account-art { min-height: 235px; }
  .account-duck { width: 112px; height: 112px; font-size: 68px; }
  .account-sun { top: 27px; right: 28px; width: 55px; height: 55px; }
  .account-copy { padding: 29px 25px 32px; }
  .account-actions .button { width: 100%; }
  .portal-heading { align-items:flex-start; flex-direction:column; gap:10px; padding:23px 20px 20px; }
  .portal-signed-out { padding:21px 16px 25px; }
  .portal-signed-in { padding:16px 12px 22px; }
  .portal-profile { align-items:flex-start; flex-wrap:wrap; padding:13px; }
  .portal-profile .button { margin-left:auto; }
  .portal-member-actions { grid-template-columns:1fr; }
  .portal-member-actions > .button-outline { min-height:45px; }
  .checkin-button { padding:12px; }
  .checkin-button strong { font-size:14px; }
  .checkin-button small { font-size:10px; }
  .portal-settings { grid-template-columns:1fr; gap:17px; padding:16px; }
  .portal-admin { padding:14px; }
  .portal-admin-heading { align-items:flex-start; flex-direction:column; }
  .portal-admin iframe { height:1000px; }
  .account-management-main { width:min(100% - 28px,640px); margin:27px auto 48px; }
  .account-form-card { grid-template-columns:1fr; gap:16px; padding:16px; }
  .account-profile-card { gap:13px; }
  .account-profile-group { padding:13px; }
  .account-profile-controls { grid-template-columns:1fr; gap:10px; }
  .account-profile-actions { align-items:stretch; flex-direction:column; }
  .account-profile-actions .button { width:100%; }
  .legal-layout { width:calc(100% - 28px); margin:26px auto 45px; padding:22px 18px; }
  .closing-cta { padding: 38px 0; }
  .closing-inner { align-items: flex-start; flex-direction: column; }
  .closing-inner .button { width: 100%; }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
  .footer-main { align-items: flex-start; flex-direction: column; gap: 8px; }
  .site-footer nav { margin-left: 0; gap: 10px 14px; }
  .news-dialog { padding: 28px 21px; }
  .news-dialog h2 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
