/* Dörtyol share hub — glass function layer; QR content sits on an opaque, high-contrast surface. */
.share-trigger{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:5px 10px;border:1px solid transparent;border-radius:9px;background:transparent;color:#375a7d;font-size:11px;cursor:pointer}
.share-trigger svg{width:16px;height:16px}
.share-trigger:hover{background:#fff;border-color:#d7e4f1}
.share-trigger[hidden]{display:none}

.header .brand[data-share-anchor]{position:relative;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:manipulation}
.header .brand[data-share-anchor] img{-webkit-user-drag:none;pointer-events:none}
.header .brand[data-share-anchor]::after{content:"";position:absolute;left:0;bottom:-7px;height:3px;width:100%;border-radius:3px;background:linear-gradient(90deg,#2987d6,#173c65);transform:scaleX(0);transform-origin:left;opacity:0;pointer-events:none}
.header .brand.is-holding::after{opacity:1;animation:dgm-hold .85s .15s linear forwards}
.header .brand.is-holding img{transform:scale(.97);transition:transform .9s var(--dgm-motion,ease)}
@keyframes dgm-hold{to{transform:scaleX(1)}}

.share-hub{width:min(440px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;margin:auto;padding:22px;border:1px solid #cfe0ef;border-radius:28px;color:#122d4b;background:rgba(255,255,255,.9);-webkit-backdrop-filter:blur(26px) saturate(170%);backdrop-filter:blur(26px) saturate(170%);box-shadow:inset 0 1px 0 #fff,0 30px 90px #0b233b33}
.share-hub::backdrop{background:#0f2b4a52;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.share-hub.is-floating{position:fixed;inset:auto;margin:0;z-index:60}
.share-hub-grip{display:none}
.share-hub-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}
.share-hub-head .eyebrow{color:#3a78b3;font-size:9px;letter-spacing:1.8px}
.share-hub-head h2{margin:6px 0 0;font-size:22px;line-height:1.2;letter-spacing:-.4px;color:#122d4b}
.share-hub-close{flex:none;min-width:44px;min-height:44px;border:1px solid #d5e2ef;border-radius:14px;background:#f1f6fb;font-size:24px;line-height:1;color:#173c65;cursor:pointer}
.share-hub-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:4px;margin:0 -4px 14px;scroll-snap-type:x proximity}
.share-hub-tabs::-webkit-scrollbar{display:none}
.share-hub-tabs button{flex:none;scroll-snap-align:start;min-height:40px;padding:8px 13px;border:1px solid #d5e2ef;border-radius:999px;background:#f6f9fd;color:#35587b;font-size:12px;font-weight:600;cursor:pointer;transition:background var(--dgm-fast,.18s),color var(--dgm-fast,.18s),border-color var(--dgm-fast,.18s)}
.share-hub-tabs button[aria-selected="true"]{background:#173c65;border-color:#173c65;color:#fff}
.share-hub-stage{display:grid;grid-template-columns:184px 1fr;gap:18px;align-items:center;padding:14px;border:1px solid #dde8f3;border-radius:22px;background:#fff}
.share-hub-qr{position:relative;margin:0;aspect-ratio:1;border-radius:14px;overflow:hidden;background:#fff}
.share-hub-qr svg{display:block;width:100%;height:100%}
.share-hub-qr-logo{position:absolute;left:50%;top:50%;width:18%;aspect-ratio:1;transform:translate(-50%,-50%);padding:3px;border-radius:8px;background:#fff;box-shadow:0 0 0 2px #fff}
.share-hub-qr-logo img{display:block;width:100%;height:100%;border-radius:6px}
.share-hub-meta strong{display:block;font-size:15px;line-height:1.35;color:#122d4b}
.share-hub-meta p{margin:7px 0 10px;font-size:12px;line-height:1.55;color:#4b627b}
.share-hub-url{display:block;font-size:11px;color:#1d63a5;overflow-wrap:anywhere;text-decoration:none}
.share-hub-url:hover{text-decoration:underline}
.share-hub-apple{display:inline-flex;align-items:center;min-height:36px;margin-top:6px;font-size:12px;font-weight:600;color:#173c65}
.share-hub-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:8px;margin-top:14px}
.share-hub-actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px;border:1px solid #d5e2ef;border-radius:14px;background:#f1f6fb;color:#173c65;font-size:13px;font-weight:600;cursor:pointer}
.share-hub-actions button:first-child:not([hidden]){background:#173c65;border-color:#173c65;color:#fff}
.share-hub-actions button[hidden]{display:none}
.share-hub-actions svg{width:18px;height:18px}
.share-hub-social{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:12px;padding:0 4px}
.share-hub-social a{display:inline-flex;align-items:center;gap:7px;min-height:44px;font-size:12px;font-weight:600;color:#284f76;text-decoration:none}
.share-hub-social svg{width:18px;height:18px}
.share-hub-social .brand-mark{width:22px;height:22px}
.share-hub-social .brand-mark img{width:15px!important;height:15px!important}
.share-hub-hint{margin:8px 4px 0;font-size:11px;line-height:1.55;color:#5c7188}
.share-hub-toast{position:sticky;bottom:0;margin:10px 0 0;padding:0 12px;max-height:0;overflow:hidden;border-radius:12px;background:#173c65;color:#fff;font-size:12px;font-weight:600;text-align:center;line-height:40px;transition:max-height .2s}
.share-hub-toast.is-visible{max-height:40px}
.share-hub :focus-visible{outline:3px solid #176bb5;outline-offset:2px}

/* Bottom sheet on phones, honouring the home indicator. */
@media(max-width:699px){
 .share-hub.is-sheet{width:100%;max-width:none;max-height:calc(100dvh - 28px);margin:auto 0 0;padding:10px 18px calc(18px + env(safe-area-inset-bottom,0px));border-radius:30px 30px 0 0;border-bottom:0}
 .share-hub.is-sheet .share-hub-grip{display:block;width:40px;height:5px;margin:0 auto 12px;border-radius:9px;background:#c4d4e4}
 .share-hub-stage{grid-template-columns:1fr;justify-items:center;text-align:center}
 .share-hub-qr{width:min(220px,62vw)}
 .share-hub-meta{max-width:320px}
 .share-trigger{min-width:44px;min-height:44px;justify-content:center;padding:0}
 .share-trigger-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
@media(prefers-reduced-motion:no-preference){
 .share-hub.is-entering{animation:dgm-share-in var(--dgm-open,320ms) var(--dgm-motion,ease) both}
 .share-hub.is-sheet.is-entering{animation-name:dgm-sheet-in}
 .share-hub.is-entering::backdrop{animation:dgm-fade .24s ease both}
}
@keyframes dgm-share-in{from{opacity:0;transform:translateY(-6px) scale(.97)}to{opacity:1;transform:none}}
@keyframes dgm-sheet-in{from{transform:translateY(100%)}to{transform:none}}
@keyframes dgm-fade{from{opacity:0}}
@media(prefers-reduced-transparency:reduce){.share-hub{background:#fafdff;-webkit-backdrop-filter:none;backdrop-filter:none}}
@supports not (backdrop-filter:blur(1px)){.share-hub{background:#fafdff}}
@media print{.share-hub,.share-trigger{display:none!important}}
