/*
Theme Name: TC Paket
Description: Section library for travel-club sites (K2). Child theme of Twenty Twenty-Five 1.5. Text-free: every section takes text, photos and palette colours from one parameter array at the top of its pattern file.
Author: Digital Wave
Template: twentytwentyfive
Version: 2.0.0
Requires at least: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tc-paket
*/

/* Sections are full-bleed bands, so no block gap between header, main, footer or stacked sections. */
.wp-site-blocks > * + *,
.wp-block-post-content > .alignfull {
	margin-block-start: 0;
}

/* Header: white bar in normal flow above the hero (no overlay on the photo); site title on the left, black menu on the right. */
.tc-header a { text-decoration: none; }
.tc-header .wp-block-site-title { margin: 0; }
.tc-header .tc-logo { margin: 0; }
.tc-header .tc-logo img { display: block; height: auto; }
.tc-header .wp-block-navigation__responsive-container-open,
.tc-header .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--contrast); }
.tc-header .wp-block-navigation__responsive-container.is-menu-open { background-color: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); }

/* "Members Login" menu item as a Sun outline button (black text on white; Sun fill with navy text on hover). */
.tc-login > .wp-block-navigation-item__content {
	border: 1px solid var(--wp--preset--color--accent-1);
	border-radius: 2px;
	color: var(--wp--preset--color--contrast);
	padding: 0.6rem 1.2rem;
}
.tc-login > .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--accent-3);
}

.tc-card .wp-block-post-featured-image img { transition: opacity .2s ease; }
.tc-card:hover .wp-block-post-featured-image img { opacity: .9; }
.tc-card .wp-block-post-title a { text-decoration: none; }

/* Photo bands (hero S0 and closing S7): the photo covers the band, the text sits on the navy gradient. */
.tc-hero .wp-block-cover__inner-container,
.tc-ideas .wp-block-cover__inner-container { width: 100%; }
.tc-hero-copy > * { max-width: 640px; } /* 10.11 QA rule: text column 640 px (never 780) */
.wp-block-cover.tc-hero .wp-block-cover__inner-container.is-layout-constrained > .tc-hero-copy.alignwide,
.wp-block-cover.tc-ideas .wp-block-cover__inner-container.is-layout-constrained > .tc-hero-copy.alignwide { width: 100%; max-width: var(--wp--style--global--wide-size); margin-inline: auto; }
.wp-block-cover.has-custom-content-position.tc-hero > .wp-block-cover__inner-container.wp-block-cover__inner-container,
.wp-block-cover.has-custom-content-position.tc-ideas > .wp-block-cover__inner-container.wp-block-cover__inner-container { width: 100%; box-sizing: border-box; }
.tc-hero-copy > .tc-hero-sub { max-width: 640px; }

/* Thin Sun rule above every H2. Decoration only. */
.tc-rule::before {
	content: "";
	display: block;
	width: 48px;
	height: 2px;
	margin-block-end: 1.1rem;
	background: var(--wp--preset--color--accent-1);
}

/* ---- Modern home layout (v2, 04.11.2026) ---- */

/* S1: narrow centred text column, wide panorama below (larger than the text). */
.tc-intro .tc-intro-p { text-align: left; }
.tc-intro .tc-panorama { margin-block-start: var(--wp--preset--spacing--70); margin-block-end: 0; }
.tc-panorama img { display: block; width: 100%; height: clamp(300px, 42vw, 520px); object-fit: cover; border-radius: 2px; }

/* Overlap card (preklop): see "Site 4 additions" at the end of this file (rework 09.11 popodne). */

/* S3, S4: 60 % photo (taller than the text, sticky on a computer), 40 % text. */
.tc-split .tc-split-photo { margin: 0; }
.tc-split .tc-split-photo img { display: block; width: 100%; height: clamp(480px, 78vh, 760px); object-fit: cover; border-radius: 2px; }
.tc-split .tc-split-media .tc-split-photo { position: sticky; top: 2rem; }
.tc-split .tc-split-text > :first-child { margin-block-start: 0; }
.tc-split .tc-split-text > :last-child { margin-block-end: 0; }
.tc-split .wp-block-columns { align-items: stretch; }
@media (max-width: 781px) {
	.tc-split .tc-split-media { order: -1; }
	.tc-split .tc-split-media .tc-split-photo { position: static; }
	.tc-split .tc-split-photo img { height: auto; aspect-ratio: 4 / 3; }
	.tc-panorama img { height: 260px; }
}

