/* PetoFast Events: the organiser's page and the dashboard as pages of their own (like the vet page), app-like on a phone. */
body.pfa { --o: #ff7a1a; --o-d: #e5620a; --t: #0f9e8f; --y: #ffc93c; --pk: #ff5c8a; --ink: #2b2118; --mut: #6b5b4d; --card: #fff; --line: #ecdcc6; --cream: #fff8ee; --r: 16px; --shadow: 0 6px 18px rgba(15, 100, 90, .08); --head: "Baloo 2", "Nunito", system-ui, sans-serif; --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
html:has(body.pfa) { scroll-behavior: smooth; }
.pfa *, .pfa *::before, .pfa *::after { box-sizing: border-box; }
.pfa h1, .pfa h2, .pfa h3 { font-family: var(--head); line-height: 1.15; margin: 0; }
.pfa img { max-width: 100%; }
.pfa a { color: inherit; }
.pfa-wrap { max-width: 1040px; margin: 0 auto; padding: 12px max(16px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.pfa-narrow { max-width: 520px; }

/* buttons in the app look: teal, big enough to tap */
.pfa .ev-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 20px; border-radius: 999px; background: var(--t); color: #fff; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; font-family: var(--body); font-size: 15px; box-shadow: 0 4px 12px rgba(15, 158, 143, .25); }
.pfa .ev-btn:hover { background: #0b8a7d; color: #fff; }
.pfa .ev-btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.pfa .ev-btn-ghost:hover { background: var(--cream); color: var(--ink); }
.pfa .ev-btn-wa { background: #1faa59; box-shadow: 0 4px 12px rgba(31, 170, 89, .3); }
.pfa .ev-btn-wa:hover { background: #178a47; }
.pfa .ev-btn-danger { background: #fff; color: #b42318; border: 1.5px solid #f3c4bf; box-shadow: none; }
.pfa .ev-btn-danger:hover { background: #fdecea; color: #b42318; }
.pfa .ev-btn[disabled] { opacity: .6; cursor: default; }
.pfa .ev-input { font-size: 16px; min-height: 46px; } /* 16px stops phones zooming in on a field */

/* the slim top bar */
.pfa-top { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: calc(8px + env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right)) 8px max(14px, env(safe-area-inset-left)); background: rgba(255, 248, 238, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.pfa-brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.pfa-logo { display: block; max-width: 150px; object-fit: contain; }
.pfa-logotxt { font: 800 19px/1 var(--head); color: var(--o); }
.pfa-title { font: 800 19px/1.1 var(--head); margin-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pfa-sp { flex: 1; }
.pfa-link { font-weight: 800; font-size: 14px; color: var(--mut); text-decoration: none; white-space: nowrap; }
.pfa-ico, .pfa-back { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: #fff; border-radius: 50%; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); color: var(--ink); cursor: pointer; text-decoration: none; font-size: 28px; line-height: 1; padding: 0; }
.pfa-back { padding-bottom: 3px; }
.pfa-av { flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: #d9f3ef; display: grid; place-items: center; font: 800 18px/1 var(--head); color: var(--t); text-decoration: none; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--t); }
.pfa-av img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- the organiser's page ---------- */
.pfo-app .pfo-preview { margin: 10px 16px 0; }
.pfo-app .pfo-hero { margin-top: 4px; }
.pfo-chips { position: sticky; top: calc(56px + env(safe-area-inset-top, 0px)); z-index: 50; display: flex; gap: 8px; overflow-x: auto; margin: 6px -16px 10px; padding: 8px 16px; background: var(--cream); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pfo-chips::-webkit-scrollbar { display: none; }
.pfo-chips a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 6px 18px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-weight: 800; font-size: 14px; text-decoration: none; color: var(--ink); }
.pfo-chips a.is-on { background: var(--t); border-color: var(--t); color: #fff; }
.pfo-sec { scroll-margin-top: 120px; }
.pfo-h2-past { margin-top: 18px; }
.pfo-bar { display: none; }
.pfo-foot-art { position: relative; z-index: 1; max-width: 1040px; margin: 18px auto -13px; padding: 0 22px; display: flex; justify-content: flex-end; pointer-events: none; }
.pfo-foot-pets { width: 210px; height: auto; display: block; }
.pfo-foot { position: relative; background: var(--t); color: #fff; text-align: center; padding: 14px 22px calc(34px + env(safe-area-inset-bottom)); font-size: 14px; }
.pfo-foot::before { content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 14px; background: repeat-x 0 0/44px 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='14' viewBox='0 0 44 14'%3E%3Cpath d='M0 8Q11 0 22 8T44 8V14H0Z' fill='%230f9e8f'/%3E%3C/svg%3E"); }
.pfo-foot p { margin: 6px 0; }
.pfo-foot a { color: #fff; font-weight: 800; text-decoration: none; }
.pfo-foot a:hover { text-decoration: underline; }
.pfo-foot-brand { display: flex; justify-content: center; align-items: center; gap: 10px; font-weight: 800; }
.pfo-logo-pill { display: inline-flex; align-items: center; background: #fff; border-radius: 999px; padding: 5px 16px; }
.pfo-logo-pill:hover { text-decoration: none !important; }
.pfo-logo-pill .pfa-logotxt { font-size: 16px; }
.pfo-foot-fine { color: rgba(255, 255, 255, .88); max-width: 640px; margin: 10px auto 0 !important; }

/* ---------- on a phone: an app screen ---------- */
@media (max-width: 720px) {
	.pfa-link { display: none; }
	.pfo-app .pfo-hero { border-radius: 22px; padding: 18px 14px 20px; }
	.pfo-app .pfo-cta .ev-btn-ghost { display: none; }
	.pfo-app .pfo-cta .pfo-btn { width: 100%; min-height: 48px; font-size: 16px; }
	.pfo-app .pfo-sec { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; margin: 0 0 12px; box-shadow: var(--shadow); }
	.pfo-app .pfo-col > .pfo-sec:first-child { border-top: 1px solid var(--line); }
	.pfo-app .pfo-lend { background: var(--cream); border: 1.5px solid #bfe6df; margin-top: 56px; }
	.pfo-app .pfo-col > .pfo-lend { border-top: 1.5px solid #bfe6df; }
	.pfo-app .pfo-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin: 0 -4px; padding: 0 4px 4px; scrollbar-width: none; }
	.pfo-app .pfo-gallery::-webkit-scrollbar { display: none; }
	.pfo-app .pfo-gallery a { flex: 0 0 74%; scroll-snap-align: start; }
	.pfo-app .pfo-gallery img { aspect-ratio: 4 / 3; border-radius: 16px; }
	.pfo-app .pfo-contacts .ev-btn { flex: 1 1 calc(50% - 8px); min-height: 48px; }
	.pfo-app .pfo-contacts .pfo-c-wa { flex-basis: 100%; }
	.pfo-app .pfo-side { padding-top: 0; }
	.pfo-app .pfo-foot { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
	.pfo-app .pfo-foot-art { justify-content: center; }
	.pfo-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 10px max(14px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0, 0, 0, .08); }
	.pfo-bar .ev-btn { flex: 1; min-height: 48px; font-size: 16px; }
	.pfd-intro { margin: 0 0 10px; }
}

/* ---------- the dashboard ---------- */
body.pfa-my { display: flex; flex-direction: column; min-height: 100vh; }
body.pfa-my .pfa-top { order: 0; }
body.pfa-my .pfa-wrap { order: 2; flex: 1; width: 100%; }
.pfd { max-width: 760px; }
.pfd-who { margin: 0 0 12px; font-size: 13px; }
.pfd-intro { margin: 0 0 12px; }
.pfd-tabs { order: 1; display: flex; gap: 8px; width: 100%; max-width: 760px; margin: 12px auto 0; padding: 0 16px; }
.pfd-tabs a { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 800; text-decoration: none; }
.pfd-tabs a.is-cur { background: var(--t); border-color: var(--t); color: #fff; }
.pfd-tab-ico { font-size: 18px; line-height: 1; }
.pfd-badge { position: static; margin: 0; }
@media (max-width: 860px) {
	.pfd { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
	.pfd-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; max-width: none; margin: 0; gap: 4px; padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); background: rgba(255, 255, 255, .98); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0, 0, 0, .08); }
	.pfd-tabs a { flex: 1; flex-direction: column; justify-content: center; gap: 2px; min-height: 54px; padding: 6px 4px; border: 0; border-radius: 14px; background: transparent; color: var(--mut); font-size: 12.5px; }
	.pfd-tabs a.is-cur { background: #d9f3ef; color: var(--t); }
	.pfd-tab-ico { font-size: 23px; }
	.pfd-badge { position: absolute; top: 3px; left: calc(50% + 6px); }
	.pfd-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (min-width: 861px) { .pfa-top .pfa-title { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { html:has(body.pfa) { scroll-behavior: auto; } }

/* long text never pushes a screen wider than the phone */
.pfd-rows { grid-template-columns: minmax(0, 1fr); }
.pfd-rows li { min-width: 0; }
.pfd-pub a, .pfd-pub p, .pfd-me b { overflow-wrap: anywhere; }

/* =========================================================
   Organiser register page: free tools, steps, a little design (1.4)
   ========================================================= */
.pfr-hero { position: relative; overflow: hidden; text-align: center; padding: 4px 4px 12px; }
.pfr-hero::before { content: ""; position: absolute; right: -90px; top: -120px; width: 340px; height: 340px; border-radius: 50%; background: #d9f3ef; opacity: .7; pointer-events: none; }
.pfr-hero::after { content: ""; position: absolute; inset: 0; opacity: .06; pointer-events: none; background: repeat 0 0/170px 106px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='106' viewBox='0 0 170 106'%3E%3Cg fill='%230b6b60' transform='translate(34 40) rotate(-14)'%3E%3Cellipse cx='0' cy='9' rx='17' ry='14'/%3E%3Cellipse cx='-24' cy='-3' rx='6' ry='9' transform='rotate(-25 -24 -3)'/%3E%3Cellipse cx='-8' cy='-17' rx='6' ry='9' transform='rotate(-8 -8 -17)'/%3E%3Cellipse cx='8' cy='-17' rx='6' ry='9' transform='rotate(8 8 -17)'/%3E%3Cellipse cx='24' cy='-3' rx='6' ry='9' transform='rotate(25 24 -3)'/%3E%3C/g%3E%3C/svg%3E"); }
.pfr-hero > * { position: relative; z-index: 1; }
.pfr-logo img { height: 56px; width: auto; max-width: 220px; object-fit: contain; display: inline-block; }
.pfr-badge { display: inline-block; margin: 14px 0 6px; padding: 6px 12px; border-radius: 999px; background: #d9f3ef; color: #0b6b60; font-weight: 800; font-size: 13px; }
.pfr-hero h1 { font-size: clamp(26px, 7vw, 36px); line-height: 1.15; margin: 8px 0 10px; letter-spacing: -.01em; }
.pfr-sub { font-size: 16.5px; color: var(--mut); margin: 0 auto 14px; max-width: 34em; }
.pfr-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.pfr-chips span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 14px; color: #16a34a; }
.pfr-cta { max-width: 420px; margin: 0 auto; }
.pfr-login { margin: 12px 0 0; color: var(--mut); font-size: 14px; }
.pfr-hero-art { margin: 16px auto 0; width: 200px; line-height: 0; }
.pfr-pets { width: 100%; height: auto; display: block; }
.pfr-sec { margin-top: 28px; }
.pfr-h2 { font-size: 22px; margin: 0 0 12px; text-align: center; }
.pfr-kick { margin: 0 0 4px; text-align: center; font-weight: 800; font-size: 12px; letter-spacing: .16em; color: #0b6b60; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pfr-pulse { height: 14px; width: auto; }
.pfr-features .pfr-h2 { font-size: 24px; margin-bottom: 14px; }
.pfr-feats { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .pfr-feats { grid-template-columns: 1fr 1fr; } }
.pfr-feat { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 6px 16px rgba(15, 100, 90, .06); }
.pfr-feat-art { background: linear-gradient(180deg, #e8f5f3 0%, #fff8ee 100%); padding: 10px 14px 4px; }
.pfr-feat-art svg { display: block; width: 100%; height: auto; max-height: 132px; }
.pfr-feat-txt { padding: 10px 14px 14px; }
.pfr-feat-txt b { display: block; font-family: "Baloo 2", "Nunito", system-ui, sans-serif; font-size: 17px; line-height: 1.2; }
.pfr-feat-txt p { margin: 5px 0 0; color: var(--mut); font-size: 14px; line-height: 1.5; }
.pfr-feat:nth-child(-n+2) { border-color: #9fd9d1; box-shadow: 0 8px 22px rgba(15, 158, 143, .14); }
.pfr-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pfr-steps li { position: relative; display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.pfr-steps li:not(:last-child)::after { content: ""; position: absolute; left: 29px; top: 48px; bottom: -11px; width: 2px; background: rgba(15, 158, 143, .28); }
.pfr-steps .n { position: relative; z-index: 1; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #0f9e8f; color: #fff; font-weight: 800; display: grid; place-items: center; }
.pfr-steps p { margin: 4px 0 0; color: var(--mut); font-size: 14px; }
.pfr-perks { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin: 0 0 14px; }
.pfr-perks b { width: 100%; text-align: center; color: var(--mut); font-size: 13px; font-weight: 800; }
.pfr-perks span { background: #e8f5f3; color: #0b6b60; border-radius: 999px; padding: 4px 11px; font-weight: 800; font-size: 12.5px; }
.pfr-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0, 0, 0, .06); transform: translateY(110%); transition: transform .25s; }
.pfr-sticky.show { transform: none; }
.pfr-sticky .ev-btn { max-width: 420px; margin: 0 auto; display: flex; }
body.typing .pfr-sticky { display: none; }
@media (prefers-reduced-motion: reduce) { .pfr-sticky { transition: none; } }


/* ---- the register / login screen ---- */
.pfa-auth { max-width: 680px; padding-bottom: calc(110px + env(safe-area-inset-bottom)); overflow-x: clip; }
.pfa-toplink { font-weight: 800; font-size: 15px; color: var(--t); text-decoration: none; padding: 10px 6px; min-height: 44px; display: inline-flex; align-items: center; }
.pfr-form { margin: 0 0 12px; }
.pfr-form .ev-label:first-child { margin-top: 0; }
.pfr-hint { margin: 4px 0 0; }
.pfr-pw { position: relative; }
.pfr-pw .ev-input { padding-right: 72px; }
.pfr-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 40px; padding: 0 12px; border: 0; background: transparent; color: var(--t); font-weight: 800; font-size: 14px; cursor: pointer; }
.pfr-submit { width: 100%; margin-top: 12px; min-height: 50px; font-size: 16px; }
.pfr-fine { margin: 10px 0 0; text-align: center; }
.pfr-switch { text-align: center; margin: 10px 0; color: var(--mut); }
.pfr-switch a, .pfr-links a, .pfr-login a { color: var(--t); font-weight: 800; }
.pfr-links { text-align: center; margin: 12px 0 0; }
.pfr-small { max-width: 460px; margin: 0 auto; padding-top: 14px; text-align: center; }
.pfr-small .ev-card { text-align: left; }
.pfr-small h1 { font-size: 28px; margin: 8px 0 4px; }
.pfr-logo { margin: 6px 0; }
.pfr-ok { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #e6fbf8; color: #0b6b60; font-weight: 800; }
.pfr-codehead { margin: 0 0 4px; font-size: 18px; }
.pfr-codebox .ev-wrap { padding: 0; }
.pfr-codebox .ev-card { margin: 12px 0; }
.pfr-sec .ev-card { text-align: left; }
.pfr-badge { background: #d9f3ef; }

/* dashboard: welcome card and the "set a password" prompt */
.pfd-welcome { margin: 0 0 12px; padding: 14px 16px; border-radius: 18px; background: #e6fbf8; border: 1.5px solid #9fd9d1; }
.pfd-welcome p { margin: 4px 0 8px; }
.pfd-welcome-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0 !important; }
.pfd-banner { margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: #fff6e0; border: 1px solid #f6c453; font-weight: 700; font-size: 14px; }
.pfd-banner a { color: var(--t); font-weight: 800; }

/* the big "Join free" buttons */
.pfr-cta, .pfr-stickybtn { display: flex; width: 100%; max-width: 420px; margin-left: auto; margin-right: auto; min-height: 52px; font-size: 17px; }
.pfr-sticky { text-align: center; }

/* the big buttons keep their size (these must be as specific as the general button rule) */
.pfa .pfr-submit { min-height: 50px; font-size: 16px; }
.pfa .pfr-cta, .pfa .pfr-stickybtn { min-height: 52px; font-size: 17px; }
