/* Duolingo English Test · Official Partner block
   Shared by index.html and exam.html. Prefix det- keeps it isolated from page styles. */
.det-wrap{
  position:relative;overflow:hidden;background:#fff;border:1px solid var(--line,#e8e2d6);
  border-radius:14px;padding:26px 28px 24px;margin-top:20px;
  box-shadow:0 6px 24px rgba(20,40,25,.05)
}
.det-wrap:before{
  content:"";position:absolute;top:0;left:0;right:0;height:4px;
  background:linear-gradient(90deg,#3E8E0C,#78CC02,#B4E86A,#78CC02)
}
.det-badge{
  display:inline-flex;align-items:center;gap:6px;background:#EDF9E2;color:#357C0A;
  border:1px solid #CFEAB8;border-radius:999px;padding:5px 13px;
  font-size:.74rem;font-weight:700;letter-spacing:.02em
}
.det-title{font-size:1.22rem;font-weight:700;line-height:1.4;margin-top:12px;color:var(--ink,#23262c)}
.det-lead{font-size:.88rem;color:var(--muted,#6b7078);line-height:1.7;margin-top:8px;max-width:900px}
.det-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:20px}
.det-feat{background:#F7FCEF;border:1px solid #E2F0D0;border-radius:10px;padding:14px 15px}
.det-feat b{display:block;font-size:.86rem;color:#2E6B0C;line-height:1.45}
.det-feat span{display:block;font-size:.77rem;color:#5c6459;line-height:1.6;margin-top:6px}
.det-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}
.det-box{border:1px solid var(--line,#e8e2d6);border-radius:10px;padding:16px 18px;background:#fff}
.det-box h4{font-size:.92rem;font-weight:700;color:var(--ink,#23262c);margin-bottom:6px}
.det-box p{font-size:.8rem;color:var(--muted,#6b7078);line-height:1.65}
.det-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:14px}
.det-btn{
  display:inline-block;background:#58CC02;color:#fff;border:none;border-radius:8px;
  padding:10px 18px;font-size:.85rem;font-weight:700;text-decoration:none;cursor:pointer;line-height:1.4
}
.det-btn:hover{background:#3E8E0C;color:#fff}
.det-btn-ghost{background:#fff;color:#357C0A;border:1px solid #B9DF97}
.det-btn-ghost:hover{background:#EDF9E2;color:#2E6B0C}
.det-url{font-size:.74rem;color:var(--muted,#6b7078);word-break:break-all;margin-top:9px}
.det-code{
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  background:#0E3A41;border-radius:10px;padding:14px 18px;margin-top:12px
}
.det-code code{
  font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
  font-size:1.42rem;font-weight:700;letter-spacing:.18em;color:#fff;white-space:nowrap
}
.det-code small{display:block;font-size:.72rem;color:#A8CDD0;letter-spacing:0;margin-top:2px}
.det-two{display:grid;grid-template-columns:1.05fr .95fr;gap:18px;margin-top:20px;align-items:stretch}
.det-col-left{display:flex;flex-direction:column;height:100%}
.det-two h4{font-size:.94rem;font-weight:700;color:var(--ink,#23262c);margin-bottom:10px}
.det-check{
  margin-top:auto;background:#F7FCEF;border:1px dashed #CDE7AE;border-radius:10px;padding:13px 16px
}
.det-check h5{font-size:.82rem;font-weight:700;color:#2E6B0C;margin-bottom:7px}
.det-check ul{list-style:none;margin:0;padding:0}
.det-check li{position:relative;padding-left:17px;font-size:.76rem;color:#4a5447;line-height:1.6;margin-bottom:5px}
.det-check li:last-child{margin-bottom:0}
.det-check li:before{content:"•";position:absolute;left:2px;color:#3E8E0C;font-weight:700}
.det-steps{list-style:none;padding:0;margin:0;counter-reset:detstep}
.det-steps li{
  position:relative;padding:0 0 12px 38px;font-size:.82rem;color:#3f4740;line-height:1.65;counter-increment:detstep
}
.det-steps li:before{
  content:counter(detstep);position:absolute;left:0;top:1px;width:24px;height:24px;border-radius:50%;
  background:#EDF9E2;color:#357C0A;border:1px solid #CFEAB8;
  font-size:.76rem;font-weight:700;display:flex;align-items:center;justify-content:center
}
.det-shot{
  display:block;width:100%;height:auto;border:1px solid var(--line,#e8e2d6);
  border-radius:8px;cursor:zoom-in;background:#fafafa
}
.det-cap{font-size:.74rem;color:var(--muted,#6b7078);margin-top:7px;line-height:1.55}
.det-col-right{display:flex;flex-direction:column;height:100%}
.det-benefits{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
.det-benefit{
  position:relative;background:#F7FCEF;border:1px solid #E2F0D0;border-radius:9px;
  padding:11px 12px 11px 29px;font-size:.76rem;color:#4a5447;line-height:1.6
}
.det-benefit:before{content:"✓";position:absolute;left:10px;top:11px;color:#3E8E0C;font-weight:700}
.det-poster-row{
  margin-top:20px;text-align:center;background:#F7FCEF;border:1px solid #E2F0D0;
  border-radius:12px;padding:16px 18px 14px
}
.det-poster-row h4{font-size:.9rem;font-weight:700;color:#2E6B0C;margin:0 0 12px}
.det-poster-row img{
  width:100%;max-width:310px;height:auto;border:1px solid #DCEFC6;border-radius:10px;
  cursor:zoom-in;box-shadow:0 4px 16px rgba(20,40,25,.08)
}
.det-poster-row .det-cap{margin-top:10px}
.det-note{
  font-size:.76rem;color:#7a5b1e;background:#FDF6EC;border:1px solid #F0E0C0;
  border-radius:8px;padding:10px 14px;margin-top:20px;line-height:1.7
}
/* lightbox */
#gjDetLightbox{
  position:fixed;inset:0;z-index:10000;background:rgba(10,26,16,.92);
  display:none;overflow:auto;padding:44px 20px 28px;text-align:center
}
#gjDetLightbox.gj-det-on{display:block}
#gjDetLightbox img{
  max-width:min(100%,760px);height:auto;border-radius:8px;box-shadow:0 18px 60px rgba(0,0,0,.45);cursor:zoom-out
}
#gjDetLightbox .gj-det-tip{color:#DCEED5;font-size:.8rem;margin-top:12px}
#gjDetLightbox .gj-det-close{
  position:fixed;top:14px;right:20px;background:#fff;color:#23262c;border:none;border-radius:50%;
  width:36px;height:36px;font-size:1.15rem;line-height:1;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.3)
}
@media(max-width:820px){
  .det-wrap{padding:22px 18px}
  .det-grid{grid-template-columns:1fr 1fr}
  .det-row,.det-two{grid-template-columns:1fr}
  .det-benefits{grid-template-columns:1fr}
  .det-poster-row img{max-width:300px}
}
@media(max-width:520px){
  .det-grid{grid-template-columns:1fr}
  .det-code code{font-size:1.2rem}
}
@media print{
  .det-wrap{box-shadow:none;border:1px solid #ccc;break-inside:avoid}
  #gjDetLightbox{display:none!important}
}
