/*
Theme Name:  Jamsville
Theme URI:   https://jamsville.com/
Description: The jamsville.com frame: the app's green brand bar with the outlined text logo, Montserrat, cards, light and dark. Most of the site renders bare (the app, the guides, the lesson pages) and never loads this; it frames what is left (legal pages, contact, agreements, the 404, account endpoints). Source: Jamsville Website repo wordpress/themes/jamsville; deployed only through the App repo's guarded `npm run wp-plugin -- theme ...` lane.
Version:     1.0.2
Author:      Jamsville
Requires PHP: 7.4
License:     Proprietary
Text Domain: jamsville
*/

/* Tokens are the guides' (learn/assets/guides.css), which are the app's
   (packages/app/shell/app-shell.css :root and html.gfmt-dark-mode). */
:root{
  --jvs-font:"Montserrat","Inter","Helvetica Neue",Arial,sans-serif;
  --jvs-green:#1f4d2e;--jvs-green-bar:linear-gradient(180deg,#17592a 0%,#0f3e1a 100%);
  --jvs-bg:#f6f8f4;--jvs-surface:#ffffff;--jvs-ink:#18201b;--jvs-muted:#5f6b63;--jvs-line:#dfe7e1;
  --jvs-accent:#1f4d2e;--jvs-accent-soft:#e7f0e8;--jvs-link:#a85208;
  --jvs-primary:linear-gradient(180deg,#b85a0e,#a84c06);--jvs-primary-ink:#ffffff;
  --jvs-primary-shadow:0 8px 18px rgba(238,125,28,.3),inset 0 1px 0 rgba(255,255,255,.28);
  --jvs-shadow:0 18px 45px rgba(21,55,32,.14);
  --jvt-top-h:calc(58px + env(safe-area-inset-top,0px));
  color-scheme:light;
}
html.gfmt-dark-mode{
  --jvs-link:#f3a35a;--jvs-bg:#0f1511;--jvs-surface:#19211c;--jvs-ink:#eef2ee;--jvs-muted:#a3aea6;--jvs-line:#2b352e;
  --jvs-accent:#6fcf8f;--jvs-accent-soft:#1b3323;--jvs-shadow:0 18px 45px rgba(0,0,0,.45);
  color-scheme:dark;
}
*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;scroll-padding-top:calc(var(--jvt-top-h) + 12px);}
body.jvt{margin:0;background:var(--jvs-bg);color:var(--jvs-ink);font:500 17px/1.65 var(--jvs-font);
  min-height:100vh;display:flex;flex-direction:column;overflow-x:hidden;}
img,video,iframe{max-width:100%;height:auto;}
a{color:var(--jvs-link);text-underline-offset:2px;}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(238,125,28,.55);outline-offset:2px;border-radius:6px;}
.jvt-skip{position:absolute;left:12px;top:-60px;z-index:100;background:var(--jvs-surface);color:var(--jvs-ink);padding:10px 14px;border-radius:10px;font-weight:800;}
.jvt-skip:focus{top:calc(var(--jvt-top-h) + 8px);}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}

