/* THE DISCOVER JOURNAL: article and index pages. Builds on book.css (tokens, header, footer, buttons). */
.journal { padding-top: var(--header-h); }
.jk { margin: 0 0 12px; font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--glacier); }
.jk a { color: inherit; text-decoration: none; } .jk a:hover { text-decoration: underline; }

/* header: map beside the title, or a photo behind it */
.jhero { position: relative; padding: clamp(36px, 6vw, 80px) 0 clamp(30px, 5vw, 60px); background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); }
.jhero h1 { margin: 0 0 18px; font-weight: 800; font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.jlede { margin: 0 0 18px; max-width: 58ch; font-size: clamp(1rem, 1.6vw, 1.15rem); font-weight: 300; line-height: 1.6; color: var(--frost); }
.jmeta { margin: 0; font-size: .74rem; letter-spacing: .06em; color: var(--mist); }
.jhero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 70px); align-items: center; }
.jhero.photo { min-height: min(78vh, 720px); display: flex; align-items: flex-end; padding-bottom: clamp(36px, 6vw, 70px); overflow: hidden; }
.jhero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jhero.photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(3,16,28,.2) 0%, rgba(3,16,28,.25) 40%, rgba(3,16,28,.92) 100%); }
.jhero.photo .container { position: relative; z-index: 2; }
.jhero.photo .jhero-in { max-width: 760px; }

