/* EduSite V15 — personalizare vizuală */
/* EduSite V16 — buton vertical, mereu vizibil, fixat pe dreapta */
:root { --ed-drawer-width: 386px; }
.ed-custom-open{
  position:fixed; right:0; top:50%; bottom:auto; left:auto;
  transform:translateY(-50%); z-index:108;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:12px; width:58px; min-height:215px; padding:17px 12px;
  border:1px solid #bdd6a6; border-right:0; border-radius:18px 0 0 18px;
  background:#164532; color:#fff;
  font-family:Inter,Arial,sans-serif; font-weight:850; line-height:1.1;
  box-shadow:-7px 12px 35px #0c2a2670; cursor:pointer;
  transition:transform .18s ease, background .18s ease,box-shadow .18s ease;
  isolation:isolate;
}
.ed-custom-open svg{width:24px;height:24px;flex-shrink:0;color:#d5efa8}
.ed-custom-label{writing-mode:vertical-rl; transform:rotate(180deg); text-orientation:mixed;
  font-size:12px;font-weight:850;letter-spacing:.11em;white-space:nowrap}
.ed-custom-pip{width:7px;height:7px;border-radius:50%;background:#d4ee96;flex-shrink:0}
.ed-custom-open:hover {background:#226446; transform:translateY(-50%) translateX(-3px); box-shadow:-10px 14px 42px #0c2a2670}
.ed-custom-open[aria-expanded="true"] {background:#226446}
.ed-custom-open:focus-visible,.ed-panel button:focus-visible,.ed-panel input:focus-visible,.ed-panel textarea:focus-visible,.ed-panel select:focus-visible {outline:3px solid #e0b36b;outline-offset:3px}
.ed-panel{position:fixed;z-index:110;right:0;top:0;bottom:0;width:min(var(--ed-drawer-width),100vw);background:#fbfaf7;color:#203a32;box-shadow:-18px 0 65px #0f272633;display:flex;flex-direction:column;transform:translateX(110%);visibility:hidden;transition:transform .28s ease,visibility .28s; font-family:Inter,Arial,sans-serif;}
.ed-panel.is-open{visibility:visible;transform:translateX(0)}
.ed-panel-top{padding:24px 24px 18px; border-bottom:1px solid #e5e9e3; display:flex; align-items:start; justify-content:space-between;gap:14px;background:#fff}
.ed-panel-eyebrow{display:block;color:#677c70;letter-spacing:.12em;font-size:10px;font-weight:850;text-transform:uppercase;margin-bottom:4px}
.ed-panel-title{font-size:24px;letter-spacing:-.05em;line-height:1.1;margin:0;font-weight:850}
.ed-panel-close{background:#eef2ec;border:0;border-radius:50%;width:38px;height:38px;color:#223a33;cursor:pointer;font-size:21px;flex-shrink:0}
.ed-panel-scroll{padding:22px 24px;overflow:auto;flex:1;scrollbar-color:#b9cabf transparent;}
.ed-panel-section{padding-bottom:23px;margin-bottom:24px;border-bottom:1px solid #e0e7df}
.ed-panel-label{display:block;font-size:12px;font-weight:850;letter-spacing:.04em;margin-bottom:13px}
.ed-panel-help{color:#64766d;font-size:12px;line-height:1.55;margin:8px 0 0}
.ed-palette-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.ed-palette{border:1px solid #d8dfd7;background:#fff;color:#243a33;border-radius:12px;cursor:pointer;padding:8px 5px;min-height:80px;text-align:center;position:relative}
.ed-palette[aria-pressed="true"]{outline:2px solid #244c3f;border-color:#244c3f;outline-offset:1px}
.ed-palette-swatch{display:flex;border:1px solid #ddd;overflow:hidden;border-radius:7px;height:31px;margin:0 1px 7px}.ed-palette-swatch i{flex:1}
.ed-palette-name{font-size:10px;font-weight:780}
.ed-photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.ed-photo-option{border:1px solid #d6e0d7;border-radius:11px;overflow:hidden;background:white;color:#354d42;padding:0 0 8px;cursor:pointer;font-size:10px;font-weight:750}
.ed-photo-option img{height:68px;width:100%;object-fit:cover;margin-bottom:7px}
.ed-photo-option[aria-pressed=true]{outline:2px solid #245444;border-color:#245444}
.ed-color-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:15px}
.ed-color-grid label{font-size:11px;color:#54685e;font-weight:750}.ed-color-grid input[type=color]{margin-top:5px;cursor:pointer;width:100%;height:36px;border:1px solid #cbd7cf;border-radius:10px;background:#fff;padding:3px}
.ed-panel-field{display:block;margin:12px 0;color:#445c50;font-size:12px;font-weight:750}
.ed-panel-field input,.ed-panel-field textarea,.ed-panel-field select{display:block;width:100%;margin-top:7px;padding:10px 12px;font:500 14px/1.4 Inter,Arial,sans-serif;border:1px solid #ccd9d0;border-radius:10px;color:#243e33;background:#fff;resize:vertical}
.ed-panel-field textarea{min-height:82px}
.ed-choice-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.ed-font-option{font-size:13px;border:1px solid #cedbd0;background:white;border-radius:9px;padding:10px 7px;cursor:pointer;color:#264237}
.ed-font-option[aria-pressed=true]{background:#e1efe5;border-color:#295644;font-weight:850}
.ed-font-option[data-font=serif]{font-family:Georgia,serif}.ed-font-option[data-font=humanist]{font-family:Trebuchet MS,sans-serif}
.ed-panel-actions{padding:17px 24px 23px;border-top:1px solid #e0e8df;background:#fff;display:grid;gap:9px}
.ed-panel-submit{display:flex;align-items:center;justify-content:center;min-height:49px;padding:12px 16px;background:#204a3a;color:#fff!important;text-align:center;border-radius:10px;text-decoration:none;font-weight:850;font-size:14px}
.ed-panel-submit:hover{background:#376b54}
.ed-panel-reset{border:1px solid #cbd8cf;border-radius:9px;background:#fff;color:#355647;padding:11px 14px;font-weight:800;cursor:pointer}
.ed-mini-status{font-size:11px;color:#61776c;line-height:1.5;margin:0}
.ed-font-serif .hero h1,.ed-font-serif .section h2,.ed-font-serif .nextup h2{font-family:Georgia,'Times New Roman',serif!important;font-weight:500!important;letter-spacing:-.055em}
.ed-font-modern .hero h1,.ed-font-modern .section h2,.ed-font-modern .nextup h2{font-family:Inter,'Segoe UI',Arial,sans-serif!important;letter-spacing:-.06em}
.ed-font-humanist .hero h1,.ed-font-humanist .section h2,.ed-font-humanist .nextup h2{font-family:'Trebuchet MS',Verdana,sans-serif!important;letter-spacing:-.04em}
body.ed-square-corners .hero-photo,body.ed-square-corners .gallery-img,body.ed-square-corners .info-card,body.ed-square-corners .btn{border-radius:7px!important}
body.ed-customized .hero .accent{color:var(--ink)}
body.ed-customized[data-layout=contrast] .hero .accent,body.ed-customized[data-layout=cinema] .hero .accent{color:var(--accent)}
.ed-preview-nudge{position:fixed;bottom:94px;right:23px;z-index:95;color:#2d5744;background:#ffffffea;border:1px solid #d6e3d8;box-shadow:0 8px 26px #14292315;font:750 11px/1.35 Inter,Arial,sans-serif;padding:9px 13px;border-radius:9px}
@media(max-width:680px){.ed-custom-open{right:0;top:49%;bottom:auto;width:45px;min-height:170px;padding:12px 8px;gap:9px;border-radius:13px 0 0 13px}.ed-custom-open svg{width:21px;height:21px}.ed-custom-label{font-size:10px;letter-spacing:.07em}.ed-custom-pip{width:6px;height:6px}.ed-panel{width:min(100vw,420px)}.ed-panel-top{padding:18px}.ed-panel-scroll{padding:17px 18px}.ed-panel-actions{padding:14px 18px 18px}.ed-preview-nudge{display:none}}
@media(prefers-reduced-motion:reduce){.ed-panel,.ed-custom-open{transition:none!important}}


/* EduSite V17 — comutare vizualizare PC / Telefon */
.ed-device-toolbar{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);display:flex;align-items:center;gap:5px;z-index:107;padding:7px;background:#183d31;color:#fff;border:1px solid #b7d6ae;border-radius:16px;box-shadow:0 15px 45px #102a2b50;font:700 13px/1.3 Inter,'Segoe UI',Arial,sans-serif;white-space:nowrap}
.ed-device-label{padding:0 13px 0 10px;color:#c8e6bd;font-size:10px;letter-spacing:.13em;font-weight:850}
.ed-device-launch{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 15px;background:#f8faf5;color:#1a4737;border:1px solid transparent;border-radius:10px;cursor:pointer;font:800 13px/1.2 Inter,'Segoe UI',Arial,sans-serif;min-height:42px}
.ed-device-launch:hover{background:#deefcf}.ed-device-launch:focus-visible,.ed-device-overlay button:focus-visible{outline:3px solid #e7ab55;outline-offset:3px}
.ed-device-overlay{display:none;position:fixed;inset:0;z-index:1000;align-items:center;justify-content:center;background:#071a17d9;padding:20px;font-family:Inter,'Segoe UI',Arial,sans-serif}
.ed-device-overlay.is-visible{display:flex}
.ed-device-window{width:min(1380px,100%);height:min(92dvh,970px);min-height:400px;display:flex;flex-direction:column;background:#f5f7f4;color:#183d32;border-radius:21px;overflow:hidden;box-shadow:0 35px 110px #071c19a8}
.ed-device-window-head{flex:none;display:flex;align-items:center;gap:17px;justify-content:space-between;padding:15px 21px;background:#fff;border-bottom:1px solid #d6e0d6}
.ed-device-window-title{display:flex;flex-direction:column;gap:3px;min-width:0}.ed-device-eyebrow{color:#5d8071;letter-spacing:.11em;font-size:10px;font-weight:850}.ed-device-window-title strong{font-size:18px;letter-spacing:-.03em}
.ed-device-switch{display:flex;align-items:center;padding:5px;gap:5px;border:1px solid #d2ded4;border-radius:13px;background:#f2f6f1}
.ed-device-switch button{display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:9px;background:transparent;color:#264c3c;padding:10px 16px;font:800 13px/1.2 Inter,Arial,sans-serif;cursor:pointer;min-height:42px}
.ed-device-switch button[aria-pressed=true]{background:#1c4d3c;color:white;box-shadow:0 5px 12px #1c4d3c24}
.ed-device-close{display:grid;place-items:center;width:42px;height:42px;border:0;border-radius:50%;font-size:29px;line-height:1;background:#eef3ed;color:#24483a;cursor:pointer}
.ed-device-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:14px;background:radial-gradient(circle at 50% 30%,#e1eae0,#d6e1da)}
.ed-device-sizer{flex:none;position:relative}
.ed-device-shell{position:absolute;top:0;left:0;overflow:hidden;transform-origin:top left;box-shadow:0 15px 38px #0e302c48;background:white;border:8px solid #283a34;border-radius:19px}
.ed-device-overlay[data-mode=phone] .ed-device-shell{border:9px solid #22332d;border-radius:36px}
.ed-device-overlay[data-mode=phone] .ed-device-shell::before{position:absolute;z-index:3;content:'';top:0;left:50%;transform:translateX(-50%);height:13px;width:112px;border-radius:0 0 11px 11px;background:#22332d;pointer-events:none}
.ed-device-shell iframe{display:block;border:0;background:white;width:100%;height:100%;}
.ed-device-foot{flex:none;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 21px;background:#fff;border-top:1px solid #d6e0d6;font-size:11px}
.ed-device-resolution{font-weight:850;color:#1b4b38}.ed-device-hint{color:#637b6e}
@media(max-width:680px){.ed-device-toolbar{bottom:12px;max-width:calc(100vw - 24px);padding:6px;gap:4px;border-radius:12px}.ed-device-label{font-size:9px;padding:0 6px}.ed-device-launch{padding:9px 11px;gap:6px;font-size:12px;min-height:39px}.ed-device-overlay{padding:8px}.ed-device-window{width:100%;height:min(96dvh,980px);border-radius:14px}.ed-device-window-head{padding:11px;gap:7px;flex-wrap:wrap}.ed-device-window-title{flex-basis:100%;}.ed-device-window-title strong{font-size:15px}.ed-device-switch{flex:1}.ed-device-switch button{flex:1;padding:8px;font-size:12px}.ed-device-close{width:39px;height:39px;font-size:25px}.ed-device-stage{padding:9px}.ed-device-foot{padding:9px 12px;display:block}.ed-device-hint{display:block;margin-top:3px;font-size:10px}}
@media(prefers-reduced-motion:reduce){.ed-device-toolbar button,.ed-device-overlay button{transition:none!important}}


/* V18 — personalizare mobil cu previzualizare LIVE în partea de sus */
.ed-mobile-tabs,.ed-live-indicator{display:none}
@media (max-width:680px){
  /* Zona de sus rămâne pagina reală, care primește imediat culorile și textele editate. */
  .ed-panel{
    width:100%;max-width:none;left:0;right:0;top:auto;bottom:0;
    height:min(56dvh,480px);max-height:calc(100dvh - 170px);
    border-radius:22px 22px 0 0;
    transform:translateY(110%);transition:transform .22s ease,visibility .22s;
    box-shadow:0 -15px 60px #102c284f;
    overscroll-behavior:contain;
    z-index:150;
  }
  .ed-panel.is-open{transform:translateY(0)}
  .ed-panel-top{flex:none;padding:13px 16px 11px;align-items:center}
  .ed-panel-eyebrow{font-size:8.5px;letter-spacing:.09em}
  .ed-panel-title{font-size:19px;letter-spacing:-.035em}
  .ed-panel-close{height:37px;width:37px;font-size:23px}
  .ed-live-indicator{
    display:flex;align-items:center;justify-content:center;gap:7px;
    position:absolute;top:-31px;left:50%;transform:translateX(-50%);
    height:26px;padding:4px 14px;border-radius:10px 10px 0 0;
    background:#174936;color:#fff;font:800 10px/1.1 Inter,Arial,sans-serif;
    letter-spacing:.08em;white-space:nowrap;box-shadow:0 -5px 16px #14292320;
    pointer-events:none;
  }
  .ed-live-dot{height:7px;width:7px;border-radius:50%;background:#c9e997;box-shadow:0 0 0 3px #c9e9972d}
  .ed-mobile-tabs{
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;
    padding:8px 12px;background:#f3f6f0;border-bottom:1px solid #dbe5da;flex:none;
  }
  .ed-mobile-tab{
    border:1px solid transparent;border-radius:11px;background:transparent;
    color:#456256;display:flex;align-items:center;justify-content:center;gap:5px;
    min-width:0;min-height:39px;padding:5px 2px;
    font:800 11px/1.2 Inter,Arial,sans-serif;cursor:pointer;
  }
  .ed-mobile-tab.active,.ed-mobile-tab[aria-selected=true]{background:#184d38;color:#fff;box-shadow:0 3px 10px #184d382b}
  .ed-mobile-tab-icon{font-size:13px;font-weight:800}
  .ed-panel-scroll{min-height:0;flex:1;padding:14px 16px;overscroll-behavior:contain}
  .ed-panel-section{display:none;margin:0;padding:0;border:0}
  .ed-panel-section.ed-tab-active{display:block}
  .ed-panel-label{font-size:11px;margin-bottom:9px}
  .ed-palette-grid{gap:7px}
  .ed-palette{min-height:64px;padding:5px}
  .ed-palette-swatch{height:24px;margin-bottom:4px}
  .ed-color-grid{margin-top:12px}
  .ed-photo-option img{height:71px}
  .ed-panel-actions{
    flex:none;padding:9px 13px calc(11px + env(safe-area-inset-bottom,0px));
    gap:5px;display:grid;grid-template-columns:1fr auto;align-items:center;
  }
  .ed-panel-submit{min-height:42px;font-size:12px;padding:9px 12px;white-space:nowrap}
  .ed-panel-reset{padding:8px 9px;min-height:42px;font-size:10.5px;max-width:139px;line-height:1.1}
  .ed-mini-status{grid-column:1/-1;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  /* Doar în timpul editării, bara PC/Telefon nu concurează cu panoul. */
  body.ed-mobile-customizing .ed-device-toolbar{opacity:0;pointer-events:none;visibility:hidden}
  body.ed-mobile-customizing .ed-custom-open{opacity:0;pointer-events:none}
}
@media (max-width:360px){
 .ed-mobile-tab{font-size:10px;gap:3px}
 .ed-panel{height:min(58dvh,480px)}
 .ed-panel-submit{font-size:11px}
}
@media(max-height:570px) and (max-width:900px){
 .ed-panel{height:62dvh;max-height:calc(100dvh - 130px)}
 .ed-panel-actions{padding-block:6px}
 .ed-panel-top{padding-block:8px}
}
