/*
 * Styles for the "Gradiva" page template only.
 * Reuses the theme's design tokens from style.css (--page, --accent, --heading ...).
 *
 * The download form is the same Contact Form 7 form that appears at the end of
 * the blog article, so its inner wrappers still carry the sp-story-* class
 * names from single-post.css. Those names are only markup hooks here - every
 * rule below is scoped to .gradivo-page and paints the light variant, while
 * single-post.css paints the dark one. Renaming them would mean editing the
 * live form and both stylesheets at once, so they are deliberately left alone.
 */

.gradivo-page .breadcrumbs{font-size:12px;color:var(--muted);margin-bottom:22px}
.gradivo-page .breadcrumbs a:hover{color:var(--accent-dark)}

.gradivo-intro{padding:44px 0 10px;background:linear-gradient(160deg,var(--page) 0%,var(--page-alt) 70%,var(--warm-soft) 100%)}
.gradivo-page h1{margin:14px 0 12px;font-family:"Baloo 2",cursive;font-size:clamp(36px,5.2vw,52px);line-height:1.05;color:var(--heading)}
.gradivo-lead{max-width:720px;margin:0;color:var(--muted);font-size:18px;line-height:1.7}

.gradivo-list{padding:38px 0 90px;background:var(--page)}

.gradivo-item{
	display:grid;
	grid-template-columns:minmax(320px,.9fr) minmax(0,1.1fr);
	gap:34px;
	padding:26px;
	border:1px solid var(--line);
	border-radius:32px;
	background:var(--card);
	box-shadow:var(--shadow-md);
}

