@media (max-width: 390px){
    .hero-sub{
      word-break: normal !important;
      overflow-wrap: normal !important;
      hyphens: auto;
    }
    .wrap{ padding-inline: 16px; }
    .logo img{ height: 36px; }
    .pill{ height: 44px; padding: 0 18px; font-size: 0.95rem; }
    .center{ gap: 14px; }
    .cta{ gap: 10px; }
    .local-time{
      left: 16px;
      bottom: calc(72px + 20px + env(safe-area-inset-bottom));
      max-width: 78vw; font-size: 13px; padding: 8px 12px;
    }
  }
  @media (max-width: 360px){
    .hero-title{ font-size: clamp(28px, 8vw, 32px); }
    .hero-sub{ font-size: 14px; }
    .pill{ font-size: .9rem; padding: 0 16px; }
  }

/* Mobile Polish — v3 (apply AFTER your main CSS) */

/* 0) Optional nicer rag for headings (supported modern browsers) */
.hero-title{ text-wrap: balance; }
.hero-sub{ text-wrap: pretty; }

/* 1) Force kebab ( ... ) to the far right on small screens */
@media (max-width: 768px){
  .head{ grid-template-columns: auto 1fr auto; align-items:center; }
  .kebab{ grid-column: 3 !important; justify-self: end !important; margin-left: auto !important; display:block !important; }
  .right-links{ display: none !important; } /* use kebab menu on mobile */
}

/* 2) Kebab menu formatting */
@media (max-width: 768px){
  .kebab-menu{
    right: 0; left: auto;
    top: calc(100% + 8px);
    min-width: 220px;
    padding: 10px;
    border-radius: 12px;
    line-height: 1.25;
    z-index: 60;
  }
  .kebab-menu a{
    padding: 12px 10px;
    display:block;
    border-radius: 10px;
    font-weight: 600;
    
  }
  .kebab-menu a + a{ margin-top: 4px; }
  .kebab-menu .row{ gap: 12px; }
  .kebab-menu .icons button{ height: 32px; }
}

/* 3) CTA pill widths ~80% of viewport on small devices */
@media (max-width: 480px){
  .cta{ width: 100%; align-items: center; }
  .cta .pill, .pill{
    box-sizing: border-box;
    width: 80vw !important;      /* target 80% */
    max-width: 520px;
    justify-content: center;
    height: 46px;
    padding: 0 18px;
    font-size: 0.95rem;
  }
}
@media (max-width: 390px){
  .cta .pill, .pill{ width: 78vw !important; } /* a touch tighter on 375px class devices */
}

/* 4) Prevent mid-word breaks in subhead */
@media (max-width: 420px){
  .hero-sub{
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: auto;
  }
}

/* 5) Local time chip: comfortable spacing on small phones */
@media (max-width: 480px){
  .local-time{
    left: 16px;
    bottom: calc(72px + 20px + env(safe-area-inset-bottom));
    max-width: 78vw;
    font-size: 13px;
    padding: 8px 12px;
  }
}/* Keep .right-links visible on mobile, hide only the text links */
@media (max-width:768px){
    .right-links{ display:flex !important; align-items:center; gap:14px; }
    .right-links .link-thin{ display:none !important; }
  
    /* Kebab pinned to far right */
    .kebab{ display:block !important; margin-left:auto !important; justify-self:end !important; }
    .kebab-btn{ display:grid; place-items:center; width:34px; height:34px; border-radius:12px; }
  }
/* Hide the "A" (system/auto) option */
.theme-icons [data-theme="system"],
.kebab-menu .icons [data-theme="system"]{ display:none!important; }

/* Fallback if no data-theme attrs */
.theme-icons button:nth-child(2),
.kebab-menu .icons button:nth-child(2){ display:none!important; }

/* Enlarge kebab */
.kebab-btn{ width:44px!important; height:44px!important; border-radius:14px!important; }
.kebab-btn .dot{ width:5px!important; height:5px!important; margin:0 2px!important; }

