/* =========================================================
   News & Article pages (Newsroom, article, PPL Pedia)
   Builds on styles.css + pages.css
   ========================================================= */

/* ---------- newsroom masthead ---------- */
.mast { padding: 28px 0 0; }
.mast__card { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--white); border: 1px solid var(--line); }
.mast__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 28px; border-bottom: 2px solid var(--blue-900); font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.mast__top .live { color: var(--red); }
.mast__top .live::before { background: var(--red); }
.mast__title { padding: clamp(18px, 3vw, 30px) 28px 8px; font-family: var(--font-display); font-weight: 800; letter-spacing: -.06em; line-height: .82; font-size: clamp(36px, 11vw, 180px); color: var(--blue-900); overflow-wrap: anywhere; }
.mast__title span { color: var(--blue-500); }
.mast__title i { font-style: normal; -webkit-text-stroke: 2px var(--blue-900); color: transparent; }
.mast__sub { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: end; padding: 0 28px 24px; }
.mast__sub p { max-width: 560px; color: var(--ink-soft); font-size: clamp(15px, 1.3vw, 18px); }
.ticker { display: flex; align-items: stretch; background: var(--blue-900); color: var(--white); overflow: hidden; }
.ticker__label { flex: none; display: grid; place-items: center; padding: 0 18px; background: var(--cyan); color: var(--blue-900); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.ticker__track { display: flex; gap: 48px; padding: 14px 0; white-space: nowrap; animation: marquee 40s linear infinite; width: max-content; }
.ticker__track a { font-weight: 700; font-size: 14px; display: inline-flex; gap: 48px; }
.ticker__track a::after { content: "●"; color: var(--cyan); font-size: 8px; align-self: center; }
.ticker__track a:hover { color: var(--cyan); }

/* ---------- featured ---------- */
.feat { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; }
.feat__side { display: grid; gap: 18px; }
.ncard-big { position: relative; overflow: hidden; border-radius: var(--radius-xl); min-height: 520px; color: var(--white); display: flex; align-items: end; isolation: isolate; }
.ncard-big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s ease; }
.ncard-big:hover img { transform: scale(1.05); }
.ncard-big::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,20,58,0) 25%, rgba(4,20,58,.95)); }
.ncard-big__body { padding: clamp(24px, 3vw, 36px); display: grid; gap: 12px; }
.ncard-big h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.ncard-big p { color: rgba(255,255,255,.82); max-width: 640px; }
.ncard-big--sm { min-height: 251px; }
.ncard-big--sm h2 { font-size: clamp(18px, 1.8vw, 22px); }

