/*
Theme Name: Med Newsroom Child
Theme URI: https://mednewsroom.in/
Description: A clean, fast editorial child theme for Med Newsroom. Requires the Blocksy parent theme.
Author: Med Newsroom
Version: 1.0.2
Template: blocksy
Text Domain: mednewsroom-child
*/

:root {
  --mnr-navy: #10243e;
  --mnr-blue: #176b87;
  --mnr-teal: #21a5a0;
  --mnr-ink: #172033;
  --mnr-muted: #667085;
  --mnr-line: #e5eaf0;
  --mnr-soft: #f5f8fa;
  --mnr-white: #fff;
  --mnr-radius: 16px;
  --mnr-shadow: 0 12px 35px rgba(16, 36, 62, .09);
}

body {
  color: var(--mnr-ink);
  background: var(--mnr-soft);
  -webkit-font-smoothing: antialiased;
}

a { text-underline-offset: .16em; }

#header [data-row="middle"] {
  box-shadow: 0 1px 0 rgba(16, 36, 62, .08);
}

/* Keep navigation available while reading on desktop and mobile. */
#header {
  position: sticky;
  top: 0;
  z-index: 9999;
}

.admin-bar #header { top: 32px; }

[data-header*="type-1"] .ct-header [data-id="logo"] img {
  max-height: 54px;
}

.menu > li > a {
  font-weight: 650;
  letter-spacing: .01em;
}

.ct-container-full,
.site-main { overflow: clip; }

.hero-section,
.page-title {
  background: linear-gradient(135deg, var(--mnr-navy), #173e61 64%, var(--mnr-blue));
  color: var(--mnr-white);
}

.hero-section h1,
.page-title h1 { color: inherit; }

[data-prefix="blog"] .entries,
[data-prefix="archive"] .entries,
[data-prefix="search"] .entries {
  gap: clamp(22px, 3vw, 34px);
}

.entries article {
  overflow: hidden;
  border: 1px solid var(--mnr-line);
  border-radius: var(--mnr-radius);
  background: var(--mnr-white);
  box-shadow: 0 5px 20px rgba(16, 36, 62, .055);
  transition: transform .22s ease, box-shadow .22s ease;
}

.entries article:hover {
  transform: translateY(-4px);
  box-shadow: var(--mnr-shadow);
}

.entries .ct-image-container img {
  transition: transform .45s ease;
}

.entries article:hover .ct-image-container img { transform: scale(1.035); }

.entry-title { line-height: 1.22; text-wrap: balance; }

.entry-meta {
  color: var(--mnr-muted);
  font-size: .84rem;
  letter-spacing: .02em;
}

.entry-card .entry-button,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
  border-radius: 999px;
  font-weight: 700;
}

.mnr-reading-time {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--mnr-muted);
  font-size: .86rem;
}

.mnr-reading-time::before { content: "◷"; color: var(--mnr-teal); }

.single-post article,
.page article {
  --theme-block-width: 760px;
}

.entry-content {
  font-size: clamp(1rem, .96rem + .18vw, 1.12rem);
  line-height: 1.78;
}

.entry-content > p:first-of-type { font-size: 1.08em; }

.entry-content h2,
.entry-content h3 {
  margin-top: 1.7em;
  color: var(--mnr-navy);
  line-height: 1.25;
}

.entry-content blockquote {
  border-inline-start: 4px solid var(--mnr-teal);
  border-radius: 0 12px 12px 0;
  background: #edf8f7;
  color: var(--mnr-navy);
}

.entry-content img { border-radius: 12px; }

.ct-sidebar .ct-widget,
.ct-related-posts-container,
.ct-comments-container {
  border: 1px solid var(--mnr-line);
  border-radius: var(--mnr-radius);
  background: var(--mnr-white);
  box-shadow: 0 5px 20px rgba(16, 36, 62, .05);
}

.ct-sidebar .widget-title {
  padding-bottom: .65rem;
  border-bottom: 3px solid var(--mnr-teal);
  color: var(--mnr-navy);
}

.ct-footer { border-top: 4px solid var(--mnr-teal); }

:focus-visible {
  outline: 3px solid rgba(33, 165, 160, .65);
  outline-offset: 3px;
}

@media (max-width: 689px) {
  :root { --mnr-radius: 12px; }
  .single-post article,
  .page article {
    --theme-block-width: 100%;
    --theme-block-wide-max-width: 100%;
  }

  .single-post .entry-content,
  .page .entry-content {
    box-sizing: border-box;
    width: 100%;
    padding-inline: 16px;
    overflow-wrap: anywhere;
    line-height: 1.7;
  }

  .entry-content > *,
  .entry-content figure,
  .entry-content img {
    box-sizing: border-box;
    max-width: 100% !important;
  }

  .entry-content img {
    display: block;
    width: auto;
    height: auto;
  }

  .entry-content h2,
  .entry-content h3 {
    overflow-wrap: anywhere;
  }

  .hero-section { padding-block: 38px; }
}

@media (max-width: 782px) {
  .admin-bar #header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
