/* =====================================================================
   Event Control, on top of the public site's stylesheet (css/site.css, linked from FCC.OperatorsControl.PublicWebSite:
   the tokens, the header, the buttons, the cards and the footer). Here only what the shell adds. Mobile first (390 px).
   ===================================================================== */

.ev-boot-tag { color:var(--gold-2); font:600 .8rem var(--mono); letter-spacing:.3em; }
.ev-site main { min-height:60vh; }
.ev-header-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.ev-actions { display:flex; align-items:center; gap:4px; margin-left:auto; min-width:0; }
.ev-hide-phone { display:none !important; }

/* The user's menu and the language, as in the Marketplace header (PBI #1137): the menu button is the avatar on a phone
   and avatar + name on a wide screen; the panel is a floating one at every width (site.css makes the header panels static
   in its folded phone menu, which Event Control does not have); a transparent layer under it closes it with a press outside. */
.ev-user { position:relative; }
.ev-user .user-btn { min-height:44px; padding:3px; border-radius:999px; }
.ev-user .user-avatar { width:34px; height:34px; }
/* The initials are drawn by CSS: as text they would be «visible text» that the name of the button ("Menu of …") does not contain (axe label-content-name-mismatch, PBI #1160). */
.ev-user .user-avatar::after { content:attr(data-initials); }
/* The links of the error summary take its ink (unlayered: the site's «a» colour beats any layered rule; PBI #1160). */
.ev-site .fcc-error-summary a { color:inherit; }
.ev-menu-backdrop { position:fixed; inset:0; z-index:40; background:transparent; }
.ev-user.is-open { z-index:41; }
.ev-header .ev-user .nav-panel.ev-user-panel { position:absolute; top:calc(100% + 10px); left:auto; right:0; width:min(270px, calc(100vw - 24px)); margin:0; box-shadow:0 20px 50px rgba(0,0,0,.55); }
.ev-header .ev-user:not(.is-open) .nav-panel.ev-user-panel { display:none; }
.ev-user-panel ul { display:grid; gap:2px; }
.ev-user-panel a, .ev-user-panel button {
    display:flex; align-items:center; gap:12px; width:100%; min-height:44px; padding:6px 10px; border:0; border-radius:var(--radius);
    background:transparent; color:var(--text); font:.95rem var(--sans); text-align:left; text-decoration:none; cursor:pointer;
}
.ev-user-panel a:hover, .ev-user-panel button:hover { background:var(--gold-dim); color:var(--gold-2); }
.ev-user-panel .uc-icon { color:var(--gold); flex:none; }
.ev-user-who { display:grid; gap:2px; padding:8px 10px 10px; margin-bottom:6px; border-bottom:1px solid var(--line); }
.ev-user-who strong { color:var(--ag-white); overflow-wrap:anywhere; }
.ev-user-who small { color:var(--muted); font:var(--fs-label) var(--mono); overflow-wrap:anywhere; }
.ev-header .btn .uc-icon { flex:none; }
.ev-header .agency-lang {
    position:relative; display:inline-flex; align-items:center; gap:5px; min-width:44px; height:44px; padding:0 8px;
    border:1px solid var(--line-control); border-radius:var(--radius); color:var(--text-2); font:600 var(--fs-label) var(--mono); letter-spacing:.1em; cursor:pointer;
}
.ev-header .agency-lang:hover { border-color:var(--gold); background:transparent; color:var(--gold-2); }
.ev-header .agency-lang:focus-within { outline:2px solid var(--gold-2); outline-offset:2px; }
.ev-header .agency-lang .agency-lang-current { font:inherit; letter-spacing:inherit; line-height:1; }
.ev-header .agency-lang select { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; font-size:16px; }
.ev-header .agency-lang select option { background:var(--panel); color:var(--text); }
.ev-page { padding-top:28px; padding-bottom:72px; display:grid; gap:24px; }
.ev-page > * { min-width:0; }
.ev-footer-grid { grid-template-columns:1fr; }
@media (min-width:600px) {
    .ev-hide-phone { display:inline-flex !important; }
    .ev-brand-tag { display:inline-flex; }
    .ev-footer-grid { grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); }
}

/* PBI #1138: the heading the router focuses on each page (FocusOnNavigate, tabindex -1) is not a control: no ring around it. */
h1[tabindex="-1"]:focus, h1[tabindex="-1"]:focus-visible { outline:none; }

