/* V16.6.2: Mobile header, hero-image brand placement and editorial notice polish.
   Mobile scoped. All desktop layouts and existing URLs remain unchanged. */
@media (max-width: 760px) {
  /* The logo stays over the photo on desktop; on phones and small tablets it has
     its own centred strip BELOW the photograph so it can never cover a face. */
  body.sskn-magazine-theme .sskn-hero-logo { display: none !important; }
  body.sskn-magazine-theme .ssk167-slider-brandbar {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 78px;
    min-height: 78px;
    flex: 0 0 78px;
    border-top: 1px solid rgba(253,211,128,.48);
    border-bottom: 1px solid rgba(255,255,255,.13);
    background: linear-gradient(110deg,#0a2b5b 0%,#103f7c 52%,#0a2b5b 100%);
  }
  body.sskn-magazine-theme .ssk167-slider-brandbar img {
    display: block;
    width: 66px;
    height: 66px;
    max-width: 66px;
    max-height: 66px;
    object-fit: contain;
    background: #ffffff;
    padding: 3px;
    border: 2px solid #f5c767;
    border-radius: 50%;
    box-shadow: 0 3px 12px rgba(0,15,46,.28);
  }
  body.sskn-magazine-theme .sskn-hero-photowrap { isolation: isolate; }
  body.sskn-magazine-theme .sskn-hero-photo { object-position: center 38%; }
  /* Notice board becomes a compact editorial callout, not a cramped two-column strip. */
  body.sskn-magazine-theme .sskn-news-strip {
    padding: 9px 0 5px;
    background: #ffffff;
    border-bottom: 0;
  }
  body.sskn-magazine-theme .sskn-news-inner {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    width: calc(100% - 30px);
    max-width: 720px;
    box-sizing: border-box;
    min-height: 0;
    margin: 0 auto;
    padding: 13px 15px 14px !important;
    overflow: visible;
    border: 1px solid #d6e3f3;
    border-left: 4px solid #f2b740;
    border-radius: 13px;
    background: linear-gradient(125deg,#fffdf5 0%,#f3f7ff 100%);
    box-shadow: 0 5px 15px rgba(11,43,93,.06);
  }
  body.sskn-magazine-theme .sskn-news-tag {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 5px 10px !important;
    border: 1px solid #f2d28d;
    border-radius: 40px;
    background: #fff1cc;
    color: #804700 !important;
    font-size: 10px !important;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: .09em;
  }
  body.sskn-magazine-theme .sskn-news-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: #e09a14;
  }
  body.sskn-magazine-theme .sskn-news-inner > div {
    flex: 1 1 100%;
    min-width: 0;
    color: #304b70 !important;
    font-size: 12.5px !important;
    font-weight: 650;
    line-height: 1.6;
  }
  body.sskn-magazine-theme .sskn-news-inner > a { display: none; }
  /* Improve faint contact-strip text without changing desktop header. */
  body.sskn-magazine-theme .sskn-topline { color: #f1f6ff !important; }
  body.sskn-magazine-theme .sskn-topline a { color: #f1f6ff !important; opacity: 1 !important; }
}
@media (max-width: 520px) {
  body.sskn-magazine-theme .sskn-brand-copy {
    min-width: 0 !important;
    flex: 1 1 auto;
  }
  body.sskn-magazine-theme .sskn-brand-kannada {
    font-family: 'Noto Sans Kannada',sans-serif !important;
    font-size: clamp(17px,4.8vw,21px) !important;
    line-height: 1.22 !important;
    letter-spacing: -.015em;
    font-weight: 900 !important;
    color: #072b61 !important;
    white-space: normal !important;
    overflow-wrap: break-word;
    text-wrap: pretty;
  }
  body.sskn-magazine-theme .sskn-brand-copy strong {
    font-size: clamp(10px,2.8vw,13px) !important;
    line-height: 1.28 !important;
    overflow-wrap: anywhere;
  }
  body.sskn-magazine-theme .sskn-brand-copy small { line-height: 1.2; }
  /* Slightly taller photograph; faces are unobstructed, with logo beneath. */
  body.sskn-magazine-theme .sskn-hero-photowrap {
    height: 185px !important;
    min-height: 185px !important;
    max-height: 185px !important;
    flex-basis: 185px !important;
  }
  body.sskn-magazine-theme .ssk167-slider-brandbar {
    height: 72px;
    min-height: 72px;
    flex-basis: 72px;
  }
  body.sskn-magazine-theme .ssk167-slider-brandbar img {
    width: 61px;
    height: 61px;
  }
}
@media (max-width: 350px) {
  body.sskn-magazine-theme .sskn-brand-kannada { font-size: 17px !important; line-height: 1.2 !important; }
  body.sskn-magazine-theme .sskn-brand-copy strong { font-size: 10px !important; }
  body.sskn-magazine-theme .sskn-news-inner { width: calc(100% - 22px); padding: 11px 12px 12px !important; }
  body.sskn-magazine-theme .sskn-news-inner > div { font-size: 12px !important; }
}
/* This element has no layout effect on desktop, where the original badge remains. */
@media (min-width: 761px) {
  body.sskn-magazine-theme .ssk167-slider-brandbar { display: none !important; }
}
