/* The journals directory page. See directory.php. Tokens only: no literal colours. */

#jd .jd-jd__sr{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
#jd .jd-jd{ font-family:var(--jd-font-text); color:var(--jd-text); background:var(--jd-ground); }
#jd .jd-jd__wrap{ max-width:1280px; margin:0 auto; padding:0 40px; }
#jd .jd-jd a{ text-underline-offset:4px; }
#jd .jd-jd a:focus-visible,
#jd .jd-jd button:focus-visible,
#jd .jd-jd input:focus-visible{ outline:2px solid var(--jd-accent); outline-offset:2px; }

/* ---------------------------------------------------------------- Masthead */
#jd .jd-jd__hero{ position:relative; overflow:hidden; background:var(--jd-navy-dark); color:var(--jd-on-navy); padding:64px 0 112px; }
#jd .jd-jd__graticule{ position:absolute; inset:0; width:100%; height:100%; color:var(--jd-on-navy-rule); pointer-events:none; }
#jd .jd-jd__hero-grid{ position:relative; display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:40px 64px; align-items:end; }
#jd .jd-jd__eyebrow{ margin:0 0 18px; font-family:var(--jd-font-label); font-size:var(--jd-fs-sign); font-weight:700; letter-spacing:var(--jd-ls-sign); text-transform:uppercase; color:var(--jd-accent); }
#jd .jd-jd__hero h1{ margin:0 0 20px; font-family:var(--jd-font-heading); font-size:var(--jd-fs-feature); line-height:1.12; font-weight:700; letter-spacing:-.015em; color:var(--jd-on-navy); text-wrap:balance; }
#jd .jd-jd__lede{ margin:0; max-width:52ch; font-size:var(--jd-fs-lede); line-height:1.5; color:var(--jd-on-navy-muted); }
#jd .jd-jd__hero-actions{ margin:28px 0 0; }
#jd .jd-jd__btn{ display:inline-flex; align-items:center; gap:10px; min-height:48px; padding:0 22px; border-radius:var(--jd-r-sm); background:var(--jd-accent); color:var(--jd-navy-dark); font-weight:700; font-size:16px; text-decoration:none; transition:background .15s; }
#jd .jd-jd__btn:hover{ background:var(--jd-accent-deep); color:var(--jd-text-invert); }

#jd .jd-jd__stats{ display:grid; grid-template-columns:1fr 1fr; gap:0; margin:0; border-top:1px solid var(--jd-on-navy-rule); }
#jd .jd-jd__stats div{ padding:18px 0 4px; }
#jd .jd-jd__stats div:nth-child(odd){ padding-right:24px; }
#jd .jd-jd__stats div:nth-child(even){ padding-left:24px; border-left:1px solid var(--jd-on-navy-rule); }
#jd .jd-jd__stats dt{ order:2; margin:6px 0 0; font-family:var(--jd-font-label); font-size:var(--jd-fs-sign); font-weight:700; letter-spacing:var(--jd-ls-sign); text-transform:uppercase; color:var(--jd-on-navy-muted); line-height:1.25; }
#jd .jd-jd__stats dd{ margin:0; font-family:var(--jd-font-heading); font-size:var(--jd-fs-display); line-height:1; font-weight:700; color:var(--jd-on-navy); font-variant-numeric:tabular-nums; }
#jd .jd-jd__stats div{ display:flex; flex-direction:column; }
#jd .jd-jd__stats dd{ order:1; }

