/* Clinic news (inc/news.php): home block, archive /naujienos/, single. Tokens: style.css :root. */

.nws-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 680px) { .nws-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .nws-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
/* home block on phones: cards side by side, swiped */
@media (max-width: 679px) {
	.nws-grid--scroll { grid-auto-flow: column; grid-auto-columns: 84%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin: 0 -20px; padding: 4px 20px 14px; scrollbar-width: none; }
	.nws-grid--scroll::-webkit-scrollbar { display: none; }
	.nws-grid--scroll .nws-card { scroll-snap-align: center; }
}

.nws-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); color: inherit; text-decoration: none; border-bottom: 1px solid var(--border); transition: transform .18s, box-shadow .18s; }
.nws-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-bottom: 1px solid var(--border); }
.nws-card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 18px 20px 20px; }
.nws-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; font-size: 13px; color: var(--fg-muted); }
.nws-tag { display: inline-flex; padding: 4px 11px; border-radius: var(--radius-pill); background: var(--green-50); color: var(--green-700); font-family: var(--font-display); font-weight: 600; font-size: 12.5px; }
.nws-tag--light { background: rgba(255,255,255,.14); color: #fff; }
.nws-card__title { font-family: var(--font-display); font-size: 19px; line-height: 1.25; letter-spacing: -.01em; color: var(--fg-strong); margin: 0 0 8px; }
.nws-card__text { font-size: 14.5px; line-height: 1.55; color: var(--stone-700); margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nws-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--brand-hover); }
.nws-card__more svg { transition: transform .15s; }
.nws-card:hover .nws-card__more svg { transform: translateX(3px); }

/* visuals: photo, portraits side by side, typographic tile */
.nws-vis { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--stone-100); }
.nws-vis--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nws-vis--people { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; background: #fff; }
.nws-face { position: relative; margin: 0; overflow: hidden; }
.nws-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.nws-face figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-family: var(--font-display); font-weight: 600; font-size: 12.5px; line-height: 1.2; color: #fff; text-align: center; background: linear-gradient(180deg, transparent, rgba(7,39,19,.72)); }
.nws-vis--tile { display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(420px 240px at 92% -10%, rgba(202,155,94,.34), transparent 62%), linear-gradient(160deg, var(--green-700), var(--green-900)); }
.nws-vis--tile::after { content: ""; position: absolute; left: -60px; bottom: -90px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(234,211,174,.2); box-shadow: 0 0 0 34px rgba(234,211,174,.05), 0 0 0 78px rgba(234,211,174,.035); }
.nws-vis--tile span { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.02em; line-height: 1.1; text-align: center; background: linear-gradient(135deg, #F3E3C6, #CA9B5E); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* home block: one news at a time, changing by itself */
.nws-home { background: var(--bg-elev); padding-top: 44px; padding-bottom: 44px; }
.nws-home .section-head { margin-bottom: 20px; }
.nws-rot__slides { display: grid; }
.nws-rot__slide { grid-area: 1 / 1; display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--border); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-md); color: inherit; text-decoration: none; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.nws-rot__slide:hover { border-bottom: 1px solid var(--border); color: inherit; }
.nws-rot__slide.is-active { opacity: 1; visibility: visible; }
.nws-rot__slide .nws-vis { aspect-ratio: 16 / 9; }
.nws-rot__body { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 20px 20px 22px; }
.nws-rot__body .nws-card__meta { margin-bottom: 0; }
.nws-rot__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(21px, 2.6vw, 32px); line-height: 1.18; letter-spacing: -.015em; color: var(--fg-strong); }
.nws-rot__text { font-size: 15.5px; line-height: 1.6; color: var(--stone-700); }
.nws-rot__body .nws-card__more { margin-top: 6px; }
.nws-rot__nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.nws-rot__arrow { width: 44px; height: 44px; min-height: 0; padding: 0; border: 1px solid var(--border-strong); border-radius: 50%; background: #fff; color: var(--green-700); font-size: 22px; line-height: 1; cursor: pointer; transition: background .15s; }
.nws-rot__arrow:hover { background: var(--green-50); color: var(--green-700); }
.nws-rot__dots { display: inline-flex; align-items: center; gap: 4px; }
.nws-rot__dot { position: relative; width: 28px; height: 28px; min-height: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.nws-rot__dot::before { content: ""; position: absolute; left: 9px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--stone-300); transition: background .2s, transform .2s; }
.nws-rot__dot.is-active::before { background: var(--brand-fill); transform: scale(1.25); }
@media (min-width: 860px) {
	.nws-rot__slide { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 340px; }
	.nws-rot__slide .nws-vis { aspect-ratio: auto; height: 100%; min-height: 340px; }
	.nws-rot__slide .nws-vis--people { min-height: 340px; }
	.nws-rot__body { padding: 36px 44px; gap: 14px; }
	.nws-rot__text { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) { .nws-rot__slide { transition: none; } }

/* archive + single */
.nws-hero { padding-bottom: 44px; }
.nws-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 14px; font-size: 14px; color: rgba(255,255,255,.82); }
.nws-single__wrap { max-width: 860px; }
.nws-article .nws-vis { border-radius: 18px; margin-bottom: 28px; aspect-ratio: 16 / 9; }
.nws-article .nws-vis--people { max-width: 560px; aspect-ratio: 5 / 3; }
.nws-article .nws-face figcaption { font-size: 14px; padding-bottom: 10px; }
.nws-article .nws-vis--tile { aspect-ratio: 16 / 6; }
.nws-prose { font-size: 17px; line-height: 1.7; color: var(--fg); }
.nws-prose p { margin: 0 0 18px; }
.nws-prose h2 { font-family: var(--font-display); font-size: 24px; margin: 30px 0 12px; color: var(--fg-strong); }
.nws-prose ul { margin: 0 0 18px; padding-left: 0; list-style: none; }
.nws-prose ul li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.nws-prose ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.nws-prose a { color: var(--brand-hover); }
.nws-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; border-radius: 12px; background: var(--brand-fill); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 15.5px; text-decoration: none; border-bottom: none; transition: background .15s, transform .15s; }
.nws-btn:hover { background: var(--brand-hover); color: #fff; transform: translateY(-1px); border-bottom: none; }
.nws-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 26px 0 0; padding: 20px 24px; border-radius: 18px; background: var(--green-50); }
.nws-buy__price { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; color: var(--fg-muted); }
.nws-buy__price strong { font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: -.02em; line-height: 1.05; color: var(--green-700); }
.nws-cta { margin: 26px 0 0; }
.nws-back { margin: 30px 0 0; font-size: 15px; }
.nws-back a { color: var(--brand-hover); }
.nws-pages { margin-top: 32px; }
.nws-pages ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; }
.nws-pages a, .nws-pages span { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); font-size: 14.5px; text-decoration: none; color: var(--fg); }
.nws-pages .current { background: var(--brand-fill); border-color: var(--brand-fill); color: #fff; }
@media (prefers-reduced-motion: reduce) { .nws-card, .nws-btn { transition: none; } }
