/* CodeToolPilot — editorial UI. Tokens live in theme.json (var(--wp--preset--…)). One self-hosted web font (Inter, theme.json fontFace), no frameworks. */
:root {
	--ctp-radius: 14px;
	--ctp-radius-sm: 10px;
	--ctp-border: var(--wp--preset--color--border);
	--ctp-muted: var(--wp--preset--color--muted);
	--ctp-accent: var(--wp--preset--color--accent);
	--ctp-accent-2: var(--wp--preset--color--accent-2);
	--ctp-soft: var(--wp--preset--color--accent-soft);
	--ctp-surface: var(--wp--preset--color--surface);
	--ctp-shadow: var(--wp--preset--shadow--card);
}
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* upright everywhere; only real emphasis (em, i, cite) is italic */
body, button, input, select, textarea { font-style: normal; }
h1, h2, h3, .wp-block-post-title { font-weight: 700; }
:where(a, button, input, summary):focus-visible { outline: 2px solid var(--ctp-accent); outline-offset: 2px; border-radius: 4px; }
.ctp-main { padding-bottom: var(--wp--preset--spacing--60); }
.ctp-main > :first-child { margin-block-start: 0; }

/* ---------- header ---------- */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
/* no backdrop-filter here: it would become the containing block of the fixed mobile-menu overlay */
.ctp-header { background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--ctp-border); }
.ctp-header__bar { padding-block: .85rem; gap: 1.25rem; }
.ctp-header__nav { gap: .75rem; }
.ctp-header .wp-block-navigation__container { gap: 1.35rem; }
.ctp-header .wp-block-navigation-item__content { padding: .35rem 0; }
.ctp-header .wp-block-navigation-item__content:hover { color: var(--ctp-accent); }
.ctp-header .wp-block-search__button { background: transparent; color: var(--wp--preset--color--text); border: 1px solid var(--ctp-border); border-radius: var(--ctp-radius-sm); padding: .4rem; }
.ctp-brand a { display: inline-flex; align-items: center; gap: .55rem; }
.ctp-brand a::before { content: ""; width: 1.55rem; height: 1.55rem; border-radius: 7px; flex: none;
	background: linear-gradient(135deg, var(--ctp-accent) 0%, var(--ctp-accent-2) 100%);
	box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .22); }

