/*
Theme Name: NIICE 2026
Theme URI: https://niice.org.np/
Author: NIICE
Description: A light, fast theme for the Nepal Institute for International Cooperation and Engagement. It changes the design only; all posts, pages, events, profiles and files are read from WordPress as before. Two looks, chosen in Customize: Wilson Center style and Brookings style.
Version: 1.3.5
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: niice
*/

/* Design concept 2 for niice.org.np, in the manner of wilsoncenter.org.
   The menu, its drop-downs and every headline, name and title are the present website's own. */
:root { --navy: #0b2a47; --blue: #0f6fb0; --sky: #e8f2f9; --accent: #e8792b; --ink: #1d2733; --muted: #5d6a79; --line: #dde3ea; --paper: #f5f7f9; --sans: "Inter", Arial, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; font: 17.5px/1.6 var(--sans); color: var(--ink); background: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* top bar and header */
.util { background: var(--navy); color: #cdd9e5; font-size: 14px; font-weight: 600; }
.util .wrap { display: flex; justify-content: flex-end; gap: 22px; height: 34px; align-items: center; }
.util a:hover { color: #fff; }
header.main { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
header.main .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 76px; max-width: 1320px; }
.brand { flex: none; }
.brand img { height: 54px; width: auto; }
.hbtn { display: flex; gap: 8px; align-items: center; }
.btn { display: inline-block; white-space: nowrap; font: 700 14.5px/1 var(--sans); padding: 11px 16px; border-radius: 3px; background: var(--blue); color: #fff; border: 0; cursor: pointer; }
.btn.alt { background: var(--accent); }
.btn.ghost { background: none; color: var(--navy); border: 1px solid var(--line); }
.search { display: grid; place-items: center; width: 38px; height: 38px; }
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; }
.search:hover svg { stroke: var(--blue); }
.menu-btn { display: none; }

/* the menu: same items and drop-downs as the present site */
nav.primary > ul { display: flex; gap: 2px; }
nav.primary li { position: relative; }
nav.primary a { display: block; font-weight: 700; font-size: 14.5px; letter-spacing: .02em; color: var(--navy); padding: 10px 11px; white-space: nowrap; }
nav.primary > ul > li > a { padding: 28px 8px; }
nav.primary li.has > a::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); margin: 0 0 3px 7px; }
nav.primary ul ul { display: none; position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue); box-shadow: 0 12px 28px rgba(11,42,71,.12); padding: 6px 0; }
nav.primary ul ul a { white-space: normal; font-weight: 600; padding: 9px 16px; line-height: 1.35; }
nav.primary ul ul a:hover, nav.primary > ul > li:hover > a { color: var(--blue); }
nav.primary ul ul li.has > a::after { transform: rotate(-45deg); float: right; margin-top: 5px; }
nav.primary ul ul ul { top: -9px; left: 100%; }
nav.primary li:hover > ul, nav.primary li:focus-within > ul { display: block; }
nav.primary > ul > li:nth-last-child(-n+3) > ul { left: auto; right: 0; }

