/* Front-end styles for the request form, the gate page and the refusal page.
   Deliberately restrained: this renders inside the site theme, so it inherits
   fonts and colours rather than imposing its own. Only layout and the states the
   theme has no opinion about are styled here. */

.tkcg-form-wrap { max-width: 720px; }

.tkcg-form__title { margin: 0 0 1rem; }

.tkcg-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.25rem;
}

@media (max-width: 600px) {
	.tkcg-grid { grid-template-columns: 1fr; }
}

.tkcg-field { margin: 0; }

.tkcg-field label {
	display: block;
	margin-bottom: .35rem;
	font-weight: 600;
	font-size: .95em;
}

/* The manufacturer theme gives every input `margin: 0 10px`, which pushed the right
   column 10px past the form's edge, and pads input[type=text] (18px 25px) but not
   input[type=email], which left the e-mail field 13px shorter than its neighbours.
   Measured on staging 2026-09-21. Both types are pinned to the theme's own text-input
   size, with the stray margin removed, at a specificity the theme's element selectors
   cannot beat. */
.tkcg-form-wrap .tkcg-field input[type="text"],
.tkcg-form-wrap .tkcg-field input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 18px 25px;
	border: 1px solid #c3c6ca;
	border-radius: 6px;
	font: inherit;
	line-height: 1.4;
	background: #fff;
	color: inherit;
}

.tkcg-form-wrap .tkcg-field input:focus {
	outline: 2px solid #2a3688;
	outline-offset: 1px;
	border-color: #2a3688;
}