/* maps */
.jmap { margin: 34px 0; background: radial-gradient(120% 90% at 60% 40%, #0f2c45 0%, var(--night-3) 55%, var(--night-2) 100%); border: 1px solid var(--line); border-radius: 8px; padding: 14px 10px 0; overflow: hidden; }
.jmap.big { margin: 0; }
.jmap svg { display: block; width: 100%; height: auto; max-height: 78vh; }
.jmap figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; padding: 12px 10px 14px; border-top: 1px solid var(--line); font-size: .74rem; color: var(--mist); }
.jmap figcaption b { color: var(--frost); font-weight: 700; letter-spacing: .02em; }
.jm-land { fill: rgba(159,212,226,.07); }
.jm-edge { fill: none; stroke: rgba(159,212,226,.55); stroke-width: 1.4; }
.jm-reg { fill: rgba(244,247,249,.38); font: 600 12px var(--sans); letter-spacing: .3em; }
.jm-route { fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.jm-glow { fill: none; stroke: rgba(255,90,70,.75); stroke-width: 10; }
.jm-spur { fill: none; stroke: var(--red); stroke-width: 3; stroke-dasharray: 7 7; }
.jm-stop circle { fill: var(--frost); stroke: var(--night); stroke-width: 2.5; }
.jm-stop.strong circle { fill: var(--red); stroke: var(--frost); stroke-width: 3; }
.jm-lbl { fill: var(--frost); font: 600 15px var(--sans); paint-order: stroke; stroke: rgba(3,16,28,.85); stroke-width: 4px; stroke-linejoin: round; }
.jm-stop.strong .jm-lbl { font-weight: 800; letter-spacing: .14em; font-size: 15px; }
.jm-num circle { fill: var(--red); stroke: var(--frost); stroke-width: 2; }
.jm-num text { fill: #fff; font: 800 13px var(--sans); }
.jm-key { list-style: none; margin: 4px 0 0; padding: 12px 10px 4px; border-top: 1px solid var(--line); columns: 3 180px; column-gap: 20px; font-size: .8rem; color: #dde3e8; }
.jm-key li { break-inside: avoid; padding: 3px 0; display: flex; gap: 8px; align-items: baseline; }
.jm-key b { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--red); color: #fff; font-size: .66rem; }
@media (prefers-reduced-motion: no-preference) {
  .jm-route { stroke-dasharray: 1; stroke-dashoffset: 1; animation: jm-draw 3.2s .3s ease-out forwards; }
  @keyframes jm-draw { to { stroke-dashoffset: 0; } }
}

/* body: contents on the left, the article in a reading column */
.jbody { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(30px, 5vw, 70px); justify-content: center; padding-top: clamp(36px, 5vw, 60px); padding-bottom: 40px; }
.jtoc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.jtoc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.jtoc a { display: block; padding: 7px 0 7px 14px; font-size: .82rem; color: var(--mist); text-decoration: none; line-height: 1.35; }
.jtoc a:hover { color: var(--frost); }
.jart { min-width: 0; font-size: 1.04rem; line-height: 1.75; }
.jart > p { margin: 0 0 1.15em; color: #dde3e8; }
.jart strong { color: var(--frost); font-weight: 700; }
.jart a { color: var(--glacier); }
.jart h2 { margin: 2.1em 0 .7em; font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.025em; line-height: 1.15; scroll-margin-top: calc(var(--header-h) + 20px); }
.jart h2::after { content: "."; color: var(--red); }
.jart h3 { margin: 1.6em 0 .5em; font-size: 1.15rem; }
.jlist { margin: 0 0 1.2em; padding: 0; list-style: none; }
.jlist li { position: relative; padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); color: #dde3e8; }
.jlist li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* graphics from the page sheets */
.jglance { margin: 0 0 30px; padding: 22px 24px; background: var(--night-3); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 4px; }
.jglance > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.jglance b { display: block; font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.jglance span { display: block; margin-top: 4px; font-size: .74rem; color: var(--mist); line-height: 1.4; }
.jdays { list-style: none; margin: 0 0 30px; padding: 0; position: relative; }
.jdays::before { content: ""; position: absolute; left: 39px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--red), rgba(192,57,43,.2)); }
.jdays li { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 18px; padding: 0 0 22px; }
.jd { position: relative; z-index: 1; justify-self: center; align-self: start; padding: 5px 9px; background: var(--red); color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; border-radius: 2px; white-space: nowrap; }
.jdays b { display: block; font-size: 1.08rem; letter-spacing: -.01em; margin-bottom: 2px; }
.jdays p { margin: 0; color: #cfd6dc; font-size: .96rem; line-height: 1.65; }
.jcompare { margin: 0 0 30px; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.jcompare table { width: 100%; border-collapse: collapse; min-width: 480px; font-size: .9rem; }
.jcompare th, .jcompare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.jcompare thead th { background: var(--night-3); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--glacier); }
.jcompare tbody th { font-weight: 700; color: var(--frost); white-space: nowrap; }
.jcompare td { color: #cfd6dc; }
.jcompare tr:last-child > * { border-bottom: 0; }
.jcheck { margin: 8px 0 30px; padding: 22px 24px; background: var(--night-3); border: 1px solid var(--line); border-radius: 4px; }
.jcheck ul { list-style: none; margin: 0; padding: 0; }
.jcheck li { position: relative; padding: 7px 0 7px 32px; color: #dde3e8; }
.jcheck li::before { content: ""; position: absolute; left: 0; top: 10px; width: 16px; height: 16px; border: 1.5px solid var(--glacier); border-radius: 3px; }
.jcheck li::after { content: ""; position: absolute; left: 5px; top: 12px; width: 5px; height: 9px; border: solid var(--red); border-width: 0 2.5px 2.5px 0; transform: rotate(40deg); }
.jnote { margin: 0 0 26px; padding: 16px 20px; border-radius: 4px; font-size: .96rem; color: #e3e8ec; }
.jnote span { display: block; margin-bottom: 4px; font-size: .64rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.jnote.tip { background: rgba(159,212,226,.08); border: 1px solid rgba(159,212,226,.25); } .jnote.tip span { color: var(--glacier); }
.jnote.warn { background: rgba(192,57,43,.1); border: 1px solid rgba(192,57,43,.4); } .jnote.warn span { color: #f19b90; }
.jphoto { margin: 34px 0; }
.jphoto img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: 6px; }
.jphoto figcaption { margin-top: 10px; font-size: .78rem; color: var(--mist); }

/* the book */
.jbook { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 26px; align-items: center; margin: 44px 0 10px; padding: 26px; background: linear-gradient(135deg, var(--night-3), var(--night-2)); border: 1px solid var(--line); border-radius: 8px; }
.jbook-cover img { display: block; width: 100%; height: auto; border-radius: 3px; box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.jbook h2 { margin: 0 0 6px !important; font-size: 1.35rem !important; }
.jbook h2::after { content: none !important; }
.jbook-sub { margin: 0 0 8px; color: var(--mist); font-size: .92rem; line-height: 1.5; }
.jbook-line { margin: 0 0 16px; font-size: .74rem; color: var(--mist); }
.jbook-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.jbook .btn.primary { background: var(--red); color: #fff; } .jbook .btn.primary:hover { background: #a93226; }

/* FAQ */
.jfaq { margin-top: 30px; }
.jfaq details { border-bottom: 1px solid var(--line); }
.jfaq summary { cursor: pointer; padding: 16px 30px 16px 0; font-weight: 700; list-style: none; position: relative; }
.jfaq summary::-webkit-details-marker { display: none; }
.jfaq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.3rem; font-weight: 300; color: var(--red); }
.jfaq details[open] summary::after { content: "–"; }
.jfaq details p { margin: 0 0 18px; color: #cfd6dc; }

/* cards (index and "keep reading") */
.jrel { padding: 20px 0 80px; border-top: 1px solid var(--line); }
.jgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.jcard { display: block; color: var(--frost); text-decoration: none; }
.jcard-vis { aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; margin-bottom: 14px; background: radial-gradient(120% 90% at 60% 40%, #0f2c45, var(--night-3)); border: 1px solid var(--line); }
.jcard-vis img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.jcard-vis svg { display: block; width: 100%; height: 100%; padding: 12px; box-sizing: border-box; }
.jcard-vis .jm-route { stroke-width: 6; animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
.jc-dot { fill: var(--frost); }
.jcard:hover .jcard-vis img { transform: scale(1.04); }
.jcard h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.jcard h3::after { content: "."; color: var(--red); }
.jcard h3.q::after { content: none; }
.jcard p:last-child { margin: 0; font-size: .86rem; color: var(--mist); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.jidx { padding: clamp(50px, 8vw, 110px) 0 clamp(30px, 5vw, 60px); }
.jidx h1 { margin: 0 0 18px; font-weight: 300; font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.03; letter-spacing: -.035em; }
.jidx h1 b { font-weight: 800; } .jidx h1 i { font-style: normal; color: var(--red); }
.journal > .container > .jgrid { padding-bottom: 90px; }

@media (max-width: 960px) {
  .jhero-grid { grid-template-columns: 1fr; }
  .jbody { grid-template-columns: minmax(0, 1fr); }
  .jtoc { position: static; }
  .jgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .jgrid { grid-template-columns: 1fr; }
  .jglance > div { grid-template-columns: 1fr; gap: 12px; }
  .jbook { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 18px; }
  .jdays li { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .jdays::before { left: 31px; }
  .jm-lbl { font-size: 22px; }
  .jm-stop.strong .jm-lbl { font-size: 20px; }
}

/* El Niño series: the book's graphics */
.jfig { margin: 34px 0; }
.jfig a { display: block; cursor: zoom-in; }
.jfig img { width: 100%; height: auto; display: block; border-radius: 6px; background: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.4); }
.jfig figcaption { font-size: .82rem; color: var(--mist); margin-top: 10px; line-height: 1.5; }
.jfig-hero { margin: 0; }
.jfig-hero img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; display: block; border-radius: 6px; background: #fff; box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.jcard-vis.fig { background: #fff; }
.jcard-vis.fig img { object-fit: contain; }

/* Shop bar near the top of travel articles */
.jtopbuy { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; margin: 26px 0 30px; padding: 14px 18px; background: linear-gradient(135deg, var(--night-3), var(--night-2)); border: 1px solid var(--line); border-radius: 8px; }
.jtb-cover img { display: block; width: 56px; height: auto; border-radius: 2px; box-shadow: 0 8px 20px rgba(0,0,0,.45); }
.jtb-text { margin: 0 !important; line-height: 1.35; }
.jtb-text .jk { display: block; margin-bottom: 2px; }
.jtb-text b { display: block; font-size: .98rem; color: var(--frost); }
.jtb-text span:not(.jk) { display: block; font-size: .74rem; color: var(--mist); }
.jtopbuy .btn { padding: 12px 18px; white-space: nowrap; }
.jtopbuy .btn.primary { background: var(--red); color: #fff; } .jtopbuy .btn.primary:hover { background: #a93226; }
@media (max-width: 620px) { .jtopbuy { grid-template-columns: 48px minmax(0, 1fr); } .jtb-cta { grid-column: 1 / -1; } .jtopbuy .btn { display: block; text-align: center; } }
.jbook-also { margin: 14px 0 0; font-size: .82rem; color: var(--mist); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.jbook-also a:not(.btn) { color: var(--frost); }
.jbook .btn.sm { padding: 9px 14px; font-size: .68rem; }
.jguides { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--mist); }
.jguides a { color: var(--frost); }

/* Travel articles: the hero is a page from the book, so it is dimmed and softened to keep the title readable */
.jhero.spread .jhero-bg { filter: brightness(.38) saturate(.85) blur(2px); transform: scale(1.04); }

/* Map headers, in the style of the book pages' map hero: the destination photo behind, a glowing white outline */
.jhero.mapx { position: relative; isolation: isolate; overflow: hidden; padding: clamp(50px, 7vw, 100px) 0 clamp(40px, 6vw, 80px); background: var(--night); }
.jhero.mapx .jhero-bg { z-index: -2; transform: scale(1.04); }
.jhero.mapx::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3,16,28,.88) 0%, rgba(3,16,28,.62) 45%, rgba(3,16,28,.4) 100%), linear-gradient(180deg, rgba(3,16,28,.15) 0%, rgba(3,16,28,0) 50%, rgba(3,16,28,.85) 100%); }
.jx-map { margin: 0; }
.jx-map svg { display: block; width: 100%; height: auto; overflow: visible; }
.jx-glow { fill: rgba(255,255,255,.55); opacity: .45; }
.jx-fill { fill: rgba(255,255,255,.1); }
.jx-line { fill: none; stroke: rgba(255,255,255,.92); stroke-width: 1.6; stroke-linejoin: round; stroke-dasharray: 2 3; }
.jx-reg { font: 500 12.5px var(--sans); letter-spacing: .24em; fill: rgba(255,255,255,.62); paint-order: stroke; stroke: rgba(3,16,28,.25); stroke-width: 3px; }
.jx-route { fill: none; stroke: var(--red); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.jx-rglow { fill: none; stroke: rgba(230,70,55,.7); stroke-width: 9; }
.jx-spur { fill: none; stroke: var(--red); stroke-width: 3; stroke-dasharray: 7 7; }
.jx-dot circle { fill: rgba(3,16,28,.3); stroke: #fff; stroke-width: 2.4; }
.jx-pin circle { fill: var(--red); stroke: #fff; stroke-width: 2.5; }
.jx-pin .jx-halo { fill: rgba(192,57,43,.28); stroke: none; transform-box: fill-box; transform-origin: center; animation: jxhalo 2.8s ease-out infinite; }
@keyframes jxhalo { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.jx-lbl { font: 600 15px var(--sans); fill: #fff; paint-order: stroke; stroke: rgba(3,16,28,.55); stroke-width: 3.5px; stroke-linejoin: round; }
.jx-lbl.big { font-size: 21px; font-weight: 700; }
.jx-num circle { fill: var(--red); stroke: #fff; stroke-width: 2.2; }
.jx-num text { fill: #fff; font: 800 13px var(--sans); }
.jx-map figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 14px; font-size: .8rem; color: var(--mist); }
.jx-map figcaption i { flex: none; width: 22px; height: 3px; border-radius: 2px; background: var(--red); }
.jx-map figcaption b { color: #fff; font-weight: 700; }
.jx-key { border-top: 1px solid rgba(244,247,249,.15); margin-top: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .jx-route { stroke-dasharray: 1; stroke-dashoffset: 1; animation: jm-draw 3.2s .3s ease-out forwards; }
  .jx-rglow { opacity: 0; animation: jxfade 1s 2.4s forwards; }
}
@keyframes jxfade { to { opacity: 1; } }
@media (max-width: 900px) { .jx-lbl { font-size: 22px; } .jx-lbl.big { font-size: 26px; } .jx-reg { font-size: 16px; } }
/* journal cards with a map: photo behind, glowing outline in front */
.jcard-vis.map { position: relative; isolation: isolate; background: var(--night); }
.jcard-vis.map .jx-cbg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; filter: brightness(.42) saturate(.9); }
.jcard-vis.map svg { position: relative; padding: 14px; }
.jcard-vis.map .jx-route { stroke-width: 6; animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
.jcard-vis.map .jx-rglow { opacity: 1; animation: none; stroke-width: 12; }
.jcard-vis.map .jx-dot circle { r: 7; stroke-width: 3; }
.jx-map svg.clip, .jcard-vis.map svg.clip { overflow: hidden; }
.jx-glow { opacity: .3; } .jx-fill { fill: rgba(255,255,255,.08); }
.jx-lbl { font-size: 22px; } .jx-lbl.big { font-size: 28px; } .jx-reg { font-size: 15px; }
.jx-dot circle { r: 7; } .jx-num circle { r: 15; } .jx-num text { font-size: 15px; }
.jhero.mapx::before { background: linear-gradient(90deg, rgba(3,16,28,.9) 0%, rgba(3,16,28,.7) 45%, rgba(3,16,28,.55) 100%), linear-gradient(180deg, rgba(3,16,28,.2) 0%, rgba(3,16,28,0) 50%, rgba(3,16,28,.88) 100%); }
@media (max-width: 900px) { .jx-lbl { font-size: 26px; } .jx-lbl.big { font-size: 32px; } .jx-reg { font-size: 18px; } }
/* numbered maps (Hawaii beaches): the island chain is long and thin, so the map gets the full width under the title */
.jhero.mapx.wide .jhero-grid { grid-template-columns: 1fr; gap: 10px; }
.jhero.mapx.wide .jhero-in { max-width: 760px; }
.jhero.mapx.wide .jx-map svg { margin: 0 auto; max-width: 1100px; }
.jhero.mapx.wide .jx-key { columns: 4 200px; }
.jhero.mapx.wide .jx-fill { fill: rgba(255,255,255,.16); }
.jhero.mapx.wide .jx-glow { opacity: .45; }
.jhero.mapx.wide .jx-reg { font-size: 17px; fill: rgba(255,255,255,.8); }
@media (max-width: 900px) { .jhero.mapx.wide .jx-reg { font-size: 22px; } .jhero.mapx.wide .jx-num circle { r: 17; } .jhero.mapx.wide .jx-num text { font-size: 17px; } }
