/*
 * PrimeFreeTools — Neo-Brutalist Design System (monochrome).
 *
 * Black #000 / white #fff / neutral grays. 2px black borders,
 * 0-blur hard shadows, geometric radii (<=12px). Replaces handdrawn.css.
 */

:root {
	--tb-paper: #f4f4f4;
	--tb-ink: #000000;
	--tb-ink-muted: #555555;
	--tb-charcoal: #000000;
	--tb-sage: #e8e8e8;
	--tb-card: #ffffff;
	--tb-ring: rgba(0, 0, 0, 0.25);

	/* Legacy aliases so style.css keeps resolving (monochrome only). */
	--tb-postit: #000000;
	--tb-erased: #e0e0e0;
	--tb-accent: #000000;
	--tb-accent2: #000000;
	--tb-wobble: 12px;
	--tb-wobble-md: 12px;
	--tb-logo-h: 60px;

	--tb-font-head: "Cabinet Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--tb-font-body: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--tb-border: #000;
	--tb-shadow: 4px 4px 0px 0px #000;
	--tb-shadow-lg: 8px 8px 0px 0px #000;
	--tb-shadow-xl: 12px 12px 0px 0px #000;
	--tb-shadow-card: 4px 4px 0px 0px #000;
	--tb-shadow-hover: 4px 4px 0px 0px #000;
	--tb-shadow-flat: 0px 0px 0px 0px #000;
}

/* ---------- Base ---------- */
body {
	background-color: #fff;
	color: var(--tb-ink);
	font-family: var(--tb-font-body);
	font-weight: 500;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--tb-font-head);
	font-weight: 800;
	letter-spacing: -0.04em;
}

