/* Yen's Pearl Glossary. Loaded on /pearl-glossary/ pages and on guides that have marked terms.
   Colors and type come from the theme. Greys and golds are the site's approved accessible shades. */

.yg{
  --yg-ink:var(--yens-ink,#404040); --yg-strong:var(--yens-charcoal,#272727); --yg-muted:#6b6b70;
  --yg-line:#e3e0db; --yg-edge:#8a8680; --yg-wash:#f5f5f5; --yg-accent:#b8432f; --yg-gold:#8a6a35;
  --yg-display:var(--yens-font-display,"Newsreader",Georgia,serif);
  --yg-head:var(--yens-font-heading,"Montserrat",Helvetica,Arial,sans-serif);
  max-width:820px; margin:0 auto; color:var(--yg-ink); text-align:left;
}
.yg p,.yg ul,.yg h2,.yg h3,.yg figure{margin:0}
.yg ul{padding:0;list-style:none}
.yg [hidden]{display:none!important}  /* a filtered-out letter or row stays hidden even where a layout rule sets display */
.yg a:focus-visible,.yg button:focus-visible,.yg input:focus-visible{outline:2px solid var(--yg-accent);outline-offset:2px}

.yg .yg-lede{font-size:1.15rem;line-height:1.6;max-width:60ch}

/* search and filters (shown once the script is running) */
.yg-tools{display:flex;flex-direction:column;gap:14px;margin-top:28px}
.yg-search{display:flex;flex-direction:column;gap:6px;max-width:460px}
.yg-search label{font-family:var(--yg-head);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--yg-muted)}
.yg .yg-search input{font:inherit;color:var(--yg-strong);background:#fff;border:1px solid var(--yg-muted);border-radius:4px;padding:11px 14px;min-height:46px;width:100%;box-shadow:none}
.yg .yg-search input::placeholder{color:#6b6b70;opacity:1}
/* subjects: set like a contents page (name, then how many terms), ruled with hairlines */
.yg-subjects{margin-top:10px}
.yg-subjects__top{display:flex;align-items:center;justify-content:space-between;gap:6px 20px;flex-wrap:wrap;padding-bottom:6px;border-bottom:1px solid var(--yg-strong)}
.yg .yg-subjects__h{font-family:var(--yg-head);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--yg-muted)}
.yg-subjects__list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:34px}
.yg-subjects__list li{display:flex}
.yg .yg-subj{display:flex;align-items:baseline;justify-content:space-between;gap:12px;width:100%;min-height:50px;margin:0;padding:13px 0 12px;background:none;background-color:transparent;border:0;border-bottom:1px solid var(--yg-line);border-radius:0;box-shadow:none;font-family:var(--yg-display);font-size:1.2rem;font-weight:400;line-height:1.25;letter-spacing:0;text-transform:none;text-align:left;color:var(--yg-strong);cursor:pointer;transition:none}
.yg .yg-subj:focus,.yg .yg-subj:active{background:none;background-color:transparent;color:var(--yg-strong)}
.yg .yg-subj:hover{background:none;background-color:transparent;color:var(--yg-accent)}
.yg .yg-subj:hover .yg-subj__n{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
.yg-subj__k{flex:none;font-family:var(--yg-head);font-size:12px;font-weight:600;letter-spacing:.04em;color:var(--yg-muted);font-variant-numeric:tabular-nums}
.yg .yg-subj[aria-pressed="true"]{color:var(--yg-accent);border-bottom-color:var(--yg-accent);box-shadow:inset 0 -1px 0 var(--yg-accent)}
.yg .yg-subj[aria-pressed="true"] .yg-subj__n::before{content:"";display:inline-block;width:.46em;height:.46em;border-radius:50%;background:var(--yg-accent);margin-right:.5em;vertical-align:.14em}
.yg .yg-subj[aria-pressed="true"] .yg-subj__k{color:var(--yg-accent)}
.yg .yg-subj.yg-subj--all{width:auto;min-height:36px;padding:6px 0;gap:9px;border-bottom:0;font-family:var(--yg-head);font-size:13px;font-weight:700;letter-spacing:.02em}
.yg .yg-subj.yg-subj--all[aria-pressed="true"]{box-shadow:none}
.yg .yg-subj.yg-subj--all[aria-pressed="false"] .yg-subj__n{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
.yg-count{font-size:15px;color:var(--yg-muted)}

.yg-az{display:flex;flex-wrap:wrap;gap:2px;margin-top:22px;padding:8px 0;border-top:1px solid var(--yg-line);border-bottom:1px solid var(--yg-line)}
.yg-az a,.yg-az span{font-family:var(--yg-head);font-size:14px;font-weight:700;min-width:32px;min-height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:4px;text-decoration:none}
.yg-az a{color:var(--yg-strong)}
.yg-az a:hover{background:var(--yg-wash);color:var(--yg-accent);text-decoration:underline}
.yg-az span,.yg-az a.is-off{color:#6b6b70;font-weight:400;pointer-events:none}

.yg-letter{display:grid;grid-template-columns:72px minmax(0,1fr);column-gap:8px;padding-top:30px;scroll-margin-top:120px}
.yg .yg-letter h3{font-family:var(--yg-display);font-weight:400;font-size:3rem;line-height:1;color:var(--yg-gold);text-transform:none;letter-spacing:0;margin:0}
.yg-entries li{padding:14px 0;border-top:1px solid var(--yg-line)}
.yg-entries li:first-child{border-top:0;padding-top:6px}
.yg a.yg-entry{display:inline-block;min-height:24px;line-height:1.35;font-family:var(--yg-head);font-weight:700;font-size:1.05rem;color:var(--yg-strong);text-decoration:underline;text-decoration-color:var(--yg-edge);text-underline-offset:4px}
.yg a.yg-entry:hover{color:var(--yg-accent);text-decoration-color:currentColor}
.yg-aka{font-size:.92rem;color:var(--yg-muted);margin-left:6px}
.yg .yg-d{max-width:66ch;margin-top:4px}
.yg .yg-sub{font-family:var(--yg-head);font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--yg-gold);margin-top:6px}
.yg-empty{padding:40px 0;color:var(--yg-muted)}

/* one term */
.yg-one .yg-sub{font-size:12px;letter-spacing:.12em;margin-top:0}
.yg .yg-akaline{color:var(--yg-muted);margin-top:8px}
.yg .yg-def{font-family:var(--yg-display);font-size:clamp(1.35rem,3.4vw,1.65rem);line-height:1.42;color:var(--yg-strong);max-width:34em;margin-top:20px}
.yg-bench{margin-top:28px;padding-top:22px;border-top:1px solid var(--yg-line);max-width:62ch}
.yg .yg-bench h2,.yg .yg-rel h2{font-family:var(--yg-head);font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--yg-gold);margin-bottom:8px;line-height:1.4}
.yg-bench p+p{margin-top:12px}
.yg .yg-links{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin-top:28px}
.yg .yg-links a{font-family:var(--yg-head);font-weight:600;font-size:15px;color:var(--yg-accent);text-decoration:underline;text-underline-offset:4px}
.yg-rel{margin-top:32px}
.yg-rel ul{display:flex;flex-wrap:wrap;gap:0 30px;border-top:1px solid var(--yg-line);padding-top:6px}
.yg .yg-rel a{display:inline-flex;align-items:center;min-height:40px;font-family:var(--yg-display);font-size:1.2rem;font-weight:400;line-height:1.25;color:var(--yg-strong);text-decoration:underline;text-decoration-color:var(--yg-edge);text-decoration-thickness:1px;text-underline-offset:5px}
.yg .yg-rel a:hover{color:var(--yg-accent);text-decoration-color:currentColor}
.yg-nav{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:46px;padding-top:18px;border-top:1px solid var(--yg-line);font-family:var(--yg-head);font-size:14px;font-weight:600}
.yg .yg-nav a{color:var(--yg-accent);text-decoration:underline;text-underline-offset:4px;min-height:40px;display:inline-flex;align-items:center}

/* ---------- sections on the glossary page ---------- */
.yg .yg-h2{font-family:var(--yg-display);font-weight:400;font-size:clamp(1.65rem,3.6vw,2.1rem);line-height:1.15;color:var(--yg-strong);text-transform:none;letter-spacing:0;margin:0}
.yg-sec-top{display:flex;justify-content:space-between;align-items:flex-end;gap:14px 20px;flex-wrap:wrap}
.yg .yg-sec-lede{color:var(--yg-muted);margin-top:6px;max-width:54ch}
.yg .yg-jump{margin-top:12px}
.yg .yg-jump__a{font-family:var(--yg-head);font-weight:600;font-size:15px;color:var(--yg-accent);text-decoration:underline;text-underline-offset:4px;min-height:32px;display:inline-flex;align-items:center}
.yg-watch{margin-top:40px}
.yg-try{margin-top:46px}
.yg-find{margin-top:52px;padding-top:26px;border-top:1px solid var(--yg-strong);scroll-margin-top:110px}
.yg-find .yg-tools{margin-top:14px}

/* shared button resets (the theme styles every button) */
.yg .yg-flip__btn,.yg .yg-arrow,.yg .yg-len__b{margin:0;box-shadow:none;transition:none;text-transform:none;letter-spacing:0;line-height:1.25;cursor:pointer;font-weight:600}

/* ---------- Names to watch: cards that turn over ---------- */
.yg-watch__nav{display:flex;gap:8px}
.yg .yg-arrow{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid var(--yg-edge);border-radius:4px;background:#fff;background-color:#fff;color:var(--yg-strong);font-family:var(--yg-head);font-size:18px}
.yg .yg-arrow:hover,.yg .yg-arrow:focus{background:#fff;background-color:#fff;border-color:var(--yg-strong);color:var(--yg-accent)}
.yg .yg-arrow:disabled{opacity:.4;cursor:default;border-color:var(--yg-edge);color:var(--yg-strong)}
.yg .yg-flips{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;margin-top:18px;padding:4px 2px 16px;scrollbar-width:thin;scrollbar-color:#8a8680 transparent;overscroll-behavior-x:contain}
.yg-flips:focus-visible{outline:2px solid var(--yg-accent);outline-offset:2px}
.yg-flip{flex:0 0 min(264px,80vw);scroll-snap-align:start;perspective:1200px;display:flex}
.yg-flip__card{display:grid;gap:10px;width:100%}
.yg-flip__face{display:flex;flex-direction:column;gap:10px;padding:20px 20px 14px;border-radius:6px;min-height:230px;text-align:left}
.yg-flip__front{position:relative;background:#f7f2e8;border:1px solid #d6ccb9;overflow:hidden}
.yg-flip__hole{position:absolute;right:-6px;bottom:-34px;font-family:var(--yg-display);font-size:9rem;line-height:1;color:#ebe2d0;pointer-events:none}
.yg-flip__hole::before{content:"\201D"}
.yg .yg-flip__k{position:relative;font-family:var(--yg-head);font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--yg-muted);line-height:1.4}
.yg .yg-flip__claim{position:relative;margin:auto 0;font-family:var(--yg-display);font-style:italic;font-size:1.6rem;line-height:1.28;color:var(--yg-strong);text-wrap:balance}
.yg-flip__back{background:#fff;border:1px solid var(--yg-edge);border-top:3px solid var(--yg-accent)}
.yg-flip__back:focus{outline:none}
.yg-flip__back:focus-visible{outline:2px solid var(--yg-accent);outline-offset:2px}
.yg .yg-flip__t{font-family:var(--yg-head);font-weight:700;font-size:1rem;color:var(--yg-strong);line-height:1.3}
.yg .yg-flip__d{font-size:.97rem;line-height:1.5}
.yg .yg-flip__more a{font-family:var(--yg-head);font-weight:600;font-size:14px;color:var(--yg-accent);text-decoration:underline;text-underline-offset:4px;min-height:28px;display:inline-flex;align-items:center}
.yg .yg-flip__btn{position:relative;margin-top:auto;align-self:flex-start;display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0;background:none;background-color:transparent;border:0;border-radius:0;font-family:var(--yg-head);font-size:14px;color:var(--yg-accent);text-decoration:underline;text-underline-offset:4px}
.yg .yg-flip__btn:hover,.yg .yg-flip__btn:focus,.yg .yg-flip__btn:active{background:none;background-color:transparent;color:var(--yg-strong)}
.yg .yg-flip__btn--back{color:var(--yg-muted)}
/* flip mode, switched on by the script */
.yg-flips--on .yg-flip__card{gap:0;transform-style:preserve-3d;transition:transform .55s cubic-bezier(.2,.7,.2,1)}
.yg-flips--on .yg-flip__face{grid-area:1/1;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:visibility 0s linear .28s}
.yg-flips--on .yg-flip__back{transform:rotateY(180deg)}
.yg-flips--on .yg-flip.is-flipped .yg-flip__card{transform:rotateY(180deg)}
.yg-flips--on .yg-flip:not(.is-flipped) .yg-flip__back,.yg-flips--on .yg-flip.is-flipped .yg-flip__front{visibility:hidden}
.yg-flips--on .yg-flip:not(.is-flipped) .yg-flip__front,.yg-flips--on .yg-flip.is-flipped .yg-flip__back{transition-delay:0s}
.yg-flips--on .yg-flip__front{cursor:pointer}
.yg-flips--on .yg-flip__front:hover{border-color:#a89c86}

/* ---------- Try it tiles ---------- */
.yg .yg-try__list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:24px;margin-top:20px;border-top:1px solid var(--yg-strong)}
.yg-try__list li{display:flex}
.yg .yg-try__a{display:flex;flex-direction:column;gap:6px;width:100%;padding:18px 0 16px;border-bottom:1px solid var(--yg-line);text-decoration:none;color:var(--yg-ink)}
.yg-try__a svg{width:44px;height:44px;color:var(--yg-gold);margin-bottom:4px}
.yg-try__t{font-family:var(--yg-display);font-size:1.25rem;line-height:1.25;color:var(--yg-strong)}
.yg-try__d{font-size:.93rem;line-height:1.45;color:var(--yg-muted)}
.yg .yg-try__a:hover .yg-try__t{color:var(--yg-accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}

/* ---------- You might hear (Names to watch term pages) ---------- */
.yg .yg-hear{display:flex;flex-direction:column;gap:4px;margin-top:18px;padding:14px 18px;background:#f7f2e8;border-left:3px solid var(--yg-gold);max-width:34em}
.yg-hear__k{font-family:var(--yg-head);font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--yg-muted)}
.yg-hear__q{font-family:var(--yg-display);font-style:italic;font-size:1.3rem;line-height:1.35;color:var(--yg-strong)}
.yg-one .yg-def-k{margin-top:22px}
.yg .yg-def--after{margin-top:6px}

/* ---------- the small tools on a term's page ---------- */
.yg-tool{margin-top:30px;padding:20px 22px 18px;background:#faf8f4;border:1px solid var(--yg-line);border-radius:6px;scroll-margin-top:120px}
.yg .yg-tool__h{font-family:var(--yg-head);font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--yg-gold);line-height:1.4;margin:0}
.yg .yg-tool__note{font-size:.88rem;line-height:1.45;color:var(--yg-muted);margin-top:14px;max-width:62ch}
.yg-field{display:flex;flex-direction:column;gap:5px}
.yg .yg-field label,.yg .yg-size__ctl label{font-family:var(--yg-head);font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--yg-muted)}
.yg .yg-field input,.yg .yg-field select{font:inherit;font-size:1.1rem;color:var(--yg-strong);background-color:#fff;border:1px solid var(--yg-muted);border-radius:4px;padding:9px 12px;min-height:46px;box-shadow:none;margin:0}
.yg .yg-field input[aria-invalid="true"]{border-color:var(--yg-accent);border-width:2px}
.yg .yg-field input:focus-visible,.yg .yg-field select:focus-visible,.yg .yg-size__ctl input:focus-visible{outline:2px solid var(--yg-accent);outline-offset:2px}
/* weight */
.yg-wt__form{display:flex;flex-wrap:wrap;gap:12px 16px;align-items:flex-end;margin-top:14px}
.yg #yg-wt-n{width:9ch}
.yg .yg-wt__err{color:var(--yg-accent);font-size:.92rem;margin-top:8px}
.yg .yg-wt__lead{margin-top:16px;font-family:var(--yg-display);font-size:1.25rem;color:var(--yg-strong)}
.yg .yg-wt__out{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));column-gap:18px;margin-top:6px;border-top:1px solid var(--yg-line)}
.yg-wt__out li{display:flex;flex-direction:column;padding:12px 0;border-bottom:1px solid var(--yg-line)}
.yg-wt__v{font-family:var(--yg-display);font-size:1.7rem;line-height:1.1;color:var(--yg-strong);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.yg-wt__u{font-size:.9rem;color:var(--yg-muted)}
.yg-wt__out.is-empty{opacity:.35}
/* lengths */
.yg-len__grid{display:grid;grid-template-columns:minmax(0,290px) minmax(0,1fr);gap:16px 30px;align-items:center;margin-top:12px}
.yg-len__fig{display:block;width:100%;height:auto}
.yg-len__body{fill:#f1ede6;stroke:#8a8680;stroke-width:1.4}
.yg-len__bone{fill:none;stroke:#bdb5a8;stroke-width:1.2}
.yg-len__o{fill:none;stroke:none}
.yg-len__p{fill:none;stroke:#cbc3b4;stroke-width:4.5;stroke-linecap:round;stroke-dasharray:0 8}
.yg-len__n.is-on .yg-len__o{stroke:#272727;stroke-width:8.4;stroke-linecap:round;stroke-dasharray:0 8}
.yg-len__n.is-on .yg-len__p{stroke:#fdfcfa;stroke-width:5.6}
.yg-len__list li,.yg-len__static li{display:flex}
.yg .yg-len__b,.yg-len__static li{display:flex;align-items:baseline;justify-content:space-between;gap:10px;width:100%;min-height:46px;padding:11px 0 10px;background:none;background-color:transparent;border:0;border-bottom:1px solid var(--yg-line);border-radius:0;text-align:left;color:var(--yg-strong);font-family:var(--yg-display);font-size:1.15rem;font-weight:400}
.yg .yg-len__b:hover,.yg .yg-len__b:focus,.yg .yg-len__b:active{background:none;background-color:transparent;color:var(--yg-strong)}
.yg .yg-len__b:hover{color:var(--yg-accent)}
.yg .yg-len__b:focus-visible{outline:2px solid var(--yg-accent);outline-offset:2px}
.yg-len__in{flex:none;font-family:var(--yg-head);font-size:12px;font-weight:600;letter-spacing:.03em;color:var(--yg-muted)}
.yg .yg-len__b[aria-pressed="true"]{color:var(--yg-accent);border-bottom-color:var(--yg-accent);box-shadow:inset 0 -1px 0 var(--yg-accent)}
.yg .yg-len__b[aria-pressed="true"] .yg-len__name::before{content:"";display:inline-block;width:.46em;height:.46em;border-radius:50%;background:var(--yg-accent);margin-right:.5em;vertical-align:.14em}
.yg .yg-len__b[aria-pressed="true"] .yg-len__in{color:var(--yg-accent)}
.yg .yg-len__out{margin-top:16px;max-width:62ch}
.yg .yg-len__out a{font-family:var(--yg-head);font-weight:600;font-size:15px;color:var(--yg-accent);text-decoration:underline;text-underline-offset:4px}
/* shapes */
.yg-defs{position:absolute;width:0;height:0;overflow:hidden}
.yg .yg-shapes__list{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:4px 10px;margin-top:12px}
.yg .yg-shape{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px 8px;text-decoration:none;color:var(--yg-strong);border-bottom:2px solid transparent}
.yg-shape svg{width:64px;height:64px;display:block}
.yg-shape__n{font-family:var(--yg-head);font-size:13px;font-weight:600;line-height:1.3;text-align:center}
.yg .yg-shape:hover .yg-shape__n{color:var(--yg-accent);text-decoration:underline;text-underline-offset:4px}
.yg .yg-shape[aria-current="page"],.yg .yg-shape[data-near]{border-bottom-color:var(--yg-accent)}
.yg .yg-shape[aria-current="page"] .yg-shape__n,.yg .yg-shape[data-near] .yg-shape__n{color:var(--yg-accent)}
.yg-pf{fill:url(#yg-pearl-g);stroke:#8a8680;stroke-width:1.3}
.yg-pe{fill:#d6cdbd;stroke:#8a8680;stroke-width:1.3}
.yg-pl{fill:none;stroke:#a39a89;stroke-width:1.3;stroke-linecap:round}
.yg-po{fill:none;stroke:#8a8680;stroke-width:2.6}
.yg-pn{fill:url(#yg-pearl-g);stroke:none}
/* size */
.yg-size__ctl{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap;margin-top:14px}
.yg .yg-size__ctl input[type="range"]{flex:1 1 220px;min-width:0;height:32px;margin:0;padding:0;background:transparent;border:0;box-shadow:none;-webkit-appearance:none;appearance:none;cursor:pointer}
.yg .yg-size__ctl input[type="range"]::-webkit-slider-runnable-track{height:4px;background:#8a8680;border-radius:2px}
.yg .yg-size__ctl input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:28px;height:28px;margin-top:-12px;border-radius:50%;border:2px solid #272727;background:radial-gradient(circle at 36% 30%,#fff 0,#ece7de 55%,#c3baa9 100%)}
.yg .yg-size__ctl input[type="range"]::-moz-range-track{height:4px;background:#8a8680;border-radius:2px}
.yg .yg-size__ctl input[type="range"]::-moz-range-thumb{width:24px;height:24px;border-radius:50%;border:2px solid #272727;background:radial-gradient(circle at 36% 30%,#fff 0,#ece7de 55%,#c3baa9 100%)}
.yg-size__mm{font-family:var(--yg-display);font-size:1.5rem;line-height:1;color:var(--yg-strong);min-width:5ch;font-variant-numeric:tabular-nums}
.yg-size__fig{display:block;width:100%;max-width:480px;height:auto;margin-top:14px}
.yg-size__dime{fill:#d9dce0;stroke:#8a8680;stroke-width:1.2}
.yg-size__reed{fill:none;stroke:#a7abb1;stroke-width:1;stroke-dasharray:1 2}
.yg-size__pearl{stroke:#8a8680;stroke-width:1.2}
.yg-size__base{stroke:#cfc8bb;stroke-width:1}
.yg-size__labels{display:grid;grid-template-columns:41.25% 8.75% 41.25%;max-width:480px;margin-top:4px;font-size:.9rem;line-height:1.35;color:var(--yg-muted);text-align:center}
.yg-size__labels span:last-child{grid-column:3}
.yg .yg-size__out{margin-top:14px;max-width:62ch;color:var(--yg-strong)}

@media (prefers-reduced-motion:reduce){
  .yg-flips--on .yg-flip__card,.yg-flips--on .yg-flip__face{transition:none}
  .yg-flips{scroll-behavior:auto}
}
@media (max-width:700px){
  .yg .yg-try__list{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px}
}
@media (max-width:640px){
  .yg-tool{padding:16px 14px 14px;margin-left:-4px;margin-right:-4px}
  .yg-len__grid{grid-template-columns:minmax(0,1fr);gap:8px}
  .yg-len__fig{max-width:250px;margin:0 auto}
  .yg .yg-len__list,.yg .yg-len__static{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}
  .yg .yg-len__b,.yg-len__static li{flex-direction:column;align-items:flex-start;gap:2px;font-size:1.05rem}
}

/* a marked term inside a guide */
.neve-main a.yg-term{color:inherit;font-weight:inherit;text-decoration:underline dotted #8a6a35;text-decoration-thickness:2px;text-underline-offset:4px;cursor:help;background:none;box-shadow:none;border:0;border-radius:2px}
.neve-main a.yg-term:hover,.neve-main a.yg-term[aria-describedby]{background:#f5f5f5;color:#272727}
.neve-main a.yg-term:focus-visible{outline:2px solid #b8432f;outline-offset:2px}

/* the definition that appears beside it */
.yg-tip{position:absolute;z-index:100000;width:max-content;max-width:min(340px,calc(100vw - 24px));background:#272727;color:#fff;border-radius:6px;padding:12px 14px 13px;font-family:var(--yens-font-body,"Lato",Helvetica,Arial,sans-serif);font-size:15px;line-height:1.5;text-align:left;box-shadow:0 10px 30px rgba(0,0,0,.28);display:flex;flex-direction:column;gap:4px}
.yg-tip[hidden]{display:none}
.yg-tip strong{font-family:var(--yens-font-heading,"Montserrat",Helvetica,Arial,sans-serif);font-size:13px;font-weight:700;letter-spacing:.04em;color:#fff}
.yg-tip a{color:#ffc2b6;font-family:var(--yens-font-heading,"Montserrat",Helvetica,Arial,sans-serif);font-size:13px;font-weight:700;text-decoration:underline;margin-top:4px;min-height:32px;display:inline-flex;align-items:center}
.yg-tip a:focus-visible{outline:2px solid #fff;outline-offset:2px}

@media (max-width:900px){
  .yg-subjects__list{column-gap:24px}
  .yg .yg-subj{font-size:1.1rem}
}
@media (max-width:700px){
  .yg-subjects__list{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px}
  .yg .yg-subj{font-size:1.06rem;gap:8px}
}
@media (max-width:640px){
  .yg-letter{grid-template-columns:minmax(0,1fr)}
  .yg .yg-letter h3{font-size:2.4rem;margin-bottom:4px}
  .yg-aka{display:block;margin-left:0}
}