/* Keep it pinned right on mobile */
@media (max-width:768px){
  .kebab{ display:block!important; margin-left:auto!important; justify-self:end!important; }
}
.kebab-btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    border:1px solid var(--line);
    background:var(--bg-elev);
    border-radius:12px;
    cursor:pointer;
  }
  .kebab-btn .dot {
    width:3px;
    height:3px;
    border-radius:50%;
    background:var(--ink);
    margin:0 1px;
    display:block;
  }
  .kebab-btn {
    width:24px;       /* slimmer */
    height:24px;
    border-radius:6px;
    border:1px solid var(--line);
    background:var(--bg-elev);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    padding:0;        /* removes extra space */
  }
  
  .kebab-btn .dot {
    width:2px;
    height:2px;
    border-radius:50%;
    background:var(--ink);
    margin:0 1px;     /* tighter spacing */
    display:block;
  }
/* Extra breathing room for logo in landscape */
@media (max-height:500px) and (orientation:landscape) {
    .head {
      padding-inline: clamp(24px, 8vw, 48px); /* more side spacing */
    }
    .logo img {
      height:34px; /* slightly smaller logo so it doesn’t crowd vertically */
    }
  }
/* Default */
.local-time {
  position:fixed;
  left:24px;
  bottom:calc(72px + 28px);
  background:var(--bg-elev);
  border:1px solid var(--line);
  border-radius:9999px;
  box-shadow:var(--shadow-sm);
  color:var(--ink);
  padding:10px 14px;
  font-size:14px;
}

/* Mobile adjustment */
@media (max-width:640px) {
  .local-time {
    bottom:16px;     /* closer to screen edge */
    left:50%;        /* center horizontally */
    transform:translateX(-50%);
    font-size:12px;
    padding:6px 10px;
  }
}

/* Landscape tight screens */
@media (max-height:500px) and (orientation:landscape) {
  .local-time {
    display:none;    /* hide if too cramped */
  }
}
/* Default */
.local-time {
  position:fixed;
  left:24px;
  bottom:calc(72px + 28px);
  background:var(--bg-elev);
  border:1px solid var(--line);
  border-radius:9999px;
  box-shadow:var(--shadow-sm);
  color:var(--ink);
  padding:10px 14px;
  font-size:14px;
}

/* Mobile adjustment */
@media (max-width:640px) {
  .local-time {
    bottom:16px;     /* closer to screen edge */
    left:50%;        /* center horizontally */
    transform:translateX(-50%);
    font-size:12px;
    padding:6px 10px;
  }
}

/* Landscape tight screens */
@media (max-height:500px) and (orientation:landscape) {
  .local-time {
    display:none;    /* hide if too cramped */
  }
}
/* Default */
.local-time {
  position:fixed;
  left:24px;
  bottom:calc(72px + 28px);
  background:var(--bg-elev);
  border:1px solid var(--line);
  border-radius:9999px;
  box-shadow:var(--shadow-sm);
  color:var(--ink);
  padding:10px 14px;
  font-size:14px;
}

/* Mobile adjustment */
@media (max-width:640px) {
  .local-time {
    bottom:16px;     /* closer to screen edge */
    left:50%;        /* center horizontally */
    transform:translateX(-50%);
    font-size:12px;
    padding:6px 10px;
  }
}

/* Landscape tight screens */
@media (max-height:500px) and (orientation:landscape) {
  .local-time {
    display:none;    /* hide if too cramped */
  }
}
/* Default */
.local-time {
    position:fixed;
    left:24px;
    bottom:calc(72px + 28px);
    background:var(--bg-elev);
    border:1px solid var(--line);
    border-radius:9999px;
    box-shadow:var(--shadow-sm);
    color:var(--ink);
    padding:10px 14px;
    font-size:14px;
  }
  
  /* Mobile adjustment */
  @media (max-width:640px) {
    .local-time {
      bottom:16px;     /* closer to screen edge */
      left:50%;        /* center horizontally */
      transform:translateX(-50%);
      font-size:12px;
      padding:6px 10px;
    }
  }
  
  /* Landscape tight screens */
  @media (max-height:500px) and (orientation:landscape) {
    .local-time {
      display:none;    /* hide if too cramped */
    }
  }
  /* --- iOS Safari: stop mid-letter breaks on hero headings --- */
.page-hero .page-title,
.hero .page-title,
h1.page-title {
  word-break: normal !important;          /* don’t break inside words */
  overflow-wrap: normal !important;        /* don’t break inside words */
  -webkit-hyphens: none !important;        /* Safari */
  hyphens: none !important;                /* others */
  text-wrap: normal !important;            /* cancel any balance/pretty */
}

/* If letters are wrapped into spans for effects, keep them inline for the hero */
.page-hero .page-title.per-letter span,
.hero .page-title.per-letter span {
  display: inline !important;
}

        
  