/* Page families: one shared contract, applied after legacy styles. */
body[data-page-template] main :is(.reader-context,.ds-layout-context) nav{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0;padding:0;line-height:1.5}
body[data-page-template] main :is(.reader-context,.ds-layout-context) nav :is(a,span){margin:0;padding:0;line-height:1.5}
body:is([data-page-template="collection"],[data-page-template="reader"],[data-page-template="help"],[data-page-template="topic"],[data-page-template="media"],[data-page-template="utility"]) main :is(.reader-hero,.ds-layout-hero){padding-block:48px;background:var(--ink);color:var(--paper)}
body:is([data-page-template="collection"],[data-page-template="reader"],[data-page-template="help"],[data-page-template="topic"],[data-page-template="media"],[data-page-template="utility"]) main h1{font-size:clamp(2rem,4.2vw,3rem);font-weight:700;line-height:1.13;margin:16px 0 24px;letter-spacing:-.035em}
body[data-page-template] main :is(.reader-hero,.ds-layout-hero) .ds-layout-lead{font-size:18px;line-height:1.65;color:var(--muted-dark);max-width:800px}
body[data-page-template="service"] main>.contract-service-hero{background:var(--ink);color:var(--paper);padding:48px 0 64px}
body[data-page-template="service"] main>.contract-service-hero h1{font-size:clamp(2rem,5vw,4rem);line-height:1.05;letter-spacing:-.035em;max-width:1000px;margin:24px 0}
body[data-page-template="service"] main>.contract-service-hero .ds-layout-lead{font-size:20px;line-height:1.65;color:var(--muted-dark);max-width:900px}
body[data-page-template="service"] main>.contract-service-hero .ds-layout-kicker{color:var(--yellow)}
body[data-page-template="service"] main>.contract-service-hero .ds-layout-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
body[data-page-template] main :is(.contract-service-hero,.reader-hero,.ds-layout-hero,.hero-copy) .button.secondary{color:var(--paper);border-color:var(--muted-dark);background:transparent}
body[data-page-template] main :is(.contract-service-hero,.reader-hero,.ds-layout-hero,.hero-copy) .button.secondary:hover{color:var(--ink);background:var(--paper)}
body[data-page-template] main .category-nav{margin:32px 0}
body[data-page-template] main .category-nav h2{font-size:24px;margin:0 0 16px}
body[data-page-template] main .category-nav-links{display:flex;flex-wrap:wrap;gap:12px}
body[data-page-template] main .category-nav-links a[aria-current="page"]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
body[data-page-template] main .collection-rest>.ch-grid{margin-top:32px}
body[data-page-template] main .collection-rest .ch-collection{margin-top:40px}
body[data-page-template] main .ch-card.ds-card--image-title{padding:0}
@media(max-width:639px){body[data-page-template] main :is(.reader-hero,.ds-layout-hero){padding-block:32px}body[data-page-template="service"] main>.contract-service-hero{padding:32px 0}body[data-page-template="service"] main>.contract-service-hero h1{font-size:clamp(2rem,8vw,3rem)}body[data-page-template] main .category-nav-links a{max-width:100%;white-space:normal}body[data-page-template] main .category-nav-links{gap:8px}}
@media print{body[data-page-template] main :is(.reader-hero,.ds-layout-hero,.contract-service-hero){background:white;color:black;padding:12px 0}body[data-page-template] main :is(.reader-hero,.ds-layout-hero,.contract-service-hero) .ds-layout-lead{color:black}}

