/**
 * Git page (page-git template).
 * Git Basics series look (coral, white lines with dots, slab titles) on site rules: no radius, full-bleed bands, // labels.
 */
.gt-page {
	--gt-coral: #ee5133;
	--gt-coral-2: #f26a45;
	--gt-ink: #2b0f08;
	--gt-paper: #fff8f4;
	--gt-peach: #ffb199;
	--gt-mint: #8af5c0;
	--gt-green: #0f9f6e;
	--gt-red: #d93a1b;
	--gt-text: #4a2a20;
	--gt-muted: #8a5a4c;
	--gt-line: #f1d9cf;
	--gt-slab: Rockwell, "Rockwell Nova", "Roboto Slab", "Courier New", Georgia, serif;
	--gt-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
	background: #fff;
	color: var(--gt-text);
}
.gt-page *, .gt-page *::before, .gt-page *::after { box-sizing: border-box; border-radius: 0; }
.gt-page a { color: var(--gt-coral); }
.gt-page code { font-family: var(--gt-mono); font-size: .88em; background: #fdebe4; padding: .1em .35em; color: var(--gt-ink); }
.gt-wrap { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gt-page .c { color: #b98877; }

/* hero */
.gt-hero { position: relative; overflow: hidden; padding: 96px 0 88px; background: var(--gt-coral); color: #fff; }
.gt-hero::before, .gt-hero::after { content: ""; position: absolute; border-radius: 50%; background: var(--gt-coral-2); opacity: .75; pointer-events: none; }
.gt-hero::before { width: 620px; height: 620px; left: -240px; top: 160px; }
.gt-hero::after { width: 520px; height: 520px; right: -160px; top: -260px; }
.gt-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.gt-lines path { fill: none; stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.gt-lines circle { fill: #fff; }
.gt-hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; z-index: 1; }
.gt-kicker { margin: 0 0 22px; font: 700 14px/1 var(--gt-mono); letter-spacing: .08em; color: #fff; opacity: .9; }
.gt-hero__title { margin: 0; font-family: var(--gt-slab); font-size: clamp(52px, 6vw, 92px); line-height: .98; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.gt-hero__title em { display: block; font: 800 .42em/1.2 -apple-system, "Helvetica Neue", Arial, sans-serif; letter-spacing: -.01em; font-style: normal; margin-top: 10px; }
.gt-hero__lead { margin: 26px 0 0; font-size: 19px; line-height: 1.6; color: #fff; opacity: .95; max-width: 580px; }
.gt-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.gt-tags li { padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .7); font: 500 14px/1 var(--gt-mono); color: #fff; }

.gt-hero__side { display: grid; gap: 16px; }
.gt-page .gt-course-link { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: #fff; color: var(--gt-ink); font-weight: 700; text-decoration: none; box-shadow: 0 20px 40px -28px rgba(43, 15, 8, .7); transition: background .15s, color .15s; }
.gt-page .gt-course-link svg { flex: none; color: var(--gt-coral); }
.gt-course-link__ico { flex: none; display: block; width: 32px; height: 32px; }
.gt-course-link__text { display: grid; flex: 1; line-height: 1.3; }
.gt-course-link__text small { color: #8a4b3d; font: 12px/1.4 var(--gt-mono); font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
.gt-page .gt-course-link:hover { background: var(--gt-ink); color: #fff; }
.gt-page .gt-course-link:hover svg, .gt-page .gt-course-link:hover small { color: var(--gt-peach); }
.gt-term { background: var(--gt-ink); color: #fde7df; box-shadow: 0 28px 56px -28px rgba(43, 15, 8, .7); }
.gt-term__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.gt-term__bar i { width: 11px; height: 11px; background: var(--gt-coral); }
.gt-term__bar i:nth-child(2) { background: var(--gt-peach); }
.gt-term__bar i:nth-child(3) { background: var(--gt-mint); }
.gt-term__bar span { margin-left: 12px; font: 13px/1 var(--gt-mono); color: #b98877; }
.gt-term pre { box-sizing: border-box; margin: 0; padding: 20px 22px 24px; height: 300px; overflow: hidden; font: 15px/1.85 var(--gt-mono); white-space: pre-wrap; color: #fde7df; background: none; }
.gt-term b { color: var(--gt-peach); font-weight: 400; }
.gt-term .ok { color: var(--gt-mint); }
.gt-term .cur { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: var(--gt-peach); animation: gt-blink 1s steps(1) infinite; }
@keyframes gt-blink { 50% { opacity: 0; } }


/* sub-navigation */
.gt-subnav { position: sticky; top: var(--gt-top, 0px); z-index: 90; display: flex; align-items: stretch; justify-content: space-between; gap: 0;
	padding: 0 max(48px, calc((100% - 1200px) / 2 + 24px)); background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--gt-line); overflow-x: auto; scrollbar-width: none; }
.gt-subnav::-webkit-scrollbar { display: none; }
.gt-subnav__brand { display: flex; align-items: center; padding-right: 24px; font-family: var(--gt-slab); font-weight: 700; font-size: 20px; color: var(--gt-coral); white-space: nowrap; }
.gt-page .gt-subnav a { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; padding: 18px 12px 15px; font-size: 15px; color: var(--gt-muted); text-decoration: none; white-space: nowrap;
	border-bottom: 3px solid transparent; margin-bottom: -1px; }
.gt-page .gt-subnav a:hover, .gt-page .gt-subnav a.is-on { color: var(--gt-ink); border-bottom-color: var(--gt-coral); }

/* sections */
.gt-sec { padding: 88px 0; scroll-margin-top: calc(var(--gt-top, 0px) + 72px); }
.gt-sec.is-alt { background: var(--gt-paper); border-top: 1px solid var(--gt-line); border-bottom: 1px solid var(--gt-line); }
.gt-num { margin: 0 0 12px; font: 700 14px/1 var(--gt-mono); letter-spacing: .04em; color: var(--gt-coral); }
.gt-sec h2, .gt-cta h2 { margin: 0; font-family: var(--gt-slab); font-size: clamp(32px, 3.6vw, 46px); line-height: 1.1; font-weight: 700; color: var(--gt-ink); }
.gt-lead { margin: 16px 0 0; max-width: 780px; font-size: 18px; line-height: 1.65; color: var(--gt-muted); }
.gt-note { margin: 24px 0 0; font-size: 16px; color: var(--gt-muted); }

/* 01 three areas */
.gt-areas { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border: 2px solid var(--gt-ink); background: #fff; }
.gt-area { position: relative; min-height: 190px; padding: 24px 24px 92px; border-left: 2px solid var(--gt-ink); transition: background .3s; }
.gt-area:first-child { border-left: 0; }
.gt-area__k { display: block; font-family: var(--gt-slab); font-size: 24px; font-weight: 700; color: var(--gt-ink); }
.gt-area p { margin: 8px 0 0; font-size: 15px; color: var(--gt-muted); }
.gt-area.is-on { background: #fdebe4; }
.gt-file { position: absolute; bottom: 28px; left: calc(var(--gt-pos, 0) * 33.333% + 24px); padding: 10px 14px; background: var(--gt-coral); color: #fff;
	font: 700 15px/1 var(--gt-mono); transition: left .6s cubic-bezier(.6, 0, .2, 1), background .3s; }
.gt-file.is-done { background: var(--gt-green); }
.gt-cmds { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.gt-cmds button { appearance: none; border: 2px solid var(--gt-ink); background: var(--gt-ink); color: #fde7df; padding: 12px 16px; font: 15px/1 var(--gt-mono); cursor: pointer; }
.gt-cmds button b { color: var(--gt-peach); font-weight: 400; }
.gt-cmds button:hover, .gt-cmds button:focus-visible { background: var(--gt-coral); border-color: var(--gt-coral); }
.gt-cmds button.is-reset { background: #fff; color: var(--gt-ink); }

.gt-page .gt-cmds code, .gt-page .gt-pipe li > code:only-child { background: none; padding: 0; font-size: inherit; color: inherit; }

/* 02 in / out */
.gt-grid { display: grid; gap: 20px; margin-top: 32px; }
.gt-grid--2 { grid-template-columns: repeat(2, 1fr); }
.gt-grid--3 { grid-template-columns: repeat(3, 1fr); }
.gt-grid--4 { grid-template-columns: repeat(4, 1fr); }
.gt-split { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--gt-ink); background: #fff; }
.gt-split__col { padding: 24px; }
.gt-split__col + .gt-split__col { border-left: 2px solid var(--gt-ink); }
.gt-split__col h3 { margin: 0 0 12px; font-family: var(--gt-slab); font-size: 22px; }
.gt-split__col.is-in h3 { color: var(--gt-green); }
.gt-split__col.is-out h3 { color: var(--gt-red); }
.gt-split__col ul { margin: 0; padding: 0; list-style: none; }
.gt-split__col li { position: relative; padding: 6px 0 6px 22px; font-size: 15px; line-height: 1.45; }
.gt-split__col.is-in li::before { content: "✓"; position: absolute; left: 0; color: var(--gt-green); font-weight: 700; }
.gt-split__col.is-out li::before { content: "×"; position: absolute; left: 2px; color: var(--gt-red); font-weight: 700; }
.gt-code { margin: 0; padding: 22px 24px; background: var(--gt-ink); color: #fde7df; font: 14px/1.75 var(--gt-mono); overflow-x: auto; white-space: pre; }

/* 03 tabs */
.gt-tabs { margin-top: 36px; }
.gt-tabs__list { display: grid; grid-template-columns: repeat(2, 1fr); border: 2px solid var(--gt-ink); background: #fff; }
.gt-tabs__list button { appearance: none; border: 0; border-left: 2px solid var(--gt-ink); background: none; padding: 20px 22px; text-align: left; cursor: pointer;
	font: 700 22px/1.2 var(--gt-mono); color: var(--gt-ink); }
.gt-tabs__list button:first-child { border-left: 0; }
.gt-tabs__list button small { display: block; margin-bottom: 6px; font: 500 12px/1 var(--gt-mono); color: var(--gt-muted); letter-spacing: .06em; text-transform: uppercase; }
.gt-tabs__list button[aria-selected="true"] { background: var(--gt-coral); color: #fff; }
.gt-tabs__list button[aria-selected="true"] small { color: #ffe1d6; }
.gt-tabs__panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; margin-top: 24px; padding: 32px; border: 2px solid var(--gt-ink); background: #fff; }
.gt-tabs__panel[hidden] { display: none; }
.gt-tabs__panel h3 { margin: 0 0 10px; font-family: var(--gt-slab); font-size: 26px; color: var(--gt-ink); }
.gt-tabs__panel p { margin: 0; font-size: 16px; line-height: 1.6; }
.gt-pipe { margin: 0; padding: 0; list-style: none; counter-reset: p; }
.gt-pipe li { position: relative; counter-increment: p; padding: 12px 14px 12px 52px; border: 1px solid var(--gt-line); border-top: 0; font: 15px/1.4 var(--gt-mono); color: var(--gt-ink);
	opacity: 0; transform: translateX(-8px); transition: opacity .35s, transform .35s; transition-delay: calc(var(--i, 0) * 120ms); }
.gt-pipe li:first-child { border-top: 1px solid var(--gt-line); }
.gt-pipe li::before { content: counter(p); position: absolute; left: 0; top: 0; bottom: 0; width: 40px; display: grid; place-items: center; background: var(--gt-coral); color: #fff; font-weight: 700; }
.gt-pipe li:last-child::before { background: var(--gt-green); }
.gt-tabs__panel.is-shown .gt-pipe li { opacity: 1; transform: none; }

/* cards */
.gt-card { display: block; padding: 26px; border: 2px solid var(--gt-ink); background: #fff; color: var(--gt-text); text-decoration: none; }
.gt-card h3 { margin: 0 0 10px; font-family: var(--gt-slab); font-size: 22px; color: var(--gt-ink); }
.gt-card p { margin: 0; font-size: 15px; line-height: 1.6; }
.gt-card__k { display: block; margin-bottom: 10px; font: 700 12px/1 var(--gt-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gt-coral); }
.gt-card__n { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px; background: var(--gt-coral); color: #fff; font: 700 16px/1 var(--gt-mono); }
.gt-page a.gt-card.is-link { color: var(--gt-text); }
.gt-card.is-link:hover, .gt-card.is-link:focus-visible { background: var(--gt-coral); color: #fff; }
.gt-card.is-link:hover h3, .gt-card.is-link:hover .gt-card__k, .gt-card.is-link:focus-visible h3, .gt-card.is-link:focus-visible .gt-card__k { color: #fff; }
.gt-card.is-rule { border-left-width: 8px; border-left-color: var(--gt-coral); }
.gt-hookcode { margin-top: 20px; }
.gt-hookcode .gt-code { white-space: pre-wrap; word-break: break-all; }

/* 07 series videos (forwpdev/video-hub, series mode) */
.gt-videos .forwp-vh { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gt-videos .forwp-vh__track { --vh-slide: calc((100% - 3 * var(--vh-gap)) / 4); }
@media (max-width: 900px) { .gt-videos .forwp-vh__track { --vh-slide: calc((100% - var(--vh-gap)) / 2); } }
@media (max-width: 560px) { .gt-videos .forwp-vh__track { --vh-slide: 78%; } }
.gt-videos .forwp-vh__label { color: var(--gt-coral); font-family: var(--gt-mono); font-weight: 700; }
.gt-videos .forwp-vh__h2 { font-family: var(--gt-slab); color: var(--gt-ink); }

/* course CTA */
.gt-cta { position: relative; overflow: hidden; padding: 80px 0; background: var(--gt-ink); color: #fde7df; scroll-margin-top: calc(var(--gt-top, 0px) + 72px); }
.gt-cta__grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.gt-cta .gt-kicker { color: var(--gt-peach); }
.gt-cta h2 { color: #fff; }
.gt-page .gt-cta p { margin: 14px 0 0; font-size: 18px; line-height: 1.6; max-width: 760px; color: #fde7df; }
.gt-page .gt-cta .gt-kicker { margin-bottom: 14px; }
.gt-page .gt-btn { display: inline-block; padding: 18px 30px; background: var(--gt-coral); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.gt-page .gt-btn:hover { background: #fff; color: var(--gt-coral); }
.gt-modules { display: grid; grid-template-columns: repeat(7, 1fr); margin: 44px 0 0; padding: 0; list-style: none; counter-reset: m; border: 1px solid rgba(255, 255, 255, .2); }
.gt-modules li { counter-increment: m; border-left: 1px solid rgba(255, 255, 255, .2); }
.gt-modules li:first-child { border-left: 0; }
.gt-page .gt-modules a { display: block; height: 100%; padding: 18px 16px; color: #fde7df; text-decoration: none; font-size: 15px; line-height: 1.35; }
.gt-modules a::before { content: "0" counter(m); display: block; margin-bottom: 10px; font: 700 13px/1 var(--gt-mono); color: var(--gt-peach); }
.gt-page .gt-modules a:hover { background: var(--gt-coral); color: #fff; }
.gt-modules a:hover::before { color: #fff; }
.gt-page .gt-cta .gt-cta__note { font-size: 15px; color: #d9b3a6; }
.gt-cta .gt-cta__note a { color: var(--gt-peach); }

/* FAQ */
.gt-faq { border-bottom: 1px solid var(--gt-line); }
.gt-faq:first-of-type { margin-top: 28px; border-top: 1px solid var(--gt-line); }
.gt-faq summary { padding: 20px 0; font-size: 18px; font-weight: 700; color: var(--gt-ink); cursor: pointer; list-style: none; }
.gt-faq summary::-webkit-details-marker { display: none; }
.gt-faq summary::before { content: "+"; display: inline-block; width: 26px; color: var(--gt-coral); font-family: var(--gt-mono); }
.gt-faq[open] summary::before { content: "−"; }
.gt-faq p { margin: 0 0 20px 26px; font-size: 16px; line-height: 1.6; }
.gt-related { margin: 32px 0 0; font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
	.gt-file, .gt-pipe li { transition: none; }
	.gt-term .cur { animation: none; }
}

@media (max-width: 1000px) {
	.gt-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.gt-modules { grid-template-columns: repeat(2, 1fr); }
	.gt-modules li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
}
@media (max-width: 900px) {
	.gt-subnav { justify-content: flex-start; gap: 0; padding: 0 24px; }
	.gt-term pre { font-size: 13px; height: 270px; }
	.gt-page .gt-subnav a { flex: none; padding: 18px 12px 15px; }
	.gt-hero__grid, .gt-tabs__panel, .gt-grid--2, .gt-grid--3, .gt-cta__grid { grid-template-columns: 1fr; }
	.gt-areas { grid-template-columns: 1fr; }
	.gt-area { border-left: 0; border-top: 2px solid var(--gt-ink); min-height: 120px; padding-bottom: 24px; }
	.gt-area:first-child { border-top: 0; }
	.gt-file { position: static; display: inline-block; margin: 16px 24px 24px; }
	.gt-split { grid-template-columns: 1fr; }
	.gt-split__col + .gt-split__col { border-left: 0; border-top: 2px solid var(--gt-ink); }
}
@media (max-width: 560px) {
	.gt-grid--4, .gt-modules { grid-template-columns: 1fr; }
}
