:root{--green:#164638;--muted:#52665d;--line:#dfe8e1;--soft:#edf4ed;--white:#fff}
body{background:#f5f8f4;color:#1a3228}
.site-header,.subsite-header{--header-logo-width:clamp(165px,17vw,232px);background:#fff;border-bottom:1px solid var(--line)}
.site-header .header-inner{min-height:72px;gap:16px}
:is(.site-header,.subsite-header) .brand{gap:8px;flex:0 1 auto;min-width:0}
:is(.site-header,.subsite-header) .brand-logo{width:var(--header-logo-width);min-width:0;flex:0 1 auto}
:is(.site-header,.subsite-header) .brand-type strong{font-family:inherit;font-size:1.05rem;font-weight:750;letter-spacing:0}
.site-header .desktop-nav{gap:18px}
.site-header .desktop-nav a{padding-block:22px;font-size:.91rem;white-space:nowrap}
.site-header .desktop-nav a[aria-current=page]:after{bottom:13px}
.header-inbox,.subsite-header a[href="/inbox"]{display:inline-flex;align-items:center;gap:5px;padding:8px 11px;border:1px solid #b8cdbc;border-radius:8px;white-space:nowrap;color:#164638;font-size:.9rem;font-weight:700}
.inbox-count:not([hidden]){display:inline-grid;place-items:center;min-width:1.25rem;height:1.25rem;padding-inline:4px;border-radius:999px;background:#1b5a44;color:white;font-size:.7rem;line-height:1}
.subsite-header nav,.subsite-header nav div{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.subsite-header nav{justify-content:space-between;min-height:72px;padding-block:0}
.subsite-header nav div{font-size:.9rem}
.subsite-header nav a:hover,.news-card a:hover{text-decoration:underline;text-underline-offset:3px}
.page-home{padding-block:18px 42px}
.page-home .club-intro{grid-template-columns:1.3fr 1fr;gap:20px;padding:22px 26px;border-radius:14px;background:#163f32}
.page-home .club-intro h1{font-family:inherit;font-size:clamp(1.65rem,3.2vw,2.6rem);letter-spacing:.02em}
.page-home .club-intro .club-actions{justify-content:flex-end}
.page-home .club-intro figure img{aspect-ratio:2.65/1;border-radius:9px}
.club-actions .button-secondary{color:#164638;border-color:#b9c9bd;background:#fff}
.club-intro .club-actions .button-secondary{color:#fff;background:transparent;border-color:#a1b6a8}
.club-panel,.forum-page .forum-entry,.news-card,.book-detail,.member-tier,.account-section{border-color:var(--line);border-radius:12px;background:#fff}
.club-panel-head h2{font-family:inherit;font-size:1.25rem}
.home-news{padding-bottom:8px}
.home-news-topics{display:flex;flex-wrap:wrap;gap:6px;padding:0 16px}
.home-news-topics a{background:#edf4ed;color:#164638;font-size:.875rem;line-height:1.4;padding:7px 10px;border-radius:7px}
.home-news .news-grid{display:block;margin-top:10px;padding-inline:16px}
.home-news-featured,.home-news-expanded{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 12px}
.home-news .news-card{padding:10px 6px;border:0;border-top:1px solid var(--line);border-radius:0}
.home-news .news-card h3{margin:4px 0;font-size:.9375rem;line-height:1.45;font-weight:700}
.home-news .news-card .news-meta{font-size:.75rem;line-height:1.4;color:#586d62}
.home-news-category{font-weight:650;color:#365d4c}
.home-news-summary{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:.8125rem;line-height:1.45;color:#52665d}
.home-news-expanded .home-news-summary{display:none}
.home-news-more{margin-top:4px;border-top:1px solid var(--line)}
.home-news-more summary{display:flex;align-items:center;gap:8px;min-height:44px;width:fit-content;padding:4px 6px;font-size:.875rem;font-weight:650;color:#164638;cursor:pointer;list-style:none}
.home-news-more summary::-webkit-details-marker{display:none}
.home-news-more summary::after{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg) translateY(-2px)}
.home-news-more[open] summary::after{transform:rotate(225deg) translateY(-2px)}
.home-news-close,.home-news-more[open] .home-news-open{display:none}
.home-news-more[open] .home-news-close{display:inline}
.course-admin h1,.page-intro h1,.member-heading h1{font-family:inherit;font-weight:750;letter-spacing:0}
.course-admin h1{font-size:clamp(1.7rem,4vw,2.6rem);line-height:1.25}
.inbox-page{max-width:880px}
.inbox-toolbar{display:flex;justify-content:space-between;gap:10px 16px;align-items:center;flex-wrap:wrap;margin-block:12px 18px}
.inbox-toolbar form,.inbox-toolbar form .button{margin:0}
.inbox-list{display:grid;gap:8px}
.inbox-item{background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 14px}
.inbox-item.is-unread{border-inline-start:4px solid #2b775b}
.inbox-item p{font-size:.875rem;color:var(--muted)}
.inbox-item h2{margin:2px 0 0;font-size:1.06rem}
.forum-entry[id^="reply-"]{scroll-margin-top:80px}
@media(max-width:1020px){
  .site-header .desktop-nav{gap:10px}
  :is(.site-header,.subsite-header) .brand-type strong{font-size:.95rem}
  .site-header .header-inner{width:calc(100% - 32px);gap:12px}
  .home-news-featured,.home-news-expanded{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:740px){
  .page-home .club-intro{grid-template-columns:minmax(0,1fr);padding:17px;gap:12px}
  .page-home .club-intro figure{display:none}
  .page-home .club-intro .club-actions .button{min-height:48px}
  .home-news .news-grid{padding-inline:12px}
  .home-news .home-news-summary{display:none}
  .home-news-topics{padding-inline:12px}
  .subsite-header nav{gap:4px 12px}
}
@media(max-width:380px){
  .site-header .header-inner{width:calc(100% - 24px);gap:7px}
  .header-inbox{padding:7px}
}

.news-page{max-width:1000px}
.news-page > h1{margin-bottom:8px}
.news-index-intro{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:2px 16px;color:#52665d;font-size:.875rem;line-height:1.5}
.news-page .news-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,11rem) auto;align-items:end;gap:8px 12px;margin:14px 0;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff}
.news-toolbar label{display:grid;gap:3px;color:#365d4c;font-size:.8125rem}
.news-page .news-toolbar select{min-width:0;width:100%;height:42px;margin:0;padding:5px 9px;border:1px solid #c8d8cc;border-radius:7px;background:#f8faf8;color:#1a3228;font-size:.875rem}
.news-page .news-toolbar .button{min-height:42px;margin:0;padding-inline:15px;font-size:.875rem}
.news-index-list{border:1px solid var(--line);border-radius:12px;background:#fff}
.news-index-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 24px;padding:13px 16px;overflow-wrap:anywhere}
.news-index-item+.news-index-item{border-top:1px solid var(--line)}
.news-index-item .news-meta{font-size:.75rem;line-height:1.4}
.news-index-topic{font-weight:650;color:#365d4c}
.news-page .news-index-item h2{margin:4px 0;font-family:inherit;font-size:1rem;line-height:1.45}
.news-index-item h2 a{color:#164638}
.news-index-summary,.news-detail p{font-size:.875rem;line-height:1.55;color:#40584d}
.news-index-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;max-width:10rem;gap:4px 12px;font-size:.8125rem;color:#52665d}
.news-index-actions a,.news-pagination a{color:#164638;text-decoration:underline;text-underline-offset:3px}
.news-index-actions p{width:100%;text-align:right;font-size:.75rem}
.news-index-empty{padding:16px;font-size:.875rem}
.news-pagination{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:12px;font-size:.875rem;color:#52665d}
.news-pagination a{display:inline-flex;align-items:center;min-height:40px}
@media(max-width:600px){
  .news-page{width:calc(100% - 28px)}
  .news-page .news-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:6px;padding:8px}
  .news-page .news-toolbar .button{padding-inline:10px}
  .news-index-item{grid-template-columns:minmax(0,1fr);padding:12px}
  .news-index-actions{max-width:none;justify-content:flex-start}
  .news-index-actions p{width:auto;text-align:left}
}

.forum-page{max-width:1120px}
.forum-page > h1{margin-bottom:6px}
.forum-page .forum-intro{margin-bottom:15px;font-size:.875rem}
.forum-page .forum-layout{gap:16px;grid-template-columns:minmax(0,1fr) minmax(210px,250px)}
.forum-page .forum-filters{margin:0 0 13px;padding:8px 10px;gap:7px;border-radius:9px}
.forum-page .forum-filters label{font-size:.75rem}
.forum-page .forum-filters select{height:38px;min-height:38px;padding:4px 7px;font-size:.875rem}
.forum-page .forum-filters .button{min-height:38px;font-size:.8125rem;padding:4px 10px}
.forum-page .forum-feed-section h2{margin:12px 0 6px;font-family:inherit;font-size:1rem;font-weight:730}
.forum-list{overflow:hidden;border:1px solid var(--line);border-radius:10px;background:#fff}
.forum-list-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px 14px;padding:10px 13px;overflow-wrap:anywhere}
.forum-list-item+.forum-list-item{border-top:1px solid var(--line)}
.forum-list-copy h3{margin:0;font-size:.9625rem;line-height:1.45;color:#164638}
.forum-list-copy h3 a:hover,.forum-list-actions a:hover{text-decoration:underline;text-underline-offset:3px}
.forum-list-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 7px;margin-top:3px;color:#52665d;font-size:.75rem;line-height:1.45}
.forum-list-tag{padding:1px 5px;border-radius:4px;color:#365d4c;background:#edf4ed}
.forum-list-meta .forum-byline{margin:0;font-size:inherit}
.forum-list-excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-top:4px;color:#40584d;font-size:.875rem;line-height:1.48}
.forum-list-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:2px 9px;color:#365d4c;font-size:.8125rem}
.forum-page .forum-shortcuts{margin-bottom:8px;padding:6px;gap:4px}
.forum-page .forum-shortcuts a{min-height:36px;padding:4px 7px;font-size:.8125rem}
.forum-composer{background:#fff;border:1px solid var(--line);border-radius:9px;scroll-margin-top:72px}
.forum-composer summary{padding:8px 12px;color:#164638;font-size:.875rem;font-weight:700;cursor:pointer}
.forum-composer-body{padding:0 12px 12px;font-size:.875rem}
.forum-composer-body .forum-form{gap:8px;margin-block:8px}
.forum-page > .forum-body{max-width:780px;font-size:.9375rem;line-height:1.62}
.forum-page .forum-example,.forum-page .forum-entry .forum-body{font-size:.875rem;line-height:1.55}
@media(max-width:860px){.forum-page .forum-layout{grid-template-columns:minmax(0,1fr);gap:12px}}
@media(max-width:600px){
  .forum-list-item{grid-template-columns:minmax(0,1fr);padding:9px 11px}
  .forum-list-actions{justify-content:flex-start}
}

.mobile-home-tools{display:none}
@media(max-width:820px){
  .site-header .header-inner,.subsite-header .container{width:calc(100% - 32px);min-height:58px;padding-block:0;gap:8px;flex-wrap:nowrap}
  .site-header,.subsite-header{--header-logo-width:clamp(124px,calc(55vw - 52px),178px)}
  :is(.site-header,.subsite-header) .brand{gap:5px}
  .site-header .brand-type{min-width:0}
  :is(.site-header,.subsite-header) .brand-type strong{font-size:.91rem;line-height:1.2;white-space:nowrap}
  .site-header .header-inbox,.subsite-header a[href="/inbox"]{min-height:36px;padding:5px 8px;font-size:.8125rem;border-color:#d7e4da}
  .subsite-header nav div{flex:none}
  .subsite-header nav div > a:not([href="/inbox"]){display:none}
  body,.subsite-body{min-width:0;padding-bottom:calc(66px + env(safe-area-inset-bottom))}
  .bottom-nav{position:fixed;inset:auto 0 0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;gap:0;z-index:40;padding:4px 4px calc(4px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #dfe8e1}
  .bottom-nav a{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-height:52px;padding:2px;color:#53685e;font-size:.72rem;line-height:1.2}
  .bottom-nav .nav-icon{display:grid;place-items:center;width:38px;height:25px;border-radius:8px}
  .bottom-nav .nav-icon svg{display:block;width:20px;height:20px}
  .bottom-nav a[aria-current="page"]{color:#164638;font-weight:750}
  .bottom-nav a[aria-current="page"] .nav-icon{background:#e6f1e9}
  .mobile-home-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
  .mobile-home-tools a{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:3px 8px;padding:10px 12px;border:1px solid #dfe8e1;border-radius:10px;background:white;color:#164638}
  .mobile-home-tools strong{font-size:.9375rem}
  .mobile-home-tools span{font-size:.75rem;color:#52665d}
}
@media(max-width:600px){
  .container,.page-home,.news-page,.forum-page,.books-page,.membership-hub{width:calc(100% - 28px)}
  .page-home .club-intro{padding:18px 16px;border-radius:13px;gap:8px}
  .page-home .club-intro h1{font-size:1.38rem;margin:0 0 6px}
  .page-home .club-intro p{font-size:.875rem;line-height:1.55}
  .page-home .club-intro .club-actions{margin-top:11px}
  .page-home .home-news{margin-block:12px}
  .page-home .club-panel-head{padding:11px 12px 8px}
  .page-home .club-panel-head h2{font-size:1.06rem}
  .page-home .club-panel-head .section-link{font-size:.8125rem;white-space:nowrap}
  .home-news-topics{gap:5px}
  .home-news-topics a{font-size:.75rem;padding:6px 7px}
  .home-news-featured,.home-news-expanded{grid-template-columns:minmax(0,1fr)}
  .home-news .news-card{padding:7px 0}
  .home-news .news-card h3{font-size:.875rem;margin:2px 0}
  .home-news .news-card .news-meta{font-size:.72rem}
  .page-home .club-row{grid-template-columns:minmax(0,1fr);gap:1px;padding-block:8px}
  .page-home .club-row h3,.page-home .club-row strong{font-size:.9rem}
  .page-home .club-row p,.page-home .club-row-copy{font-size:.8125rem}
  .page-home .club-category,.page-home .club-panel-note{font-size:.75rem}
  .course-admin h1,.page-intro h1,.member-heading h1{font-size:1.55rem;line-height:1.22}
  .course-admin,.membership-hub{padding-top:16px}
  .course-admin h1,.forum-page > h1{margin-top:2px}
  .page-intro p:not(.eyebrow),.member-heading p,.member-free p,.member-tier li,.book-detail p,.book-detail dd{font-size:.875rem;line-height:1.55}
  .forum-page .forum-layout{gap:10px}
  .forum-page .forum-side{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:start}
  .forum-page .forum-shortcuts{margin:0}
  .forum-composer[open]{grid-column:1/-1}
  .forum-composer:not([open]) summary{min-height:39px;display:flex;align-items:center;white-space:nowrap}
  .forum-page .forum-filters .button{width:100%;padding-inline:5px}
  .forum-list-item .forum-list-meta{line-height:1.4}
  .course-grid .course-card{border-radius:11px;overflow:hidden}
  .course-grid .course-image{max-height:155px}
  .course-card .course-card-body{padding:14px}
  .course-card .course-card-body h3{font-size:1.1rem}
  .course-card .course-card-body p{font-size:.875rem;line-height:1.5}
  .member-free,.member-tier,.book-detail{padding:13px}
  .member-tier h3,.book-detail h3{font-size:1rem}
  .member-tier .member-price strong{font-size:1.65rem}
  .member-tier .button,.member-free .button{width:100%;min-height:42px}
  .news-index-summary,.forum-list-excerpt{font-size:.8125rem}
  .inbox-item h2{font-size:.95rem}
  .dialog-body{padding:22px 16px}
}
@media(max-width:350px){
  :is(.site-header,.subsite-header) .brand-type strong{font-size:.8rem}
  .site-header .header-inner,.subsite-header .container{width:calc(100% - 20px)}
}

.ui-icon {
  display: inline-block;
  flex: none;
  vertical-align: -.14em;
  pointer-events: none;
}
.ui-icon-label {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
}
.ui-icon-badge {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  color: #28604c;
  background: #eaf2eb;
}
.site-header .desktop-nav a,
.subsite-header nav div > a {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
}
@media (min-width: 821px) and (max-width: 1190px) {
  .site-header .desktop-nav .ui-icon { display: none; }
}
@media (max-width: 820px) {
  .subsite-header nav div > a:not([href="/inbox"]) { display: none; }
  .site-header .header-inbox,
  .subsite-header a[href="/inbox"] { min-height: 44px; }
}

.forum-page .forum-intro-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 12px;
}
.forum-page .forum-intro-row .forum-intro { margin: 0; }
.forum-article-actions { display: flex; gap: 6px; }
.forum-page .forum-article-actions .button {
  min-height: 44px;
  margin: 0;
  padding: 5px 12px;
  font-size: .875rem;
}
@media (min-width: 821px) and (max-width: 960px) {
  .site-header .desktop-nav a[href="#home"] { display: none; }
}