.tkcg-req { color: #b32d2e; }

.tkcg-consent {
	margin: 1.25rem 0 0;
	font-size: .9em;
	line-height: 1.55;
}

.tkcg-consent label {
	display: flex;
	gap: .6rem;
	align-items: flex-start;
}

.tkcg-consent input[type="checkbox"] {
	margin-top: .25rem;
	flex: 0 0 auto;
}

/* The honeypot. Moved off-screen rather than display:none, because some bots skip
   fields that are not rendered. Screen readers are kept out with aria-hidden and
   tabindex="-1" on the input itself. */
.tkcg-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tkcg-turnstile { margin: 1.25rem 0 0; }

.tkcg-actions { margin: 1.5rem 0 0; }

.tkcg-btn {
	display: inline-block;
	padding: .8rem 1.6rem;
	border: 1px solid #2a3688;
	border-radius: 6px;
	background: transparent;
	color: #2a3688;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.tkcg-btn--primary { background: #2a3688; color: #fff; }
.tkcg-btn--primary:hover { background: #1f2866; border-color: #1f2866; color: #fff; }
.tkcg-btn--lg { padding: 1rem 2rem; font-size: 1.05em; }

/* The download button is a POST form; keep it looking like the old inline link. */
.tkcg-download { display: block; margin: 0 0 1em; }

.tkcg-notice {
	margin: 0 0 1.25rem;
	padding: .85rem 1rem;
	border-radius: 6px;
	border-left: 4px solid;
}

.tkcg-notice--error {
	background: #fcf0f1;
	border-left-color: #b32d2e;
	color: #8a2424;
}

.tkcg-success {
	padding: 1.5rem;
	border: 1px solid #c6e1c6;
	border-radius: 8px;
	background: #f4faf4;
}

.tkcg-success__title { margin: 0 0 .75rem; }

.tkcg-muted { color: #646970; font-size: .875em; }

/* ------------------------------------------------------------------
   Gate and refusal pages (/katalog-erisim/ and admin-post refusals).
   The intro band reuses the theme's .man_intro markup; the card below it is
   ours. Brand navy is the theme's menu colour, measured on staging.
   ------------------------------------------------------------------ */

.tkcg-gate-page { --tkcg-navy: #2a3688; --tkcg-navy-dark: #1f2866; --tkcg-line: #e3e6ef; --tkcg-soft: #f5f7fb; }

/* The theme prints its own band on these requests with the site name as title, and
   a site-wide rule hides it on blog-home requests. Ours replaces it outright. */
.tkcg-gate-page .man_intro:not(.tkcg-hero) { display: none !important; }
.tkcg-gate-page .tkcg-hero { display: block !important; }

.tkcg-page {
	padding: 64px 16px 88px;
	background: linear-gradient(180deg, var(--tkcg-soft, #f5f7fb) 0, #fff 320px);
}

.tkcg-page__inner { max-width: 880px; margin: 0 auto; }

.tkcg-card {
	display: flex;
	gap: 40px;
	align-items: center;
	padding: 48px;
	background: #fff;
	border: 1px solid var(--tkcg-line, #e3e6ef);
	border-radius: 14px;
	box-shadow: 0 18px 50px -24px rgba(31, 40, 102, .28);
	text-align: left;
}

.tkcg-card__cover {
	flex: 0 0 220px;
	align-self: stretch;
	display: flex;
	align-items: center;
}

.tkcg-card__cover img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .35);
}

.tkcg-card__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: rgba(42, 54, 136, .08);
	color: var(--tkcg-navy, #2a3688);
	align-self: flex-start;
}

.tkcg-card__icon--warn { background: #fdf3e7; color: #b25e09; }

.tkcg-card__body { flex: 1 1 auto; min-width: 0; }

.tkcg-eyebrow {
	margin: 0 0 8px;
	font-family: Poppins, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tkcg-navy, #2a3688);
}

/* The site's custom CSS sets `h2 { font-family: Popins !important }` (sic), which
   falls back to the generic sans-serif. Only !important wins against it. */
.tkcg-card__title {
	margin: 0 0 12px;
	font-family: Poppins, sans-serif !important;
	font-size: 28px;
	font-weight: 700 !important;
	line-height: 1.25;
	color: #1b1f3b;
}

.tkcg-card__text {
	margin: 0 0 28px;
	font-size: 16px;
	line-height: 1.65;
	color: #4a4f63;
}

.tkcg-card__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.tkcg-gate-page .tkcg-btn,
.tkcg-card .tkcg-btn {
	border-color: var(--tkcg-navy, #2a3688);
	color: var(--tkcg-navy, #2a3688);
	font-family: Poppins, sans-serif;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.tkcg-gate-page .tkcg-btn:hover { background: var(--tkcg-soft, #f5f7fb); }

.tkcg-gate-page .tkcg-btn--primary,
.tkcg-card .tkcg-btn--primary { background: var(--tkcg-navy, #2a3688); color: #fff; }

.tkcg-gate-page .tkcg-btn--primary:hover,
.tkcg-card .tkcg-btn--primary:hover { background: var(--tkcg-navy-dark, #1f2866); border-color: var(--tkcg-navy-dark, #1f2866); color: #fff; }

.tkcg-card .tkcg-download { margin: 0 0 20px; }

.tkcg-card .tkcg-download .tkcg-btn--lg {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 32px;
	font-size: 16px;
}

.tkcg-card .tkcg-download .tkcg-btn--lg::before {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Chips rather than a dotted line: a separator dot is orphaned at the start of the
   second line when the row wraps (QA 2026-10-01, 1200px). */
.tkcg-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--tkcg-line, #e3e6ef);
	list-style: none;
	font-size: 13px;
	color: #4a4f63;
}

.tkcg-meta li {
	margin: 0;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--tkcg-soft, #f5f7fb);
	line-height: 1.4;
}

@media (max-width: 720px) {
	.tkcg-page { padding: 32px 16px 56px; }
	.tkcg-card { flex-direction: column; align-items: flex-start; gap: 24px; padding: 28px 22px; }
	.tkcg-card__cover { flex-basis: auto; width: 60%; max-width: 220px; align-self: center; }
	.tkcg-card__title { font-size: 22px; }
	.tkcg-card .tkcg-download .tkcg-btn--lg { width: 100%; justify-content: center; }
	.tkcg-card__actions .tkcg-btn { flex: 1 1 100%; text-align: center; }
	.tkcg-hero .man_intro_cont { padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
}

.tkcg-error {
	padding: .75rem 1rem;
	border-left: 4px solid #dba617;
	background: #fcf9e8;
}

/* The catalog section on a page carries the anchor #katalog. Keep its heading clear
   of the sticky header and button row when the menu jumps to it. Kept here, with the
   form, so the rule travels with the shortcode to whichever page hosts it.
   form.js aligns the jump to the measured sticky height; these are the no-JS
   fallback. Below 1025px the button row is not sticky but the header is fixed. */
#katalog, #tkcg-form { scroll-margin-top: 130px; }
@media (max-width: 1024px) { #katalog, #tkcg-form { scroll-margin-top: 110px; } }