/* PBI #1147 (epic #1144, docs/arquitectura/event-control-estilo.md): the frame as in the proposal. Container of 1360 px
   with margins of 16 px (24 from 640 px); the bar of the apps (32 px, darker, the current one a gold pill with black text);
   the sticky header of 64 px at 95 % with blur: the shield in a 36 px box, «FEDERAL CIVIL CORPS» in Barlow, the
   EVENT CONTROL pill (not on a phone) and, on the right, the user's pill and the language; the footer in two columns.
   Colours come from the tokens of :root.fcc-events; the darker tones are mixes of them. */
.ev-site { --gutter:16px; --header:64px; --ev-deep:color-mix(in srgb, var(--bg) 70%, black); }
.ev-site .wrap { max-width:1360px; }
@media (min-width:640px) { .ev-site { --gutter:24px; } }

.ev-site .apps-bar { background:var(--ev-deep); border-bottom:1px solid var(--line); }
.ev-site .apps-bar .wrap { min-height:32px; padding-top:0; padding-bottom:0; align-items:center; }
.ev-site .fcc-apps a { min-height:24px; padding:0 10px; border-radius:var(--radius-sm, 4px); font:600 .6875rem var(--mono); letter-spacing:.04em; }
.ev-site .fcc-apps ul { overflow-x:auto; scrollbar-width:none; }
.ev-site .fcc-apps a.is-current { background:var(--gold); color:var(--ag-gold-ink); font-weight:700; }

.ev-site .site-header.ev-header { height:var(--header); min-height:var(--header); background:color-mix(in srgb, var(--bg) 95%, transparent); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border-bottom:1px solid var(--line); }
.ev-site .ev-header .ev-header-row { height:100%; min-height:0; }
.ev-brand-row { display:flex; align-items:center; gap:12px; min-width:0; }
.ev-brand { display:inline-flex; align-items:center; gap:10px; flex:none; text-decoration:none; }
.ev-brand img { display:block; height:34px; width:auto; }
.ev-brand-tag {
    display:none; align-items:center; padding:4px 10px; border:1px solid color-mix(in srgb, var(--gold) 40%, transparent); border-radius:var(--radius);
    background:var(--surface); color:var(--gold); font:700 .6875rem var(--mono); letter-spacing:.16em; text-transform:uppercase; white-space:nowrap;
}
.ev-site .ev-user .user-btn { min-height:44px; gap:10px; padding:4px 12px 4px 6px; border:1px solid var(--line-2); background:var(--surface); color:var(--text); }
.ev-site .ev-user .user-btn:hover, .ev-site .ev-user.is-open .user-btn { background:var(--hover); border-color:var(--line-2); color:var(--text); }
.ev-site .ev-user .user-avatar { width:28px; height:28px; border:1px solid color-mix(in srgb, var(--gold) 60%, transparent); background:var(--gold-dim); color:var(--gold); font-size:.6875rem; }
.ev-site .ev-user .user-name { font:500 .75rem var(--sans); color:var(--text); }
.ev-site .ev-actions { gap:10px; }
.ev-site .ev-header .agency-lang { border-color:var(--line); border-radius:var(--radius); background:var(--surface); color:var(--text); font-size:.75rem; }
.ev-site .ev-header .btn { border-radius:var(--radius); }

.ev-site .site-footer.ev-footer { padding:40px 0 24px; border-top:1px solid var(--line); background:var(--ev-deep); }
.ev-footer-logo { display:block; height:40px; width:auto; margin-bottom:12px; }
.ev-footer .footer-brand p { max-width:28rem; color:var(--muted); font-size:.75rem; line-height:1.6; }
.ev-footer .footer-grid { gap:32px; padding-bottom:32px; border-bottom:1px solid var(--line); }
.ev-footer .footer-grid nav { justify-self:start; }
.ev-footer h2 { color:var(--gold); font:700 .6875rem var(--sans); letter-spacing:.16em; }
.ev-footer nav a { min-height:28px; color:var(--muted); font-size:.75rem; }
.ev-footer nav a:hover { color:var(--text); }
.ev-footer .footer-base { padding-top:24px; border-top:0; color:var(--text-dim); font:.6875rem var(--sans); }
.ev-footer .footer-base a { color:var(--text-dim); text-decoration:underline; }
.ev-footer .footer-base a:hover { color:var(--gold); }
@media (min-width:768px) {
    .ev-site .ev-footer-grid { grid-template-columns:minmax(0,7fr) minmax(0,5fr); }
    .ev-footer .footer-grid nav { justify-self:end; }
}
