/* Egységes iskolai arculat, az eredeti PHP fejléc megőrzésével */
.sitehead .school{text-decoration:none;color:inherit;min-width:0}
.sitehead .headinner{max-width:1320px}
.kreta-image{display:flex;align-items:center;justify-content:center;background:transparent;padding:6px 10px;flex-shrink:0}
.kreta-image img{display:block;width:auto;max-width:175px;max-height:78px;object-fit:contain}
.kreta-image:hover{background:#ffffffaa}
.navigation a{text-decoration:none}
.legacy-page{max-width:1320px;margin:30px auto 65px;padding:0 24px;min-height:40vh}
.legacy-page img,.legacy-page video,.legacy-page iframe{max-width:100%;height:auto}
.legacy-page a{color:#a95d05;text-decoration:underline;text-underline-offset:2px}
.legacy-page .page-panel{background:white;border-radius:16px;padding:clamp(18px,3vw,38px);box-shadow:0 8px 25px #49301816;overflow-wrap:anywhere}
.legacy-page h1,.legacy-page h2,.legacy-page h3{color:#503b25}
.legacy-page table{display:block;max-width:100%;overflow-x:auto}
.legacy-page .page-panel > :first-child{margin-top:0}
@media(max-width:700px){.headinner{min-height:unset;padding:18px 16px;flex-wrap:wrap}.kreta-image img{max-width:130px;max-height:60px}.legacy-page{padding:0 14px;margin-top:18px}.navigation>div{padding:4px 8px}.navigation a{padding:9px 10px}}

/* V8: KRÉTA-belépés az eredeti index.html 60px-es képes linkje alapján. */
.sitehead .kreta-original { display:block; flex:0 0 auto; align-self:center; padding:0 3px; background:transparent; text-decoration:none; line-height:0; }
.sitehead .kreta-original img { display:block; width:60px; height:60px; max-width:none; max-height:none; object-fit:contain; }
.sitehead .kreta-original:hover { opacity:.86; }

/* V9 – KRÉTA gomb a mellékelt mintának megfelelően, közös fejlécben. */
.sitehead .kreta-tile-v9 {
  display: flex;
  flex: 0 0 114px;
  width: 114px;
  height: 104px;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: center;
  border: 1px solid #f3d7b3;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(117, 72, 24, .07);
  color: #29add2;
  text-decoration: none;
  line-height: 1.05;
  transition: transform .2s ease, box-shadow .2s ease;
}
.sitehead .kreta-tile-v9:hover,
.sitehead .kreta-tile-v9:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(117, 72, 24, .14);
}
.sitehead .kreta-word { font-weight: 900; font-size: 20px; letter-spacing: -.5px; margin-bottom: 4px; }
.sitehead .kreta-sub { font-weight: 900; font-size: 13px; letter-spacing: .15px; }

