/* Civic glass: directional light, spring tilt and layered content. */
/* Reserve real space for the tall Persian title ink, even in compact desktop cards. */
.entity-grid.modules > .entity-card {
  height: auto; min-height: 154px; padding: 10px;
  display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: 34px minmax(35px,auto) auto;
  justify-content: stretch; justify-items: center; align-content: start; gap: 12px;
}
.entity-grid.modules > .entity-card > .entity-symbol { width: 34px; height: 34px; }
.entity-grid.modules > .entity-card > h3 { min-height: 35px; width: 100%; padding-top: 8px; margin: 0; line-height: 1.9; }
.entity-grid.modules > .entity-card > .primary { min-height: 31px; }
.entity-card > .entity-symbol::after {
  content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  -webkit-mask: url('assets/c1.webp?v=29') center / contain no-repeat;
  mask: url('assets/c1.webp?v=29') center / contain no-repeat;
  background: linear-gradient(110deg,transparent 38%,#d8f9ff9c 46%,#fff 50%,#fff3d1c9 54%,transparent 62%);
  background-size: 300% 100%; background-position: 140% 0;
}
.entity-card > .entity-symbol.is-media-ready.emblem-shine-active::after {
  animation: bp-emblem-glint 6s linear var(--emblem-shine-delay,2s) infinite;
}
@keyframes bp-emblem-glint {
  0% { opacity: 0; background-position: 140% 0; }
  3% { opacity: .95; }
  18% { opacity: .95; background-position: -40% 0; }
  21%,100% { opacity: 0; background-position: -40% 0; }
}
@media (prefers-reduced-motion:reduce) { .entity-card > .entity-symbol::after { animation: none !important; opacity: 0 !important; } }
@media print { .entity-card > .entity-symbol::after { display: none; } }
.motion-paused .entity-card > .entity-symbol::after { animation: none !important; }
:root { --motion-ease: cubic-bezier(.16,1,.3,1); --motion-gold: #f1c66d; }
.motion-ready .entity-card {
  position: relative;
  isolation: auto;
  overflow: visible;
  transform-style: preserve-3d;
  backface-visibility: visible;
  transform: perspective(950px) translate3d(0,var(--tilt-lift,0px),0) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) scale(var(--tilt-scale,1));
  transition: border-color .3s ease, background-color .3s ease, box-shadow .4s ease;
  box-shadow: var(--premium-shadow);
}
.motion-ready .entity-card::before {
  inset: 0; border-radius: inherit; transform: none;
  background: linear-gradient(135deg,rgba(255,255,255,.7),transparent 38%,transparent 70%,rgba(241,198,109,.26));
  opacity: .4; transition: opacity .4s ease;
}
.motion-ready .entity-card::after {
  border-radius: inherit;
  background: radial-gradient(ellipse at var(--light-x,50%) var(--light-y,15%),rgba(255,255,255,.87),rgba(209,235,255,.13) 42%,transparent 75%);
  opacity: .25; transition: opacity .35s ease;
}
.motion-ready .entity-card:is(:hover,:focus-within,.is-tilting) {
  z-index: 20; border-color: #fff;
  box-shadow: var(--shadow-x,0px) 24px 40px -12px rgba(9,47,105,.35),0 5px 13px rgba(17,66,121,.13),inset 0 1px 0 #fff,inset 0 0 0 1px rgba(241,198,109,.35);
}
.motion-ready .entity-card.is-tilting { will-change: transform; }
.motion-ready .entity-card:is(:hover,:focus-within,.is-tilting)::after { opacity: .86; }
.motion-ready .entity-card:is(:hover,:focus-within,.is-tilting)::before { opacity: .8; }
.motion-ready .entity-card > .entity-symbol { transform: translateZ(24px); transition: transform .6s var(--motion-ease),filter .4s ease; }
.motion-ready .entity-card > h3 { transform: translateZ(14px); transition: transform .6s var(--motion-ease); }
.motion-ready .entity-card > .primary { transform: translateZ(20px); transition: transform .5s var(--motion-ease),box-shadow .3s ease; }
.motion-ready .entity-card:is(:hover,:focus-within,.is-tilting) > .entity-symbol { transform: translateZ(38px) translateY(-2px); filter: drop-shadow(0 7px 5px rgba(5,46,111,.18)); }
.motion-ready .entity-card:is(:hover,:focus-within,.is-tilting) > h3 { transform: translateZ(22px); }
.motion-ready .entity-card:is(:hover,:focus-within,.is-tilting) > .primary { transform: translateZ(30px); }
.motion-ready .entity-card.is-pressing > .primary { transform: translateZ(16px) scale(.985); }
.motion-ready .entity-card:focus-within:not(.is-tilting) { --tilt-lift: -5px; --tilt-x: 2deg; --tilt-y: -2deg; }
.motion-ready [data-motion-reveal] { transition: opacity .7s var(--motion-ease) var(--reveal-delay,0ms),translate .8s var(--motion-ease) var(--reveal-delay,0ms); }
.motion-ready [data-motion-reveal="pending"] { opacity: 0; translate: 0 24px; }
.motion-ready [data-motion-reveal="visible"] { opacity: 1; translate: 0 0; }
.motion-ready [data-motion-reveal]:focus-within { opacity: 1; translate: none; transition-duration: 0s; transition-delay: 0ms; }
.motion-ready .entity-card[data-motion-reveal] {
  transition: opacity .65s var(--motion-ease) var(--reveal-delay,0ms),translate .8s var(--motion-ease) var(--reveal-delay,0ms),border-color .3s ease,box-shadow .4s ease;
}
.entity-symbol,.login-emblem,.municipal-logo { position: relative; }
.entity-logo[hidden] { display: none; }
:is(.entity-symbol,.login-emblem,.municipal-logo).is-media-loading { overflow: hidden; }
:is(.entity-symbol,.login-emblem,.municipal-logo).is-media-loading::before {
  content: ''; position: absolute; inset: 5%; border-radius: 50%;
  background: linear-gradient(110deg,rgba(185,215,239,.25) 20%,rgba(255,255,255,.88) 48%,rgba(185,215,239,.25) 75%);
  background-size: 220% 100%; animation: media-silk 1.35s ease-in-out infinite;
}
:is(.entity-symbol,.login-emblem,.municipal-logo) img[data-src],.is-media-loading img { opacity: 0; }
:is(.entity-symbol,.login-emblem,.municipal-logo).is-media-ready img { animation: emblem-resolve .65s var(--motion-ease) both; }
.motion-media-fallback { width: 80%; height: 80%; color: #164c96; }
@keyframes media-silk { from { background-position: 100% 0; } to { background-position: -120% 0; } }
@keyframes emblem-resolve { from { opacity: 0; transform: scale(.86); filter: blur(4px); } to { opacity: 1; transform: scale(1); filter: blur(0); } }
.motion-ready :is(.primary,.nav-pill,.footer-tools button) { position: relative; overflow: hidden; }
.motion-ripple { position: absolute !important; display: block; border-radius: 50%; background: rgba(255,255,255,.48); pointer-events: none; z-index: 4; }
.motion-ready .bar { transform-origin: center bottom; }
.motion-ready .modal-box { animation: none; transform-origin: center 25%; }
@media (max-width: 720px), (hover: none), (pointer: coarse) {
  .motion-ready .entity-card:is(:hover,:focus-within) { transform: none; }
  .motion-ready .entity-card > :is(.entity-symbol,h3,.primary),.motion-ready .entity-card:is(:hover,:focus-within) > :is(.entity-symbol,h3,.primary) { transform: none; }
  .motion-ready .entity-card.is-pressing { transform: scale(.988); }
}
@media (max-width: 720px) {
  .units-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .unit-card.entity-card > .unit-enter { width: 100%; max-width: 132px; min-width: 0; }
}
@media (max-width: 480px) {
  .units-box { padding: 58px 18px 22px; }
}
@media (max-width: 360px) {
  .units-grid { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .motion-ready [data-motion-reveal] { opacity: 1 !important; translate: none !important; transition: none !important; }
  .motion-ready .entity-card,.motion-ready .entity-card:is(:hover,:focus-within,.is-tilting),.motion-ready .entity-card > :is(.entity-symbol,h3,.primary),.motion-ready .entity-card:is(:hover,:focus-within) > :is(.entity-symbol,h3,.primary) { transform: none !important; }
  .is-media-ready img,.is-media-loading::before,.motion-ready .modal[open]::backdrop { animation: none !important; }
}
