/* ==========================================================================
   Juris Digital, redesign concept, version 3
   Version 2 (their homepage, word for word) plus the version 1 sections that answer
   what a firm asks before it calls. Loaded after style.css and v2.css.
   ========================================================================== */

/* ---------- overview: four of their published results under the statement ---------- */
.overview--four .overview__grid { grid-template-columns: 1fr; gap: clamp(40px, 5vw, 56px); }
.overview--four .overview__statement { max-width: 34ch; }
.overview--four .overview__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.overview--four .overview__stats li + li { padding-left: 24px; border-top: 0; border-left: 1px solid var(--rule-dark); }
.overview--four .overview__stats a { padding: 0; }
.overview--four .overview__num { font-size: clamp(2.25rem, 3.4vw, 3rem); }

/* ---------- the new reality: sits on Ground here, so the study card turns to paper ---------- */
.reality { background: var(--ground); }
.reality .study { background: var(--paper); }
.reality .study .seg { background: var(--ground); }

/* ---------- JurisOS™: the case file, one pillar at a time ---------- */
.os2 { background: var(--paper); padding: var(--section) 0; }
.os2__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px clamp(40px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.os2__tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.os2__tabs::-webkit-scrollbar { display: none; }
html:not(.js) .os2__tabs { display: none; }
.os2__tab { position: relative; flex: 1 1 0; min-width: 132px; display: grid; gap: 2px; padding: 14px 18px 16px; border-radius: 14px 14px 0 0; background: var(--rule-soft); color: var(--muted); text-align: left; transition: background-color .2s var(--ease-out), color .2s var(--ease-out); }
.os2__tab[aria-selected="true"] { background: var(--ground); color: var(--ink); }
/* the gradient marks the pillar in focus, as it does in version 1 */
.os2__tab::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--shield-h); transform: scaleX(0); transform-origin: left; }
.os2__tab[aria-selected="true"]::before { transform: scaleX(1); transition: transform 500ms var(--ease-out); }
.os2__tab:focus-visible { outline-offset: -3px; border-radius: 14px 14px 0 0; }
.os2__n { font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--counsel-ink); }
.os2__name { font-family: var(--serif); font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.2; }
.os2__tag { overflow: hidden; font-size: .8125rem; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); }
.os2__panels { display: grid; padding: clamp(24px, 4vw, 56px); border-radius: 0 var(--r-l) var(--r-l) var(--r-l); background: var(--ground); }
html:not(.js) .os2__panels { border-radius: var(--r-l); }
.os2__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 72px); align-items: center; align-content: start; }
html:not(.js) .os2__panel + .os2__panel { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--rule); }
/* every panel shares one cell, so the file keeps the height of its longest pillar */
.js .os2__panel { grid-area: 1 / 1; }
.js .os2__panel:not(.is-active) { visibility: hidden; opacity: 0; }
.js .os2__panel.is-active { transition: opacity .4s var(--ease-out); }
.os2__panel:focus-visible { outline-offset: 10px; border-radius: 8px; }
.os2__pname { margin-bottom: 14px; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; }
.js .os2__pname { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.os2__copy .pillar__lead { margin-top: 0; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.os2__copy > p:not([class]) { max-width: 54ch; margin-top: 16px; color: var(--ink-2); }
.os2__copy .ticks { margin-top: 22px; }
html:not(.js) .os2__next { display: none; }
.os2__next { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 24px; font-size: .9375rem; font-weight: 600; color: var(--counsel-ink); text-decoration: underline; text-decoration-color: rgba(8, 124, 128, .35); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.os2__next svg { width: 18px; height: 18px; transition: transform 260ms var(--ease-out); }
.os2__art .sheet { max-width: 500px; margin-left: auto; border-color: transparent; box-shadow: var(--shadow); }
/* the practice names in the standing drawing get room to read */
.os2__art :is(.standing__head, .standing__row) { grid-template-columns: minmax(0, 2.1fr) repeat(3, minmax(0, 1fr)); }
.os2__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 14px; padding: 0 4px; font-size: .8125rem; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .os2__tab[aria-selected="false"]:hover { background: #E1E8E7; color: var(--ink-2); }
  .os2__next:hover { text-decoration-color: currentColor; }
  .os2__next:hover svg { transform: translateX(4px); }
}

/* ---------- the relationship (version 1, without the cadence: the case file already shows the order) ---------- */
.relationship .kicker { color: var(--on-dark-2); }

/* ---------- the people behind the film ---------- */
.partner__people { margin-top: clamp(48px, 6vw, 72px); }
.partner__people .people { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 16px; }

/* ---------- thought leadership: six cards, three by two ---------- */
.insights__list .insight, .insights__list .insight:nth-child(-n+2) { grid-column: span 2; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .overview--four .overview__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .overview--four .overview__stats li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .os2__head { grid-template-columns: 1fr; }
  .partner__people .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .insights__list .insight, .insights__list .insight:nth-child(-n+2), .insights__list .insight:last-child { grid-column: auto; }
}
@media (max-width: 900px) {
  .os2__panel { grid-template-columns: 1fr; align-items: start; gap: 28px; }
  /* the drawing first, so Next sits at the end of the panel */
  .os2__art { order: -1; }
  .os2__art .sheet { max-width: 520px; margin-left: 0; }
}
@media (max-width: 640px) {
  .overview--four .overview__stats { gap: 24px 16px; }
  .overview--four .overview__stats li + li { margin-top: 0; padding: 0; border-top: 0; }
  .overview--four .overview__stats li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule-dark); }
  .overview--four .overview__num { font-size: 1.625rem; }
  .overview--four .overview__label { font-size: .875rem; }
  .os2__tab { min-width: 112px; padding: 12px 14px 14px; }
  .os2__tab::before { left: 14px; right: 14px; }
  .os2__tag { display: none; }
  .os2__panels { padding: 22px 20px 26px; }
  .os2__copy .ticks { display: none; }
  .os2__next { margin-top: 16px; }
  .os2__art .standing__row span { line-height: 1.3; white-space: normal; }
  .partner__people .people { gap: 20px 12px; }
  /* thought leadership: six text cards would stack to almost three thousand pixels, so they swipe */
  .insights__list { display: flex; gap: 10px; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .insights__list::-webkit-scrollbar { display: none; }
  .insights__list .insight { flex: 0 0 86%; scroll-snap-align: start; }
  .partner__people .people__name { font-size: .875rem; }
  .partner__people .people__role { font-size: .75rem; }
}