/* Shared breadcrumb: location hierarchy, never browsing history. */
nav.im-breadcrumb{display:flex!important;justify-content:flex-start!important;text-align:left!important;align-items:baseline!important;flex-wrap:wrap!important;gap:8px!important;font-family:Arial,Helvetica,sans-serif!important;font-size:14px!important;line-height:1.5!important}
nav.im-breadcrumb>a,nav.im-breadcrumb>span{margin:0!important;padding:0!important;font-size:inherit!important;line-height:inherit!important;overflow-wrap:anywhere;min-width:0}
nav.im-breadcrumb>a{font-weight:400!important}
nav.im-breadcrumb>[aria-current="page"]{font-weight:400!important}
.reader-context nav.im-breadcrumb,.ds-layout-context nav.im-breadcrumb,nav.site-breadcrumb.im-breadcrumb{color:#59574f!important}
nav.im-breadcrumb>a,nav.im-breadcrumb>span{color:inherit!important}

/* Existing Studio Mini empty-result component, shared with catalogues. */
.studio-empty{padding:24px;border:1px solid var(--line);background:var(--surface)}

/* 60-point audit: shared geometry for the same functional roles. */
body[data-page-template="service"] main .hero h1{font-size:clamp(2rem,5vw,4rem);line-height:1.05;letter-spacing:-.035em}
body[data-page-template] .sample-link.button{padding:12px 22px}
body[data-page-template] :is(.actions,.ds-layout-actions){align-items:flex-start}
body[data-page-template="player"]{font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.65}
body[data-page-template="player"] :is(button,input,select,textarea){font-family:Arial,Helvetica,sans-serif}
body[data-page-template="player"] :is(button,.back){font-size:14px}
body[data-page-template="player"] :focus-visible{outline:3px solid #a72e16;outline-offset:4px}
body[data-page-template="player"] button{min-height:48px;border-radius:4px}
body[data-page-template] .helpReset{font:700 14px/1.5 Arial,Helvetica,sans-serif;padding:12px 22px;border-radius:4px;min-height:48px;background:transparent;border:1px solid var(--ink,#1a1917);color:var(--ink,#1a1917)}
@media(max-width:639px){body[data-page-template="service"] main .hero h1{font-size:clamp(2rem,8vw,3rem)}body[data-page-template] :is(.actions,.ds-layout-actions)>.button{width:100%}}

/* Natural hero rows avoid empty space when introductory copy is shorter. */
body:is([data-page-template="service"],[data-page-template="collection"]) .hero-copy{grid-template-rows:auto auto auto auto;row-gap:24px}
body:is([data-page-template="service"],[data-page-template="collection"]) .hero-copy .actions{display:flex;flex-wrap:wrap;gap:12px}
body:is([data-page-template="service"],[data-page-template="collection"]) .hero-copy .actions>.button{align-self:flex-start}

body[data-page-template] main :is(.actions,.ds-layout-actions,.studio-catalogue-actions){gap:12px}
body[data-page-template] button:disabled{opacity:.55;cursor:not-allowed}

body[data-page-template]>header .button{font-size:14px}

/* Typography roles, stylebook 2.3. Framework only; native apps and print sheets are excluded.
   Important declarations neutralize legacy inline type overrides, without resetting layout. */
:root{--im-type-lead:1.125rem;--im-type-body:1rem;--im-type-card-title:1.5rem}
html body[data-page-template] main :is(.lead,.ds-layout-lead,.hero__lead,.hero-lead,.section-head>p,.section__head>p,.ch-section-intro>p){font-size:var(--im-type-lead)!important;line-height:1.65!important;font-weight:400!important;letter-spacing:0!important}
html body[data-page-template] main .im-product-hero p:not(.eyebrow){font-size:var(--im-type-lead)!important;line-height:1.65!important}
html body[data-page-template] main :is(.im-path,.im-tier,.entryCard,.step,.choice,.mini__point) p:not(.eyebrow):not(.lead):not(.im-tier-promise){font-size:var(--im-type-body)!important;line-height:1.65!important}
html body[data-page-template] main :is(.im-path,.im-tier,.entryCard,.step,.choice,.mini__point) h3{font-size:var(--im-type-card-title)!important;line-height:1.3!important;letter-spacing:-.02em!important}
html body[data-page-template] main .im-product-hero .eyebrow{font-size:.75rem!important;line-height:1.5!important;letter-spacing:.1em!important}
html body[data-page-template="service"] main .im-product-hero h1{font-size:clamp(2rem,5vw,4rem)!important;line-height:1.05!important;letter-spacing:-.035em!important}
html body[data-page-template="service"] main .im-product-choice>h2{font-size:clamp(2rem,4vw,3rem)!important;line-height:1.12!important;letter-spacing:-.033em!important}
@media(max-width:639px){html body[data-page-template="service"] main .im-product-hero h1{font-size:clamp(2rem,8vw,3rem)!important}html body[data-page-template="service"] main .im-product-choice>h2{font-size:2rem!important}}
/* 2026-10-08: azonos szerep, azonos vastagság (cikk H1 is 700) */
html body[data-page-template="article"] main h1{font-weight:700}

/* H2 roles (stylebook 2026-10-08): section titles 32-48 px, reading pages 32 px; quick overview card title 24 px. */
html body:is([data-page-template="service"],[data-page-template="collection"],[data-page-template="workspace"]) main h2:not(.hero-overview h2):not(dialog h2){font-size:clamp(2rem,4vw,3rem)!important;line-height:1.12!important}
html body:is([data-page-template="reader"],[data-page-template="article"],[data-page-template="help"],[data-page-template="utility"],[data-page-template="topic"],[data-page-template="media"]) main h2:not(dialog h2){font-size:2rem!important;line-height:1.25!important}
html body main .hero-overview h2{font-size:24px!important;line-height:1.3!important}

/* IM-r4: legalabb 24 px-es celteruletek (WCAG 2.5.8) */
nav.im-breadcrumb>a{display:inline-flex!important;align-items:center;min-height:24px}
.footer-grid a:not(.brand){min-height:24px}
