/* The Rules for Questions: a "depth" graphic (Questions page). Navy-and-gold silhouette style.
   Text is real HTML so it stays sharp and readable by screen readers. Phone-first. */
.ql-section{padding-top:clamp(2rem,5vw,3.5rem)}
.ql{position:relative;margin:0;border-radius:var(--radius);overflow:hidden;color:var(--ivory-100);
  background:linear-gradient(180deg,#3a5378 0%,#2c4262 22%,#22354f 48%,#1B2A41 72%,#0f1828 100%);
  box-shadow:var(--shadow);isolation:isolate}
/* soft light falling from above, fading as the water deepens */
.ql::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(70% 22% at 50% 0%,rgba(236,208,154,.42),rgba(236,208,154,0) 70%),
    linear-gradient(100deg,transparent 30%,rgba(236,208,154,.07) 38%,transparent 46%,transparent 54%,rgba(236,208,154,.06) 60%,transparent 68%);
  -webkit-mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.55) 45%,transparent 85%);mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.55) 45%,transparent 85%)}
.ql-top{position:relative;padding:1.6rem 1.15rem 0;text-align:center}
.ql-top .eyebrow{color:var(--gold-300);margin:0 0 .35rem}
.ql-top h2{color:var(--ivory-50);font-size:var(--step-3);margin:0 0 .4rem;line-height:1.05}
.ql-lede{margin:0 auto;max-width:34rem;color:var(--ivory-100);font-size:var(--step-0);line-height:1.5}
.ql-surface{position:relative;height:58px;margin-top:.9rem}
.ql-surface .ql-waves{position:absolute;left:0;right:0;bottom:0;width:100%;height:34px;display:block}
.ql-surface .ql-reeds{position:absolute;bottom:6px;height:56px;width:auto;display:block}
.ql-surface .ql-reeds.l{left:4px}
.ql-surface .ql-reeds.r{right:4px;transform:scaleX(-1)}
.ql-surface-label{position:absolute;left:50%;bottom:30px;transform:translateX(-50%);font-size:.74rem;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-300);font-weight:600;white-space:nowrap}

.ql-layers{list-style:none;margin:0;padding:.4rem .85rem 0;position:relative;counter-reset:none}
.ql-layer{position:relative;padding:0 0 1.1rem 3rem}
/* the depth line that runs down through the layers */
.ql-layer::before{content:"";position:absolute;left:1.05rem;top:2.3rem;bottom:0;width:2px;
  background:linear-gradient(180deg,rgba(236,208,154,.7),rgba(236,208,154,.25))}
.ql-num{position:absolute;left:0;top:.2rem;width:2.15rem;height:2.15rem;border-radius:50%;display:grid;place-items:center;
  font-family:var(--font-display);font-weight:600;font-size:1.25rem;line-height:1;color:var(--navy-900);background:var(--gold-400);
  box-shadow:0 0 0 4px rgba(236,208,154,.18)}
.ql-card{border-radius:12px;padding:1rem 1rem .95rem;border:1px solid rgba(236,208,154,.28)}
.ql-l1 .ql-card{background:rgba(58,83,120,.62)}
.ql-l2 .ql-card{background:rgba(34,53,79,.72)}
.ql-l3 .ql-card{background:rgba(15,24,40,.78);border-color:rgba(236,208,154,.36)}
.ql-depth{margin:0;font-size:.74rem;letter-spacing:.14em;text-transform:uppercase;font-weight:600;color:var(--gold-300)}
.ql-card h3{margin:.1rem 0 .55rem;color:var(--ivory-50);font-size:var(--step-2);line-height:1.1}
.ql-ask{margin:0 0 .65rem;padding:.6rem .75rem;border-left:3px solid var(--gold-400);background:rgba(247,241,229,.08);border-radius:0 8px 8px 0;
  font-family:var(--font-display);font-size:1.22rem;line-height:1.3;color:var(--ivory-50)}
