:root {
  --ff-ink: #18372d;
  --ff-muted: #48635a;
  --ff-action: #216348;
  --ff-action-hover: #174a36;
  --ff-paper: #fcfdf9;
  --ff-white: #fff;
  --ff-soft: #edf5e9;
  --ff-line: #cbdacf;
  --ff-focus: #136b88;
  --ff-radius: 16px;
  --ff-width: 1200px;
}
html { scroll-padding-top: 18px; }
body { color: var(--ff-ink); background: var(--ff-paper); }
main { min-width: 0; }
:where(a,button,input,select,summary,textarea,[tabindex]):focus-visible { outline: 3px solid var(--ff-focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.ff-wrap { width: min(var(--ff-width), calc(100% - 40px)); margin-inline: auto; min-width: 0; }
main h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.08; letter-spacing: -.042em; font-weight: 760; overflow-wrap: anywhere; }
main h2 { font-size: clamp(1.35rem, 2.55vw, 2rem); line-height: 1.25; letter-spacing: -.026em; font-weight: 730; }
main :where(input:not([type=radio],[type=checkbox]), select, textarea) { min-width: 0; font-size: 1rem; }
main :where(input[type=radio], input[type=checkbox]) { accent-color: var(--ff-action); }
main :where(.human-photo, .school-photo img, .competence-reader img, .task-image-block img, .task-image img, .generated-task img) { object-fit: contain; }
.ff-kicker { color: #33644d; font-size: .76rem; font-weight: 800; line-height: 1.3; letter-spacing: .1em; margin: 0 0 .8rem; }
.ff-primary, .ff-starter .ff-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em; min-height: 48px;
  padding: .68em 1.2em; border: 1px solid transparent; border-radius: 10px; background: var(--ff-action);
  color: var(--ff-white); font: inherit; font-weight: 750; text-decoration: none; cursor: pointer;
}
.ff-primary:hover { background: var(--ff-action-hover); color: var(--ff-white); }
.ff-global-header.ff-chrome { position: relative; top: auto; z-index: 50; background: #fff; border-bottom: 1px solid var(--ff-line); backdrop-filter: none; }
.ff-global-header.ff-chrome .nav { width: min(var(--ff-width), calc(100% - 40px)); height: 74px; display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 20px; }
.ff-global-header :is(.brand,.site-brand) { min-width: 0; flex-shrink: 0; color: var(--ff-ink); font-size: .99rem; }
.ff-global-header :is(.brand,.site-brand) small { display: none; }
.ff-global-header.ff-chrome .nav-links { margin: 0; gap: clamp(7px, 2vw, 25px); }
.ff-global-header .ff-school-menu > summary { min-height: 44px; align-content: center; white-space: nowrap; font-size: .96rem; }
.ff-global-header .ff-current-section > summary { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .4em; }
.ff-global-header .ff-nav-panel { background: #fff; border-color: var(--ff-line); border-radius: 12px; box-shadow: 0 12px 28px #18372d1e; }
.ff-global-header .ff-nav-panel a { font-size: .96rem; padding: .72rem; min-height: 44px; display: flex; align-items: center; }
.ff-global-header.ff-chrome .nav > .ff-desktop-cta,
.ff-global-header.ff-chrome .nav .ff-menu-cta { border-radius: 10px; min-height: 44px; color: #fff; background: var(--ff-action); box-shadow: none; padding: .62em .9em; }
.ff-global-header.ff-chrome .nav .ff-menu-cta { display: none; }
.ff-global-header.ff-chrome .menu-button { min-width: 44px; min-height: 44px; color: var(--ff-ink); border: 1px solid var(--ff-line); background: var(--ff-white); }
.ff-global-footer.ff-chrome { padding: 34px 0 25px; }
.ff-global-footer .ff-footer-intro { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.ff-global-footer .ff-footer-intro p { color: #d4e3d8; margin: 0; font-size: .98rem; }
.ff-global-footer .ff-footer-directory { padding: 16px 0; margin: 0; gap: 22px; }
.ff-global-footer .footer-col :is(a,button) { font-size: .94rem; min-height: 33px; }
.ff-global-footer .footer-col h3 { font-size: .92rem; margin-bottom: .55em; }
.ff-global-footer .footer-legal { flex-wrap: wrap; }
.ff-home-hero { padding: clamp(22px, 5vw, 62px) 0; background: linear-gradient(135deg,#f3f8ec,#fcfdf9 60%,#edf5ed); border-bottom: 1px solid var(--ff-line); }
.ff-home-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 6vw, 80px); }
.ff-home-intro h1 { max-width: 13em; margin: 0 0 .32em; }
.ff-home-intro > p:not(.ff-kicker) { color: var(--ff-muted); font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.65; margin: 0; max-width: 38ch; }
.ff-home-photo { margin: 22px 0 0; max-width: 355px; }
.ff-home-photo img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: var(--ff-radius); }
.ff-starter { padding: clamp(17px, 3vw, 33px); background: var(--ff-white); border: 1px solid var(--ff-line); border-radius: 20px; box-shadow: 0 12px 35px #1a3f2e12; }
.ff-starter h2 { margin: 0 0 .24em; }
.ff-starter > p:not(.ff-kicker) { color: var(--ff-muted); margin: 0 0 .85rem; }
.ff-starter-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.ff-starter-fields label, .ff-starter-modes legend { font-weight: 730; font-size: .94rem; }
.ff-starter-fields select { display: block; width: 100%; min-height: 44px; padding: .45em .55em; margin-top: .35rem; border: 1px solid var(--ff-line); border-radius: 8px; background: #fbfdfa; color: var(--ff-ink); font-family: inherit; }
.ff-starter-modes { border: 0; padding: 0; margin: 1rem 0; min-width: 0; display: grid; gap: .45rem; }
.ff-starter-modes legend { margin-bottom: .4rem; }
.ff-starter-modes label { padding: .6rem .65rem; display: flex; gap: .65rem; align-items: start; min-height: 44px; cursor: pointer; border: 1px solid var(--ff-line); border-radius: 9px; }
.ff-starter-modes label:has(:checked) { background: var(--ff-soft); border-color: #719b81; }
.ff-starter-modes input { margin: .25em 0 0; }
.ff-starter small, .ff-path small { display: block; line-height: 1.45; font-size: .89rem; color: var(--ff-muted); }
.ff-starter .ff-primary { width: 100%; }
.ff-starter-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: .45rem; }
.ff-starter-links a { padding: .55rem 0; min-height: 42px; color: var(--ff-action); font-weight: 700; }
.ff-home-paths { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-block: clamp(18px,3vw,36px); }
.ff-path { background: #fff; border: 1px solid var(--ff-line); border-radius: var(--ff-radius); display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; padding: clamp(13px,2.5vw,24px); text-decoration: none; color: var(--ff-ink); }
.ff-path:hover { border-color: var(--ff-action); background: var(--ff-soft); }
.ff-path strong { display: block; line-height: 1.35; font-size: 1.08rem; }
.ff-path-mark { display: grid; place-items: center; background: var(--ff-soft); border-radius: 10px; padding: 8px; width: 42px; min-height: 42px; color: var(--ff-action); font-weight: 800; }
.ff-home-more { padding: clamp(18px,3vw,32px) 0; border-top: 1px solid var(--ff-line); margin-bottom: 32px; }
.ff-home-more h2 { margin-top: 0; }
.ff-home-more ul { display: flex; flex-wrap: wrap; gap: 9px 28px; padding-left: 1.2rem; }
.ff-home-more a { color: var(--ff-action); }
.ff-tools-directory { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.ff-tools-directory > div { padding: 16px; border: 1px solid var(--ff-line); border-radius: var(--ff-radius); background: #fff; }
.ff-tools-directory a { display: block; padding: .32rem 0; }
.ff-tool-heading, body[data-ff-ux] main > :is(.learning-hero,.competence-hero,.hero,.profile-hero) { padding-block: clamp(16px,3vw,35px); }
.ff-tool-heading > :is(h1,p) { margin-top: 0; }
body[data-ff-ux] main :is(.wrap,.container,.ff-wrap) { max-width: var(--ff-width); }
body[data-ff-ux="tool"] main > :is(.learning-hero,.competence-hero,.hero) :is(h1,p),
body[data-ff-ux="task"] main .learning-hero :is(h1,p) { margin-bottom: .5rem; }
body[data-ff-ux="tool"] :is(.hero,.learning-hero,.competence-hero) :is(.hero-media,.hero-image,.human-photo,.profile-visual) { display: none; }
body[data-ff-ux="tool"] main :is(.band,.learning-section,.section,.competence-block) { padding-block: clamp(13px,2vw,23px); }
body[data-ff-ux="task"] main :is(.learning-section,.competence-block) { padding-top: .7rem; }
.ff-task-meta { color: var(--ff-muted); font-size: .97rem; line-height: 1.5; }
.ff-j-practice[data-practice-task] { margin: .9rem auto; padding: 1rem; max-width: var(--ff-width); }
.ff-paper-tools,.ff-paper-stepper,.ff-compare-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-block: .75rem; }
.ff-paper-stepper { padding: .6rem; background: var(--ff-soft); border: 1px solid var(--ff-line); border-radius: 10px; }
.ff-paper-stepper button { min-height: 44px; }
.ff-paper-stepper output { font-weight: 750; }
.ff-paper-stepper [data-ff-step-status] { flex: 1; min-width: 7ch; }
.ff-paper-stale { margin-block: .75rem; padding: .65rem .9rem; background: #f9efcd; color: #59411a; border-radius: 8px; }
.ff-generated-figure { margin: .75rem 0; }
.ff-generated-figure img { display: block; max-width: 100%; height: auto; margin-inline: auto; }
.ff-generated-figure a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 750; color: var(--ff-action); }
.ff-compare-nav { padding: .6rem 0; }
.ff-compare-nav a { display: inline-flex; min-height: 44px; align-items: center; padding: .45em .85em; border: 1px solid var(--ff-line); border-radius: 8px; color: var(--ff-ink); background: #fff; font-weight: 750; }
.ff-compare-nav [aria-current] { background: var(--ff-soft); border-color: var(--ff-action); }
.ff-profile-direction { font-weight: 700; }
.ff-table-scroll { overflow-x: auto; max-width: 100%; }
.ff-tool-help { margin-block: .6rem; }
@media (min-width: 901px) { .ff-global-header.ff-chrome .nav-links { display: flex; } }
@media (max-width: 900px) {
  .ff-global-header.ff-chrome .nav { width: calc(100% - 32px); height: 64px; gap: 12px; }
  .ff-global-header.ff-chrome .nav > .ff-desktop-cta { display: none; }
  .ff-global-header.ff-chrome .nav > .menu-button { display: inline-grid; place-items: center; margin-left: auto; }
  .ff-global-header.ff-chrome .nav-links { display: none; position: absolute; top: 100%; inset-inline: 0; width: 100%; margin: 0; flex-direction: column; align-items: stretch; gap: 3px; padding: 10px 16px 17px; max-height: calc(100vh - 65px); max-height: calc(100dvh - 65px); overflow-y: auto; overscroll-behavior: contain; background: #fff; border-bottom: 1px solid var(--ff-line); }
  .ff-global-header.ff-chrome .nav-links.open { display: flex; }
  .ff-global-header.ff-chrome .nav .ff-menu-cta { display: inline-flex; width: fit-content; margin-top: 8px; }
  .ff-global-header .nav-links .ff-school-menu > summary { white-space: normal; }
  .ff-global-header .nav-links .ff-nav-panel { position: static; transform: none; box-shadow: none; max-width: 100%; width: auto; min-width: 0; }
}
@media (max-width: 700px) {
  .ff-wrap { width: calc(100% - 32px); }
  .ff-home-layout,.ff-home-paths,.ff-tools-directory { grid-template-columns: 1fr; }
  .ff-home-intro { display: contents; }
  .ff-home-intro > .ff-kicker, .ff-home-intro > h1, .ff-home-intro > p { grid-column: 1; }
  .ff-home-layout { gap: .75rem; }
  .ff-home-intro > :is(p,h1) { margin: 0; }
  .ff-home-photo { order: 2; margin-top: 8px; max-width: min(100%, 355px); }
  .ff-starter { order: 1; }
  .ff-starter-fields { grid-template-columns: 1fr; gap: 9px; }
  .ff-global-footer.ff-chrome .ff-footer-directory { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
.ff-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body[data-ff-ux="task"] .learning-hero { padding-block: 14px; }
body[data-ff-ux="task"] .learning-hero .breadcrumbs { margin-bottom: .75rem; }
body[data-ff-ux="task"] .learning-hero .eyebrow { display: none; }
body[data-ff-ux="task"] .learning-hero h1 { margin-top: 0; }
body[data-ff-ux="task"] .learning-hero .learning-badges { margin-block: .55rem 0; }
body[data-ff-ux="task"] .learning-layout { padding-top: 16px; }
body[data-ff-ux="task"] #feladat { padding-block: 12px; }
body[data-ff-ux="task"] .learning-document { margin-block: 0; }
body[data-ff-ux="tool"] main .intro { padding-block: 12px; }
body[data-ff-ux="tool"] main .intro h1 { margin-block: .25em; }
.ff-town-filter,.ff-competence-filters { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,145px),1fr)); gap: 12px; margin-block: .8rem; }
.ff-town-filter input,.ff-competence-filters select { min-height: 44px; width: 100%; }
.ff-competence-filters label { display: grid; gap: .25rem; }
.ff-competence-filters select { border: 1px solid var(--ff-line); border-radius: 8px; padding: .45em; background: #fff; color: var(--ff-ink); }
.task-image > [data-competence-zoom]::after { content: "Nagyítás ↗"; display: inline-flex; align-items: center; min-height: 44px; font-weight: 750; }
@media (max-width: 760px) {
  body[data-ff-ux="task"] .learning-layout { display: flex; flex-direction: column; gap: 12px; }
  body[data-ff-ux="task"] .learning-layout > * { width: 100%; }
  body[data-ff-ux="task"] .learning-sidebar { order: 2; }
}
@media (min-width: 360px) and (max-width: 700px) {
  .ff-starter-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.ff-history-matches { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,245px),1fr)); gap: .5rem 1.4rem; }
.ff-history-matches a { display: inline-flex; align-items: center; min-height: 44px; }
.ff-deadline-next { padding: 1rem; background: var(--ff-soft); border: 1px solid var(--ff-line); border-radius: 12px; margin-block: .7rem; }
.ff-deadline-next p { margin: .25rem 0; }
.ff-calendar-group { display: grid; gap: 12px; grid-column: 1 / -1; margin-block: .75rem; }
.ff-calendar-group > h2 { margin: .3rem 0; }
.ff-path > span:first-child:not(.ff-path-mark) { grid-column: 1 / span 2; }
.ff-starter-fields label { display: flex; flex-direction: column; justify-content: space-between; }
body[data-ff-ux="task"] #feladat .task-document > h3 { display: none; }
body[data-ff-ux="task"] #feladat .task-document > .learning-label { margin-bottom: .45rem; }
body[data-ff-ux="task"] #feladat .task-image-help { display: none; }
[data-practice-message]:empty { margin: 0; }
.ff-report-link { padding-block: .7rem 1.2rem; }
.ff-report-link a { color: var(--ff-action); }
@media (max-width: 900px) {
  .ff-global-header .nav > .brand { flex: 0 1 auto; min-width: 0; }
  .ff-global-header .nav > .brand > span:last-child { min-width: 0; overflow-wrap: anywhere; line-height: 1.15; }
  .ff-global-header .nav > .brand .brand-icon,
  .ff-global-header .nav > .menu-button { flex: 0 0 auto; }
}
