/* === ADD / CHANGE: mobile font-scaling + button label wrapping fixes === */

/* Put this near the top (before body is fine) */
html{
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Keep button labels (TOP / HOME etc.) on one line */
.homeBtn,
.topBtn{
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

/* --- your existing CSS (unchanged except where noted) --- */

:root{
  --fg:#111; --muted:#555; --line:#e6e6e6; --bg:#fff;
}

body{
  margin:0; background:var(--bg); color:var(--fg);
  font: 16px/1.55 system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
}

.page{ max-width: 860px; margin: 48px auto; padding: 0 20px; }

header{
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

h1{ font-size: 28px; line-height: 1.2; margin: 0 0 6px; }
.subtitle{ color: var(--muted); margin: 0; }

h2{
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  margin: 26px 0 10px; color: var(--muted);
}

.grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.box{ border:1px solid var(--line); border-radius: 14px; padding: 14px 16px; }

dl{ margin:0; }
dt{ font-weight: 600; }
dd{ margin: 0 0 10px; }

.small{ font-size: 14px; color: var(--muted); }

table{ width:100%; border-collapse: collapse; }
th,td{ text-align:left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th{ font-size: 13px; color: var(--muted); font-weight: 600; }

footer{
  margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}

.header-row{ display:flex; align-items:center; gap:16px; }

.portrait{
  width:72px;
  height:96px;
  object-fit: cover;
  object-position: center 18%;
  border-radius:14px;
  border:1px solid var(--line);
}

/* Mobil javítás */
@media (max-width: 600px){
  .grid{
    grid-template-columns: 1fr;
  }
  .box a{
    word-break: break-all;
  }
}

.homeBtn{
  position: absolute;
  top:18px;
  right:18px;
  padding:6px 12px;
  font-size:12px;
  letter-spacing:.08em;
  border:1px solid var(--line);
  border-radius:20px;
  text-decoration:none;
  color:var(--fg);
  background:#fff;
  transition:.15s ease;
  /* keep label in one line (repeated OK even if already above) */
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.homeBtn:hover{
  border-color:var(--fg);
  transform:translateY(-1px);
}

.topBtn{
  display: block;
  margin-top:12px;
  margin-left:auto;
  width:fit-content;
  padding:6px 12px;
  font-size:12px;
  letter-spacing:.08em;
  border:1px solid var(--line);
  border-radius:20px;
  text-decoration:none;
  color:var(--fg);
  background:#fff;
  transition:.15s ease;
  /* keep label in one line (repeated OK even if already above) */
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.topBtn:hover{
  border-color:var(--fg);
  transform:translateY(-1px);
}

/* Print-friendly */
@media print{
  body{background:#fff;}
  .homeBtn,.topBtn{display:none;}
  .box{break-inside:avoid;}
}

.box > h2:first-child{
  margin-top: 4px;
}


