/*
Theme Name: Persian Techies — Member Forms
Description: A dark, accessible form design for Ultimate Member, built for the Persian Techies parent theme.
Author: Persian Techies
Template: persian-techies
Version: 1.5.179
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: persian-techies-um-child
*/
/* The parent loads this stylesheet; form styling is enqueued separately. */
.join-panel .join-form { display: block; min-width: 0; }
body.logged-in .join-panel { display: none; }

/* Keep the shared footer at the viewport bottom on short pages. */
body {
 display: flex;
 flex-direction: column;
 min-height: 100vh;
 min-height: 100dvh;
}
body.admin-bar { min-height: calc(100vh - 32px); min-height: calc(100dvh - 32px); }
body > .site-header, body > #main-content, body > .site-footer { flex-shrink: 0; }
body > .site-footer { position:relative; isolation:isolate; margin-top: auto; }
body > .site-footer::before {
 content:"";
 position:absolute;
 z-index:-1;
 top:1px;
 bottom:0;
 left:50%;
 width:100vw;
 transform:translateX(-50%);
 background:linear-gradient(180deg,rgba(6,19,41,.12),rgba(6,19,41,.62));
 pointer-events:none;
}
.ptum-footer-brand { display:grid; justify-items:start; gap:12px; }
.ptum-footer-brand .footer-links { margin-left:56px; align-items:center; gap:8px 16px; }
.ptum-policy-links { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; }
.ptum-policy-links a { color:#67e8f9; font-size:12px; line-height:1.5; text-decoration:none; }
.ptum-policy-links a:hover { color:#a5f3fc; text-decoration:underline; text-underline-offset:3px; }
.ptum-footer-brand :is(a,button):focus-visible { outline:2px solid #67e8f9; outline-offset:3px; }
.footer-copyright { margin: 0 0 0 auto; align-self: flex-end; text-align: right; color: var(--muted); font-size: 0.875rem; }

/* Present policy pages as readable pages within the site's dark theme. */
body.ptum-policy-page #main-content {
 width: min(960px, 100%);
 margin-inline: auto;
 padding: clamp(24px, 5vw, 64px) clamp(16px, 3vw, 28px);
 color: #f0f6ff;
 font-size: 16px;
 line-height: 1.75;
}
body.ptum-policy-page #main-content > article {
 padding: clamp(22px, 4vw, 44px);
 border: 1px solid #385675;
 border-radius: 20px;
 background: linear-gradient(145deg, #142d4b, #0e2039);
 box-shadow: 0 20px 56px #00000030;
}
body.ptum-policy-page #main-content .section-heading {
 max-width: none;
 margin: 0 0 28px;
 padding-bottom: 24px;
 border-bottom: 1px solid #385675;
}
body.ptum-policy-page #main-content h1 {
 margin: 0;
 color: #f0f6ff;
 font-size: clamp(30px, 5vw, 48px);
 line-height: 1.15;
 letter-spacing: -.025em;
 overflow-wrap: anywhere;
}
body.ptum-policy-page #main-content h2 {
 margin: 1.5em 0 .6em;
 color: #f0f6ff;
 font-size: clamp(22px, 3vw, 30px);
 line-height: 1.3;
}
body.ptum-policy-page .entry-content { color: #e2ecfa; }
body.ptum-policy-page .entry-content > :first-child { margin-top: 0; }
body.ptum-policy-page .entry-content > :last-child { margin-bottom: 0; }
body.ptum-policy-page .entry-content a { color: #67e8f9; text-underline-offset: 3px; overflow-wrap: anywhere; }
body.ptum-policy-page .entry-content a:hover { color: #a5f3fc; }
body.ptum-policy-page .entry-content :is(ul, ol) { padding-inline-start: 1.5em; }
body.ptum-policy-page #main-content :is(a, input, textarea, button):focus-visible { outline: 2px solid #67e8f9; outline-offset: 3px; }
@media (max-width: 782px) {
 body.admin-bar { min-height: calc(100vh - 46px); min-height: calc(100dvh - 46px); }
}

/* Minnit owns the iframe contents; the theme styles its outer panel and icon. */
body.home #minnit-container .minnit-chat-iframe {
 background: var(--navy-2);
 border: 1px solid rgba(34, 211, 238, 0.4);
 border-radius: 16px;
 box-shadow: 0 24px 70px rgba(2, 10, 26, 0.55);
 color-scheme: dark;
}
body.home #minnit-container minnit-button svg {
 border: 1px solid rgba(34, 211, 238, 0.6);
 box-shadow: 0 8px 28px rgba(2, 10, 26, 0.45);
}
body.home #minnit-container minnit-button svg :is(ellipse, path) { fill: #a5f3fc; }
body.home #minnit-container minnit-close-chat {
 background: var(--navy-2);
 color: var(--cyan);
 border-color: var(--line);
 font-family: inherit;
}

