/* רכיבי עמוד משותפים לעמודים הפנימיים (25.10.2026): כותרת, כפתורים, אריחי ערכות, פוטר.
   עובד יחד עם css/orot.css. עמודים שבנויים ב-includes/orot_page.php. */
* { box-sizing: border-box; }
body { margin: 0; font-size: 17px; line-height: 1.6; background: var(--paper); color: var(--ink); font-family: var(--font-ui); }
a { color: var(--brand); }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, 5vw); padding-right: max(16px, 5vw); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: 600 16px/1.2 var(--font-ui); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-main { background: var(--brand); color: var(--on-brand); }
.btn-main:hover { background: var(--brand-dark); color: var(--on-brand); }
.btn-line { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--brand); color: var(--brand); }
.h-display { font-family: var(--font-display); font-weight: 800; color: var(--brand); margin: 0; line-height: 1.12; }

.top { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; position: relative; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo b { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.1; color: var(--brand); display: block; }
.logo small { font-size: 13px; font-weight: 500; color: var(--ink-muted); }
.nav { display: flex; gap: 22px; font-weight: 500; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a:hover, .nav a.on { color: var(--brand); }
.nav a.on { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.top-actions { display: flex; gap: 8px; }
.top-actions .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 22px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); font-size: 20px; }
@media (max-width: 860px) {
  .nav, .top-actions .btn-line { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; inset-inline: 0; background: var(--paper); padding: 12px max(16px, 5vw) 18px; border-bottom: 1px solid var(--line); gap: 14px; font-size: 17px; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
}

.page-head { background: var(--night); color: #F4E8D3; }
.page-head .wrap { padding-block: 36px 30px; display: flex; flex-direction: column; gap: 8px; }
.page-head h1 { color: #E8BE68; font-size: clamp(36px, 5.5vw, 56px); }
.page-head p { margin: 0; color: #EADCC4; max-width: 40em; }

main section { padding-block: 44px; }

.decks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 24px; }
@media (max-width: 500px) { .decks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; } }
.deck { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.deck .art { aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; position: relative; transition: transform .25s ease; display: block; }
.deck:hover .art { transform: translateY(-3px); }
.deck .art img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.deck .art::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 11px; background: var(--c); }
.deck .tag { position: absolute; top: 9px; left: 9px; background: #fff; color: var(--c); font-weight: 600; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.deck .tag i { margin-inline-end: 4px; }
.deck b { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--c); line-height: 1.2; }
.deck small { font-size: 13px; color: var(--ink-muted); }

.notice { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.notice p { margin: 0; flex: 1 1 260px; }

footer.site { border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-muted); background: var(--paper) !important; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-block: 26px; }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer.site .credit { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-muted) !important; text-decoration: none; font-size: 12px; }
footer.site .credit img { height: 16px; width: auto; }
@media (prefers-reduced-motion: reduce) { .deck .art { transition: none; } }
