/* ==========================================================================
   Newsletter: cards, list with search, issue pages.
   Loaded by the newsletter's pages and by a top page that shows the newest issues.
   ========================================================================== */

/* The text of an issue may mix Latin words (names, accents, currency signs) into Japanese or Chinese: Latin first, so
   that one word is never drawn in two fonts. "Inter Art" (build.py, nl-fonts.css) is Inter for letters and digits only,
   so that … ― “ ” × → keep the Japanese or Chinese shapes. */
:root { --font-art: "Inter Art", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif; }
:root:lang(zh-Hans) { --font-art: "Inter Art", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif; }
:root:lang(en) { --font-art: var(--font-jp); }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.nl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.3vw, 32px); }
.nl-cell { display: flex; min-width: 0; }
.nl-card {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: #fff;
  box-shadow: var(--shadow-s);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.nl-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.nl-card:focus-within { box-shadow: 0 0 0 3px var(--cyan-400), var(--shadow-m); }

.nl-thumb { position: relative; flex: none; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(155deg, #0b2259 0%, #06143d 100%); }
.nl-thumb picture { display: block; width: 100%; height: 100%; }
.nl-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.nl-thumb.pos-top img { object-position: 50% 0; }
.nl-thumb.pos-bottom img { object-position: 50% 100%; }
.nl-card:hover .nl-thumb img { transform: scale(1.06); }
.nl-topic, .nl-new {
  position: absolute; top: 14px;
  padding: 7px 14px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; line-height: 1.25; letter-spacing: .08em;
}
.nl-topic { left: 14px; max-width: calc(100% - 28px); background: rgba(6, 20, 61, .86); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.nl-new { right: 14px; background: var(--amber-500); color: var(--navy-900); box-shadow: 0 8px 20px rgba(245, 183, 10, .3); }

.nl-card-body { display: flex; flex: 1; flex-direction: column; padding: 22px 26px 24px; }
.nl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--muted); font-family: var(--font-en); font-size: .8125rem; font-weight: 600; line-height: 1.2; letter-spacing: .08em; }
.nl-flag { padding: 4px 10px; border: 1px solid #e3a600; border-radius: 999px; background: var(--amber-100); color: #7a5600; font-family: var(--font-jp); font-size: .6875rem; font-weight: 700; letter-spacing: .08em; }
.nl-card-title { margin-top: 12px; font-size: 1.125rem; line-height: 1.6; letter-spacing: .04em; text-wrap: pretty; }
.nl-card-title a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow-wrap: anywhere; transition: color .3s; outline: none; }
.nl-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }  /* the whole card opens the issue */
.nl-card:hover .nl-card-title a { color: var(--cyan-600); }
.nl-card-sum { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; margin-top: 10px; color: var(--muted); font-size: .875rem; line-height: 1.85; word-break: auto-phrase; overflow-wrap: anywhere; text-wrap: pretty; }
.nl-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 20px; }
.nl-regions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.nl-regions li { padding: 5px 12px; border-radius: 999px; background: var(--cyan-50); color: var(--cyan-600); font-size: .75rem; font-weight: 700; line-height: 1.3; letter-spacing: .06em; }
.nl-go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy-900); color: #fff; font-size: 16px; transition: transform .45s var(--ease), background-color .45s, color .45s; }
.nl-go svg { stroke-width: 2.4; }
.nl-card:hover .nl-go { background: var(--amber-500); color: var(--navy-900); transform: translateX(4px); }
.nl-card mark, .nl-snip mark { padding: 0 .08em; border-radius: 3px; background: var(--amber-100); color: inherit; }
.nl-snip { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--text); font-family: var(--font-art); font-size: .8125rem; line-height: 1.8; overflow-wrap: anywhere; }

