/* Site-wide layout fixes on top of the parent theme styles. The theme prints its own inline CSS after this file, so selectors here are one step more specific. */

/* Inline hero checklists: each dot sits about 22px left of its item, so items need more room than the theme's 12-20px gap. */
@media (min-width: 480px) {
	.gt-module-text ul.gt-ul-vertical li {
		margin-right: 36px;
	}
	.gt-module-text ul.gt-ul-vertical li:last-child {
		margin-right: 0;
	}
}

/* Service hero: keep the intro text clear of the bottom-aligned mountain illustration. */
.gt-services-hero-sec .gt-row.gt-start-hero-row {
	padding-bottom: clamp(90px, 9.5vw, 140px);
}
@media (max-width: 767px) {
	.gt-services-hero-sec .gt-row.gt-start-hero-row {
		padding-bottom: 44vw;
	}
}

/* Tables in text modules: on phones the theme turns tables into blocks, so give the caption the full width. */
@media (max-width: 600px) {
	.gt-module.gt-module-text table caption {
		display: block;
		width: 100%;
	}
}

/* Gravity Forms now renders <button>, while the original theme only styled
   input[type=submit]. Use the same Viseo tokens for both markup generations. */
.gt-module-gravity-form .gform_wrapper .gform_button,
.gt-module-gravity-form .gform_wrapper .gform_next_button,
.gt-module-gravity-form .gform_wrapper .gform_previous_button {
	appearance: none;
	box-sizing: border-box;
	display: inline-block;
	width: 100%;
	min-height: 48px;
	padding: 12px 24px;
	border: 1px solid var(--m-blue, #0063be);
	border-bottom-width: 3px;
	border-radius: 8px;
	background: var(--prim-blue, #0f99f4);
	color: var(--white, #fff);
	font-family: var(--ff-base, sans-serif);
	font-size: 18px;
	font-weight: var(--fw-bold, 700);
	line-height: 1.38;
	text-align: center;
	cursor: pointer;
	transition: background-color .2s, border-color .2s;
}
.gt-module-gravity-form .gform_wrapper .gform_button:hover,
.gt-module-gravity-form .gform_wrapper .gform_next_button:hover,
.gt-module-gravity-form .gform_wrapper .gform_previous_button:hover {
	background: #0284e5;
	border-color: var(--m-blue, #0063be);
	color: #fff;
}
.gt-module-gravity-form .gform_wrapper :is(button, input, select, textarea):focus-visible {
	outline: 3px solid var(--prim-d-blue, #2b556d);
	outline-offset: 3px;
}
.gt-module-gravity-form .gform_wrapper button:disabled {
	opacity: .65;
	cursor: wait;
}
.gt-module-gravity-form .gform_wrapper :is(input[type=text], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=password], select, textarea) {
	min-height: 44px;
	padding: 10px 13px;
	font-family: var(--ff-base, sans-serif);
	font-size: 16px;
	color: var(--prim-d-blue, #2b556d);
	border-color: var(--prim-d-blue, #2b556d);
	background-color: var(--l-grey, #f3f3f3);
}
.gt-module-gravity-form .gform_wrapper .gfield textarea {
	min-height: 140px;
	resize: vertical;
}
/* Modern fieldsets otherwise retain the browser's border and black legend. */
.gt-module-gravity-form .gform_wrapper fieldset.gfield {
	min-width: 0;
	padding: 0;
	border: 0;
}
.gt-module-gravity-form .gform_wrapper .gfield legend {
	padding: 0;
	color: var(--prim-d-blue, #2b556d);
	font: inherit;
	font-weight: var(--fw-bold, 700);
}
.gt-module-gravity-form .gform_wrapper :is(.gfield_radio, .gfield_checkbox) {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}
.gt-module-gravity-form .gform_wrapper :is(.gchoice, .gfield_radio > li, .gfield_checkbox > li) {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 8px 0;
}
.gt-module-gravity-form .gform_wrapper :is(input[type=radio], input[type=checkbox]) {
	accent-color: var(--prim-blue, #0f99f4);
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	margin: 3px 0 0;
	cursor: pointer;
}
.gt-module-gravity-form .gform_wrapper :is(.gfield_radio, .gfield_checkbox) label {
	margin: 0;
	cursor: pointer;
}
.gt-module-gravity-form .gform_wrapper .gform_footer {
	margin-top: 24px;
}
/* Kickstarter's compact form sits inside a full-width coloured price panel. */
.gt-news-form-mod .gform_wrapper {
	max-width: 600px;
	margin: 0 auto;
	padding: 0 24px 8px;
	box-sizing: border-box;
}
.gt-news-form-mod .gform_wrapper .gfield {
	margin-bottom: 16px;
}
/* Decorative service illustrations must not intercept clicks on package CTAs. */
.gt-service-balloon-mod,
.gt-service-opacity-icon-mod {
	pointer-events: none;
}
@media (max-width: 991px) {
	.gt-case-single-hero .gt-row.gt-desktop {
		display: none;
	}
}

/* Decorative backgrounds must not intercept links or breadcrumb taps. */
.gt-bg-image { pointer-events: none; }
.viseo-kb-2026 pre { max-width: 100%; overflow-x: auto; }
@media (max-width: 767px) {
  body.viseo-kb-2026 #gt-article-to-contents { padding-left: 20px; padding-right: 20px; }
}

body:not(.gt-mobile-open) #gt-mobile-navigation { visibility: hidden; }
#gt-mobile-icon { min-width: 44px; min-height: 44px; cursor: pointer; }
#gt-mobile-icon:focus-visible,
.gt-popup-close:focus-visible { outline: 3px solid #0f99f4; outline-offset: 3px; }
#gt-article-to-contents h2 { scroll-margin-top: 150px; }
@media (max-width: 479px) {
  .gt-single-newsletter-section { display: none !important; }
}

/* New editorial pages use the same comfortable gutters on every viewport. */
body.viseo-kb-2026 .main-container > .gt-section { padding-left: 24px; padding-right: 24px; }
body.viseo-kb-2026 .main-container .gt-module-text { overflow-wrap: break-word; }
body.viseo-kb-2026 .main-container .gt-module-text img { max-width: 100%; height: auto; }
body.viseo-kb-2026 .viseo-table-scroll { overflow-x: auto; max-width: 100%; margin: 24px 0; -webkit-overflow-scrolling: touch; }
body.viseo-kb-2026 .viseo-table-scroll:focus-visible { outline: 2px solid #0f99f4; outline-offset: 3px; }
@media (max-width: 767px) {
  body.viseo-kb-2026 .main-container > .gt-section { padding-left: 20px; padding-right: 20px; }
  body.viseo-kb-2026 .main-container h1 { font-size: 30px; line-height: 1.25; }
  body.viseo-kb-2026 .main-container h2 { font-size: 25px; line-height: 1.3; }
  body.viseo-kb-2026 .main-container p, body.viseo-kb-2026 .main-container li { font-size: 17px; line-height: 1.6; }
  body.viseo-kb-2026 .viseo-table-scroll table { display: table; min-width: 640px; width: 100%; margin: 0; }
  body.viseo-kb-2026 .viseo-table-scroll thead { display: table-header-group; }
  body.viseo-kb-2026 .viseo-table-scroll tbody { display: table-row-group; }
  body.viseo-kb-2026 .viseo-table-scroll tr { display: table-row; }
  body.viseo-kb-2026 .viseo-table-scroll th, body.viseo-kb-2026 .viseo-table-scroll td { display: table-cell; padding: 14px; font-size: 16px; line-height: 1.5; vertical-align: top; }
}

@media (max-width: 767px) {
 body.viseo-kb-2026 .viseo-table-scroll table { display:block; min-width:0; border:0; }
 body.viseo-kb-2026 .viseo-table-scroll thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 body.viseo-kb-2026 .viseo-table-scroll tbody { display:block; }
 body.viseo-kb-2026 .viseo-table-scroll tr { display:block; margin-bottom:20px; border:1px solid #d8e2e8; border-radius:8px; overflow:hidden; }
 body.viseo-kb-2026 .viseo-table-scroll td { display:block; width:auto!important; text-align:left!important; border:0; border-bottom:1px solid #e8edf1; white-space:normal; }
 body.viseo-kb-2026 .viseo-table-scroll td:first-child { background:#f3f8fb; font-weight:700; }
 body.viseo-kb-2026 .viseo-table-scroll td:last-child { border-bottom:0; }
 body.viseo-kb-2026 .viseo-table-scroll td::before { content:attr(data-label); display:block; position:static; width:auto; margin-bottom:4px; font-size:13px; font-weight:700; color:#315c71; }
}

/* Keep the knowledgebank category title below the sticky navigation. */
#ai-aeo { scroll-margin-top: 150px; }
