/* Feedback form, Partner Content listing and the in-site 404 page. Theme tokens only, so dark mode follows. */

.news-inner .info-page { padding-block: 18px 48px; }
.news-inner .info-heading { margin-bottom: 22px; }
.news-inner .info-heading p { font-size: 14px; }

/* Alerts */
.info-alert { display: flex; align-items: flex-start; gap: 12px; max-width: 760px; margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--card-bg); color: var(--ink); }
.info-alert:focus { outline: none; }
.info-alert > i { font-size: 20px; line-height: 1.3; }
.info-alert strong { display: block; }
.info-alert p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.info-alert.is-success { border-color: rgba(22, 163, 74, .45); background: rgba(22, 163, 74, .07); }
.info-alert.is-success > i { color: #16a34a; }
.info-alert.is-error { border-color: rgba(220, 38, 38, .45); background: rgba(220, 38, 38, .06); }
.info-alert.is-error > i { color: #dc2626; }

/* Feedback form */
.info-form { max-width: 760px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-bg); }
.info-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.info-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.info-field { display: grid; align-content: start; gap: 6px; min-width: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.info-field.is-wide { grid-column: 1 / -1; }
.info-field b { margin-left: 3px; color: var(--red-text); }
.info-field input, .info-field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; transition: border-color .15s, box-shadow .15s; }
.info-field textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
.info-field input:focus, .info-field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(213, 42, 49, .2); }
.info-field [aria-invalid="true"] { border-color: #dc2626; }
.info-error { font-weight: 600; font-size: 12px; color: #b91c1c; }
html[data-theme="dark"] .info-error { color: #ff8a8a; }
.info-form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 18px; }
.info-form-footer p { margin: 0; max-width: 48ch; font-size: 12px; line-height: 1.6; color: var(--muted); }
.info-submit, .not-found-home { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 24px; border: 0; border-radius: 6px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.info-submit:focus-visible, .not-found-home:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Partner Content */
.sponsored-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 22px; }
.sponsored-card { min-width: 0; }
.sponsored-card-link { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--card-bg); color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.sponsored-card-link:hover { border-color: var(--red); box-shadow: 0 8px 22px rgba(15, 23, 42, .1); transform: translateY(-1px); }
.sponsored-card-link:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.sponsored-card-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--soft); overflow: hidden; }
.sponsored-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sponsored-card-media img.is-fallback { object-fit: contain; padding: 12% 18%; }
.sponsored-card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.sponsored-label { align-self: flex-start; padding: 2px 8px; border-radius: 3px; background: #fff4e5; color: #8a4b05; font: 800 10px/1.6 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.sponsored-label span { font-weight: 600; text-transform: none; letter-spacing: 0; }
html[data-theme="dark"] .sponsored-label { background: rgba(247, 146, 39, .16); color: #f8c77a; }
.sponsored-card-title { margin: 0; font-size: calc(16px * var(--reading-scale, 1)); font-weight: 750; line-height: 1.55; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.sponsored-card-link:hover .sponsored-card-title { color: var(--red-text); }
.sponsored-card-summary { font-size: 13px; line-height: 1.7; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sponsored-card-body time { margin-top: auto; font: 500 12px/1.4 system-ui, sans-serif; color: var(--muted); }

/* 404 */
.not-found-page { display: grid; place-items: center; padding-block: 40px 56px; }
.not-found-card { width: 100%; max-width: 620px; padding: 32px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card-bg); text-align: center; box-shadow: 0 10px 30px rgba(17, 24, 39, .06); }
.not-found-code { margin: 0; font-size: clamp(64px, 16vw, 104px); line-height: 1; font-weight: 800; letter-spacing: 2px; color: var(--red); }
.news-inner .not-found-card h1 { margin: 10px 0 8px; font-size: clamp(24px, 5vw, 32px); line-height: 1.3; color: var(--ink); }
.not-found-lead { max-width: 460px; margin: 0 auto 24px; color: var(--muted); }
.not-found-search { margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line); text-align: left; }
.not-found-search label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--ink); }
.not-found-search div { display: flex; gap: 8px; }
.not-found-search input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: inherit; }
.not-found-search input:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.not-found-search button { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 10px 20px; border: 1px solid var(--red); border-radius: 8px; background: transparent; color: var(--red-text); font: inherit; font-weight: 700; cursor: pointer; }
.not-found-search button:hover, .not-found-search button:focus-visible { background: var(--red); color: #fff; }
html[data-theme="dark"] .not-found-card { box-shadow: none; }

@media (max-width: 640px) {
  .info-form { padding: 16px; }
  .info-form-grid { grid-template-columns: minmax(0, 1fr); }
  .info-submit { width: 100%; }
  .not-found-card { padding: 26px 16px; }
  .not-found-search div { flex-direction: column; }
  .not-found-home, .not-found-search button { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .sponsored-card-link { transition: none; }
  .sponsored-card-link:hover { transform: none; }
}