.label { font: 700 13px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.date { font-size: 14.5px; color: var(--muted); }
h1, h2, h3 { margin: 0; font-weight: 800; color: var(--navy); line-height: 1.25; letter-spacing: -.005em; }
.pic { display: block; background: var(--sky); overflow: hidden; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.item h3 a:hover { color: var(--blue); }

/* lead story */
.hero { position: relative; background: var(--navy); color: #fff; }
.hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .5; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,42,71,.96) 0%, rgba(11,42,71,.78) 45%, rgba(15,111,176,.35) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 96px; }
.hero .text { max-width: 560px; border-left: 4px solid var(--accent); padding-left: 22px; }
.hero .label { color: #9fd3f5; }
.hero h1 { color: #fff; font-size: clamp(24px, 2.4vw, 30px); margin: 10px 0 12px; }
.hero p { margin: 0 0 14px; color: #dbe6f0; }
.hero .date { color: #b9c9d9; }
.hero .btn { margin-top: 18px; }

.three { position: relative; z-index: 2; margin-top: -34px; }
.three .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.three a { display: flex; align-items: center; gap: 18px; background: #fff; padding: 24px 26px; border-top: 4px solid var(--c); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 14px 30px rgba(11,42,71,.10); transition: background .2s; }
.three a:first-child { border-left: 1px solid var(--line); }
.three svg { width: 34px; height: 34px; flex: none; fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.three b { display: block; font-size: 19px; font-weight: 800; color: var(--navy); line-height: 1.25; }
.three i { font: 700 13.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.three i::after { content: " ›"; }
.three a:hover { background: var(--paper); }
.trend { border-bottom: 1px solid var(--line); }
.trend .wrap { display: flex; gap: 10px 22px; align-items: center; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; font-size: 15px; }
.trend b { font: 800 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.trend a { color: var(--blue); font-weight: 600; }
.trend a:hover { text-decoration: underline; }

section { padding: 46px 0; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.head h2 { font-size: 23px; padding-left: 12px; border-left: 4px solid var(--accent); }
.head a { font: 700 14.5px/1 var(--sans); color: var(--blue); white-space: nowrap; }
.head a::after { content: " ›"; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
.cards .pic { aspect-ratio: 16 / 10; margin-bottom: 13px; }
.cards h3 { font-size: 18.5px; margin: 7px 0 7px; font-weight: 700; }
.cards p { margin: 0 0 6px; font-size: 16px; color: var(--muted); }

.focus { background: var(--paper); }
.cards.four { grid-template-columns: repeat(4, 1fr); gap: 26px 22px; }
.cards.four h3 { font-size: 17px; }
.books.four { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.books.four h3 { font-size: 14.5px; font-weight: 600; }
.forums { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.forums a { display: block; border: 1px solid var(--line); background: #fff; }
.forums .pic { aspect-ratio: 1; }
.forums .pic.none { display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 800; font-size: 15px; text-align: center; padding: 10px; }
.forums b { display: block; padding: 10px 12px 12px; font-size: 15px; line-height: 1.35; color: var(--navy); }
.forums a:hover b { color: var(--blue); }
.video { display: block; position: relative; aspect-ratio: 16 / 9; background: var(--navy) center / cover; }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,42,71,.85), rgba(11,42,71,.1) 60%); }
.video b { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 1; color: #fff; font-size: 17px; line-height: 1.35; }
.video i { position: absolute; z-index: 1; left: 50%; top: 44%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: var(--accent); }
.video i::after { content: ""; position: absolute; left: 23px; top: 18px; border: 11px solid transparent; border-left: 17px solid #fff; border-right: 0; }
.aboutus p { max-width: 62em; margin: 0 0 20px; font-size: 18px; color: #33404d; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tiles a { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue); padding: 20px 18px; font-weight: 700; font-size: 17px; color: var(--navy); line-height: 1.35; }
.tiles a:hover { border-top-color: var(--accent); color: var(--blue); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips a { font-size: 14.5px; font-weight: 600; padding: 8px 13px; background: #fff; border: 1px solid var(--line); border-radius: 100px; color: var(--navy); }
.chips a:hover { border-color: var(--blue); color: var(--blue); }

/* experts: small photographs; a click opens the larger one */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 24px; }
.person { display: flex; gap: 14px; align-items: center; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.person img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; background: var(--sky); flex: none; }
.person b { display: block; font-size: 16.5px; color: var(--navy); line-height: 1.3; }
.person span { font-size: 14.5px; color: var(--muted); line-height: 1.35; display: block; }
.person:hover b { color: var(--blue); }
dialog { border: 0; padding: 0; max-width: 420px; width: calc(100% - 32px); box-shadow: 0 24px 60px rgba(11,42,71,.35); }
dialog::backdrop { background: rgba(11,42,71,.6); }
dialog img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--sky); }
dialog .in { padding: 20px 22px 24px; }
dialog h3 { font-size: 21px; }
dialog p { margin: 4px 0 16px; color: var(--muted); font-size: 16px; }
dialog .x { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border: 0; background: rgba(11,42,71,.75); color: #fff; font-size: 20px; cursor: pointer; border-radius: 50%; }

.two { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; }
.docs li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.docs .ico { width: 44px; height: 54px; border: 1px solid var(--line); border-top: 3px solid var(--accent); font: 800 12px/50px var(--sans); text-align: center; color: var(--muted); letter-spacing: .06em; }
.docs h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 4px; }
.docs p { margin: 0 0 4px; font-size: 15.5px; color: var(--muted); }
.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.books .pic { aspect-ratio: 2 / 3; margin-bottom: 10px; box-shadow: 0 6px 18px rgba(11,42,71,.16); }
.books h3 { font-size: 16px; font-weight: 700; }

.doors { background: var(--navy); padding: 0; }
.doors .wrap { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 24px; }
.doors a { padding: 28px 22px; color: #fff; font-weight: 700; font-size: 16.5px; border-left: 1px solid rgba(255,255,255,.14); }
.doors a:last-child { border-right: 1px solid rgba(255,255,255,.14); }
.doors a:hover { background: var(--blue); }
.doors a::after { content: " ›"; color: var(--accent); }

.sub { background: var(--sky); padding: 34px 0; }
.sub .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.sub h2 { font-size: 21px; }
.sub form { display: flex; gap: 8px; flex: 0 1 420px; }
.sub input { flex: 1; min-width: 0; font: inherit; padding: 11px 13px; border: 1px solid var(--line); border-radius: 3px; }

footer { background: #071d32; color: #c3d0dd; font-size: 15px; padding: 44px 0 22px; }
footer .cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
footer h4 { font: 800 13px/1 var(--sans); letter-spacing: .1em; color: #fff; margin: 0 0 14px; }
footer a { display: block; padding: 3px 0; text-transform: capitalize; }
footer a:hover { color: #fff; }
footer .legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 32px; padding-top: 16px; font-size: 14px; }

@media (max-width: 1160px) {
  .menu-btn { display: inline-block; }
  nav.primary { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 16px 30px rgba(11,42,71,.14); max-height: calc(100vh - 120px); overflow: auto; }
  nav.primary.open { display: block; }
  nav.primary > ul { display: block; padding: 6px 0 14px; }
  nav.primary > ul > li > a, nav.primary a { padding: 12px 20px; white-space: normal; }
  nav.primary ul ul, nav.primary ul ul ul { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 4px 16px; min-width: 0; }
  nav.primary li.has > a::after, nav.primary ul ul li.has > a::after { display: none; }
  nav.primary ul ul a { font-weight: 500; padding: 8px 20px; }
  .cards, .cards.four { grid-template-columns: 1fr 1fr; } .forums { grid-template-columns: repeat(3, 1fr); } .tiles { grid-template-columns: 1fr 1fr; } .people { grid-template-columns: 1fr 1fr; } .two { grid-template-columns: 1fr; gap: 40px; } .doors .wrap { grid-template-columns: 1fr 1fr; } footer .cols { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; } header.main .wrap { height: 64px; } .brand img { height: 42px; } .hbtn .btn:not(.menu-btn) { display: none; }
  .three { margin-top: -22px; } .three .wrap { grid-template-columns: 1fr; padding: 0 16px; } .three a { border-left: 1px solid var(--line); padding: 16px 18px; box-shadow: none; } .three a:first-child { box-shadow: 0 -8px 20px rgba(11,42,71,.10); } .three svg { width: 28px; height: 28px; } .three b { font-size: 17.5px; } .hero .wrap { padding-bottom: 60px; }
  .util .wrap { justify-content: space-between; gap: 10px; } .util a { white-space: nowrap; } .util a:nth-child(n+3) { display: none; }
  .hero .wrap { padding-top: 40px; padding-bottom: 40px; } .hero .text { padding-left: 16px; }
  section { padding: 34px 0; } .head h2 { font-size: 21px; }
  .cards, .tiles { grid-template-columns: 1fr; } .cards.four { grid-template-columns: 1fr 1fr; gap: 20px 14px; } .cards.four h3 { font-size: 16px; } .forums { grid-template-columns: 1fr 1fr; } .books.four { grid-template-columns: 1fr 1fr; } .people { grid-template-columns: 1fr; gap: 16px; } .doors .wrap { grid-template-columns: 1fr; padding: 0; } .doors a { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); padding: 20px 16px; }
  .books { gap: 12px; } .books h3 { font-size: 15px; } footer .cols { grid-template-columns: 1fr 1fr; }
}

/* polish */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
header.main { box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(11,42,71,.05); border-bottom: 0; }
.util .wrap { justify-content: space-between; }
.util nav { display: flex; gap: 22px; }
.soc { display: flex; gap: 6px; align-items: center; }
.soc a { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.soc a:hover { background: rgba(255,255,255,.14); }
.soc svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
footer .legal { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; padding-top: 58px; }
.hero .bg { opacity: .42; }
.latest { background: rgba(7,29,50,.62); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.16); padding: 6px 22px 10px; }
.latest > b { display: block; font: 800 13px/1 var(--sans); letter-spacing: .12em; color: #fff; padding: 16px 0 12px; border-bottom: 2px solid var(--accent); }
.latest a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.latest a:last-child { border-bottom: 0; }
.latest strong { display: block; font-size: 16.5px; font-weight: 700; line-height: 1.35; color: #fff; margin: 5px 0 4px; }
.latest a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.latest .label { font-size: 12px; }

.label { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item, .cards > *, .books > *, .two > *, .hero .wrap > * { min-width: 0; }
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.item .pic img { transition: transform .45s ease; }
.item:hover .pic img { transform: scale(1.04); }
.cards .pic, .books .pic { border-radius: 2px; }
section { padding: 52px 0; }
.head { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 26px; }
.head h2 { letter-spacing: .02em; }

/* commentaries: the first one larger */
#cards .item:first-child { grid-column: span 2; display: grid; grid-template-columns: 1.15fr 1fr; gap: 0 24px; align-content: start; }
#cards .item:first-child .pic { margin: 0; grid-row: 1 / span 6; aspect-ratio: 16 / 11; }
#cards .item:first-child h3 { font-size: 22px; margin: 8px 0 10px; }
#cards .item:first-child p { font-size: 16.5px; }

.tiles a { position: relative; padding: 22px 20px 24px; transition: box-shadow .2s, transform .2s; }
.tiles a span { display: block; font: 800 14px/1 var(--sans); color: var(--blue); margin-bottom: 12px; }
.tiles a::after { content: "\203A"; position: absolute; right: 16px; bottom: 12px; font-size: 22px; color: var(--accent); }
.tiles a:hover { box-shadow: 0 10px 24px rgba(11,42,71,.10); transform: translateY(-2px); }

.person { background: #fff; border: 1px solid var(--line); padding: 14px 16px; transition: box-shadow .2s, border-color .2s; }
.person:hover { border-color: var(--blue); box-shadow: 0 8px 20px rgba(11,42,71,.08); }
.people { gap: 14px; }

#events .pic { aspect-ratio: 6 / 5; }
.forums a { transition: box-shadow .2s, transform .2s; }
.forums a:hover { box-shadow: 0 10px 24px rgba(11,42,71,.12); transform: translateY(-2px); }
.forums .pic img { object-fit: contain; background: #fff; }
.docs li { transition: background .2s; padding-left: 10px; padding-right: 10px; margin: 0 -10px; }
.docs li:hover { background: var(--paper); }

.aboutus { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.aboutus::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,.04); }
.aboutus .head { border-bottom-color: rgba(255,255,255,.18); }
.aboutus .head h2 { color: #fff; }
.aboutus p { color: #e3ecf5; font-size: 20px; line-height: 1.65; max-width: 46em; position: relative; }
.aboutus .btn { background: var(--accent); position: relative; }
.doors { background: #071d32; }
.sub { background: #fff; border-top: 1px solid var(--line); }

@media (max-width: 1160px) { .hero .wrap { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 640px) { .util nav a:nth-child(n+3) { display: none; } .hero .wrap { padding-top: 36px; padding-bottom: 60px; } #cards .item:first-child { grid-column: auto; display: block; } #cards .item:first-child .pic { margin-bottom: 13px; aspect-ratio: 16 / 10; } #cards .item:first-child h3 { font-size: 19px; } .aboutus p { font-size: 18px; } .person { padding: 12px; } }
.flogo { height: 62px; width: auto; margin-bottom: 30px; }
header.main .wrap { height: 84px; }
nav.primary > ul > li > a { padding-top: 32px; padding-bottom: 32px; }
@media (max-width: 640px) { header.main .wrap { height: 66px; } .flogo { height: 50px; } }

/* ---------- Brookings style, used when chosen in Customize ---------- */
body.design-brookings { --navy: #003a70; --blue: #00649f; --accent: #ff9e1b; --ink: #191919; --muted: #5a5f66; --line: #d9dde2; --paper: #f4f6f8; --sky: #e6eef5; }
body.design-brookings { color: var(--ink); font-size: 18px; }
body.design-brookings .wrap { max-width: 1240px; }
body.design-brookings h1, body.design-brookings h2, body.design-brookings h3 { font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
body.design-brookings .util { background: var(--navy); font-weight: 500; letter-spacing: .04em; }
body.design-brookings .util .wrap { height: 40px; gap: 18px; }
body.design-brookings .util nav { margin-left: auto; gap: 20px; }
body.design-brookings .btn { border-radius: 2px; background: var(--blue); }
body.design-brookings .btn.top { padding: 9px 16px; background: var(--blue); align-self: stretch; display: grid; place-items: center; border-radius: 0; }
body.design-brookings .btn.top:hover { background: #0b7bc0; }
body.design-brookings header.main { box-shadow: none; border-bottom: 1px solid var(--line); }
body.design-brookings header.main .wrap { height: 78px; max-width: 1240px; }
body.design-brookings .brand img { height: 46px; }
body.design-brookings nav.primary a { font-weight: 500; font-size: 15.5px; color: var(--ink); letter-spacing: 0; }
body.design-brookings nav.primary > ul > li > a { padding: 29px 10px; }
body.design-brookings nav.primary li.has > a::after { border-color: var(--muted); width: 5px; height: 5px; border-width: 1.5px; }
body.design-brookings nav.primary ul ul { border-top: 2px solid var(--navy); box-shadow: 0 10px 24px rgba(0,0,0,.10); }
body.design-brookings nav.primary ul ul a { font-weight: 500; }
body.design-brookings nav.primary ul ul a:hover, body.design-brookings nav.primary > ul > li:hover > a { color: var(--blue); }
body.design-brookings .search svg { stroke: var(--ink); stroke-width: 2; }
body.design-brookings .hero { background: #fff; color: var(--ink); }
body.design-brookings .hero::after, body.design-brookings .hero .bg { display: none; }
body.design-brookings .hero .wrap { display: grid; grid-template-columns: 1.08fr 1fr; gap: 44px; align-items: start; padding-top: 34px; padding-bottom: 38px; }
body.design-brookings .hero .lead .pic { aspect-ratio: 16 / 10; margin-bottom: 18px; }
body.design-brookings .hero .lead .label { color: var(--blue); }
body.design-brookings .hero h1 { color: var(--ink); font-size: clamp(24px, 2.3vw, 30px); line-height: 1.2; margin: 8px 0 10px; }
body.design-brookings .hero h1 a:hover, body.design-brookings .more h3 a:hover { color: var(--blue); }
body.design-brookings .hero p { color: #3c4148; margin: 0 0 10px; }
body.design-brookings .hero .date { color: var(--muted); }
body.design-brookings .more { display: grid; gap: 0; }
body.design-brookings .more .item { display: grid; grid-template-columns: 132px 1fr; gap: 18px; padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); align-items: start; }
body.design-brookings .more .item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
body.design-brookings .more .pic { aspect-ratio: 1; }
body.design-brookings .more .item > div { min-width: 0; }
body.design-brookings .more h3 { font-size: 19.5px; line-height: 1.28; margin: 0 0 8px; }
body.design-brookings .more .label { color: var(--muted); font-weight: 600; font-size: 12.5px; margin-bottom: 4px; }
body.design-brookings .three { margin-top: 0; padding-bottom: 8px; }
body.design-brookings .three .wrap { gap: 20px; }
body.design-brookings .three a, body.design-brookings .three a:first-child { box-shadow: none; border: 1px solid var(--line); border-top: 3px solid var(--c); padding: 20px 22px; }
body.design-brookings .three a:hover { background: var(--paper); }
body.design-brookings .three b { color: var(--ink); font-weight: 700; }
body.design-brookings section { padding: 44px 0; }
body.design-brookings .head { border-bottom: 0; border-top: 1px solid #191919; padding: 18px 0 0; margin-bottom: 24px; }
body.design-brookings .head h2 { border-left: 0; padding-left: 0; font-size: 24px; letter-spacing: -.01em; text-transform: none; }
body.design-brookings .head a { background: var(--blue); color: #fff; padding: 9px 14px; border-radius: 2px; font-weight: 600; font-size: 14.5px; }
body.design-brookings .head a:hover { background: var(--navy); }
body.design-brookings .head a::after { content: ""; }
body.design-brookings .label { color: var(--blue); letter-spacing: .08em; }
body.design-brookings .cards, body.design-brookings #cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 24px; }
body.design-brookings #cards .item:first-child { grid-column: auto; display: block; }
body.design-brookings #cards .item:first-child .pic { aspect-ratio: 16 / 10; margin-bottom: 13px; }
body.design-brookings #cards .item:first-child h3, body.design-brookings .cards h3 { font-size: 18.5px; line-height: 1.3; margin: 7px 0; font-weight: 700; }
body.design-brookings #cards .item:first-child p, body.design-brookings .cards p { font-size: 16px; }
body.design-brookings .item h3 a:hover { color: var(--blue); }
body.design-brookings .focus { background: var(--paper); }
body.design-brookings .tiles a { border: 1px solid var(--line); border-top: 3px solid var(--navy); color: var(--ink); }
body.design-brookings .tiles a span { color: var(--muted); }
body.design-brookings .tiles a::after { color: var(--blue); }
body.design-brookings .chips a { color: var(--ink); border-radius: 2px; }
body.design-brookings .docs .ico { border-top-color: var(--blue); }
body.design-brookings .person { border-radius: 0; }
body.design-brookings .person b { color: var(--ink); }
body.design-brookings .forums b { color: var(--ink); }
body.design-brookings .aboutus { background: var(--navy); }
body.design-brookings .aboutus::before { display: none; }
body.design-brookings .aboutus .wrap { display: grid; grid-template-columns: 300px 1fr; gap: 20px 56px; align-items: start; }
body.design-brookings .aboutus .head { border-top: 0; padding: 0; margin: 0; }
body.design-brookings .aboutus .head h2 { font-size: 36px; line-height: 1.05; color: #fff; }
body.design-brookings .aboutus p { font-size: 19px; max-width: none; margin: 4px 0 0; }
body.design-brookings .aboutus .btn { background: var(--accent); color: #191919; grid-column: 2; justify-self: start; margin-top: 4px; }
body.design-brookings .doors { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
body.design-brookings .doors a { color: var(--ink); border-color: var(--line) !important; }
body.design-brookings .doors a:hover { background: var(--paper); }
body.design-brookings .doors a::after { color: var(--blue); }
body.design-brookings .sub { background: var(--paper); border-top: 0; }
body.design-brookings footer { background: var(--navy); }
body.design-brookings .video i { background: var(--accent); }
body.design-brookings .video::after { background: linear-gradient(0deg, rgba(0,58,112,.85), rgba(0,58,112,.05) 60%); }
@media (max-width: 1160px) { body.design-brookings .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
body.design-brookings .cards, body.design-brookings #cards, body.design-brookings .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.design-brookings .aboutus .wrap { grid-template-columns: 1fr; }
body.design-brookings .aboutus .btn { grid-column: 1; }
body.design-brookings .btn.top { display: none; }
 }
@media (max-width: 640px) { body.design-brookings .hero .wrap { padding-top: 20px; padding-bottom: 26px; }
body.design-brookings .more .item { grid-template-columns: 96px 1fr; gap: 14px; }
body.design-brookings .more h3 { font-size: 17.5px; }
body.design-brookings .three .wrap { gap: 10px; }
body.design-brookings .three { margin-top: 0; }
body.design-brookings .three a:first-child { box-shadow: none; }
body.design-brookings .cards, body.design-brookings #cards { grid-template-columns: 1fr; }
body.design-brookings .cards.four { grid-template-columns: 1fr 1fr; }
body.design-brookings .aboutus .head h2 { font-size: 28px; }
body.design-brookings .head a { padding: 8px 11px; }
 }

/* ------------------------------------------------------------------
   Inner pages and WordPress pieces
   ------------------------------------------------------------------ */
.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--navy); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button.search { background: none; border: 0; padding: 0; cursor: pointer; }
nav.primary .current-menu-item > a, nav.primary .current-menu-ancestor > a { color: var(--blue); }
.util nav a { text-transform: uppercase; }

.searchbar { background: var(--paper); border-top: 1px solid var(--line); padding: 14px 0; }
.searchform { display: flex; gap: 8px; max-width: 640px; }
.searchform input[type=search] { flex: 1; min-width: 0; font: inherit; padding: 11px 13px; border: 1px solid var(--line); border-radius: 3px; background: #fff; }

.band { background: var(--paper); color: var(--ink); padding: 34px 0; border-bottom: 1px solid var(--line); }
body.design-wilson .band { background: var(--navy); color: #fff; border-bottom: 4px solid var(--accent); }
.band h1 { color: var(--ink); font-size: clamp(23px, 2.3vw, 30px); text-transform: none; }
body.design-wilson .band { background: var(--navy); color: #fff; border-bottom: 4px solid var(--accent); }
body.design-wilson .band h1 { color: #fff; }
.wrap.narrow { max-width: 800px; }

.article { padding: 44px 0 56px; }
.article .label { margin-bottom: 10px; }
.article h1 { font-size: clamp(25px, 2.6vw, 33px); line-height: 1.22; }
.byline { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 15.5px; color: var(--muted); margin: 14px 0 26px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.byline span + span::before { content: "·"; margin-right: 18px; }
.leadpic { margin: 0 0 28px; }
.leadpic img { width: 100%; height: auto; }

.entry { font-size: 19px; line-height: 1.75; color: #232d38; overflow-wrap: break-word; }
.entry.wide { max-width: none; font-size: 18px; }
.entry p { margin: 0 0 1.25em; }
.entry h2, .entry h3, .entry h4 { margin: 1.6em 0 .6em; }
.entry h2 { font-size: 24px; } .entry h3 { font-size: 21px; } .entry h4 { font-size: 19px; }
.entry a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.entry a.btn, .entry .btn { color: #fff; text-decoration: none; }
.entry img { height: auto; }
.entry ul, .entry ol { list-style: revert; padding-left: 1.3em; margin: 0 0 1.25em; }
.entry li { margin-bottom: .4em; }
.entry blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); color: var(--navy); font-size: 20.5px; }
.entry table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 17px; display: block; overflow-x: auto; }
.entry th, .entry td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
.entry th { background: var(--paper); }
.entry iframe, .entry video, .entry embed { max-width: 100%; }
.entry .alignleft { float: left; margin: 6px 22px 14px 0; max-width: 50%; }
.entry .alignright { float: right; margin: 6px 0 14px 22px; max-width: 50%; }
.entry .aligncenter { display: block; margin: 0 auto 1.25em; }
.entry .wp-caption { max-width: 100%; }
.entry .wp-caption-text, .entry figcaption { font-size: 15px; color: var(--muted); margin-top: 6px; }
.entry::after { content: ""; display: block; clear: both; }
.entry input[type=text], .entry input[type=email], .entry input[type=url], .entry input[type=tel], .entry input[type=password], .entry input[type=number], .entry textarea, .entry select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 3px; max-width: 100%; }
.entry input[type=submit], .entry button[type=submit] { font: 700 14.5px/1 var(--sans); padding: 12px 18px; border: 0; border-radius: 3px; background: var(--blue); color: #fff; cursor: pointer; }

.share { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.share b { font: 800 13px/1 var(--sans); letter-spacing: .1em; color: var(--navy); margin-right: 6px; }
.share a { font-size: 14.5px; font-weight: 600; padding: 8px 13px; border: 1px solid var(--line); border-radius: 100px; color: var(--navy); }
.share a:hover { border-color: var(--blue); color: var(--blue); }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); font-weight: 700; font-size: 15.5px; color: var(--navy); }
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue); }

.years { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.years b { font: 800 13px/1 var(--sans); letter-spacing: .1em; color: var(--navy); margin-right: 8px; }
.years a { font-size: 15px; font-weight: 600; padding: 6px 12px; border: 1px solid var(--line); border-radius: 100px; color: var(--navy); }
.years a:hover { border-color: var(--blue); color: var(--blue); }
section.intro { padding-bottom: 0; }
section.intro + section { padding-top: 34px; }

.sub .subform { flex: 0 1 460px; }
.sub .subform form, .sub .subform .mc4wp-form-fields { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0; }
.sub .subform p { margin: 0; display: contents; }
.sub .subform label { font-size: 15px; color: var(--muted); }
.sub .subform input[type=email], .sub .subform input[type=text] { flex: 1; min-width: 160px; font: inherit; padding: 11px 13px; border: 1px solid var(--line); border-radius: 3px; }
.sub .subform input[type=submit], .sub .subform button { font: 700 14.5px/1 var(--sans); padding: 12px 16px; border: 0; border-radius: 3px; background: var(--blue); color: #fff; cursor: pointer; }
.video i { top: 50%; }
footer .cols a { text-transform: capitalize; }

/* membership plugin: experts directory with small, even photographs */
/* Commentaries on the home page: every card the same, picture on top, then subject, headline, summary and date */
#cards .item:first-child { grid-column: auto; display: block; }
#cards .item:first-child .pic { aspect-ratio: 16 / 10; margin: 0 0 13px; grid-row: auto; }
#cards .item:first-child h3 { font-size: 18.5px; margin: 7px 0; }
#cards .item:first-child p { font-size: 16px; }
/* a card without a picture still keeps its place in the row */
.cards .item > .label:first-child { margin-top: 0; }

/* home page: six book reviews across the full width, like the Forums row */
.books.six { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.books.six h3 { font-size: 15.5px; line-height: 1.35; }
@media (max-width: 1160px) { .books.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .books.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the row of four links under About Us, lined up with the page edges */
.doors .wrap { padding: 0 24px; }
.doors a { padding: 26px 22px; }
.doors a:first-child { padding-left: 0; border-left: 0 !important; }
.doors a:last-child { border-right: 0 !important; }
@media (max-width: 640px) { .doors .wrap { padding: 0 16px; } .doors a, .doors a:first-child { padding: 18px 0; border-left: 0 !important; } }

/* newsletter sign-up: title on the left, a full-width box and button on the right */
.sub .wrap { flex-wrap: nowrap; }
.sub .subform { flex: 0 1 540px; margin-left: auto; }
.sub .subform form { display: block; width: 100%; margin: 0; }
.sub .subform .mc4wp-form-fields { display: flex !important; flex-wrap: nowrap; gap: 8px; align-items: stretch; }
.sub .subform .mc4wp-form-fields p { display: flex !important; flex: 1 1 auto; gap: 8px; margin: 0; align-items: stretch; }
.sub .subform .mc4wp-form-fields label { display: contents; }
.sub .subform input[type=email], .sub .subform input[type=text] { flex: 1 1 auto; width: 100%; min-width: 0; height: 46px; box-sizing: border-box; }
.sub .subform input[type=submit], .sub .subform button { flex: none; height: 46px; padding: 0 22px; white-space: nowrap; }
@media (max-width: 640px) { .sub .wrap { flex-wrap: wrap; } .sub .subform { flex-basis: 100%; } }

/* experts on the home page: slightly larger photographs */
.person img { width: 76px; height: 76px; }

/* An expert's profile: a NIICE banner in place of the empty grey box, the photograph overlapping it, then name and biography */
body.um-page-user .band { display: none; }
body.um-page-user #main > section { padding-top: 34px; }
.um-profile .um-cover { height: 210px !important; position: relative; overflow: hidden; background: linear-gradient(110deg, #0b2a47 0%, #0f4f86 58%, #0f6fb0 100%) !important; }
.um-profile .um-cover-e { height: 210px !important; position: relative; z-index: 1; }
.um-profile .um-cover-e img { width: 100%; height: 100%; object-fit: cover; }
.um-profile .um-cover::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px 56px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px 56px), url("assets/niice-logo-white.png") right 34px center / 300px auto no-repeat; opacity: .9; }
.um-profile .um-cover::after { content: "NIICE EXPERT"; position: absolute; left: 252px; bottom: 24px; font: 800 14px/1 var(--sans); letter-spacing: .16em; color: #fff; padding-left: 12px; border-left: 3px solid var(--accent); }
.um-profile .um-cover .um-cover-add, .um-profile .um-cover-overlay { z-index: 2; }
.um-profile .um-profile-photo a.um-profile-photo-img { border: 5px solid #fff !important; box-shadow: 0 10px 26px rgba(11, 42, 71, .18); }
.um-profile .um-name a { font-family: var(--sans) !important; font-size: 29px !important; font-weight: 800 !important; color: var(--navy) !important; letter-spacing: -.01em; }
.um-profile .um-meta-text { font-size: 18px !important; line-height: 1.75 !important; color: #232d38 !important; margin-top: 10px !important; }
.um-profile .um-profile-meta { padding-bottom: 10px; }
@media (max-width: 800px) {
  .um-profile .um-cover, .um-profile .um-cover-e { height: 150px !important; }
  .um-profile .um-cover::before { background-size: auto, auto, 170px auto; background-position: 0 0, 0 0, right 16px top 18px; }
  .um-profile .um-cover::after { left: auto; right: 16px; bottom: 16px; }
}

/* Each person is a compact row: small round photograph on the left, name and title beside it, four to a line.
   The plugin lays its cards out with a script; these rules replace that layout with a plain grid. */
.um-members.um-members-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; height: auto !important; margin: 0 0 8px !important; }
.um-members-grid .um-gutter-sizer { display: none !important; }
.um-members-grid .um-member { position: static !important; left: auto !important; top: auto !important; width: auto !important; float: none !important; margin: 0 !important; padding: 16px 18px !important; display: flex !important; align-items: center; gap: 14px; text-align: left !important; background: #fff !important; border: 1px solid var(--line) !important; border-radius: 0 !important; box-shadow: none !important; transition: border-color .2s, box-shadow .2s; }
.um-members-grid .um-member:hover { border-color: var(--blue) !important; box-shadow: 0 8px 20px rgba(0, 0, 0, .07) !important; }
.um-members-grid .um-member-photo { padding: 0 !important; margin: 0 !important; flex: none; text-align: left !important; }
.um-members-grid .um-member-photo a { display: block !important; width: 84px; height: 84px; cursor: zoom-in; }
.um-members-grid .um-member-photo img { width: 84px !important; height: 84px !important; border-radius: 50% !important; object-fit: cover; border: 0 !important; display: block; }
.um-members-grid .um-member-card { display: block !important; padding: 0 !important; margin: 0 !important; text-align: left !important; min-width: 0; flex: 1; }
.um-members-grid .um-member-name { display: block !important; width: 100% !important; margin: 0 0 4px !important; padding: 0 !important; line-height: 1.3 !important; text-align: left !important; }
.um-members-grid .um-member-name a { display: block !important; text-align: left !important; }
.um-members-grid .um-member-name a { font-family: var(--sans) !important; font-size: 17px !important; font-weight: 700 !important; color: var(--ink) !important; text-decoration: none !important; }
.um-members-grid .um-member:hover .um-member-name a { color: var(--blue) !important; }
.um-members-grid .um-member-tagline { display: block !important; width: 100% !important; padding: 0 !important; margin: 0 !important; text-align: left !important; color: var(--muted) !important; font-size: 14.5px !important; line-height: 1.4 !important; }
.um-members-grid .um-members-edit-btn, .um-members-grid .um-member-status, .um-members-grid .um-member-meta-main, .um-members-grid .um-member-more, .um-members-grid .um-member-less, .um-members-grid .um-member-cover { display: none !important; }
.um-members-total, .um-members-intro { display: none !important; }
.um-directory { margin-bottom: 0 !important; }
/* the group titles above each row of people */
.entry section { padding: 0; }
.entry.wide h2 { font-size: 21px; margin: 44px 0 20px; padding-top: 18px; border-top: 1px solid #191919; }
.entry.wide > :first-child h2:first-child, .entry.wide > h2:first-child { margin-top: 0; }
@media (max-width: 1160px) { .um-members.um-members-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .um-members.um-members-grid { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  .band { padding: 24px 0; }
  .article { padding: 28px 0 40px; }
  .entry { font-size: 18.5px; }
  .entry .alignleft, .entry .alignright { float: none; margin: 0 0 1.25em; max-width: 100%; }
  .searchform { flex-wrap: wrap; }
}

/* ---------- version 1.3: home page blocks ---------- */
/* research centres: the name over a picture */
.areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.areas a { position: relative; display: flex; align-items: flex-end; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--blue)) center / cover; color: #fff; }
.areas a::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,29,50,.92) 0%, rgba(7,29,50,.45) 48%, rgba(7,29,50,.12) 100%); }
.areas a::after { content: ""; position: absolute; left: 18px; bottom: 0; width: 46px; height: 4px; background: var(--accent); transition: width .3s; }
.areas a:hover::after { width: calc(100% - 36px); }
.areas b { position: relative; padding: 18px 18px 22px; font-size: 19px; font-weight: 800; line-height: 1.3; }
/* research papers: the cover page */
.docs.covers li { grid-template-columns: 92px 1fr; gap: 18px; }
.docs .cover { display: block; border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(11,42,71,.10); background: #fff; }
.docs .cover img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.docs.covers .ico { width: 92px; height: 122px; line-height: 118px; }
/* experts: navy over the world at night */
.experts-band { position: relative; background: #071d32 center / cover; }
.experts-band::before { content: ""; position: absolute; inset: 0; background: rgba(11,42,71,.78); }
.experts-band .wrap { position: relative; }
.experts-band .head h2, .experts-band .head a { color: #fff; }
.experts-band .person { background: rgba(255,255,255,.96); border-color: transparent; }
/* video gallery: four equal cards on a navy band */
.videoband { background: #071d32; }
.videoband .head { border-bottom-color: rgba(255,255,255,.16); }
.videoband .head h2, .videoband .head a { color: #fff; }
.vids { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.vids .vid { display: flex; flex-direction: column; background: #0d2a47; border: 1px solid rgba(255,255,255,.10); color: #fff; transition: transform .25s, border-color .25s, box-shadow .25s; }
.vids .vid:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.28); box-shadow: 0 16px 34px rgba(0,0,0,.35); }
.vids .shot { display: block; position: relative; aspect-ratio: 16 / 9; background: #000 center / cover no-repeat; overflow: hidden; }
.vids .shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,29,50,.55), rgba(7,29,50,0) 55%); transition: opacity .25s; }
.vids .shot i { position: absolute; z-index: 1; left: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,.35); transition: transform .25s; }
.vids .shot i::after { content: ""; position: absolute; left: 16px; top: 13px; border: 8px solid transparent; border-left: 13px solid #fff; border-right: 0; }
.vids .vid:hover .shot i { transform: scale(1.12); }
.vids .txt { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; border-top: 3px solid var(--accent); }
.vids b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 15.5px; font-weight: 700; line-height: 1.4; color: #fff; }
.vids .date { display: block; margin-top: auto; padding-top: 12px; color: #9fb4c9; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
dialog#vid { width: min(960px, 94vw); max-width: none; padding: 0; border: 0; background: #000; overflow: visible; }
dialog#vid::backdrop { background: rgba(7,29,50,.86); }
dialog#vid .frame { aspect-ratio: 16 / 9; }
dialog#vid iframe { display: block; width: 100%; height: 100%; border: 0; }
dialog#vid .x { top: -42px; right: 0; }
/* partners: the logos pass slowly from right to left */
.partners { padding: 60px 0 64px; }
.partners .head { margin-bottom: 30px; }
@media (max-width: 640px) { .partners { padding: 38px 0 42px; } .partners .head { margin-bottom: 22px; } }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee .track { display: flex; width: max-content; animation: niice-marquee calc(var(--n, 40) * 3.2s) linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { flex: none; width: 190px; margin-right: 18px; border: 1px solid var(--line); background: #fff; }
.marquee img { display: block; width: 100%; height: auto; }
@keyframes niice-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } .marquee .track { animation: none; } }
/* the Partners page */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.partner-grid figure { margin: 0; border: 1px solid var(--line); background: #fff; text-align: center; }
.partner-grid img { display: block; width: 100%; height: auto; }
.partner-grid figcaption { padding: 8px 8px 10px; font-size: 14px; font-weight: 600; color: var(--muted); border-top: 1px solid var(--line); }
/* version 1.3.1 */
nav.primary a { font-size: 16.5px; }
.cards .pic.paper { background: var(--paper); }
.cards .pic.paper img, .cards .pic.paper canvas { width: 100%; height: 100%; object-fit: contain; padding: 10px 0; }
canvas.pdfcover { display: block; width: 100%; background: #fff linear-gradient(180deg, #fff 0 3px, var(--accent) 3px 6px, #fff 6px) no-repeat; }
.docs .cover canvas { height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.books.all { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px 22px; }
.books.all button.pic { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.books.all button.pic img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: 0 6px 18px rgba(11,42,71,.16); transition: transform .25s; }
.books.all button.pic:hover img { transform: translateY(-4px); }
.books.all h3 { margin: 12px 0 0; padding: 0; border: 0; font-size: 15.5px; line-height: 1.35; }
dialog#book { width: min(720px, 94vw); max-width: none; max-height: 86vh; overflow: auto; }
dialog#book .in { padding: 26px 28px 28px; }
dialog#book h3 { margin: 0 30px 14px 0; }
dialog#book #book-about { font-size: 15.5px; line-height: 1.65; color: var(--ink); }
dialog#book #book-about p { margin: 0 0 12px; color: inherit; font-size: inherit; }
@media (max-width: 640px) { .books.all { grid-template-columns: 1fr 1fr; gap: 20px 14px; } dialog#book .in { padding: 20px 18px; } }
/* with five items the menu has room to breathe */
@media (min-width: 1161px) { nav.primary a { padding-left: 15px; padding-right: 15px; } nav.primary > ul { gap: 10px; } nav.primary > ul > li > a { padding-left: 16px; padding-right: 16px; letter-spacing: .06em; } }
@media (min-width: 1360px) { nav.primary > ul { gap: 22px; } }
@media (max-width: 1160px) { .areas { grid-template-columns: 1fr 1fr; } .vids { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .areas { gap: 12px; } .areas b { font-size: 16.5px; padding: 12px 12px 16px; } .areas a::after { left: 12px; } .docs.covers li { grid-template-columns: 70px 1fr; gap: 14px; } .docs.covers .ico { width: 70px; height: 94px; line-height: 90px; } .vids { grid-template-columns: 1fr; gap: 12px; } .vids .vid { flex-direction: row; } .vids .shot { flex: none; width: 42%; align-self: stretch; aspect-ratio: auto; min-height: 96px; } .vids .shot i { width: 32px; height: 32px; left: 8px; bottom: 8px; } .vids .shot i::after { left: 12px; top: 9px; border-width: 7px; border-left-width: 11px; border-right-width: 0; } .vids .txt { padding: 10px 12px 12px; border-top: 0; border-left: 3px solid var(--accent); } .vids b { font-size: 14px; } .marquee span { width: 140px; margin-right: 12px; } dialog#vid .x { top: 6px; right: 6px; } }

/* ------------------------------------------------------------------
   Movement: gentle, and switched off for visitors who ask for less motion
   ------------------------------------------------------------------ */
/* the lead picture drifts slowly, as on the Wilson Center banner */
/* Each banner picture pans and zooms slowly; the script fades from one to the next every few seconds. */
.hero { overflow: hidden; }
.hero .bg { opacity: 0; transition: opacity 1.8s ease; animation: niice-drift 11s ease-in-out infinite alternate; will-change: transform, opacity; }
.hero .bg.on { opacity: .62; }
/* a lighter tint on the right, so the moving picture can be seen behind the Latest panel */
body.design-wilson .hero::after { background: linear-gradient(90deg, rgba(11,42,71,.95) 0%, rgba(11,42,71,.72) 42%, rgba(15,111,176,.18) 100%); }
.hero .bg:nth-child(2) { animation-name: niice-drift-b; }
.hero .bg:nth-child(3) { animation-name: niice-drift-c; }
.hero .bg:nth-child(4) { animation-name: niice-drift-b; animation-direction: alternate-reverse; }
@keyframes niice-drift { from { transform: scale(1.06) translate3d(-3%, 1%, 0); } to { transform: scale(1.34) translate3d(4.5%, -3.5%, 0); } }
@keyframes niice-drift-b { from { transform: scale(1.34) translate3d(4.5%, 3%, 0); } to { transform: scale(1.06) translate3d(-3.5%, -2%, 0); } }
@keyframes niice-drift-c { from { transform: scale(1.08) translate3d(0, 3.5%, 0); } to { transform: scale(1.32) translate3d(-4.5%, -3.5%, 0); } }
.hero .bgv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero .text > *, .hero .latest { opacity: 0; transform: translateY(14px); animation: niice-rise .7s ease forwards; }
.hero .text > :nth-child(1) { animation-delay: .10s; }
.hero .text > :nth-child(2) { animation-delay: .20s; }
.hero .text > :nth-child(3) { animation-delay: .30s; }
.hero .text > :nth-child(4) { animation-delay: .38s; }
.hero .text > :nth-child(5) { animation-delay: .46s; }
.hero .latest { animation-delay: .35s; }
@keyframes niice-rise { to { opacity: 1; transform: none; } }

/* sections and cards rise into place as they come into view (the script adds "reveal" and then "in") */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* things respond when pointed at */
.btn { transition: background-color .2s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(11, 42, 71, .18); }
.cards .item, .books .item { transition: transform .25s ease; }
.cards .item:hover, .books .item:hover { transform: translateY(-3px); }
.three a { transition: transform .25s ease, box-shadow .25s ease, background-color .2s; }
.three a:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(11, 42, 71, .16); }
.three a svg { transition: transform .3s ease; }
.three a:hover svg { transform: scale(1.12); }
.head h2 { position: relative; }
.chips a, .years a, .share a { transition: border-color .2s, color .2s, background-color .2s, transform .2s; }
.chips a:hover { transform: translateY(-2px); }
nav.primary ul ul { animation: niice-drop .18s ease; transform-origin: top; }
@keyframes niice-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
nav.primary > ul > li > a { position: relative; }
nav.primary > ul > li > a::before { content: ""; position: absolute; left: 8px; right: 8px; bottom: 18px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
nav.primary > ul > li:hover > a::before, nav.primary > ul > li.current-menu-item > a::before, nav.primary > ul > li.current-menu-ancestor > a::before { transform: scaleX(1); }
dialog[open] { animation: niice-pop .22s ease; }
@keyframes niice-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
header.main { transition: box-shadow .25s ease; }
header.main.scrolled { box-shadow: 0 8px 24px rgba(11, 42, 71, .12); }
.video i { transition: transform .25s ease; }
.video:hover i { transform: scale(1.12); }

@media (max-width: 1160px) { nav.primary > ul > li > a::before { display: none; } nav.primary ul ul { animation: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero .text > *, .hero .latest { opacity: 1 !important; transform: none !important; }
  .hero .bg { transform: none !important; }
}