/* S5: bento grid. A real list; tile placement follows the item order. */
.tc-bento-wrap > p, .tc-bento-wrap > h2 { max-width: 640px; }
.tc-bento-wrap > .tc-bento { margin-block: var(--wp--preset--spacing--60); }
.tc-bento {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}
.tc-bento .tc-tile {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 150px;
	margin: 0;
	padding: 1.5rem;
	border-radius: 4px;
	overflow: hidden;
	font-family: var(--wp--preset--font-family--vollkorn);
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.2;
	color: var(--wp--preset--color--contrast);
}
.tc-bento .tc-tile::before { display: none; }
.tc-bento .tc-tile--photo { background: var(--wp--preset--color--accent-3); color: var(--wp--preset--color--base); min-height: 260px; }
.tc-bento .tc-tile--sand { background: var(--wp--preset--color--accent-2); }
.tc-bento .tc-tile--mist { background: var(--wp--preset--color--accent-5); }
.tc-bento .tc-tile--lagoon-light { background: var(--wp--preset--color--accent-8); }
.tc-bento .tc-tile--lagoon { background: var(--wp--preset--color--accent-7); color: var(--wp--preset--color--base); }
.tc-bento .tc-tile--navy { background: var(--wp--preset--color--accent-3); color: var(--wp--preset--color--base); }
.tc-tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tc-tile--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, color-mix(in srgb, var(--wp--preset--color--accent-3) 85%, transparent) 100%); }
.tc-tile-text { position: relative; z-index: 2; }
@media (min-width: 782px) {
	.tc-bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; }
	.tc-bento .tc-tile { min-height: 0; }
	.tc-bento .tc-tile:nth-child(1) { grid-column: 1 / span 2; grid-row: 1 / span 2; font-size: 2rem; }
	.tc-bento .tc-tile:nth-child(2) { grid-column: 3; grid-row: 1; }
	.tc-bento .tc-tile:nth-child(3) { grid-column: 4; grid-row: 1; }
	.tc-bento .tc-tile:nth-child(4) { grid-column: 3 / span 2; grid-row: 2; }
	/* Tiles 5-8 depend on the count (class tc-bento--nN): every count fills the grid with no hole. */
	.tc-bento--n5 .tc-tile:nth-child(5) { grid-column: 1 / span 4; grid-row: 3; }
	.tc-bento--n6 .tc-tile:nth-child(5) { grid-column: 1 / span 2; grid-row: 3; }
	.tc-bento--n6 .tc-tile:nth-child(6) { grid-column: 3 / span 2; grid-row: 3; }
	.tc-bento--n7 .tc-tile:nth-child(5) { grid-column: 1; grid-row: 3 / span 2; }
	.tc-bento--n7 .tc-tile:nth-child(6) { grid-column: 2 / span 2; grid-row: 3 / span 2; }
	.tc-bento--n7 .tc-tile:nth-child(7) { grid-column: 4; grid-row: 3 / span 2; }
	.tc-bento--n8 .tc-tile:nth-child(5) { grid-column: 1; grid-row: 3 / span 2; }
	.tc-bento--n8 .tc-tile:nth-child(6) { grid-column: 2 / span 2; grid-row: 3; }
	.tc-bento--n8 .tc-tile:nth-child(7) { grid-column: 4; grid-row: 3 / span 2; }
	.tc-bento--n8 .tc-tile:nth-child(8) { grid-column: 2 / span 2; grid-row: 4; }
}