/* mobile menu overlay: left-aligned, larger targets */
.wp-block-navigation__responsive-container.is-menu-open { padding: 1.25rem clamp(1rem, 5vw, 2rem); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start; padding-top: 2.5rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start; gap: .25rem; width: 100%; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: 1.2rem; font-weight: 600; width: 100%; border-bottom: 1px solid var(--ctp-border); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { padding: .85rem 0 !important; display: block; width: 100%; }

/* tablet: five labels do not fit beside the brand and search, so the overlay menu is used up to 1023px */
@media (min-width: 600px) and (max-width: 1023px) {
	.ctp-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.ctp-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}

/* ---------- shared text ---------- */
.ctp-eyebrow { font-size: var(--wp--preset--font-size--x-small); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ctp-accent); margin-bottom: .5rem; }
.ctp-eyebrow--pill { display: inline-block; padding: .35rem .75rem; border-radius: 999px; background: var(--ctp-soft); letter-spacing: .04em; text-transform: none; font-weight: 600; }
.ctp-lead { font-size: var(--wp--preset--font-size--large) !important; line-height: 1.55; color: var(--ctp-muted); }
.wp-block-button.is-style-outline > .wp-block-button__link { border: 1px solid var(--ctp-border); color: var(--wp--preset--color--contrast); background: #fff; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--ctp-accent); color: var(--ctp-accent); background: #fff; }

/* ---------- hero ---------- */
.ctp-hero { background: var(--wp--preset--gradient--hero); border-bottom: 1px solid var(--ctp-border);
	padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.ctp-hero__title { font-size: var(--wp--preset--font-size--display) !important; line-height: 1.05; letter-spacing: -0.035em; margin-block: .75rem 1rem; }
.ctp-hero__lede { font-size: var(--wp--preset--font-size--large); color: var(--ctp-muted); line-height: 1.55; max-width: 40rem; }
.ctp-hero__search { max-width: 36rem; margin-top: 1.75rem; }
.ctp-hero__search .wp-block-search__inside-wrapper { background: #fff; border: 1px solid var(--ctp-border); border-radius: 12px; padding: .3rem; box-shadow: var(--ctp-shadow); }
.ctp-hero__search .wp-block-search__input { border: 0; padding: .6rem .8rem; font-size: 1rem; background: transparent; }
.ctp-hero__search .wp-block-search__button { margin-left: .3rem; border-radius: 9px; }
.ctp-hero__actions { margin-top: 1.25rem; }
.ctp-hero__facts { list-style: none; padding: 0; margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: var(--wp--preset--font-size--small); color: var(--ctp-muted); }
.ctp-hero__facts li { position: relative; padding-left: 1.4rem; }
.ctp-hero__facts li::before { content: ""; position: absolute; left: 0; top: .45em; width: .8rem; height: .45rem; border-left: 2px solid var(--ctp-accent); border-bottom: 2px solid var(--ctp-accent); transform: rotate(-45deg); }

/* ---------- sections ---------- */
.ctp-section { padding-block: clamp(2.75rem, 6vw, 4.75rem) 0; }
.ctp-section__head { margin-bottom: 1.75rem; gap: 1rem; }
.ctp-section__title { margin: 0; font-size: var(--wp--preset--font-size--xx-large) !important; letter-spacing: -0.03em; }
.ctp-section__sub { color: var(--ctp-muted); margin-top: .5rem; }
.ctp-method { padding-bottom: clamp(1rem, 3vw, 2rem); }

/* ---------- cards (query loops, related, static grids) ---------- */
.ctp-grid { gap: 1.25rem !important; }
.ctp-grid--static { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); }
.ctp-card { position: relative; height: 100%; display: flex; flex-direction: column; gap: .55rem !important; padding: 1.35rem 1.35rem 1.25rem; background: #fff;
	border: 1px solid var(--ctp-border); border-radius: var(--ctp-radius); box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.ctp-card:hover { border-color: #c9cdf8; box-shadow: var(--ctp-shadow); transform: translateY(-2px); }
.ctp-card__cat { margin: 0; }
.ctp-card__cat a { font-size: .72rem !important; }
.ctp-card__title { margin: 0 !important; font-size: 1.125rem !important; line-height: 1.35 !important; letter-spacing: -0.01em; }
.ctp-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--ctp-radius); }
.ctp-card__excerpt, .ctp-card__excerpt p { margin: 0; font-size: var(--wp--preset--font-size--small); color: var(--ctp-muted); }
.ctp-card__more { margin-top: auto; padding-top: .35rem; font-size: var(--wp--preset--font-size--small); font-weight: 600; text-decoration: none; color: var(--ctp-accent); }
.ctp-pagination { margin-top: 2rem; }

/* category cards */
.ctp-cats { gap: 1.25rem !important; }
.ctp-cat { position: relative; padding: 1.5rem; border: 1px solid var(--ctp-border); border-radius: var(--ctp-radius); background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ctp-cat:hover { border-color: #c9cdf8; box-shadow: var(--ctp-shadow); transform: translateY(-2px); }
.ctp-cat__icon { width: 2.5rem; height: 2.5rem; border-radius: 10px; display: grid; place-items: center; margin: 0 0 .9rem; font-weight: 800; font-size: .95rem; color: var(--ctp-accent); background: var(--ctp-soft); }
.ctp-cat__name { margin: 0 0 .4rem !important; font-size: 1.15rem !important; }
.ctp-cat__name a { text-decoration: none; color: var(--wp--preset--color--contrast); }
.ctp-cat__name a::after { content: ""; position: absolute; inset: 0; border-radius: var(--ctp-radius); }
.ctp-cat__text { margin: 0; font-size: var(--wp--preset--font-size--small); color: var(--ctp-muted); }
.ctp-cat__count { margin: .9rem 0 0; font-size: var(--wp--preset--font-size--x-small); font-weight: 600; color: var(--ctp-accent); }

/* popular tools */
.ctp-tools { gap: 1rem !important; }
.ctp-tool { position: relative; display: grid; grid-template-columns: 2.75rem 1fr; gap: .2rem 1rem; align-items: start; padding: 1.1rem 1.2rem; border: 1px solid var(--ctp-border); border-radius: var(--ctp-radius); background: var(--ctp-surface); transition: background .15s, border-color .15s; }
.ctp-tool:hover { background: #fff; border-color: #c9cdf8; }
.ctp-tool__mono { grid-row: span 3; width: 2.75rem; height: 2.75rem; border-radius: 12px; display: grid; place-items: center; margin: 0; color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: -.02em;
	background: linear-gradient(135deg, var(--ctp-accent) 0%, var(--ctp-accent-2) 100%); }
.ctp-tool__name { margin: 0 !important; font-size: 1.02rem !important; }
.ctp-tool__name a { text-decoration: none; color: var(--wp--preset--color--contrast); }
.ctp-tool__name a::after { content: ""; position: absolute; inset: 0; border-radius: var(--ctp-radius); }
.ctp-tool__cat { margin: 0; font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ctp-accent); }
.ctp-tool__fit { margin: .2rem 0 0; font-size: var(--wp--preset--font-size--small); color: var(--ctp-muted); line-height: 1.5; }

/* methodology */
.ctp-steps { gap: 1.25rem !important; }
.ctp-step { gap: .4rem !important; padding: 1.4rem; border-radius: var(--ctp-radius); background: var(--ctp-surface); border: 1px solid var(--ctp-border); }
.ctp-step__n { margin: 0; width: 2rem; height: 2rem; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: .9rem; color: #fff; background: var(--wp--preset--color--contrast); }
.ctp-step__title { margin: .5rem 0 0 !important; font-size: 1.05rem !important; }
.ctp-step__text { margin: 0; font-size: var(--wp--preset--font-size--small); color: var(--ctp-muted); }

/* ---------- archive / search / 404 ---------- */
.ctp-archive-head { padding-block: clamp(2.5rem, 6vw, 4rem) 1.75rem; }
.ctp-archive-head h1 { margin: 0 0 .75rem; letter-spacing: -0.03em; }
.ctp-term-description p { color: var(--ctp-muted); font-size: var(--wp--preset--font-size--medium); }
.ctp-term-description ul { color: var(--ctp-muted); font-size: var(--wp--preset--font-size--small); }
.ctp-search { max-width: 34rem; margin-top: 1.25rem; }
.ctp-search .wp-block-search__inside-wrapper { border: 1px solid var(--ctp-border); border-radius: 12px; padding: .25rem; background: #fff; }
.ctp-search .wp-block-search__input { border: 0; padding: .55rem .75rem; background: transparent; }
.ctp-search .wp-block-search__button { border-radius: 9px; margin-left: .25rem; }
.ctp-404 { padding-top: clamp(3rem, 8vw, 6rem); }

/* ---------- single review ---------- */
.ctp-article-head { padding-top: clamp(2.25rem, 5vw, 3.75rem); }
.ctp-badge { margin: 0 0 .9rem; }
.ctp-badge a { display: inline-block; padding: .3rem .7rem; border-radius: 999px; background: var(--ctp-soft); }
.ctp-article-title { font-size: var(--wp--preset--font-size--xx-large) !important; letter-spacing: -0.03em; line-height: 1.12; margin: 0 0 1rem; }
.ctp-single .ctp-lead { margin: 0 0 1.25rem; }
.ctp-single .ctp-lead .wp-block-post-excerpt__excerpt { margin: 0; }
.ctp-byline { gap: .35rem !important; align-items: baseline; padding-bottom: 1.5rem; border-bottom: 1px solid var(--ctp-border); font-size: var(--wp--preset--font-size--x-small); color: var(--ctp-muted); }
.ctp-byline p { margin: 0; }
.ctp-byline__by a { color: var(--wp--preset--color--contrast); font-weight: 600; text-decoration: none; }
.ctp-byline__label { margin-left: .75rem !important; }
.ctp-byline__label::before { content: "·"; margin-right: .75rem; }
.ctp-article { padding-top: 1.5rem; }
.ctp-article h2 { scroll-margin-top: 6rem; padding-top: .25rem; }
.ctp-article h3 { scroll-margin-top: 6rem; }
.ctp-article p, .ctp-article li { color: var(--wp--preset--color--text); }
.ctp-article ul, .ctp-article ol { padding-left: 1.25rem; }
.ctp-article li + li { margin-top: .35rem; }
.ctp-article .ctp-note { margin: 0 0 .75rem; padding: .8rem 1rem; border-radius: var(--ctp-radius-sm); background: var(--ctp-surface); border: 1px solid var(--ctp-border); font-size: var(--wp--preset--font-size--small); color: var(--ctp-muted); }
.ctp-article .ctp-note em { font-style: normal; }
.ctp-article .ctp-source { font-size: var(--wp--preset--font-size--x-small); color: var(--ctp-muted); }
.ctp-toc { margin: 1.75rem 0 2rem; padding: 1.1rem 1.25rem 1.2rem; border: 1px solid var(--ctp-border); border-radius: var(--ctp-radius); background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .03); }
.ctp-toc__title { margin: 0 0 .5rem; font-size: var(--wp--preset--font-size--x-small); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ctp-muted); }
.ctp-toc ol { margin: 0; padding-left: 1.2rem; columns: 2 16rem; column-gap: 2rem; font-size: var(--wp--preset--font-size--small); }
.ctp-toc li { margin: .15rem 0; break-inside: avoid; }
.ctp-toc a { text-decoration: none; }
.ctp-toc a:hover { text-decoration: underline; }
.ctp-article table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: var(--wp--preset--font-size--small); border: 1px solid var(--ctp-border); border-radius: var(--ctp-radius-sm); }
.ctp-article th, .ctp-article td { padding: .7rem .85rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ctp-border); }
.ctp-article thead th { background: var(--ctp-surface); color: var(--wp--preset--color--contrast); font-weight: 600; white-space: nowrap; }
.ctp-article tbody tr:last-child td { border-bottom: 0; }
.ctp-article blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.1rem; border-left: 3px solid var(--ctp-accent); color: var(--ctp-muted); }
.ctp-article code { font-size: .88em; padding: .1em .35em; border-radius: 5px; background: var(--ctp-surface); border: 1px solid var(--ctp-border); }
.ctp-article #sources + ol { font-size: var(--wp--preset--font-size--x-small); color: var(--ctp-muted); word-break: break-word; }
.ctp-article #faq ~ h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.ctp-related { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--ctp-border); }
.ctp-related__title { margin: 0 0 1.25rem; font-size: var(--wp--preset--font-size--x-large); }
.ctp-related .ctp-card__title { font-size: 1.05rem !important; }
.ctp-editorial-note { margin-top: 2.5rem; padding: 1.4rem 1.5rem; border-radius: var(--ctp-radius); background: var(--ctp-surface); border: 1px solid var(--ctp-border); }
.ctp-editorial-note__title { margin: 0 0 .4rem !important; font-size: 1.05rem !important; }
.ctp-editorial-note__text { margin: 0; font-size: var(--wp--preset--font-size--small); color: var(--ctp-muted); }
.ctp-page-title { padding-top: clamp(2.25rem, 5vw, 3.75rem); margin-bottom: .5rem; letter-spacing: -0.03em; }

/* ---------- footer ---------- */
.ctp-footer { margin-top: var(--wp--preset--spacing--60); padding-block: 3rem 2rem; background: var(--ctp-surface); border-top: 1px solid var(--ctp-border); }
.ctp-footer__cols { gap: 2rem; }
.ctp-footer__about { color: var(--ctp-muted); font-size: var(--wp--preset--font-size--small); max-width: 24rem; }
.ctp-footer__h { font-size: .78rem !important; letter-spacing: .08em; text-transform: uppercase; color: var(--ctp-muted) !important; margin: .2rem 0 .8rem !important; }
.ctp-footer__list { list-style: none; padding: 0; margin: 0; font-size: var(--wp--preset--font-size--small); }
.ctp-footer__list li { margin: .45rem 0; }
.ctp-footer__list a { text-decoration: none; color: var(--wp--preset--color--text); }
.ctp-footer__list a:hover { color: var(--ctp-accent); text-decoration: underline; }
.ctp-footer__legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--ctp-border); font-size: var(--wp--preset--font-size--x-small); color: var(--ctp-muted); }

