/* Pandsuli V29.7 – egyesített stílusok. Az eredeti sorrend megőrizve. */

/* ===== php-modern.css ===== */
*{box-sizing:border-box}body{margin:0;background:#faf6e9;color:#333;font:16px/1.6 system-ui,-apple-system,Segoe UI,Arial,sans-serif}a{color:inherit;text-decoration:none}.sitehead{background:linear-gradient(115deg,#fffaf0,#f8e4bd);border-bottom:4px solid #f18a14}.headinner{max-width:1536px;margin:auto;min-height:140px;padding:25px 24px;display:flex;justify-content:space-between;align-items:center;gap:24px}.school{display:flex;align-items:center;gap:18px}.school small{color:#a66a19;letter-spacing:.08em;text-transform:uppercase}.school h1{font-size:clamp(22px,3vw,38px);margin:0;line-height:1.2;color:#473522}.emblem{font-size:42px;color:#ee8713}.kreta,.read{background:#e9800c;color:white;padding:10px 17px;border-radius:9px;font-weight:700;display:inline-block}.navigation{background:#e9800c;color:white}.navigation>div{max-width:1536px;margin:auto;display:flex;gap:5px;flex-wrap:wrap;padding:0 18px}.navigation a{padding:13px 16px}.navigation a:hover,.navigation a.active{background:#bc6000}main{max-width:1536px;margin:auto;padding:35px 24px 70px}.intro{margin-bottom:30px}.intro span{color:#b76b0a;font-size:13px;font-weight:800;letter-spacing:.13em}.intro h2{font-size:clamp(26px,3vw,39px);margin:0}.intro p{margin:0;color:#766e64}.newsgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.newscard{min-width:0;background:white;border-radius:16px;overflow:hidden;box-shadow:0 8px 25px #49301816;display:flex;flex-direction:column}.newscard>a img{width:100%;height:190px;object-fit:cover;display:block}.cardbody{padding:18px;display:flex;flex-direction:column;flex:1}.cardbody time,.detail time{color:#a96715;font-size:13px;font-weight:700}.cardbody h3{font-size:19px;line-height:1.3;margin:10px 0}.cardbody p{font-size:14px;color:#67615a;flex:1;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.cardbody .read{align-self:start;font-size:14px}.pagination{display:flex;gap:5px;flex-wrap:wrap;justify-content:center;margin-top:35px}.pagination a{padding:6px 13px;background:white;border-radius:6px}.pagination a.selected{background:#d9790b;color:white}.detail{background:white;border-radius:16px;box-shadow:0 8px 25px #49301816;position:relative;display:flex;align-items:stretch;overflow:clip}.detailinner{padding:clamp(20px,4vw,50px);flex:1;min-width:0}.detail h2{font-size:clamp(25px,3vw,38px);line-height:1.25}.heroimage{display:block;max-width:100%;max-height:650px;object-fit:contain;margin:24px auto}.articlecontent img{max-width:100%;height:auto}.articlecontent{overflow-wrap:anywhere}.gallerytab{position:sticky;top:100px;align-self:flex-start;background:#e9800c;color:white;writing-mode:vertical-rl;padding:20px 10px;border-radius:0 0 10px 0;font-weight:700;flex:none}.mediagrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.mediagrid img,.mediagrid video{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px}footer{padding:28px;text-align:center;background:#3f3428;color:white}@media(max-width:1050px){.newsgrid{grid-template-columns:repeat(3,1fr)}}@media(max-width:780px){.newsgrid{grid-template-columns:repeat(2,1fr)}.headinner{min-height:110px}.mediagrid{grid-template-columns:repeat(2,1fr)}}@media(max-width:520px){.newsgrid{grid-template-columns:1fr}.headinner{flex-direction:column;align-items:start}.navigation a{padding:9px}.gallerytab{top:65px;padding:12px 6px}.detailinner{padding:16px}}


/* ===== site-unified.css ===== */
/* 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:1536px}
.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:1536px;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; }


