/* Arculat v3 — Canva-vonal: krémpapír, okker, tinta, mélyzöld; festett fejlécek.
   A kabinet.css előtt töltődik; csak a saját .arc-* elemeit és a címsávokat érinti. */
:root {
  --arc-paper: #f6f3e9;
  --arc-cream: #fffcf3;
  --arc-ochre: #efc568;
  --arc-ink: #202725;
  --arc-green: #234f3d;
  --arc-shadow: 4px 4px 0 var(--arc-ink);
  --display-font: Georgia, 'Times New Roman', serif;
  --display-shadow: 1px 1px 0 #fff9e9, 2px 2px 0 #c6a160, 3px 3px 0 #c6a160, 4px 4px 0 #8e713f, 5px 6px 0 #263e3312;
}

/* ---------- Logó ---------- */
img.brand-lockup.arc-logo { width: 196px; height: auto; }
.mobile-brand img.arc-logo { width: 200px; height: auto; }
.sidebar .brand {display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;}
.sidebar .brand .brand-lockup {display:none;}
.sidebar .brand .brand-symbol {display:block;width:72px;height:72px;}
.sidebar .brand .brand-name {display:block;color:#fffcf3;font:700 34px/1.12 var(--display-font);letter-spacing:-1.2px;text-shadow:1px 2px 0 #9d814d;}
.sidebar .brand .brand-name small {display:block;margin:8px 0 0;color:#efc568;font:700 8px/1.5 system-ui,sans-serif;letter-spacing:1.5px;text-transform:uppercase;text-shadow:none;}
.sidebar:has(.brand-name) .sidebar-caption {margin-top:28px;}
@media(max-width:1190px) and (min-width:931px){.sidebar .brand .brand-name{font-size:30px;}}
@media(max-width:930px) and (min-width:701px){
  .sidebar .brand .brand-name{display:none;}
  .sidebar .brand .brand-symbol{width:48px;height:48px;}
}
@media(max-width:700px){
  .sidebar .brand{display:none;}
  .topbar:has(.mobile-brand){height:auto;min-height:78px;flex-wrap:wrap;gap:12px;padding-top:14px;padding-bottom:14px;}
  .mobile-brand{max-width:100%;}
  .mobile-brand img.arc-logo{width:200px;max-width:100%;}
  .topbar-right{margin-left:auto;}
}

/* ---------- Kezdőlap: a Canva-borító ---------- */
.app-shell:has(#main :is([data-landing-home],.arc-cover)) footer .footer-brand-name {display:none;}
.arc-hidden-title { display: none !important; }
.arc-cover {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 520px; overflow: hidden;
  margin-bottom: 22px; background: var(--arc-paper); border: 1.5px solid var(--arc-ink); border-radius: 16px; box-shadow: var(--arc-shadow);
}
.arc-cover-copy { position: relative; z-index: 2; padding: clamp(26px, 4vw, 54px) clamp(22px, 3.6vw, 48px); display: flex; flex-direction: column; align-items: flex-start; }
.arc-cover-title {
  margin: 8px 0 18px; font-size: clamp(44px, 5.4vw, 84px); line-height: .96; letter-spacing: -2px; font-weight: 800;
  text-transform: uppercase; color: var(--arc-ink);
}
.arc-cover-slogan { margin: 0 0 22px; font-size: clamp(17px, 1.6vw, 23px); font-weight: 800; color: var(--arc-green); }
.arc-cover-meta { margin: 0 0 24px; font-size: 14px; line-height: 1.5; color: var(--arc-ink); }
.arc-cover-mark { width: 74px; height: 74px; margin-bottom: 10px; }
.arc-cover-note { margin: 0; max-width: 380px; font-size: 13.5px; line-height: 1.5; color: #777b74; }
.arc-cover-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 24px; }
.arc-cover-art {
  position: absolute; inset: 0 0 0 44%; background: var(--arc-art) 50% 8% / cover no-repeat;
  animation: arc-drift 40s ease-in-out infinite alternate; transform-origin: 60% 50%;
}
.arc-cover::after {
  content: ""; position: absolute; inset: 0 0 0 40%; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--arc-paper) 0%, #f6f3e9b0 8%, #f6f3e900 22%);
}

/* A kezdőlapi nagy kártya festménnyel */
.hero-art.arc-hero-art {
  object-fit: cover !important; border: 1.5px solid var(--arc-ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--arc-ink);
  width: 50% !important; height: calc(100% - 44px) !important; top: 22px; right: 22px !important; bottom: auto !important;
}

/* ---------- Festett fejlécek a menüpontokban ---------- */
.page-title.arc-banner {
  position: relative; overflow: hidden; min-height: 250px; padding: 30px 34px; align-items: flex-end;
  background: var(--arc-paper); border: 1.5px solid var(--arc-ink); border-radius: 16px; box-shadow: var(--arc-shadow);
}
.page-title.arc-banner > *:not(.arc-banner-art) { position: relative; z-index: 2; }
.page-title.arc-banner > div:not(.arc-banner-art) { max-width: min(560px, 52%); }
.arc-banner-art {
  position: absolute; inset: 0 0 0 30%; z-index: 0; background: var(--arc-art) center right / cover no-repeat;
  animation: arc-drift 40s ease-in-out infinite alternate; transform-origin: 70% 50%;
}
.page-title.arc-banner::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--arc-paper) 0%, #f6f3e9f2 30%, #f6f3e9b8 44%, #f6f3e900 66%);
}
.page-title.arc-banner h1 { font-size: clamp(28px, 2.8vw, 42px); line-height: 1.08; letter-spacing: -1px; font-weight: 800; color: var(--arc-ink); }
.page-title.arc-banner h1, .play-hub-header h1 {
  font-family: var(--display-font); text-shadow: var(--display-shadow);
  padding-bottom: 5px; text-wrap: balance;
}
.scenario-panel h2, .modal-head h2, .section-head h2, .panel-head h2 {
  font-family: var(--display-font); font-weight: 700; letter-spacing: -.025em;
  text-shadow: .7px 1px 0 #fff9e9, 1.6px 2px 0 #d7bd873d;
}
.page-title.arc-banner p { color: #3a4440; }
.page-title.arc-banner .eyebrow { color: var(--arc-green); }
.page-title.arc-banner .mini-link, .page-title.arc-banner > a, .page-title.arc-banner > button {
  background: var(--arc-cream); color: var(--arc-ink); border: 1.5px solid var(--arc-ink); box-shadow: 2px 2px 0 var(--arc-ink);
}

@keyframes arc-drift { from { transform: scale(1.02); } to { transform: scale(1.07) translateX(-1.5%); } }
body.motion-off .arc-cover-art, body.motion-off .arc-banner-art { animation: none; }
@media (prefers-reduced-motion: reduce) { .arc-cover-art, .arc-banner-art { animation: none; } }
@media (forced-colors: active) {
  .page-title.arc-banner h1, .play-hub-header h1, .scenario-panel h2,
  .modal-head h2, .section-head h2, .panel-head h2 { text-shadow: none; }
}

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .arc-cover { grid-template-columns: 1fr; min-height: 0; }
  .arc-cover-art { position: relative; inset: auto; height: 300px; order: -1; border-bottom: 1.5px solid var(--arc-ink); animation: none; }
  .arc-cover::after { display: none; }
  .arc-cover-title { font-size: 44px; }
  .page-title.arc-banner { min-height: 0; padding-top: 170px; align-items: flex-start; flex-direction: column; }
  .page-title.arc-banner > div:not(.arc-banner-art) { max-width: none; }
  .arc-banner-art { inset: 0 0 auto 0; height: 160px; border-bottom: 1.5px solid var(--arc-ink); animation: none; }
  .page-title.arc-banner::after { background: none; }
  .hero-art.arc-hero-art { position: relative; width: 100% !important; height: 220px !important; top: auto; right: auto !important; margin-top: 16px; }
}

/* Sign-in focuses the non-interactive page heading for screen readers, including
   the landing heading outside .page-title. Keep keyboard control rings intact. */
#main h1[tabindex="-1"]:focus { outline:none; }