/* Two covers fanned out, the girl edition in front. */
.gradivo-covers{position:relative;min-height:610px;overflow:hidden;border-radius:24px;background:linear-gradient(145deg,#F8F1E7,#EDF7F5)}
.gradivo-cover{position:absolute;height:auto;border-radius:18px;box-shadow:0 20px 50px rgba(32,64,75,.18)}
.gradivo-cover--girl{width:68%;left:11%;top:7%;z-index:2;transform:rotate(-3deg)}
.gradivo-cover--boy{width:58%;right:7%;bottom:6%;opacity:.95;transform:rotate(5deg)}

.gradivo-body{padding:10px 8px 6px 0}
.gradivo-badge{display:inline-flex;align-items:center;gap:8px;color:var(--accent-dark);font-size:14px;font-weight:800}
.gradivo-badge::before{content:"";width:9px;height:9px;border-radius:50%;background:#F07167}
.gradivo-page h2{margin:14px 0 6px;font-family:"Baloo 2",cursive;font-size:clamp(30px,3.6vw,38px);line-height:1.08;color:var(--heading)}
.gradivo-subtitle{margin:0 0 18px;color:var(--accent-dark);font-weight:800;font-size:19px;line-height:1.45}
.gradivo-desc{margin:0 0 22px;color:var(--text);font-size:17px;line-height:1.72}

.gradivo-tags{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:26px}
.gradivo-tags span{padding:8px 12px;border-radius:999px;background:var(--card-soft);border:1px solid var(--line);font-size:13px;font-weight:700;color:var(--text)}

.gradivo-note{margin:14px 0 0;color:var(--muted);font-size:13px;line-height:1.55}
.gradivo-fallback{color:var(--muted)}
.gradivo-fallback a{color:var(--accent-dark);font-weight:800}
.gradivo-more{max-width:760px;margin:38px auto 0;padding:24px 26px;border:1px dashed #B9D9D5;border-radius:24px;background:rgba(255,255,255,.6);color:var(--muted);font-size:15px;line-height:1.65;text-align:center}

/* --- shared Contact Form 7 form, light variant --- */
.gradivo-page .wpcf7-form{display:grid;gap:18px;margin-top:24px}
.gradivo-page .sp-story-field{display:flex;flex-direction:column;gap:9px}
.gradivo-page .sp-story-field label,
.gradivo-page .sp-story-field-label{color:var(--heading);font-size:15px;font-weight:800}
.gradivo-page .sp-story-field .wpcf7-form-control-wrap{display:block}
.gradivo-page .sp-story-field input[type="email"]{
	width:100%;
	height:58px;
	padding:0 17px;
	border:1px solid var(--line);
	border-radius:16px;
	background:#F8FAF9;
	color:var(--heading);
	font:inherit;
	font-size:16px;
	outline:none;
}
.gradivo-page .sp-story-field input[type="email"]:focus{border-color:var(--accent);box-shadow:0 0 0 4px rgba(74,166,167,.12)}

.gradivo-page .wpcf7-radio{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.gradivo-page .wpcf7-radio .wpcf7-list-item{margin:0}
.gradivo-page .wpcf7-radio .wpcf7-list-item label{
	display:grid;
	grid-template-columns:20px 86px minmax(0,1fr);
	gap:14px;
	align-items:center;
	padding:13px;
	border:1px solid var(--line);
	border-radius:20px;
	background:#FCFDFC;
	cursor:pointer;
	transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.gradivo-page .wpcf7-radio .wpcf7-list-item label:hover{border-color:#BBD9D7;transform:translateY(-1px)}
.gradivo-page .wpcf7-radio .wpcf7-list-item label:has(input:checked){border-color:var(--accent);background:#F6FBFA;box-shadow:0 0 0 3px rgba(74,166,167,.12)}
.gradivo-page .wpcf7-radio .wpcf7-list-item input[type="radio"]{grid-column:1;grid-row:1;width:20px;height:20px;margin:0;accent-color:var(--accent)}
.gradivo-page .wpcf7-radio .wpcf7-list-item label::before{
	content:"";
	grid-column:2;
	grid-row:1;
	width:86px;
	height:86px;
	border-radius:18px;
	background-color:var(--page-alt);
	background-repeat:no-repeat;
	background-size:cover;
	background-position:center 20%;
}
.gradivo-page .wpcf7-radio .wpcf7-list-item:nth-child(1) label::before{background-image:url("https://skrinjaidej.si/wp-content/uploads/2026/08/iz-vrtca-v-solo-ilustracija-deklica.png")}
.gradivo-page .wpcf7-radio .wpcf7-list-item:nth-child(2) label::before{background-image:url("https://skrinjaidej.si/wp-content/uploads/2026/08/iz-vrtca-v-solo-ilustracija-decek.png")}
.gradivo-page .wpcf7-radio .wpcf7-list-item-label{grid-column:3;grid-row:1;font-family:"Baloo 2",cursive;font-size:20px;font-weight:800;color:var(--heading)}

.gradivo-page .sp-story-consent{display:block;color:var(--muted);font-size:13px;line-height:1.55}
.gradivo-page .sp-story-consent .wpcf7-list-item{margin:0}
.gradivo-page .sp-story-consent label{display:flex;align-items:flex-start;gap:10px;font-weight:400;cursor:pointer}
.gradivo-page .sp-story-consent input[type="checkbox"]{width:18px;height:18px;margin-top:2px;flex:0 0 auto;accent-color:var(--accent)}
.gradivo-page .sp-story-consent a{color:var(--heading);font-weight:800}

.gradivo-page .sp-story-submit{
	justify-self:start;
	min-height:50px;
	padding:0 24px;
	border:0;
	border-radius:999px;
	background:#F07167;
	color:#fff;
	font:inherit;
	font-size:16px;
	font-weight:800;
	cursor:pointer;
	transition:transform .2s ease,filter .2s ease;
}
.gradivo-page .sp-story-submit:hover{transform:translateY(-1px);filter:brightness(.98)}
.gradivo-page .wpcf7-not-valid-tip{color:#9f3f38;font-size:12px;font-weight:700}
.gradivo-page .wpcf7-response-output{
	margin:0;
	padding:14px 16px;
	border:0;
	border-radius:16px;
	background:var(--accent-soft);
	color:var(--accent-dark);
	font-weight:800;
}
.gradivo-page .wpcf7-form.invalid .wpcf7-response-output,
.gradivo-page .wpcf7-form.unaccepted .wpcf7-response-output,
.gradivo-page .wpcf7-form.failed .wpcf7-response-output,
.gradivo-page .wpcf7-form.aborted .wpcf7-response-output,
.gradivo-page .wpcf7-form.spam .wpcf7-response-output{background:#fff1ef;color:#9f3f38}
.gradivo-page .wpcf7-spinner{margin:0 0 0 12px}

@media(max-width:850px){
	.gradivo-item{grid-template-columns:1fr}
	.gradivo-covers{min-height:520px}
}
@media(max-width:600px){
	.gradivo-item{padding:18px;border-radius:24px}
	.gradivo-covers{min-height:440px}
	.gradivo-page .wpcf7-radio{grid-template-columns:1fr}
	.gradivo-page .wpcf7-radio .wpcf7-list-item label{grid-template-columns:20px 76px minmax(0,1fr)}
	.gradivo-page .wpcf7-radio .wpcf7-list-item label::before{width:76px;height:76px}
}
