/* The homepage and the full archive share the same editorial grid. */
.cj-journal {
  padding: clamp(62px, 7vw, 120px) max(6%, calc((100vw - 1540px) / 2));
  color: var(--ink);
  background: var(--paper);
  scroll-margin-top: 72px;
}
.cj-journal #cj-title {
  margin: 0 0 clamp(22px, 2.6vw, 38px);
  font: 475 clamp(40px, 4.8vw, 80px)/1.04 var(--sans);
  letter-spacing: -.07em;
}
.cj-journal #cj-title em { font: italic 400 1.05em/1 var(--serif); }
.cj-bar, .cj-filters, .cj-sort {
  display: flex;
  align-items: center;
}
.cj-bar { justify-content: space-between; gap: 18px; margin-bottom: clamp(24px, 2.8vw, 44px); }
.cj-filters { gap: clamp(8px, 1.2vw, 22px); flex-wrap: wrap; }
.cj-filters button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 12px 2px; min-height: 44px;
  background: none;
  color: inherit;
  font: 600 12px/1.35 var(--sans);
}
.cj-filters button[aria-pressed="true"] { border-color: var(--brand-blue); color: var(--ink); }
.cj-topic-picker { display: none; }
.cj-sort, .cj-topic-picker { position:relative; gap: 9px; white-space: nowrap; font: 500 12px/1.4 var(--sans); }
:is(.cj-sort,.cj-topic-picker) select {
  -webkit-appearance: none; appearance: none; background: transparent; min-height: 44px; border: 0;
  border-radius: 0; color: inherit; padding: 6px 21px 6px 0; font: inherit; cursor: pointer;
}
:is(.cj-sort,.cj-topic-picker)::after { content:""; position:absolute; pointer-events:none; right:4px; width:6px; height:6px; border:solid currentColor; border-width:0 1px 1px 0; transform:translateY(-2px) rotate(45deg); }
:is(.cj-sort,.cj-topic-picker) select:focus-visible { outline:2px solid var(--brand-blue); outline-offset:3px; }
.cj-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(15px,1.7vw,30px); align-items: stretch; }
.cj-card { display: flex; flex-direction: column; min-width:0; color: var(--ink); }
.cj-thumb { aspect-ratio: 1.53; overflow: hidden; background: #d7d7d1; }
.cj-thumb img { display:block; width: 100%; height:100%; object-fit:cover; transition:transform .42s ease; }
.cj-card-copy { padding: 15px 0 0; flex: 1; }
.cj-card-copy p { margin: 0 0 6px; font: 480 12px/1.4 var(--sans); color: #535b60; }
.cj-card-copy :is(h2,h3) { margin: 0; max-width: 26ch; font: 500 clamp(19px,1.7vw,29px)/1.14 var(--sans); letter-spacing: -.045em; text-wrap: pretty; }
.cj-card:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 5px; }
.cj-card:focus-visible :is(h2,h3) { text-decoration: underline; text-underline-offset: .14em; text-decoration-thickness: 1px; }
.cj-view-all, .cj-next {
  display: flex; width: fit-content; align-items:center; justify-content:center; gap: 18px;
  border-bottom: 1px solid currentColor; padding: 8px 0; min-height:44px; font:650 12px/1.45 var(--sans);
}
.cj-view-all { margin:clamp(30px,3vw,54px) auto 0; }
.cj-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
@media(hover:hover) {
  .cj-card:hover img { transform:scale(1.035); }
  .cj-card:hover :is(h2,h3) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }
  .cj-view-all:hover, .cj-next:hover { color:var(--brand-blue); }
  .cj-filters button:hover { color:var(--brand-blue); }
}
.cj-sitehead {
  display:flex; align-items:center; justify-content:space-between; padding:0 6vw;
  min-height:74px; background:var(--brand-blue); color:#fff;
}
.cj-sitehead nav { display:flex; align-items:center; gap:22px; }
.cj-sitehead a:focus-visible { outline-color:white; }
.cj-sitehead nav a { font-size:13px; font-weight:650; padding-block:12px; }
.cj-sitehead nav [aria-current] { text-decoration:underline; text-underline-offset:5px; }
.cj-page { min-height:100vh; }
.cj-page .cj-journal { min-height:calc(100svh - 74px); }
.cj-crumb, .cj-end-back { display:flex; align-items:center; gap:12px; font:600 13px/1.5 var(--sans); }
.cj-crumb { margin:0 0 clamp(28px,4vw,60px); }
.cj-crumb a, a.cj-crumb, .cj-end-back { text-decoration:underline; text-underline-offset:4px; }
.cj-crumb span { color:#536071; }
.cj-story { max-width:1170px; margin:auto; padding:clamp(30px,4.5vw,72px) 5% clamp(50px,6vw,96px); }
.cj-story-head { max-width:860px; margin-bottom:clamp(23px,3vw,46px); }
.cj-story-head h1 { font:490 clamp(40px,5.4vw,84px)/1.04 var(--sans); letter-spacing:-.07em; margin:0 0 18px; text-wrap:balance; }
.cj-story-head p { max-width:60ch; font-size:clamp(17px,1.55vw,23px); line-height:1.5; margin:0; }
.cj-story-photo { display:block; width:100%; height:auto; max-height:460px; object-fit:cover; }
.cj-prose { max-width:660px; margin:clamp(32px,4vw,60px) auto 0; }
.cj-prose section { margin:0 0 32px; }
.cj-prose section h2 { font:italic 400 clamp(27px,3vw,42px)/1.15 var(--serif); margin:0 0 9px; }
.cj-prose section p { font:400 17px/1.7 var(--sans); margin:0; }
.cj-end-back { width:max-content; margin:45px auto 0; }
@media(max-width:850px) {
  .cj-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cj-bar { align-items:flex-start; flex-wrap:wrap; gap:12px; }
}
@media(max-width:500px) {
  .cj-journal { padding:46px 5%; scroll-margin-top:62px; }
  .cj-journal #cj-title { font-size:clamp(34px,9vw,45px); max-width:16ch; }
  .cj-bar { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:12px; margin-bottom:16px; }
  .cj-bar .cj-filters { display:none; }
  .cj-topic-picker { display:flex; align-items:center; justify-self:start; max-width:100%; }
  .cj-sort { justify-self:end; max-width:100%; }
  :is(.cj-sort,.cj-topic-picker) select { width:100%; min-width:0; text-overflow:ellipsis; }

  .cj-grid { grid-template-columns: 1fr; gap: 22px; }
  .cj-card { display: grid; grid-template-columns: minmax(78px, 31%) minmax(0,1fr); align-items: center; gap: 16px; }
  .cj-thumb { aspect-ratio: 1.2; }
  .cj-card-copy { padding: 0; }
  .cj-card-copy p { margin-bottom: 4px; font-size: 12px; }
  .cj-card-copy :is(h2,h3) { font-size: clamp(18px,4.8vw,23px); }
  .cj-sitehead { min-height:62px; padding:0 5%; }
  .cj-sitehead nav { gap:13px; }
  .cj-story-photo { aspect-ratio:1.4; }
  .cj-prose section p { font-size:16px; }
}
@media(prefers-reduced-motion:reduce) { .cj-thumb img { transition:none; } }

.cj-story-head .cj-topic { margin:0 0 8px; font:500 14px/1.4 var(--sans); color:#535b60; }
.cj-related { margin-top:22px; color:#485360; line-height:1.55; }
.cj-related a { text-decoration:underline; text-underline-offset:3px; color:var(--brand-blue-hover); }
@media (max-width:600px) {
  .cj-sitehead { gap: 8px; }
  .cj-sitehead nav { flex-wrap: nowrap; gap: clamp(8px,2.5vw,15px); }
  .cj-sitehead nav a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 5px; font-size: 12px; white-space: nowrap; }
  .cj-nav-long { display: none; }
}
@media (max-width:365px) {
  .cj-sitehead { padding-inline: 4%; }
  .cj-sitehead .cg-brand { gap: 6px; }
  .cj-sitehead nav { gap: 8px; }
}

.broker-writing {
  scroll-margin-top:76px; background:#eeeae2; padding:clamp(40px,6vw,90px) 6vw;
  display:grid; grid-template-columns:1fr 1fr; gap:24px clamp(30px,5vw,85px);
}
.broker-writing h2 { grid-column:1/-1; margin:0 0 8px; font:500 clamp(38px,5vw,78px)/1.04 var(--sans); letter-spacing:-.065em; }
.broker-writing h2 em { font-family:var(--serif); font-weight:400; }
.broker-writing article { border-top:1px solid #b8b5ab; padding-top:18px; }
.broker-writing h3 { margin:6px 0; max-width:28ch; font:500 clamp(22px,2.2vw,36px)/1.16 var(--sans); letter-spacing:-.045em; }
.broker-writing p { max-width:48ch; font-size:15px; line-height:1.5; }
.broker-writing article > p:first-child { margin:0; font-size:13px; font-weight:650; color:#535b60; }
@media (max-width:640px){.broker-writing{ grid-template-columns:1fr; }}

.cj-filters { position:relative; }
.cj-tab-line { display:none; }
@media (prefers-reduced-motion:no-preference) {
  .cj-filters:has(.cj-tab-line) button[aria-pressed=true] { border-bottom-color:transparent; }
  .cj-tab-line {
    display:block; position:absolute; left:0; top:0; width:1px; height:2px;
    transform-origin:top left; pointer-events:none; background:var(--brand-blue);
    transition:transform .42s cubic-bezier(.19,.73,.21,1);
  }
  .cj-journal.cg-entered .cj-thumb, .cj-card.cj-fresh .cj-thumb {
    animation:cj-develop .66s cubic-bezier(.22,.8,.15,1) backwards;
    animation-delay:calc(35ms * var(--cj-order,0));
  }

}
@keyframes cj-develop {
  from { opacity: .72; }
  to { opacity: 1; }
}

/* In the editorial order one story leads. The facing column is an index into the other guides. */
@media(min-width:501px) {
  .cj-grid.cj-short-list {grid-template-columns: minmax(0,1fr);}
  .cj-short-list .cj-card {
    display: grid;
    grid-template-columns: minmax(0,.68fr) minmax(0,1fr);
    gap: clamp(20px,4vw,64px);
    align-items: center;
    border-block-start: 1px solid #d5cfc4;
    padding-block: clamp(16px,2vw,32px);
  }
  .cj-short-list .cj-thumb {aspect-ratio: 2.3;}
  .cj-short-list .cj-card-copy {padding: 0;}
  .cj-short-list .cj-card-copy :is(h2,h3) {
    font: italic 400 clamp(27px,3.4vw,58px)/1.06 var(--serif);
    max-width: 22ch;
  }
}
.cj-grid.cj-spread {
  align-items: stretch;
  gap: 0 clamp(22px, 3.4vw, 62px);
}
.cj-spread .cj-card:not(:first-child) {
  display: grid;
  grid-template-columns: clamp(86px, 9vw, 150px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(15px, 1.8vw, 32px);
  border-block-start: 1px solid #d5cfc4;
  padding-block: clamp(12px, 1.3vw, 21px);
}
.cj-spread .cj-card:not(:first-child) .cj-thumb { aspect-ratio: 1.45; }
.cj-spread .cj-card:not(:first-child) .cj-card-copy { padding: 0; }
.cj-spread .cj-card:first-child {
  position: relative;
  isolation: isolate;
  justify-content: end;
  display: flex;
  min-height: clamp(285px, 28vw, 530px);
  background: var(--navy);
  color: white;
  overflow: hidden;
}
.cj-spread .cj-card:first-child .cj-thumb {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  z-index: -1;
}
.cj-spread .cj-card:first-child .cj-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0c1929ed, #1020349c 30%, transparent 78%);
  pointer-events: none;
}
.cj-spread .cj-card:first-child .cj-card-copy {
  flex: none;
  padding: clamp(22px, 2.6vw, 46px);
}
.cj-spread .cj-card:first-child .cj-card-copy p { color: #fff; }
.cj-spread .cj-card:first-child :is(h2,h3) {
  font: italic 400 clamp(35px, 4.2vw, 76px)/.99 var(--serif);
  letter-spacing: -.03em;
  max-width: 19ch;
}
.cj-spread .cj-card:first-child:hover :is(h2,h3) {
  text-decoration: none;
}
@media(min-width:701px) {
  .cj-grid.cj-spread { grid-template-columns: minmax(0,1.17fr) minmax(0,1fr); }
  .cj-spread .cj-card:first-child { grid-row: 1 / span 3; }
  .cj-spread .cj-card:not(:first-child) :is(h2,h3) { font-size: clamp(20px, 1.7vw, 30px); }
  .cj-spread .cj-card:nth-child(5) { grid-column: 1; }
  .cj-spread .cj-card:nth-child(n+5) { margin-top: clamp(15px, 2vw, 30px); }
}
@media(max-width:700px) {
  .cj-grid.cj-spread { grid-template-columns: minmax(0,1fr); }
  .cj-spread .cj-card:first-child { margin-bottom: 16px; min-height: clamp(265px, 68vw, 365px); }
  .cj-spread .cj-card:first-child :is(h2,h3) { font-size: clamp(36px, 8.8vw, 50px); }
  .cj-spread .cj-card:not(:first-child) { grid-template-columns: clamp(79px, 21vw, 130px) minmax(0,1fr); }
  .cj-spread .cj-card:not(:first-child) :is(h2,h3) { font-size: clamp(18px, 4.4vw, 24px); }
}
@media(min-width:890px) {
  .cj-story { max-width: 1580px; padding-inline: 6%; }
  .cj-story > article {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.12fr);
    column-gap: clamp(42px, 5.5vw, 96px);
    align-items: center;
  }
  .cj-story-head { margin: 0; }
  .cj-story-head h1 { font-size: clamp(46px, 4.65vw, 82px); }
  .cj-story-head > p:last-child { font-size: clamp(17px, 1.35vw, 23px); }
  .cj-story .cj-print { grid-column: 2; }
  .cj-story-photo { max-height: none; aspect-ratio: 1.25; }
  .cj-story .cj-prose { grid-column: 1 / -1; max-width: 680px; margin-top: clamp(56px, 6vw, 104px); }
}
@media(max-width:889px) {
  .cj-story-head h1 { font: italic 400 clamp(48px, 9vw, 78px)/.99 var(--serif); letter-spacing: -.035em; }
}
@media(prefers-reduced-motion:reduce) {
  .cj-card:hover img { transform: none; }
}


.cj-sitehead nav:not(.cg-language) { margin-inline-start: auto; }
.cj-sitehead nav.cg-language {
  display: flex; flex-wrap: nowrap; gap: 0; flex: none;
  align-items: center; margin-inline-start: clamp(10px,2.5vw,34px);
  font: 650 12px/1 var(--sans); letter-spacing: .035em;
}
.cj-sitehead .cg-language > :is(a,span) { padding: 0; font: inherit; }
@media (max-width: 580px) {
  .cj-sitehead { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding-block: 5px; }
  .cj-sitehead nav:not(.cg-language) { grid-row: 2; grid-column: 1/-1; margin: 0; }
  .cj-sitehead nav.cg-language { grid-column: 2; grid-row: 1; }
}
