/* Figma rounds line-heights to whole px for layout (34.8→35 etc.) — values below follow that.
   Article page body (Figma FINAL: desktop 159:3976, mobile 159:5096) */
.article{padding:56px 0 200px}
.article__inner{max-width:1428px}
.article__m{display:none}

/* hero */
.article__hero{display:flex;flex-direction:column;gap:24px}
.article__cover{width:100%;height:auto;aspect-ratio:1428/800;object-fit:cover;border-radius:48px}
.article__heading{display:flex;flex-direction:column;gap:12px}
.article__title{font-weight:600;font-size:32px;line-height:39px;letter-spacing:-.64px;color:#101828}
.article__date{display:flex;align-items:center;gap:8px;font-weight:500;font-size:16px;line-height:22px;letter-spacing:.16px;color:#222}
.article__author{display:flex;align-items:center;gap:8px;margin-top:8px}
.article__avatar{width:72px;height:72px;border-radius:50%;object-fit:cover;flex:none}
.article__author-info{display:flex;flex-direction:column;gap:2px;min-width:0}
.article__author-label{display:flex;align-items:center;gap:2px;font-size:16px;line-height:20px;color:#9AA4B2}
.article__author-name{font-weight:600;font-size:18px;line-height:20px;color:#0E141E}
.article__author-job{font-size:16px;line-height:19px;color:#697586}

/* body + sidebar */
.article__layout{display:flex;align-items:flex-start;gap:48px;margin-top:49px}
.article__main{flex:1;min-width:0;display:flex;flex-direction:column;gap:40px}
.article__content{display:flex;flex-direction:column;gap:24px;color:#0E141E}
.article__content p{font-weight:500;font-size:24px;line-height:35px}
.article__content h2{font-weight:700;font-size:24px;line-height:29px}
.article__group{display:flex;flex-direction:column;gap:12px}
.article__list{margin-top:-12px;list-style:none} /* was one <p> with <br>s — same look on desktop */
.article__list li{font-weight:500;font-size:24px;line-height:35px}
.article__quote{display:flex;gap:12px;padding:24px 0;border-radius:16px;background:#FFF1F3;font-size:24px;line-height:35px}
.article__quote::before{content:"";flex:none;width:4px;background:#FF8197}

.article__notes{display:flex;flex-direction:column;gap:24px}
.article__note,.article__sources summary{display:flex;align-items:flex-start;gap:21px}
.article__note,.article__sources{padding:32px;border-radius:24px}
.article__note--warn{background:#FFF9EF}
.article__note--ok{background:rgba(52,199,89,.1)}
.article__note-icon{width:40px;height:40px;flex:none}
.article__note-body{flex:1;display:flex;flex-direction:column;gap:24px}
.article__note-text{flex:1;display:flex;flex-direction:column;gap:8px}
.article__note h3{font-weight:600;font-size:24px;line-height:29px}
.article__note p{font-weight:500;font-size:20px;line-height:31px}
.article__note--warn h3,.article__note-link{color:#AC7F5E}
.article__note--warn p{color:#727272}
.article__note--ok h3{color:#17764D}
.article__note--ok p{color:#34C759}
.article__note-link{display:flex;align-items:flex-start;gap:16px;font-weight:600;font-size:18px;line-height:22px}

.article__sources{background:#F2F2F7;border:1px solid #DFDFDF}
.article__sources summary{align-items:center;list-style:none;cursor:pointer}
.article__sources summary::-webkit-details-marker{display:none}
.article__sources-title{display:flex;align-items:center;gap:8px;font-weight:600;font-size:24px;line-height:29px;color:#727272}
.article__badge{display:grid;place-items:center;width:35px;height:35px;border-radius:19px;background:#FF738B;font-weight:700;font-size:16px;line-height:19px;color:#fff}
/* Alt Arrow Down: 16×8 stroke chevron in a 24px box */
.article__chevron{position:relative;flex:none;width:24px;height:24px;margin-left:auto}
.article__chevron::before{content:"";position:absolute;left:7px;top:5px;width:10px;height:10px;border:solid #727272;border-width:0 1.5px 1.5px 0;border-radius:0 0 1px 0;transform:rotate(45deg)}
.article__sources[open] .article__chevron{transform:rotate(180deg)}
.article__sources-list{margin-top:16px;padding-left:61px;color:#727272}
.article__sources-list:empty{display:none}

.article__app{flex:none;width:352px;display:flex;flex-direction:column;align-items:center;gap:20px;padding:24px;border-radius:24px;background:#F2F2F7}
.article__app-head{width:100%;display:flex;flex-direction:column;align-items:center;gap:12px}
.article__app-logo{width:52px;height:52px}
.article__app-text{width:100%;display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center}
.article__app-title{font-weight:600;font-size:20px;line-height:22px;color:#222}
.article__app-title span{line-height:0;font-family:'Playpen Sans',cursive;color:#FF738B}
.article__app-sub{font-weight:500;font-size:16px;line-height:22px;color:#7D7D7D}
.article__app-btn{width:100%;height:46px;display:flex;align-items:center;justify-content:center;padding:12px 12px 12px 16px;border:1px solid #FECDD3;border-radius:32px;background:#FF738B;font-weight:600;font-size:16px;line-height:22px;color:#fff}
.article__app-rating{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:12px;line-height:16px;letter-spacing:-.15px}
.article__app-rating img{width:106px;height:17px}
.article__app-score{font-weight:600;color:#FF738B}
.article__app-users{font-weight:500;color:#8E8E93}

/* related */
.article__related{margin-top:180px}
.article__related-title{font-weight:600;font-size:56px;line-height:64px;letter-spacing:-1.12px;color:#0E0F10}
.article__cards{display:grid;grid-template-columns:repeat(4,1fr);gap:24px 16px;margin-top:32px}
.article__card{display:flex;flex-direction:column;gap:16px}
.article__card img{width:100%;height:auto;aspect-ratio:348/195;object-fit:cover;border-radius:12px}
.article__card h3{font-weight:600;font-size:24px;line-height:30px;color:#0E0F10}
.article__card p{margin-top:-8px;font-size:16px;line-height:22px;color:#48494D}

@media (max-width:1024px){
    /* fixed app bar (159:5389) must not cover the page end */
    .article{padding:32px 0 57px}
    .article__d{display:none}
    .article__m{display:inline}

    .article__hero{gap:16px}
    .article__cover{border-radius:24px}
    .article__title{font-size:24px;line-height:29px;letter-spacing:-.48px}
    .article__author{margin-top:7px}
    .article__avatar{width:62px;height:62px}
    .article__author-info{gap:0}
    .article__author-label{font-size:14px}
    .article__author-name{font-size:16px;line-height:24px}
    .article__author-job{font-size:12px;line-height:18px}

    .article__layout{display:block;margin-top:41px}
    .article__content p,.article__quote{font-weight:500;font-size:20px;line-height:29px}

    .article__notes{gap:8px}
    .article__note,.article__sources summary{gap:8px}
    .article__note,.article__sources{padding:16px;border-radius:16px}
    .article__note-icon{width:24px;height:24px}
    .article__note-body{gap:16px}
    .article__note h3,.article__sources-title{font-size:16px;line-height:19px}
    .article__note p{font-size:14px;line-height:18px}
    .article__note--ok p{line-height:22px}
    .article__note-link{align-items:center;font-size:14px;line-height:17px}
    .article__badge{width:27px;height:24px;font-size:12px;line-height:15px}
    .article__sources-list{padding-left:32px}

    .article__app{position:fixed;z-index:50;left:0;right:0;bottom:0;width:auto;align-items:stretch;gap:12px;padding:16px;border-radius:0;background:#fff;box-shadow:0 -1px 39px rgba(0,0,0,.1)}
    .article__app-head{flex-direction:row;gap:12px}
    .article__app-logo{width:40px;height:40px;flex:none}
    .article__app-text{flex:1;align-items:flex-start;text-align:left}
    .article__app-title{font-size:16px}
    .article__app-sub{font-size:12px;line-height:15px;white-space:nowrap} /* Figma lets it overflow its 306px box */
    .article__app-btn{border:0;font-size:14px}
    .article__app-rating{display:none}

    .article__related{display:none}
}

/* gap promo → CTA (Figma: 4285→4549 desktop, 3327→3415 mobile) */
.cta{margin-top:264px}
@media (max-width:1024px){.cta{margin-top:88px}}

/* ===== Motion ===== */
.article__card{transition:translate .25s ease}
.article__card:hover{translate:0 -4px}

/* ===== Mobile reading pass (client-approved deviation from the 390 frame):
   clear heading hierarchy, 17/27 body copy, real bullet list, quieter meta, smart bottom app bar ===== */
@media (max-width:1024px){
  .article__heading{gap:10px}
  .article__title{font-weight:700;font-size:30px;line-height:36px;letter-spacing:-.75px;text-wrap:balance}
  .article__date{gap:6px;font-size:14px;line-height:20px;letter-spacing:0;color:#626367}
  .article__date img{width:18px;height:18px}
  .article__author{margin-top:10px;padding:12px;gap:12px;border-radius:16px;background:#F5F5F7}
  .article__avatar{width:44px;height:44px}
  .article__author-label{font-size:12px;line-height:16px}
  .article__author-name{font-size:15px;line-height:20px}
  .article__author-job{font-size:12px;line-height:16px}

  .article__content{gap:16px}
  .article__content p,.article__list li{font-weight:400;font-size:17px;line-height:27px;color:#1E1F23}
  .article__content h2{margin-top:16px;font-size:22px;line-height:28px;letter-spacing:-.3px}
  .article__group h2:first-child{margin-top:16px}
  .article__list{display:flex;flex-direction:column;gap:10px;margin-top:0}
  .article__list li{position:relative;padding-left:22px}
  .article__list li::before{content:"";position:absolute;left:4px;top:10px;width:7px;height:7px;border-radius:50%;background:#FF738B}
  .article__quote{padding:18px 16px 18px 0;font-weight:500;font-size:18px;line-height:27px}

  /* info cards (disclaimer / reviewed / sources): one card language — icon in a white tile like "Nega aynan",
     readable green, the experts link as a pill, sources without the odd border */
  .article__notes{gap:10px}
  .article__note,.article__sources{padding:16px;border-radius:20px}
  .article__note,.article__sources summary{gap:12px}
  .article__note-icon{width:36px;height:36px;padding:7px;border-radius:12px;background:#fff;box-shadow:0 4px 12px rgba(14,15,16,.06)}
  .article__note-body{gap:12px}
  .article__note-text{gap:4px;padding-top:7px}
  .article__note h3,.article__sources-title{font-size:15px;line-height:22px}
  .article__note p,.article__note--ok p{font-size:14px;line-height:20px}
  .article__note--warn p{color:#7A6E64}
  .article__note--ok{background:#EAF7EE}
  .article__note--ok p{color:#2E7D4F}                        /* was #34C759 on light green: too faint */
  .article__note-link{align-self:flex-start;gap:6px;padding:8px 14px 8px 10px;border-radius:999px;background:rgba(172,127,94,.12);
    font-size:14px;line-height:20px;color:#8A5F3F}
  .article__note-link img{width:20px;height:20px}
  .article__sources{border:0;background:#F5F5F7}
  .article__sources summary{align-items:center}
  .article__sources-title{gap:8px;color:#3A3B40}
  .article__badge{width:22px;height:22px;border-radius:50%;font-size:12px;line-height:16px}

  /* bottom app bar: compact, slides in after the first screen, hides while the footer (with its store buttons) is visible */
  .article__app{gap:10px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));translate:0 110%;transition:translate .35s ease}
  .article__app.is-shown{translate:none}
  .article__app-btn{height:44px}
}
