/* Tetőpajzs design system (2026-11-18d, Matt: "Define the font styles, define the input field styles, define the button styles,
   and use those consistently"). Loaded last on every public page: the 15 subpages link this file, the home page inlines the
   same text in the style element with id "design-system" (scripts/inline-design-system.py copies it, tests/design-system.test.mjs checks it).
   Brand colours and fonts stay: Manrope for headings and buttons, Source Sans 3 for text, labels and fields.
   !important is needed because the older site layers (site-504596367acb.css, site-fixes-20261023.css) use it. */
:root{
  --ds-font-head:Manrope,sans-serif;
  --ds-font-text:'Source Sans 3',sans-serif;
  /* Type scale (desktop 1440 px values in comments). */
  --ds-h1:clamp(2.25rem,4vw,3.5rem);      /* 56: page title */
  --ds-h2:clamp(1.875rem,3vw,2.75rem);    /* 44: section title */
  --ds-h3:clamp(1.5rem,2.2vw,2rem);       /* 32: content heading, article h2, contact and accordion headings */
  --ds-title:1.625rem;                    /* 26: dialog and panel title (calculator, chat, quote dialog) */
  --ds-h4:1.375rem;                       /* 22: card and sub heading */
  --ds-h5:1.125rem;                       /* 18: footer and small heading */
  --ds-lead:1.25rem;                      /* 20: intro text */
  --ds-body:1.125rem;                     /* 18: running text */
  --ds-small:.9375rem;                    /* 15: notes, captions */
  --ds-label:1rem;                        /* 16: form labels, fields, choices, buttons */
  --ds-eyebrow:.8125rem;                  /* 13: section tag above a title */
  --ds-ink:#0b2338;
  --ds-muted:#4a5a6c;
  /* Fields */
  --ds-field-h:50px;
  --ds-field-border:#77889c;
  --ds-field-radius:8px;
  /* Buttons */
  --ds-btn-h:52px;
  --ds-btn-radius:8px;
}

/* ---- Type ---- */
h1{font-family:var(--ds-font-head)!important;font-size:var(--ds-h1)!important;font-weight:800!important;line-height:1.1!important;letter-spacing:-.01em}
:is(.section-title,.hz-section-title,h2.hz-dark-bg-text){font-family:var(--ds-font-head)!important;font-size:var(--ds-h2)!important;font-weight:700!important;line-height:1.15!important}
h3{font-family:var(--ds-font-head);font-size:var(--ds-h4)!important;font-weight:700;line-height:1.3!important}
:is(.prose,.legacy-article,.entry-content,article,main) h2:not(.section-title):not(.sr-only),h2.wp-block-heading,
.contact-left h3,.hz-contact-form-block>h3,.accordion-content h3{font-family:var(--ds-font-head)!important;font-size:var(--ds-h3)!important;font-weight:700!important;line-height:1.2!important}
:is(.post-card,.blog-card) :is(h2,h3),h3.wp-block-heading,.legacy-h3,.prose h3,.tc-split .tc-left h3{font-size:var(--ds-h4)!important;line-height:1.3!important}
h4,.footer-col :is(h3,h4){font-family:var(--ds-font-head);font-size:var(--ds-h5)!important;font-weight:700;line-height:1.35!important}
/* Dialog and panel titles sit one step above the card headings inside them. */
.calc-pop #kalkulator .section-title,.widget-chat .chat-header h4,.quote-dialog-head h2{font-family:var(--ds-font-head)!important;font-size:var(--ds-title)!important;font-weight:700!important;line-height:1.25!important}
/* Display numbers stay large: they are figures, not headings. */
.stat-item h3,.hz-badge-figure{font-size:clamp(2.5rem,4.5vw,4rem)!important;line-height:1.05!important}
/* The exit popup keeps its own compact title. */
.exit-popup .section-title{font-size:var(--ds-h3)!important}
.section-subtitle{font-family:var(--ds-font-text)!important;font-size:var(--ds-eyebrow)!important;font-weight:800!important;letter-spacing:.12em!important;text-transform:uppercase}
p,li{font-family:var(--ds-font-text)}
:is(main,section,article,.contact-left,.hz-container) p:not(.tc-note):not(.cc-text):not(.cc-title):not(.lead):not(.hz-subtitle){font-size:var(--ds-body)!important;line-height:1.6}
:is(p.lead,.hz-subtitle,.hero-subtitle){font-size:var(--ds-lead)!important;line-height:1.55}
:is(.tc-note,.form-note,figcaption,.caption,small){font-size:var(--ds-small)!important;line-height:1.45}

