/* RJG Mediaworks: Insights listing (and the guide cards reused on the article page).
   Needs ../site.css. Page-only parts: library controls, guide cards with generated dot covers, newsletter block. */

/* ============================== hero ============================== */
.page-insights .phero__art { aspect-ratio: 1 / 1.02; }

/* ============================== library ============================== */
.ins { padding-block: clamp(72px, 9vw, 128px) clamp(88px, 11vw, 168px); }
.ins__head { margin-bottom: clamp(28px, 4vw, 48px); }
.ins__head .label { margin-bottom: 20px; }
.ins__h { font: 500 clamp(36px, 4.4vw, 64px)/1 var(--sans); letter-spacing: -.045em; }

.ictl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-bottom: clamp(24px, 3vw, 36px); }
.ictl__r { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.isearch { position: relative; display: flex; align-items: center; width: min(300px, 100%); height: 38px; padding: 0 14px 0 38px; border: 1px solid var(--line-2); border-radius: 999px; background: #080808; transition: border-color .3s, box-shadow .4s; }
.isearch:focus-within { border-color: rgba(198, 244, 50, .8); box-shadow: 0 0 0 1px rgba(198, 244, 50, .2), 0 0 30px rgba(198, 244, 50, .1); }
.isearch__ic { position: absolute; left: 14px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; pointer-events: none; }
.isearch input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; outline: none; -webkit-appearance: none; appearance: none; font: 400 13px/1 var(--mono); letter-spacing: -.01em; color: #fff; }
.isearch input::placeholder { color: rgba(245, 245, 244, .34); }
.isearch input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; height: 12px; width: 12px; cursor: pointer; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23f5f5f4' stroke-width='1.4' stroke-linecap='round'><path d='M2 2l8 8M10 2L2 10'/></svg>") center / 12px no-repeat; opacity: .6; }
.ictl__n { margin: -8px 0 clamp(18px, 2.4vw, 26px); }

.icards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.icard { position: relative; display: flex; min-width: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-2); overflow: hidden; transition: border-color .4s, background .4s, opacity .35s var(--ease), transform .45s var(--ease); }
.icard:hover, .icard:focus-within { border-color: var(--line-2); }
.icard.is-qout { opacity: 0; transform: scale(.97); }
.icard.is-qhide { display: none; }
.icard__link { display: flex; flex-direction: column; width: 100%; border-radius: inherit; }
.icard__link:focus-visible { outline-offset: -3px; border-radius: 20px; }
.icard__cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(70% 90% at 50% 40%, rgba(255, 255, 255, .045), transparent 72%), #080808; }
.cov { position: absolute; inset: 0; width: 100%; height: 100%; }
.icard__tag { position: absolute; left: 16px; top: 16px; z-index: 1; background: rgba(5, 5, 5, .72); color: rgba(245, 245, 244, .85); }
.icard__body { display: flex; flex-direction: column; flex: 1; padding: clamp(20px, 2vw, 28px); }
.icard__cat { margin-bottom: 14px; font: 400 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.icard__h { font: 500 clamp(21px, 1.9vw, 26px)/1.12 var(--sans); letter-spacing: -.035em; text-wrap: balance; transition: transform .5s var(--ease); }
.icard:hover .icard__h { transform: translateX(4px); }
.icard__p { margin-top: 12px; font-size: 15px; line-height: 1.55; color: rgba(245, 245, 244, .62); }
.icard__meta { margin-top: 16px; font: 400 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.icard__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px; font: 500 14px/1 var(--sans); color: #fff; }
.icard__go .ic { width: 15px; height: 15px; transition: transform .45s var(--ease); }
.icard:hover .icard__go .ic, .icard__link:focus-visible .icard__go .ic { transform: translateX(5px); }

/* featured guide: full width, cover left, text right */
.icard--feat { grid-column: 1 / -1; }
.icard--feat .icard__link { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.icard--feat .icard__cover { aspect-ratio: auto; min-height: clamp(300px, 31vw, 440px); border-bottom: 0; border-right: 1px solid var(--line); }
.icard--feat .icard__body { justify-content: center; padding: clamp(28px, 4vw, 56px); }
.icard--feat .icard__h { font: 500 clamp(30px, 3.4vw, 52px)/1.02 var(--sans); letter-spacing: -.045em; }
.icard--feat .icard__p { max-width: 46ch; font-size: clamp(16px, 1.3vw, 18px); }
.icard--feat .icard__go { margin-top: 30px; padding-top: 0; }

.iempty { padding: clamp(56px, 8vw, 104px) 0 clamp(24px, 4vw, 48px); text-align: center; }
.iempty[hidden] { display: none; }
.iempty__t { font: 500 clamp(24px, 2.6vw, 34px)/1.15 var(--sans); letter-spacing: -.04em; }
.iempty__p { margin-top: 12px; color: rgba(245, 245, 244, .66); }
.iempty__b { padding: 0 0 2px; border: 0; border-bottom: 1px solid var(--line-2); background: none; cursor: pointer; color: #fff; font: inherit; font-weight: 500; transition: border-color .3s; }
.iempty__b:hover { border-color: var(--lime); }

/* ============================== newsletter ============================== */
.nl { padding-block: clamp(80px, 10vw, 150px); border-top: 1px solid var(--line); }
.nl__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.nl .h2 { font-size: clamp(38px, 4.6vw, 72px); }
.nl .lead { margin-top: 24px; }
.nlform__body { padding: 14px clamp(22px, 3vw, 40px) clamp(24px, 3vw, 36px); }
.nlform__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 20px; margin-top: 28px; }
.nlform__foot .term__msg { flex: 1 1 200px; }
.nlform__fine { margin-top: 22px; font: 400 12px/1.5 var(--mono); letter-spacing: .01em; color: var(--muted); }
.nlform__fine .link { font-size: inherit; font-weight: 400; }

/* ============================== responsive ============================== */
@media (max-width: 1023px) {
  .icards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nl__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .icards { grid-template-columns: 1fr; }
  .icard--feat .icard__link { grid-template-columns: 1fr; }
  .icard--feat .icard__cover { aspect-ratio: 16 / 10; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .ictl__r { width: 100%; justify-content: space-between; }
  .isearch { flex: 1 1 200px; width: auto; }
}
@media (max-width: 640px) {
  .nlform__foot .btn { flex: 1 1 100%; }
}
html[data-motion="off"] .icard, html[data-motion="off"] .icard__h { transition: none; }
