/* Club de Judo ASPOL – secțiunea Articole. Same palette and fonts as the home page (Montserrat titles, Open Sans text,
   #282828 on white / #f7f7f7); the only colour is the vermilion of a hanko seal (朱色). Creat de XtremeDesign.ro. */

.cj-art {
	--cj-ink: #282828;
	--cj-text: #3a3a3a;
	--cj-muted: #6b6b6b;
	--cj-paper: #f7f7f7;
	--cj-line: #e6e6e6;
	--cj-shu: #b7282e;
	--cj-mincho: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "MS Mincho", serif;
	--cj-seigaiha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'%3E%3Cg fill='%23f7f7f7' stroke='%23282828' stroke-opacity='.09'%3E%3Cpath d='M-20 10a20 20 0 0 1 40 0zM20 10a20 20 0 0 1 40 0z'/%3E%3Cpath d='M-14 10a14 14 0 0 1 28 0zM26 10a14 14 0 0 1 28 0z'/%3E%3Cpath d='M-8 10a8 8 0 0 1 16 0zM32 10a8 8 0 0 1 16 0z'/%3E%3Cpath d='M0 20a20 20 0 0 1 40 0z'/%3E%3Cpath d='M6 20a14 14 0 0 1 28 0z'/%3E%3Cpath d='M12 20a8 8 0 0 1 16 0z'/%3E%3C/g%3E%3C/svg%3E");
	background: #fff;
	color: var(--cj-text);
	font-family: "Open Sans", Helvetica, Arial, sans-serif;
}
.cj-art *, .cj-art *::before, .cj-art *::after { box-sizing: border-box; }
.cj-wrap { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ---------- Hero: same photo + dark gradient as the home page, header sits on top of it */
.cj-hero {
	position: relative;
	overflow: hidden;
	padding: 190px 0 90px;
	text-align: center;
	color: #fff;
	background-color: #1c1c1c;
	background-image: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .82) 100%), var(--cj-hero-img, none);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}
.cj-hero-kanji {
	position: absolute;
	z-index: 1;
	top: 50%;
	left: 3vw;
	transform: translateY(-50%);
	writing-mode: vertical-rl;
	font-family: var(--cj-mincho);
	font-size: clamp(110px, 16vw, 240px);
	line-height: 1;
	color: #fff;
	opacity: .07;
	pointer-events: none;
	user-select: none;
}
.cj-kicker {
	margin: 0 0 22px;
	padding: 0;
	font: 700 12px/1.4 Montserrat, sans-serif;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .75);
}
.cj-kicker a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .4); }
.cj-kicker a:hover { border-bottom-color: #fff; }
.cj-art .cj-hero h1 {
	margin: 0 auto;
	padding: 0;
	max-width: 820px;
	font: 700 clamp(26px, 3.4vw, 42px)/1.3 Montserrat, sans-serif;
	letter-spacing: clamp(2px, .4vw, 6px);
	text-transform: uppercase;
	color: #fff;
}
.cj-list .cj-hero h1 { font-size: clamp(32px, 5vw, 50px); letter-spacing: clamp(6px, 1.4vw, 20px); }
.cj-meta, .cj-intro {
	margin: 26px auto 0;
	padding: 0;
	max-width: 620px;
	font-size: 15px;
	line-height: 1.7;
	color: rgba(255, 255, 255, .8);
}
.cj-intro { font-size: clamp(16px, .9rem + .3vw, 18px); }

/* Hanko (判子): the small red seal in the corner of the hero and on cards. */
.cj-hanko {
	position: absolute;
	z-index: 2;
	right: clamp(18px, 5vw, 70px);
	bottom: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 58px;
	writing-mode: vertical-rl;
	font: 400 18px/1 var(--cj-mincho);
	letter-spacing: 2px;
	color: #fff;
	background: var(--cj-shu);
	border-radius: 5px;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25);
	transform: rotate(-4deg);
	opacity: .92;
}
.cj-hanko--small { right: 14px; bottom: 14px; width: 34px; height: 34px; font-size: 18px; border-radius: 4px; }

/* Reading progress, a thin vermilion line above everything. */
.cj-progress { position: fixed; z-index: 100000; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; }
.cj-progress span { display: block; height: 100%; background: var(--cj-shu); transform: scaleX(0); transform-origin: 0 50%; }
.admin-bar .cj-progress { top: 32px; }

/* ---------- Article body */
.cj-body { position: relative; max-width: 760px; margin: 0 auto; padding: 70px 24px 90px; }
.cj-vertical {
	position: absolute;
	top: 76px;
	left: -90px;
	margin: 0;
	writing-mode: vertical-rl;
	font: 400 20px/1 var(--cj-mincho);
	letter-spacing: 10px;
	color: var(--cj-ink);
	opacity: .22;
}
.cj-vertical::after { content: ""; display: block; width: 1px; height: 120px; margin: 18px auto 0; background: var(--cj-ink); opacity: .5; }
@media (max-width: 1080px) { .cj-vertical { display: none; } }