/* ------------------------------------------------------------------- Atlas */
#jd .jd-jd__atlas{ position:relative; z-index:1; margin-top:-64px; }
#jd .jd-jd__atlas-card{ display:grid; grid-template-columns:minmax(0,1fr) 360px; background:var(--jd-surface); border:1px solid var(--jd-rule); border-radius:var(--jd-r-lg); box-shadow:var(--jd-lift-hover); overflow:hidden; }
#jd .jd-jd__atlas-card.is-nomap{ grid-template-columns:minmax(0,1fr); }
#jd .jd-jd__atlas-card.is-nomap .jd-jd__map-col{ display:none; }
#jd .jd-jd__atlas-card.is-nomap .jd-jd__places{ max-height:none; border-left:0; }
#jd .jd-jd__map-col{ position:relative; min-width:0; background:var(--jd-tint); }
#jd .jd-jd__map{ width:100%; height:560px; background:var(--jd-tint-deep); }
#jd .jd-jd__map-note{ position:absolute; left:14px; bottom:14px; z-index:2; max-width:min(440px,calc(100% - 28px)); margin:0; padding:8px 12px; border-radius:var(--jd-r-sm); background:var(--jd-surface); font-size:var(--jd-fs-meta); line-height:1.4; color:var(--jd-text-muted); box-shadow:var(--jd-lift); }

#jd .jd-jd__places{ display:flex; flex-direction:column; min-width:0; min-height:0; max-height:560px; border-left:1px solid var(--jd-rule); }
#jd .jd-jd__places-title{ margin:0; padding:20px 22px 12px; font-family:var(--jd-font-label); font-size:var(--jd-fs-sign); font-weight:700; letter-spacing:var(--jd-ls-sign); text-transform:uppercase; color:var(--jd-text-muted); }
#jd .jd-jd__place-list{ flex:1; min-height:0; margin:0; padding:0 10px 10px; list-style:none; overflow-y:auto; overflow-x:hidden; }
#jd .jd-jd__place-list li{ margin:0; }
#jd .jd-jd__place{ display:flex; align-items:center; gap:14px; width:100%; min-height:56px; margin:0; padding:10px 12px; border:0; border-radius:var(--jd-r-sm); background:transparent; text-align:left; font:inherit; color:var(--jd-text); cursor:pointer; }
#jd .jd-jd__place:hover{ background:var(--jd-tint); }
#jd .jd-jd__place[aria-pressed="true"]{ background:var(--jd-navy); color:var(--jd-on-navy); }
#jd .jd-jd__place-main{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
#jd .jd-jd__place-name{ font-family:var(--jd-font-heading); font-size:15px; font-weight:700; line-height:1.3; }
#jd .jd-jd__place-pubs{ font-size:var(--jd-fs-meta); line-height:1.35; color:var(--jd-text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#jd .jd-jd__place[aria-pressed="true"] .jd-jd__place-pubs{ color:var(--jd-on-navy-muted); }
#jd .jd-jd__place-count{ flex:none; min-width:28px; padding:2px 8px; border-radius:var(--jd-r-pill); background:var(--jd-tint-deep); text-align:center; font-weight:700; font-size:14px; color:var(--jd-navy); font-variant-numeric:tabular-nums; }
#jd .jd-jd__place[aria-pressed="true"] .jd-jd__place-count{ background:var(--jd-accent); color:var(--jd-navy-dark); }
#jd .jd-jd__unpinned{ margin:0; padding:14px 22px 18px; border-top:1px solid var(--jd-rule); font-size:var(--jd-fs-meta); line-height:1.45; color:var(--jd-text-muted); }
#jd .jd-jd__unpinned strong{ color:var(--jd-text); }

/* The map is FacetWP's map facet (map-facet.php). It fills the panel; its "Enable map filtering"
   button is hidden because the map is a fixed view whose pins follow the page's own filters. */
#jd .jd-jd__map #facetwp-map{ width:100% !important; height:100% !important; }
#jd .jd-jd__map .facetwp-map-filtering{ display:none; }
#jd .jd-jd__map .facetwp-facet,
#jd .jd-jd__map .facetwp-facet > div:first-child{ height:100%; margin:0; }

/* Clusters: the clusterer's CSS mode (cssClass in map-facet.php), counted per journal. */
#jd .jd-jd__cluster{ position:absolute; display:flex; align-items:center; justify-content:center; width:42px; height:42px; margin:-21px 0 0 -21px; border:2px solid var(--jd-surface); border-radius:50%; background:var(--jd-navy-dark); color:var(--jd-on-navy); font-family:var(--jd-font-heading); font-size:var(--jd-fs-fig); font-weight:700; line-height:1; box-shadow:0 0 0 5px var(--jd-on-navy-faint), var(--jd-lift-hover); cursor:pointer; }
#jd .jd-jd__cluster:hover{ background:var(--jd-navy); }