/* Brand bar: the app's green bar and outlined logo (never filtered, always on the dark green). */
.jvt-top{position:sticky;z-index:60;top:0;min-height:var(--jvt-top-h);display:flex;align-items:center;gap:8px;
  padding:env(safe-area-inset-top,0px) calc(10px + env(safe-area-inset-right,0px)) 0 calc(14px + env(safe-area-inset-left,0px));
  background:var(--jvs-green-bar);color:#fff;box-shadow:0 2px 14px rgba(9,40,16,.28);}
.jvt-brand{display:inline-flex;align-items:center;flex:0 0 auto;min-height:44px;}
.jvt-brand img{display:block;height:34px;width:auto;}
.jvt-links{display:none;align-items:center;gap:4px;margin-left:auto;}
.jvt-links a,.jvt-menu-list a{color:#fff;font-weight:800;font-size:14px;text-decoration:none;}
.jvt-links a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border-radius:999px;}
.jvt-links a:hover,.jvt-links a[aria-current]{background:rgba(255,255,255,.14);}
.jvt-open{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:999px;margin-left:auto;white-space:nowrap;
  background:var(--jvs-primary);color:var(--jvs-primary-ink);font-weight:800;font-size:14px;text-decoration:none;box-shadow:var(--jvs-primary-shadow);}
.jvt-menu{position:relative;}
.jvt-menu summary{list-style:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:999px;cursor:pointer;color:#fff;
  border:1px solid rgba(255,255,255,.4);background:rgba(255,255,255,.12);}
.jvt-menu summary::-webkit-details-marker{display:none;}
.jvt-menu summary svg{width:22px;height:22px;fill:currentColor;}
.jvt-menu-list{position:absolute;right:0;top:calc(100% + 8px);min-width:220px;margin:0;padding:8px;list-style:none;border-radius:16px;
  background:var(--jvs-green);box-shadow:0 18px 40px rgba(0,0,0,.35);}
.jvt-menu-list a{display:flex;align-items:center;min-height:44px;padding:0 14px;border-radius:12px;}
.jvt-menu-list a:hover{background:rgba(255,255,255,.14);}
@media (min-width:760px){
  .jvt-top{padding-left:calc(22px + env(safe-area-inset-left,0px));padding-right:calc(18px + env(safe-area-inset-right,0px));}
  .jvt-links{display:flex;}
  .jvt-open{margin-left:8px;}
  .jvt-menu{display:none;}
}

/* Page body: one column of cards, like the guides. */
.jvt-main{flex:1 0 auto;width:100%;max-width:820px;margin:0 auto;padding:28px 16px 40px;}
.jvt-main--wide{max-width:1100px;}
.jvt-card{background:var(--jvs-surface);border:1px solid var(--jvs-line);border-radius:20px;box-shadow:var(--jvs-shadow);padding:24px 20px;}
@media (min-width:760px){.jvt-card{padding:36px 40px;}.jvt-main{padding-top:40px;}}
.jvt-title{margin:0 0 18px;font-size:clamp(28px,6vw,40px);line-height:1.15;font-weight:900;letter-spacing:-.01em;color:var(--jvs-ink);}
.jvt-kicker{margin:0 0 6px;color:var(--jvs-accent);font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;}

/* Prose (legal pages and anything WordPress-authored). */
.jvt-prose{overflow-wrap:anywhere;}
.jvt-prose h1,.jvt-prose h2,.jvt-prose h3,.jvt-prose h4{color:var(--jvs-ink);font-weight:800;line-height:1.25;margin:1.6em 0 .5em;}
.jvt-prose h2{font-size:24px;}.jvt-prose h3{font-size:20px;}.jvt-prose h4{font-size:17px;}
.jvt-prose > :first-child{margin-top:0;}
.jvt-prose p,.jvt-prose ul,.jvt-prose ol{margin:0 0 1em;}
.jvt-prose li{margin:.25em 0;}
.jvt-prose hr{border:0;border-top:1px solid var(--jvs-line);margin:2em 0;}
.jvt-prose table{border-collapse:collapse;width:100%;display:block;overflow-x:auto;}
.jvt-prose th,.jvt-prose td{border:1px solid var(--jvs-line);padding:8px 10px;text-align:left;}
.jvt-prose blockquote{margin:1em 0;padding:4px 16px;border-left:4px solid var(--jvs-accent);color:var(--jvs-muted);}
.jvt-prose code{font-size:.9em;background:var(--jvs-accent-soft);padding:1px 5px;border-radius:5px;}

/* A managed page (one self-contained HTML fragment with its own colors, e.g. /contact-us/,
   /teaching-agreement/): it was designed on white, so it keeps a white sheet in both themes
   and only the frame follows dark mode. */
.jvt-sheet{background:#fff;color:#18201b;border-radius:20px;box-shadow:var(--jvs-shadow);overflow:hidden;color-scheme:light;}
.jvt-sheet a{color:#1f4d2e;}
.jvt-main--sheet{max-width:1040px;padding:20px 12px 40px;}
@media (min-width:760px){.jvt-main--sheet{padding:32px 20px 48px;}}

/* Buttons and forms (WooCommerce account endpoints, order pay, password forms). */
.jvt-button,.jvt-prose .button,.jvt-main button[type=submit],.jvt-main input[type=submit],.woocommerce .button{
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border:0;border-radius:999px;
  background:var(--jvs-primary);color:var(--jvs-primary-ink);font:800 15px/1 var(--jvs-font);text-decoration:none;cursor:pointer;box-shadow:var(--jvs-primary-shadow);}
.jvt-button--quiet{background:var(--jvs-accent-soft);color:var(--jvs-accent);box-shadow:none;}
.jvt-main input[type=text],.jvt-main input[type=email],.jvt-main input[type=password],.jvt-main input[type=tel],.jvt-main input[type=number],.jvt-main select,.jvt-main textarea{
  min-height:44px;width:100%;max-width:100%;padding:8px 12px;border:1px solid var(--jvs-line);border-radius:12px;background:var(--jvs-surface);color:var(--jvs-ink);font:500 16px/1.4 var(--jvs-font);}
.jvt-main label{font-weight:700;}
.woocommerce-message,.woocommerce-info,.woocommerce-error{list-style:none;margin:0 0 16px;padding:12px 16px;border-radius:14px;background:var(--jvs-accent-soft);color:var(--jvs-ink);}

/* 404 */
.jvt-404{text-align:center;}
.jvt-404 p{color:var(--jvs-muted);}
.jvt-404-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:22px;}

/* Footer: Terms, Privacy, Contact, Account. */
.jvt-foot{flex:0 0 auto;padding:22px 16px calc(28px + env(safe-area-inset-bottom,0px));text-align:center;color:var(--jvs-muted);font-size:14px;font-weight:600;border-top:1px solid var(--jvs-line);}
.jvt-foot nav{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 6px;}
.jvt-foot a{display:inline-flex;align-items:center;min-height:44px;padding:0 8px;color:var(--jvs-muted);}
.jvt-foot a:hover{color:var(--jvs-ink);}
.jvt-foot p{margin:4px 0 0;}
