/* Tree Glossary. Scoped to .tg only. Palette = home "calm" tokens (design/home-calm-build/tm-home.css). */
.tg{--tg-bg:#F3F5F2;--tg-surface:#fff;--tg-primary:#2F4A4C;--tg-secondary:#59638E;--tg-accent:#A97C52;--tg-text:#1E2627;--tg-muted:#5B6869;--tg-border:#DCE2DE;--tg-warn-bg:#fff4e5;--tg-warn:#8a4b00;--tg-focus:#1a5fb4;
  direction:rtl;text-align:right;color:var(--tg-text);font-size:17px;line-height:1.7;max-width:820px;margin:0 auto;box-sizing:border-box}
.tg *,.tg *::before,.tg *::after{box-sizing:border-box}
.tg h2{color:var(--tg-primary);margin:28px 0 10px;font-size:26px;line-height:1.3}
.tg h3{color:var(--tg-primary);margin:0 0 6px;font-size:20px;line-height:1.35}
.tg a{color:var(--tg-secondary)}
.tg :focus-visible{outline:3px solid var(--tg-focus);outline-offset:2px}
.tg-review{background:#fdecea;border:1px dashed #b3261e;color:#7a1a14;padding:8px 12px;border-radius:8px;font-size:14px}

/* body map */
.tg-hint{color:var(--tg-muted);margin:0 0 8px}
.tg-map-wrap{background:var(--tg-bg);border:1px solid var(--tg-border);border-radius:14px;padding:12px 8px 4px}
.tg-svg{display:block;width:100%;max-width:520px;height:auto;margin:0 auto}
.tg-svg-cap{font-size:13px;fill:var(--tg-muted)}
.tg-r{cursor:pointer}
.tg-r>*:not(title){fill:#dfe6e1;stroke:#9fb0aa;stroke-width:1.2;transition:fill .15s ease}
.tg-r:hover>*:not(title){fill:#c8d6ce}
.tg-r:focus{outline:none}
.tg-r:focus-visible>*:not(title){stroke:var(--tg-focus);stroke-width:3}
.tg-r.is-on>*:not(title){fill:var(--tg-accent);stroke:#7d5a3a}

.tg-areas{margin-top:14px;display:grid;gap:8px}
.tg-area{background:var(--tg-surface);border:1px solid var(--tg-border);border-radius:12px;padding:0 14px}
.tg-area>summary{cursor:pointer;font-weight:700;color:var(--tg-primary);padding:12px 0;min-height:44px;list-style-position:inside}
.tg-area[open]{border-color:var(--tg-accent);box-shadow:0 0 0 1px var(--tg-accent)}
.tg-area-lead{margin:0 0 8px;color:var(--tg-muted);font-size:15px}
.tg-chips{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.tg-chip{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:6px 14px;border:1.5px solid var(--tg-secondary);border-radius:999px;text-decoration:none;font-weight:600}
.tg-chip:hover{background:rgba(89,99,142,.08)}
.tg-code{font-size:13px;color:var(--tg-muted);font-weight:600}

/* meridian index */
.tg-cards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px}
.tg-card a{display:flex;flex-direction:column;gap:2px;height:100%;padding:14px;border:1px solid var(--tg-border);border-radius:14px;background:var(--tg-surface);text-decoration:none;color:var(--tg-text)}
.tg-card a:hover{border-color:var(--tg-secondary)}
.tg-card-code{font-weight:700;color:var(--tg-accent);font-size:14px}
.tg-card-name{font-weight:700;color:var(--tg-primary);font-size:18px}
.tg-card-meta{color:var(--tg-muted);font-size:14px}

/* meridian page */
.tg-facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;margin:0 0 8px}
.tg-facts>div{background:var(--tg-bg);border-radius:10px;padding:8px 12px}
.tg-facts dt{font-size:13px;color:var(--tg-muted);margin:0}
.tg-facts dd{margin:0;font-weight:600;text-align:right}
.tg-safety{background:var(--tg-warn-bg);border-right:4px solid var(--tg-warn);color:#4a2a00;padding:12px 14px;border-radius:8px;margin:16px 0}
.tg-point{border-top:1px solid var(--tg-border);padding:14px 0;scroll-margin-top:90px}
.tg-point p{margin:0 0 6px}
.tg-alt{font-size:14px;color:var(--tg-muted)}
.tg-tree{background:var(--tg-bg);border-radius:8px;padding:6px 10px}
.tg-flag{display:inline-block;font-size:13px;font-weight:700;color:var(--tg-warn);background:var(--tg-warn-bg);border-radius:999px;padding:2px 10px}

/* ayurveda */
.tg-toc ul{list-style:none;margin:0 0 16px;padding:0;display:flex;flex-wrap:wrap;gap:6px 14px;font-size:15px}
.tg-terms{margin:0}
.tg-term{border-top:1px solid var(--tg-border);padding:12px 0;scroll-margin-top:90px}
.tg-term dt{font-weight:700;color:var(--tg-primary);font-size:19px}
.tg-en{font-weight:400;color:var(--tg-muted);font-size:14px;margin-inline-start:6px}
.tg-term dd{margin:4px 0 0}
@media (prefers-reduced-motion:reduce){.tg-r>*{transition:none}}
/* JS mode: one panel under the map, areas become a row of chips */
.tg-panel{margin-top:12px;background:var(--tg-surface);border:2px solid var(--tg-accent);border-radius:14px;padding:12px 14px 4px}
.tg-panel-title{margin:0 0 6px!important}
.tg-panel-title:focus{outline:none}
.tg-areas-title{display:none;margin:16px 0 6px;color:var(--tg-muted);font-size:15px}
.tg-js .tg-areas-title{display:block}
.tg-js .tg-areas{display:flex;flex-wrap:wrap;gap:8px;margin-top:0}
.tg-js .tg-area{border:0;padding:0;background:none;box-shadow:none}
.tg-js .tg-area>:not(summary){display:none}
.tg-js .tg-area>summary{list-style:none;display:inline-flex;align-items:center;min-height:40px;padding:6px 14px;border:1px solid var(--tg-border);border-radius:999px;background:var(--tg-surface);font-weight:600;font-size:15px}
.tg-js .tg-area>summary::-webkit-details-marker{display:none}
.tg-js .tg-area.is-on>summary{background:var(--tg-accent);border-color:var(--tg-accent);color:#fff}
/* 1.2.0 figure with meridian lines */
.tg-svg{max-width:560px}
.tg-svg-one{max-width:300px}
.tg .tg-r>*:not(title){fill:transparent;stroke:none}
.tg .tg-r:hover>*:not(title){fill:rgba(169,124,82,.18)}
.tg .tg-r.is-on>*:not(title){fill:rgba(169,124,82,.30);stroke:none}
.tg .tg-r:focus-visible>*:not(title){stroke:var(--tg-focus);stroke-width:2;fill:rgba(26,95,180,.08)}
.tg-line{fill:none;stroke:var(--c);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:opacity .15s,stroke-width .15s}
.tg-hit{fill:none;stroke:transparent;stroke-width:6;stroke-linecap:round}
a.tg-ml{cursor:pointer}
a.tg-ml:hover .tg-line,a.tg-ml:focus-visible .tg-line{stroke-width:3.2}
a.tg-ml:focus{outline:none}
.tg-map.has-sel a.tg-ml .tg-line{opacity:.18}
.tg-map.has-sel a.tg-ml.is-hl .tg-line{opacity:1;stroke-width:3.2}
.tg-dot{fill:#1e2627;stroke:#fff;stroke-width:.8}
.tg-lbl{direction:ltr;unicode-bidi:plaintext;font-size:8.5px;font-weight:700;fill:#1e2627;paint-order:stroke;stroke:#fff;stroke-width:2.4px;font-family:Arial,sans-serif}
a.tg-pt:hover .tg-dot,a.tg-pt:focus-visible .tg-dot{fill:var(--tg-accent)}
.tg-svg-one .tg-line{stroke-width:2.4}
.tg-fig{margin:0 0 12px;background:var(--tg-bg);border:1px solid var(--tg-border);border-radius:14px;padding:10px 8px 6px}
.tg-fig figcaption{font-size:14px;color:var(--tg-muted);text-align:center;margin-top:4px}
.tg-legend{list-style:none;margin:12px 4px 4px;padding:0;display:flex;flex-wrap:wrap;gap:4px 12px;font-size:14px}
.tg-legend a{display:inline-flex;align-items:center;gap:6px;min-height:32px;text-decoration:none;color:var(--tg-text)}
.tg-legend a.is-hl{font-weight:700}
.tg-sw{display:inline-block;width:16px;height:4px;border-radius:2px;background:var(--c)}
.tg-panel-link{display:inline-block;margin:4px 0 12px;font-weight:700}
/* 1.3.0 points on the hub map */
.tg-pthit{fill:transparent}
a.tg-pt{cursor:pointer}
a.tg-pt:focus{outline:none}
a.tg-pt:focus-visible .tg-pthit{stroke:var(--tg-focus);stroke-width:1.5}
.tg-map .tg-pts{display:none}
.tg-map .tg-pts.is-hl{display:inline}
.tg-map .tg-pts .tg-lbl{font-size:7.5px}
.tg-map a.tg-pt.is-on .tg-dot{fill:var(--tg-accent);r:3.6}
.tg-pt-box p{margin:0 0 8px}
.tg-pt-box .tg-flag{margin-bottom:8px}
/* 1.4.0 human figures */
.tg-body{fill:#f4e6d6;stroke:#b39b84;stroke-width:1.1;stroke-linejoin:round}
.tg-hair{fill:#8a6a4f;opacity:.85}
.tg-det{fill:none;stroke:#b39b84;stroke-width:.8;stroke-linecap:round;opacity:.8}
.tg-sex-f{display:none}
.tg-is-f .tg-sex-f{display:inline}
.tg-is-f .tg-sex-m{display:none}
.tg-sexbar{display:flex;gap:8px;justify-content:center;margin:0 0 8px}
.tg-sexbar button{min-height:40px;padding:6px 18px;border-radius:999px;border:1.5px solid var(--tg-secondary);background:#fff;color:var(--tg-secondary);font:inherit;font-weight:600;cursor:pointer}
.tg-sexbar button[aria-pressed="true"]{background:var(--tg-secondary);color:#fff}
.tg-sexbar[hidden]{display:none}
/* 1.5.0 anatomy maps */
.tg-amap .tg-r.is-on>*:not(title){fill:rgba(169,124,82,.16);stroke:none}
a.tg-ax{cursor:pointer}
a.tg-ax:focus{outline:none}
.tg-mu{fill:#d98c7a;fill-opacity:.55;stroke:#a0503f;stroke-width:.7;transition:fill-opacity .15s ease}
.tg-mu.tg-deep{fill:#c77a8a;fill-opacity:.35;stroke-dasharray:2 1.5}
a.tg-ax:hover .tg-mu{fill-opacity:.8}
a.tg-ax:focus-visible .tg-mu,a.tg-ax:focus-visible .tg-line{stroke:var(--tg-focus);stroke-width:2}
.tg-amap.has-sel a.tg-ax .tg-mu{fill-opacity:.15;stroke-opacity:.35}
.tg-amap.has-sel a.tg-ax.is-hl .tg-mu{fill:#c0392b;fill-opacity:.85;stroke:#7b241c;stroke-opacity:1;stroke-width:1}
.tg-amap a.tg-ax .tg-line{fill:none;stroke:var(--c);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tg-amap a.tg-ax .tg-hit{fill:none;stroke:transparent;stroke-width:6;stroke-linecap:round}
.tg-amap.has-sel a.tg-ax .tg-line{opacity:.18}
.tg-amap.has-sel a.tg-ax.is-hl .tg-line{opacity:1;stroke-width:3.2}
.tg-adl{margin:0 0 8px}
.tg-adl dt{font-size:14px;color:var(--tg-muted);margin:6px 0 0;font-weight:600}
.tg-adl dd{margin:0}
.tg-la{font-weight:400;font-size:14px;color:var(--tg-muted)}
.tg-group{font-size:14px;color:var(--tg-muted);margin:0 0 6px}
.tg-sub{font-size:14px;color:var(--tg-muted)}
.tg-cat-title{margin-top:32px}
.tg-ax-item{border-top:1px solid var(--tg-border);padding:14px 0;scroll-margin-top:90px}
.tg-panel .tg-ax-item{border:0;padding:0}
.tg-bones{margin:0 0 12px;padding-inline-start:20px}
.tg-clin{background:#eef4fb;border-right:4px solid var(--tg-focus);padding:8px 12px;border-radius:8px;font-size:15px}
.tg-src{font-size:14px;color:var(--tg-muted);margin-top:16px}
.tg-amap .tg-sw{vertical-align:middle}
/* 1.6.0: purpose (יעוד) of each point next to the figure + tap label on the figure */
.tg-fig-in{display:block}
.tg-fig-svg,.tg-map-wrap{position:relative}
.tg-uses-box{margin-top:8px}
.tg-uses-h{font-size:16px;margin:4px 4px 6px}
.tg .tg-uses{list-style:none;margin:0;padding:0;font-size:14px;line-height:1.45}
.tg .tg-uses li{padding:5px 6px;border-bottom:1px solid var(--tg-border);border-radius:6px}
.tg .tg-uses li.is-on{background:rgba(169,124,82,.16)}
.tg .tg-uc{display:inline-block;min-width:44px;font-weight:700;text-align:center;color:var(--tg-ink,#1f2a2e);background:#fff;border:1px solid var(--tg-border);border-radius:6px;padding:1px 4px;margin-inline-end:4px;text-decoration:none;font:inherit;font-weight:700;cursor:pointer}
@media (min-width:760px){
  .tg-fig-uses .tg-fig-in{display:grid;grid-template-columns:minmax(0,3fr) minmax(220px,2fr);gap:12px;align-items:start}
  .tg-fig-uses .tg-uses-box{margin-top:0;max-height:620px;overflow:auto}
}
.tg-fig a.tg-pt.is-on .tg-dot{fill:var(--tg-accent)}
.tg-tip{position:absolute;z-index:5;max-width:240px;background:#fff;border:1px solid var(--tg-border);border-radius:10px;box-shadow:0 4px 14px rgba(0,0,0,.15);padding:8px 28px 8px 10px;font-size:14px;line-height:1.4;text-align:right}
.tg-tip strong{display:block;margin-bottom:2px}
.tg-tip a{display:block;margin-top:4px;font-size:13px}
.tg-tip-x{position:absolute;top:2px;left:4px;border:0;background:none;font-size:20px;line-height:1;cursor:pointer;color:var(--tg-muted);padding:4px}
.tg-use{font-weight:600}
.tg-tag{position:absolute;z-index:4;pointer-events:none;background:rgba(255,255,255,.92);color:var(--tg-text);border:1px solid var(--tg-border);border-radius:6px;padding:0 5px;font-size:11px;line-height:1.4;font-weight:600;white-space:nowrap;box-shadow:0 1px 3px rgba(0,0,0,.12)}
/* 1.7.0: meridian on the anatomical illustration */
.tg-pl{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.tg-pl-view{flex:1 1 260px;max-width:520px;text-align:center}
.tg-pl-svg{display:block;width:100%;height:auto;background:#fff;border-radius:10px}
.tg-pl-cap{font-size:14px;color:var(--tg-muted);margin-top:2px}
.tg-pl-halo{fill:none;stroke:#fff;stroke-linejoin:round;stroke-linecap:round;opacity:.85}
.tg-pl-line{fill:none;stroke:#1f5fae;stroke-linejoin:round;stroke-linecap:round}
.tg-pl .tg-dot{fill:#13232a;stroke:#fff}
.tg-pl .tg-pthit{fill:transparent;cursor:pointer}
.tg-pl a.tg-pt.is-on .tg-dot{fill:#f2b705}
.tg-pl-lbl{font-family:system-ui,Arial,sans-serif;font-weight:700;fill:#13232a;stroke:#fff;paint-order:stroke;stroke-linejoin:round}
/* 1.8.0: main map on the illustration (user units are image pixels) */
.tg-svg-img{max-width:none}
.tg-svg-img .tg-svg-cap{font-size:34px}
.tg-svg-img .tg-line{stroke-width:7}
.tg-svg-img .tg-hit{stroke-width:24}
.tg-svg-img a.tg-ml:hover .tg-line,.tg-svg-img a.tg-ml:focus-visible .tg-line,.tg-map.has-sel .tg-svg-img a.tg-ml.is-hl .tg-line{stroke-width:11}
.tg-svg-img .tg-dot{stroke-width:3}
.tg-svg-img .tg-lbl,.tg-map .tg-svg-img .tg-pts .tg-lbl{font-size:28px;stroke-width:8px}
.tg-map .tg-svg-img a.tg-pt.is-on .tg-dot{r:13}
.tg-svg-img .tg-r>*:not(title){stroke:none}
.tg .tg-svg-img .tg-r.is-on>*:not(title){fill:rgba(255,236,170,.38);stroke:#f2b705;stroke-width:4}
.tg-svg-img .tg-line{opacity:.9}
.tg-pl-svg{max-height:900px;width:auto;max-width:100%;margin:0 auto}
.tg-pl-notes{font-size:14px;color:var(--tg-muted);margin:6px 8px 0}

/* 1.9.0 muscle map on the illustration: the painted muscles stay visible, the chosen one lights up */
.tg-svg-img .tg-mu{fill:#fff;fill-opacity:0;stroke:#fff;stroke-opacity:.3;stroke-width:2.5}
.tg-svg-img .tg-mu.tg-deep{fill:#59638E;fill-opacity:0;stroke:#fff;stroke-opacity:.3;stroke-dasharray:9 6}
.tg-svg-img a.tg-ax:hover .tg-mu{fill:#f2b705;fill-opacity:.3;stroke:#f2b705;stroke-opacity:1}
.tg-amap.has-sel .tg-svg-img a.tg-ax .tg-mu{fill-opacity:0;stroke-opacity:.15}
.tg-amap.has-sel .tg-svg-img a.tg-ax.is-hl .tg-mu{fill:#f2b705;fill-opacity:.45;stroke:#1E2627;stroke-opacity:1;stroke-width:3.5}
.tg-amap.has-sel .tg-svg-img a.tg-ax.is-hl .tg-mu.tg-deep{fill:#59638E;fill-opacity:.45;stroke:#1E2627;stroke-dasharray:9 6}
.tg-amap .tg-svg-img a.tg-ax .tg-line{stroke-width:5;opacity:.85}
.tg-amap .tg-svg-img a.tg-ax:hover .tg-line{stroke-width:8;opacity:1}
.tg-amap.has-sel .tg-svg-img a.tg-ax .tg-line{opacity:.15}
.tg-amap.has-sel .tg-svg-img a.tg-ax.is-hl .tg-line{opacity:1;stroke-width:9}
.tg-amap .tg-svg-img a.tg-ax:focus-visible .tg-line{stroke-width:9}

/* 1.9.2 zoom on the illustration maps */
.tg-zoom{position:relative;overflow:hidden;margin:0 auto;max-width:1000px;border-radius:10px;touch-action:pan-y}
.tg-zoom[data-view="f"],.tg-zoom[data-view="b"]{max-width:600px}
.tg-zoom.is-zoomed{touch-action:none;cursor:grab}
.tg-zoom svg.tg-svg-img{width:100%;height:auto;max-width:none;display:block}
.tg-zbar{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:0 0 8px}
.tg-zbtn{min-width:44px;min-height:40px;padding:4px 12px;border:1px solid var(--tg-border);border-radius:20px;background:var(--tg-surface);color:var(--tg-text);font-size:16px;font-weight:600;cursor:pointer;line-height:1}
.tg-zbtn[aria-pressed="true"]{background:var(--tg-primary);color:#fff;border-color:var(--tg-primary)}
.tg-zbtn:focus-visible{outline:2px solid var(--tg-focus);outline-offset:2px}
.tg-zhint{font-size:13px;color:var(--tg-muted);text-align:center;margin:6px 0 2px}

/* 1.9.3 tidy page: the full list is closed, each item opens on its own */
.tg-catbox{margin-top:24px;border:1px solid var(--tg-border);border-radius:12px;background:var(--tg-surface)}
.tg-catbox>summary{cursor:pointer;padding:12px 14px;font-size:18px;font-weight:700;color:var(--tg-primary);margin:0;list-style-position:inside}
.tg-catbox .tg-cat{padding:0 14px 8px}
details.tg-ax-item{padding:0}
details.tg-ax-item>summary{cursor:pointer;padding:10px 0;list-style-position:inside}
details.tg-ax-item>summary h3{display:inline;font-size:16px;margin:0}
details.tg-ax-item[open]{padding-bottom:12px}
