/* Cyprus Weather website — additions to the app styles */

/* Greek visitors: keep the page hidden for the instant it takes to switch the English base text to Greek */
html.cy-pending .navbar, html.cy-pending .timebar, html.cy-pending main { visibility: hidden; }

/* "Install app" button (appears only where the browser can install the site) */
.cy-install{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(14px + env(safe-area-inset-bottom,0px));z-index:40;
  display:flex;align-items:center;gap:4px;max-width:calc(100vw - 24px);}
.cy-install[hidden]{display:none;}
.cy-install-btn{display:inline-flex;align-items:center;gap:8px;border-radius:999px;border:1px solid rgba(120,90,45,.28);cursor:pointer;
  padding:10px 18px;color:var(--ink,#2A2014);font-family:var(--serif,Georgia,serif);font-weight:600;font-size:15px;letter-spacing:.02em;
  background:radial-gradient(52% 40% at 40% 30%,rgba(255,255,255,1),rgba(255,255,255,0) 72%),radial-gradient(128% 122% at 50% 42%,hsl(55,82%,99%) 0%,hsl(55,58%,88%) 44%,hsl(55,48%,67%) 100%);
  box-shadow:0 6px 18px rgba(33,33,86,.28),inset 0 1px 0 rgba(255,255,255,.9);}
.cy-install-btn:focus-visible,.cy-install-x:focus-visible{outline:2px solid #2E2E72;outline-offset:2px;}
.cy-install-ic{color:var(--copper,#B0673A);font-size:17px;line-height:1;}
.cy-install-x{width:34px;height:34px;border-radius:50%;border:1px solid rgba(242,234,216,.5);cursor:pointer;font-size:18px;line-height:1;
  color:#F2EAD8;background:linear-gradient(180deg,#2E2E72,#212156);box-shadow:0 4px 12px rgba(33,33,86,.3);}
.cy-install-help{position:absolute;bottom:calc(100% + 10px);left:50%;transform:translateX(-50%);width:max-content;max-width:min(330px,calc(100vw - 24px));
  background:#F7EFDC;color:var(--ink,#2A2014);border:1px solid rgba(120,90,45,.25);border-radius:14px;padding:12px 14px;
  font-size:14px;line-height:1.4;box-shadow:0 10px 28px rgba(33,33,86,.25);}
.cy-install-help[hidden]{display:none;}
@media print{.cy-install{display:none;}}

/* "Install app" button in the menu bar, right next to the ΕΛ/EN switch (site.js keeps it 8px left of the switch).
   Always shown, except inside the installed app. Below 880px the label is shorter and the brand moves to the left
   to make room; on phones the brand name sits on two lines ("ΚΥΠΡΟΣ" / "CYPRUS"). */
.cy-topinstall{position:absolute;right:107px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;gap:7px;margin:0;
  padding:7px 14px;border-radius:8px;border:0;cursor:pointer;white-space:nowrap;
  color:var(--ink,#2A2014);font-family:inherit;font-weight:600;font-size:13px;letter-spacing:.02em;line-height:1.2;
  /* same cushion as the menu's buttons (.navlinks a.active in app.css) */
  background:radial-gradient(52% 40% at 40% 30%,rgba(255,255,255,1),rgba(255,255,255,0) 72%),radial-gradient(128% 122% at 50% 42%,hsl(55,82%,99%) 0%,hsl(55,58%,88%) 44%,hsl(55,48%,67%) 100%);
  box-shadow:inset 0 1px 1px rgba(255,255,255,.9),inset 2px 3px 6px rgba(255,255,255,.5),inset -3px -4px 8px rgba(120,90,45,.4),inset 0 0 0 1px rgba(255,255,255,.3),var(--sh);
  transition:filter .15s,transform .15s;}
.cy-topinstall:hover{filter:brightness(1.05);}
.cy-topinstall:active{transform:translateY(-50%) scale(.97);}
.cy-topinstall:focus-visible{outline:2px solid #F2EAD8;outline-offset:2px;}
.cy-topinstall[hidden]{display:none;}
.cy-topinstall-ic{color:var(--copper,#B0673A);font-size:15px;line-height:1;}
.cy-topinstall-short{display:none;}
.cy-topinstall-help{position:absolute;right:14px;top:calc(100% + 6px);z-index:41;width:max-content;max-width:min(330px,calc(100vw - 28px));
  background:#F7EFDC;color:var(--ink,#2A2014);border:1px solid rgba(120,90,45,.25);border-radius:14px;padding:12px 14px;
  font-size:14px;line-height:1.4;text-align:left;box-shadow:0 10px 28px rgba(33,33,86,.25);}
.cy-topinstall-help[hidden]{display:none;}
@media (max-width:879px){
  .cy-topinstall-full{display:none;}.cy-topinstall-short{display:inline;}
  .navbar .brandrow:has(.cy-topinstall:not([hidden])){justify-content:flex-start;}
}
@media (max-width:520px){
  .cy-topinstall{right:101px;padding:7px 11px;gap:5px;font-size:12px;letter-spacing:.02em;}
  .cy-topinstall-help{right:10px;max-width:calc(100vw - 20px);}
  .navbar .brandrow:has(.cy-topinstall:not([hidden])){padding-left:10px;}
  .navbar .brandrow:has(.cy-topinstall:not([hidden])) .brand{gap:8px;}
  .navbar .brandrow:has(.cy-topinstall:not([hidden])) .brand .nm{font-size:14px;line-height:1.05;}
  .navbar .brandrow:has(.cy-topinstall:not([hidden])) .brand .nm i{display:block;}
}
@media (max-width:359px){.cy-topinstall{padding:7px 6px;gap:3px;font-size:10.5px;letter-spacing:0;}}
@media print{.cy-topinstall,.cy-topinstall-help{display:none;}}

/* Menu on desktop: one row across the full page width (the brand row keeps its centred 1100px layout).
   Text and padding scale with the window so all 14 items fit; below 1280px the two-row layout applies. */
@media (min-width:1280px){
  .navbar .navwrap{max-width:none;}
  .navbar .navwrap .brandrow{max-width:1100px;margin:0 auto;}
  .navbar .navrow{padding:0 16px 6px;}
  .navbar .navlinks{flex-wrap:nowrap;overflow-x:visible;justify-content:space-evenly;row-gap:0;}
  .navbar .navlinks a{white-space:nowrap;font-size:clamp(12px,calc((100vw - 140px) / 95),15.5px);padding-left:.8em;padding-right:.8em;}
}