/* Gentle reveal on scroll (CSS only; off for reduced motion; sections stay readable at the start value). */
@media (prefers-reduced-motion: no-preference) {
	@supports (animation-timeline: view()) {
		.tc-reveal { animation: tc-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
		@keyframes tc-reveal {
			from { opacity: 0.3; transform: translateY(28px); }
			to { opacity: 1; transform: none; }
		}
	}
}

/* Blog and post pages. */
.single-post .wp-block-post-content :where(h2, h3) { margin-block-start: var(--wp--preset--spacing--50); }
.single-post .wp-block-post-content :where(h2) { font-size: var(--wp--preset--font-size--x-large); }
.tc-published { gap: 0.4em; }

/* Hero with an upright framed photo (hero-okvir.php, 06.11.2026): side gradient Lagoon to Navy (tokens), white text, upright photo in a thin white outline. */
.tc-hero-frame { background-image: linear-gradient(105deg, var(--wp--preset--color--accent-7) 0%, var(--wp--preset--color--accent-3) 100%); }
.tc-hero-frame .wp-block-columns { align-items: flex-start; }
.tc-hero-frame h1 { font-size: clamp(2.25rem, 4.2vw, 3.5rem); line-height: 1.08; margin: 0 0 var(--wp--preset--spacing--30); }
.tc-hero-frame .tc-hero-frame-p { margin-block: 0 var(--wp--preset--spacing--20); line-height: 1.5; }
.tc-hero-frame .tc-hero-frame-media, .tc-hero-frame .tc-hero-frame-text { align-self: flex-start; }
.tc-hero-frame .tc-hero-photo { margin: 0; }
.tc-hero-frame .tc-hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; outline: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 65%, transparent); outline-offset: 12px; }
@media (max-width: 781px) {
	.tc-hero-frame .tc-hero-photo img { aspect-ratio: 4 / 3; outline: none; }
}

/* Hero with an arch photo (hero-luk.php, 06.11.2026): light Sand background, Navy H1 at display size, black lead, photo in an arch with an offset Lagoon-light plate (tokens only). */
.tc-hero-arch .wp-block-columns { align-items: center; }
.tc-hero-arch h1 { font-size: clamp(2.5rem, 5.2vw, 4.5rem); line-height: 1.04; letter-spacing: -0.01em; margin: 0 0 var(--wp--preset--spacing--50); }
.tc-hero-arch .tc-hero-arch-lead { max-width: 30ch; margin-block: 0; line-height: 1.5; }
.tc-hero-arch .tc-hero-arch-media { padding-inline-start: 22px; }
.tc-hero-arch .tc-hero-arch-photo { position: relative; margin: 0; max-width: 460px; margin-inline-start: auto; }
.tc-hero-arch .tc-hero-arch-photo::before { content: ""; position: absolute; inset: 0; transform: translate(-22px, 22px); border-radius: 999px 999px 0 0; background: var(--wp--preset--color--accent-8); }
.tc-hero-arch .tc-hero-arch-photo img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 0 0; }
/* Text columns (kartice-tekst.php, 09.11.2026): thin Sun rule above each column, Lagoon H3, no side padding (first column on the common left edge). Tokens only. */
.tc-tcards .tc-tcard { border-top: 3px solid var(--wp--preset--color--accent-1); padding-top: var(--wp--preset--spacing--40); }
.tc-tcards .tc-tcard-h { margin-block: 0 var(--wp--preset--spacing--30); line-height: 1.2; }
.tc-tcards .tc-tcard-p { margin-block: 0 var(--wp--preset--spacing--30); }
.tc-tcards .tc-tcard > :last-child { margin-block-end: 0; }

/* FAQ (faq.php, 09.11.2026): Rank Math FAQ block; question = H2 in Navy, answer in black at 18 px or more. Tokens only. */
.tc-faq-wrap .rank-math-list-item { border-top: 1px solid var(--wp--preset--color--accent-4); padding-block: var(--wp--preset--spacing--40); }
.tc-faq-wrap .rank-math-list-item:last-child { border-bottom: 1px solid var(--wp--preset--color--accent-4); }
.tc-faq-wrap .rank-math-question { margin: 0 0 var(--wp--preset--spacing--20); font-size: var(--wp--preset--font-size--x-large); line-height: 1.25; color: var(--wp--preset--color--accent-3); }
.tc-faq-wrap .rank-math-answer { margin: 0; max-width: 640px; font-size: var(--wp--preset--font-size--medium); line-height: 1.6; color: var(--wp--preset--color--contrast); }