/* the newest issue, shown large at the head of the list */
.nl-cell--feature { margin-bottom: clamp(20px, 2.3vw, 32px); }
.nl-card--feature { flex-direction: row; border-radius: var(--radius-xl); box-shadow: var(--shadow-m); }
.nl-card--feature .nl-thumb { flex: 0 0 57%; aspect-ratio: auto; min-height: clamp(320px, 31vw, 420px); }
.nl-card--feature .nl-thumb picture, .nl-card--feature .nl-thumb > img { position: absolute; inset: 0; }
.nl-card--feature .nl-topic, .nl-card--feature .nl-new { top: 20px; padding: 8px 16px; font-size: .8125rem; }
.nl-card--feature .nl-topic { left: 20px; }
.nl-card--feature .nl-new { right: 20px; }
.nl-card--feature .nl-card-body { justify-content: center; padding: clamp(28px, 3.4vw, 48px) clamp(26px, 3.4vw, 48px); }
.nl-card--feature .nl-meta { font-size: .875rem; }
.nl-card--feature .nl-card-title { margin-top: 16px; font-size: clamp(1.375rem, 1.05rem + 1.1vw, 1.8125rem); line-height: 1.5; }
.nl-card--feature .nl-card-title a { -webkit-line-clamp: 4; }
.nl-card--feature .nl-card-sum { margin-top: 16px; font-size: .9375rem; line-height: 1.95; -webkit-line-clamp: 4; }
.nl-card--feature .nl-card-foot { margin-top: 0; padding-top: 26px; }
.nl-card--feature .nl-go { width: 48px; height: 48px; font-size: 18px; }

@media (max-width: 1023px) {
  .nl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .nl-card--feature { flex-direction: column; border-radius: var(--radius-l); }
  .nl-card--feature .nl-thumb { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .nl-card--feature .nl-card-body { padding: 24px 26px 26px; }
}
@media (max-width: 639px) {
  .nl-grid { grid-template-columns: 1fr; }
  .nl-card-body, .nl-card--feature .nl-card-body { padding: 20px 22px 22px; }
}

/* --------------------------------------------------------------------------
   List page: search, filters, pages
   -------------------------------------------------------------------------- */
.page-n { margin-left: .6em; font-size: .36em; font-weight: 500; letter-spacing: .08em; opacity: .72; vertical-align: middle; }

.nl-panel {
  position: relative; z-index: 2;
  margin-top: calc(-1 * clamp(60px, 6.2vw, 88px));
  padding: clamp(18px, 2.4vw, 30px) clamp(18px, 2.6vw, 34px) clamp(20px, 2.4vw, 30px);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-l);
}
.nl > .container { display: flow-root; }  /* the panel reaches up into the band above it; the section itself stays where it is */
html:not(.js) .nl-panel, html:not(.js) .nl-status { display: none; }  /* without scripts the list and its pages work as they are */
html:not(.js) .nl > .container { padding-top: clamp(40px, 5vw, 64px); }

.nl-searchbox {
  display: flex; align-items: center; gap: 14px;
  height: 64px; padding: 0 12px 0 24px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--soft);
  transition: border-color .25s, background-color .25s, box-shadow .25s;
  cursor: text;
}
.nl-searchbox:focus-within { border-color: var(--cyan-500); background: #fff; box-shadow: 0 0 0 5px rgba(24, 160, 216, .14); }
.nl-searchbox > svg { flex: none; width: 22px; height: 22px; color: var(--cyan-600); stroke-width: 2.2; }
.nl-searchbox input {
  flex: 1; min-width: 0; height: 100%; padding: 0;
  border: 0; outline: 0; background: none; color: var(--ink);
  font: inherit; font-size: 1.0625rem; font-weight: 500; letter-spacing: .04em;
  -webkit-appearance: none; appearance: none;
}
.nl-searchbox input::placeholder { color: #8a94a8; font-weight: 400; }
.nl-searchbox input::-webkit-search-cancel-button, .nl-searchbox input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.nl-x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--muted); font-size: 16px; transition: background-color .25s, color .25s; }
.nl-x:hover { background: var(--card); color: var(--ink); }
.nl-x[hidden] { display: none; }