.ql-ask b{font-family:var(--font-body);font-size:.74rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-300);display:block;margin-bottom:.15rem}
.ql-rules{margin:0 0 .7rem;padding-left:1.1rem;color:var(--ivory-100);font-size:1rem;line-height:1.5}
.ql-rules li{margin:.2rem 0}
.ql-rules li::marker{color:var(--gold-400)}
.ql-why{margin:0 0 .8rem;font-size:.98rem;line-height:1.45;color:var(--ivory-100)}
.ql-why b{color:var(--gold-300)}
.ql-reach{margin:0}
.ql-reach-label{display:block;font-size:.92rem;color:var(--ivory-100);margin-bottom:.3rem}
.ql-reach-label strong{color:var(--ivory-50);font-size:1.05rem}
.ql-bar{display:block;height:10px;border-radius:999px;background:rgba(247,241,229,.16);overflow:hidden}
.ql-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--gold-300),var(--gold-500))}
.ql-l1 .ql-bar i{width:99%}
.ql-l2 .ql-bar i{width:50%}
.ql-l3 .ql-bar i{width:25%}

.ql-kind{position:relative;margin:.3rem .85rem 0;padding:1rem 1rem 1rem 4.1rem;border-radius:12px;
  background:rgba(236,208,154,.07);border:1px solid rgba(236,208,154,.55)}