@media (max-width: 781px) {
	.tc-hero-arch .tc-hero-arch-media { padding-inline-start: 0; }
	.tc-hero-arch .tc-hero-arch-photo { max-width: 340px; margin-inline: auto; }
	.tc-hero-arch .tc-hero-arch-photo::before { transform: translate(-14px, 14px); }
	.tc-hero-arch .tc-hero-arch-lead { max-width: none; }
}

/* ==== Site 4 additions (09.11.2026, layout rework). Palette tokens only, no hex. ==== */

/* Hero with frame: content centred vertically, photo less tall, so no empty dark area under the text. */
.tc-hero-frame .wp-block-columns { align-items: center; }
.tc-hero-frame .tc-hero-frame-media, .tc-hero-frame .tc-hero-frame-text { align-self: center; }
.tc-hero-frame h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
.tc-hero-frame .tc-hero-frame-p { font-size: var(--wp--preset--font-size--large); }
.tc-hero-frame .tc-hero-photo img { aspect-ratio: 1 / 1; }
@media (max-width: 781px) { .tc-hero-frame .tc-hero-photo img { aspect-ratio: 4 / 3; } }

/* Statement. */
.tc-statement-wrap > * { max-width: 640px; }
.tc-statement .tc-statement-lead { margin-block: 0 var(--wp--preset--spacing--30); line-height: 1.35; font-family: var(--wp--preset--font-family--vollkorn); }
.tc-statement .tc-statement-p { margin-block: 0 var(--wp--preset--spacing--30); line-height: 1.55; }
.tc-statement .tc-statement-wrap > :last-child { margin-block-end: 0; }
.tc-statement .tc-rule + .tc-statement-lead { font-family: inherit; font-size: var(--wp--preset--font-size--large); }

/* Photo cards. */
.tc-pcards .tc-pcard-photo { margin: 0 0 var(--wp--preset--spacing--40); }
.tc-pcards .tc-pcard-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.tc-pcards .tc-tcard-h { margin-block: 0 var(--wp--preset--spacing--30); line-height: 1.2; }
.tc-pcards .tc-tcard-p { margin-block: 0 var(--wp--preset--spacing--30); }
.tc-pcards .tc-pcard > :last-child { margin-block-end: 0; }

/* Photo with a white panel (rework 09.11 popodne): the white box itself starts on the common left edge (box left = text column left of the other sections), text padded inside. */
.tc-panel-photo .wp-block-cover__inner-container { width: 100%; box-sizing: border-box; }
.tc-panel-photo .tc-panel-wrap { margin-inline: auto; }
.tc-panel-photo .tc-panel { position: relative; z-index: 2; max-width: 640px; box-sizing: border-box; padding: var(--wp--preset--spacing--50); background: var(--wp--preset--color--base); box-shadow: 0 18px 50px color-mix(in srgb, var(--wp--preset--color--accent-3) 22%, transparent); }
.tc-panel-photo .tc-panel > :first-child { margin-block-start: 0; }
.tc-panel-photo .tc-panel > :last-child { margin-block-end: 0; }
@media (max-width: 781px) { .tc-panel-photo.wp-block-cover { min-height: 0; } .tc-panel-photo .tc-panel { padding: 1.25rem; } }

/* Photo strip. */
.tc-strip .tc-strip-photo { margin: 0; }
.tc-strip .tc-strip-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.tc-strip .tc-strip-photo--one img { aspect-ratio: 21 / 8; }
.tc-strip .tc-strip-cols { column-count: 2; column-gap: var(--wp--preset--spacing--70); }
.tc-strip .tc-strip-cols > p { margin-block: 0 var(--wp--preset--spacing--30); break-inside: avoid; }
.tc-strip .tc-strip-text > .tc-rule { margin-block-start: 0; }
@media (max-width: 781px) { .tc-strip .tc-strip-cols { column-count: 1; } .tc-strip .tc-strip-photo--one img { aspect-ratio: 4 / 3; } }

/* Photo between text columns. */
.tc-between .tc-between-photo { margin: 0; }
.tc-between .tc-between-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; }
.tc-between .tc-between-text > :first-child { margin-block-start: 0; }
.tc-between .tc-between-text > :last-child { margin-block-end: 0; }
.tc-between .tc-between-text--end { padding-block-end: 0; }
@media (max-width: 781px) { .tc-between .tc-between-photo img { aspect-ratio: 4 / 3; } }