/* ---- Labels and fields: chat, hero form, contact form (#ajanlat), quote dialog, calculator ---- */
:is(form,.chat-body,.contact-right,.quote-dialog,.tc) label:not(.tc-option){font-family:var(--ds-font-text)!important;font-size:var(--ds-label)!important;font-weight:600!important;line-height:1.4!important;color:var(--ds-ink)}
.tc .tc-field{gap:6px!important}
:is(form,.chat-body,.contact-right,.quote-dialog,.tc) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=file]):not([type=submit]),select,textarea){
  box-sizing:border-box;width:100%;min-height:var(--ds-field-h)!important;padding:12px 14px!important;
  font-family:var(--ds-font-text)!important;font-size:var(--ds-label)!important;font-weight:400!important;line-height:1.5!important;color:var(--ds-ink)!important;
  background:#fff!important;border:1.5px solid var(--ds-field-border)!important;border-radius:var(--ds-field-radius)!important;box-shadow:none!important}
:is(form,.chat-body,.contact-right,.quote-dialog,.tc) textarea{min-height:120px!important;resize:vertical}
:is(form,.chat-body,.contact-right,.quote-dialog,.tc) :is(input,select,textarea):focus{border-color:var(--brand,#1e73be)!important;outline:3px solid #1e73be33!important;outline-offset:0!important}
:is(form,.chat-body,.contact-right,.quote-dialog,.tc) ::placeholder{font-family:var(--ds-font-text);font-size:var(--ds-label);color:#5f6b7a;opacity:1}

/* ---- Choice chips: "Miben segíthetünk?" service buttons and calculator options ---- */
.service-btn{min-height:48px!important;height:auto!important;padding:10px 14px!important;font-family:var(--ds-font-text)!important;font-size:var(--ds-label)!important;font-weight:600!important;line-height:1.3!important;
  color:var(--ds-ink)!important;background:#fff!important;border:1.5px solid var(--ds-field-border)!important;border-radius:var(--ds-field-radius)!important}
.service-btn.active{color:#fff!important;background:var(--brand,#1e73be)!important;border-color:var(--brand,#1e73be)!important}
.tc .tc-option{border:1.5px solid var(--ds-field-border)!important;border-radius:var(--ds-field-radius)!important}
.tc .tc-option:has(input:checked){border-color:var(--brand,#1e73be)!important;background:var(--brand-light,#edf5fc)!important;box-shadow:inset 0 0 0 1px var(--brand,#1e73be)}
.tc .tc-option-title{font-family:var(--ds-font-text)!important;font-size:var(--ds-label)!important;font-weight:700!important;color:var(--ds-ink)!important}
.tc .tc-option-desc{font-size:var(--ds-small)!important;color:var(--ds-muted)!important}
/* Calculator option cards in the split calculator: title and one line of description, compact. */
.tc-split .tc-option{padding:14px 16px!important}
.tc-split .tc-grid{grid-auto-rows:1fr}
.tc-split .tc-option-title{font-size:var(--ds-h5)!important}
.tc-split .tc-option-desc{margin-top:4px!important}

/* ---- Buttons: one size, primary (filled), secondary (outline), on dark (white outline) ---- */
:is(.btn,.hz-btn,.btn-submit,.tc .tc-btn,.chat-body button[type=submit],.cc-btn){
  min-height:var(--ds-btn-h)!important;padding-top:0!important;padding-bottom:0!important;padding-left:28px!important;padding-right:28px!important;
  font-family:var(--ds-font-head)!important;font-size:var(--ds-label)!important;font-weight:700!important;line-height:1.2!important;letter-spacing:0!important;text-transform:none!important;
  border-width:2px!important;border-style:solid!important;border-radius:var(--ds-btn-radius)!important;cursor:pointer}
:is(.tc .tc-btn-primary,.chat-body button[type=submit]){background:var(--brand,#1e73be)!important;border-color:var(--brand,#1e73be)!important;color:#fff!important}
:is(.tc .tc-btn-primary,.chat-body button[type=submit]):hover:not(:disabled){background:var(--brand-hover,#185f9d)!important;border-color:var(--brand-hover,#185f9d)!important}
/* The .btn family keeps its colour variants (filled, outline, white on dark); the calculator's secondary button joins the outline style. */
.tc .tc-btn:not(.tc-btn-primary){background:transparent!important;border-color:var(--brand-dark,#123b61)!important;color:var(--brand-dark,#123b61)!important}
.tc .tc-btn:not(.tc-btn-primary):hover{background:var(--brand-dark,#123b61)!important;color:#fff!important}
.tc .tc-btn-primary:disabled{background:#e6ebf0!important;border-color:#e6ebf0!important;color:#5f6b7a!important;opacity:1!important;cursor:not-allowed}
/* Cookie banner buttons: same size and type as every other button, navy fill. */
.cc-btn{background:var(--brand-dark,#123b61)!important;border-color:var(--brand-dark,#123b61)!important;color:#fff!important}
.cc-btn:hover{background:var(--brand-darkest,#082338)!important}
:is(.btn,.hz-btn,.btn-submit,.tc .tc-btn,.cc-btn,.service-btn):focus-visible{outline:3px solid var(--brand,#1e73be)!important;outline-offset:3px}

/* ---- Floating buttons: the round "Árkalkulátor" button shows on every page and width (was home page only on desktop).
   On subpages it links to "/?kalkulator", which opens the calculator popover on the home page. ---- */
.widget-calc svg{width:28px!important;height:28px!important}
@media (min-width:768px){
.widget-calc{display:flex;position:fixed;right:20px;bottom:110px;width:60px;height:60px;align-items:center;justify-content:center;border-radius:50%;background:var(--brand-dark);color:#fff;border:1px solid var(--gray-700);z-index:var(--z-fixed,1050);transition:background .2s,opacity .2s,visibility .2s,translate .2s}
.widget-calc:hover,.widget-calc:focus-visible{background:var(--brand-darkest)}
.widget-calc i{display:flex;color:#fff}
.widget-phone{bottom:190px}
body:has(.widget-chat.active) .widget-calc{opacity:0;visibility:hidden}
}