/* The popup on a pin (Google's InfoWindow, our content). Google caps its height and scrolls it. */
#jd .jd-jd__map .gm-style-iw-c{ max-height:none !important; padding:12px 14px !important; }
#jd .jd-jd__map .gm-style-iw-d{ max-height:none !important; overflow:visible !important; }
#jd .jd-jd__pin-card{ min-width:200px; max-width:260px; padding:2px 4px 2px 0; font-family:var(--jd-font-text); color:var(--jd-text); }
#jd .jd-jd__pin-card p{ margin:0; }
#jd .jd-jd__pin-pub{ font-size:var(--jd-fs-meta); line-height:1.35; color:var(--jd-text-muted); }
#jd .jd-jd__pin-pub span{ display:block; font-size:var(--jd-fs-sign); font-weight:700; letter-spacing:var(--jd-ls-sign); text-transform:uppercase; }
#jd .jd-jd__pin-title{ margin-top:6px; font-family:var(--jd-font-heading); font-size:var(--jd-fs-fig); font-weight:700; line-height:1.25; }
#jd .jd-jd__pin-title a{ color:var(--jd-navy-dark); text-decoration:underline; text-underline-offset:3px; }
#jd .jd-jd__pin-where{ margin-top:6px; font-size:var(--jd-fs-meta); color:var(--jd-text-muted); }

/* The card a popup's link jumps to. */
#jd .jd-jd__card.is-flash{ outline:3px solid var(--jd-accent); outline-offset:3px; }


/* -------------------------------------------------------------------- List */
#jd .jd-jd__list{ padding:56px 0 24px; }
#jd .jd-jd__bar{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; padding-bottom:12px; border-bottom:2px solid var(--jd-navy); }
#jd .jd-jd__bar h2{ margin:0; font-family:var(--jd-font-heading); font-size:var(--jd-fs-h2-lead); line-height:1.2; font-weight:700; color:var(--jd-navy-dark); }
#jd .jd-jd__count{ margin:0; color:var(--jd-text-muted); font-size:15.5px; font-variant-numeric:tabular-nums; }

#jd .jd-jd__controls{ display:flex; flex-wrap:wrap; align-items:center; gap:12px 28px; padding:18px 0; }
#jd .jd-jd__search{ flex:1 1 280px; max-width:380px; }
#jd .jd-jd__search input{ width:100%; height:46px; padding:0 14px; border:1px solid var(--jd-rule); border-radius:var(--jd-r-sm); background:var(--jd-surface); font-family:var(--jd-font-text); font-size:16px; color:var(--jd-text); }
#jd .jd-jd__search input::placeholder{ color:var(--jd-text-muted); opacity:1; }
#jd .jd-jd__group{ display:flex; flex-wrap:wrap; gap:8px; }
#jd .jd-jd__chip{ min-height:44px; padding:0 16px; border:1px solid var(--jd-rule); border-radius:var(--jd-r-pill); background:var(--jd-surface); font-family:var(--jd-font-text); font-size:15px; font-weight:600; color:var(--jd-navy); cursor:pointer; }
#jd .jd-jd__chip:hover{ border-color:var(--jd-navy); }
#jd .jd-jd__chip[aria-pressed="true"]{ border-color:var(--jd-navy); background:var(--jd-navy); color:var(--jd-on-navy); }

#jd .jd-jd__filtered{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; margin:0 0 18px; padding:12px 16px; border-radius:var(--jd-r-sm); background:var(--jd-accent-soft); border:1px solid var(--jd-accent-soft-rule); color:var(--jd-accent-ink); font-weight:600; }
#jd .jd-jd__filtered[hidden],
#jd .jd-jd__none[hidden]{ display:none; }
#jd .jd-jd__clear{ min-height:40px; padding:0 14px; border:1px solid var(--jd-accent-ink); border-radius:var(--jd-r-sm); background:transparent; color:var(--jd-accent-ink); font:inherit; font-weight:700; cursor:pointer; }
#jd .jd-jd__none{ padding:36px 0; font-family:var(--jd-font-heading); font-size:var(--jd-fs-lede); color:var(--jd-navy-dark); }

