/* Scoped styling for the hub's educational and partner pages. */
#jwh-site .jws-page {
  --jws-ink: #172e21;
  --jws-green: #12462e;
  --jws-gold: #d5af49;
  --jws-line: #e5e1cb;
  --jws-paper: #fbf8ee;
  max-width: 1050px;
  padding: 22px clamp(16px,4vw,54px) clamp(36px,6vw,70px);
  margin: 0 auto;
  box-sizing: border-box;
  font: 400 16px/1.5 Arial, Helvetica, sans-serif;
  color: var(--jws-ink);
  text-align: left;
}
.jws-page *, .jws-page *::before, .jws-page *::after { box-sizing: border-box; }
.jws-page :is(h1,h2,h3,p,ol,ul) { margin: 0; }
.jws-page :is(h1,h2,h3) { color: var(--jws-ink); font-family: Georgia, 'Times New Roman', serif; font-weight: 700; line-height: 1.12; }
.jws-page h2 { font-size: clamp(1.22rem,2.4vw,1.65rem); letter-spacing: -.035em; }
.jws-page h3 { font-size: 1.12rem; }
.jws-crumb { display: flex; align-items: baseline; flex-wrap: wrap; gap: .55em; margin-bottom: 14px; font-size: .84rem; line-height: 1.3; color: #5a6252; }
.jws-crumb a { color: var(--jws-green); text-decoration: underline; text-underline-offset: 3px; }
.jws-hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  min-height: 148px;
  display: flex;
  align-items: center;
  padding: 25px clamp(17px,3.5vw,38px);
  border-radius: 17px;
  border: 1px solid #e6dfc2;
  border-bottom: 3px solid #d9b446;
  background: linear-gradient(105deg,#fcfaf0,#f4f0db);
}
.jws-hero > div { position: relative; z-index: 2; width: 73%; }
.jws-hero.jws-text-hero > div { width: 100%; }
.jws-hero h1 { margin: 0; font: italic 700 clamp(2rem,4.1vw,3.3rem)/1.04 Georgia, 'Times New Roman',serif; color: #133e29; letter-spacing: -.045em; overflow-wrap: anywhere; }
.jws-hero p { margin-top: .54em; font-size: clamp(.94rem,1.6vw,1.1rem); line-height: 1.38; }
.jws-hero-image { z-index: -1; position: absolute; top: 0; right: 0; width: 30%; height: 100%; display: block; object-fit: cover; object-position: center; mask-image: linear-gradient(90deg,transparent 0%,#000 34%); -webkit-mask-image: linear-gradient(90deg,transparent 0%,#000 34%); }
.jws-content { padding-top: clamp(18px,3vw,32px); }
.jws-list, .jws-tiles, .jws-how, .jws-course-grid { display: grid; gap: 12px; list-style: none; padding: 0; }
.jws-list > li { margin: 0; }
.jws-list > li > a {
  display: flex; align-items: center; gap: 16px; min-height: 76px;
  padding: 13px clamp(13px,2.6vw,26px); border: 1px solid var(--jws-line);
  border-radius: 12px; background: linear-gradient(100deg,#fcfaf1,#fffef9);
  color: var(--jws-ink); text-decoration: none;
}
.jws-list > li > a:hover { border-color: #aeaf87; background: #f6f5e5; }
.jws-symbol {
  flex: 0 0 auto; width: 45px; height: 45px; display: inline-grid; place-items: center;
  border-radius: 50%; color: #235332; background: #ebefdb;
}
.jws-list li:nth-child(even) .jws-symbol, .jws-tile:nth-child(even) .jws-symbol { background: #faf0cb; }
.jws-list-copy { display: grid; gap: .14em; }
.jws-list-copy strong { font: 700 clamp(1.12rem,2.2vw,1.48rem)/1.15 Georgia,serif; letter-spacing: -.03em; }
.jws-list-copy > span { color: #505e50; font-size: .95rem; }
.jws-circle { display: inline-grid; place-items: center; color: #fff; background: #195035; border-radius: 50%; flex: 0 0 23px; width: 23px; height: 23px; font: 500 20px/1 Arial,sans-serif; margin-left: auto; padding-bottom: 2px; }
.jws-page a:focus-visible, .jws-page button:focus-visible, .jws-page :is(input,textarea):focus-visible { outline: 3px solid #aa7f17; outline-offset: 3px; }
.jws-page .jws-link { color: #1b5537; font: 650 .96rem/1.45 Arial,sans-serif; text-decoration: underline; text-underline-offset: 3px; }
.jws-page .jws-link:hover { text-decoration-thickness: 2px; }
.jws-page .jws-button {
  display: inline-flex; justify-content: center; align-items: center; gap: 7px;
  min-height: 44px; padding: 10px 21px; border: 1px solid #12462e; border-radius: 999px;
  background: #12462e; color: white; text-decoration: none; font: 700 .95rem/1.3 Arial,sans-serif; cursor: pointer;
}
.jws-page .jws-button:hover { background: #0a3521; color: white; }
.jws-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.jws-tile, .jws-action, .jws-story, .jws-recipe, .jws-form, .jws-how > li {
  padding: clamp(17px,3vw,28px); border: 1px solid var(--jws-line); border-radius: 13px; background: var(--jws-paper);
}
.jws-tile { display: flex; align-items: flex-start; flex-direction: column; gap: 10px; scroll-margin-top: 30px; }
.jws-tile > .jws-link { margin-top: auto; padding-top: 4px; }
.jws-action > :is(h2,p,a), .jws-story > :is(p,a), .jws-recipe > div > :is(p,h3,ol) { margin-top: .65em; }
.jws-recipe { background: #eff3e7; margin-bottom: 16px; }
.jws-recipe ol { padding-left: 1.4em; }
.jws-recipe li + li { margin-top: .35em; }
.jws-facts { color: #526951; font-size: .9rem; }
.jws-content .jws-bottom { margin-top: 19px; }
.jws-content .jws-heading { margin-bottom: 14px; }
.jws-notice { background: #f3f4e8; border-left: 3px solid #a49e48; border-radius: 4px; padding: 13px 16px; }
.jws-plain-list { padding-left: 1.2em; }
.jws-plain-list li + li { margin-top: .35em; }
.jws-how > li { display: flex; align-items: flex-start; gap: 16px; }
.jws-how > li h2 a { font: inherit!important; }
.jws-how > li p { margin-top: 5px; }
.jws-step-number { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #e9d899; color: #163f29; font-weight: bold; }
.jws-course-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.jws-course { display: flex; align-items: center; gap: 13px; padding: 9px 13px 9px 9px; background: var(--jws-paper); color: var(--jws-ink); border: 1px solid var(--jws-line); border-radius: 11px; text-decoration: none; }
.jws-course img { width: 74px; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.jws-course > span { display: grid; gap: 5px; }
.jws-course b { margin-left: auto; }
.jws-course strong { font: 700 1.12rem/1.16 Georgia,serif; }
.jws-page .jwd-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; padding: 15px 0 0; }
.jws-contact-links { display: flex; flex-wrap: wrap; gap: .6em 1.4em; padding: .8em 0; }
.jws-form { display: grid; gap: 14px; max-width: 720px; }
.jws-form > div { display: grid; gap: 15px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.jws-form label { display: grid; gap: 5px; color: var(--jws-ink); font-size: .95rem; font-weight: 600; }
.jws-form :is(input,textarea) { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #aeb9a8; border-radius: 6px; background: #fff; color: #182b20; font: 400 16px/1.4 Arial,sans-serif; }
.jws-form textarea { resize: vertical; }
.jws-form p { font-size: .86rem; line-height: 1.4; color: #4d5d4f; }
.jws-form .jws-button { justify-self: start; }
.jws-notice + .jws-form { margin-top: 16px; }
@media (max-width:620px) {
  #jwh-site .jws-page { padding: 17px 14px 30px; }
  .jws-hero { min-height: 130px; }
  .jws-hero > div { width: 77%; }
  .jws-hero-image { width: 29%; }
  .jws-list > li > a { padding: 12px; gap: 10px; }
  .jws-symbol { width: 35px; height: 35px; }
  .jws-symbol svg { width: 23px; height: 23px; }
  .jws-list-copy > span { font-size: .88rem; }
  .jws-tiles, .jws-course-grid, .jws-form > div { grid-template-columns: 1fr; }
}
.jws-financial-hero { display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: clamp(20px,4vw,48px); padding: 20px; background: var(--jws-paper); border: 1px solid var(--jws-line); border-radius: 16px; }
.jws-financial-hero div { padding: clamp(0px,1.9vw,22px); }
.jws-financial-hero h1 { margin: 0; font: italic 700 clamp(2rem,4.2vw,3.4rem)/1.03 Georgia,serif; color: var(--jws-green); letter-spacing: -.04em; }
.jws-financial-hero p { margin-top: .8em; max-width: 37ch; }
.jws-financial-hero img { display: block; width: 100%; height: auto; aspect-ratio: 1.65; object-fit: cover; border-radius: 10px; }
@media (max-width:620px) {
  .jws-financial-hero { display: flex; flex-direction: column; align-items: stretch; padding: 15px; gap: 11px; }
  .jws-financial-hero div { display: contents; }
  .jws-financial-hero h1 { order: 1; }
  .jws-financial-hero img { order: 2; aspect-ratio: 2.1; }
  .jws-financial-hero p { order: 3; margin-top: 0; }
}