/* Numbered rows. */
.tc-numrows { counter-reset: tc-num; }
.tc-numrow { counter-increment: tc-num; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--wp--preset--spacing--60); padding-block: var(--wp--preset--spacing--50); border-top: 1px solid var(--wp--preset--color--accent-4); }
.tc-numrow:last-child { border-bottom: 1px solid var(--wp--preset--color--accent-4); }
.tc-numrow .tc-numrow-h { margin: 0; line-height: 1.15; }
.tc-numrow .tc-icon { display: block; width: 72px; height: 72px; margin: 0 0 var(--wp--preset--spacing--30); color: var(--wp--preset--color--accent-7); }
.tc-numrow .tc-numrow-head > * { margin-block: 0; }
.tc-numrow .tc-numrow-head > .tc-icon { margin-block-end: var(--wp--preset--spacing--30); }
.tc-numrow .tc-numrow-text > p { margin-block: 0 var(--wp--preset--spacing--30); }
.tc-numrow .tc-numrow-text > :last-child { margin-block-end: 0; }
@media (max-width: 781px) { .tc-numrow { grid-template-columns: 1fr; gap: var(--wp--preset--spacing--30); } }

/* Wide band with columns: white text on the Navy gradient over the photo. */
.tc-band-cols .wp-block-cover__inner-container { width: 100%; box-sizing: border-box; }
.tc-bcols { margin-inline: auto; }
.tc-bcols .tc-bcol { border-top: 3px solid var(--wp--preset--color--accent-1); padding-top: var(--wp--preset--spacing--40); }
.tc-bcols .tc-bcol-h { margin-block: 0 var(--wp--preset--spacing--30); line-height: 1.2; }
.tc-bcols .tc-bcol-p { margin-block: 0 var(--wp--preset--spacing--30); }
.tc-bcols .tc-bcol > :last-child { margin-block-end: 0; }

/* Fixes after the first look (09.11.2026): cover blocks default to white text, so the white panel sets its own black text; gap under H2 in new sections. */
.tc-panel-photo .tc-panel, .tc-panel-photo .tc-panel p { color: var(--wp--preset--color--contrast); }
.tc-panel-photo .tc-panel h2 { margin-block-end: var(--wp--preset--spacing--40); }
.tc-statement .tc-statement-wrap > h2 { margin-block-end: var(--wp--preset--spacing--40); }
.tc-strip .tc-strip-text > h2 { margin-block-end: var(--wp--preset--spacing--40); }
.tc-between .tc-between-text > h2 { margin-block-end: var(--wp--preset--spacing--40); }

/* ---- Rework 09.11 popodne ---- */

/* Overlap card (preklop v2): the photo spans the whole wide column (50 px to 50 px at 1280); the white card sits on its lower part, its OUTER edge on the common left edge
   (side left) or on the right edge of the photo (side right), and hangs a little below the photo. Text is padded inside the card. Grid keeps photo and card in one cell. */
@media (min-width: 782px) {
	.wp-block-group.tc-overlap { display: grid; grid-template-columns: minmax(0, var(--wp--style--global--wide-size)); justify-content: center; }
	.wp-block-group.tc-overlap > * { grid-area: 1 / 1; }
	.wp-block-group.tc-overlap > .tc-overlap-photo.wp-block-cover { margin-inline: 0 !important; width: 100%; max-width: 100%; min-height: 760px !important; padding-block: 0; }
	.wp-block-group.tc-overlap > .tc-overlap-card { align-self: end; margin-block: 0 -72px !important; margin-inline: 0 !important; width: calc((100% - var(--wp--preset--spacing--80)) / 2); max-width: none; /* 10.11: kartica = jedna polovina, ista linija kao drugi stubac podeljene sekcije */ box-sizing: border-box; }
	.wp-block-group.tc-overlap > .tc-overlap-card--left { justify-self: start; }
	.wp-block-group.tc-overlap > .tc-overlap-card--right { justify-self: end; }
}
.wp-block-group.tc-overlap > .tc-overlap-card { position: relative; z-index: 2; padding: var(--wp--preset--spacing--50); background: var(--wp--preset--color--base); box-shadow: 0 18px 50px color-mix(in srgb, var(--wp--preset--color--accent-3) 22%, transparent); }
.wp-block-group.tc-overlap > .tc-overlap-card::before { display: none; }
.tc-overlap-card > * { max-width: none; }
.tc-overlap-card > :first-child { margin-block-start: 0; }
.tc-overlap-card > :last-child { margin-block-end: 0; }
@media (max-width: 781px) {
	.wp-block-group.tc-overlap > .tc-overlap-photo.wp-block-cover { margin-inline: 0 !important; width: 100%; max-width: 100%; min-height: 380px !important; padding-block: 0; }
	.wp-block-group.tc-overlap > .tc-overlap-card { margin-block: -64px 0 !important; margin-inline: 0 !important; width: 100%; max-width: 100%; box-sizing: border-box; padding: 1.25rem; }
}