#jd .jd-jd__grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--jd-gap); align-items:stretch; }
#jd .jd-jd__card{ display:flex; flex-direction:column; background:var(--jd-surface); border:1px solid var(--jd-rule); border-radius:var(--jd-r-lg); box-shadow:var(--jd-lift); overflow:hidden; scroll-margin-top:96px; transition:box-shadow .15s, border-color .15s; }
#jd .jd-jd__card:hover{ box-shadow:var(--jd-lift-hover); }
#jd .jd-jd__card[hidden]{ display:none; }

/* The publisher leads: it is the top of every card */
#jd .jd-jd__pub{ display:flex; gap:14px; align-items:flex-start; min-height:124px; padding:18px 20px 16px; background:var(--jd-tint); border-bottom:1px solid var(--jd-rule); }
#jd .jd-jd__pub.is-plain{ background:var(--jd-rule-soft); }
#jd .jd-jd__mark{ flex:none; display:flex; align-items:center; justify-content:center; width:56px; height:56px; border-radius:var(--jd-r-md); background:var(--jd-surface); border:1px solid var(--jd-rule); overflow:hidden; }
#jd .jd-jd__mark img{ width:100%; height:100%; object-fit:contain; padding:4px; }
#jd .jd-jd__mark--mono{ background:var(--jd-navy); border-color:var(--jd-navy); color:var(--jd-on-navy); font-family:var(--jd-font-label); font-size:var(--jd-fs-fig); font-weight:700; letter-spacing:.04em; }
#jd .jd-jd__mark--none{ background:transparent; border-style:dashed; color:var(--jd-text-muted); font-size:22px; }
#jd .jd-jd__pub-text{ min-width:0; }
#jd .jd-jd__pub-label{ margin:0 0 2px; font-family:var(--jd-font-label); font-size:var(--jd-fs-sign); font-weight:700; letter-spacing:var(--jd-ls-sign); text-transform:uppercase; color:var(--jd-text-muted); }
#jd .jd-jd__pub-name{ margin:0; font-family:var(--jd-font-heading); font-size:var(--jd-fs-h3-card); line-height:1.3; font-weight:700; color:var(--jd-navy-dark); overflow-wrap:anywhere; }
#jd .jd-jd__pub-name a{ color:inherit; text-decoration:none; }
#jd .jd-jd__pub-name a:hover{ text-decoration:underline; text-decoration-color:var(--jd-accent); text-decoration-thickness:2px; }
#jd .jd-jd__pub-name--quiet{ font-weight:400; font-style:italic; color:var(--jd-text-muted); }
#jd .jd-jd__pub-kind{ display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; margin:7px 0 0; font-size:var(--jd-fs-meta); line-height:1.3; color:var(--jd-text-muted); }
#jd .jd-jd__kind{ display:inline-block; padding:2px 9px; border-radius:var(--jd-r-pill); font-weight:700; font-size:12.5px; line-height:1.4; }
#jd .jd-jd__kind--iaap{ background:var(--jd-navy); color:var(--jd-on-navy); }
#jd .jd-jd__kind--other{ background:var(--jd-accent-soft); color:var(--jd-accent-ink); }
#jd .jd-jd__kind--none{ background:var(--jd-tint-deep); color:var(--jd-text-muted); }
#jd .jd-jd__press{ margin:6px 0 0; font-size:var(--jd-fs-meta); color:var(--jd-text-muted); font-style:italic; }

