/* Free practice layer. Explicit dark foregrounds retain accessible pastel contrast. */
.free-hero-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:55px;align-items:center;padding-block:54px 80px}.free-hero-grid h1{font-size:clamp(38px,4.4vw,62px);line-height:1.12;letter-spacing:-2.2px}.free-hero-grid h1 span{color:#385d4a}.free-hero-grid .lead{font-size:20px;line-height:1.75}.human-photo{width:100%;height:auto;display:block;border-radius:28px;object-fit:cover}.free-hero-photo{position:relative;padding:10px 15px 20px;background:#e8e2f6;border-radius:42px;transform:rotate(1deg)}.free-hero-photo img{transform:rotate(-1deg)}.photo-sticker{position:absolute;bottom:-12px;left:28px;right:25px;border:1px solid #c8c5d1;border-radius:16px;padding:18px 20px;font-weight:800;color:#193c32;box-shadow:0 8px 18px #193c3210;display:flex;justify-content:space-between;align-items:center}.photo-sticker b{font-size:28px;color:#1e6844}.free-split{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center}.section-lead{max-width:820px;font-size:19px}.free-steps{list-style:none;padding:0;display:grid;gap:12px;margin-block:25px}.free-steps li{display:flex;gap:15px;align-items:center;font-size:18px;font-weight:700}.free-steps b{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:13px;background:#173d39;color:#fff;font-size:23px}.free-steps li:nth-child(2) b{background:#e7e0f5;color:#272947}.free-steps li:nth-child(3) b{background:#f4e3d4;color:#483624}.pastel-note{background:#e7eddc;color:#193c32;padding:26px;border:1px solid #c6d2bd;border-radius:20px;margin-block:26px}.pastel-note h2{font-size:25px}.free-form{color:#173d39}.free-form .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.free-form .full{grid-column:1/-1}.free-form label{display:block;font-size:16px;font-weight:700}.free-form input:not([type=checkbox]),.free-form select,.free-form textarea{display:block;width:100%;box-sizing:border-box;min-height:50px;padding:12px 14px;border:1px solid #90a49b;background:#fff;color:#173d39;border-radius:10px;font:inherit;margin-top:7px}.free-form textarea{min-height:135px;resize:vertical}.free-form input[type=checkbox]{accent-color:#173d39;width:19px;height:19px;flex:0 0 19px;margin-top:4px}.free-form .consent{display:flex;gap:12px;font-size:15px;font-weight:500;line-height:1.7;margin-block:20px}.free-form .choice{display:flex;gap:10px;align-items:flex-start;min-height:46px;padding:12px;border-radius:10px;background:#f6f7f1;color:#193c32}.free-form .choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.free-form fieldset{border:0;padding:0;margin:24px 0}.free-form legend{font-weight:800;font-size:19px;margin-bottom:12px;color:#173d39}.form-status{font-size:16px;line-height:1.7;min-height:26px}.form-status:not(:empty){padding:16px;background:#e8eddc;border-radius:12px;color:#193c32}.ff-honeypot{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}.notice-form{max-width:640px}.recruit-form{max-width:900px}.recruit-benefit h2{font-size:24px;margin:15px 0 8px}.free-notice-link{display:block;margin-top:20px;color:inherit;font-weight:600}.generator-controls{background:white;border:1px solid #c4d0c1;border-radius:24px;padding:30px}.generator-actions{display:flex;flex-wrap:wrap;gap:12px;margin:25px 0}.generator-page .choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.generator-topic-group{grid-column:1/-1;font-weight:800;margin-top:12px}.generated-task{background:#fff;border:1px solid #c8d2c5;border-radius:20px;padding:24px;margin-block:22px}.generated-task h3{font-size:23px;margin-top:8px}.generated-task .task-provenance{font-size:15px;color:#405b4b}.generated-task img{max-width:100%;height:auto;display:block;background:white;margin:12px auto}.generated-task details{border:1px solid #c5d0bb;border-radius:14px;margin-top:20px;background:#f7f8f0;padding:18px}.generated-task summary{font-weight:800;cursor:pointer;color:#173d39}.generated-paper-title{padding:20px;border-radius:15px;background:#e8eddc;font-size:26px}.generated-paper-title.magyar{background:#ebe5f8}.topic-badge{background:#eee9f8;color:#33304e;padding:7px 10px;border-radius:9px;display:inline-block;font-size:14px;font-weight:700}.generator-page #generator-status,.generator-page #pdf-status{font-size:16px;line-height:1.7}.portal-home .section p,.learning .learning-intro{color:#29483c}.portal-home .section h2,.portal-home .section h3,.portal-home .subject-card,.portal-home .grade-choice{color:#193c32}.learning .learning-cta,.learning .learning-cta h2,.learning .learning-cta p,.learning .learning-cta a.free-notice-link{color:#173d39}.learning .learning-cta .btn{background:#173d39;color:#fff}.learning .learning-cta a.free-notice-link{color:#173d39;text-decoration:underline;text-underline-offset:4px}.site-header .nav-links{gap:19px}.site-header .nav-links a{font-size:14px}.free-home .portal-hero{overflow:visible}.free-form button:disabled{opacity:.65;cursor:wait}.free-form input:focus-visible,.free-form select:focus-visible,.free-form textarea:focus-visible{outline:3px solid #947a40;outline-offset:3px}
@media(max-width:1050px){.site-header .nav-links{gap:12px}.site-header>.container>.btn{display:none}.free-hero-grid{gap:30px}.free-hero-grid h1{font-size:44px}.generator-page .choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.free-hero-grid,.free-split{grid-template-columns:1fr;gap:30px}.free-hero-grid{padding-block:25px 50px}.free-hero-grid h1{font-size:39px;letter-spacing:-1.3px}.free-hero-photo{max-width:520px;margin-bottom:15px}.free-hero-grid .lead{font-size:18px}.photo-sticker{padding:14px;font-size:14px}.free-form .form-grid{grid-template-columns:1fr}.free-form .choice-grid,.generator-page .choice-grid{grid-template-columns:1fr}.generator-controls{padding:20px}.generated-task{padding:15px}.generated-task h3{font-size:21px}.generator-actions .btn{width:100%;justify-content:center}.site-header .nav-links a{font-size:17px}.free-split .human-photo{max-height:440px}.portal-stat-strip .container{grid-template-columns:1fr 1fr}.portal-stat-strip b{font-size:21px}.learning-cta .btn{white-space:normal}}
@media print{.site-header,.site-footer,.cookie-banner,.generator-controls,.generator-actions,.generator-page>.learning-hero,.generator-page .learning-note,#pdf-status{display:none!important}.generated-task{break-inside:avoid;border:0}.generated-task details{display:none}.generator-page .container{max-width:none;width:auto}.generated-task img{max-height:240mm;object-fit:contain}}
/* Explicit mixed/topic selection and near-fold invitation, 5.3.0 */
.generator-modes{margin:8px 0 0!important;padding:0!important;border:0!important;min-width:0}.generator-modes>legend{font-size:1.1rem;font-weight:800;margin-bottom:12px}.generator-mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.generator-mode-card{display:flex!important;align-items:flex-start;gap:12px;padding:20px!important;border:2px solid #c8d3c5;border-radius:16px;background:#fff;cursor:pointer;line-height:1.5}.generator-mode-card.is-active{border-color:#173d39;background:#edf3eb;box-shadow:0 0 0 1px #173d39}.generator-mode-card input{flex:0 0 auto;width:20px!important;height:20px;margin-top:4px;accent-color:#173d39}.generator-mode-card strong{display:block;font-size:1.2rem}.generator-mode-card small{display:block;margin:5px 0;font-size:.86rem;font-weight:700;color:#3e5e52}.generator-mode-card span span{display:block;font-weight:400;font-size:.95rem}.generator-mode-card:focus-within{outline:3px solid #9a7f39;outline-offset:3px}.generator-mode-summary{margin:16px 0 4px;padding:16px 20px;border-radius:12px;background:#ece4f7;color:#173d39;line-height:1.65;overflow-wrap:anywhere}.generator-controls button:disabled{opacity:.6;cursor:not-allowed}.ff-topic-teaser{display:block;margin-top:22px;padding:18px 20px;border-radius:16px;background:#ece4f7;color:#173d39;text-decoration:none;border:1px solid #d9ccec;max-width:620px}.ff-topic-teaser h2{font-size:1.22rem!important;line-height:1.35!important;margin:0 0 7px!important;letter-spacing:normal!important}.ff-topic-teaser p{font-size:.96rem!important;line-height:1.6!important;margin:0 0 9px!important}.ff-topic-teaser strong{display:block;font-size:.95rem;text-decoration:underline;text-underline-offset:4px}.ff-topic-teaser:hover{border-color:#173d39}.ff-topic-teaser:focus-visible{outline:3px solid #9a7f39;outline-offset:3px}.historical-card{background:#fff;border:1px solid #d4dfd0;border-radius:18px;padding:24px}.historical-card h3{margin-top:0}.historical-card .btn{margin:6px 8px 0 0}.historical-format{display:inline-block;border-radius:20px;background:#edf3eb;padding:4px 12px;font-size:.85rem;font-weight:700}.historical-nav{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0}.historical-nav a{padding:10px 16px;border:1px solid #bdcbb9;border-radius:10px}.historical-section{scroll-margin-top:110px;margin-bottom:42px}.historical-note{margin:24px 0;padding:22px;border-radius:16px;background:#ece4f7;color:#173d39}.historical-special{margin-top:24px;padding:20px;border:1px solid #c8d3c5;border-radius:16px}.historical-special summary{font-weight:800;cursor:pointer}.historical-special .learning-grid{margin-top:20px}@media(max-width:700px){.generator-mode-grid{grid-template-columns:1fr}.generator-mode-card{padding:16px!important}.generator-mode-card strong{font-size:1.08rem}.generator-mode-summary{font-size:.94rem}.ff-topic-teaser{margin-top:18px;padding:16px}.historical-card{padding:20px}}

/* Keep the topic invitation within the first desktop screen. */
.free-home .portal-hero{padding:30px 0 38px}.free-home .free-hero-grid{padding-block:0}.historical-page img{display:block;width:100%;height:auto}.historical-page{margin:24px 0 36px}@media(max-width:700px){.free-home .portal-hero{padding-top:24px}}
