/* ghacks Tools base styles: tool pages and embeds only. */
.gt-page, .gt-module {
	--gt-ink: #1f2329; --gt-muted: #5b6270; --gt-line: #dde1e7; --gt-field: #f5f6f8; --gt-bg: #ffffff;
	--gt-brand: #f3b434; --gt-brand-hover: #e2a31f; --gt-brand-ink: #1a1a1a; /* ghacks yellow, dark text: 10:1 contrast */
	--gt-accent: #9a6410; /* controls and focus on white: 4.9:1 */
	--gt-radius: 10px;
}

/* Page frame */
.gt-page { max-width: 880px; margin: 0 auto; padding: 24px 0 56px; color: var(--gt-ink); }
.gt-breadcrumb { font-size: 14px; line-height: 1.5; color: var(--gt-muted); margin: 0 0 14px; overflow-wrap: anywhere; }
.gt-breadcrumb a { color: var(--gt-muted); text-decoration: underline; text-underline-offset: 2px; }
.gt-breadcrumb a:hover { color: var(--gt-ink); }
.gt-head h1 { margin: 0; overflow-wrap: anywhere; hyphens: auto; }
.gt-lede { font-size: 18px; line-height: 1.55; color: var(--gt-muted); margin: 10px 0 24px; }
.gt-content { margin-top: 8px; }
.gt-reviewed { font-size: 14px; color: var(--gt-muted); margin: 32px 0 0; padding-top: 16px; border-top: 1px solid var(--gt-line); }

/* Tool box: height reserved per breakpoint (inline --gt-h / --gt-hm) so nothing shifts when the script mounts */
div.gt-module.gt-module {
	display: block; box-sizing: border-box; min-height: var(--gt-h, 0);
	margin: 0 0 32px; padding: 24px; background: var(--gt-bg); color: var(--gt-ink);
	border: 1px solid var(--gt-line); border-radius: var(--gt-radius); box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
	font-size: 16px; line-height: 1.45;
}
.gt-module *, .gt-module *::before, .gt-module *::after { box-sizing: border-box; }
.gt-module noscript p { margin: 0; color: var(--gt-muted); }

/* Buttons: 48px tall touch targets */
.gt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; border-radius: 8px; border: 0; font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer; touch-action: manipulation; }
.gt-btn-1 { background: var(--gt-brand); color: var(--gt-brand-ink); }
.gt-btn-1:hover { background: var(--gt-brand-hover); }
.gt-btn-2 { background: var(--gt-field); color: var(--gt-ink); border: 1px solid var(--gt-line); }
.gt-btn-2:hover { background: #eceef2; }
.gt-module :focus-visible, .gt-grid a:focus-visible { outline: 3px solid var(--gt-accent); outline-offset: 2px; }

/* Hub grid (list zone of internal links) */
.gt-grid { list-style: none; margin: 8px 0 36px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.gt-card { position: relative; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 20px; background: #fff; border: 1px solid var(--gt-line); border-radius: var(--gt-radius); transition: border-color .15s, box-shadow .15s; }
.gt-card:hover { border-color: var(--gt-brand); box-shadow: 0 4px 14px rgba(16, 24, 40, .08); }
.gt-card-title { font-size: 19px; line-height: 1.3; margin: 0; }
.gt-card-title a { color: var(--gt-accent); text-decoration: none; }
.gt-card:hover .gt-card-title a { text-decoration: underline; text-underline-offset: 3px; }
.gt-card:focus-within { outline: 3px solid var(--gt-accent); outline-offset: 2px; }
.gt-card-title a:focus-visible { outline: none; }
.gt-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--gt-radius); } /* whole card clickable, one link */
.gt-card-text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--gt-muted); }

/* Embeds inside articles */
.gt-embed-link { margin: -18px 0 32px; font-size: 15px; }

/* Embeds sit in the article column (about 740px), narrower than a tool page: reserve the tablet height */
div.gt-module.gt-module.gt-embed { min-height: var(--gt-ht, var(--gt-h, 0)); }
@media (max-width: 1023px) {
	div.gt-module.gt-module { min-height: var(--gt-ht, var(--gt-h, 0)); }
}
@media (max-width: 440px) {
	div.gt-module.gt-module, div.gt-module.gt-module.gt-embed { min-height: var(--gt-hm, var(--gt-ht, var(--gt-h, 0))); }
}
@media (max-width: 600px) {
	div.gt-module.gt-module { padding: 16px; }
	.gt-page { padding: 16px 0 40px; }
	.gt-lede { font-size: 17px; }
	.gt-card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.gt-module *, .gt-card { transition: none !important; }
}

