/* ============================================================================
   STYLES for both the household portal and the board portal.
   - Everything starts with .poenb so the rest of the website is never affected.
   - COLORS: change the variables on the .poenb line just below
     (--accent = POENB blue #1E73BE used for buttons/links, --navy, --ink = text,
     --muted = grey text, --line = borders, --sand = light grey backgrounds).
   - Fonts come from the website theme (Roboto headings, Assistant text).
   ============================================================================ */
/* POENB portal – styled to match the eatonsneck.org theme (Roboto headings, Assistant text, POENB blue #1E73BE).
   All rules are scoped to .poenb so nothing else on the site changes. */
/* ---- Color and font variables (change colors here) ---- */
.poenb{--navy:#1A4A75;--ink:#373735;--head:#272727;--sand:#F4F6F9;--line:#DDE2E8;--muted:#5B6370;--accent:#1E73BE;--accent-dark:#165A96;--tint:#EAF2FA;color:var(--ink);font-family:Assistant,system-ui,-apple-system,'Segoe UI',sans-serif;font-size:17px;line-height:1.55;width:100%;max-width:100%;margin:0}
/* Let the portal use the full content width of the theme's no-sidebar layout */
body:has(#poenb-app) .site-main.nosidebar,body:has(#poenb-app) .site-main{width:100% !important;max-width:100% !important;float:none !important}
body:has(#poenb-app) .entry-content{max-width:100% !important}
/* ---- Basic text: headings, paragraphs, lists ---- */
.poenb *{box-sizing:border-box}
.poenb h1,.poenb h2{font-family:Roboto,'Helvetica Neue',Arial,sans-serif;font-weight:600;color:var(--head);margin:0;line-height:1.25;text-transform:none;letter-spacing:0}
.poenb h1{font-size:28px}.poenb h2{font-size:21px}.poenb h3{margin:0;font-size:16px;font-weight:700;color:var(--head);font-family:Assistant,system-ui,sans-serif}
.poenb p{margin:0}.poenb .muted{color:var(--muted)}.poenb .small{font-size:15px}
.poenb ul,.poenb ol{margin:0}
.poenb .opt-tag{display:inline-block;vertical-align:middle;margin-left:8px;font-family:Assistant,system-ui,sans-serif;font-size:13px;font-weight:700;color:#4B5563;background:#EEF1F5;border-radius:3px;padding:2px 8px;text-transform:uppercase;letter-spacing:.03em}
/* "A+ Larger text" button makes everything 18% bigger */
.poenb.bigtext .pmain{zoom:1.18}
@media (min-width:900px){.poenb #summary{position:sticky;top:90px}}
/* ---- Links, buttons and keyboard focus outlines (accessibility) ---- */
.poenb a{color:var(--accent)}
.poenb button{font:inherit;cursor:pointer;min-height:44px;text-transform:none;letter-spacing:0;line-height:1.3;box-shadow:none}
.poenb button:focus-visible,.poenb input:focus-visible,.poenb a:focus-visible,.poenb select:focus-visible{outline:3px solid #F5B400;outline-offset:2px}
/* slim toolbar that sits under the page title */
.poenb .ptool{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:0 0 12px;border-bottom:1px solid var(--line);margin-bottom:18px;font-size:15px;color:var(--muted)}
.poenb .ptool-who b{color:var(--head)}
.poenb .tbtn{display:inline-flex;align-items:center;background:#fff;color:var(--accent);border:1px solid var(--accent);border-radius:3px;padding:6px 12px;min-height:36px;font-size:14px;font-weight:600;text-decoration:none}
.poenb .tbtn:hover{background:var(--tint)}
.poenb .testbar{background:#FFF6DB;color:#5A4500;border-left:4px solid #F5B400;font-size:14px;padding:8px 12px;margin-bottom:18px}
/* ---- Layout: cards (the white boxes), rows, two-column page with the order box on the right ---- */
.poenb .pmain{padding:0 0 48px}
.poenb .card{background:#fff;border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:2px;padding:22px 24px;display:flex;flex-direction:column;gap:14px}
.poenb .row{display:flex;flex-wrap:wrap;gap:12px}
.poenb .between{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px}
.poenb .cols{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start}
.poenb .maincol{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:20px}
.poenb aside{flex:1 1 300px;min-width:0}
.poenb aside.card{background:var(--sand)}
/* ---- Choice cards (membership type, spot size) and chip buttons ---- */
.poenb .opt{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;padding:14px 16px;border-radius:3px;border:1px solid #CBD3DC;background:#fff;color:var(--ink);flex:1 1 200px}
.poenb .opt.on{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:var(--tint)}
.poenb .opt .t{font-weight:700;font-size:17px;color:var(--head)}.poenb .opt .p{font-weight:600;color:var(--accent-dark)}
.poenb .chip{padding:9px 16px;border-radius:3px;border:1px solid #BFC7D1;background:#fff;color:var(--ink);font-size:15px;font-weight:600}
.poenb .chip:hover{border-color:var(--accent)}
.poenb .chip.on{background:var(--accent);border-color:var(--accent);color:#fff}
/* ---- Main blue buttons (uppercase, square, like the website) ---- */
.poenb .primary{background:var(--accent);color:#fff;border:none;border-radius:0;padding:14px 22px;font-size:16px;font-weight:600;text-transform:uppercase;letter-spacing:.03em}
.poenb .primary:hover{background:var(--accent-dark)}
.poenb .primary:disabled{opacity:.45;cursor:not-allowed}
/* ---- Form fields ---- */
.poenb .input{font:inherit;padding:10px 12px;border:1px solid #BFC7D1;border-radius:2px;min-height:44px;width:100%;background:#fff;color:var(--ink);color-scheme:light;margin:0;box-shadow:none}
.poenb .input:focus{border-color:var(--accent)}
.poenb .input::placeholder{color:#6B7280;opacity:1}
.poenb .input:disabled{background:var(--sand);color:#6B7280}
.poenb label.f,.poenb .f{font-weight:600;font-size:15px;display:block;margin-bottom:4px;color:var(--head)}
/* ---- Membership history tiles, status pills, +/- steppers, order lines ---- */
.poenb .hist{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.poenb .tile{display:flex;flex-direction:column;padding:12px;border-radius:2px;background:var(--tint);color:var(--navy)}
.poenb .tile.open,.poenb .pill.open{background:#FDEEDC;color:#8A4A0B}
.poenb .tile b{font-size:18px}.poenb .tile span{font-size:14px}
.poenb .pill{font-size:13px;font-weight:700;padding:5px 10px;border-radius:3px;background:var(--tint);color:var(--navy);display:inline-block}
.poenb .step{width:48px;height:48px;border-radius:3px;border:1px solid #BFC7D1;background:#fff;color:var(--accent);display:inline-flex;align-items:center;justify-content:center;padding:0}
.poenb .step svg{pointer-events:none}
.poenb .step:disabled{opacity:.4;cursor:not-allowed}
.poenb .line{display:flex;justify-content:space-between;gap:12px;font-size:15px}
.poenb .line b{white-space:nowrap}
/* ---- Grids for side-by-side fields ---- */
.poenb .grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.poenb .grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
/* ---- PayPal button (used when live payments are connected) ---- */
.poenb .paypal{background:#FFC439;color:#111;border:none;border-radius:999px;padding:14px 18px;font-size:18px;font-weight:700;min-height:52px}
.poenb .paypal:disabled{background:#E5E7EB;color:#6B7280;cursor:not-allowed}
/* ---- Messages: errors, success, link-style buttons ---- */
.poenb .err{background:#FDECEA;color:#8A2E1F;border-left:4px solid #C0392B;padding:12px 14px;font-size:15px}
.poenb .ok{color:#1A7A3E;font-weight:600}
.poenb .linkbtn{background:none;border:none;padding:0;min-height:auto;color:var(--accent);text-decoration:underline;font:inherit;font-size:15px;cursor:pointer}
/* ---- Tables (board lists, beach party prices) ---- */
.poenb .scrollbox{overflow:auto;max-height:min(640px,70vh);border:1px solid var(--line)}
.poenb table{border-collapse:collapse;width:100%;font-size:14px;margin:0;border:none}
.poenb th,.poenb td{font-family:inherit;padding:8px 10px;text-align:left;vertical-align:top;border:none;border-bottom:1px solid #E8EBEF;background:none}
.poenb thead th{position:sticky;top:0;background:#F4F6F9;z-index:2;box-shadow:inset 0 -1px 0 var(--line);white-space:nowrap}
.poenb .th-btn{font-family:inherit;background:none;border:none;padding:0;min-height:auto;font-weight:700;color:var(--head);font-size:14px}
/* ---- Board portal: green/blue message bar and tab strip ---- */
.poenb .toast{position:sticky;top:8px;z-index:20;background:var(--navy);color:#fff;padding:12px 16px;font-weight:600}
.poenb .tabs{display:flex;flex-wrap:wrap;gap:0;margin-bottom:18px;border-bottom:2px solid var(--accent)}
.poenb .tabs .chip{border-radius:0;border:none;border-right:1px solid #fff;background:#EEF2F7;color:var(--head);margin:0}
.poenb .tabs .chip.on{background:var(--accent);color:#fff}
.poenb .busy{opacity:.6;pointer-events:none}
/* ---- Phones: fewer columns on small screens ---- */
@media (max-width:700px){.poenb .hist{grid-template-columns:repeat(2,minmax(0,1fr))}.poenb .grid3,.poenb .grid2,.poenb .cgrid{grid-template-columns:1fr !important}.poenb h1{font-size:24px}}
/* ---- Countdown pill for 10-minute spot holds ---- */
.poenb .holdtag{display:inline-block;font-variant-numeric:tabular-nums;font-weight:700;background:#FFF1D6;color:#7A4E00;border-radius:3px;padding:1px 6px;margin-left:2px}
/* Info tips: hover or focus on desktop, tap on phones */
.poenb .itip{position:relative;display:inline-flex;vertical-align:middle;margin-left:4px;cursor:help;outline:none}
.poenb .itip-i{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;border:1.5px solid var(--accent);color:var(--accent);font:700 12px/1 Georgia,serif;font-style:italic;background:#fff}
.poenb .itip:hover .itip-i,.poenb .itip:focus .itip-i,.poenb .itip.open .itip-i{background:var(--accent);color:#fff}
.poenb .itip-b{display:none;position:absolute;z-index:50;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);width:max-content;max-width:min(320px,80vw);background:#1F2933;color:#fff;font:400 14px/1.45 Assistant,system-ui,sans-serif;font-style:normal;text-transform:none;letter-spacing:0;padding:10px 12px;border-radius:6px;box-shadow:0 6px 18px rgba(0,0,0,.18);white-space:normal;text-align:left}
.poenb .itip-b::after{content:"";position:absolute;top:100%;left:50%;margin-left:-6px;border:6px solid transparent;border-top-color:#1F2933}
.poenb .itip:hover .itip-b,.poenb .itip:focus .itip-b,.poenb .itip.open .itip-b{display:block}
.poenb .itip.left .itip-b{left:auto;right:-10px;transform:none}.poenb .itip.left .itip-b::after{left:auto;right:14px}
.poenb .itip.right .itip-b{left:-10px;transform:none}.poenb .itip.right .itip-b::after{left:14px}
/* ---- Donation boxes: keep the three input boxes lined up even when a label wraps ---- */
.poenb .grid3.bottom{align-items:end}
.poenb .grid3.bottom label.don{min-height:2.9em;display:flex;align-items:flex-end}

/* Soft red box shown while a watercraft spot is held for the member (holdBox() in portal.js). */
.poenb .holdbox{background:#FDECEC;border:1px solid #F4B6B6;border-left:4px solid #D9534F;color:#8A1F1F;font-weight:700;border-radius:8px;padding:10px 12px;line-height:1.45;margin:0 0 10px}
.poenb .holdrow .holdbox{flex:1 1 320px;margin:0}
.poenb .holdbox .holdtag{background:#FFFFFF;color:#8A1F1F;border:1px solid #F4B6B6}