.ql-kind .ql-ico{position:absolute;left:.7rem;top:.85rem;width:44px;height:44px}
.ql-kind h3{margin:0 0 .25rem;color:var(--gold-300);font-family:var(--font-body);font-size:.8rem;letter-spacing:.14em;text-transform:uppercase}
.ql-kind p{margin:0;color:var(--ivory-50);font-size:1.05rem;line-height:1.5}
.ql-floor{display:block;width:100%;height:38px;margin-top:.9rem}
.ql-note{margin:0;padding:0 1.15rem 1.1rem;font-size:.86rem;line-height:1.45;color:var(--silver-400);text-align:center;background:#0b1220}
.ql-note a{color:var(--gold-300)}
.ql-note a:hover{color:var(--ivory-50)}

@media (min-width:40rem){
  .ql-top{padding:2.2rem 2rem 0}
  .ql-layers{padding:.6rem 2rem 0}
  .ql-layer{padding-left:3.6rem}
  .ql-num{width:2.5rem;height:2.5rem;font-size:1.45rem}
  .ql-layer::before{left:1.2rem;top:2.7rem}
  .ql-card{padding:1.15rem 1.3rem 1.1rem}
  .ql-kind{margin:.4rem 2rem 0;padding:1.15rem 1.3rem 1.15rem 5rem}
  .ql-kind .ql-ico{left:1.1rem;top:.9rem;width:52px;height:52px}
  .ql-surface{height:70px}
  .ql-surface .ql-reeds{height:70px}
  .ql-note{padding:0 2rem 1.3rem}
}
/* wider screens: the layers step down and in, like descending tiers */
@media (min-width:56rem){
  .ql{max-width:60rem;margin-inline:auto}
  .ql-l2{margin-left:2.5rem}
  .ql-l3{margin-left:5rem}
  .ql-kind{margin-left:7rem}

  .ql-card{display:grid;grid-template-columns:1fr 15rem;column-gap:1.5rem;align-items:start}
  .ql-card>.ql-head,.ql-card>.ql-ask,.ql-card>.ql-rules,.ql-card>.ql-why{grid-column:1}
  .ql-card>.ql-reach{grid-column:2;grid-row:1 / span 5;align-self:center;padding:.9rem;border-radius:10px;background:rgba(15,24,40,.35)}
}
@media (prefers-reduced-motion:no-preference){
  .ql-reeds path{transform-origin:50% 100%;transform-box:fill-box;animation:ql-sway 6s ease-in-out infinite alternate}
  .ql-reeds path:nth-child(2n){animation-duration:7.5s;animation-delay:-2s}
  .ql-waves .w1{animation:ql-drift 14s linear infinite}
  .ql-waves .w2{animation:ql-drift 20s linear infinite reverse}
}
@keyframes ql-sway{from{transform:rotate(-2.5deg)}to{transform:rotate(2.5deg)}}
@keyframes ql-drift{from{transform:translateX(0)}to{transform:translateX(-200px)}}
@media print{.ql{box-shadow:none;-webkit-print-color-adjust:exact;print-color-adjust:exact}}
/* "Why this works": Brady's reason for the whole approach */
.ql-whyall{position:relative;margin:1rem .85rem 0;padding:1.15rem 1.1rem 1.1rem;border-radius:12px;
  background:linear-gradient(180deg,rgba(236,208,154,.10),rgba(236,208,154,.04));border-top:3px solid var(--gold-400);text-align:left}
.ql-whyall h3{margin:0 0 .5rem;color:var(--gold-300);font-size:var(--step-2);line-height:1.1}
.ql-whyall p{margin:0 0 .6rem;color:var(--ivory-100);font-size:1.03rem;line-height:1.55}
.ql-whyall .ql-whyall-close{margin:0;font-family:var(--font-display);font-size:1.28rem;line-height:1.35;color:var(--ivory-50)}
@media (min-width:40rem){.ql-whyall{margin:1.2rem 2rem 0;padding:1.4rem 1.6rem}}
@media (min-width:56rem){.ql-whyall{margin-left:7rem}}

/* Icons: hand-drawn gold line icons, one stroke weight, soft glow */
.ql-ico{display:block;flex:none;width:48px;height:48px;color:var(--gold-300);overflow:visible;
  filter:drop-shadow(0 0 5px rgba(236,208,154,.45))}
.ql-head{display:flex;align-items:center;gap:.75rem;margin-bottom:.55rem}
.ql-head .ql-depth{margin:0}
.ql-head h3{margin:.1rem 0 0}
.ql-whyall .ql-head h3{margin:0}
.ql-whyall .ql-head{margin-bottom:.6rem}
@media (min-width:40rem){.ql-ico{width:56px;height:56px}.ql-head{gap:.95rem}}
@media (prefers-reduced-motion:no-preference){
  .ql-flame{transform-origin:24px 18px;animation:ql-flicker 3.2s ease-in-out infinite alternate}
  .ql-ico .ql-ray{animation:ql-glow 4s ease-in-out infinite alternate}
  .ql-rip1{animation:ql-glow 3s ease-in-out infinite alternate}
  .ql-rip2{animation:ql-glow 3s ease-in-out -1.5s infinite alternate}
  .ql-spark{animation:ql-glow 2.6s ease-in-out infinite alternate}
  .ql-rays{transform-origin:24px 34px;animation:ql-rise 5s ease-in-out infinite alternate}
  .ql-leaf-l{transform-origin:24px 29px;animation:ql-leaf 5.5s ease-in-out infinite alternate}
  .ql-leaf-r{transform-origin:24px 24px;animation:ql-leaf 6.5s ease-in-out -2s infinite alternate-reverse}
}
@keyframes ql-flicker{0%{transform:scale(1,1)}50%{transform:scale(.94,1.06)}100%{transform:scale(1.04,.97)}}
@keyframes ql-glow{from{opacity:.35}to{opacity:1}}
@keyframes ql-rise{from{transform:scale(.92);opacity:.6}to{transform:scale(1.04);opacity:1}}
@keyframes ql-leaf{from{transform:rotate(-4deg)}to{transform:rotate(4deg)}}

/* ---------- "When a tough question comes up" (Questions page) ---------- */
.tq-section{padding-top:0}
.tq{border-radius:var(--radius);padding:1.4rem 1.1rem 1.2rem;background:linear-gradient(180deg,#22354f 0%,#1B2A41 60%,#142034 100%);
  color:var(--ivory-100);box-shadow:var(--shadow);border:1px solid rgba(236,208,154,.22)}
.tq-head{display:flex;align-items:center;gap:.8rem;margin-bottom:.6rem}
.tq-head .eyebrow{color:var(--gold-300);margin:0 0 .15rem}
.tq-head h2{color:var(--ivory-50);margin:0;font-size:var(--step-2);line-height:1.1}
.tq-ico{width:44px;height:44px;flex:0 0 auto;color:var(--gold-300);filter:drop-shadow(0 0 6px rgba(236,208,154,.35))}
.tq-lede{margin:0 0 1rem;line-height:1.55;max-width:44rem}
.tq-list{list-style:none;counter-reset:tq;margin:0 0 1.2rem;padding:0;display:grid;gap:.6rem}
.tq-list li{counter-increment:tq;position:relative;padding:.7rem .85rem .7rem 2.9rem;border-radius:12px;background:rgba(58,83,120,.38);border:1px solid rgba(236,208,154,.16)}
.tq-list li::before{content:counter(tq);position:absolute;left:.8rem;top:.72rem;width:1.55rem;height:1.55rem;border-radius:50%;display:grid;place-items:center;
  background:var(--gold-400);color:var(--navy-900);font-family:var(--font-display);font-weight:600;font-size:.95rem;line-height:1}
.tq-do{margin:0;font-weight:600;color:var(--ivory-50);line-height:1.35}
.tq-because{margin:.2rem 0 0;font-size:var(--step--1);color:var(--ivory-100);opacity:.9;line-height:1.5}
.tq-find{border-radius:12px;padding:1rem .9rem;background:rgba(247,241,229,.06);border:1px solid rgba(236,208,154,.3)}
.tq-find h3{margin:0 0 .3rem;color:var(--gold-300);font-size:var(--step-1)}
.tq-find-hint{margin:0 0 .7rem;font-size:var(--step--1);line-height:1.5}
.tq a{color:var(--gold-300)}
.tq a:hover{color:var(--ivory-50)}
.tq-box{position:relative}
.tq-glass{position:absolute;left:.75rem;top:50%;width:20px;height:20px;transform:translateY(-50%);color:var(--navy-700);pointer-events:none}
.tq-box input{width:100%;min-height:48px;padding:.65rem .8rem .65rem 2.4rem;border-radius:10px;border:2px solid var(--gold-400);background:var(--ivory-50);
  color:var(--navy-900);font:inherit;font-size:1.05rem}
.tq-box input:focus{outline:3px solid var(--gold-300);outline-offset:2px}
.tq-count{margin:.6rem 0 .3rem;font-size:var(--step--1);color:var(--ivory-100)}
.tq-group{margin:.7rem 0 .35rem;font-size:.74rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-300);font-family:var(--font-body)}
.tq-res{list-style:none;margin:0;padding:0;display:grid;gap:.4rem}
.tq-res a{display:flex;flex-direction:column;gap:.1rem;padding:.6rem .75rem;min-height:44px;border-radius:10px;text-decoration:none;
  background:rgba(15,24,40,.55);border:1px solid rgba(236,208,154,.22);color:var(--ivory-50)}
.tq-res a:hover,.tq-res a:focus-visible{border-color:var(--gold-300);background:rgba(15,24,40,.85);color:var(--ivory-50)}
.tq-res a:focus-visible{outline:3px solid var(--gold-300);outline-offset:2px}
.tq-kind{font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-300);font-weight:600}
.tq-title{font-family:var(--font-display);font-size:1.12rem;line-height:1.25}
.tq-title::after{content:" \2197";font-family:var(--font-body);font-size:.8em;color:var(--gold-300)}
.tq-fallback{margin:.8rem 0 0;font-size:var(--step--1);line-height:1.5}
.tq-links{margin:1rem 0 0;font-size:var(--step--1);line-height:1.6}
@media (min-width:40rem){
  .tq{padding:2rem 2rem 1.6rem}
  .tq-list{grid-template-columns:1fr 1fr}
  .tq-res{grid-template-columns:1fr 1fr}
  .tq-ico{width:52px;height:52px}
}