/* Editorial layer (consensus 2026-11-08): byline under the tool, jump list, wide tables scroll inside their box */
.gt-byline { font-size: 14px; line-height: 1.5; color: var(--gt-muted); margin: 14px 0 0; }
.gt-byline a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* Jump list: collapsible <details> below 1024px, sticky right column from 1024px (consensus 2026-11-09) */
.gt-body { margin-top: 28px; }
.gt-toc-nav { margin: 0 0 8px; }
.gt-toc { padding: 0 18px; border: 1px solid var(--gt-line); border-radius: 10px; max-width: 68ch; }
.gt-toc-title { display: flex; align-items: center; min-height: 44px; font-weight: 700; cursor: pointer; list-style: none; }
.gt-toc-title::-webkit-details-marker { display: none; }
.gt-toc-title::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.gt-toc[open] > .gt-toc-title::after { transform: rotate(-135deg); }
.gt-toc-title:focus-visible { outline: 3px solid var(--gt-accent); outline-offset: 2px; border-radius: 4px; }
.gt-toc ol { margin: 0 0 14px; padding-left: 1.3em; }
.gt-toc li { margin: 6px 0; line-height: 1.4; }
.gt-toc a { color: var(--gt-ink); text-decoration: underline; text-decoration-color: var(--gt-brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.gt-toc a:hover { text-decoration-thickness: 2px; }
.gt-toc a:focus-visible { outline: 3px solid var(--gt-accent); outline-offset: 2px; }
.gt-toc li::marker { color: var(--gt-muted); }
@media (min-width: 1024px) {
	.gt-body.gt-has-toc { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 0 32px; align-items: start; }
	.gt-body.gt-has-toc > .gt-toc-nav { grid-column: 2; grid-row: 1; position: sticky; top: 90px; margin: 0; }
	.gt-body.gt-has-toc > .gt-content { grid-column: 1; grid-row: 1; margin-top: 0; }
	.gt-body.gt-has-toc .gt-toc { max-width: none; padding: 0 16px; font-size: 15px; }
	.gt-body.gt-has-toc .gt-content > :first-child { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .gt-toc-title::after { transition: none; } }
.gt-content h2[id], .gt-cluster, .gt-datatable h2 { scroll-margin-top: 90px; }
.gt-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; max-width: 100%; }
.gt-table-wrap table { border-collapse: collapse; min-width: 480px; width: 100%; font-size: 15px; }
.gt-table-wrap th, .gt-table-wrap td { border: 1px solid var(--gt-line); padding: 8px 10px; text-align: left; vertical-align: top; }
.gt-table-wrap thead th { background: rgba(127,127,127,.08); }
.gt-content p, .gt-content ul, .gt-content ol { max-width: 72ch; }
/* Method section, related tools, hub clusters (consensus 2026-11-08 round 2) */
.gt-method { margin: 36px 0 0; padding: 18px 20px; border: 1px solid var(--gt-line); border-radius: var(--gt-radius); max-width: 880px; }
.gt-method h2 { font-size: 20px; margin: 0 0 10px; }
.gt-method dl { margin: 0; display: grid; gap: 8px; }
.gt-method dl > div { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 4px 16px; font-size: 15px; line-height: 1.5; }
.gt-method dt { font-weight: 600; }
.gt-method dd { margin: 0; color: var(--gt-muted); }
.gt-related { margin: 36px 0 8px; }
.gt-related h2, .gt-cluster h2, .gt-datatable h2 { font-size: 22px; margin: 0 0 12px; }
.gt-grid-sm { margin-bottom: 8px; }
.gt-grid-sm .gt-card-title { font-size: 17px; }
.gt-cluster { margin: 32px 0 0; }
.gt-cluster-desc { max-width: 72ch; margin: 0 0 14px; }
.gt-cluster-desc p { margin: 0 0 8px; }
.gt-cluster-related { font-size: 15px; color: var(--gt-muted); margin: -20px 0 0; max-width: 72ch; }
.gt-hub-intro { margin-bottom: 8px; }
.gt-datatable { margin: 36px 0 0; }
@media (max-width: 600px) { .gt-method dl > div { grid-template-columns: 1fr; gap: 0; } }

/* Hub in the theme's category layout (consensus 2026-11-09 round 2): dark band + 65/35 columns from layout-parent.css */
.gt-hubx { --gt-ink: #f0f0f0; --gt-muted: #bdbdbd; --gt-line: rgba(255,255,255,.22); --gt-brand: #f3b434; --gt-accent: #f3b434; --gt-radius: 10px; } /* the tokens were only defined on .gt-page, so var(--gt-line) was invalid here and the borders fell back to none */
.gt-hubx .box-breadcrumb div { flex-wrap: nowrap; }
.gt-hubx .gt-hub-icon { flex: 0 0 auto; margin-right: 15px; color: #fafafa; }
.gt-hubx .box-breadcrumb h1 { line-height: 1.2; }
.gt-hubx .box-breadcrumb p a:not(#breadcrumbs a) { color: #f3b434; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.gt-hubx .box-breadcrumb p:last-child { margin-bottom: 0; }
.gt-hub-body .home-latest-artitles { padding-bottom: 40px; }
.gt-hub-body .gt-cluster { margin: 0 0 8px; scroll-margin-top: 90px; }
.gt-hub-body .gt-cluster-desc { max-width: none; margin: 0 0 18px; color: #e0e0e0; font-size: 16px; line-height: 1.55; }
.gt-hub-body .gt-cluster-desc p { margin: 0 0 8px; }
.gt-hub-body .home-posts-list { margin: 0 0 6px; }
.gt-hub-body .gt-hub-item { margin-bottom: 0; }
.gt-hub-body .home-posts-list > li + li { margin-top: 22px; }
.gt-hub-body .gt-hub-item .home-intro-post-title { font-size: 20px; margin: 0; }
.gt-hub-body .gt-hub-item .home-intro-post-title:before { top: 0; bottom: 0; height: auto; margin-top: 0; }
.gt-hub-body .gt-hub-item p { margin: 6px 0 0 40px; color: #e0e0e0; }
.gt-hub-body .gt-hub-item:hover .home-intro-post-title a { color: #f3b434; }
.gt-hub-body .gt-hub-item .home-intro-post-title a::after { content: ""; position: absolute; inset: 0; } /* whole row clickable */
.gt-hub-body .gt-hub-item a:focus-visible { outline: 3px solid #f3b434; outline-offset: 4px; }
.gt-hub-body .gt-cluster-related { max-width: none; margin: 14px 0 0; font-size: 15px; line-height: 1.5; color: #bdbdbd; }
.gt-hub-body .gt-cluster-related p { margin: 0; }
.gt-hub-body .gt-cluster + .gt-cluster, .gt-hub-body .gt-datatable { margin-top: 12px; }
.gt-hub-body .gt-cluster-related a, .gt-hub-body .gt-datatable a { color: #f3b434 !important; text-decoration: underline !important; text-underline-offset: 3px; }
.gt-hub-body .gt-datatable { margin: 0; scroll-margin-top: 90px; }
.gt-hub-body .gt-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 0; }
.gt-hub-body .gt-table-wrap table { color: #f0f0f0; border-collapse: collapse; width: 100%; min-width: 36rem; font-size: 15px; line-height: 1.5; }
.gt-hub-body .gt-table-wrap table th, .gt-hub-body .gt-table-wrap table td { border: 1px solid rgba(255,255,255,.22); padding: 10px 14px; text-align: left; vertical-align: top; }
.gt-hub-body .gt-table-wrap table thead th { background: #353535; font-weight: 600; border-bottom: 2px solid #f3b434; }
.gt-hub-body .gt-table-wrap table tbody th { font-weight: 600; }
.gt-hub-body .gt-table-wrap:focus-visible { outline: 3px solid #f3b434; outline-offset: 2px; }
.gt-hub-aside nav { padding: 0 0 30px; position: sticky; top: 90px; }
.gt-hub-aside .home-posts { margin-bottom: 0; }
.gt-hub-aside .popular-posts-list > li + li { margin-top: 18px; }
.gt-hub-aside .ranking-title { display: flex; align-items: center; }
.gt-hub-aside a.home-intro-post-title { font-size: 18px; line-height: 1.3; padding-left: 0; color: #fff; }
.gt-hub-aside a.home-intro-post-title:before { display: none; }
.gt-hub-aside a.home-intro-post-title:hover { color: #f3b434; }
.gt-hub-aside a:focus-visible { outline: 3px solid #f3b434; outline-offset: 3px; }
@media (max-width: 48em) {
	.gt-hub-aside { display: none; } /* jump list adds nothing below the list on phones */
	.gt-hub-body .home-latest-artitles:before { display: none; } /* theme rule line at 66px would cut a two-line cluster title */
	.gt-hub-body .home-intro-title { padding-right: 0; }
	.gt-hub-body .gt-hub-item .home-intro-post-title { font-size: 19px; }
}