.kicker { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12.5px; font-weight: 800; }
.kicker time { opacity: .8; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tag--press { background: var(--cyan); color: var(--blue-900); }
.tag--event { background: #ffd34d; color: #3d2c00; }
.tag--award { background: #e9dcff; color: #4b1fa0; }
.tag--csr { background: #d6f5e3; color: #0f6b3a; }
.tag--video { background: var(--red); color: var(--white); }

/* ---------- news toolbar & grid ---------- */
.ntools { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.ntools .search { background: var(--blue-50); border: 1px solid var(--line); min-width: min(320px, 100%); }
.ngrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ncard { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease; }
.ncard:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow); }
.ncard__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ncard:hover .ncard__img img { transform: scale(1.06); }
.ncard__img .tag { position: absolute; left: 14px; top: 14px; }
.daybadge { position: absolute; right: 14px; bottom: -22px; width: 62px; height: 62px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow-sm); display: grid; place-items: center; text-align: center; line-height: 1; z-index: 1; }
.daybadge b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--blue-600); }
.daybadge small { font-size: 10.5px; font-weight: 800; text-transform: uppercase; color: var(--ink-soft); }
.ncard__body { padding: 24px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ncard__body h3 { font-size: 18px; font-weight: 800; line-height: 1.35; letter-spacing: -.01em; }
.ncard__body p { color: var(--ink-soft); font-size: 14.5px; }
.ncard__more { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: var(--blue-600); }
.ncard:hover .ncard__more .arrow { transform: translateX(4px); }
.ncard__more .arrow { transition: transform .2s ease; }
.ncard--wide { grid-column: span 2; flex-direction: row; }
.ncard--wide .ncard__img { aspect-ratio: auto; flex: 1.1; min-height: 300px; }
.ncard--wide .ncard__body { flex: 1; justify-content: center; }
.ncard--wide h3 { font-family: var(--font-display); font-size: 24px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.load-more { display: flex; justify-content: center; margin-top: 30px; }

/* ---------- video strip ---------- */
.vids { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.vid { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 9 / 12; color: var(--white); display: flex; align-items: end; isolation: isolate; border: 0; padding: 0; text-align: left; font: inherit; cursor: pointer; background: var(--blue-800); }
.vid:first-child { aspect-ratio: auto; }
.vid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.vid:hover img { transform: scale(1.06); }
.vid::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,20,58,.1), rgba(4,20,58,.9)); }
.vid__play { position: absolute; top: 18px; right: 18px; width: 54px; height: 54px; border-radius: 50%; background: var(--white); color: var(--red); display: grid; place-items: center; transition: transform .2s ease; }
.vid:hover .vid__play { transform: scale(1.12); }
.vid__body { padding: 22px; display: grid; gap: 8px; }
.vid__body h4 { font-family: var(--font-display); font-size: clamp(17px, 1.6vw, 22px); font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.vid__body small { font-weight: 700; opacity: .8; }
.vid .tag { justify-self: start; }

/* ---------- media contact ---------- */
.press-kit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pk { border-radius: var(--radius-lg); padding: 24px; background: var(--white); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.pk b { font-family: var(--font-display); font-size: 18px; letter-spacing: -.01em; }
.pk p { color: var(--ink-soft); font-size: 14px; }
.pk a { font-weight: 800; color: var(--blue-600); font-size: 14px; }

/* ---------- article ---------- */
.art-hero { padding: 28px 0 0; }
.art-hero__img { position: relative; border-radius: var(--radius-xl); overflow: hidden; height: clamp(260px, 38vw, 520px); }
.art-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.art-head { max-width: 860px; margin: -110px auto 0; position: relative; z-index: 2; background: var(--white); border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.art-head h1 { font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 46px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-top: 16px; }
.art-head .crumbs { color: var(--ink-soft); margin-bottom: 14px; }
.art-head .crumbs a:hover { color: var(--blue-600); }
.art-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.art-meta span { display: inline-flex; align-items: center; gap: 6px; }
.art { display: grid; grid-template-columns: 70px minmax(0, 760px) 1fr; gap: 40px; max-width: 1100px; margin: 0 auto; }
.share { position: sticky; top: 110px; align-self: start; display: grid; gap: 10px; }
.share small { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); text-align: center; }
.share a, .share button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--blue-600); display: grid; place-items: center; font-weight: 800; font-size: 13px; transition: background .2s ease, color .2s ease; }
.share a:hover, .share button:hover { background: var(--blue-500); color: var(--white); }
.share button.is-copied { background: #18b45b; color: var(--white); border-color: #18b45b; }
.art__body { font-size: 18px; line-height: 1.8; color: #263452; }
.art__body p + p { margin-top: 20px; }
.art__body .lead-p::first-letter { float: left; font-family: var(--font-display); font-weight: 800; font-size: 74px; line-height: .8; padding: 8px 12px 0 0; color: var(--blue-500); }
.art__body .lead-p { font-size: 20px; color: var(--ink); font-weight: 600; }
.art__body blockquote { margin: 32px 0; padding: 26px 28px; border-radius: var(--radius-lg); background: var(--blue-900); color: var(--white); font-family: var(--font-display); font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -.01em; line-height: 1.35; position: relative; }
.art__body blockquote::before { content: "\201C"; position: absolute; right: 20px; top: -20px; font-size: 120px; color: var(--cyan); line-height: 1; }
.facts { margin: 30px 0; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--blue-50); padding: 22px 24px; }
.facts h5 { margin: 0 0 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-500); }
.facts ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 16px; }
.art__src { margin-top: 30px; font-size: 13.5px; color: var(--ink-soft); padding-top: 18px; border-top: 1px dashed var(--line); }
.art__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.art__tags span { padding: 7px 14px; border-radius: var(--radius-pill); background: var(--blue-50); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.art-side { align-self: start; position: sticky; top: 110px; display: grid; gap: 14px; }
.art-side .pk { padding: 20px; }

/* ---------- PPL Pedia ---------- */
.pedia-hero { padding: 28px 0 0; }
.pedia-hero__card {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-xl);
  background: var(--cyan); color: var(--blue-900); padding: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; min-height: 440px;
}
.pedia-hero__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(4,20,58,.14) 1.4px, transparent 1.4px); background-size: 18px 18px; }
.pedia-hero h1 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.05em; line-height: .9; font-size: clamp(48px, 8vw, 112px); }
.pedia-hero h1 span { display: inline-block; background: var(--blue-900); color: var(--cyan); padding: 0 .12em; border-radius: 14px; transform: rotate(-2deg); }
.pedia-hero p { margin-top: 18px; max-width: 520px; font-size: clamp(15px, 1.3vw, 18px); font-weight: 600; }
.pedia-hero .crumbs { color: rgba(4,20,58,.7); }
.cards-fan { position: relative; height: 300px; }
.cards-fan div { position: absolute; left: 50%; top: 50%; width: 190px; height: 250px; border-radius: 22px; background: var(--white); border: 3px solid var(--blue-900); box-shadow: 8px 8px 0 var(--blue-900); display: grid; place-items: center; text-align: center; padding: 18px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; transform-origin: 50% 120%; }
.cards-fan div:nth-child(1) { transform: translate(-50%, -50%) rotate(-14deg); background: var(--blue-500); color: var(--white); }
.cards-fan div:nth-child(2) { transform: translate(-50%, -50%) rotate(0deg); }
.cards-fan div:nth-child(3) { transform: translate(-50%, -50%) rotate(14deg); background: #ffd34d; }
.cards-fan em { display: block; font-style: normal; font-size: 46px; margin-bottom: 8px; }

.flip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.flip { perspective: 1200px; height: 280px; cursor: pointer; border: 0; background: none; padding: 0; font: inherit; text-align: left; }
.flip__inner { position: relative; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.3,.7,.3,1); transform-style: preserve-3d; }
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face { position: absolute; inset: 0; border-radius: var(--radius-lg); backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; }
.flip__front { background: var(--white); border: 1px solid var(--line); }
.flip:hover .flip__front { border-color: var(--blue-400); box-shadow: var(--shadow-sm); }
.flip__front .emoji { font-size: 44px; line-height: 1; }
.flip__front h4 { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.flip__front small { font-size: 12px; font-weight: 800; color: var(--blue-500); display: flex; justify-content: space-between; }
.flip__back { background: var(--blue-900); color: var(--white); transform: rotateY(180deg); gap: 10px; }
.flip__back p { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.88); }
.flip__back .eg { font-size: 12.5px; padding: 10px 12px; border-radius: 12px; background: rgba(56,225,255,.14); color: var(--cyan); font-weight: 700; }
.flip__back h4 { font-family: var(--font-display); font-size: 16px; color: var(--cyan); }

