/* Part G: events (prototype a2-cancelarie: .evn, .q, .plan, .linkbox), the screens' own styles, not in css/app.css. */
.evn { display: grid; grid-template-columns: minmax(0, 640px) minmax(300px, 1fr); gap: 56px; align-items: start; } /* O-058: the form at most 640 px, the page being made beside it */
.evn .form { max-width: none; gap: 28px; }
.evn-side { display: grid; gap: 24px; max-width: 460px; }
.g-live { display: grid; gap: 8px; }
.g-live[hidden] { display: none; }
.g-live h2 { font: 600 var(--t-md)/1.3 var(--font); letter-spacing: 0; }
.g-live iframe { width: 100%; height: min(640px, 100dvh - 260px); min-height: 420px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--paper); }
.q { display: grid; gap: 12px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.q .choose { max-width: none; }
.choice.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.plan { padding: 22px; border-radius: var(--r-lg); background: var(--accent); color: var(--rail-ink); }
.plan h2 { margin-bottom: 4px; font: 700 var(--t-md)/1.3 var(--display); letter-spacing: 0; }
.plan p { color: var(--rail-ink-2); font-size: var(--t-sm); }
.plan ol { display: grid; gap: 12px; margin-top: 14px; counter-reset: p; }
.plan li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 2px 10px; counter-increment: p; }
.plan li::before { content: counter(p); grid-row: span 2; display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid currentColor; border-radius: 50%; font: 600 var(--t-xs)/1 var(--mono); }
.plan li small { grid-column: 2; color: var(--rail-ink-2); font-size: var(--t-sm); }
.plan li.you::before { border-color: var(--cta); background: var(--cta); color: var(--cta-ink); }
.send-row { grid-template-columns: minmax(0, 1fr) auto; }
.tbl td.act form { display: inline; }
@media (max-width: 860px) {
  .evn { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .evn-side { max-width: none; }
  .g-live { display: none; }
}
/* Part G2: the public event pages (no app shell): prototype .pub, a cover on top */
.pub-page { min-height: 100dvh; background: var(--paper); color: var(--ink); }
.pub-main { max-width: 760px; margin: 0 auto; padding: clamp(20px, 5vw, 48px) 16px 48px; }
/* O-025, O-026: the page in a frame with room above; the CertiPass logo and name outside it, below (owner: the event is what the page promotes) */
.pub-brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: inherit; text-align: left; text-decoration: none; }
.pub-brand:hover { color: var(--ink); }
.pub-brand img { flex: none; width: 24px; height: 24px; border-radius: 5px; }
.pub-card { overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); }
.pub-cover { display: block; width: 100%; height: clamp(120px, 26vw, 240px); object-fit: cover; }
.pub-card > .pub { padding: clamp(20px, 5vw, 40px); }
.pub-foot { max-width: none; margin-top: 12px; text-align: center; }
/* O-051, O-054: where it takes place: the meeting's button, the address on a grey map with our own pin (the real map is an outside frame, greyed, when it is switched on) */
.pub-where { display: grid; gap: 10px; margin-top: 18px; }
.pub-map { position: relative; display: grid; align-items: end; min-height: 200px; overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: linear-gradient(115deg, transparent 46%, var(--paper) 46% 49%, transparent 49%), linear-gradient(25deg, transparent 58%, var(--paper) 58% 60.5%, transparent 60.5%),
    linear-gradient(90deg, transparent 22%, var(--paper) 22% 23.5%, transparent 23.5% 71%, var(--paper) 71% 72.5%, transparent 72.5%), linear-gradient(0deg, transparent 30%, var(--paper) 30% 32.5%, transparent 32.5% 68%, var(--paper) 68% 70%, transparent 70%), var(--sunken); }
