#badgery-credential {
  color-scheme: light dark;
  --paper: light-dark(#fcfaf4, #1b2420);
  --ink: light-dark(#182e27, #eeeede);
  --soft: light-dark(#52615a, #b6c4b9);
  --line: light-dark(#d8dcd0, #435047);
  --enamel: #164d41;
  --serif: 'Iowan Old Style', 'Baskerville', Georgia, serif;
  font: 15px/1.5 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  width: 100%;
  container-type: inline-size;
}
#badgery-credential * { box-sizing: border-box; }
#badgery-credential :is(h1,h2,p,ul,dl,dd) { margin: 0; }
#badgery-credential .mast, #badgery-credential .sheet { width: min(100% - 72px, 1060px); margin-inline: auto; }
#badgery-credential .mast { display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--line); padding:20px 0 18px; }
#badgery-credential .wordmark { display:flex; align-items:center; gap:10px; font: bold 30px/1 var(--serif); letter-spacing:-1.6px; }
#badgery-credential .brand-mark { display:grid; place-items:center; width:28px; height:31px; color:#f8d794; background:#214f42; font:21px/1 Georgia,serif; clip-path:polygon(50% 0,94% 18%,92% 64%,78% 82%,50% 100%,22% 82%,8% 64%,6% 18%); }
#badgery-credential .preview-label, #badgery-credential dt, #badgery-credential .issue-date { color:var(--soft); font-size:13px; }
#badgery-credential .sheet { padding:32px 0 26px; }
#badgery-credential .hero:has(.plate) { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.05fr); align-items:center; gap:clamp(24px, 5cqw, 68px); }
#badgery-credential .plate { position:relative; isolation:isolate; overflow:hidden; display:grid; place-items:center; min-height:338px; aspect-ratio:1.18; border-radius:3px;
  background-color:#dce5d3;
  background-image:repeating-radial-gradient(ellipse at 18% 120%, transparent 0 8px, #4b72551c 9px, transparent 10px 13px),repeating-radial-gradient(ellipse at 100% -20%, transparent 0 12px, #5570571c 13px, transparent 14px 17px),linear-gradient(125deg,#eceddf,#cbdcc9); }
#badgery-credential .corner { position:absolute; width:12px; height:12px; border-color:#6b8873; border-style:solid; }
#badgery-credential .nw {top:14px;left:14px;border-width:1px 0 0 1px} #badgery-credential .ne {top:14px;right:14px;border-width:1px 1px 0 0}
#badgery-credential .sw {bottom:14px;left:14px;border-width:0 0 1px 1px} #badgery-credential .se {bottom:14px;right:14px;border-width:0 1px 1px 0}
#badgery-credential .award { position:relative; width:208px; height:252px; filter:drop-shadow(2px 8px 5px #233e353a); }
#badgery-credential .tail { position:absolute; top:126px; width:54px; height:121px; transform-origin:50% 0; background:linear-gradient(90deg,#133c33 0 6%,#b79b58 7% 10%,#2a5c4e 11% 16%,#164737 44%,#38624d 80%,#b79b58 89% 92%,#193b30 93%); clip-path:polygon(0 0,100% 0,100% 100%,50% 84%,0 100%); }
#badgery-credential .tail-left {left:58px; transform:rotate(16deg)} #badgery-credential .tail-right {right:58px; transform:rotate(-16deg)}
#badgery-credential .medal { position:absolute; top:4px; inset-inline:0; height:208px; display:grid; place-items:center;
  background:repeating-conic-gradient(from 2deg,#e6c77c 0deg,#f6e2a4 4deg,#a97836 8deg,#d1a757 12deg);
  clip-path:polygon(100.00% 50.00%,98.70% 53.19%,99.57% 56.53%,97.86% 59.52%,98.30% 62.94%,96.21% 65.69%,96.19% 69.13%,93.77% 71.58%,93.30% 75.00%,90.58% 77.11%,89.67% 80.44%,86.69% 82.18%,85.36% 85.36%,82.18% 86.69%,80.44% 89.67%,77.11% 90.58%,75.00% 93.30%,71.58% 93.77%,69.13% 96.19%,65.69% 96.21%,62.94% 98.30%,59.52% 97.86%,56.53% 99.57%,53.19% 98.70%,50.00% 100.00%,46.81% 98.70%,43.47% 99.57%,40.48% 97.86%,37.06% 98.30%,34.31% 96.21%,30.87% 96.19%,28.42% 93.77%,25.00% 93.30%,22.89% 90.58%,19.56% 89.67%,17.82% 86.69%,14.64% 85.36%,13.31% 82.18%,10.33% 80.44%,9.42% 77.11%,6.70% 75.00%,6.23% 71.58%,3.81% 69.13%,3.79% 65.69%,1.70% 62.94%,2.14% 59.52%,0.43% 56.53%,1.30% 53.19%,0.00% 50.00%,1.30% 46.81%,0.43% 43.47%,2.14% 40.48%,1.70% 37.06%,3.79% 34.31%,3.81% 30.87%,6.23% 28.42%,6.70% 25.00%,9.42% 22.89%,10.33% 19.56%,13.31% 17.82%,14.64% 14.64%,17.82% 13.31%,19.56% 10.33%,22.89% 9.42%,25.00% 6.70%,28.42% 6.23%,30.87% 3.81%,34.31% 3.79%,37.06% 1.70%,40.48% 2.14%,43.47% 0.43%,46.81% 1.30%,50.00% 0.00%,53.19% 1.30%,56.53% 0.43%,59.52% 2.14%,62.94% 1.70%,65.69% 3.79%,69.13% 3.81%,71.58% 6.23%,75.00% 6.70%,77.11% 9.42%,80.44% 10.33%,82.18% 13.31%,85.36% 14.64%,86.69% 17.82%,89.67% 19.56%,90.58% 22.89%,93.30% 25.00%,93.77% 28.42%,96.19% 30.87%,96.21% 34.31%,98.30% 37.06%,97.86% 40.48%,99.57% 43.47%,98.70% 46.81%); border-radius:50%; }
#badgery-credential .rim { width:93%; height:93%; display:grid; place-items:center; border-radius:50%; background:linear-gradient(145deg,#997338,#f4dfa2 27%,#9f783a 52%,#f2d48d 80%,#9d7436); box-shadow:0 0 0 1px #ac8747, inset 0 0 0 2px #f3d89a, inset 0 0 0 4px #aa8241; }
#badgery-credential .enamel { position:relative; width:89%; height:89%; border-radius:50%; color:#f4dea0; background:radial-gradient(ellipse at 32% 19%,#ffffff18,transparent 55%),var(--enamel); box-shadow:0 0 0 1px #6b542b,inset 0 0 0 3px #153f35,inset 0 0 0 4px #c2a364; }
#badgery-credential .arc { position:absolute; inset:0; }
#badgery-credential .arc span { position:absolute; left:calc(50% - 5px); top:10px; width:10px; height:calc(50% - 10px); text-align:center; transform-origin:center bottom; transform:rotate(var(--turn)); font:bold 9.5px/1.1 Georgia,serif; }
#badgery-credential .emblem { position:absolute; left:50%; top:30%; width:61px; height:82px; transform:translateX(-50%); }
#badgery-credential .flame { position:absolute; left:9px; top:0; width:44px; height:46px; background:linear-gradient(115deg,#be8d43,#fff0b1 44%,#c49c53 75%,#f5d990); clip-path:polygon(13% 90%,4% 72%,6% 55%,16% 37%,20% 57%,33% 41%,40% 22%,39% 9%,53% 19%,59% 38%,68% 23%,72% 0,83% 17%,87% 38%,83% 51%,95% 38%,98% 58%,95% 75%,82% 90%,60% 100%,32% 99%); }
#badgery-credential .fire-bowl { position:absolute; top:47px; left:8px; width:46px; height:13px; background:linear-gradient(105deg,#bc913f,#fae8a9,#bc913f); clip-path:polygon(0 0,100% 0,98% 35%,86% 38%,67% 100%,33% 100%,14% 38%,2% 35%); }
#badgery-credential .torch-stem {position:absolute; top:60px; left:23px;width:16px;height:23px; background:linear-gradient(90deg,#bd9147,#fae2a2,#b58e47);clip-path:polygon(5% 0,95% 0,63% 95%,50% 100%,37% 95%);}
#badgery-credential .star-row {position:absolute; inset-inline:0; bottom:15px; text-align:center; font:12px Georgia,serif;}
#badgery-credential .status {display:inline-flex; align-items:center; gap:6px; border:1px solid light-dark(#bdd1bd,#4d6955); background:light-dark(#e8efe5,#283a2e); color:light-dark(#28553a,#c9e7bf); border-radius:99px; font-size:12px; padding:3px 10px;}
#badgery-credential h1 {font:500 clamp(43px,6cqw,76px)/.96 var(--serif); letter-spacing:-.053em; margin:17px 0 14px; color:var(--ink);}
#badgery-credential .summary {max-width:43ch; color:var(--soft); font-size:15px; line-height:1.55;}
#badgery-credential .award-info:only-child .summary {max-width:62ch;}
#badgery-credential .attribution {display:flex; flex-wrap:wrap; column-gap:32px; row-gap:11px; margin:20px 0 8px;}
#badgery-credential dd {font-size:15px; font-weight:600; color:var(--ink);}
#badgery-credential .criteria {display:grid;grid-template-columns:minmax(155px,.72fr) minmax(0,1.6fr);gap:28px;border-block:1px solid var(--line);margin-top:30px;padding:22px 0;}
#badgery-credential h2,#badgery-credential summary {font:500 24px/1.2 var(--serif);letter-spacing:-.035em;color:var(--ink);}
#badgery-credential ul {list-style:none;padding:0;}
#badgery-credential li {position:relative;padding-left:18px;line-height:1.5;font-size:14px;}
#badgery-credential li strong {display:block;color:var(--ink);font-weight:600;margin-bottom:2px;}
#badgery-credential li+li {margin-top:12px;}
#badgery-credential li::before {content:'';width:5px;height:5px;transform:rotate(45deg);background:light-dark(#99804c,#c2ab73);position:absolute;left:0;top:.58em;}
#badgery-credential summary {display:flex;align-items:center;justify-content:space-between;padding:16px 0;list-style:none;cursor:pointer;}
#badgery-credential summary::-webkit-details-marker {display:none;}
#badgery-credential .expand {position:relative;width:16px;height:16px;}
#badgery-credential .expand::before,#badgery-credential .expand::after {content:'';position:absolute;inset:7px 1px auto;height:1.5px;background:var(--ink);}
#badgery-credential .expand::after {transform:rotate(90deg);}
#badgery-credential details[open] .expand::after {display:none;}
#badgery-credential .record dl {display:flex;flex-wrap:wrap;gap:16px 42px;padding-bottom:16px;}
@container (max-width:660px) {
  #badgery-credential .mast,#badgery-credential .sheet {width:calc(100% - 36px);}
  #badgery-credential .sheet {padding-top:18px;}
  #badgery-credential .hero:has(.plate) {grid-template-columns:minmax(0,1fr);gap:24px;}
  #badgery-credential .plate {aspect-ratio:auto;min-height:238px;}
  #badgery-credential .award {transform:scale(.78);height:241px;}
  #badgery-credential .criteria {grid-template-columns:1fr;gap:13px;margin-top:22px;}
  #badgery-credential h1 {font-size:46px;}
}
#badgery-credential .hero:has(.credential-image) {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);align-items:center;gap:clamp(24px,5cqw,68px)}
#badgery-credential .credential-image {display:block;width:100%;max-height:420px;object-fit:contain;}
#badgery-credential .status.revoked {color:light-dark(#782e22,#fad3bd);background:light-dark(#fae8df,#482d25);border-color:light-dark(#e0b4a2,#855a4b);}
@container (max-width:660px){#badgery-credential .hero:has(.credential-image){grid-template-columns:minmax(0,1fr)}}