/* quiz */
.quiz { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: stretch; }
.quiz__intro { border-radius: var(--radius-xl); background: #ffd34d; color: var(--blue-900); padding: clamp(26px, 4vw, 40px); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; border: 3px solid var(--blue-900); box-shadow: 8px 8px 0 var(--blue-900); }
.quiz__intro h3 { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 46px); font-weight: 800; letter-spacing: -.04em; line-height: .95; }
.quiz__intro p { font-weight: 600; }
.quiz__prog { display: flex; gap: 6px; }
.quiz__prog i { flex: 1; height: 8px; border-radius: 8px; background: rgba(4,20,58,.15); }
.quiz__prog i.on { background: var(--blue-900); }
.quiz__box { border-radius: var(--radius-xl); background: var(--white); border: 1px solid var(--line); padding: clamp(24px, 4vw, 36px); display: grid; gap: 16px; align-content: start; min-height: 380px; }
.quiz__box h4 { font-family: var(--font-display); font-size: clamp(19px, 2vw, 24px); font-weight: 650; letter-spacing: -.02em; line-height: 1.25; }
.quiz__box .qn { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-500); }
.opts { display: grid; gap: 10px; }
.opt { display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px 16px; border-radius: var(--radius-md); border: 2px solid var(--line); background: var(--white); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.opt:hover:not(:disabled) { border-color: var(--blue-400); transform: translateX(4px); }
.opt b { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-700); font-family: var(--font-display); font-size: 13px; }
.opt.is-right { border-color: #18b45b; background: #e8f9ef; }
.opt.is-right b { background: #18b45b; color: var(--white); }
.opt.is-wrong { border-color: var(--red); background: #ffecec; animation: shake .4s ease; }
.opt.is-wrong b { background: var(--red); color: var(--white); }
.opt:disabled { cursor: default; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.qfb { padding: 14px 16px; border-radius: var(--radius-md); background: var(--blue-50); font-size: 14.5px; font-weight: 600; color: var(--ink); }
.qnext { justify-self: end; }
.qresult { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 20px 0; }
.qresult .big { font-family: var(--font-display); font-size: 72px; font-weight: 800; letter-spacing: -.05em; color: var(--blue-500); line-height: 1; }
.qresult .emo { font-size: 56px; }

/* responsive */
@media (max-width: 1100px) {
  .flip-grid { grid-template-columns: repeat(3, 1fr); }
  .art { grid-template-columns: 60px minmax(0, 1fr); }
  .art-side { display: none; }
}
@media (max-width: 900px) {
  .feat { grid-template-columns: 1fr; }
  .ncard-big { min-height: 400px; }
  .ngrid { grid-template-columns: 1fr 1fr; }
  .ncard--wide { grid-column: span 2; }
  .vids { grid-template-columns: 1fr 1fr; }
  .vid:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
  .press-kit { grid-template-columns: 1fr; }
  .pedia-hero__card { grid-template-columns: 1fr; }
  .cards-fan { height: 260px; }
  .flip-grid { grid-template-columns: 1fr 1fr; }
  .quiz { grid-template-columns: 1fr; }
  .art { grid-template-columns: 1fr; }
  .share { position: static; display: flex; flex-wrap: wrap; align-items: center; order: 2; }
  .art-head { margin-top: -60px; }
}
@media (max-width: 640px) {
  .ngrid { grid-template-columns: 1fr; }
  .ncard--wide { grid-column: auto; flex-direction: column; }
  .ncard--wide .ncard__img { min-height: 220px; }
  .vids { grid-template-columns: 1fr; }
  .vid:first-child { grid-column: auto; }
  .vid { aspect-ratio: 16 / 11; }
  .flip-grid { grid-template-columns: 1fr; }
  .flip { height: 240px; }
  .art__body { font-size: 16.5px; }
  .art-head { margin: -40px 0 0; }
  .mast__top, .mast__title, .mast__sub { padding-left: 18px; padding-right: 18px; }
}
.art__body blockquote { padding-right: 84px; }
.flip { display: block; width: 100%; }
.flip__inner { display: block; }
.flip__face > span, .flip__front small { display: block; }
.flip__front small { display: flex; }
.daybadge small { display: block; margin-top: 2px; }
.opt:disabled { color: var(--ink); }
.quiz__box h4 { margin-top: -6px; }