.nl-filter { display: grid; grid-template-columns: 5.6em minmax(0, 1fr); gap: 8px 16px; align-items: start; margin-top: 16px; }
.nl-filter + .nl-filter { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.nl-filter-cap { padding-top: 10px; color: var(--muted); font-size: .8125rem; font-weight: 700; line-height: 1.4; letter-spacing: .12em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 38px; padding: 6px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink);
  font-size: .875rem; font-weight: 500; line-height: 1.3; letter-spacing: .04em;
  transition: border-color .25s, background-color .25s, color .25s;
}
.chip:hover { border-color: var(--cyan-500); color: var(--cyan-600); }
.chip[aria-pressed="true"] { border-color: var(--navy-900); background: var(--navy-900); color: #fff; font-weight: 700; }

.nl-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; min-height: 40px; margin: clamp(28px, 3.4vw, 44px) 0 clamp(18px, 2vw, 24px); }
.nl-count { color: var(--ink); font-size: .9375rem; font-weight: 700; letter-spacing: .06em; }
.nl-reset { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: .8125rem; font-weight: 700; letter-spacing: .06em; transition: border-color .25s, color .25s; }
.nl-reset svg { width: 14px; height: 14px; stroke-width: 2.6; }
.nl-reset:hover { border-color: var(--cyan-500); color: var(--cyan-600); }
.nl-reset[hidden], .nl-grid[hidden], #nl-static[hidden] { display: none; }
.nl-none { padding: clamp(40px, 6vw, 72px) 24px; border: 1px dashed #c9d3e2; border-radius: var(--radius-l); background: #fff; color: var(--muted); text-align: center; }
.nl-more { margin-top: clamp(32px, 4vw, 52px); text-align: center; }
.nl-more .ico-down { transform: rotate(90deg); }
.nl-more .btn:hover .ico { transform: translateY(3px); }
.nl.is-busy .nl-count { color: var(--muted); }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: clamp(40px, 5vw, 72px); }
.pager a, .pager span { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 999px; font-family: var(--font-en); font-size: .9375rem; font-weight: 700; line-height: 1; }
.pager a { background: #fff; color: var(--ink); box-shadow: var(--shadow-s); transition: background-color .3s, color .3s, transform .3s var(--ease); }
.pager a:hover { background: var(--navy-900); color: #fff; transform: translateY(-2px); }
.pager [aria-current] { background: var(--navy-900); color: #fff; }
.pager .pager-gap { min-width: 24px; padding: 0; color: var(--muted); }
.pager-arrow svg { width: 16px; height: 16px; stroke-width: 2.4; }
.pager-prev svg { transform: rotate(180deg); }

@media (max-width: 639px) {
  .nl-searchbox { height: 56px; padding: 0 8px 0 18px; gap: 10px; }
  .nl-searchbox input { font-size: 1rem; }
  .nl-filter { grid-template-columns: 1fr; gap: 8px; }
  .nl-filter-cap { padding-top: 0; }
  .chip { min-height: 36px; padding: 5px 14px; font-size: .8125rem; }
}

/* --------------------------------------------------------------------------
   Issue page
   -------------------------------------------------------------------------- */
.art-hero { padding-bottom: clamp(56px, 6vw, 88px); }
.art-hero.page-hero--deep { padding-bottom: clamp(140px, 14vw, 216px); }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; color: rgba(255, 255, 255, .74); font-size: .8125rem; line-height: 1.4; letter-spacing: .06em; }
.art-meta time { font-family: var(--font-en); font-weight: 600; letter-spacing: .08em; }
.art-topic { padding: 7px 16px; border: 1px solid rgba(255, 255, 255, .34); border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 700; letter-spacing: .08em; transition: background-color .3s, border-color .3s; }
.art-topic:hover { border-color: #fff; background: rgba(255, 255, 255, .18); }
.art-upd, .art-min { position: relative; padding-left: 18px; }
.art-upd::before, .art-min::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--cyan-400); }
.art-title { margin-top: 22px; max-width: 24em; color: #fff; font-size: clamp(1.75rem, 1.12rem + 2.5vw, 2.875rem); font-weight: 800; line-height: 1.42; letter-spacing: .05em; overflow-wrap: anywhere; }
.art-lead { max-width: 42em; overflow-wrap: anywhere; }

.art-cover-wrap { position: relative; z-index: 1; margin-top: calc(-1 * clamp(92px, 10vw, 152px)); }
.art-cover picture { display: block; }
.art-cover img { display: block; width: 100%; height: auto; aspect-ratio: 2.2 / 1; object-fit: cover; border-radius: var(--radius-xl); background: var(--card); box-shadow: var(--shadow-l); }
.art-cover.pos-top img { object-position: 50% 0; }
.art-cover.pos-bottom img { object-position: 50% 100%; }
.art-cover figcaption { margin-top: 10px; color: var(--muted); font-size: .75rem; line-height: 1.6; text-align: right; }

.art-wrap { display: grid; grid-template-columns: minmax(0, 740px) 260px; justify-content: space-between; gap: clamp(40px, 6vw, 96px); padding-block: clamp(48px, 6vw, 88px) clamp(72px, 8vw, 120px); }
.art-wrap--single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.art-main { grid-column: 1; grid-row: 1; min-width: 0; }

.toc { grid-column: 2; grid-row: 1; position: sticky; top: 112px; align-self: start; max-height: calc(100vh - 150px); overflow: auto; padding: 4px 0 4px 24px; border-left: 2px solid var(--line); font-family: var(--font-art); }
.toc-cap { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .2em; }
.toc ol { margin-top: 14px; display: grid; gap: 4px; counter-reset: toc; }
.toc li { position: relative; counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 2em minmax(0, 1fr); padding: 7px 0; color: var(--muted); font-size: .8438rem; line-height: 1.65; letter-spacing: .03em; overflow-wrap: anywhere; transition: color .25s; }
.toc a::before { content: counter(toc, decimal-leading-zero); padding-top: .16em; color: var(--cyan-600); font-family: var(--font-en); font-size: .75rem; font-weight: 700; letter-spacing: .04em; }
.toc a:hover { color: var(--cyan-600); }
.toc li.is-active::before { content: ""; position: absolute; left: -26px; top: 6px; bottom: 6px; width: 2px; background: var(--cyan-500); }
.toc li.is-active a { color: var(--ink); font-weight: 700; }

@media (max-width: 1099px) {
  .art-wrap { grid-template-columns: minmax(0, 760px); justify-content: center; gap: 36px; }
  .art-main, .toc { grid-column: 1; grid-row: auto; }
  .toc { position: static; max-height: none; padding: 24px 26px 22px; border: 0; border-radius: var(--radius-l); background: var(--soft); }
  .toc li.is-active::before { display: none; }
  .toc li.is-active a { color: var(--muted); font-weight: 400; }
}
@media (max-width: 639px) {
  .art-cover img { aspect-ratio: 16 / 10; border-radius: var(--radius-l); }
}

/* text of an issue */
.art-body { color: var(--text); font-family: var(--font-art); font-size: 1.0625rem; line-height: 2.05; overflow-wrap: break-word; }
.art-body > * + * { margin-top: 1.6em; }
.art-body p { word-break: normal; }
.art-body h2 { position: relative; margin-top: 2.9em; padding-left: 22px; font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem); line-height: 1.5; scroll-margin-top: 116px; }
.art-body h2::before { content: ""; position: absolute; left: 0; top: .22em; bottom: .22em; width: 6px; border-radius: 3px; background: linear-gradient(180deg, var(--cyan-400), var(--blue-600)); }
.art-body h3 { position: relative; margin-top: 2.3em; padding-left: 21px; font-size: clamp(1.125rem, 1.06rem + .3vw, 1.3125rem); line-height: 1.6; }
.art-body h3::before { content: ""; position: absolute; left: 1px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan-500); box-shadow: 0 0 0 4px rgba(24, 160, 216, .16); }
.art-body h4 { margin-top: 2em; font-size: 1.0625rem; }
.art-body > :first-child { margin-top: 0; }
.art-body :is(h2, h3, h4) + * { margin-top: 1em; }
.art-body strong, .art-body b { color: var(--ink); font-weight: 700; }
.art-body mark { padding: 0 .1em; background: linear-gradient(transparent 58%, var(--amber-100) 58%); color: var(--ink); font-weight: 700; }
.art-body a { color: var(--cyan-600); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .25s; }
.art-body a:hover { color: var(--navy-900); }
.art-body a.ext .ico-svg { display: inline-block; width: .82em; height: .82em; margin: 0 .1em 0 .28em; vertical-align: -.06em; stroke-width: 2.2; }
.art-body ul, .art-body ol { display: grid; gap: .55em; }
.art-body ul > li { position: relative; padding-left: 1.5em; }
.art-body ul > li::before { content: ""; position: absolute; left: .3em; top: .86em; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-500); }
.art-body ol { counter-reset: n; }
.art-body ol > li { position: relative; padding-left: 2.6em; counter-increment: n; }
.art-body ol > li::before { content: counter(n); position: absolute; left: 0; top: .34em; display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--navy-900); color: #fff; font-family: var(--font-en); font-size: .76em; font-weight: 700; line-height: 1; }
/* a list that goes on after a paragraph starts where it left off (build: <ol start="N"> -> class from-N) */
.art-body ol.from-2 { counter-reset: n 1; }
.art-body ol.from-3 { counter-reset: n 2; }
.art-body ol.from-4 { counter-reset: n 3; }
.art-body ol.from-5 { counter-reset: n 4; }
.art-body ol.from-6 { counter-reset: n 5; }
.art-body ol.from-7 { counter-reset: n 6; }
.art-body ol.from-8 { counter-reset: n 7; }
.art-body ol.from-9 { counter-reset: n 8; }
.art-body ol.from-10 { counter-reset: n 9; }
.art-body ol.from-11 { counter-reset: n 10; }
.art-body ol.from-12 { counter-reset: n 11; }
.art-body ol.from-13 { counter-reset: n 12; }
.art-body ol.from-14 { counter-reset: n 13; }
.art-body ol.from-15 { counter-reset: n 14; }
.art-body ol.from-16 { counter-reset: n 15; }
.art-body ol.from-17 { counter-reset: n 16; }
.art-body ol.from-18 { counter-reset: n 17; }
.art-body ol.from-19 { counter-reset: n 18; }
.art-body ol.from-20 { counter-reset: n 19; }
.art-body ol.from-21 { counter-reset: n 20; }
.art-body ol.from-22 { counter-reset: n 21; }
.art-body ol.from-23 { counter-reset: n 22; }
.art-body ol.from-24 { counter-reset: n 23; }
.art-body ol.from-25 { counter-reset: n 24; }
.art-body ol.from-26 { counter-reset: n 25; }
.art-body ol.from-27 { counter-reset: n 26; }
.art-body ol.from-28 { counter-reset: n 27; }
.art-body ol.from-29 { counter-reset: n 28; }
.art-body ol.from-30 { counter-reset: n 29; }
.art-body li > :is(ul, ol) { margin-top: .55em; }
.art-body li > p + p { margin-top: .6em; }
.art-body dl { display: grid; gap: .4em; }
.art-body dt { margin-top: .8em; color: var(--ink); font-weight: 700; }
.art-body dd { padding-left: 1.2em; border-left: 2px solid var(--line); }
.art-body hr { height: 1px; margin-block: 2.8em; border: 0; background: var(--line); }
.art-body blockquote { position: relative; padding: 26px 30px 26px 78px; border-radius: var(--radius-m); background: var(--soft); color: var(--ink); }
.art-body blockquote::before { content: ""; position: absolute; left: 28px; top: 30px; width: 30px; height: 24px; background: var(--cyan-500); -webkit-mask: var(--glyph-quote) center / contain no-repeat; mask: var(--glyph-quote) center / contain no-repeat; }
.art-body blockquote > * + * { margin-top: .8em; }
.art-body code { padding: .12em .42em; border-radius: 6px; background: var(--card); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; letter-spacing: 0; }
.art-body pre { padding: 20px 24px; overflow-x: auto; border-radius: var(--radius-m); background: var(--navy-900); color: #e3ecfb; font-size: .875rem; line-height: 1.75; }
.art-body pre code { padding: 0; background: none; font-size: inherit; }

.callout { position: relative; padding: 26px 30px 28px; border: 1.5px solid var(--cyan-200); border-radius: var(--radius-l); background: var(--cyan-50); }
.callout > * + * { margin-top: .7em; }
.callout-title { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 1rem; font-weight: 700; line-height: 1.5; letter-spacing: .08em; }
.callout-title::before { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--cyan-500) var(--nl-ico-point) center / 16px no-repeat; }
.callout--caution { border-color: #f3d98b; background: #fffaeb; }
.callout--caution .callout-title::before { background-color: var(--amber-500); background-image: var(--nl-ico-caution); }
.callout--note { border: 1px solid var(--line); background: var(--soft); }
.callout--note .callout-title::before { background-color: var(--navy-900); background-image: var(--nl-ico-note); }
.callout { --nl-ico-point: url("../img/nl-ico-point.svg"); --nl-ico-caution: url("../img/nl-ico-caution.svg"); --nl-ico-note: url("../img/nl-ico-note.svg"); }

.fig picture { display: block; }
.fig img { display: block; width: 100%; height: auto; border-radius: var(--radius-m); background: var(--card); }
.fig figcaption { margin-top: 12px; color: var(--muted); font-size: .8125rem; line-height: 1.75; text-align: center; }
.fig-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.fig-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fig-row img { aspect-ratio: 4 / 3; object-fit: cover; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: #fff; box-shadow: var(--shadow-s); -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; min-width: 520px; font-size: .9375rem; line-height: 1.75; }
.table-wrap th, .table-wrap td { padding: 14px 18px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-wrap tr > :first-child { border-left: 0; }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.table-wrap thead th { border-color: rgba(255, 255, 255, .16); background: var(--navy-900); color: #fff; font-weight: 700; line-height: 1.5; }
.table-wrap tbody th { background: var(--soft); color: var(--ink); }
.table-wrap tbody tr:nth-child(even) td { background: #fafcfe; }
.table-wrap .ta-c { text-align: center; }
.table-wrap .ta-r { text-align: right; font-feature-settings: "tnum"; }

.footnote { margin-top: 3.2em; padding-top: 1.6em; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; line-height: 1.9; }
.footnote-cap { color: var(--ink); font-size: .75rem; font-weight: 700; letter-spacing: .2em; }
.art-body .footnote ol { margin-top: 10px; gap: .5em; }
.art-body .footnote ol > li { padding-left: 2.3em; overflow-wrap: anywhere; }
.art-body .footnote ol > li::before { top: .28em; width: 1.7em; height: 1.7em; background: var(--card); color: var(--ink); }
.art-body sup { font-size: .72em; line-height: 0; }
.art-body .footnote-ref { margin-left: .1em; padding: .1em .42em; border-radius: 999px; background: var(--cyan-100); font-family: var(--font-en); text-decoration: none; }
.art-body .footnote-backref { margin-left: .3em; font-family: var(--font-en); text-decoration: none; }

.art-end { margin-top: clamp(52px, 6vw, 80px); }
.art-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.art-tags a { display: block; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: .8125rem; font-weight: 700; line-height: 1.4; letter-spacing: .06em; transition: border-color .25s, color .25s; }
.art-tags a:hover { border-color: var(--cyan-500); color: var(--cyan-600); }
.art-note { margin-top: 24px; padding: 20px 24px; border-radius: var(--radius-m); background: var(--soft); color: var(--muted); font-size: .8125rem; line-height: 1.95; }
.byline { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 24px; align-items: center; margin-top: 20px; padding: 26px 30px; border: 1px solid var(--line); border-radius: var(--radius-l); background: #fff; }
.byline img { width: 56px; height: auto; }
.byline-name { color: var(--ink); font-size: 1rem; font-weight: 700; line-height: 1.5; letter-spacing: .08em; }
.byline-text { margin-top: 4px; color: var(--muted); font-size: .8125rem; line-height: 1.8; }
.byline .tlink { white-space: nowrap; }
.sec-foot--only { margin-top: 0; }

@media (max-width: 767px) {
  .art-body { font-size: 1rem; line-height: 2; }
  .art-body blockquote { padding: 60px 22px 22px; }
  .art-body blockquote::before { left: 22px; top: 22px; }
  .callout { padding: 22px 22px 24px; }
  .fig-row--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .byline { grid-template-columns: auto minmax(0, 1fr); padding: 22px 22px 24px; }
  .byline .tlink { grid-column: 1 / -1; justify-self: start; }
}

/* --------------------------------------------------------------------------
   English and Chinese
   -------------------------------------------------------------------------- */
html:lang(en) :is(.nl-card-title, .nl-topic, .nl-new, .nl-regions li, .chip, .nl-count, .nl-reset, .nl-filter-cap, .art-topic, .art-meta,
  .toc a, .toc-cap, .callout-title, .byline-name, .art-tags a, .footnote-cap) { letter-spacing: .005em; }
html:lang(en) .nl-card-title { line-height: 1.38; }
html:lang(en) .nl-card-sum { line-height: 1.6; }
html:lang(en) .nl-card--feature .nl-card-title { line-height: 1.25; letter-spacing: -.015em; }
html:lang(en) .nl-card--feature .nl-card-sum { line-height: 1.65; }
html:lang(en) .nl-searchbox input { letter-spacing: 0; }
html:lang(en) .art-title { font-weight: 800; line-height: 1.18; letter-spacing: -.026em; }
html:lang(en) .art-body { line-height: 1.8; }
html:lang(en) .art-body :is(h2, h3) { line-height: 1.3; }
html:lang(en) .art-body ul > li::before { top: .72em; }
html:lang(en) .art-body ol > li::before { top: .2em; }
html:lang(en) .table-wrap table, html:lang(en) .art-note, html:lang(en) .byline-text, html:lang(en) .footnote { line-height: 1.6; }
html:lang(en) .nl-filter { grid-template-columns: 8.6em minmax(0, 1fr); }
@media (max-width: 639px) {
  html:lang(en) .nl-filter { grid-template-columns: 1fr; }
}

/* Lists are grids, and a grid item is as wide as its longest word: a long address in a list of sources (or a table
   in a list item) pushed the page sideways on phones. Items may shrink, and links may break anywhere. */
.art-body :is(li, dt, dd) { min-width: 0; }
.art-body a, .art-body code { overflow-wrap: anywhere; }

/* The note on the nature of the article: one short line at the very end of the article, below the company's box */
.art-note { margin-top: 28px; padding: 16px 0 0; border-top: 1px solid var(--line); border-radius: 0; background: none; color: var(--muted); font-size: .75rem; line-height: 1.8; }