.ptum-latest-announcement { min-width: 0; }
.ptum-latest-announcement h2 { overflow-wrap: anywhere; }
.ptum-latest-announcement time { color: var(--muted); font-size: 0.875rem; }
.ptum-latest-announcement p { color: var(--muted); line-height: 1.6; }

/* Keep the hero compact at every viewport size and browser zoom level. */
#home.hero { min-height: 0; height: auto; align-items: start; align-content: start; padding-top: 32px; padding-bottom: 32px; }
#home.hero > .hero-copy { align-self: start; min-width: 0; }
#home.hero::before { top: 12px; bottom: 12px; }

/* Full-width announcement uses the same panel and controls as other sections. */
.strip:has(> .ptum-latest-announcement) { grid-template-columns: minmax(0, 1fr); padding: 20px 0 36px; border: 0; }
.ptum-latest-announcement {
 display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
 grid-template-areas: "label excerpt" "title excerpt" "date action";
 gap: 12px 40px; align-content: start; align-items: start;
 padding: clamp(24px, 3vw, 36px); border: 1px solid #385675; border-radius: 16px; background: #10233d;
}
.ptum-latest-announcement > .tag { grid-area: label; color: #67e8f9; }
.strip .ptum-latest-announcement h2 { grid-area: title; margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; letter-spacing: -.02em; }
.ptum-latest-announcement h2 a { color: #f0f6ff; text-decoration: none; }
.ptum-latest-announcement h2 a:hover { color: #67e8f9; }
.ptum-latest-announcement time { grid-area: date; color: #bacbe2; font-size: 14px; }
.ptum-latest-announcement > p { grid-area: excerpt; margin: 0; color: #bacbe2; font-size: 16px; line-height: 1.7; }
.ptum-announcement-link { grid-area: action; justify-self: start; display: inline-flex; align-items: center; gap: 20px; min-height: 44px; padding: 10px 16px; border: 1px solid #67e8f9; border-radius: 8px; background: #67e8f9; color: #071528; font-size: 14px; font-weight: 600; text-decoration: none; }
.ptum-announcement-link:hover { background: #a5f3fc; }
.ptum-latest-announcement a:focus-visible { outline: 2px solid #67e8f9; outline-offset: 4px; }
@media (max-width: 800px) {
 .ptum-latest-announcement { grid-template-columns: minmax(0, 1fr); grid-template-areas: "label" "title" "date" "excerpt" "action"; gap: 16px; }
}

/* Static waterfront panorama; no animated decorative layers. */
body { background:#061329; isolation:isolate; }
body::before {
 inset:0;
 background:url("assets/night-panorama.webp") center center / cover no-repeat;
 mask-image:none;
 animation:none;
 opacity:1;
 z-index:-2;
}
/* Fit the entire panorama on phones and tablets, without cropping either skyline. */
@media (max-width: 800px), (max-height: 500px) and (pointer: coarse) {
 body::before { inset:0 0 auto; height:100vh; height:100lvh; background-size:100% auto; }
}
/* Approved portrait artwork: retain the full composition on tall mobile screens. */
@media (max-width: 800px) and (orientation: portrait) {
 body::before {
  background-image:url("assets/mobile-waterfront.webp");
  background-size:100% auto;
  background-position:center bottom;
 }
}
body::after, #home.hero::after { display:none; }
.hero::before { background:linear-gradient(115deg,rgba(7,21,40,.78),rgba(7,21,40,.4)); animation:none; }


/* Leave room for the sticky menu when navigating to a homepage section. */
body.home #main-content section[id] { scroll-margin-top: 90px; }

/* A compact heading within the chat page panel. */
body.ptum-messages-page #main-content > article > .section-heading h1 {
 font-size: clamp(1.75rem, 3vw, 2.5rem);
 line-height: 1.2;
 letter-spacing: -.025em;
 margin-bottom: 1.25rem;
}
body .bm-wrap-main {
 --bm-radius-card: 18px;
 --bm-shadow-popover: 0 18px 48px rgba(0, 0, 0, .22);
}

/* TranslatePress v2 switcher: match site controls without covering navigation. */
body nav.trp-language-switcher {
 font-family: Inter, "IBM Plex Sans", Arial, sans-serif;
 --bg: #10233d !important;
 --bg-hover: #1b3e57 !important;
 --text: #f0f6ff !important;
 --text-hover: #67e8f9 !important;
 --border: 1px solid #385675 !important;
 --border-radius: 12px !important;
 --switcher-padding: 4px 0 !important;
 --font-size: 14px !important;
 box-shadow: 0 8px 28px #00000040;
}
body nav.trp-language-switcher.trp-floating-switcher {
 top: auto;
 right: auto;
 bottom: max(16px, env(safe-area-inset-bottom));
 left: max(16px, env(safe-area-inset-left));
 max-width: calc(100vw - 32px);
 flex-direction: column-reverse;
}
body nav.trp-language-switcher.trp-floating-switcher:not(.trp-ls-inline) .trp-language-switcher-inner,
body nav.trp-language-switcher.trp-floating-switcher .trp-switcher-dropdown-list { flex-direction: column-reverse; }
body nav.trp-language-switcher .trp-language-item {
 min-height: 44px;
 box-sizing: border-box;
 padding: 10px 14px;
 color: #f0f6ff;
 text-decoration: none;
}
body nav.trp-language-switcher .trp-language-item-name { font-family: inherit; font-weight: 500; }
body nav.trp-language-switcher .trp-language-item:focus-visible {
 outline: 2px solid #67e8f9;
 outline-offset: -3px;
 border-radius: 8px;
}

/* Assigned event speakers: compact credits in both homepage event layouts. */
.ptum-event-speakers { margin:12px 0 16px; }
.ptum-event-speakers-label { display:block; margin-bottom:7px; color:#bacbe2; font-size:12px; font-weight:600; }
.ptum-event-speakers-list { display:flex; flex-wrap:wrap; gap:8px 12px; }
.ptum-event-speaker { display:inline-flex; align-items:center; gap:8px; min-width:0; max-width:100%; color:#f0f6ff; font-size:14px; line-height:1.4; text-decoration:none; }
.ptum-event-speaker:hover { color:#67e8f9; text-decoration:underline; }
.ptum-event-speaker img { width:28px; height:28px; border-radius:50%; object-fit:cover; flex:none; border:1px solid #385675; }
.ptum-event-speaker > span { overflow-wrap:anywhere; }
.ptum-event-organizer-credit { display:block; min-width:0; margin:12px 0; color:#bacbe2; font-size:13px; }
.ptum-event-organizer-label { flex:none; font-weight:600; }
.ptum-home-event-card .ptum-event-organizer-label { display:block; margin-bottom:8px; }
.ptum-home-event-card .ptum-event-organizer { display:flex; width:max-content; max-width:100%; align-items:center; gap:8px; color:#f0f6ff; font-weight:600; text-decoration:none; }
.ptum-home-event-card .ptum-event-organizer:hover { color:#67e8f9; text-decoration:underline; }
.ptum-home-event-card .ptum-event-organizer img { flex:none; width:36px; height:36px; border:1px solid #385675; border-radius:50%; object-fit:cover; }
.ptum-home-event-card .ptum-event-organizer > span { min-width:0; overflow-wrap:normal; word-break:normal; }
.ptum-home-event-card .ptum-event-location { display:grid; gap:4px; margin-top:12px; color:#bacbe2; line-height:1.45; }

/* Homepage event cards keep event details left and people together in one side panel. */
.ptum-home-event-card { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(250px,.9fr); gap:0; align-items:stretch; padding:0; overflow:hidden; border:1px solid #385675; border-radius:18px; background:linear-gradient(135deg,#07182d,#0b1d34); }
.ptum-upcoming-list .event-card.ptum-home-event-card { padding:0; }
.ptum-upcoming-list .ptum-home-event-card { grid-template-columns:minmax(0,1fr); }
.ptum-upcoming-list .ptum-event-main { display:block; width:100%; min-width:0; padding:0; }
.ptum-upcoming-list .ptum-upcoming-thumb { display:none; }
.ptum-upcoming-list .ptum-home-event-card .ptum-event-summary { width:100%; max-width:none; box-sizing:border-box; padding:28px; }
.ptum-upcoming-list .ptum-event-people { flex-direction:row; flex-wrap:wrap; justify-content:flex-start; gap:16px 24px; padding:18px 24px; border-top:1px solid #385675; border-left:0; background:rgba(16,39,68,.55); }
.ptum-upcoming-list .ptum-event-people .ptum-event-organizer-credit { display:flex; flex-direction:column; justify-content:center; margin:0; padding:0 0 0 24px; border-top:0; border-left:1px solid #385675; }
.ptum-upcoming-list .ptum-event-people:not(:has(.ptum-event-speakers)) .ptum-event-organizer-credit { padding-left:0; border-left:0; }
.ptum-upcoming-list .ptum-event-summary h3 { overflow-wrap:normal; word-break:normal; }
.ptum-upcoming-list .ptum-event-summary .mini-action { display:inline-flex; width:max-content; max-width:100%; justify-self:start; box-sizing:border-box; white-space:nowrap; }
.ptum-home-event-card:not(:has(> .ptum-event-people)) { grid-template-columns:minmax(0,1fr); }
.ptum-event-main { display:grid; grid-template-columns:minmax(0,1fr); align-items:center; min-width:0; }
.ptum-event-main:has(> .ptum-upcoming-thumb) { grid-template-columns:120px minmax(0,1fr); gap:24px; padding:24px 0 24px 24px; }
.ptum-upcoming-thumb { display:block; width:120px; height:150px; object-fit:cover; border-radius:12px; }
.ptum-home-event-card .ptum-event-summary { min-width:0; padding:28px; }
.ptum-event-main:has(> .ptum-upcoming-thumb) .ptum-event-summary { padding:0 24px 0 0; }
.ptum-home-event-card .ptum-event-summary h3 { margin:0 0 16px; font-size:23px; line-height:1.3; }
.ptum-home-event-card .ptum-event-summary > p { display:flex; align-items:flex-start; gap:10px; margin:0 0 12px; color:#bacbe2; line-height:1.55; }
.ptum-home-event-card .ptum-event-summary > p.ptum-event-location { color:#f0f6ff; }
.ptum-event-calendar-icon,.ptum-event-pin-icon { flex:none; width:20px; color:#67e8f9; font-size:20px; line-height:1.2; text-align:center; }
.ptum-home-event-card .ptum-event-summary > a { display:inline-flex; align-items:center; justify-content:center; min-height:46px; margin-top:12px; padding:11px 18px; border:0; border-radius:10px; background:#67e8f9; color:#071528; font-weight:700; text-decoration:none; }
.ptum-home-event-card .ptum-event-summary > a:hover { background:#a5f3fc; }
.ptum-event-people { display:flex; flex-direction:column; justify-content:center; gap:20px; min-width:0; padding:24px 26px; border-left:1px solid #385675; background:linear-gradient(145deg,#102744,#0d2038); }
.ptum-home-event-card > .ptum-event-people:not(:has(.ptum-event-speakers)) { border-left:0; }
.ptum-event-people .ptum-event-speakers { margin:0; }
.ptum-event-people .ptum-event-speakers-label { margin-bottom:12px; color:#bacbe2; font-size:14px; }
.ptum-event-people .ptum-event-speakers-list { flex-direction:column; gap:0; }
.ptum-event-people .ptum-event-speaker { flex-direction:row; align-items:center; gap:12px; font-size:15px; }
.ptum-event-people .ptum-event-speaker img { width:48px; height:48px; }
.ptum-event-people .ptum-event-organizer-credit { margin:0; padding-top:18px; border-top:1px solid #385675; }
.ptum-event-people .ptum-event-organizer-label { margin-bottom:10px; color:#bacbe2; font-size:14px; }
.ptum-event-people .ptum-event-organizer img { width:48px; height:48px; }
#eventList > .ptum-home-event-card > .ptum-event-people:not(:has(.ptum-event-speakers)) { border-top:0; }
#eventList > .ptum-home-event-card > .ptum-event-people:not(:has(.ptum-event-speakers)) .ptum-event-organizer-credit { padding-top:0; border-top:0; }
/* Events use a compact heading/search row and a centered, bounded card grid. */
#events.ptum-events-section {
 display:grid;
 grid-template-columns:minmax(0,1fr) minmax(320px,390px);
 align-items:end;
 gap:0 24px;
}
#events.ptum-events-section > .section-heading { grid-column:1; align-self:end; max-width:760px; margin:0 0 24px; }
#events.ptum-events-section > #eventSearchForm { grid-column:2; align-self:start; margin:28px 0 24px; }
#events.ptum-events-section > #eventList,
#events.ptum-events-section > #eventEmpty,
#events.ptum-events-section > .ptum-event-show-more { grid-column:1 / -1; }
#events.ptum-events-section > #eventList {
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:12px;
 width:100%;
 justify-self:stretch;
}
#events.ptum-events-section .ptum-home-event-card { grid-template-columns:minmax(0,1.45fr) minmax(148px,.9fr); border-radius:12px; }
/* Public visitors have no people panel, so let event details fill the card. */
body:not(.logged-in) #events.ptum-events-section .ptum-home-event-card { grid-template-columns:minmax(0,1fr); }
#events.ptum-events-section .ptum-home-event-card .ptum-event-summary { padding:18px; }
#events.ptum-events-section .ptum-home-event-card .ptum-event-summary h3 { margin-bottom:12px; font-size:18px; line-height:1.3; }
#events.ptum-events-section .ptum-home-event-card .ptum-event-summary > a { min-height:40px; margin-top:8px; padding:9px 14px; border-radius:8px; }
#events.ptum-events-section .ptum-event-people { gap:12px; padding:16px 14px; }
#events.ptum-events-section .ptum-event-people .ptum-event-speakers-label,
#events.ptum-events-section .ptum-event-people .ptum-event-organizer-label { margin-bottom:7px; font-size:12px; }
#events.ptum-events-section .ptum-event-people .ptum-event-speaker { gap:8px; font-size:12px; }
#events.ptum-events-section .ptum-event-people .ptum-event-speaker img,
#events.ptum-events-section .ptum-event-people .ptum-event-organizer img { width:36px; height:36px; }
#events.ptum-events-section .ptum-event-people .ptum-event-organizer-credit { padding-top:12px; }
@media(max-width:700px) {
 .ptum-home-event-card { grid-template-columns:minmax(0,1fr); }
 .ptum-upcoming-events .ptum-upcoming-list .ptum-upcoming-thumb { display:none !important; }
 .ptum-event-main:has(> .ptum-upcoming-thumb) { grid-template-columns:80px minmax(0,1fr); gap:14px; padding:18px; }
 .ptum-upcoming-thumb { width:80px; height:100px; }
 .ptum-home-event-card .ptum-event-summary { padding:20px; }
 .ptum-event-main:has(> .ptum-upcoming-thumb) .ptum-event-summary { padding:0; }
 .ptum-home-event-card .ptum-event-summary h3 { font-size:19px; }
 .ptum-event-people { gap:16px; padding:20px; border-top:1px solid #385675; border-left:0; }
 .ptum-upcoming-list .ptum-event-people .ptum-event-organizer-credit { flex-basis:100%; padding:16px 0 0; border-top:1px solid #385675; border-left:0; }
 .ptum-upcoming-list .ptum-event-people:not(:has(.ptum-event-speakers)) .ptum-event-organizer-credit { padding-top:0; border-top:0; }
}

/* Eventin renders its QR scanner as a standalone screen with fixed element IDs. */
body:has(#start-button) :is(#start-button, #backToAtendee) {
 display:inline-flex;
 align-items:center;
 justify-content:center;
 min-height:46px;
 padding:11px 22px;
 border:1px solid #67e8f9;
 border-radius:10px;
 background:#67e8f9;
 color:#071528;
 box-shadow:0 8px 24px rgba(2,10,26,.32);
 font-family:Inter,"IBM Plex Sans",Arial,sans-serif;
 font-size:15px;
 font-weight:700;
 line-height:1.4;
 text-decoration:none;
 transition:background-color .18s ease,border-color .18s ease,transform .18s ease;
}
body:has(#start-button) :is(#start-button, #backToAtendee):hover {
 border-color:#a5f3fc;
 background:#a5f3fc;
 color:#071528;
 transform:translateY(-1px);
}
body:has(#start-button) :is(#start-button, #backToAtendee):focus-visible {
 outline:2px solid #f0f6ff;
 outline-offset:3px;
}
body:has(#start-button) #qr-video {
 border:1px solid rgba(103,232,249,.55);
 border-radius:16px;
 box-shadow:0 18px 48px rgba(2,10,26,.4);
}
/* Eventin's two-step ticket details and scan-result dialogs use SweetAlert2. */
body:has(#start-button) .swal2-container {
 background:rgba(3,12,27,.84);
}
body:has(#start-button) .swal2-popup {
 max-width:calc(100vw - 32px);
 border:1px solid #385675;
 border-radius:16px;
 background:#10233d;
 box-shadow:0 24px 70px rgba(2,10,26,.65);
 color:#f0f6ff;
 font-family:Inter,"IBM Plex Sans",Arial,sans-serif;
}
body:has(#start-button) .swal2-title { color:#f0f6ff; font-size:clamp(20px,4vw,24px); }
body:has(#start-button) .swal2-html-container { color:#bacbe2; line-height:1.6; }
body:has(#start-button) .swal2-html-container > div {
 padding:16px;
 border:1px solid #385675;
 border-radius:12px;
 background:#0a1a30;
 color:#f0f6ff;
 text-align:left;
}
body:has(#start-button) .swal2-html-container :is(h1,h2,h3,h4,strong,b) { color:#f0f6ff; }
body:has(#start-button) .swal2-html-container :is(p,small,span) { color:#bacbe2; }
body:has(#start-button) .swal2-actions { gap:10px; width:min(100%,320px); }
body:has(#start-button) .swal2-actions :is(.swal2-confirm,.swal2-deny) {
 min-height:46px;
 border:1px solid #67e8f9;
 border-radius:10px;
 background:#67e8f9;
 color:#071528;
 box-shadow:none;
 font:700 15px/1.4 Inter,"IBM Plex Sans",Arial,sans-serif;
}
body:has(#start-button) .swal2-actions :is(.swal2-confirm,.swal2-deny):hover { background:#a5f3fc; }
body:has(#start-button) .swal2-actions .swal2-cancel {
 min-height:46px;
 border:1px solid #58708e;
 border-radius:10px;
 background:#10233d;
 color:#f0f6ff;
 box-shadow:none;
 font:600 15px/1.4 Inter,"IBM Plex Sans",Arial,sans-serif;
}
body:has(#start-button) .swal2-actions .swal2-cancel:hover { border-color:#67e8f9; background:#1b3e57; }
body:has(#start-button) .swal2-actions :is(.swal2-confirm,.swal2-deny,.swal2-cancel):focus-visible {
 outline:2px solid #f0f6ff;
 outline-offset:3px;
}
@media (max-width:600px) {
 body:has(#start-button) :is(#start-button, #backToAtendee),
 body:has(#start-button) .swal2-actions :is(.swal2-confirm,.swal2-deny,.swal2-cancel) {
  min-height:44px;
  padding:10px 16px;
  font-size:14px;
 }
}
@media (min-width:1101px) {
 #home.hero:has(> .ptum-upcoming-events) { grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr); gap:32px; }
}
@media (min-width:981px) and (max-width:1100px) {
 #home.hero:has(> .ptum-upcoming-events) { grid-template-columns:minmax(0,1fr); }
}
