/* Gyöngyház Kalauz — one stylesheet, no fonts or scripts from outside. Mobile first. */
:root {
  --ink: #1c2730;
  --soft: #55636d;
  --bg: #f5f3ee;
  --card: #ffffff;
  --line: #dcd8cf;
  --deep: #1d3340;
  --deep-2: #2c4c5c;
  --rose: #9c4d63;
  --rose-2: #7b3a4d;
  --nacre: linear-gradient(100deg, #f3ece6 0%, #e7eef2 30%, #efe7f1 55%, #e9f1ea 80%, #f3ece6 100%);
  --measure: 41rem;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1.03rem/1.7 var(--sans); }
a { color: var(--rose); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--rose-2); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--card); padding: 0.5rem 0.8rem; z-index: 5; }
.skip:focus { left: 0.5rem; }

.top { background: var(--deep); color: #eef3f5; }
.top__in { max-width: 70rem; margin: 0 auto; padding: 0.9rem 1rem 0.7rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand__pearl {
  flex: 0 0 auto; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffffff 0 12%, #f1ebf0 28%, #d8dfe6 58%, #a9b7c2 86%, #8396a4 100%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18), 0 2px 6px rgba(0, 0, 0, 0.35);
}
.brand__text { display: flex; flex-direction: column; }
.brand__name { font: 700 1.3rem/1.15 var(--serif); letter-spacing: 0.01em; }
.brand__motto { font-size: 0.8rem; line-height: 1.35; color: #c4d3da; }
.menu { background: var(--deep-2); }
.menu__in { max-width: 70rem; margin: 0 auto; padding: 0 0.5rem; display: flex; overflow-x: auto; }
.menu a {
  flex: 0 0 auto; padding: 0.6rem 0.7rem; color: #e3ecf0; text-decoration: none;
  font: 600 0.9rem/1.2 var(--sans); border-bottom: 3px solid transparent;
}
.menu a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.4); }
.menu a[aria-current="page"], .menu a.is-in { color: #fff; border-bottom-color: #e8c9d2; }

main { display: block; max-width: 70rem; margin: 0 auto; padding: 1.3rem 1rem 2.8rem; }
main:focus { outline: none; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.25; color: var(--deep); }
h1 { font-size: 1.8rem; margin: 0.2rem 0 0.6rem; }
h2 { font-size: 1.35rem; margin: 2.1rem 0 0.6rem; }
h3 { font-size: 1.12rem; margin: 1.5rem 0 0.4rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }

.crumbs { margin: 0 0 0.4rem; font-size: 0.85rem; color: var(--soft); }
.crumbs a { color: var(--soft); }
.lede { font: 1.15rem/1.55 var(--serif); color: var(--deep-2); margin-bottom: 0.5rem; }
.doc__meta { font-size: 0.8rem; color: var(--soft); margin: 0; }
.doc__head { padding-bottom: 0.9rem; margin-bottom: 1.3rem; border-bottom: 3px solid transparent;
  border-image: var(--nacre) 1; }
.prose { max-width: var(--measure); }
.prose blockquote, .tip {
  margin: 1.3rem 0; padding: 0.85rem 1rem; background: var(--nacre); border-radius: 0.5rem;
  border: 1px solid var(--line);
}
.tip p:last-child { margin-bottom: 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1rem 0 1.4rem; font-size: 0.93rem; background: var(--card); }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.45rem 0.55rem; text-align: left; vertical-align: top; }
.prose th { background: #eef2f3; color: var(--deep); }
.table-wrap { overflow-x: auto; }
.prose dt { font-weight: 700; color: var(--deep); margin-top: 0.9rem; }
.prose dd { margin: 0.1rem 0 0 1rem; }

/* Photos: one lead under the page head, an occasional inline one; caption + credit below in small type. */
.fig { margin: 0 0 1.5rem; max-width: var(--measure); }
.fig img { display: block; width: 100%; height: auto; border-radius: 0.5rem; border: 1px solid var(--line);
  background: var(--nacre); }
.fig figcaption { margin-top: 0.45rem; font-size: 0.84rem; line-height: 1.45; color: var(--soft); }
.fig__credit { display: block; font-size: 0.74rem; margin-top: 0.1rem; }
.fig__credit a { color: var(--soft); }
.fig--inline { margin: 1.7rem 0; }
.front .fig--lead { margin-bottom: 1.4rem; }
.credits td:first-child { min-width: 12rem; }

.notice {
  max-width: var(--measure); margin: 1.4rem 0; padding: 0.9rem 1.1rem; background: var(--card);
  border: 1px solid var(--line); border-left: 5px solid var(--deep-2); border-radius: 0.4rem; font-size: 0.97rem;
}
.notice p:last-child { margin-bottom: 0; }

.toc { background: var(--card); border: 1px solid var(--line); border-radius: 0.5rem; padding: 0.7rem 1rem 0.3rem;
  margin: 0 0 1.4rem; max-width: var(--measure); }
.toc__h { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--soft);
  margin: 0 0 0.4rem; }
.toc ol { padding-left: 1.2rem; margin-bottom: 0.4rem; font-size: 0.95rem; }

.side { margin-top: 2.2rem; background: var(--card); border: 1px solid var(--line); border-radius: 0.5rem; padding: 0.8rem 1rem 0.3rem; }
.side__h { font-size: 1rem; margin: 0 0 0.5rem; }

.cards { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.card { margin: 0; border-bottom: 1px solid var(--line); }
.card:last-child { border-bottom: 0; }
.card a { display: block; padding: 0.7rem 0; text-decoration: none; color: inherit; }
.card a:hover .card__name { color: var(--rose-2); text-decoration: underline; }
.card__name { display: block; font-weight: 700; color: var(--rose); }
.card__note { display: block; color: var(--soft); font-size: 0.94rem; }
.card__time { display: block; font-size: 0.75rem; color: var(--soft); margin-top: 0.15rem; }
.cards--short .card a { padding: 0.45rem 0; }
.cards--short .card__time { display: none; }

.front .intro { max-width: var(--measure); }
.front .intro h1 { font-size: 2rem; }
.hero { background: var(--nacre); border: 1px solid var(--line); border-radius: 0.8rem; padding: 1.2rem 1.2rem 0.4rem; margin-bottom: 1.4rem; }
.shelves { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.shelf { background: var(--card); border: 1px solid var(--line); border-radius: 0.6rem; padding: 0.9rem 1rem 0.2rem;
  box-shadow: 0 1px 0 rgba(29, 51, 64, 0.04); }
.shelf h2 { margin: 0 0 0.3rem; font-size: 1.2rem; }
.shelf h2 a { text-decoration: none; color: var(--deep); }
.shelf h2 a:hover { color: var(--rose); }
.shelf__remit { color: var(--soft); font-size: 0.93rem; }

.foot { background: var(--deep); color: #c9d6dc; font-size: 0.88rem; line-height: 1.6; }
.foot__in { max-width: 70rem; margin: 0 auto; padding: 1.5rem 1rem 2rem; }
.foot__in p { max-width: 46rem; }
.foot__name { font: 700 1.05rem/1.3 var(--serif); color: #fff; }
.foot__notice { border-left: 3px solid #e8c9d2; padding-left: 0.7rem; }
.foot__small { font-size: 0.8rem; }
.foot a { color: #f0d6de; }

@media (min-width: 48rem) {
  h1 { font-size: 2.15rem; }
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 2.6rem; align-items: start; }
  .side { margin-top: 0; position: sticky; top: 1rem; }
  .shelves { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 70rem) {
  .shelves { grid-template-columns: 1fr 1fr 1fr; }
}
@media print {
  .top, .menu, .side, .foot, .skip { display: none; }
  body { background: #fff; }
}
