/* asociatie.md — visual language close to modern Moldovan e-gov portals: Onest, black type, #0058D2 blue, soft blue→lilac panels */
:root { --b: #0058D2; --b2: #0047AA; --ink: #000; --ink2: #121212; --t: #383838; --m: #757575; --line: #D9D9D9; --soft: #F5F5F5; --soft2: #F9FAFB; --bsoft: #E8F0FB; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.pt { margin: 0; font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: #fff; font-size: 16px; line-height: 1.5; }
.pt a { color: inherit; }
.pt-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.pt-topbar { background: var(--soft2); border-bottom: 1px solid #EEE; font-size: 12.5px; color: var(--t); }
.pt-topbar .pt-wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; gap: 12px; }
.pt-lang b { text-decoration: underline; font-weight: 600; }

.pt-head { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid #EEE; }
.pt-head .pt-wrap { display: flex; align-items: center; gap: 36px; height: 72px; }
.pt-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.pt-mark { width: 44px; height: 44px; border-radius: 12px; background: #000; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 24px; line-height: 1; padding-bottom: 3px; position: relative; overflow: hidden; }
.pt-mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 3px solid transparent; background: linear-gradient(135deg, #4F8BFF, #B07CFF) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .9; }
.pt-logo-t { font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.pt-logo-t span { color: var(--b); }
.pt-nav { display: flex; gap: 28px; }
.pt-nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink2); }
.pt-nav a:hover { color: var(--b); }
.pt-head-r { margin-left: auto; display: flex; gap: 10px; }

.pt-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--b); color: #fff !important; font: 500 15px/1 "Onest", sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.pt-pill:hover { background: var(--b2); }
.pt-pill.soft { background: var(--bsoft); color: var(--b) !important; }
.pt-pill.soft:hover { background: #D6E4F8; }
.pt-pill.white { background: #fff; color: var(--ink) !important; }
.pt-pill.outline { background: #fff; color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--line); }
.pt-pill.outline:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* hero: big rounded gradient panel with wavy lines */
.pt-hero-wrap { padding: 12px; }
.pt-hero { position: relative; overflow: hidden; border-radius: 32px; background: linear-gradient(101deg, #D6E4F8 6%, #E6D6FE 58%, #C4A8FB 100%); }
.pt-waves { position: absolute; inset: 0; width: 100%; height: 100%; }
.pt-waves path { fill: none; stroke: rgba(70, 80, 120, .16); stroke-width: 1.4; }
.pt-hero-in { position: relative; max-width: 820px; margin: 0 auto; padding: 96px 24px 72px; text-align: center; }
.pt-tiles { display: flex; justify-content: center; gap: 14px; margin-bottom: 28px; }
.pt-tile { width: 68px; height: 68px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 30px; box-shadow: 0 8px 24px -10px rgba(0,0,0,.35); }
.pt-tile.blue { background: var(--b); padding-bottom: 4px; }
.pt-tile.dark { background: #000; font-size: 20px; letter-spacing: -.02em; }
.pt-hero h1 { margin: 0; font-size: clamp(32px, 5vw, 52px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.pt-hero-in > p { margin: 18px auto 0; max-width: 640px; font-size: 17px; color: var(--t); }
.pt-search { margin: 36px auto 0; max-width: 640px; display: flex; align-items: center; gap: 10px; padding: 0 18px; background: #fff; border: 2px solid #1E1E1E; border-radius: 14px; height: 56px; box-shadow: 0 2px 0 rgba(0,0,0,.04); }
.pt-search:focus-within { border-color: var(--b); box-shadow: 0 0 0 4px rgba(0, 88, 210, .15); }
.pt-search svg { color: var(--ink2); flex: none; }
.pt-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; color: var(--ink); background: transparent; height: 100%; }
.pt-search input::placeholder { color: #6B6B6B; }
.pt-examples { margin: 16px 0 0 !important; font-size: 14px !important; color: var(--t); }
.pt-examples a { color: var(--b); text-underline-offset: 3px; }

/* stats */
.pt-stats-sec { display: grid; grid-template-columns: 1fr 2.4fr; align-items: center; gap: 40px; padding-top: 72px; padding-bottom: 72px; }
.pt-stats-title { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.pt-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.pt-stats div { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; }
.pt-stats b { font-size: 40px; font-weight: 600; line-height: 1.1; color: #383838; letter-spacing: -.01em; }
.pt-stats b.grad { background: linear-gradient(90deg, #4F6BEA, #A57BF7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pt-stats em { justify-self: start; font-style: normal; font-size: 12px; font-weight: 500; line-height: 1.25; border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; color: var(--ink2); max-width: 110px; }
.pt-stats em:empty { display: none; }
.pt-stats span { grid-column: 1 / -1; margin-top: 6px; font-size: 15px; color: var(--ink2); }
.pt-divider { padding: 0 60px; }
.pt-divider span { display: block; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #E8EEF8 0%, #3B6BE8 25%, #A57BF7 60%, #E7E7E7 61%, #E7E7E7 100%); position: relative; }
.pt-divider span::after { content: ""; position: absolute; left: 60%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #A57BF7, 0 0 14px 4px rgba(165,123,247,.6); }

/* list */
.pt-list-sec { background: var(--soft); padding: 72px 0 80px; margin-top: -2px; }
.pt-center { margin: 0 0 28px; text-align: center; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.pt-seg { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 auto 28px; padding: 5px; background: #fff; border-radius: 999px; width: fit-content; max-width: 100%; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.pt-seg button { font: 500 14px/1 "Onest", sans-serif; color: var(--ink2); background: transparent; border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; white-space: nowrap; }
.pt-seg button i { font-style: normal; color: var(--m); margin-left: 4px; }
.pt-seg button:hover { background: var(--soft); }
.pt-seg button.on { background: #1E1E1E; color: #fff; }
.pt-seg button.on i { color: #BDBDBD; }
.pt-res-head { text-align: center; color: var(--m); font-size: 14px; margin: -10px 0 18px; min-height: 20px; }
.pt-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pt-item { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 24px; border-radius: 16px; text-decoration: none; background: #fff; transition: box-shadow .15s, transform .15s; }
.pt-item:hover { box-shadow: 0 5px 12px rgba(0,0,0,.08); transform: translateY(-1px); }
.pt-item-code { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--b); background: var(--bsoft); border-radius: 6px; padding: 3px 8px; }
.pt-item b { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--ink2); }
.pt-item small { color: var(--m); font-size: 14px; }
.pt-item::after { content: "→"; position: absolute; right: 22px; bottom: 18px; color: var(--b); font-size: 18px; opacity: 0; transition: opacity .15s; }
.pt-item:hover::after { opacity: 1; }
.pt-live { position: absolute; top: 20px; right: 20px; font-size: 12px; font-weight: 600; color: #039855; background: #E7F6EE; border-radius: 6px; padding: 3px 8px; }
.pt-empty { grid-column: 1 / -1; text-align: center; color: var(--m); padding: 24px 0; }
.pt-more { text-align: center; margin-top: 28px; }

/* administrators panel */
.pt-admins { background: linear-gradient(101deg, #E6D6FE 0%, #D6E4F8 60%, #BFD4F5 100%); }
.pt-admins-in { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding: 72px 64px; }
.pt-admins h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
.pt-admins p { margin: 18px 0 28px; font-size: 17px; color: var(--t); }
.pt-feat { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pt-feat div { background: rgba(255,255,255,.85); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.pt-feat i { width: 44px; height: 44px; border-radius: 12px; background: var(--bsoft); color: var(--b); display: grid; place-items: center; margin-bottom: 4px; }
.pt-feat b { font-size: 16px; font-weight: 600; }
.pt-feat span { font-size: 14px; color: var(--t); }
.pt-row { display: flex; flex-wrap: wrap; gap: 10px; }

.pt-foot { padding: 48px 0 56px; color: var(--t); font-size: 14px; border-top: 1px solid #EEE; margin-top: 60px; }
.pt-foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 32px; }
.pt-foot p { margin: 10px 0 0; }
.pt-foot b { color: var(--ink); }

/* association page */
.pt-asoc { padding-top: 28px; padding-bottom: 40px; }
.pt-back { display: inline-flex; gap: 6px; margin-bottom: 18px; text-decoration: none; color: var(--ink2); font-weight: 500; font-size: 15px; }
.pt-back:hover { color: var(--b); }
.pt-card { background: #fff; border-radius: 24px; padding: 32px; box-shadow: inset 0 0 0 1px #EAEAEA; }
.pt-asoc-head { position: relative; overflow: hidden; background: linear-gradient(101deg, #D6E4F8 6%, #E6D6FE 70%, #CDB6FB 100%); box-shadow: none; padding: 40px; }
.pt-code { display: inline-block; font-size: 14px; font-weight: 600; color: #fff; background: #000; border-radius: 8px; padding: 6px 12px; }
.pt-asoc h1 { margin: 16px 0 8px; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
.pt-addr { margin: 0; font-size: 18px; color: var(--t); }
.pt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pt-tags span { font-size: 13px; font-weight: 500; background: rgba(255,255,255,.8); border-radius: 999px; padding: 6px 12px; }
.pt-grid2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; margin-top: 16px; }
.pt-card h2 { margin: 0 0 18px; font-size: 22px; font-weight: 600; }
.pt-dl { display: grid; grid-template-columns: 170px 1fr; gap: 12px 16px; margin: 0 0 24px; font-size: 15px; }
.pt-dl dt { color: var(--m); }
.pt-dl dd { margin: 0; font-weight: 500; word-break: break-word; }
.pt-warn { margin: 18px 0 0; padding: 14px 16px; border-radius: 12px; background: #FEF3F2; color: #B42318; font-size: 14px; }
.pt-cta { background: var(--soft); box-shadow: none; }
.pt-cta p, .pt-cta li { color: var(--t); }
.pt-cta ul { padding-left: 18px; margin: 0 0 24px; }
.pt-cta li { margin: 6px 0; }
.pt-src { margin-top: 20px; font-size: 13px; color: var(--m); }
/* legacy button class used by the server-rendered page */
.pt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--b); color: #fff !important; font: 500 15px/1 "Onest", sans-serif; text-decoration: none; }
.pt-btn:hover { background: var(--b2); }
.pt-btn.ghost { background: #fff; color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--line); }

@media (max-width: 1000px) {
  .pt-nav { display: none; }
  .pt-stats-sec { grid-template-columns: 1fr; gap: 28px; }
  .pt-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-admins-in { grid-template-columns: 1fr; padding: 56px 32px; }
  .pt-grid2 { grid-template-columns: 1fr; }
  .pt-foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pt-wrap { padding: 0 16px; }
  .pt-topbar .pt-wrap { height: auto; padding-top: 6px; padding-bottom: 6px; font-size: 11.5px; }
  .pt-head .pt-wrap { height: 64px; gap: 12px; }
  .pt-mark { width: 38px; height: 38px; font-size: 21px; }
  .pt-head-r .soft { display: none; }
  .pt-head-r .pt-pill { min-height: 40px; padding: 0 16px; font-size: 14px; }
  .pt-hero-wrap { padding: 8px; }
  .pt-hero { border-radius: 24px; }
  .pt-hero-in { padding: 56px 18px 48px; }
  .pt-tile { width: 56px; height: 56px; font-size: 25px; border-radius: 14px; }
  .pt-tile.dark { font-size: 17px; }
  .pt-hero-in > p { font-size: 15.5px; }
  .pt-stats-sec { padding-top: 48px; padding-bottom: 48px; }
  .pt-stats { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .pt-stats b { font-size: 32px; }
  .pt-stats em { font-size: 11px; }
  .pt-stats span { font-size: 14px; }
  .pt-divider { padding: 0 24px; }
  .pt-list-sec { padding: 52px 0 60px; }
  .pt-seg { border-radius: 18px; justify-content: flex-start; }
  .pt-list { grid-template-columns: 1fr; gap: 12px; }
  .pt-admins-in { padding: 44px 20px; gap: 28px; }
  .pt-feat { grid-template-columns: 1fr; }
  .pt-row .pt-pill { width: 100%; }
  .pt-card, .pt-asoc-head { padding: 22px; border-radius: 20px; }
  .pt-dl { grid-template-columns: 1fr; gap: 2px; }
  .pt-dl dd { margin-bottom: 10px; }
}