#jd .jd-jd__body{ display:flex; gap:16px; align-items:flex-start; flex:1; padding:18px 20px 6px; }
#jd .jd-jd__cover{ flex:none; width:64px; height:88px; object-fit:cover; border-radius:3px; border:1px solid var(--jd-rule); box-shadow:var(--jd-lift); background:var(--jd-tint); }
#jd .jd-jd__body-text{ min-width:0; }
#jd .jd-jd__title{ margin:0 0 6px; font-family:var(--jd-font-heading); font-size:var(--jd-fs-lede); line-height:1.25; font-weight:700; color:var(--jd-navy-dark); overflow-wrap:anywhere; }
#jd .jd-jd__title a{ color:inherit; text-decoration:none; }
#jd .jd-jd__title a:hover{ text-decoration:underline; text-decoration-color:var(--jd-accent); text-decoration-thickness:2px; }
#jd .jd-jd__ext{ color:var(--jd-accent-ink); font-size:.8em; }
#jd .jd-jd__desc{ margin:0; font-size:15px; line-height:1.5; color:var(--jd-text); }

#jd .jd-jd__facts{ display:flex; flex-wrap:wrap; gap:6px; margin:0; padding:12px 20px 4px; list-style:none; }
#jd .jd-jd__facts li{ padding:2px 10px; border:1px solid var(--jd-rule); border-radius:var(--jd-r-pill); font-size:var(--jd-fs-meta); line-height:1.5; color:var(--jd-text-muted); }
#jd .jd-jd__facts li.is-free{ border-color:transparent; background:var(--jd-success-soft); color:var(--jd-navy-dark); font-weight:700; }
#jd .jd-jd__facts li.is-some{ border-color:transparent; background:var(--jd-caution-soft); color:var(--jd-navy-dark); font-weight:700; }
#jd .jd-jd__articles{ margin:0; padding:10px 20px 18px; font-size:15px; font-weight:700; }
#jd .jd-jd__articles a{ color:var(--jd-navy); text-decoration-color:var(--jd-accent); text-decoration-thickness:2px; }
#jd .jd-jd__card:not(:has(.jd-jd__articles)) .jd-jd__facts{ padding-bottom:20px; }

/* ------------------------------------------------------------------- About */
#jd .jd-jd__about{ margin-top:48px; padding:48px 0 72px; border-top:1px solid var(--jd-rule); background:var(--jd-surface); }
#jd .jd-jd__about-grid{ display:grid; grid-template-columns:260px minmax(0,1fr); gap:24px 56px; }
#jd .jd-jd__about h2{ margin:0; font-family:var(--jd-font-label); font-size:var(--jd-fs-sign); font-weight:700; letter-spacing:var(--jd-ls-sign); text-transform:uppercase; color:var(--jd-text-muted); }
#jd .jd-jd__about-text{ max-width:var(--jd-measure); }
#jd .jd-jd__about-text p{ margin:0 0 14px; font-size:var(--jd-fs-read-sm); line-height:1.6; }
#jd .jd-jd__about-text a{ color:var(--jd-navy); font-weight:600; text-decoration-color:var(--jd-accent); text-decoration-thickness:2px; }

/* ------------------------------------------------------------------ Narrow */
@media (max-width:1060px){
	#jd .jd-jd__grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
	#jd .jd-jd__hero-grid{ grid-template-columns:1fr; }
	#jd .jd-jd__atlas-card{ grid-template-columns:minmax(0,1fr); }
	#jd .jd-jd__places{ max-height:340px; border-left:0; border-top:1px solid var(--jd-rule); }
}
@media (max-width:680px){
	#jd .jd-jd__wrap{ padding:0 16px; }
	#jd .jd-jd__hero{ padding:40px 0 96px; }
	#jd .jd-jd__lede{ font-size:17px; }
	#jd .jd-jd__stats dd{ font-size:var(--jd-fs-fig-lg); }
	#jd .jd-jd__map{ height:340px; }
	#jd .jd-jd__map-note{ position:static; max-width:none; border-radius:0; box-shadow:none; border-top:1px solid var(--jd-rule); }
	#jd .jd-jd__grid{ grid-template-columns:1fr; }
	#jd .jd-jd__list{ padding-top:40px; }
	#jd .jd-jd__bar h2{ font-size:var(--jd-fs-h2); }
	#jd .jd-jd__search{ max-width:none; flex-basis:100%; }
	#jd .jd-jd__about-grid{ grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce){
	#jd .jd-jd__pin,#jd .jd-jd__card,#jd .jd-jd__btn{ transition:none; }
}
