/* Timer Pro overview flowchart: inline figure + click-to-zoom viewer (Cremarc design). */
.tp-fc { position: relative; margin: 0; cursor: zoom-in; background: var(--tp-white, #F7F7F2); }
.tp-fc svg { display: block; width: 100%; height: auto; }
.tp-fc__open {
	position: absolute; left: 2.2%; top: 3%;   /* the chart's empty top-left corner */
	display: inline-flex; align-items: center; gap: 10px;
	padding: 10px 16px; border: 0; border-radius: 0; cursor: zoom-in;
	background: var(--tp-black, #0A0A0A); color: var(--tp-white, #F7F7F2);
	font-family: var(--tp-mono, 'IBM Plex Mono', monospace); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase;
	transition: background .15s ease;
}
.tp-fc__open svg { width: 16px; height: 16px; }
.tp-fc:hover .tp-fc__open, .tp-fc__open:focus-visible { background: var(--tp-blue, #1646FF); }
.tp-fc__open:focus-visible { outline: 3px solid var(--tp-focus, #D121CD); outline-offset: 3px; }
.tp-fc__caption { margin-top: .75rem; font-family: var(--tp-mono, 'IBM Plex Mono', monospace); font-size: .8125rem; color: var(--tp-grey-text, #5E636A); }

.tp-fc-lock, .tp-fc-lock body { overflow: hidden; }
.tp-fc-view {
	position: fixed; inset: 0; z-index: 100000;
	display: grid; grid-template-rows: auto 1fr auto;
	background: var(--tp-black, #0A0A0A); color: var(--tp-white, #F7F7F2);
}
.tp-fc-view[hidden] { display: none; }
.tp-fc-view__bar {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 12px 16px; border-bottom: 1px solid #2A2D31;
}
.tp-fc-view__title { font-family: var(--tp-display, 'Bebas Neue', Impact, sans-serif); font-size: 1.6rem; line-height: 1; letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-fc-view__tools { display: flex; align-items: center; gap: 6px; flex: none; }
.tp-fc-view__btn {
	min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid #3A3E44; border-radius: 0;
	background: transparent; color: inherit; cursor: pointer;
	font-family: var(--tp-mono, 'IBM Plex Mono', monospace); font-size: 1.15rem; line-height: 1;
}
.tp-fc-view__btn--fit { font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; }
.tp-fc-view__btn:hover:not(:disabled) { background: var(--tp-blue, #1646FF); border-color: var(--tp-blue, #1646FF); }
.tp-fc-view__btn--close:hover:not(:disabled) { background: var(--tp-red, #FF3D21); border-color: var(--tp-red, #FF3D21); }
.tp-fc-view__btn:disabled { opacity: .35; cursor: default; }
.tp-fc-view__btn:focus-visible { outline: 3px solid var(--tp-focus, #D121CD); outline-offset: 2px; }
.tp-fc-view__pct { min-width: 4.5ch; text-align: center; font-family: var(--tp-mono, 'IBM Plex Mono', monospace); font-size: .8125rem; color: var(--tp-yellow, #FFF200); }
.tp-fc-view__stage { position: relative; overflow: hidden; cursor: zoom-in; touch-action: none; user-select: none; -webkit-user-select: none; }
.tp-fc-view__stage.is-zoomed { cursor: grab; }   /* zoomed in: drag to move, click to zoom out */
.tp-fc-view__stage.is-zoomed.is-moving { cursor: grabbing; }
.tp-fc-view__layer { position: absolute; left: 0; top: 0; transform-origin: 0 0; box-shadow: 0 0 0 1px #2A2D31; }
.tp-fc-view__layer svg { display: block; width: 100%; height: 100%; }
.tp-fc-view__hint { margin: 0; padding: 10px 16px; border-top: 1px solid #2A2D31; text-align: center; font-family: var(--tp-mono, 'IBM Plex Mono', monospace); font-size: .75rem; letter-spacing: .04em; color: #9EA3A9; }
@media (max-width: 700px) {
	.tp-fc__open { position: static; display: flex; justify-content: center; width: 100%; margin-top: 8px; }
	.tp-fc-view__title { font-size: 1.25rem; }
	.tp-fc-view__btn { min-width: 38px; height: 38px; padding: 0 9px; }
	.tp-fc-view__pct { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tp-fc-view__layer { transition: none !important; } }

/* ----- Timer Pro overview page (page-timer-pro-overview.php) ----- */
/* The chart section on Flash White (2026-11-30; it was a black band joined to the banner), the chart itself
   off-white too (assets/images/timer-pro-overview-light.svg). */
.tp-overview__chart .tp-fc { background: var(--tp-white); }
.tp-overview__chart .tp-fc__open { background: var(--tp-black); color: var(--tp-white); }
.tp-overview__chart .tp-fc:hover .tp-fc__open, .tp-overview__chart .tp-fc__open:focus-visible { background: var(--tp-blue); color: var(--tp-white); }
.tp-overview__chart .tp-fc__caption { color: var(--tp-black); }
.tp-overview__groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(24px, 3vw, 40px); }
.tp-overview__group { border-top: 2px solid var(--tp-black); padding-top: 18px; }
.tp-overview__group h3 { font-family: var(--tp-mono); font-size: .875rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 14px; }
.tp-overview__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tp-overview__group a { font-size: 1.125rem; color: var(--tp-black); text-decoration: underline; text-decoration-color: var(--tp-blue); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.tp-overview__group a:hover { color: var(--tp-blue); }
@media (max-width: 860px) { .tp-overview__groups { grid-template-columns: 1fr; } }

/* The chart at its drawn size (2026-11-30): wider than the 1146px page column - up to the drawing's 1360px,
   never closer than 24px to the screen edges - and centred, so its labels show at full size. */
.tp-overview__chart .tp-fc { width: min(1360px, calc(100vw - 48px)); margin-left: calc(50% - min(680px, 50vw - 24px)); }