/* V-058: OpenStreetMap's tiles above the address, grey, the place in the middle under our pin (its credit under the map) */
.pub-map.live { align-items: start; }
.pub-tiles { position: relative; height: 200px; overflow: hidden; filter: grayscale(1) contrast(0.85) brightness(1.06); }
.pub-tiles > div { position: absolute; display: grid; }
.pub-tiles img { display: block; width: 256px; height: 256px; max-width: none; }
.pub-map.live .pub-pin { top: 100px; }
.pub-pin { position: absolute; left: 50%; top: 50%; width: 40px; height: 52px; transform: translate(-50%, -100%); filter: drop-shadow(0 3px 4px oklch(0.24 0.015 70 / 0.3)); pointer-events: none; }
.pub-addr { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin: 0; padding: 10px 14px; border-top: 1px solid var(--line-2); background: var(--surface); font-size: var(--t-sm); overflow-wrap: anywhere; }
.pub-addr span { font-weight: 600; }
aside > .pub-where { margin: 0 0 20px; }
.pub-main > .empty { max-width: none; padding: 40px clamp(20px, 5vw, 40px); border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); }
.pub { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.pub-head h1 { overflow-wrap: anywhere; }
.pub-body { margin-top: 24px; }
.pub .about { max-width: 60ch; margin-top: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.pub-org { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-weight: 600; }
.pub-consent span { color: var(--ink-2); font-size: var(--t-sm); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Part G2-G4: the organised event's panels (prototype .linkbox, .fix, .qr-box, .qr-full) */
.linkbox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1.5px solid var(--edge); border-radius: var(--r); background: var(--surface); }
.linkbox .mono { flex: 1 1 100%; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.g-ev .fix, .fix { margin: 0; padding: 0; list-style: none; }
.fix > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 6px 20px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.fix > li > div { min-width: 0; overflow-wrap: anywhere; }
.fix .acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.fix .acts form, .g-present form { display: inline; }
.bulk { margin-top: 14px; }
.g-present .switch-row small { overflow-wrap: anywhere; }
.qr-box { display: grid; place-items: center; gap: 10px; width: 100%; max-width: 272px; padding: 20px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); text-align: center; }
.qr-box img { width: 150px; height: 150px; image-rendering: pixelated; }
.qr-full { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 24px; border: 0; background: var(--paper); color: var(--ink); }
.qr-full[open] { display: grid; place-content: center; justify-items: center; gap: 20px; text-align: center; }
.qr-full img { width: min(76vmin, 640px); height: auto; image-rendering: pixelated; }
.g-details > summary { cursor: pointer; color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.g-field { display: grid; gap: 10px; margin: 0; padding: 14px 0; border: 0; border-top: 1px solid var(--line); }
.g-field legend { padding-top: 14px; font-weight: 600; }
/* O-027: the fields every sign-up form has (locked), above the organiser's own; O-032: the panel „Adaugă o persoană” opens under „Pe listă” */
.g-fixed { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.g-fixed li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 48px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.g-fixed li .pill { margin-left: auto; }
.g-field-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.g-add { max-width: 640px; margin-top: 16px; padding: 20px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); }
.g-add[hidden] { display: none; }
.g-add .row-acts { justify-content: flex-start; }
.g-add .row-acts ui-file-input { flex: 0 0 auto; width: auto; }
/* O-050 „Detalii de participare” on Planul and on a person's page; O-052 the missing-link mark with its button */
.g-det h2, .pub-details h2 { font: 600 var(--t-md)/1.3 var(--font); letter-spacing: 0; }
.g-det .facts dd, .pub-details { overflow-wrap: anywhere; }
.g-nolink { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; max-width: none; }
.g-nolink > span { flex: 1 1 320px; }
/* O-048: „Câmpurile tale”, the organiser's own fields as a sub-section with one-click examples */
.g-own { display: grid; gap: 8px; padding-top: 6px; }
.g-own-head { display: flex; align-items: baseline; gap: 10px; }
.g-own-head h3 { font: 600 var(--t-md)/1.3 var(--font); }
.g-own-head .n { font-size: var(--t-sm); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.g-own-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-2); font-size: var(--t-sm); }
/* O-049, O-057, O-058: the form's editor in the shell's .beside (640 px + the rest); the saved public page stands beside it from 1180 px, below that the editor alone */
.g-form-prev { display: none; }
@media (min-width: 1181px) {
  .g-form-prev { display: grid; gap: 8px; position: sticky; top: 84px; max-width: 520px; }
  .g-form-prev h3 { font: 600 var(--t-md)/1.3 var(--font); }
  .g-form-prev iframe { width: 100%; height: min(640px, 100dvh - 220px); border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--paper); }
}
/* O-033: the „Certificate” tab's own actions (prepare, send, see, change) */
.g-send-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.g-ready { display: grid; gap: 14px; }
.g-ready[hidden] { display: none; }
.g-imp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
@media (max-width: 620px) { .g-imp-grid { grid-template-columns: minmax(0, 1fr); } }
.g-add h3 { font: 600 var(--t-md)/1.3 var(--font); }
.check .g-hint { display: block; color: var(--ink-3); font-size: var(--t-sm); }
.covers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; }
.covers legend { margin-bottom: 8px; font-weight: 500; }
.covers label { position: relative; display: block; cursor: pointer; border-radius: var(--r); }
.covers input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.covers img { display: block; width: 100%; aspect-ratio: 5 / 2; object-fit: cover; border: 2px solid transparent; border-radius: var(--r); }
.covers input:checked + img { border-color: var(--ink); box-shadow: 0 0 0 2px var(--cta); }
.covers input:focus-visible + img { outline: 3px solid var(--accent); outline-offset: 2px; }
/* „Eveniment nou” in two steps (O-024), the approval as information (O-020), the own picture and the cover collection (O-022) */
.steps.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1180px) { /* with the rail, the form's column was 271 px at 1024: the plan goes under the form */
  .evn { grid-template-columns: minmax(0, 640px); gap: 32px; }
  .evn-side { max-width: none; }
  .g-live { display: none; }
}
.evn section.q[hidden] { display: none; }
.g-narrow { max-width: 240px; }
.g-approve { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--accent); border-radius: var(--r); background: var(--accent-soft); }
.g-approve p { display: flex; gap: 10px; max-width: 72ch; color: var(--ink-2); font-size: var(--t-sm); }
.g-approve p .i { flex: none; margin-top: 2px; color: var(--accent); }
.g-cover-new .drop { padding: 20px; }
/* O-052 on the list: the mark wraps inside the state column, whole, and never runs under the row's button */
.row-state { min-width: 0; }
.row-state > .pill[data-nolink] { max-width: 100%; white-space: normal; align-items: flex-start; text-align: left; overflow-wrap: break-word; hyphens: manual; }
.row-state > .pill[data-nolink] .i { flex: none; margin-top: 3px; }
/* O-019 with O-046: the list's own „Eveniment nou” in the head only on a phone; at 821 px and wider the shell's floating „+” is the way */
.head-actions.on-narrow { display: none; }
@media (max-width: 820px) { .head-actions.on-narrow { display: flex; } }
/* O-053: the drop area of „Sau pune o imagine a ta” as wide as its column (as O-008 in the send's first step) */
.g-details ui-file-input, .g-details .drop, .g-cover-new ui-file-input, .g-cover-new .drop { display: grid; width: 100%; max-width: none; }
.g-lib { list-style: none; }
.g-lib li { display: grid; gap: 4px; justify-items: start; }
@media (max-width: 760px) { /* three buttons at the foot of step 2: they wrap on a phone instead of pushing the page wider */
  .evn .wiz-foot.bare, .evn .wiz-foot.bare > div { flex-wrap: wrap; }
  .evn .wiz-foot.bare > div:last-child .btn { flex: 1 1 auto; }
}
/* O-023: the public page in a window, at a computer's or a phone's width */
.g-prev { width: min(1100px, 100vw - 32px); max-width: none; height: min(860px, 100dvh - 32px); max-height: none; padding: 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--paper); color: var(--ink); }
.g-prev[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.g-prev::backdrop { background: oklch(0.24 0.015 70 / 0.5); }
.g-prev header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.g-prev header h2 { font: 600 var(--t-md)/1.3 var(--font); letter-spacing: 0; }
.g-prev-acts { display: flex; align-items: center; gap: 8px; }
.g-prev-stage { display: grid; justify-items: center; min-height: 0; background: var(--sunken); }
.g-prev iframe { width: 100%; height: 100%; border: 0; background: var(--paper); }
.g-prev iframe.phone { max-width: 390px; border-inline: 1px solid var(--line-2); }
.g-prev-stage[aria-busy="true"] iframe:not([data-shown]) { visibility: hidden; } /* O-128: never a white frame before the first page */
@media (max-width: 600px) { .g-prev { width: 100vw; height: 100dvh; border: 0; border-radius: 0; } }
@media (max-width: 860px) {
  .fix > li { grid-template-columns: minmax(0, 1fr); }
  .fix .acts { justify-content: flex-start; }
  .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qr-box { max-width: none; }
}
}
/* The stamp of the public pages (prototype .stamp; the shell's css has none): seal beside a bold line and its sentence */
.stamp { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; padding: 18px 0 22px; border-bottom: 1px solid var(--line); }
.stamp .seal { flex: none; width: 54px; height: 54px; color: var(--accent); }
.stamp p { color: var(--ink-2); }
.stamp strong { display: block; color: var(--ink); font: 700 var(--t-lg)/1.2 var(--display); letter-spacing: -0.015em; }
.g-reminder { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 4px; }
/* RV-F-05 (row 29): „Deschide în hartă” on a phone, a 44 px target by padding (the address bar keeps its height) */
@media (max-width: 820px) {
  .pub-addr a.link { display: inline-block; padding-block: 12px; margin-block: -12px; }
  .pub .btn-lg, .pub-join .btn { width: 100%; } /* V-059: on a phone, the page's main buttons take the whole line */
}