/* ---------- Generated question sets: layer names, icons and tips ---------- */
.layer-head{display:flex;align-items:center;gap:.7rem;margin-bottom:.35rem}
.layer-badge{flex:0 0 auto;width:46px;height:46px;border-radius:12px;display:grid;place-items:center;background:var(--navy-900);color:var(--gold-300)}
.layer-badge svg{width:36px;height:36px;display:block}
.layer-head h3{margin:0;line-height:1.15}
.layer-n{display:block;font-family:var(--font-body);font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--navy-700);font-weight:600}
.layer-opt{display:inline-block;margin:.15rem 0 .35rem;padding:.15rem .55rem;border-radius:999px;font-size:.78rem;font-weight:600;background:rgba(217,164,65,.16);color:var(--navy-800);border:1px solid rgba(217,164,65,.5)}
.layer-reach{margin:0 0 .25rem}
.layer-tips{margin:.2rem 0 .7rem;padding:.6rem .8rem;border-left:3px solid var(--gold-400);background:rgba(217,164,65,.08);border-radius:0 8px 8px 0;font-size:var(--step--1)}
.layer-tips ul{margin:.25rem 0 0;padding-left:1.1rem}
.layer-tips li{margin-bottom:.2rem}
.tq-mini{display:flex;gap:.7rem;align-items:flex-start;background:var(--navy-900);color:var(--ivory-100);border-radius:var(--radius);padding:.9rem 1rem}
.tq-mini .tq-ico{width:36px;height:36px}
.tq-mini p{margin:0;font-size:var(--step--1);line-height:1.5}
.tq-mini a{color:var(--gold-300);font-weight:600}
.tq-all{margin-top:.7rem}
.tq-all summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--gold-300);font-weight:600}
.tq-all summary:focus-visible{outline:3px solid var(--gold-300);outline-offset:2px;border-radius:6px}
.tq-all .tq-res{margin-top:.4rem}
