/* Quest Guardian banners — ported from Quest_Guardian.html (homepage hero) */
.economics-hero {
  --sans: Inter, 'Segoe UI', system-ui, sans-serif;
}
.economics-hero .quest-stage {
  width: 100%;
  max-width: 520px;
  margin-top: 0.7rem;
  margin-bottom: 0.45rem;
  position: relative;
  isolation: isolate;
  min-width: 0;
}
.economics-hero .quest-link {
  position: relative;
  display: block;
  aspect-ratio: 829 / 138;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  border-radius: 4px;
  color: #193e35;
  text-decoration: none;
}
.economics-hero .quest-link.deca {
  margin-top: 0.45rem;
  max-width: 520px;
  width: 100%;
  aspect-ratio: 829 / 196;
}
.economics-hero .quest-link img {
  max-width: none;
}

/* Storybook Adventure: soft, expressive serif lettering for the two banners only.
   Fraunces 650, optical size 48, Soft 75, Wonk 1; embedded for offline use. */
@font-face{font-family:EdclexStorybook;src:url('../fonts/EdclexStorybook.woff') format('woff');font-weight:650;font-style:normal;font-display:swap}
.quest-link{container-type:inline-size}
.quest-text{left:21%;right:5%;font-weight:650;line-height:1.05}
.deca .quest-text{left:5%;right:22%}
.quest-text .title{display:flex;flex-direction:column;align-items:flex-start;gap:3px;line-height:1}
.quest-text .quest-mode{font-family:EdclexStorybook,Georgia,serif;font-size:clamp(13px,3.2cqw,18px);font-weight:650;line-height:1.1;letter-spacing:.035em;text-transform:none;color:#9b563d;text-shadow:0 1px 0 #fff5db;font-kerning:normal}
.quest-text .quest-name{display:block;font-family:EdclexStorybook,Georgia,serif;font-size:clamp(23px,6.4cqw,40px);font-weight:650;line-height:1.08;letter-spacing:-.028em;text-transform:none;color:#214d39;text-shadow:0 1px 0 #fff5db;white-space:nowrap;font-kerning:normal;font-variant-ligatures:common-ligatures}
.quest-text .sub{font:600 clamp(11px,2.5cqw,14px)/1.2 var(--sans);color:#3b493e;letter-spacing:.005em;margin-top:5px}
.quest-link:hover .quest-text{text-shadow:none}
.quest-link:hover .quest-name{color:#173e2d}
.quest-link:focus-visible{outline-offset:2px}
@media(min-width:821px) and (max-width:1120px){.quest-link{aspect-ratio:829/155}.quest-text .title{gap:2px}.quest-text .quest-mode{font-size:clamp(12px,3.2cqw,16px)}.quest-text .quest-name{font-size:clamp(22px,6.4cqw,33px)}.quest-text .sub{margin-top:3px}}
@media(max-width:560px){.quest-link{aspect-ratio:829/185}.quest-text{left:21%;right:4%}.deca .quest-text{left:5%;right:22%}.quest-text .title{gap:3px}.quest-text .quest-mode{font-size:clamp(13px,3.7cqw,16px)}.quest-text .quest-name{font-size:clamp(21px,6.6cqw,33px)}.quest-text .sub{font-size:clamp(11.5px,3.05cqw,13px);margin-top:4px}.deca{margin-top:8px}}
@media(max-width:360px){.quest-link{aspect-ratio:829/205}.quest-text .quest-name{font-size:clamp(19px,6.7cqw,23px)}.quest-text .quest-mode{font-size:12px}.quest-text .sub{font-size:11px;letter-spacing:-.015em}}


/* Edclex manuscript edition. Changes are confined to the two quest links.
   Original responsive aspect ratios, placement and destinations are retained. */
.quest-stage{overflow:visible}
.quest-link.adventure-banner{
  --quest-ink:#382748;--quest-label:#6d487c;--quest-seal:#624479;
  isolation:isolate;container-type:inline-size;outline:none;border-radius:12px;
  text-decoration:none;box-shadow:none;-webkit-tap-highlight-color:transparent;
}
.adventure-surface{
  position:absolute;inset:-1% -.5%;z-index:-1;pointer-events:none;
  background-image:url('../img/home/quest-adventure-surface.webp');background-size:100% 100%;background-repeat:no-repeat;
  filter:drop-shadow(0 2px 1px #75553b13);
}
.adventure-banner .adventure-art{
  position:absolute;display:block;left:2.8%;top:4%;width:20%;height:90%;
  object-fit:contain;object-position:center;pointer-events:none;
  filter:drop-shadow(0 2px 1px #51405b15);
}
.adventure-banner .adventure-copy{
  position:absolute;left:25%;right:12%;inset-block:0;
  display:flex;justify-content:center;flex-direction:column;min-width:0;
  color:var(--quest-ink);text-shadow:none;padding-bottom:1px;
}
.adventure-title{display:flex;flex-direction:column;gap:2px;line-height:1.04}
.adventure-mode{
  display:flex;align-items:center;gap:7px;
  font:700 clamp(11.5px,2.12cqw,13px)/1.15 var(--sans);
  letter-spacing:.15em;text-transform:uppercase;color:var(--quest-label);
}
.adventure-mode:after{
  content:"";display:block;width:clamp(24px,6cqw,38px);height:1px;
  background:linear-gradient(90deg,#96719688,#96719600);
}
.adventure-name{
  display:block;font:650 clamp(21px,6.5cqw,40px)/1.08 EdclexStorybook,Georgia,serif;
  letter-spacing:-.025em;white-space:nowrap;color:var(--quest-ink);
  text-shadow:0 1px 0 #fffaf1,0 2px 0 #b4a4bf88;
  font-kerning:normal;font-variant-ligatures:common-ligatures;
}
.adventure-subtitle{
  display:block;margin-top:2px;
  font:600 clamp(12px,2.27cqw,14px)/1.15 var(--sans);
  letter-spacing:-.01em;color:#514454;white-space:nowrap;
}
.manuscript-seal{
  position:absolute;right:3.9%;top:48%;transform:translateY(-50%);
  width:clamp(28px,7.4cqw,44px);aspect-ratio:1;display:grid;place-items:center;
  color:#fff4e6;isolation:isolate;pointer-events:none;
}
.manuscript-seal:before{
  content:"";position:absolute;z-index:-2;left:27%;right:27%;height:75%;top:52%;
  background:linear-gradient(90deg,#876a9b,#725484 48%,#997bac 52%,#876a9b);
  clip-path:polygon(0 0,100% 0,100% 100%,50% 79%,0 100%);
  transform:rotate(-9deg);box-shadow:1px 1px 0 #51405b20;
}
.seal-wax{
  position:absolute;inset:0;z-index:-1;display:block;background:var(--quest-seal);
  clip-path:polygon(50% 0,60% 4%,71% 4%,77% 13%,87% 17%,91% 27%,98% 35%,96% 46%,100% 55%,94% 64%,94% 75%,84% 81%,79% 90%,68% 92%,59% 99%,49% 96%,39% 100%,30% 94%,19% 92%,14% 82%,5% 77%,5% 65%,0 57%,4% 47%,1% 36%,9% 28%,12% 18%,23% 13%,30% 5%,41% 5%);
  background-image:repeating-linear-gradient(16deg,#ffffff05 0 1px,#00000003 1px 3px);
}
.seal-wax:after{content:"";position:absolute;inset:15%;border:1px solid #d4b78e99;border-radius:50%;box-shadow:0 1px 0 #3c294448,inset 0 1px 0 #c6a2cf33}
.manuscript-seal>svg{width:43%;height:43%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.adventure-banner.deca{--quest-ink:#33334f;--quest-label:#80516e;--quest-seal:#97604f}
.adventure-banner.deca .adventure-surface{transform:scaleX(-1)}
.adventure-banner.deca .adventure-art{left:2.3%;top:1%;width:21.5%;height:97%}
.adventure-banner.deca .adventure-copy{inset-block:16% 18%}
.adventure-banner.deca .adventure-title{gap:2px}
.adventure-banner.deca .adventure-name{font-size:clamp(26px,7cqw,43px);letter-spacing:.035em;text-shadow:0 1px 0 #fffaf1,0 2px 0 #b5afc588}
.adventure-banner.deca .adventure-subtitle{margin-top:4px;white-space:normal}
.adventure-banner.deca .manuscript-seal:before{background:linear-gradient(90deg,#ac7e68,#94654f 48%,#bb9078 52%,#ac7e68);transform:rotate(8deg)}
.adventure-banner:focus-visible{outline:3px solid #6b4786;outline-offset:3px;box-shadow:0 0 0 3px #fff9ed}
@media(hover:hover){
  .adventure-banner:hover .seal-wax{background-color:#73518a}
  .adventure-banner.deca:hover .seal-wax{background-color:#885244}
  .adventure-banner:hover .adventure-name{color:#4a305c}
}
@media(min-width:821px) and (max-width:1120px){
  .adventure-banner .adventure-copy{left:24%;right:12%}
  .adventure-banner .adventure-name{font-size:6.45cqw}
  .adventure-banner .adventure-subtitle{font-size:clamp(11.5px,2.5cqw,14px)}
}
@media(max-width:560px){
  .adventure-banner .adventure-copy{left:23%;right:11%;padding-bottom:0}
  .adventure-banner .adventure-art{left:2%;width:20%;height:88%;top:5%}
  .adventure-banner .adventure-name{font-size:clamp(21px,6.8cqw,34px)}
  .adventure-banner .adventure-mode{font-size:11.5px;letter-spacing:.12em;gap:5px}
  .adventure-banner .adventure-mode:after{width:22px}
  .adventure-banner .adventure-title{gap:2px}
  .adventure-banner.deca .adventure-name{font-size:clamp(25px,8cqw,38px)}
  .adventure-banner .adventure-subtitle{font-size:clamp(12px,3.05cqw,13px);letter-spacing:-.025em;margin-top:2px}
  .adventure-banner .manuscript-seal{width:clamp(27px,7.8cqw,34px);right:3.6%;top:45%}
}
@media(forced-colors:active){
  .adventure-banner{outline:1px solid LinkText!important}
  .adventure-name,.adventure-mode,.adventure-subtitle{color:LinkText!important;text-shadow:none!important}
  .manuscript-seal{background:Canvas;color:LinkText;border:1px solid LinkText;border-radius:50%}
  .adventure-surface{background:Canvas!important}
}


/* QUEST GUARDIAN ANIMATION START */
/* FEATURED QUEST ONLY. Original layout, title, emblem, parchment and DECA stay intact. */
#quest-stage.quest-animated{isolation:isolate;overflow:clip;overflow-clip-margin:7px;--quest-edge:12px;--quest-roll-width:7px;--quest-curve:0;--quest-aura:0;--quest-glow-blur:0px}
#quest-stage:focus-within{overflow:visible}
#featured-link .quest-reveal{position:absolute;inset:0;isolation:isolate;container-type:inline-size;clip-path:inset(-7px calc(100% - var(--quest-edge)) -7px -7px);will-change:clip-path}
#quest-stage[data-quest-state="complete"] .quest-reveal{clip-path:none;will-change:auto}
#featured-link .adventure-surface{filter:drop-shadow(0 2px 1px #75553b13)}
#featured-link .adventure-art,#featured-link .adventure-copy{z-index:2}
.quest-border-route{position:absolute;inset:0;width:100%;height:100%;z-index:0;overflow:visible;pointer-events:none;fill:none;stroke-linecap:round;stroke-linejoin:round}
.quest-border-route use{vector-effect:non-scaling-stroke;stroke-dasharray:0 1;opacity:0}
.quest-border-visited{stroke:#b58b43;stroke-width:1.15}
.quest-border-trail{stroke:#dfb65d;stroke-width:4;filter:url(#quest-gold-soft)}
.quest-border-core{stroke:#f6dda0;stroke-width:1.8}
.quest-border-tip{position:absolute;left:0;top:0;z-index:4;width:12px;height:12px;pointer-events:none;opacity:0;filter:drop-shadow(0 0 3px #c69642);will-change:transform,opacity}
.quest-border-tip svg{width:100%;height:100%;display:block;fill:#fff0bd;stroke:#c49342;stroke-width:.55}
#featured-link .quest-game-action{right:3%;top:5.5%;width:15%;height:89%;z-index:3;--quest-icon-glint:0;--quest-icon-presence:1;transform:none;filter:none;background:none;border:0;box-shadow:none}
#quest-stage.quest-animated .quest-game-action{right:auto}
#featured-link .quest-game-action:before{display:none}
#featured-link .quest-game-crest{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;filter:drop-shadow(0 2px 1px #573b3026);transform:scale(calc(1 + var(--quest-icon-glint)*.026));transition:filter .2s}
.quest-game-halo{position:absolute;inset:-9%;z-index:-1;border-radius:50%;background:radial-gradient(ellipse,#d3aa6255,transparent 68%);opacity:calc(var(--quest-icon-glint)*.65)}
.quest-icon-particles{position:absolute;inset:-10%;width:120%;height:120%;z-index:2;pointer-events:none;opacity:0}
.quest-transfer-stream{position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none}
.quest-game-action>.quest-game-star{position:absolute;z-index:2;width:12px;height:12px;fill:#f2d58c;stroke:none;filter:drop-shadow(0 0 3px #af7a35);opacity:var(--quest-icon-glint);transform:scale(calc(.65 + var(--quest-icon-glint)*.35));pointer-events:none}
.quest-game-star.one{top:13%;left:1%}.quest-game-star.two{right:1%;bottom:10%;width:9px;height:9px}
.quest-play-sigil{position:absolute;right:0;bottom:0;width:clamp(14px,3cqw,18px);aspect-ratio:1;display:grid;place-items:center;background:#f7ebd8;border:1px solid #aa8247;border-radius:50%;color:#5a3a70;box-shadow:0 1px 2px #4e33211a;opacity:var(--quest-icon-presence)}
.quest-play-sigil svg{width:8px;height:8px;fill:currentColor;stroke:none;margin-left:1px}
@keyframes quest-action-twinkle{0%,100%{opacity:0;transform:scale(.65)}40%{opacity:1;transform:scale(1.06)}65%{opacity:.5;transform:scale(.9)}}
@media(hover:hover){#featured-link:hover .quest-game-action[data-ready="true"] .quest-game-star{animation:quest-action-twinkle 1.1s ease-out 1}#featured-link:hover .quest-game-crest{filter:drop-shadow(0 2px 3px #a87a4b55)}}
#featured-link:focus-visible .quest-game-action[data-ready="true"] .quest-game-star{animation:quest-action-twinkle 1.1s ease-out 1}
.quest-puller{position:absolute;left:0;top:0;height:100%;width:auto;z-index:5;pointer-events:none;overflow:visible;will-change:transform,opacity;filter:drop-shadow(0 1px 1px #5f49321a)}
.quest-walk-atlas{display:none!important}
.quest-foot-shadow{position:absolute;z-index:3;left:0;bottom:3.5%;height:4%;border-radius:50%;background:radial-gradient(ellipse,#5943312e,transparent 72%);pointer-events:none;will-change:transform,opacity}
.quest-edge-roll{position:absolute;z-index:4;pointer-events:none;left:0;top:5%;height:90%;width:var(--quest-roll-width);transform:translate3d(calc(var(--quest-edge) - var(--quest-roll-width)/2),0,0);border-radius:45% 40% 43% 45%/5% 5% 6% 6%;background:linear-gradient(90deg,#8d6943 0%,#c3a074 12%,#f0dfc3 33%,#fff4de 50%,#dfc39a 73%,#ac885c 90%,#83603c 100%);box-shadow:-3px 1px 5px #6145282a,2px 1px 3px #70523725;will-change:transform,width}
.quest-edge-roll:before,.quest-edge-roll:after{content:"";position:absolute;left:-1px;right:-1px;height:6px;border:1px solid #a47e4b99;border-radius:50%;background:radial-gradient(ellipse at 50% 48%,#725133 0 10%,#d5b98b 14% 23%,#fff1d8 27% 42%,#b99a6a 48% 54%,#efddbc 60% 100%)}
.quest-edge-roll:before{top:-3px;transform:rotate(var(--quest-roll-spin,0deg)) scaleY(.55)}
.quest-edge-roll:after{bottom:-3px;transform:scaleY(.55)}
.quest-roll-grain{position:absolute;inset:6px 12%;opacity:.42;border-left:1px solid #af8b5555;border-right:1px solid #fff6e799;background:repeating-linear-gradient(176deg,transparent 0 6px,#9e7e4b0f 6px 7px);transform:translateX(var(--quest-roll-grain,0px));border-radius:20%}
.quest-paper-curve{position:absolute;z-index:3;top:5%;bottom:5%;left:0;width:20px;transform:translate3d(calc(var(--quest-edge) - 20px),0,0);pointer-events:none;background:linear-gradient(90deg,transparent,#87623e32);border-radius:0 45% 45% 0;opacity:var(--quest-curve);will-change:transform}
.quest-replay{position:absolute;z-index:9;right:3px;top:2px;width:26px;height:26px;display:grid;place-items:center;border:1px solid #9c7c5c77;border-radius:50%;background:#fff5e6ec;color:#634778;cursor:pointer;box-shadow:0 1px 2px #72543b16;padding:5px}
.quest-replay svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.quest-replay:hover{background:#f0e4f2;border-color:#805b8b}
.quest-replay:focus-visible{outline:2px solid #694583;outline-offset:-3px}
.quest-replay[aria-disabled="true"]{color:#71685e;cursor:default}
.quest-animation-status{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.quest-capable #quest-stage:not(.quest-animated) .quest-reveal{clip-path:inset(-7px calc(100% - 12px) -7px -7px)}
.quest-capable #quest-stage:not(.quest-animated) .quest-game-crest{opacity:0}
.quest-capable #quest-stage:not(.quest-animated) .quest-game-action{--quest-icon-presence:0}
#quest-stage[data-quest-state="complete"] .quest-puller,#quest-stage[data-quest-state="complete"] .quest-foot-shadow,#quest-stage[data-quest-state="complete"] .quest-edge-roll,#quest-stage[data-quest-state="complete"] .quest-paper-curve{visibility:hidden;will-change:auto}
#quest-stage[data-quest-state="complete"] .quest-game-crest{will-change:auto}
@media(max-width:560px){.quest-replay{width:24px;height:24px;right:0;top:0;padding:5px}}
@media(prefers-reduced-motion:reduce){#featured-link .quest-reveal{clip-path:none!important;will-change:auto}.quest-puller,.quest-foot-shadow,.quest-edge-roll,.quest-paper-curve,.quest-icon-particles,.quest-transfer-stream,.quest-border-tip,.quest-border-trail,.quest-border-core,.quest-game-star{display:none!important}#featured-link .quest-game-crest{opacity:1!important;transform:none!important;will-change:auto}}
@media(forced-colors:active){.quest-replay{background:Canvas;color:ButtonText;border:1px solid ButtonText}.quest-game-action{forced-color-adjust:none}}

/* QUEST GUARDIAN ANIMATION END */

/* QUEST TITLE HIERARCHY START
   Swap the two existing font families; keep the original text, artwork and layout. */
.adventure-banner .adventure-mode{
  font-family:EdclexStorybook,Georgia,serif;
  font-size:clamp(18px,5cqw,30px);
  font-weight:650;
  line-height:1.08;
  letter-spacing:.045em;
  font-kerning:normal;
  font-variant-ligatures:common-ligatures;
  text-shadow:0 1px 0 #fffaf1,0 2px 0 #b4a4bf66;
}
.adventure-banner .adventure-name{
  font-family:var(--sans);
  font-size:clamp(17px,5.7cqw,35px);
  font-weight:700;
  line-height:1.12;
  letter-spacing:-.025em;
  text-shadow:none;
}
.adventure-banner.deca .adventure-name{
  font-size:clamp(22px,6cqw,36px);
  line-height:1.08;
  letter-spacing:.055em;
  text-shadow:none;
}
.adventure-banner .adventure-title{gap:3px}
.adventure-banner.deca .adventure-title{gap:4px}
.adventure-banner.deca .adventure-subtitle{margin-top:6px}
/* QUEST TITLE HIERARCHY END */
