/* 33science how-to components (t33-howto plugin). Prefix .entry-content to beat theme list/paragraph rules. */
.entry-content {
	--t33h-ink: #1d2a3a;
	--t33h-muted: #5b6b7a;
	--t33h-teal: #0e8fa8;
	--t33h-teal-dark: #0b4f5e;
	--t33h-teal-bg: #f1fafc;
	--t33h-teal-line: #a9dfeb;
	--t33h-orange: #d9691a;
	--t33h-orange-bg: #fff5ea;
	--t33h-indigo: #5562a3;
	--t33h-indigo-bg: #f2f3fa;
	--t33h-line: #e2e8ee;
}

/* Short answer lead */
.entry-content .t33h-lead { font-size: 1.08em; }
.entry-content .t33h-lead strong:first-child { color: var(--t33h-teal-dark); }

/* Summary card */
.entry-content .t33h-card {
	background: var(--t33h-teal-bg);
	border: 2px solid var(--t33h-teal-line);
	border-left: 7px solid var(--t33h-teal);
	border-radius: 16px;
	padding: 22px 24px 24px;
	margin: 1.8em 0;
	color: var(--t33h-ink);
}
.entry-content .t33h-card-head { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.entry-content .t33h-card-icon {
	flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%;
	background: var(--t33h-teal); color: #fff; display: grid; place-items: center; font-size: 16px;
}
.entry-content .t33h-card-title { margin: 0; font-size: 1.4em; font-weight: 900; line-height: 1.2; color: var(--t33h-teal-dark); }
.entry-content .t33h-meta {
	list-style: none; margin: 0 0 20px; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px;
}
.entry-content .t33h-meta li {
	margin: 0; padding: 9px 12px; background: #fff; border: 1px solid #d3edf3; border-radius: 10px;
	display: flex; flex-direction: column; gap: 2px; line-height: 1.3;
}
.entry-content .t33h-meta li::before { content: none; display: none; }
.entry-content .t33h-meta span { font-size: .72em; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--t33h-muted); }
.entry-content .t33h-meta span i { margin-right: 5px; color: var(--t33h-teal); }
.entry-content .t33h-meta strong { font-size: .97em; color: var(--t33h-ink); }
.entry-content .t33h-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 26px; }
.entry-content .t33h-label {
	margin: 0 0 10px; font-size: .8em; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; color: var(--t33h-teal-dark);
}

/* Check list (what you need) */
.entry-content ul.t33h-checks { list-style: none; margin: 0; padding: 0; }
.entry-content ul.t33h-checks li { position: relative; margin: 0 0 9px; padding: 0 0 0 30px; line-height: 1.45; }
.entry-content ul.t33h-checks li::before {
	content: "\2713"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--t33h-teal); color: #fff; font-size: 12px; font-weight: 900; line-height: 20px; text-align: center;
}
.entry-content ul.t33h-checks li em { color: var(--t33h-muted); font-style: normal; font-size: .92em; }

/* Numbered steps */
.entry-content ol.t33h-steps { list-style: none; counter-reset: t33h; margin: 0; padding: 0; }
.entry-content ol.t33h-steps > li { counter-increment: t33h; position: relative; margin: 0 0 11px; padding: 2px 0 0 40px; line-height: 1.5; }
.entry-content ol.t33h-steps > li::before {
	content: counter(t33h); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
	background: var(--t33h-orange); color: #fff; font-weight: 900; font-size: .88em; line-height: 28px; text-align: center;
}
.entry-content ol.t33h-steps.t33h-big { margin: 1.2em 0 1.6em; }
.entry-content ol.t33h-steps.t33h-big > li {
	padding: 14px 18px 14px 62px; margin: 0 0 12px; background: #fff; border: 1px solid var(--t33h-line); border-radius: 14px;
	box-shadow: 0 1px 2px rgba(20, 40, 60, .04);
}
.entry-content ol.t33h-steps.t33h-big > li::before { left: 16px; top: 14px; width: 32px; height: 32px; line-height: 32px; font-size: .95em; }
.entry-content ol.t33h-steps.t33h-big > li strong:first-child { display: block; color: var(--t33h-ink); font-size: 1.04em; margin-bottom: 2px; }

