/* NewsCore - Dictionary. Colours and sizes are variables: override them on .nwc-lx from Divi (Advanced > Custom CSS) if needed. */
.nwc-lx {
	--nwc-lx-accent: #e2133a;
	--nwc-lx-accent-dark: #a80d2a;
	--nwc-lx-ink: #171d29;
	--nwc-lx-text: #3c4252;
	--nwc-lx-muted: #737a8c;
	--nwc-lx-line: #e3e6ec;
	--nwc-lx-soft: #f5f6f9;
	--nwc-lx-card: #fff;
	--nwc-lx-radius: var(--nwc-radius, 0);
	--nwc-lx-shadow: 0 1px 2px rgba(23, 29, 41, .06), 0 8px 24px rgba(23, 29, 41, .07);
	--nwc-lx-shadow-hover: 0 2px 4px rgba(23, 29, 41, .08), 0 16px 36px rgba(23, 29, 41, .13);
	color: var(--nwc-lx-text);
	font-size: 16px;
	line-height: 1.6;
}
.nwc-lx *, .nwc-lx *::before, .nwc-lx *::after { box-sizing: border-box; }
.nwc-lx [hidden] { display: none !important; }
.nwc-lx h1, .nwc-lx h2 { color: var(--nwc-lx-ink); padding: 0; }
.nwc-lx--rtl { letter-spacing: 0; }
.nwc-lx--rtl * { letter-spacing: 0 !important; }

