/* =========================================================
   DETALHES DA DESIGNAÇÃO — modal com as instruções do S-38
========================================================= */
.asg-overlay{
  position: fixed; inset: 0; z-index: 450;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(10, 18, 35, .52); opacity: 0; transition: opacity .22s ease;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.asg-overlay.on{ opacity: 1; }
body.asg-locked{ overflow: hidden; }

.asg-box{
  position: relative; width: min(560px, 100%); max-height: 94vh; overflow-y: auto;
  scrollbar-width: none;
  background: var(--card, #fff); border-radius: 24px 24px 0 0;
  box-shadow: 0 -24px 60px -24px rgba(10, 18, 35, .55);
  transform: translateY(18px) scale(.98); opacity: .6;
  transition: transform .3s cubic-bezier(.2, .9, .25, 1), opacity .25s ease;
  padding-bottom: env(safe-area-inset-bottom);
}
.asg-box::-webkit-scrollbar{ width: 0; height: 0; display: none; }
.asg-overlay.on .asg-box{ transform: none; opacity: 1; }
@media (min-width: 721px){
  .asg-overlay{ align-items: center; }
  .asg-box{ border-radius: 24px; }
}

.asg-head{
  position: relative; padding: 20px 22px 18px; color: #fff;
  border-radius: 24px 24px 0 0;
  -webkit-user-select: none; user-select: none;
  background:
    radial-gradient(380px 180px at 90% -20%, rgba(23, 134, 252, .45), transparent 65%),
    linear-gradient(140deg, #061B45 0%, #0B2A63 60%, #123C86 100%);
}
.asg-tag{
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255, 255, 255, .8);
}
.asg-head h3{ margin: 5px 0 3px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.asg-sub{ margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .82); }
.asg-x{
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  border: 0; border-radius: 11px; background: rgba(255, 255, 255, .2); color: #fff;
}
.asg-x svg{ width: 17px; height: 17px; }
.asg-x:hover{ background: rgba(255, 255, 255, .32); }
.asg-x:focus-visible{ outline: 3px solid #fff; outline-offset: 2px; }

.asg-body{ padding: 18px 20px 22px; }

.asg-facts{ margin: 0; display: grid; gap: 8px; }
.asg-facts > div{ display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 10px; align-items: start; }
.asg-facts dt{
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-muted, #667085); padding-top: 2px;
}
.asg-facts dd{ margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink, #0f1b33); overflow-wrap: anywhere; }
@media (max-width: 520px){
  .asg-facts > div{ grid-template-columns: 1fr; gap: 1px; }
  .asg-facts dd{ font-size: 15px; }
}
.asg-rota{ margin-top: 14px; }
.asg-rota a.btn{ text-decoration: none; min-height: 44px; }

.asg-inst{
  margin-top: 18px; padding: 15px 16px; border-radius: 14px;
  background: var(--paper, #f4f7fb); border: 1px solid var(--line-soft, #e8edf4);
}
.asg-inst h4{
  margin: 0 0 9px; font-size: 12.5px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; color: var(--brand, #0b2a63);
}
.asg-inst h4.asg-inst-sub{ margin-top: 16px; color: var(--ink-soft, #51607a); }
.asg-inst ul{ margin: 0; padding-left: 19px; }
.asg-inst li{
  font-size: 14px; line-height: 1.6; color: var(--ink, #0f1b33);
  margin-bottom: 7px; overflow-wrap: anywhere;
}
.asg-inst li:last-child{ margin-bottom: 0; }
.asg-fonte{
  margin: 14px 0 0; padding-top: 11px; border-top: 1px dashed var(--line, #dbe3ee);
  font-size: 12px; line-height: 1.5; color: var(--text-muted, #667085);
}
.asg-fonte b{ color: var(--ink, #0f1b33); }
.asg-semfonte{
  margin: 18px 0 0; padding: 13px 15px; border-radius: 12px;
  background: var(--paper, #f4f7fb); border: 1px dashed var(--line, #dbe3ee);
  font-size: 13.5px; line-height: 1.5; color: var(--ink-soft, #51607a);
}

/* ---------- Linha clicável em "Minhas designações" ---------- */
.mydesig-item.is-tappable{
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  transition: border-color .15s ease, box-shadow .2s ease, transform .1s ease;
}
.mydesig-item.is-tappable > div{ flex: 1 1 auto; min-width: 0; }
.mydesig-item.is-tappable:hover{ box-shadow: 0 8px 18px -12px rgba(16, 24, 40, .45); }
.mydesig-item.is-tappable:active{ transform: scale(.995); }
.mydesig-item.is-tappable:focus-visible{ outline: none; box-shadow: 0 0 0 3px rgba(23, 134, 252, .35); }
.mydesig-go{
  flex: 0 0 auto; width: 20px; height: 20px; color: #A0AAB8;
  transition: transform .18s ease;
}
.mydesig-go svg{ width: 100%; height: 100%; }
.mydesig-item.is-tappable:hover .mydesig-go{ transform: translateX(3px); }

@media (prefers-reduced-motion: reduce){
  .asg-overlay, .asg-box, .mydesig-item.is-tappable, .mydesig-go{
    animation: none !important; transition: none !important;
  }
}