/* Buttons */
.entry-content .t33h-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.entry-content a.t33h-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px;
	background: var(--t33h-teal); border: 2px solid var(--t33h-teal); color: #fff; font-weight: 800; font-size: .95em;
	text-decoration: none; box-shadow: none; line-height: 1.3;
}
.entry-content a.t33h-btn:hover { background: var(--t33h-teal-dark); border-color: var(--t33h-teal-dark); color: #fff; }
.entry-content a.t33h-btn.t33h-btn-ghost { background: #fff; color: var(--t33h-teal-dark); }
.entry-content a.t33h-btn.t33h-btn-ghost:hover { background: var(--t33h-teal-bg); color: var(--t33h-teal-dark); }

/* Callouts */
.entry-content .t33h-callout { border-radius: 14px; padding: 16px 20px; margin: 1.5em 0; border-left: 6px solid; color: var(--t33h-ink); }
.entry-content .t33h-callout > :last-child { margin-bottom: 0; }
.entry-content .t33h-callout p { margin: 0 0 .6em; }
.entry-content .t33h-callout ul { margin: 0; padding-left: 1.2em; }
.entry-content .t33h-callout-title { font-weight: 900; font-size: 1.02em; margin: 0 0 6px; }
.entry-content .t33h-callout-title i { margin-right: 7px; }
.entry-content .t33h-tip { background: var(--t33h-teal-bg); border-color: var(--t33h-teal); }
.entry-content .t33h-tip .t33h-callout-title { color: var(--t33h-teal-dark); }
.entry-content .t33h-warn { background: var(--t33h-orange-bg); border-color: var(--t33h-orange); }
.entry-content .t33h-warn .t33h-callout-title { color: #9a4510; }
.entry-content .t33h-sci { background: var(--t33h-indigo-bg); border-color: var(--t33h-indigo); }
.entry-content .t33h-sci .t33h-callout-title { color: #343f7c; }

/* Item cards (ingredients, materials) */
.entry-content .t33h-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 1.3em 0 1.6em; }
.entry-content .t33h-item { background: #fff; border: 1px solid var(--t33h-line); border-top: 4px solid var(--t33h-teal); border-radius: 12px; padding: 14px 16px; }
.entry-content .t33h-item-name { margin: 0; font-weight: 900; font-size: 1.05em; color: var(--t33h-ink); line-height: 1.3; }
.entry-content .t33h-item-chem { margin: 2px 0 8px; font-size: .86em; color: var(--t33h-indigo); font-weight: 700; }
.entry-content .t33h-item p.t33h-item-text { margin: 0 0 8px; font-size: .94em; line-height: 1.5; }
.entry-content .t33h-item-amount { display: inline-block; margin: 0 0 8px; padding: 2px 10px; border-radius: 999px; background: var(--t33h-orange-bg); color: #9a4510; font-weight: 800; font-size: .82em; }
.entry-content .t33h-item-link { margin: 0; font-size: .9em; font-weight: 700; }

/* Table of contents / jump chips */
.entry-content .t33h-toc ul { list-style: none; margin: .8em 0 1.6em; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.entry-content .t33h-toc li { margin: 0; padding: 0; }
.entry-content .t33h-toc li::before { content: none; display: none; }
.entry-content .t33h-toc a {
	display: inline-block; padding: 6px 13px; border-radius: 999px; background: #f0f4f7; border: 1px solid var(--t33h-line);
	color: var(--t33h-ink); font-size: .88em; font-weight: 700; text-decoration: none; box-shadow: none;
}
.entry-content .t33h-toc a:hover { background: var(--t33h-teal-bg); border-color: var(--t33h-teal-line); color: var(--t33h-teal-dark); }
.entry-content .t33h-toc a span { color: var(--t33h-muted); font-weight: 600; margin-left: 2px; }

/* Hub link strip at the end of a how-to */
.entry-content .t33h-hublink { margin: 2em 0; padding: 14px 18px; border: 1px dashed var(--t33h-teal-line); border-radius: 12px; background: #fbfeff; }
.entry-content .t33h-hublink p { margin: 0; }

/* Hub grid */
.entry-content .t33h-hub-group { margin: 2.2em 0 0; scroll-margin-top: 90px; }
.entry-content .t33h-hub-intro { color: var(--t33h-muted); margin-top: -.3em; }
.entry-content .t33h-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin: 1em 0 0; }
.entry-content a.t33h-hub-card {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--t33h-line); border-radius: 14px; overflow: hidden;
	text-decoration: none; box-shadow: 0 1px 3px rgba(20, 40, 60, .06); color: var(--t33h-ink); transition: transform .15s, box-shadow .15s;
}
.entry-content a.t33h-hub-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(20, 40, 60, .12); }
.entry-content .t33h-hub-thumb { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #eef3f6; }
.entry-content .t33h-hub-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.entry-content .t33h-hub-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.entry-content .t33h-hub-chip { align-self: flex-start; font-size: .7em; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; color: var(--t33h-teal-dark); background: var(--t33h-teal-bg); padding: 3px 9px; border-radius: 999px; }
.entry-content .t33h-hub-title { font-weight: 900; font-size: 1.06em; line-height: 1.3; }
.entry-content .t33h-hub-blurb { font-size: .92em; line-height: 1.5; color: var(--t33h-muted); }
.entry-content .t33h-hub-more { margin-top: auto; padding-top: 4px; font-weight: 800; font-size: .9em; color: var(--t33h-teal); }

@media (max-width: 720px) {
	.entry-content .t33h-card { padding: 18px 16px 20px; border-left-width: 5px; }
	.entry-content .t33h-cols { grid-template-columns: 1fr; gap: 18px; }
	.entry-content .t33h-meta { grid-template-columns: 1fr 1fr; }
	.entry-content ol.t33h-steps.t33h-big > li { padding: 12px 14px 12px 54px; }
	.entry-content ol.t33h-steps.t33h-big > li::before { left: 12px; top: 12px; }
}
@media print {
	.entry-content .t33h-actions, .entry-content .t33h-toc { display: none; }
	.entry-content .t33h-card, .entry-content .t33h-callout, .entry-content .t33h-item { break-inside: avoid; }
}

/* Theme overrides: ruki styles .entry-content a / p with higher specificity. */
.entry-content .t33h-card p, .entry-content .t33h-item p, .entry-content .t33h-callout p.t33h-callout-title,
.entry-content .t33h-hublink p { margin-top: 0 !important; }
.entry-content .t33h-card-title { margin: 0 !important; }
.entry-content .t33h-label { margin: 0 0 10px !important; }
.entry-content .t33h-item-name { margin: 0 !important; }
.entry-content .t33h-item-chem { margin: 3px 0 10px !important; }
.entry-content .t33h-item p.t33h-item-text { margin: 0 0 8px !important; }
.entry-content .t33h-item-link { margin: 0 !important; }
.entry-content a.t33h-btn, .entry-content a.t33h-btn:hover, .entry-content a.t33h-btn:focus,
.entry-content a.t33h-hub-card, .entry-content .t33h-toc a {
	text-decoration: none !important; background-image: none !important; border-bottom-width: 2px;
}
.entry-content a.t33h-btn { color: #fff !important; }
.entry-content a.t33h-btn.t33h-btn-ghost { color: var(--t33h-teal-dark) !important; background-color: #fff !important; }
.entry-content a.t33h-btn:not(.t33h-btn-ghost) { background-color: var(--t33h-teal) !important; }
.entry-content a.t33h-btn:not(.t33h-btn-ghost):hover { background-color: var(--t33h-teal-dark) !important; }
.entry-content .t33h-toc a { color: var(--t33h-ink) !important; border-bottom-width: 1px; }
.entry-content a.t33h-hub-card, .entry-content a.t33h-hub-card:hover { color: var(--t33h-ink) !important; border-bottom-width: 1px; }
@media (max-width: 720px) {
	.entry-content .t33h-card { padding: 16px 14px 18px; }
	.entry-content .t33h-meta li { padding: 8px 10px; }
}
.entry-content .t33h-card ul, .entry-content .t33h-card ol, .entry-content ol.t33h-steps, .entry-content .t33h-toc ul {
	margin-left: 0 !important; padding-left: 0 !important;
}
.entry-content .t33h-callout p { margin-top: 0 !important; }
.entry-content .t33h-callout p.t33h-callout-title { margin-bottom: 4px !important; }
.entry-content .t33h-callout ul { margin: 0 !important; padding-left: 1.2em !important; }