.cj-content { font-size: clamp(16px, .9rem + .3vw, 18px); line-height: 1.75; color: var(--cj-text); }
.cj-content p, .cj-content ul, .cj-content ol { margin: 0 0 1.25em; padding-bottom: 0; font-size: inherit; line-height: inherit; font-weight: 400; }
.cj-content strong { font-weight: 700; color: var(--cj-ink); }
.cj-content a { color: var(--cj-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cj-content a:hover { color: var(--cj-shu); }
.cj-content .cj-lead { font-size: 1.12em; line-height: 1.7; color: var(--cj-ink); }
.cj-content .cj-lead::first-letter {
	float: left;
	margin: .08em .12em 0 0;
	font: 700 3.3em/.8 Montserrat, sans-serif;
	color: var(--cj-ink);
}

.cj-art .cj-content h2 {
	display: flex;
	align-items: baseline;
	gap: 16px;
	margin: 2.4em 0 .9em;
	padding: 0 0 14px;
	font: 700 clamp(17px, 1rem + .4vw, 21px)/1.4 Montserrat, sans-serif;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--cj-ink);
	border-bottom: 1px solid var(--cj-line);
}
.cj-num {
	flex: 0 0 auto;
	min-width: 1.4em;
	font: 400 1.5em/1 var(--cj-mincho);
	letter-spacing: 0;
	text-align: center;
	color: var(--cj-shu);
}

.cj-content .cj-cite { font-size: .72em; font-weight: 700; vertical-align: super; line-height: 0; text-decoration: none; color: var(--cj-muted); }
.cj-content .cj-cite:hover { color: var(--cj-shu); }

.cj-note {
	margin: 0 0 1.4em;
	padding: 22px 26px;
	background: var(--cj-paper);
	border-left: 4px solid var(--cj-ink);
}
.cj-note p { margin: 0 !important; font-size: .94em !important; }

.cj-content ul.cj-takeaways { list-style: none; padding: 0; }
.cj-takeaways li { position: relative; margin: 0 0 .9em; padding-left: 34px; }
.cj-takeaways li::before {
	content: "";
	position: absolute;
	top: .55em;
	left: 4px;
	width: 12px;
	height: 12px;
	border: 2px solid var(--cj-ink);
	border-radius: 50%;
	border-right-color: transparent;
	transform: rotate(-30deg);
}

.cj-quote {
	position: relative;
	margin: 2.2em 0;
	padding: 34px 30px 30px;
	text-align: center;
	border: 0;
	border-top: 1px solid var(--cj-line);
	border-bottom: 1px solid var(--cj-line);
	background: transparent;
	quotes: none;
}
.cj-quote::before { display: none; }
.cj-quote p { margin: 0 0 .6em !important; font-style: italic; color: var(--cj-ink); }
.cj-quote .cj-quote-jp { font: 400 clamp(22px, 3vw, 30px)/1.4 var(--cj-mincho) !important; font-style: normal !important; letter-spacing: 6px; }
.cj-quote cite { font: 700 11px/1.4 Montserrat, sans-serif; letter-spacing: 2px; text-transform: uppercase; font-style: normal; color: var(--cj-muted); }

.cj-art .cj-content h2.cj-refs-title { margin-top: 3em; font-size: 14px; letter-spacing: 3px; }
.cj-content ol.cj-refs { margin: 0; padding-left: 1.6em; font-size: 14px; line-height: 1.6; color: var(--cj-muted); }
.cj-refs li { margin-bottom: .7em; padding-left: 4px; scroll-margin-top: 120px; }
.cj-refs li:target { color: var(--cj-ink); background: var(--cj-paper); }
.cj-refs a { color: var(--cj-muted); word-break: break-word; }

/* ---------- Call to action: seigaiha (青海波) waves and an ensō (円相) brush circle */
.cj-cta {
	position: relative;
	overflow: hidden;
	margin: 64px 0 0;
	padding: 46px 40px 42px;
	text-align: center;
	background: var(--cj-paper) var(--cj-seigaiha) repeat;
	background-size: 40px 20px;
	border: 1px solid var(--cj-line);
}
.cj-cta > * { position: relative; z-index: 1; }
.cj-enso {
	position: absolute !important;
	z-index: 0 !important;
	top: 50%;
	left: 50%;
	width: 300px;
	height: 300px;
	margin: -150px 0 0 -150px;
	border: 14px solid var(--cj-ink);
	border-radius: 50%;
	border-right-color: transparent;
	transform: rotate(-35deg);
	opacity: .05;
}
.cj-cta-kicker { margin: 0 0 8px !important; font: 700 12px/1.4 Montserrat, sans-serif; letter-spacing: 3px; text-transform: uppercase; color: var(--cj-shu); }
.cj-art .cj-cta h2 { margin: 0 0 14px; padding: 0; font: 700 clamp(19px, 1.1rem + .5vw, 24px)/1.35 Montserrat, sans-serif; letter-spacing: 3px; text-transform: uppercase; color: var(--cj-ink); }
.cj-cta p { margin: 0 auto 1em; max-width: 520px; font-size: 16px; line-height: 1.7; }
.cj-cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 24px 0 0 !important; }