/* Photo with a dark side gradient (foto-preliv): photo across the band, Navy gradient from the left, white text on the common left edge. Replaces the white panel in the second place it was used. */
.tc-shade .wp-block-cover__inner-container { width: 100%; box-sizing: border-box; }
.tc-shade .tc-shade-wrap { margin-inline: auto; }
.tc-shade .tc-shade-wrap > * { max-width: 640px; }
.tc-shade .tc-shade-wrap > h2 { margin-block-end: var(--wp--preset--spacing--40); }
.tc-shade .tc-shade-wrap > :last-child { margin-block-end: 0; }
@media (max-width: 781px) { .tc-shade.wp-block-cover { min-height: 0; } }

/* Phone polish after the look at 390 px (09.11 popodne): smaller gap between photos and text in the strip, lighter card shadow, icon drawn flush with the common left edge. */
.tc-numrow .tc-icon { margin-inline-start: -7px; }
@media (max-width: 781px) {
	.tc-strip .wp-block-spacer { height: 2rem !important; }
	.wp-block-group.tc-overlap > .tc-overlap-card, .tc-panel-photo .tc-panel { box-shadow: 0 8px 24px color-mix(in srgb, var(--wp--preset--color--accent-3) 14%, transparent); }
}

/* ==== Transfer from site 4, 10.11.2026: QA rules of 09.11 built into the patterns. Tokens only, no hex. ==== */

/* Rule (a): every section's content is either the full wide column or ONE text column of 640 px (hero copy, statement, panel, shade, FAQ answer, bento intro all 640; the overlap card is 640 too). Never 920 / 780 / 600. */

/* Rule (b): dark background without a photo = white text AND white heading. PHP passes on_dark for the dark tokens; this is the safety net for the Rank Math FAQ answers and the bare text of a dark section. */
.tc-faq.tc-dark .rank-math-question, .tc-faq.tc-dark .rank-math-answer { color: var(--wp--preset--color--base); }
.tc-faq.tc-dark .tc-faq-wrap .rank-math-list-item, .tc-faq.tc-dark .tc-faq-wrap .rank-math-list-item:last-child { border-color: color-mix(in srgb, var(--wp--preset--color--base) 45%, transparent); }

/* Rule (c): a text card is never put over a photo of people. Variant "split" of the overlap and the white panel: the photo and the text sit side by side, no layer on the photo. */
.tc-photo-text .wp-block-columns { align-items: stretch; }
.tc-photo-text .tc-photo-text-photo { margin: 0; height: 100%; }
.tc-photo-text .tc-photo-text-photo img { display: block; width: 100%; height: 100%; min-height: 420px; max-height: 640px; object-fit: cover; border-radius: 2px; }
.tc-photo-text .tc-photo-text-body { max-width: 640px; box-sizing: border-box; }
.tc-photo-text .tc-photo-text-body > :first-child { margin-block-start: 0; }
.tc-photo-text .tc-photo-text-body > :last-child { margin-block-end: 0; }
.tc-photo-text .tc-photo-text-col-text { align-self: center; }
@media (max-width: 781px) { .tc-photo-text .tc-photo-text-photo img { min-height: 0; height: auto; aspect-ratio: 4 / 3; } }

/* ==== Site 5 additions (11.11.2026, K2b "korporativni izgled"). Palette tokens only, no hex. ==== */

