/* ==========================================================================
   IMV — templates: News listing/detail, brand & job detail, search, 404
   ========================================================================== */

/* ---------- News listing (Figma News) ---------- */
.news-page { position: relative; overflow: hidden; padding-bottom: 64px; background: var(--c-surface-3); }
.news-page__decor { position: absolute; top: 0; left: 0; width: 38%; max-width: 560px; height: 640px; pointer-events: none; }
.news-layout { position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr) 240px; gap: 24px 32px; padding-top: 28px; }
.news-layout__title { margin-top: 10px; font-size: 28px; line-height: 1.2; font-weight: 800; text-transform: uppercase; color: var(--c-brand-900); }
.news-layout__lead { max-width: 290px; margin-top: 8px; font-size: 15px; line-height: 1.6; font-weight: 600; color: var(--c-brand-900); }
.news-layout__main { padding-top: 40px; }
.news-grid { columns: 2; column-gap: 12px; }
.news-grid > .news-card { width: 100%; margin-bottom: 12px; break-inside: avoid; }
.news-layout__sidebar { display: flex; flex-direction: column; gap: 12px; padding-top: 40px; }
.news-page .pagination ul { margin-top: 20px; }

.sidebar-box { padding: 16px 18px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); }
.sidebar-box--search { padding: 0; background: transparent; border: 0; }
.sidebar-box__title { margin-bottom: 10px; font-size: 15px; font-weight: 600; color: var(--c-brand-900); }
.sidebar-box__text { margin-bottom: 12px; font-size: 12px; line-height: 1.7; font-weight: 600; color: var(--c-brand-900); }
.sidebar-cats a { display: block; padding: 5px 0 5px 4px; font-size: 13px; font-weight: 600; color: var(--c-text); }
.sidebar-cats a:hover, .sidebar-cats a.is-active { color: var(--c-accent); }

.search-form { position: relative; }
.search-form input {
	width: 100%; height: 40px; padding: 0 14px 0 42px; border: 1px solid transparent; border-radius: var(--radius-sm);
	background: var(--c-input); font-size: 14px; color: var(--c-brand-900);
}
.search-form__icon { position: absolute; top: 50%; left: 14px; width: 18px; height: 18px; color: var(--c-brand-900); transform: translateY(-50%); }
.search-form--wide { max-width: 560px; margin-bottom: 32px; }
.search-form--wide input { height: 48px; background: #fff; border-color: var(--c-border); }

.newsletter-form__row { display: flex; gap: 8px; }
.newsletter-form input {
	flex: 1; min-width: 0; height: 38px; padding: 0 10px; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
	font-size: 13px; color: var(--c-brand-900);
}
.newsletter-form__btn { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--c-brand-600); color: #fff; }
.newsletter-form__btn:hover { background: #0131ad; }
.newsletter-form__btn .icon { width: 20px; height: 20px; stroke-width: 2; }
.newsletter-form .form-notice { font-size: 12px; }

@media (max-width: 1180px) {
	.news-layout { grid-template-columns: minmax(0, 1fr) 260px; }
	.news-layout__intro { grid-column: 1 / -1; }
	.news-layout__main, .news-layout__sidebar { padding-top: 0; }
}

@media (max-width: 860px) {
	.news-layout { grid-template-columns: 1fr; }
	.news-page__decor { width: 70%; height: 420px; }
}

@media (max-width: 560px) {
	.news-grid { columns: 1; }
}

/* ---------- News detail ---------- */
.single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; padding-top: 40px; }
.single-post .breadcrumb { margin-bottom: 20px; }
.single-post__meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--c-muted); }
.single-post__title { margin: 12px 0 24px; font-size: clamp(26px, 1.8vw + 14px, 38px); line-height: 1.3; font-weight: 700; color: var(--c-brand-900); }
.single-post__media { margin-bottom: 28px; overflow: hidden; border-radius: var(--radius-lg); }
.single-post__media img { width: 100%; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--c-border); }
.share__label { margin-right: 6px; font-size: 14px; font-weight: 700; color: var(--c-brand-900); }
.share__btn {
	display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--c-border); border-radius: 50%;
	background: #fff; color: var(--c-accent); transition: background-color .2s, color .2s;
}
.share__btn:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.share__btn .icon { width: 18px; height: 18px; }
.share__status { font-size: 13px; color: var(--c-muted); }
.related-posts { padding-bottom: 0; }

@media (max-width: 1024px) {
	.single-layout { grid-template-columns: 1fr; }
}

/* ---------- Brand detail ---------- */
.brand-detail__grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); align-items: start; gap: 56px; }
.brand-detail__logo { display: grid; place-items: center; min-height: 200px; padding: 40px; border: 1px solid var(--c-border); border-radius: var(--radius-lg); }
.brand-detail__logo img { width: auto; max-height: 90px; }
.brand-detail__summary { margin-bottom: 16px; font-size: 20px; line-height: 1.7; font-weight: 600; color: var(--c-brand-900); }
.brand-detail__body .btn { margin-top: 24px; }

@media (max-width: 860px) {
	.brand-detail__grid { grid-template-columns: 1fr; gap: 28px; }
	.brand-detail__logo { min-height: 140px; }
}

/* ---------- Job detail ---------- */
.job-detail { width: min(100% - var(--gutter) * 2, 860px); padding-bottom: var(--section-y); }
.job-detail > .breadcrumb { margin-top: 40px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 28px; }
.job-meta li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--c-text); }
.job-meta .icon { width: 18px; height: 18px; color: var(--c-accent); }
.job-detail > .btn { margin-top: 32px; }

/* ---------- 404 ---------- */
.error-404 { display: flex; flex-direction: column; align-items: center; padding: 80px 0 100px; text-align: center; }
.error-404__code { font-size: 120px; line-height: 1; font-weight: 800; color: var(--c-accent); opacity: .15; }
.error-404__text { max-width: 520px; margin-bottom: 28px; }
