/* Mobile News hero: full visual recipe from team-page.css, scoped to News. */
.news-mobile-section { display: none; }
@media (max-width: 767px) {
  body[data-page="news"] .news-desktop-content { display: none; }
  body[data-page="news"] .news-mobile-section { display: block; padding: 48px 16px; }
  .news-mobile-hero {
    isolation: isolate; position: relative; display: flex; aspect-ratio: 4 / 5;
    align-items: center; justify-content: center; width: 100%; overflow: hidden;
    background-color: #a08362; border-radius: 1.25rem;
    box-shadow: 0 .75rem 1.75rem rgb(77 53 31 / 14%), inset 0 1px 0 rgb(255 250 240 / 30%);
  }
  .news-mobile-hero__backdrop {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: url("../images/Chiefdoctor_with_child_News_Page_1200x1500.webp"), linear-gradient(90deg, #d0bfa9, #d5c2ab 8%, #d5c1ad 25%, #d3c2ad 50%, #d4c1a9 75%, #cfbca5);
    background-position: center bottom, center; background-size: 100% auto, 100% 100%;
    background-repeat: no-repeat; mix-blend-mode: soft-light;
  }
  .news-mobile-hero::before {
    content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgb(113 78 46 / 22%), rgb(86 56 32 / 33%));
  }
  .news-mobile-hero__title {
    position: absolute; inset: 0 1rem; z-index: 1; display: flex; flex-direction: column;
    justify-content: space-between; margin: 0; padding: 1.75rem 0 1.625rem;
    font-family: var(--_typography---font--heading-font); font-size: clamp(1.75rem, 8.6vw, 2.5rem);
    font-weight: 700; letter-spacing: -.01em; line-height: .98; text-align: center; text-wrap: balance;
  }
  .news-mobile-hero__title-dark { color: #3b2a21; }
  .news-mobile-hero__title-light { color: #fffaf0; }
  .news-mobile-hero::after {
    content: ""; pointer-events: none; position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 30%, #fff8e333 48%, transparent 65%);
    transform: translateX(-120%);
  }
  .news-mobile-hero.light-pass::after { animation: news-hero-light .8s ease-out forwards; }
  @keyframes news-hero-light { to { transform: translateX(120%); } }
}
@media (prefers-reduced-motion: reduce) {
  .news-mobile-hero::after { animation: none; display: none; }
}

/* Native scrolling archive, mobile only. */
.news-feed { display: none; }
@media (max-width:767px) {
  .news-feed { display:block; padding:0 16px 64px; color:#453321; --news-top:16px; }
  .news-feed__note { font-size:12px; color:#746653; margin:0 0 14px; }
  .news-months { position:sticky; top:var(--news-top); z-index:8; display:flex; align-items:center; gap:2px; padding:4px; margin-bottom:24px; border-radius:99px; background:#f8f1e6; box-shadow:0 5px 24px #65442012; }
  .news-months button { appearance:none; border:0; background:transparent; color:#594832; font:inherit; font-size:clamp(11px,3.1vw,20px); padding:12px 5px; border-radius:99px; min-height:44px; cursor:pointer; flex:1; white-space:nowrap; }
  .news-months button[aria-current] { background:linear-gradient(110deg,#ae7b2e,#bd9147); color:#fff; flex:1.65; }
  .news-months .news-months__arrow { flex:0 0 25px; font-size:30px; padding:0; color:#93641f; }
  .news-months button:disabled { opacity:.3; cursor:default; }
  .news-feed :is(button,a):focus-visible { outline:2px solid #76501d; outline-offset:3px; }
  .news-stack-layout { position:relative; padding-right:22px; }
  .news-stack { padding-top:0; padding-bottom:16px; }
  .news-story { position:sticky; top:calc(var(--news-top) + 100px); background:#fffefa; border:1px solid #e5dacb; border-radius:20px; padding:14px 14px 80px; margin:0 0 48px; box-shadow:0 10px 32px #59402414; transform-origin:center top; scroll-margin-top:calc(var(--news-top) + 104px); }
  .news-story:nth-of-type(2) { top:calc(var(--news-top) + 124px); }
  .news-story:nth-of-type(3) { top:calc(var(--news-top) + 148px); }
  .news-story__image { width:100%; height:auto; aspect-ratio:1.7; object-fit:cover; object-position:center 35%; border-radius:12px; margin-bottom:14px; }
  .news-story time,.news-dialog time { font-size:13px; color:#766958; }
  .news-story h2 { font-family:var(--_typography---font--heading-font); font-size:clamp(24px,6.4vw,38px); font-weight:500; line-height:1.08; letter-spacing:-.035em; margin:8px 0 10px; }
  .news-story p { font-size:clamp(15px,3.9vw,20px); line-height:1.4; color:#756956; margin:0 0 16px; }
  .news-progress { position:absolute; right:-6px; top:100px; bottom:32px; width:24px; pointer-events:none; }
  .news-progress__track { position:sticky; top:calc(var(--news-top) + 126px); display:flex; flex-direction:column; width:20px; padding:0 8px; margin-top:42px; pointer-events:auto; }
  .news-progress a { display:block; width:4px; height:50px; background:#e8dfd2; border-radius:9px; margin-bottom:3px; position:relative; }
  .news-progress a::before { content:""; position:absolute; inset:0 -8px; }
  .news-progress a[aria-current] { background:#ac7c32; }
  .news-dialog { width:calc(100% - 32px); max-width:540px; max-height:85dvh; border:1px solid #e5dacb; border-radius:22px; padding:26px; color:#453321; background:#fffaf2; }
  .news-dialog[open] { display:flex; flex-direction:column; height:min(85dvh, 800px); overflow:hidden; }
  .news-dialog__fixed { flex:none; padding-bottom:12px; }
  .news-dialog__text { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; }
  .news-dialog__text:focus-visible { outline:2px solid #2e6484; outline-offset:-2px; }
  .news-dialog::backdrop { background:#30241bb3; backdrop-filter:blur(5px); }
  .news-dialog__image-wrap { position:relative; margin-bottom:20px; }
  .news-dialog__image { display:block; width:100%; height:auto; max-height:25dvh; object-fit:contain; border-radius:15px; }
  .news-dialog .news-dialog__back { position:relative; z-index:1; overflow:hidden; display:flex; align-items:center; justify-content:center; box-sizing:border-box; width:48px; height:48px; margin:0; padding:0; border:1px solid currentColor; border-radius:15px; background:transparent; color:#b99561; box-shadow:none; text-decoration:none; transition:transform .2s ease,border-color .2s ease; cursor:pointer; }
  .news-dialog__back:active { transform:scale(.94); }
  .news-dialog .news-dialog__back:focus-visible { outline:3px solid #2e6484; outline-offset:3px; }
  .news-dialog__meta { display:flex; align-items:center; justify-content:space-between; gap:16px; }
  .news-dialog h2 { font-size:18.2px; font-weight:700; line-height:1.1; }
  .news-dialog p { font-size:13px; line-height:1.5; }
}
@media (max-height:700px), (prefers-reduced-motion:reduce) {
  .news-story { position:relative; top:auto!important; }
}

@media(max-width:767px) { .news-anchor { display:block; scroll-margin-top:calc(var(--news-top) + 124px); } }

/* The doctors' portrait control, applied over the news image. */
@media (max-width:767px) {
  body[data-page="news"] .news-story__read { position:absolute; z-index:3; overflow:hidden; bottom:15px; right:15px; display:flex; align-items:center; justify-content:center; gap:9px; width:48px; height:48px; padding:0; border-radius:15px; color:#b99561; background:transparent; border:1px solid currentColor; box-shadow:none; text-decoration:none; backdrop-filter:none; transition:transform .2s ease,border-color .2s ease; cursor:pointer; }
  body[data-page="news"] .news-story__read:focus-visible { outline:3px solid #2e6484; outline-offset:3px; }
  .news-story__read:active { transform:scale(.94); }
  body[data-page="news"] .news-story.is-attention .news-story__read { color:#d5b47d; }
}
@media (hover:hover) and (pointer:fine) and (max-width:767px) {
  .news-story__read:hover { transform:translateY(-3px); border-color:#fff9ec; }
}
@media (prefers-reduced-motion:reduce) {
  body[data-page="news"] .news-story__read { transition:none; }
}

@media (max-width:767px) {
  .news-story--nutrition, .news-story--vaccine, .news-story--anniversary { position:relative; top:auto!important; }
  .news-story:nth-of-type(4) { top:calc(var(--news-top) + 148px); }
}

@media (hover:hover) and (max-width:767px) { .news-dialog__back:hover { transform:translateY(-3px); } }
@media (prefers-reduced-motion:reduce) { .news-dialog .news-dialog__back { transition:none; } }
@media (max-width:767px) and (max-height:650px) {
  .news-dialog { padding:18px; }
  .news-dialog__image { max-height:18dvh; }
  .news-dialog__image-wrap { margin-bottom:10px; }
  .news-dialog__fixed { padding-bottom:4px; }
}