/* ---------- responsive ---------- */
@media (max-width: 781px) {
	.ctp-header__bar { padding-block: .7rem; }
	.ctp-hero__facts { gap: .4rem 1rem; }
	.ctp-section__head { flex-direction: column; align-items: flex-start !important; }
	.ctp-toc ol { columns: 1; }
	.ctp-footer__cols { gap: 1.25rem; }
	.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.ctp-card, .ctp-cat, .ctp-tool { transition: none; }
	.ctp-card:hover, .ctp-cat:hover { transform: none; }
}

/* ---------- v2.1: hero illustration, Top 10, thumbnails ---------- */
.ctp-hero__cols { gap: clamp(1.5rem, 4vw, 3.5rem); margin: 0; }
/* ---------- hero: animated "AI code review" scene (pure CSS, 10s loop, no images/JS; static under reduced motion) ---------- */
.ctp-hero { overflow-x: clip; }
.ctp-hero__art { max-width: 520px; margin-left: auto; }
.ctp-hx { position: relative; height: 26.5em; font-size: clamp(11px, 1.05vw, 15px); font-family: var(--wp--preset--font-family--sans); }
.ctp-hx__glow { position: absolute; inset: 8% 4% 10% 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(109, 40, 217, .20), rgba(67, 56, 202, .10) 55%, transparent); filter: blur(10px); animation: hx-glow 6s ease-in-out infinite; }
.ctp-hx__ring { position: absolute; left: 22%; top: 2%; width: 23em; height: 23em; border-radius: 50%; border: 1.5px solid #c7d2fe; animation: hx-spin 40s linear infinite; }
.ctp-hx__ring::after { content: ""; position: absolute; top: -5px; left: 50%; width: 9px; height: 9px; border-radius: 50%; background: #6d28d9; box-shadow: 0 0 0 5px rgba(109, 40, 217, .15); }
.ctp-hx__ring--2 { left: 31%; top: 13%; width: 16em; height: 16em; border: 1.5px dashed #ddd6fe; animation-duration: 60s; animation-direction: reverse; }
.ctp-hx__ring--2::after { background: #4338ca; width: 7px; height: 7px; top: -4px; }
.ctp-hx__win { position: absolute; left: 0; top: 2.6em; width: 86%; border-radius: 16px; background: #0b1220; box-shadow: 0 24px 60px rgba(11, 18, 32, .28), 0 0 0 1px rgba(255, 255, 255, .04) inset; overflow: hidden; animation: hx-win 10s ease infinite; }
.ctp-hx__bar { display: flex; align-items: center; gap: .45em; padding: .85em 1.1em; background: #131b2e; border-bottom: 1px solid #1f2a44; }
.ctp-hx__bar i { width: .7em; height: .7em; border-radius: 50%; background: #334155; }
.ctp-hx__bar i:first-child { background: #f87171; } .ctp-hx__bar i:nth-child(2) { background: #fbbf24; } .ctp-hx__bar i:nth-child(3) { background: #34d399; }
.ctp-hx__bar span { margin-left: .8em; color: #94a3b8; font-size: .85em; font-weight: 500; }
.ctp-hx__code { padding: .9em 0 1.1em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: .86em; color: #e2e8f0; }
.ctp-hx__ln { display: flex; gap: 1.1em; padding: 0 1.1em; height: 1.85em; align-items: center; white-space: pre; overflow: hidden; clip-path: inset(0 100% 0 0); }
.ctp-hx__ln b { width: 1.2em; text-align: right; color: #475569; font-weight: 400; }
.ctp-hx__ln code { font: inherit; color: inherit; background: none; padding: 0; }
.ctp-hx__ln em { font-style: normal; } .ctp-hx__ln .k { color: #a5b4fc; } .ctp-hx__ln .f { color: #67e8f9; }
.ctp-hx__add { height: 0; background: rgba(52, 211, 153, .14); box-shadow: inset 3px 0 0 #34d399; }
.ctp-hx__caret { display: inline-block; width: .55em; height: 1.1em; margin-left: .15em; vertical-align: -.2em; background: #a5b4fc; animation: hx-blink 1s steps(1) infinite; }
.ctp-hx__note { position: absolute; z-index: 2; right: 0; top: 10.5em; width: 17.5em; padding: 1em 1.1em; border-radius: 14px; background: #fff; border: 1px solid #e2e6f0; box-shadow: 0 18px 44px rgba(11, 18, 32, .16); color: #1f2937; opacity: 0; animation: hx-note 10s ease infinite; }
.ctp-hx__note p { margin: .5em 0 .8em; font-size: .95em; line-height: 1.45; }
.ctp-hx__note code { font-size: .92em; padding: .05em .3em; border-radius: 4px; background: #eef0ff; color: #4338ca; }
.ctp-hx__who { display: flex; align-items: center; gap: .45em; font-weight: 700; font-size: .85em; letter-spacing: .02em; color: #4338ca; }
.ctp-hx__btn { display: inline-block; padding: .45em .8em; border-radius: 8px; background: linear-gradient(135deg, #4338ca, #6d28d9); color: #fff; font-weight: 600; font-size: .85em; }
.ctp-hx__spark { display: inline-block; width: .85em; height: .85em; background: currentColor; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: hx-twinkle 2.4s ease-in-out infinite; }
.ctp-hx__checks { position: absolute; left: 2%; bottom: 0; display: grid; gap: .5em; padding: .9em 1.1em; border-radius: 14px; background: #fff; border: 1px solid #e2e6f0; box-shadow: 0 14px 36px rgba(11, 18, 32, .12); font-size: .9em; font-weight: 600; color: #1f2937; opacity: 0; animation: hx-checks 10s ease infinite; }
.ctp-hx__ex { font-size: .78em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; }
.ctp-hx__chk { display: flex; align-items: center; gap: .55em; color: #94a3b8; }
.ctp-hx__chk span { width: 1.15em; height: 1.15em; border-radius: 50%; border: 2px solid #cbd5e1; position: relative; flex: none; }
.ctp-hx__chk span::after { content: ""; position: absolute; left: .28em; top: .1em; width: .3em; height: .55em; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; }
.ctp-hx__caption { position: absolute; left: 0; right: 0; bottom: -2.4em; margin: 0; text-align: center; font-size: .8em; color: #6b7280; }
.ctp-hx__chip { position: absolute; right: 4%; top: 0; display: inline-flex; align-items: center; gap: .45em; padding: .5em .85em; border-radius: 999px; background: #fff; border: 1px solid #ddd6fe; box-shadow: 0 8px 24px rgba(67, 56, 202, .14); color: #4338ca; font-weight: 700; font-size: .85em; opacity: 0; animation: hx-chip 10s ease infinite; }
.ctp-hx__ln--1 { animation: hx-l1 10s steps(18, end) infinite; }
@keyframes hx-l1 { 0%, 2% { clip-path: inset(0 100% 0 0); } 6%, 99.9% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
.ctp-hx__ln--2 { animation: hx-l2 10s steps(18, end) infinite; }
@keyframes hx-l2 { 0%, 7% { clip-path: inset(0 100% 0 0); } 11%, 99.9% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
@keyframes hx-l3 { 0%, 12% { clip-path: inset(0 100% 0 0); } 16%, 99.9% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
.ctp-hx__ln--5 { animation: hx-l5 10s steps(18, end) infinite; }
@keyframes hx-l5 { 0%, 18% { clip-path: inset(0 100% 0 0); } 22%, 99.9% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
.ctp-hx__ln--6 { animation: hx-l6 10s steps(18, end) infinite; }
@keyframes hx-l6 { 0%, 23% { clip-path: inset(0 100% 0 0); } 27%, 99.9% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
.ctp-hx__ln--7 { animation: hx-l7 10s steps(18, end) infinite; }
@keyframes hx-l7 { 0%, 28% { clip-path: inset(0 100% 0 0); } 32%, 99.9% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
.ctp-hx__ln--3 { animation: hx-l3 10s steps(18, end) infinite, hx-del 10s ease infinite; }
@keyframes hx-del { 0%, 37% { background: transparent; box-shadow: none; color: #e2e8f0; text-decoration: none; } 40%, 99.9% { background: rgba(248, 113, 113, .14); box-shadow: inset 3px 0 0 #f87171; color: #fca5a5; text-decoration: line-through; text-decoration-color: rgba(252, 165, 165, .6); } 100% { background: transparent; box-shadow: none; } }
.ctp-hx__ln--4 { animation: hx-l4 10s ease infinite; }
@keyframes hx-l4 { 0%, 41% { height: 0; clip-path: inset(0 100% 0 0); } 44% { height: 1.85em; clip-path: inset(0 100% 0 0); } 48%, 99.9% { height: 1.85em; clip-path: inset(0 0 0 0); } 100% { height: 0; clip-path: inset(0 100% 0 0); } }
@keyframes hx-win { 0% { opacity: 0; transform: translateY(8px); } 3%, 91% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes hx-note { 0%, 50% { opacity: 0; transform: translateX(18px) scale(.98); } 55%, 91% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes hx-checks { 0%, 58% { opacity: 0; transform: translateY(14px); } 62%, 91% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
.ctp-hx__chk--1 { animation: hx-c1 10s ease infinite; } .ctp-hx__chk--1 span { animation: hx-cs1 10s ease infinite; } .ctp-hx__chk--1 span::after { animation: hx-ct1 10s ease infinite; }
@keyframes hx-c1 { 0%, 64% { color: #94a3b8; } 66%, 100% { color: #1f2937; } }
@keyframes hx-cs1 { 0%, 64% { background: transparent; border-color: #cbd5e1; transform: scale(1); } 65% { transform: scale(1.25); } 67%, 100% { background: #10b981; border-color: #10b981; transform: scale(1); } }
@keyframes hx-ct1 { 0%, 65% { opacity: 0; } 67%, 100% { opacity: 1; } }
.ctp-hx__chk--2 { animation: hx-c2 10s ease infinite; } .ctp-hx__chk--2 span { animation: hx-cs2 10s ease infinite; } .ctp-hx__chk--2 span::after { animation: hx-ct2 10s ease infinite; }
@keyframes hx-c2 { 0%, 70% { color: #94a3b8; } 72%, 100% { color: #1f2937; } }
@keyframes hx-cs2 { 0%, 70% { background: transparent; border-color: #cbd5e1; transform: scale(1); } 71% { transform: scale(1.25); } 73%, 100% { background: #10b981; border-color: #10b981; transform: scale(1); } }
@keyframes hx-ct2 { 0%, 71% { opacity: 0; } 73%, 100% { opacity: 1; } }
.ctp-hx__chk--3 { animation: hx-c3 10s ease infinite; } .ctp-hx__chk--3 span { animation: hx-cs3 10s ease infinite; } .ctp-hx__chk--3 span::after { animation: hx-ct3 10s ease infinite; }
@keyframes hx-c3 { 0%, 76% { color: #94a3b8; } 78%, 100% { color: #1f2937; } }
@keyframes hx-cs3 { 0%, 76% { background: transparent; border-color: #cbd5e1; transform: scale(1); } 77% { transform: scale(1.25); } 79%, 100% { background: #10b981; border-color: #10b981; transform: scale(1); } }
@keyframes hx-ct3 { 0%, 77% { opacity: 0; } 79%, 100% { opacity: 1; } }
@keyframes hx-chip { 0%, 80% { opacity: 0; transform: translateY(-8px); } 84%, 91% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes hx-spin { to { transform: rotate(360deg); } }
@keyframes hx-glow { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes hx-blink { 50% { opacity: 0; } }
@keyframes hx-twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.25) rotate(20deg); } }
@media (max-width: 1100px) { .ctp-hx__code { font-size: .76em; } .ctp-hx__win { width: 90%; } }
@media (prefers-reduced-motion: reduce) {
	.ctp-hx *, .ctp-hx *::after { animation: none !important; }
	.ctp-hx__ln, .ctp-hx__ln--4 { clip-path: none; height: 1.85em; }
	.ctp-hx__ln--3 { background: rgba(248, 113, 113, .14); box-shadow: inset 3px 0 0 #f87171; color: #fca5a5; text-decoration: line-through; }
	.ctp-hx__note, .ctp-hx__checks, .ctp-hx__chip { opacity: 1; }
	.ctp-hx__chk { color: #1f2937; } .ctp-hx__chk span { background: #10b981; border-color: #10b981; } .ctp-hx__chk span::after { opacity: 1; }
}
@media (max-width: 781px) { .ctp-hero__visual { display: none; } }

.ctp-top10 { scroll-margin-top: 5rem; }
.ctp-ranklist { list-style: none; padding: 0; margin: 0; counter-reset: ctp-rank; display: grid; gap: .9rem; }
.ctp-ranklist > li { counter-increment: ctp-rank; margin: 0; }
.ctp-rank { position: relative; display: grid; grid-template-columns: 3.25rem 15rem 1fr auto; align-items: center; gap: 1.25rem;
	padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--ctp-border); border-radius: var(--ctp-radius);
	transition: border-color .15s, box-shadow .15s, transform .15s; }
.ctp-rank:hover { border-color: #c9cdf8; box-shadow: var(--ctp-shadow); transform: translateY(-1px); }
.ctp-rank::before { content: counter(ctp-rank); display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 14px;
	font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; color: var(--ctp-accent); background: var(--ctp-soft); }
.ctp-ranklist > li:first-child .ctp-rank { border-color: #c7caf6; background: linear-gradient(90deg, #f6f5ff 0%, #ffffff 55%); }
.ctp-ranklist > li:first-child .ctp-rank::before { color: #fff; background: linear-gradient(135deg, var(--ctp-accent), var(--ctp-accent-2)); }
.ctp-rank__img { margin: 0 !important; }
.ctp-rank__img a { display: block; border-radius: 10px; }
.ctp-rank__img img { display: block; border-radius: 10px; border: 1px solid #d5d9e6; box-shadow: 0 1px 2px rgba(11, 18, 32, .06), 0 6px 16px rgba(11, 18, 32, .06); }
.ctp-rank__body > * { margin: 0 !important; }
.ctp-rank__cat a { font-size: .7rem !important; }
.ctp-rank__name { font-size: 1.2rem !important; margin: .15rem 0 .25rem !important; letter-spacing: -.015em; }
.ctp-rank__desc, .ctp-rank__desc p { margin: 0; font-size: var(--wp--preset--font-size--small); color: var(--ctp-muted); line-height: 1.5; }
.ctp-rank__more { white-space: nowrap; font-size: var(--wp--preset--font-size--small); font-weight: 600; text-decoration: none; color: var(--ctp-accent); }
.ctp-rank__more::after { content: ""; position: absolute; inset: 0; border-radius: var(--ctp-radius); }
@media (max-width: 900px) {
	.ctp-rank { grid-template-columns: 2.6rem 12rem 1fr; grid-template-areas: "n img body" "n img more"; gap: .5rem 1rem; align-items: start; }
	.ctp-rank::before { grid-area: n; width: 2.6rem; height: 2.6rem; font-size: 1.1rem; border-radius: 11px; }
	.ctp-rank__img { grid-area: img; } .ctp-rank__body { grid-area: body; } .ctp-rank__more { grid-area: more; }
}
@media (max-width: 599px) {
	.ctp-rank { grid-template-columns: 2.6rem 1fr; grid-template-areas: "n img" "n body" "n more"; gap: .6rem 1rem; }
}

.ctp-card__img { margin: -1.35rem -1.35rem .35rem !important; overflow: hidden; border-radius: var(--ctp-radius) var(--ctp-radius) 0 0; border-bottom: 1px solid #d5d9e6; background: #fff; }
.ctp-card__img img { display: block; width: 100%; height: 100% !important; aspect-ratio: 16 / 9; object-fit: cover; }
.ctp-card__img img { transition: transform .25s ease; }
.ctp-card:hover .ctp-card__img img { transform: scale(1.02); }
@media (prefers-reduced-motion: reduce) { .ctp-card:hover .ctp-card__img img { transform: none; } }
.ctp-article-img { margin: 1.75rem 0 0 !important; }
.ctp-article-img img { border-radius: var(--ctp-radius); border: 1px solid #d5d9e6; box-shadow: 0 10px 30px rgba(11, 18, 32, .08); }
.ctp-thumb-fallback { display: block; aspect-ratio: 16 / 9; margin: 0; border-radius: 10px; overflow: hidden;
	background: radial-gradient(120% 120% at 100% 0%, #e9e7ff 0%, rgba(233,231,255,0) 55%), linear-gradient(135deg, #f7f8fc, #eef0ff); }
.ctp-card .ctp-thumb-fallback { border-radius: var(--ctp-radius) var(--ctp-radius) 0 0; margin: -1.35rem -1.35rem .35rem; }
.ctp-thumb-fallback a { display: grid; place-items: center; width: 100%; height: 100%; text-decoration: none; }
.ctp-thumb-fallback__name { font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; color: var(--wp--preset--color--contrast); padding: 0 1rem; text-align: center; }