a { color: var(--tb-charcoal); }
a:hover { color: #000; }

::selection { background: var(--tb-charcoal); color: #fff; }

:focus-visible {
	outline: 3px solid var(--tb-charcoal);
	outline-offset: 2px;
}

.wp-site-blocks { background-color: transparent; }

/* ---------- Dot pattern (light gray bands only) ---------- */
.nb-dots {
	background-image: radial-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1.5px);
	background-size: 32px 32px;
}

/* ---------- Marquee ---------- */
.nb-marquee { overflow: hidden; white-space: nowrap; }
.nb-marquee__track {
	display: inline-block;
	padding-left: 100%;
	animation: nb-marquee 30s linear infinite;
}
@keyframes nb-marquee {
	0% { transform: translateX(0); }
	100% { transform: translateX(-100%); }
}

/* ---------- Buttons: press-flat, geometric ---------- */
.tb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 1rem 2rem;
	background: #000;
	color: #fff;
	font-family: var(--tb-font-body);
	font-weight: 700;
	font-size: 1.125rem;
	line-height: 1;
	border: 2px solid #000;
	border-radius: 12px;
	box-shadow: 8px 8px 0px 0px #000;
	cursor: pointer;
	transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
	user-select: none;
	text-decoration: none;
}
.tb-btn:hover {
	color: #fff;
	box-shadow: 4px 4px 0px 0px #000;
	transform: translate(4px, 4px);
}
.tb-btn:active {
	box-shadow: 0px 0px 0px 0px #000;
	transform: translate(8px, 8px);
}
.tb-btn--secondary {
	background: #fff;
	color: #000;
	box-shadow: 4px 4px 0px 0px #000;
}
.tb-btn--secondary:hover {
	background: #fff;
	color: #000;
	box-shadow: 0px 0px 0px 0px #000;
	transform: translate(4px, 4px);
}
.tb-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.tb-btn--small { padding: 0.35rem 0.8rem; font-size: 0.85rem; min-height: 0; box-shadow: 4px 4px 0px 0px #000; }

/* ---------- Cards / containers ---------- */
.tb-card {
	position: relative;
	background: #fff;
	border: 2px solid #000;
	border-radius: 12px;
	box-shadow: var(--tb-shadow-card);
	padding: 1.5rem;
	overflow-wrap: break-word;
}
.tb-card--postit { background: var(--tb-paper); }

/* ---------- Tags / badges ---------- */
.tb-tag {
	display: inline-block;
	background: #fff;
	border: 2px solid #000;
	border-radius: 6px;
	padding: 0.15rem 0.7rem;
	font-family: var(--tb-font-head);
	font-weight: 700;
	box-shadow: 2px 2px 0px 0px #000;
}
.tb-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.2rem 0.65rem;
	font-size: 0.825rem;
	font-weight: 700;
	border-radius: 6px;
	border: 2px solid #000;
	font-family: var(--tb-font-head);
}
.tb-badge--success { background: #f0f0f0; color: #000; }
.tb-badge--warning { background: #f0f0f0; color: #000; }
.tb-badge--danger { background: #f0f0f0; color: #000; }
.tb-badge--info { background: #f0f0f0; color: #000; }

/* ---------- Inputs ---------- */
.tb-input,
.tb-textarea,
.tb-select,
.tb-tool-search {
	width: 100%;
	background: #fff;
	color: #000;
	font-family: var(--tb-font-body);
	font-size: 1.0625rem;
	padding: 0.6rem 0.9rem;
	border: 2px solid #000;
	border-radius: 12px;
	box-shadow: var(--tb-shadow-card);
	box-sizing: border-box;
}
.tb-input::placeholder,
.tb-textarea::placeholder { color: #555; }
.tb-input:focus,
.tb-textarea:focus,
.tb-select:focus,
.tb-tool-search:focus {
	outline: none;
	border-color: #000;
	box-shadow: 0 0 0 3px var(--tb-sage);
}
.tb-textarea { min-height: 120px; resize: vertical; }
.tb-label { display: block; font-family: var(--tb-font-head); font-weight: 700; margin-bottom: 0.35rem; }
.tb-field { margin-bottom: 1.1rem; }
.tb-tool-search { max-width: 560px; min-height: 48px; margin: 0.5rem 0 1rem; }

/* ---------- Output / tables ---------- */
.tb-output {
	background: #fff;
	border: 2px dashed #000;
	border-radius: 12px;
	padding: 1.25rem;
	white-space: pre-wrap;
	word-break: break-word;
	min-height: 60px;
}
.tb-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0; font-size: 0.95rem; }
.tb-table th, .tb-table td { padding: 0.6rem 0.75rem; border: 2px solid #000; text-align: left; }
.tb-table th { background: var(--tb-paper); font-family: var(--tb-font-head); font-weight: 700; }
.tb-table-responsive { width: 100%; overflow-x: auto; }

/* ---------- Layout shells (structure kept, tokens new) ---------- */
.tb-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.tb-workspace { display: grid; gap: 1.5rem; }
@media (min-width: 992px) {
	.tb-workspace--with-sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
	.tb-workspace--split { grid-template-columns: 1fr 1fr; }
}
.tb-workspace-main { min-width: 0; }
.tb-tool-page { width: 100%; }
.tb-tool-header { text-align: center; padding: 1.75rem 1.5rem; }
.tb-tool-title { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0; }
.tb-tool-tagline { font-size: 1.15rem; margin: 0.4rem 0 0; }
.tb-tool-body { padding: 1.5rem; }
.tb-card-title { font-size: 1.5rem; margin: 0 0 0.5rem; }
.tb-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; padding: 1rem 0 0; font-size: 1rem; }
.tb-breadcrumb a { text-decoration: underline; text-underline-offset: 4px; }
.tb-current { font-family: var(--tb-font-head); font-weight: 700; }
.tb-actions { display: flex; gap: 0.75rem; margin: 0.6rem 0; flex-wrap: wrap; }
.tb-copy { display: inline-flex; align-items: center; gap: 0.3rem; }
.tb-loader { text-align: center; font-size: 1.2rem; opacity: 0.6; }
.tb-tool-root { min-height: 440px; }
.tb-notice { background: var(--tb-paper); border-radius: 12px; padding: 1rem; }
.tb-privacy-note { font-size: 0.95rem; max-width: 46rem; margin: 1.5rem auto 0; text-align: center; line-height: 1.5; }

/* ---------- Header / footer shells ---------- */
.tb-header {
	position: sticky;
	top: 0;
	z-index: 100;
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 5rem;
	padding: 0 30px;
	background: #fff;
	border-bottom: 2px solid #000;
}
.tb-brand { display: flex; align-items: center; gap: 0.75rem; }
.tb-brand .wp-block-site-logo { margin: 0; }
.tb-brand .wp-block-site-logo img { max-height: var(--tb-logo-h, 60px); width: auto; display: block; }
body.tb-hide-site-title .tb-brand .wp-block-site-title { display: none; }
.tb-site-footer { background: var(--tb-charcoal); color: #fff; border-top: 2px solid #000; margin-top: 3rem; padding-top: 20px; }
.tb-site-footer a { color: var(--tb-sage); }
.tb-site-footer a:hover { color: #fff; }
.tb-site-footer h3 { color: #fff; }

/* ---------- Grids reused across pages ---------- */
.tb-popular-grid, .tb-cat-hub-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.25rem;
	margin: 1.25rem 0 2.5rem;
}
.tb-popular-card, .tb-cat-hub-card, .tb-pyramid-card, .tb-blog-card, .tb-privacy-col {
	background: #fff;
	border: 2px solid #000;
	border-radius: 12px;
	box-shadow: var(--tb-shadow-card);
	padding: 1.25rem;
	color: #000;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.tb-popular-card:hover, .tb-cat-hub-card:hover, .tb-pyramid-card:hover { transform: translate(2px, 2px); box-shadow: var(--tb-shadow-flat); }
.tb-popular-card-title, .tb-cat-hub-title { font-size: 1.18rem; margin: 0; }
.tb-popular-card-badge, .tb-cat-hub-count {
	font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
	padding: 2px 8px; border-radius: 6px; border: 2px solid #000; background: var(--tb-sage); color: #000;
}
.tb-popular-card-desc, .tb-cat-hub-desc { font-size: 0.9rem; line-height: 1.45; margin: 0 0 0.95rem; }
.tb-cat-hub-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid #000; }
.tb-cat-hub-samples { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tb-cat-hub-pill { display: inline-block; background: #fff; border: 2px solid #000; border-radius: 6px; padding: 2px 7px; font-size: 0.8rem; font-weight: 600; text-decoration: none; color: #000; }
.tb-cat-hub-pill:hover { background: var(--tb-charcoal); color: #fff; }
.tb-pyramid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.tb-pyramid-card-title { font-size: 1.05rem; margin: 0 0 0.35rem; line-height: 1.3; }
.tb-pyramid-card-title a { color: #000; text-decoration: none; }
.tb-pyramid-card-desc { font-size: 0.85rem; color: #333; line-height: 1.4; margin: 0 0 0.75rem; }
.tb-pyramid-card-link { font-size: 0.85rem; font-weight: 700; color: #000; }
/* Category tool catalogue: two scannable columns on desktop, one on phones. */
.tb-tool-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2.5rem; }
.tb-tool-list li { break-inside: avoid; margin: 0 0 0.55rem; font-size: 0.95rem; line-height: 1.45; }
.tb-tool-list li a { font-weight: 600; }
.tb-tool-list .tb-tool-tagline { font-size: 0.85rem; color: var(--tb-ink-muted); }
@media (max-width: 640px) { .tb-tool-list { columns: 1; } }
/* All-tools catalogue breaks out of the 760px text column to full width. */
.tb-alltools-template .entry-content,
.page-id-624 .entry-content { max-width: 1200px; }
/* Category tab bar: real pills with a visible active state. */
.tb-cat-slider { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.25rem; }
.tb-cat-pill { display: inline-flex; align-items: center; gap: 0.4rem; background: #fff; border: 2px solid #000; border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.88rem; font-weight: 600; color: #000; text-decoration: none; box-shadow: 3px 3px 0 #000; }
.tb-cat-pill:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 #000; }
.tb-cat-pill.is-active { background: #000; color: #fff; }
.tb-cat-count { font-size: 0.75rem; font-weight: 700; border-radius: 999px; padding: 0.05rem 0.45rem; }
.tb-pagination { margin-top: 2rem; text-align: center; }
.tb-pagination ul.page-numbers { list-style: none; margin: 0; padding: 0; display: inline-flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.tb-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; min-height: 44px; padding: 0.3rem 0.8rem;
	background: #fff; border: 2px solid #000; border-radius: 8px; color: #000; text-decoration: none;
}
.tb-pagination .page-numbers.current { background: #000; color: #fff; }

/* ---------- Back-to-top / back-nav / toast / pwa ---------- */
.tb-backtop, .tb-backnav {
	position: fixed; z-index: 50; width: 3rem; height: 3rem;
	border: 2px solid #000; border-radius: 50%; background: #fff; color: #000;
	font-family: var(--tb-font-head); font-size: 1.3rem; line-height: 1; cursor: pointer;
	box-shadow: var(--tb-shadow-flat); opacity: 0; visibility: hidden;
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.tb-backtop { right: 1.4rem; bottom: 1.4rem; transform: translateY(8px); }
.tb-backnav { top: 1rem; left: 1rem; transform: translateY(-8px); }
.tb-backtop.tb-backtop--show, .tb-backnav.tb-backtop--show { opacity: 1; visibility: visible; transform: translateY(0); }
.tb-toast {
	position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px);
	background: #fff; border: 2px solid #000; border-radius: 12px; box-shadow: var(--tb-shadow);
	padding: 0.7rem 1.3rem; font-size: 1.05rem; opacity: 0; pointer-events: none; z-index: 9999;
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.tb-toast--show { opacity: 1; transform: translate(-50%, 0); }
.tb-pwa-bar {
	position: fixed; left: 12px; right: 12px; bottom: 84px; z-index: 9989;
	display: flex; align-items: center; gap: 0.6rem; background: #fff;
	border: 2px solid #000; border-radius: 10px; box-shadow: 3px 3px 0 #000;
	padding: 0.55rem 0.75rem; font-size: 0.85rem; color: #000;
}
.tb-pwa-bar[hidden] { display: none; }

/* ---------- Homepage neo-brutal sections ---------- */
.nb-section { padding: 4rem 0; }
.nb-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.nb-hero { background: var(--tb-paper); border-bottom: 2px solid #000; }
.nb-hero__grid { display: grid; gap: 2.5rem; align-items: center; max-width: 1200px; margin: 0 auto; padding: 4rem 24px; }
@media (min-width: 992px) { .nb-hero__grid { grid-template-columns: 1fr 1fr; } }
.nb-badge {
	display: inline-block; background: #fff; border: 2px solid #000; border-radius: 999px;
	padding: 0.35rem 1rem; font-weight: 700; font-size: 0.85rem; box-shadow: var(--tb-shadow);
}
.nb-hero__title { font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: 0.95; margin: 1.25rem 0; }
.nb-stroke { color: transparent; -webkit-text-stroke: 2px #000; }
.nb-hero__lead { font-size: 1.2rem; line-height: 1.55; max-width: 34rem; }
.nb-hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }
.nb-mock {
	background: #fff; border: 2px solid #000; border-radius: 1rem; box-shadow: 12px 12px 0px 0px #000;
	overflow: hidden;
}
.nb-mock__bar { display: flex; align-items: center; gap: 0.5rem; background: #000; padding: 0.75rem 1rem; }
.nb-mock__dot { width: 12px; height: 12px; border-radius: 50%; }
.nb-mock__body { display: grid; gap: 1rem; padding: 1.25rem; grid-template-columns: 1.4fr 1fr; }
.nb-mock__panel { border: 2px solid #000; border-radius: 8px; padding: 1rem; }
.nb-mock__panel--sage { background: var(--tb-sage); }
.nb-mock__panel--dark { background: var(--tb-charcoal); color: #fff; }
.nb-mock__bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin-top: 0.75rem; }
.nb-mock__bars span { flex: 1; background: var(--tb-charcoal); border-radius: 3px 3px 0 0; }
.nb-marquee { background: var(--tb-charcoal); border-top: 2px solid #000; border-bottom: 2px solid #000; padding: 1rem 0; }
.nb-marquee__track { font-family: var(--tb-font-head); font-weight: 800; font-size: 1.25rem; color: var(--tb-sage); opacity: 0.75; letter-spacing: 0.05em; }
.nb-split { display: grid; gap: 1.5rem; }
@media (min-width: 820px) { .nb-split { grid-template-columns: 1fr 1fr; } }
.nb-card--problem { background: #f4f4f5; border: 2px dashed #666; opacity: 0.85; box-shadow: none; }
.nb-card--solution { background: var(--tb-paper); box-shadow: var(--tb-shadow-lg); }
.nb-checklist { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.6rem; font-weight: 600; }
.nb-features { background: var(--tb-paper); border-top: 2px solid #000; border-bottom: 2px solid #000; }
.nb-grid-3 { display: grid; gap: 1.5rem; }
@media (min-width: 820px) { .nb-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.nb-icon {
	width: 4rem; height: 4rem; display: flex; align-items: center; justify-content: center;
	font-size: 1.75rem; background: var(--tb-sage); border: 2px solid #000; border-radius: 8px; margin-bottom: 1rem;
}
.nb-feature-card:hover .nb-icon { background: var(--tb-paper); }
.nb-steps { background: var(--tb-charcoal); color: #fff; }
.nb-steps__flow { display: grid; gap: 2rem; position: relative; }
@media (min-width: 820px) { .nb-steps__flow { grid-template-columns: repeat(3, 1fr); } }
.nb-step__ring {
	width: 6rem; height: 6rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	font-family: var(--tb-font-head); font-weight: 800; font-size: 2rem; color: #fff; margin-bottom: 1rem;
}
.nb-step__ring--sage { border: 4px solid var(--tb-sage); }
.nb-step__ring--solid { background: #fff; border: 4px solid #fff; color: #000; }
.nb-step__ring--white { border: 4px solid #fff; }
.nb-persona--sage { background: var(--tb-sage); }
.nb-persona--black { background: #000; box-shadow: var(--tb-shadow-lg); color: #fff; border-color: #000; }
.nb-persona--black h3 { color: #fff; }
.nb-persona--white { background: #fff; color: #000; border-color: #000; }
.nb-persona--white h3 { color: #000; }
.nb-pill { display: inline-block; background: #fff; color: #000; border: 2px solid #000; border-radius: 999px; padding: 0.2rem 0.8rem; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.75rem; }
.nb-testimonials { background: var(--tb-sage); }
.nb-tcard { border-radius: 2px 24px 2px 24px; }
.nb-stars { color: #000; letter-spacing: 0.15em; font-size: 1.1rem; }
.nb-cta { background: var(--tb-paper); text-align: center; border-top: 2px solid #000; }
.nb-section__title { font-size: clamp(1.9rem, 4vw, 3rem); margin: 0 0 0.5rem; }
.nb-section__sub { font-size: 1.1rem; margin: 0 0 2rem; }
.nb-section--dark .nb-section__title { color: #fff; }
.nb-section--dark .nb-section__sub { color: var(--tb-sage); }

/* ---------- Legacy overrides: neutralize old aesthetics still in style.css ---------- */
.tb-tab-btn, .tb-cat-pill, .tb-tool-more a, .tb-cat-hub-card, .tb-guide-card,
.tb-cat-panel-header, .category-hub__hero, .category-hub__spotlight-card,
.category-hub__editorial-pillar, .tb-post-content, .pft-fields {
	border-radius: 12px !important;
}
.tb-tab-btn:hover, .tb-cat-card:nth-child(odd), .tb-cat-card:nth-child(even),
.tb-jiggle:hover, .tb-tag, .tb-seat:hover {
	transform: none !important;
}
.tb-tab-btn:hover { background: #000 !important; color: #fff !important; }
.tb-tool-list a, .tb-home-results a, .tb-breadcrumb a, .tb-post-content a { text-decoration-style: solid !important; }
.tb-hero-title { text-decoration: none !important; }
.tb-answer-facts li, .tb-why-list li::before, .tb-compare thead th,
.tb-table th, .tb-cat-count, .tb-tab-count { background: var(--tb-sage) !important; color: #000 !important; }
.tb-popular-card:hover, .tb-pyramid-card:hover { background: #fff !important; }
.tb-tool-more a { background: #000 !important; color: #fff !important; }
/* Former post-it surfaces are now black: force white text. */
.category-hub__badge,
.category-hub__pagination a.page-numbers:hover,
.tb-tab-btn.is-active,
.tb-teacher-desk,
.tb-bingo-header-cell { background: #000 !important; color: #fff !important; }
.tb-why-list li::before { border: 2px solid #000; }
/* Former post-it surfaces now sit on the dark teal primary: white text. */
.tb-rail-tool, .tb-rail-tool a, .tb-rail-tool h3, .tb-rail-tool p { color: #fff; }
/* Rail CTA stays a white button with black text on the black card. */
.tb-rail-tool .tb-btn, .tb-rail-tool .tb-btn:hover, .tb-rail-tool .tb-btn:active { background: #fff; color: #000; }
.tb-pwa-bar { color: #000; }
.tb-pwa-bar__text span { color: var(--tb-sage); }
.tb-pwa-bar__install { color: #fff; }

/* ---------- Mega menu: two-panel flyout (desktop) ---------- */
@media (min-width: 1024px) {
	.tb-header .wp-block-navigation__submenu-container {
		display: none !important; /* Replaced by the custom mega panel. */
	}
	.nb-mega {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: flex;
		align-items: stretch;
		background: #fff;
		border: 2px solid #000;
		box-shadow: 8px 8px 0 #000;
		z-index: 90;
		text-align: left;
	}
	.nb-mega[hidden] { display: none; }
	.nb-mega__left {
		flex: 0 0 280px;
		background: #fff;
		border-right: 2px solid #000;
		padding: 0.75rem;
	}
	.nb-mega__cat {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.5rem;
		width: 100%;
		background: #fff;
		border: 2px solid transparent;
		border-radius: 8px;
		padding: 0.65rem 0.9rem;
		font-family: var(--tb-font-head);
		font-weight: 800;
		font-size: 1rem;
		color: #000;
		cursor: pointer;
		text-align: left;
	}
	.nb-mega__cat::after {
		content: "›";
		font-size: 1.25rem;
		line-height: 1;
		opacity: 0;
	}
	.nb-mega__cat:hover { border-color: #000; }
	.nb-mega__cat.is-active { background: #000; color: #fff; }
	.nb-mega__cat.is-active::after { opacity: 1; }
	.nb-mega__right {
		flex: 1;
		background: #000;
		color: #fff;
		padding: 1.25rem 1.5rem;
		display: flex;
		flex-direction: column;
	}
	.nb-mega__grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.15rem 1.5rem;
		flex-grow: 1;
		align-content: start;
	}
	.nb-mega__tool {
		color: #fff;
		text-decoration: none;
		font-weight: 600;
		font-size: 0.95rem;
		padding: 0.45rem 0.5rem;
		border-radius: 6px;
	}
	.nb-mega__tool:hover, .nb-mega__tool:focus-visible {
		background: #fff;
		color: #000;
		outline: none;
	}
	.nb-mega__utils {
		display: flex;
		gap: 1.25rem;
		align-items: center;
		margin-top: 1rem;
		padding-top: 0.9rem;
		border-top: 1px solid #444;
		font-size: 0.88rem;
		font-weight: 700;
	}
	.nb-mega__utils a { color: #fff; }
	.nb-mega__all { text-decoration: underline; text-underline-offset: 3px; }
	.nb-mega__guides { opacity: 0.85; text-decoration: none; }
	.nb-mega__guides:hover { opacity: 1; text-decoration: underline; }
}

/* ---------- Pomodoro timer ---------- */
.pft-wrap {
	max-width: 820px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 1.5rem 2rem;
	align-items: start;
	padding: 1rem 0 1.5rem;
}
.pft-left { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.pft-side { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.pft-side .pft-tomato-svg { width: min(300px, 76vw); height: auto; }
.pft-harvest { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; max-width: calc(min(300px, 76vw) * 2 + 0.5rem); }
.pft-harvest .pft-tomato-svg { width: 64px; height: auto; }
@media (max-width: 640px) {
	.pft-wrap { grid-template-columns: 1fr; justify-items: center; }
}
.pft-phase { font-family: var(--tb-font-head); font-size: 1.15rem; font-weight: 700; margin-bottom: 1.5rem; min-height: 1.5em; }
.pft-clock { position: relative; display: grid; place-items: center; margin: 0; line-height: 0; }
.pft-time {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	font-family: var(--tb-font-head); font-size: clamp(2rem, 6vw, 3rem); line-height: 1; font-weight: 800;
	color: #000; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
	background: rgba(255, 255, 255, 0.72); padding: 0.15rem 0.8rem; border-radius: 12px;
}
.pft-tomato-svg { width: 108px; height: auto; display: block; transform-origin: 50% 70%; }
.pft-body, .pft-eye, .pft-mouth { transition: fill 0.4s ease; }
.pft-body { fill: #e8452f; }
.pft-eye { fill: #000; transform-box: fill-box; transform-origin: center; transition: transform 0.25s ease; }
.pft-mouth { stroke: #000; stroke-width: 6; fill: none; }
.pft-mouth-open { stroke: #000; stroke-width: 6; fill: #000; display: none; }
.pft-tomato-svg[data-face="break"] .pft-mouth { display: none; }
.pft-tomato-svg[data-face="break"] .pft-mouth-open { display: block; }
.pft-tomato-svg[data-state="running"] { animation: pft-breathe 3.6s ease-in-out infinite; }
.pft-tomato-svg[data-state="running"][data-face="break"] { animation: pft-bounce 1.4s ease-in-out infinite; }
.pft-tomato-svg[data-state="running"][data-urgent] { animation: pft-breathe 2s ease-in-out infinite; }
.pft-tomato-svg[data-state="paused"] .pft-eye { transform: scaleY(0.12); }
.pft-tomato-svg.celebrate { animation: pft-celebrate 0.9s ease-in-out; }
@keyframes pft-breathe {
	0%, 100% { transform: translateY(0) scale(1); }
	50% { transform: translateY(-2px) scale(1.04, 0.96); }
}
@keyframes pft-bounce {
	0%, 100% { transform: translateY(0) scale(1); }
	35% { transform: translateY(-7px) scale(1.06, 0.94) rotate(-2deg); }
	55% { transform: translateY(-7px) scale(1.06, 0.94) rotate(2deg); }
}
@keyframes pft-celebrate {
	0% { transform: translateY(0) scale(1); }
	30% { transform: translateY(-24px) scale(1.15, 0.85) rotate(-6deg); }
	55% { transform: translateY(0) scale(0.94, 1.06) rotate(4deg); }
	75% { transform: translateY(-10px) scale(1.06, 0.94); }
	100% { transform: translateY(0) scale(1); }
}
.pft-ring { width: min(300px, 76vw); height: auto; }
.pft-ring-bg { fill: none; stroke: #e0e0e0; stroke-width: 6; }
.pft-ring-fg {
	fill: none; stroke: #000; stroke-width: 6; stroke-linecap: round;
	transform: rotate(-90deg); transform-origin: 50% 50%;
}
.pft-controls { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pft-btn { flex: 0 0 auto; }
.pft-btn-start { background: var(--tb-postit); color: #fff; }
.pft-music.is-active { background: var(--tb-postit); color: #fff; box-shadow: var(--tb-shadow-flat); transform: translateY(2px); }
.pft-music-note { max-width: 34ch; font-size: 0.85rem; opacity: 0.75; margin-top: 0.1rem; }
.pft-fields {
	display: flex; gap: 1.5rem; justify-content: center; align-items: flex-end; flex-wrap: wrap;
	background: #fff; border: 2px solid #000; border-radius: 12px;
	box-shadow: var(--tb-shadow-card); padding: 1rem 1.5rem 1.2rem;
}
.pft-fields .tb-field { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.pft-fields .tb-input { width: 84px; text-align: center; font-size: 1.15rem; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
	.nb-mock__body { grid-template-columns: 1fr; }
	.nb-section { padding: 2.5rem 0; }
	.tb-tool-search { font-size: 1rem; }
}
@media (max-width: 380px) {
	.tb-container, .nb-wrap { padding-left: 12px; padding-right: 12px; }
	.tb-btn { padding: 0.8rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
	.nb-marquee__track { animation: none; padding-left: 0; }
	.tb-btn, .tb-popular-card, .tb-cat-hub-card, .tb-pyramid-card { transition: none; }
	.pft-tomato-svg { animation: none !important; }
}
