/* myl1nk add-on: "News page" biolink layout (views/l/partials/biolink_news.php).
   A newspaper front page on a phone: paper background, serif masthead, double rules, live tickers.
   Colours and fonts follow naspotted.pl (frontend/v2a); a client page overrides the slots in its Custom CSS as `html body.ml-news { ... }`. */

@font-face { font-family: "Bitter"; font-style: normal; font-weight: 500 900; font-display: swap; src: url("fonts/bitter-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bitter"; font-style: normal; font-weight: 500 900; font-display: swap; src: url("fonts/bitter-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bitter"; font-style: italic; font-weight: 500; font-display: swap; src: url("fonts/bitter-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bitter"; font-style: italic; font-weight: 500; font-display: swap; src: url("fonts/bitter-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/schibsted-grotesk-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/schibsted-grotesk-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

body.ml-news {
  --paper: #f4f1e8; --paper2: #eae5d6; --card: #fffdf8; --ink: #0e2347; --ink2: #1c2740; --muted: #4e5568;
  --navy: #15356e; --y: #f2b033; --ydark: #d49718; --red: #b3261e; --hair: #cfc9b8;
  --serif: "Bitter", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  margin: 0; background: var(--paper) !important; color: var(--ink);
  font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  font-variant-numeric: lining-nums;
}
.ml-news * { box-sizing: border-box; }
.ml-news a { color: inherit; }
.mln { max-width: 480px; margin: 0 auto; padding: 0 16px 48px; }
/* full-bleed bands inside the narrow column */
.mln-pilne, .mln-tick { margin-left: -16px; margin-right: -16px; box-shadow: 0 0 0 100vmax var(--band, transparent); clip-path: inset(0 -100vmax); }

/* urgent line (biolink announcement) */
.mln-pilne { --band: var(--red); display: flex; gap: 10px; align-items: baseline; background: var(--red); color: #fff; text-decoration: none; padding: 8px 16px; font-size: 13px; line-height: 1.35; }
.mln-pilne b { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; flex: none; }

/* top bar + masthead + rules */
.mln-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; border-bottom: 1px solid var(--ink); font-size: 12px; color: var(--muted); }
.mln-top-ed { font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); font-size: 10.5px; }
.mln-mast { text-align: center; padding: 18px 0 12px; }
.mln-brand { display: inline-block; font: 900 15px/1 var(--serif); letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.mln-brand span { background: var(--y); padding: 2px 3px; margin-right: 1px; }
.mln-brand-logo img { height: 28px; width: auto; display: block; margin: 0 auto; }
.mln-name { margin: 6px 0 0; font: 900 clamp(54px, 17vw, 86px)/1 var(--serif); letter-spacing: -0.045em; color: var(--ink); }
.mln-tag { margin: 8px 0 0; font: italic 500 15px/1.4 var(--serif); color: var(--muted); }
.mln-rules { border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); height: 7px; }
.mln-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 16px; padding: 8px 0; border-bottom: 1px solid var(--ink); font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.mln-nav a { text-decoration: none; color: var(--muted); padding: 2px 0; }
.mln-nav a.is-on { color: var(--ink); box-shadow: inset 0 -3px 0 var(--y); }

/* tickers: navy band under the masthead (sticky), yellow band after the article, running the other way */
.mln-tick { --band: var(--ink); display: flex; align-items: stretch; background: var(--ink); color: #fff; overflow: hidden; margin-top: 10px; }
.mln-tick:first-of-type { position: sticky; top: 0; z-index: 20; }
.mln-tick-l { flex: none; display: flex; align-items: center; gap: 7px; background: var(--y); color: var(--ink); font-weight: 800; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; padding: 0 12px; white-space: nowrap; }
.mln-tick-l i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: mln-pulse 1.2s ease-in-out infinite; }
.mln-tick-v { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
.mln-tick-t { display: flex; width: max-content; animation: mln-tk var(--dur, 40s) linear infinite; }
.mln-tick-t.is-rev { animation-direction: reverse; }
.mln-tick:hover .mln-tick-t { animation-play-state: paused; }
.mln-tick-t > * { display: inline-flex; align-items: center; gap: 8px; padding: 9px 22px 9px 0; font-size: 13px; line-height: 1.25; text-decoration: none; white-space: nowrap; }
.mln-tick-t > * b { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--y); }
.mln-tick-t > *::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--y); margin-left: 14px; opacity: 0.8; }
.mln-tick-y { --band: var(--y); background: var(--y); color: var(--ink); margin-top: 26px; }
.mln-tick-y .mln-tick-l { background: var(--ink); color: var(--y); }
.mln-tick-y .mln-tick-t > * b, .mln-tick-y .mln-tick-t > *::after { color: var(--ink); background: var(--ink); }
.mln-tick-y .mln-tick-t > * b { background: none; }
@keyframes mln-tk { to { transform: translateX(-50%); } }
@keyframes mln-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* featured article: the square */
.mln-feat { padding-top: 22px; text-align: center; }
.mln-kick { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 12px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.mln-kick::before, .mln-kick::after { content: ""; flex: 1; max-width: 48px; height: 1px; background: var(--hair); }
.mln-card { position: relative; display: block; width: min(100%, 400px); margin: 0 auto; perspective: 900px; text-decoration: none; animation: mln-press 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.15) both; }
/* article from the feed: picture 16:9 on top, headline on navy below (nothing gets cropped) */
.mln-card.is-auto .mln-card-img { height: 56.25%; }
.mln-card-cap { position: absolute; left: 0; right: 0; top: 56.25%; bottom: 0; display: flex; align-items: center; padding: 16px 18px 46px; color: #fff; font: 800 clamp(17px, 5vw, 22px)/1.2 var(--serif); letter-spacing: -0.015em; text-align: left; overflow: hidden; }
.mln-card-in { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--ink); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--y), 0 24px 40px -22px rgba(14, 35, 71, 0.6); transition: transform 0.25s ease, box-shadow 0.25s ease; transform-style: preserve-3d; }
.mln-card:active .mln-card-in { box-shadow: 4px 4px 0 var(--y), 0 10px 20px -14px rgba(14, 35, 71, 0.6); }
.mln-card-img { width: 100%; height: 100%; object-fit: cover; display: block; animation: mln-kb 16s ease-in-out infinite alternate; }
.mln-card-txt { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 22px; color: #fff; font: 800 clamp(22px, 6.5vw, 30px)/1.1 var(--serif); text-align: left; letter-spacing: -0.02em; background: linear-gradient(160deg, var(--navy), var(--ink)); }
.mln-card-in::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 253, 248, 0.32) 50%, transparent 62%); transform: translateX(-120%); animation: mln-shine 7s ease-in-out 2.2s infinite; pointer-events: none; }
.mln-stamp { position: absolute; top: -12px; left: -10px; z-index: 2; padding: 6px 9px 5px; background: var(--y); color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; box-shadow: 2px 2px 0 var(--ink); transform: rotate(-8deg); animation: mln-stamp 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) 1s both; }
.mln-card-go { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--card); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; border: 2px solid var(--ink); }
.mln-card-go i { font-style: normal; transition: transform 0.2s; }
.mln-card:hover .mln-card-go i { transform: translateX(3px); }
.mln-title { margin: 22px 0 0; font: 800 clamp(22px, 6.2vw, 27px)/1.15 var(--serif); letter-spacing: -0.02em; color: var(--ink); text-align: left; }
.mln-title a { text-decoration: none; }
.mln-hl { box-shadow: inset 0 -0.38em 0 var(--y); padding: 0 0.04em; }
.mln-lead { margin: 12px 0 0; font: 500 16px/1.5 var(--serif); color: var(--ink2); text-align: left; }
.mln-by { margin: 10px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--hair); font-size: 12.5px; color: var(--muted); text-align: left; }
@keyframes mln-press { from { opacity: 0; transform: translateY(46px) rotate(-3deg) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes mln-kb { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes mln-stamp { from { opacity: 0; transform: rotate(-8deg) scale(2.4); } to { opacity: 1; transform: rotate(-8deg) scale(1); } }
@keyframes mln-shine { 0%, 18% { transform: translateX(-120%); } 38%, 100% { transform: translateX(120%); } }

/* latest list */
.mln-brk { padding-top: 22px; }
.mln-h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.mln-h3::after { content: ""; flex: 1; height: 1px; background: var(--ink); }
.mln-brk ol { list-style: none; margin: 0; padding: 0; }
.mln-brk li { border-bottom: 1px solid var(--hair); }
.mln-brk li a { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 0; text-decoration: none; }
.mln-brk li b { font: 900 24px/1 var(--serif); color: var(--hair); letter-spacing: -0.04em; padding-top: 2px; }
.mln-brk li:first-child b { color: var(--y); }
.mln-brk li span { font: 700 15px/1.3 var(--serif); color: var(--ink); }
.mln-brk li small { display: block; font: 600 11px/1.3 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }

/* buttons */
.mln-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 16px; padding: 0 18px; background: var(--ink); color: #fff !important; text-decoration: none; font-weight: 700; font-size: 15px; border: 2px solid var(--ink); transition: background 0.15s, color 0.15s, transform 0.15s; }
.mln-btn:hover { background: var(--navy); color: var(--y) !important; }
.mln-btn:active { transform: translateY(1px); }
.mln-btn-y { background: var(--y); color: var(--ink) !important; }
.mln-btn-y:hover { background: var(--ink); color: var(--y) !important; }
.mln-btn-line { background: transparent; color: var(--ink) !important; margin-top: 10px; }
.mln-btn-line:hover { background: var(--ink); color: #fff !important; }
.mln-links { padding-top: 22px; }
.mln-links .mln-btn:first-child { margin-top: 0; }

/* footer */
.mln-foot { margin-top: 34px; padding-top: 14px; border-top: 3px double var(--ink); text-align: center; font-size: 12px; color: var(--muted); }
.mln-foot p { margin: 0 0 6px; }
.mln-foot-brand { font: 700 11px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.mln-foot a { text-decoration: none; }

.ml-news :focus-visible { outline: 3px solid var(--y); outline-offset: 2px; }
@media (min-width: 700px) { .mln-mast { padding-top: 28px; } .mln-top { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) {
  .mln-tick-t, .mln-tick-l i, .mln-card, .mln-card-img, .mln-card-in::after, .mln-stamp { animation: none !important; }
  .mln-tick-t { width: auto; flex-wrap: wrap; }
}