/* Buttons like the home page: uppercase, letter-spaced, square border. */
.cj-btn {
	display: inline-block;
	padding: 13px 26px;
	font: 700 12px/1.2 Montserrat, sans-serif;
	letter-spacing: 2.4px;
	text-transform: uppercase;
	text-decoration: none !important;
	color: var(--cj-ink) !important;
	background: transparent;
	border: 2px solid var(--cj-ink);
	transition: background .2s, color .2s;
}
.cj-btn:hover, .cj-btn:focus-visible { color: #fff !important; background: var(--cj-ink); }
.cj-btn--dark { color: #fff !important; background: var(--cj-ink); }
.cj-btn--dark:hover, .cj-btn--dark:focus-visible { color: var(--cj-ink) !important; background: transparent; }

.cj-back { margin: 36px 0 0; text-align: center; }
.cj-back a { font: 700 12px/1.4 Montserrat, sans-serif; letter-spacing: 2px; text-transform: uppercase; color: var(--cj-ink); text-decoration: none; }
.cj-back a:hover { color: var(--cj-shu); }

/* ---------- List of articles */
.cj-list-wrap { max-width: 1180px; margin: 0 auto; padding: 70px 24px 100px; }
.cj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 34px; }
.cj-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--cj-line); transition: box-shadow .25s, transform .25s; }
.cj-card:hover { box-shadow: 0 14px 40px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.cj-card-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cj-paper) var(--cj-seigaiha) repeat; background-size: 40px 20px; }
.cj-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cj-card:hover .cj-card-img img { transform: scale(1.03); }
.cj-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 28px 30px 32px; border-top: 3px solid var(--cj-ink); }
.cj-card-meta { margin: 0 0 12px; padding: 0; font: 700 11px/1.5 Montserrat, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cj-muted); }
.cj-art .cj-card h2 { margin: 0 0 14px; padding: 0; font: 700 clamp(17px, 1rem + .3vw, 20px)/1.4 Montserrat, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
.cj-card h2 a { color: var(--cj-ink); text-decoration: none; }
.cj-card h2 a:hover { color: var(--cj-shu); }
.cj-card-excerpt { flex: 1; margin: 0 0 24px; padding: 0; font-size: 16px; line-height: 1.7; color: var(--cj-text); }

/* The newest article is shown large, image beside the text. */
@media (min-width: 900px) {
	.cj-list .cj-card:first-child { grid-column: 1 / -1; flex-direction: row; }
	.cj-list .cj-card:first-child .cj-card-img { flex: 0 0 54%; aspect-ratio: auto; min-height: 380px; }
	.cj-list .cj-card:first-child .cj-card-body { justify-content: center; padding: 48px 52px; border-top: 0; border-left: 3px solid var(--cj-ink); }
	.cj-list .cj-card:first-child h2 { font-size: clamp(20px, 1.1rem + .6vw, 26px); letter-spacing: 2px; }
}
.cj-empty { text-align: center; font-size: 18px; }
.cj-pagination { margin-top: 50px; text-align: center; }
.cj-pagination .page-numbers { display: inline-block; min-width: 40px; margin: 0 3px; padding: 8px 12px; font: 700 13px/1.4 Montserrat, sans-serif; color: var(--cj-ink); text-decoration: none; border: 1px solid var(--cj-line); }
.cj-pagination .page-numbers.current, .cj-pagination a.page-numbers:hover { color: #fff; background: var(--cj-ink); border-color: var(--cj-ink); }

/* ---------- Phones */
@media (max-width: 767px) {
	.cj-hero { padding: 140px 0 70px; }
	.cj-hero-kanji { left: -10px; opacity: .06; }
	.cj-hanko { right: 16px; bottom: 16px; width: 36px; height: 46px; font-size: 14px; }
	.cj-body { padding: 44px 20px 70px; }
	.cj-art .cj-content h2 { gap: 12px; letter-spacing: 1.5px; }
	.cj-note { padding: 18px 20px; }
	.cj-quote { padding: 26px 8px 22px; }
	.cj-quote .cj-quote-jp { letter-spacing: 3px; }
	.cj-cta { padding: 36px 22px 32px; }
	.cj-list-wrap { padding: 44px 20px 70px; }
	.cj-grid { grid-template-columns: 1fr; gap: 24px; }
	.cj-card-body { padding: 24px 22px 28px; }
}

@media (prefers-reduced-motion: reduce) {
	.cj-card, .cj-card-img img, .cj-btn { transition: none; }
	.cj-card:hover, .cj-card:hover .cj-card-img img { transform: none; }
}