/* Buttons (K1, K2, K9): one shape everywhere, sentence case, 18 px or more, 48 px high. */
.tc-btn .wp-block-button__link { text-transform: none; letter-spacing: 0; font-weight: 700; font-size: var(--wp--preset--font-size--medium); line-height: 1.2; border-radius: 4px; min-height: 48px; display: inline-flex; align-items: center; padding: 0.8rem 1.7rem; box-sizing: border-box; }
.tc-buttons { margin-block-start: var(--wp--preset--spacing--40); }
.tc-hero-frame .tc-buttons { margin-block-start: var(--wp--preset--spacing--50); }

/* Header with a menu and one button: menu as sentence-case links (not the theme's uppercase), button on the right. */
.tc-header-right { flex-wrap: nowrap; align-items: center; }
.tc-header-right .tc-buttons { margin: 0; }
.tc-header .wp-block-navigation { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: var(--wp--preset--font-size--medium); }
.tc-header .wp-block-navigation .wp-block-navigation-item__content { padding-block: 0.4rem; }
.tc-header .wp-block-navigation .wp-block-navigation-item__content:hover { text-decoration: underline; }
@media (min-width: 600px) and (max-width: 1100px) { .tc-header-right { gap: var(--wp--preset--spacing--30); } }
@media (max-width: 599px) { .tc-header-right .tc-buttons { display: none; } } /* the same button stands in the hero */

/* Cards with a line icon (K4, K5) and steps in a row (K6): boxes with a thin rule, equal height, icon on top. */
.tc-icards-head { margin-block-end: var(--wp--preset--spacing--60); }
.tc-icards-head > h2 { margin-block-start: 0; }
.tc-icards { align-items: stretch; }
.tc-icards .tc-icard { box-sizing: border-box; padding: var(--wp--preset--spacing--50); border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent-4) 35%, transparent); border-radius: 6px; border-top: 4px solid var(--wp--preset--color--accent-7); }
.tc-icards .tc-icon { display: block; width: 56px; height: 56px; margin: 0 0 var(--wp--preset--spacing--30); color: var(--wp--preset--color--accent-7); }
.tc-icards .tc-icard-h { margin-block: 0 var(--wp--preset--spacing--30); line-height: 1.2; }
.tc-icards .tc-icard-p { margin-block: 0 var(--wp--preset--spacing--30); }
.tc-icards .tc-icard > :last-child { margin-block-end: 0; }
.tc-steps .tc-icard { border-top-color: var(--wp--preset--color--accent-1); }
.tc-steps .tc-icon { width: 64px; height: 64px; }

/* Dark band with columns, no photo (K7, K8): white text, Sun rule above each column, white line icons. */
.tc-dcols-head > * { max-width: 640px; }
.tc-dcols-head > h2 { margin-block: 0 var(--wp--preset--spacing--40); }
.tc-dcols-head > p { margin-block: 0 var(--wp--preset--spacing--30); }
.tc-dcols-head > :last-child { margin-block-end: 0; }
.tc-dcols .tc-dcol { border-top: 3px solid var(--wp--preset--color--accent-1); padding-top: var(--wp--preset--spacing--40); }
.tc-dcols .tc-icon { display: block; width: 56px; height: 56px; margin: 0 0 var(--wp--preset--spacing--30); color: var(--wp--preset--color--base); }
.tc-dcols .tc-dcol-h { margin-block: 0 var(--wp--preset--spacing--30); line-height: 1.2; }
.tc-dcols .tc-dcol-p { margin-block: 0 var(--wp--preset--spacing--30); }
.tc-dcols .tc-dcol > :last-child { margin-block-end: 0; }

/* Heading left, text right (two equal halves, lines 576 / 704 at 1280 px). */
.tc-ht .wp-block-columns { align-items: flex-start; }
.tc-ht .tc-ht-head > h2 { margin-block-start: 0; }
.tc-ht .tc-ht-text > :first-child { margin-block-start: 0; }
.tc-ht .tc-ht-lead, .tc-ht .tc-ht-p { margin-block: 0 var(--wp--preset--spacing--30); }
.tc-ht .tc-ht-text > :last-child { margin-block-end: 0; }