/* Hero (search view) */
.nwc-lx-hero { position: relative; overflow: hidden; background: var(--nwc-lx-ink); color: #c9cdd6; border-radius: var(--nwc-radius, 0); padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 56px) clamp(24px, 4vw, 44px); margin: 0 0 8px; }
.nwc-lx-hero::before { content: ""; position: absolute; inset-inline-end: -120px; top: -140px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(226, 19, 58, .5), rgba(226, 19, 58, 0) 70%); pointer-events: none; }
.nwc-lx-hero::after { content: "道"; position: absolute; inset-inline-end: 4%; bottom: -40px; font-size: 220px; line-height: 1; font-weight: 700; color: rgba(255, 255, 255, .04); pointer-events: none; }
.nwc-lx-hero > * { position: relative; z-index: 1; }
.nwc-lx .nwc-lx-hero .nwc-lx__title { color: #fff; }
.nwc-lx__intro { font-size: 17px; line-height: 1.6; max-width: 680px; margin: 0 0 26px; color: #c9cdd6; }
.nwc-lx-hero .nwc-lx-search__label { color: #fff; opacity: .7; }
.nwc-lx-hero .nwc-lx-search__bar { border-color: transparent; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
.nwc-lx-hero .nwc-lx-search__hint { color: #c9cdd6; opacity: .8; }

/* Heading */
.nwc-lx__title { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; font-weight: 800; margin: 0 0 12px; }
.nwc-lx__again { font-size: 20px; margin: 44px 0 14px; }

/* Search */
.nwc-lx-search { margin: 0 0 8px; }
.nwc-lx-search__label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--nwc-lx-muted); margin: 0 0 10px; }
.nwc-lx-search__bar { display: flex; align-items: stretch; gap: 0; background: var(--nwc-lx-card); border: 2px solid var(--nwc-lx-line); border-radius: var(--nwc-radius, 0); padding: 6px; box-shadow: var(--nwc-lx-shadow); transition: border-color .2s ease, box-shadow .2s ease; }
.nwc-lx-search__bar:focus-within { border-color: var(--nwc-lx-accent); box-shadow: 0 0 0 4px rgba(226, 19, 58, .12), var(--nwc-lx-shadow); }
.nwc-lx .nwc-lx-search__input { flex: 1 1 auto; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: 0; font: inherit; font-size: 18px; color: var(--nwc-lx-ink); padding: 10px 18px !important; margin: 0; }
.nwc-lx .nwc-lx-search__input::-webkit-search-cancel-button { cursor: pointer; }
.nwc-lx .nwc-lx-search__discipline { flex: 0 0 auto; max-width: 200px; border: 0 !important; border-inline-start: 1px solid var(--nwc-lx-line) !important; border-radius: var(--nwc-radius, 0) !important; background-color: transparent !important; font: inherit; font-size: 15px; color: var(--nwc-lx-text); padding: 0 14px !important; margin: 0; cursor: pointer; }
.nwc-lx-search__button { flex: 0 0 auto; border: 0; border-radius: var(--nwc-radius, 0); background: var(--nwc-lx-accent); color: #fff; font: inherit; font-weight: 700; font-size: 16px; padding: 0 28px; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.nwc-lx-search__button:hover { background: var(--nwc-lx-accent-dark); }
.nwc-lx-search__button:active { transform: scale(.97); }
.nwc-lx-search__hint { font-size: 14px; color: var(--nwc-lx-muted); margin: 12px 0 0; padding: 0 20px; }

/* Loading */
.nwc-lx-results { position: relative; min-height: 4px; }
.nwc-lx.is-loading .nwc-lx-results::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px; border-radius: var(--nwc-radius, 0); background: linear-gradient(90deg, transparent, var(--nwc-lx-accent), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: nwc-lx-bar 1s linear infinite; }
@keyframes nwc-lx-bar { from { background-position: -50% 0; } to { background-position: 150% 0; } }

.nwc-lx-results__head { font-size: 14px; font-weight: 700; color: var(--nwc-lx-muted); margin: 26px 0 12px; }
.nwc-lx-results__more { font-size: 14px; color: var(--nwc-lx-muted); margin: 14px 0 0; }
.nwc-lx-notice { background: var(--nwc-lx-soft); border-inline-start: 4px solid var(--nwc-lx-accent); border-radius: var(--nwc-radius, 0); padding: 12px 16px; margin: 20px 0; font-size: 15px; }

/* Cards */
.nwc-lx-cards { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.nwc-lx-card { margin: 0 !important; padding: 0 !important; animation: nwc-lx-in .35s ease both; }
.nwc-lx-card:nth-child(2) { animation-delay: .04s; }
.nwc-lx-card:nth-child(3) { animation-delay: .08s; }
.nwc-lx-card:nth-child(4) { animation-delay: .12s; }
.nwc-lx-card:nth-child(n+5) { animation-delay: .16s; }
@keyframes nwc-lx-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.nwc-lx-card__link { display: flex; flex-direction: column; gap: 6px; height: 100%; background: var(--nwc-lx-card); border: 1px solid var(--nwc-lx-line); border-radius: var(--nwc-radius, 0); padding: 20px 22px; box-shadow: var(--nwc-lx-shadow); color: inherit !important; text-decoration: none !important; position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.nwc-lx-card__link::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 4px; height: 100%; background: var(--nwc-lx-accent); transform: scaleY(0); transform-origin: top; transition: transform .25s ease; }
.nwc-lx-card__link:hover, .nwc-lx-card__link:focus-visible { transform: translateY(-4px); box-shadow: var(--nwc-lx-shadow-hover); border-color: transparent; }
.nwc-lx-card__link:hover::before, .nwc-lx-card__link:focus-visible::before { transform: scaleY(1); }
.nwc-lx-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.nwc-lx-card__title { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 20px; line-height: 1.25; color: var(--nwc-lx-ink); direction: ltr; unicode-bidi: isolate; }
.nwc-lx-card__script { font-size: 22px; line-height: 1.2; color: var(--nwc-lx-accent); white-space: nowrap; }
.nwc-lx-card__tr { font-weight: 600; color: var(--nwc-lx-ink); }
.nwc-lx-card__def { font-size: 14px; line-height: 1.55; color: var(--nwc-lx-muted); }
.nwc-lx-card__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }

.nwc-lx-chip { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1; color: var(--nwc-lx-text); background: var(--nwc-lx-soft); border-radius: var(--nwc-radius, 0); padding: 6px 10px; white-space: nowrap; }
.nwc-lx-chip--origin { background: var(--nwc-lx-ink); color: #fff; }

/* Not found + request */
.nwc-lx-missing { margin: 26px 0 0; padding: 26px 28px; border: 2px dashed rgba(226, 19, 58, .35); border-radius: var(--nwc-radius, 0); background: linear-gradient(135deg, rgba(226, 19, 58, .05), rgba(23, 29, 41, .03)); animation: nwc-lx-in .35s ease both; }
.nwc-lx-missing__title { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 22px; color: var(--nwc-lx-ink); margin: 0 0 6px; }
.nwc-lx-missing__text { margin: 0 0 18px; }
.nwc-lx-missing__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.nwc-lx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border: 2px solid var(--nwc-lx-ink); border-radius: var(--nwc-radius, 0); background: transparent; color: var(--nwc-lx-ink) !important; font: inherit; font-weight: 700; font-size: 15px; padding: 8px 24px; text-decoration: none !important; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.nwc-lx-btn:hover { background: var(--nwc-lx-ink); color: #fff !important; transform: translateY(-2px); }
.nwc-lx-btn--primary { background: var(--nwc-lx-accent); border-color: var(--nwc-lx-accent); color: #fff !important; }
.nwc-lx-btn--primary:hover { background: var(--nwc-lx-accent-dark); border-color: var(--nwc-lx-accent-dark); }
.nwc-lx-request { margin: 22px 0 0; background: var(--nwc-lx-card); border: 1px solid var(--nwc-lx-line); border-radius: var(--nwc-radius, 0); box-shadow: var(--nwc-lx-shadow-hover); padding: 24px 28px 8px; animation: nwc-lx-in .3s ease both; }
.nwc-lx-request__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 6px; }
.nwc-lx-request__title { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 20px; color: var(--nwc-lx-ink); margin: 0; }
.nwc-lx-request__close { border: 0; background: var(--nwc-lx-soft); color: var(--nwc-lx-ink); width: 36px; height: 36px; border-radius: var(--nwc-radius, 0); font-size: 22px; line-height: 1; cursor: pointer; }

/* Term of the day */
.nwc-lx-day { margin: 40px 0 0; max-width: 520px; }
.nwc-lx-day__label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--nwc-lx-accent); margin: 0 0 10px; }
.nwc-lx-day .nwc-lx-cards { grid-template-columns: 1fr; }

/* Term page */
.nwc-lx-crumbs { font-size: 14px; color: var(--nwc-lx-muted); margin: 0 0 18px; }
.nwc-lx-crumbs a { color: var(--nwc-lx-accent); font-weight: 600; text-decoration: none; }
.nwc-lx-term { animation: nwc-lx-in .4s ease both; }
.nwc-lx-term__head { position: relative; background: var(--nwc-lx-ink); color: #fff; border-radius: var(--nwc-radius, 0); padding: 38px 40px 32px; overflow: hidden; margin: 0 0 30px; }
.nwc-lx-term__head::after { content: ""; position: absolute; inset-inline-end: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(226, 19, 58, .55), rgba(226, 19, 58, 0) 70%); pointer-events: none; }
.nwc-lx-term__script { position: relative; z-index: 1; font-size: clamp(40px, 7vw, 72px); line-height: 1.1; color: #fff; margin: 0 0 6px; }
.nwc-lx .nwc-lx-term__title { position: relative; z-index: 1; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; font-weight: 800; color: #fff; margin: 0 0 8px; }
.nwc-lx--rtl .nwc-lx-term__title { text-align: right; }
.nwc-lx-term__reading { position: relative; z-index: 1; color: #c9cdd6; margin: 0 0 4px; font-size: 15px; }
.nwc-lx-term__tr { position: relative; z-index: 1; font-size: 22px; font-weight: 700; color: #fff; margin: 12px 0 0; }
.nwc-lx-term__chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.nwc-lx-term__chips .nwc-lx-chip { background: rgba(255, 255, 255, .12); color: #fff; }
.nwc-lx-term__chips .nwc-lx-chip--origin { background: var(--nwc-lx-accent); }
.nwc-lx-term__audio { position: relative; z-index: 1; margin: 18px 0 0; }
.nwc-lx-term__audio audio { max-width: 100%; }
.nwc-lx-term__section { margin: 0 0 30px; }
.nwc-lx-term__section h2 { font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--nwc-lx-accent); margin: 0 0 12px; }
.nwc-lx-term__def { font-size: 18px; line-height: 1.75; color: var(--nwc-lx-ink); }
.nwc-lx-term__def p:last-child { margin-bottom: 0; padding-bottom: 0; }
.nwc-lx-langs { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.nwc-lx-langs li { margin: 0 !important; padding: 16px 18px !important; background: var(--nwc-lx-card); border: 1px solid var(--nwc-lx-line); border-top: 3px solid var(--nwc-lx-accent); border-radius: var(--nwc-radius, 0); display: flex; flex-direction: column; gap: 8px; box-shadow: var(--nwc-lx-shadow); transition: transform .25s ease, box-shadow .25s ease; }
.nwc-lx-langs li:hover { transform: translateY(-3px); box-shadow: var(--nwc-lx-shadow-hover); }
.nwc-lx-langs__name { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nwc-lx-muted); }
.nwc-lx-langs__name b { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: var(--nwc-radius, 0); background: var(--nwc-lx-ink); color: #fff; font-size: 11px; letter-spacing: .04em; }
.nwc-lx-langs a, .nwc-lx-langs li > span:last-child { color: var(--nwc-lx-ink); font-size: 20px; font-weight: 800; line-height: 1.3; text-decoration: none; }
.nwc-lx-langs a:hover { color: var(--nwc-lx-accent); }
.nwc-lx-langs li[dir="rtl"] { text-align: right; }
.nwc-lx-langs li[dir="rtl"] .nwc-lx-langs__name { letter-spacing: 0; text-transform: none; font-size: 13px; }
.nwc-lx-langs li[dir="ltr"] { text-align: left; }

/* Meaning: the core of the term page */
.nwc-lx-term__main { position: relative; background: linear-gradient(135deg, #fff 0%, #fff 55%, rgba(226, 19, 58, .05) 100%); border: 1px solid var(--nwc-lx-line); border-inline-start: 6px solid var(--nwc-lx-accent); border-radius: var(--nwc-radius, 0); box-shadow: 0 2px 4px rgba(23, 29, 41, .05), 0 22px 50px rgba(23, 29, 41, .12); padding: clamp(24px, 4vw, 44px) clamp(22px, 4vw, 48px); margin: -6px 0 40px; overflow: hidden; }
.nwc-lx-term__main::before { content: "\201C"; position: absolute; top: -28px; inset-inline-end: 22px; font-family: Georgia, serif; font-size: 190px; line-height: 1; color: rgba(226, 19, 58, .09); pointer-events: none; }
.nwc-lx--rtl .nwc-lx-term__main::before { content: "\201D"; }
.nwc-lx-term__main .nwc-lx-term__section { position: relative; margin: 0; }
.nwc-lx-term__main .nwc-lx-term__section h2 { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; margin: 0 0 14px; }
.nwc-lx-term__main .nwc-lx-term__section h2::before { content: ""; width: 26px; height: 3px; border-radius: var(--nwc-radius, 0); background: var(--nwc-lx-accent); }
.nwc-lx-term__main .nwc-lx-term__def { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.65; font-weight: 600; color: var(--nwc-lx-ink); max-width: 62em; }
.nwc-lx-term__others { margin-top: 30px !important; padding-top: 26px; border-top: 1px dashed var(--nwc-lx-line); }

/* Links in articles */
a.nwc-lx-ref { position: relative; color: inherit; text-decoration: underline dotted var(--nwc-lx-ref, #e2133a); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a.nwc-lx-ref:hover { color: var(--nwc-lx-ref, #e2133a); }
@media (hover: hover) {
	a.nwc-lx-ref[data-lx-tip]:hover::after { content: attr(data-lx-tip); position: absolute; z-index: 50; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 280px; background: #171d29; color: #fff; font-size: 13px; font-weight: 500; line-height: 1.5; text-align: start; padding: 10px 14px; border-radius: var(--nwc-radius, 0); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); pointer-events: none; animation: nwc-lx-in .18s ease both; white-space: normal; }
}

/* Mobile */
@media (max-width: 767px) {
	.nwc-lx-search__bar { flex-wrap: wrap; border-radius: var(--nwc-radius, 0); padding: 8px; gap: 8px; }
	.nwc-lx .nwc-lx-search__input { flex-basis: 100%; padding: 8px 10px !important; font-size: 17px; }
	.nwc-lx .nwc-lx-search__discipline { flex: 1 1 auto; max-width: none; min-height: 44px; border: 1px solid var(--nwc-lx-line) !important; border-radius: var(--nwc-radius, 0) !important; }
	.nwc-lx-search__button { min-height: 44px; border-radius: var(--nwc-radius, 0); padding: 0 20px; }
	.nwc-lx-search__hint { padding: 0 4px; }
	.nwc-lx-cards { grid-template-columns: 1fr; gap: 14px; }
	.nwc-lx-term__head { padding: 28px 22px 24px; }
	.nwc-lx-term__main { border-inline-start-width: 4px; margin-bottom: 28px; }
	.nwc-lx-term__main::before { font-size: 130px; top: -18px; }
	.nwc-lx-langs { grid-template-columns: 1fr; }
	.nwc-lx-missing, .nwc-lx-request { padding: 20px 18px; }
	.nwc-lx-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.nwc-lx *, a.nwc-lx-ref::after { animation: none !important; transition: none !important; }
}
