/* Campanii. The list rows; the editor's own bits (it reuses the Lucrari
   page layout and components.css for everything else); the preview scope
   that supplies what css/campanii-site.css takes from the site. */
.cmp-row { grid-template-columns: minmax(0, 1fr) 190px 130px; }
@media (max-width: 700px) {
  .cmp-row { grid-template-columns: minmax(0, 1fr) auto; }
  .cmp-row > .mut { display: none; }
}

.cmp-col { max-width: 880px; }
.cmp-col > .pnl { margin-bottom: 16px; }
.req { color: var(--danger); margin-left: 2px; }
.cmp-tabs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cmp-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cmp-opt .fl { margin: 0; }
.cmp-activ { padding-top: 0; }

.cmp-evs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.cmp-ev { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-field); background: var(--card); color: var(--fg); font-weight: 500; text-align: left; }
.cmp-ev:hover { background: var(--canvas); }
.cmp-ev.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.cmp-sw { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid; border-radius: 8px; }
.cmp-sw i { width: 10px; height: 10px; border-radius: 3px; }

/* Preview: the banner is laid out at the device's width, then scaled down */
.cmp-prev { position: relative; overflow: hidden; border-radius: var(--r-field); background: var(--canvas); }
.cmp-prev--empty { display: grid; place-items: center; min-height: 140px; color: var(--muted); }
.cmp-site { transform-origin: 0 0; --display: "Atelier Display", "Times New Roman", serif; --body: "DM Sans", system-ui, sans-serif; --paper: #fbf9f4; --blue: #072b6e; --btn-h: 56px; }
.cmp-prev[data-view="telefon"] .cmp-site { margin: 0 auto; }
.cmp-site .btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: var(--btn-h); padding: 0 44px; border-width: 1px; border-style: solid; font-family: var(--body); font-size: .88rem; font-weight: 500; letter-spacing: .11em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.cmp-site .link { position: relative; padding-bottom: 4px; font-family: var(--body); font-size: .73rem; font-weight: 500; letter-spacing: .08em; text-decoration: none; }
.cmp-site .link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left center; transition: transform 260ms; }
.cmp-site .link:hover::after { transform: scaleX(1); }
.cmp-site a { cursor: default; }

@font-face { font-family: "Atelier Display"; src: url("/fonts/AtelierDisplay-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-latin-ext.woff2") format("woff2"); font-weight: 300 500; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-latin.woff2") format("woff2"); font-weight: 300 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
