/* 6.0 News + 6.1 News details */

.nw-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: var(--t-0); color: var(--ink-2); }
.nw-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
@keyframes pj-in { from { opacity: 0; transform: translateY(14px); } }

/* details */
.nd-progress { position: fixed; z-index: 60; left: 0; right: 0; top: 0; height: 3px; pointer-events: none; }
.nd-progress span { display: block; height: 100%; background: var(--sun); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.nd-head { padding-top: var(--hero-top); padding-bottom: clamp(32px, 5vh, 56px) !important; display: grid; gap: var(--crumb-gap); justify-items: start; max-width: calc(980px + 2 * var(--edge)); }
.nd-meta { margin-top: 10px; }
.nd-title { max-width: 20ch; }
.nd-dek { max-width: 46ch; }
.nd-share { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-size: var(--t-1); transition: box-shadow 0.3s; }
.nd-share:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.nd-hero { padding-top: 0 !important; }
@media (max-width: 700px) { .nd-hero .rv { aspect-ratio: 4 / 3 !important; } }

.nd-body { display: grid; grid-template-columns: minmax(0, 68ch) minmax(0, 300px); justify-content: space-between; gap: 48px; }
.nd-col { display: grid; gap: 22px; font-size: var(--t-2); line-height: 1.65; align-content: start; }
.nd-ph { color: rgba(19, 32, 45, 0.5); padding-left: 16px; box-shadow: inset 2px 0 0 rgba(30, 150, 241, 0.35); }
.nd-pull { margin: 16px 0; padding: 28px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.nd-pull__v { font-size: var(--t-6); line-height: 1; letter-spacing: -0.05em; font-weight: 500; color: #1c2a37; }
.nd-pull__v span { font-size: var(--t-3); letter-spacing: -0.01em; color: var(--ink-2); }
.nd-pull__l { margin-top: 10px; color: var(--ink-2); }
.nd-side { display: grid; gap: 16px; align-content: start; position: sticky; top: 100px; }
.nd-card { display: grid; gap: 4px; padding: 12px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: box-shadow 0.3s; }
.nd-card:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.nd-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.nd-card__k { font-size: var(--t-0); color: var(--ink-2); }
.nd-card__t { font-size: var(--t-3); letter-spacing: -0.015em; }
.nd-card__s { color: var(--ink-2); font-size: var(--t-1); }
.nd-card--sol { grid-template-columns: 1fr auto; padding: 16px; }
.nd-card--sol .nd-card__k, .nd-card--sol .nd-card__t { grid-column: 1; }
.nd-card--sol .cta-icon { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
@media (max-width: 900px) { .nd-body { grid-template-columns: 1fr; } .nd-side { position: static; } }

.nd-more ul { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.nd-more a { display: grid; gap: 10px; text-decoration: none; justify-items: start; }
.nd-more__img { width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #dfe3e6; }
.nd-more__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.nd-more a:hover img { transform: scale(1.04); }
.nd-more__t { font-size: var(--t-3); letter-spacing: -0.015em; line-height: 1.2; }
.nd-more .h3 { font-weight: 500; }
@media (max-width: 900px) { .nd-more ul { grid-template-columns: 1fr; } }
@keyframes nd-drift { from { transform: scale(1.1); } }

/* 2 · front page bento */
.nd-front { padding-top: var(--hero-top) !important; display: grid; gap: var(--crumb-gap); }
.nd-front__grid { margin-top: 18px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: repeat(2, minmax(220px, 30vh)); gap: 14px; }
.nd-front__t { position: relative; overflow: hidden; border-radius: 16px; text-decoration: none; color: var(--white); background: #1c2a37; }
.nd-front__t img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.nd-front__t::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 28, 0) 35%, rgba(10, 18, 28, 0.85) 100%); }
.nd-front__t:hover img { transform: scale(1.04); }
.nd-front__copy { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; display: grid; gap: 8px; }
.nd-front__copy .nw-meta { color: rgba(251, 251, 250, 0.75); }
.nd-front__h { font-size: var(--t-2); line-height: 1.2; }
.nd-front__d { color: rgba(251, 251, 250, 0.8); max-width: 44ch; }
.nd-front__t--lead { grid-row: 1 / span 2; }
.nd-front__t--lead .nd-front__h { font-size: var(--t-4); letter-spacing: -0.03em; line-height: 1.08; }
.nd-front__t--b { grid-column: 2 / span 2; }
@media (max-width: 900px) { .nd-front__grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 220px; } .nd-front__t--lead, .nd-front__t--b { grid-column: 1 / -1; grid-row: auto; } }
@keyframes nd-up { from { opacity: 0; transform: translateY(16px); } }

/* ===== full versions ===== */
.nv-card { animation: nd-up 0.7s var(--ease-out) both; animation-delay: calc(var(--i) * 0.05s); }
.nv-card a { display: grid; gap: 10px; text-decoration: none; color: var(--ink); }
.nv-card__img { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #dfe3e6; }
.nv-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.nv-card a:hover img { transform: scale(1.04); }
.nv-card__t { font-size: var(--t-3); line-height: 1.2; letter-spacing: -0.015em; }
.nv-card__d { color: var(--ink-2); font-size: var(--t-1); }
/* V2 */
.nv2-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
@media (max-width: 800px) { .nv2-grid { grid-template-columns: 1fr; } }

/* category tabs (same control as Projects) */
.pj4-bar { margin-top: clamp(28px, 4vh, 44px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; border-bottom: 1px solid var(--line); }
.pj4-tabs { position: relative; display: flex; gap: clamp(18px, 2.4vw, 36px); overflow-x: auto; scrollbar-width: none; }
.pj4-tabs button { position: relative; padding: 0 0 16px; border: 0; background: none; font: inherit; font-size: var(--t-2); letter-spacing: -0.01em; color: rgba(19, 32, 45, 0.45); white-space: nowrap; cursor: pointer; transition: color 0.3s; }
.pj4-tabs button:hover, .pj4-tabs button.is-on { color: var(--ink); }
.pj4-tabs sup { margin-left: 4px; font-size: 0.55em; color: var(--sun-deep); vertical-align: super; }
.pj4-tabs__line { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--sun); transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out); }
.pj4-tabs button:focus-visible { outline: 2px solid var(--sun); outline-offset: 4px; border-radius: 4px; }
.pj4-sort { display: inline-flex; gap: 2px; padding: 4px; margin-bottom: 12px; border-radius: 12px; background: rgba(19, 32, 45, 0.06); }
.pj4-sort button { height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: var(--t-0); color: var(--ink-2); cursor: pointer; transition: background 0.3s, color 0.3s; }
.pj4-sort button.is-on { background: var(--white); color: var(--ink); box-shadow: 0 2px 8px rgba(15, 27, 42, 0.08); }
@media (max-width: 800px) { .pj4-bar { flex-direction: column-reverse; align-items: stretch; } .pj4-sort { align-self: flex-start; margin-bottom: 0; } }

/* front page title: no intro line, no rule */
.nd-front__title { margin-bottom: 6px; }
/* article: the title runs the full width of the photo below it */
.nd-head { max-width: none; }
.pg h1.nd-title { max-width: none !important; }

/* tags: light blue with blue text, readable on photos and on white */
.nw-tag { box-shadow: none; background: #e3f1fd; color: #0b5ea8; font-weight: 500; }
.nd-front__copy .nw-tag { background: rgba(227, 241, 253, 0.95); color: #0b5ea8; }
/* cards show they open */
.nv-card__img { position: relative; }
.nv-card__go { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(251, 251, 250, 0.94); color: var(--ink); box-shadow: 0 6px 18px rgba(15, 27, 42, 0.18); transition: background 0.3s, color 0.3s, transform 0.4s var(--ease-out); }
.nv-card a:hover .nv-card__go { background: var(--sun); color: var(--white); transform: translate(2px, -2px); }
.nd-front__go { top: 14px; right: 14px; bottom: auto; z-index: 2; }
.nd-front__t:hover .nd-front__go { background: var(--sun); color: var(--white); }

/* cards: titles and summaries start on the same line in every card;
   both stop at two lines with "…" */
.nv-card a { align-content: start; }
.nv-card__t, .nv-card__d { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.nv-card__t { min-height: calc(2 * 1.2em); }
.nv-card__d { line-height: 1.5; min-height: calc(2 * 1.5em); }
.nv-card .nw-meta { min-height: 26px; }
