/* Óratípusok (/oratipusok) and one class type (/ora/<nice_url>). Everything is scoped to the page's root `.ot`, which
   is a size container: the layout follows the width the page gets (container queries), never the device. The site's
   header and footer stay as the theme draws them. Touch targets are at least 44 px high. */

.ot { --teal:#45b29d; --teal-d:#1a8f78; --ink:#333; --muted:#888; --line:#ececec; --tint:#f4faf8; --purple:#915291;
      --bg:#f7f7f7; container-type:inline-size; font-family:Poppins, Arial, sans-serif; color:var(--ink); font-weight:300;
      padding-bottom:40px; }
.ot *, .ot *::before, .ot *::after { box-sizing:border-box; }
.ot img { display:block; max-width:100%; }
.ot a { color:inherit; }
/* The theme's wrapper hides overflow, which would make it the scroll box of the sticky facts and the phone's bottom
   bar (they would never stick). `clip` cuts the same way without being a scroll box. */
#wrapper.wrapper-container:has(.ot) { overflow:clip; }
.ot h1, .ot h3, .ot h4 { letter-spacing:normal; text-transform:none; }

/* ------------------------------------------------------------------ buttons and links */
.ot .ot-btn { border:0; border-radius:22px; min-height:44px; padding:0 20px; font:500 14px/44px Poppins, Arial, sans-serif;
              background:var(--teal); color:#fff; text-decoration:none; white-space:nowrap; display:inline-block; text-align:center; }
.ot .ot-btn:hover { background:var(--teal-d); color:#fff; }
.ot .ot-btn.off { background:#ccc; cursor:default; }
.ot .ot-btn.wait { background:#915291; }
.ot .ot-more { display:inline-flex; align-items:center; min-height:44px; font-size:13px; font-weight:500; color:var(--teal-d);
               text-decoration:none; }
.ot .ot-more:hover { text-decoration:underline; }

/* ------------------------------------------------------------------ the list */
.ot-hero { padding:46px 30px 26px; max-width:1180px; margin:0 auto; }
.ot-pre { color:var(--purple); font-size:12px; letter-spacing:3px; text-transform:uppercase; font-weight:500; }
.ot .ot-hero h1 { font:400 46px/1.15 Prata, Georgia, serif; margin:8px 0 10px; color:var(--ink); }
.ot-hero p { max-width:640px; color:#666; font-size:15px; line-height:1.7; margin:0; }
.ot-grid { max-width:1180px; margin:0 auto; padding:10px 30px 20px; display:grid;
           grid-template-columns:repeat(auto-fill, minmax(330px, 1fr)); gap:26px; }
.ot-card { border-radius:14px; overflow:hidden; background:#fff; box-shadow:0 2px 14px rgba(0,0,0,.07); display:flex;
           flex-direction:column; border-top:4px solid var(--c); transition:transform .15s, box-shadow .15s; }
.ot-card:hover { transform:translateY(-3px); box-shadow:0 8px 26px rgba(0,0,0,.11); }
.ot-pic { display:block; aspect-ratio:16/10; background:#ddd; position:relative; overflow:hidden; }
.ot-pic img { width:100%; height:100%; object-fit:cover; }
.ot-price { position:absolute; right:12px; bottom:12px; background:rgba(255,255,255,.95); border-radius:16px; padding:5px 12px;
            font-weight:600; font-size:13px; color:var(--ink); }
.ot-price[data-price-kind="free"] { color:var(--teal-d); }
.ot-price[data-price-kind="donation"] { color:var(--purple); }
.ot-body { padding:18px 20px 20px; display:flex; flex-direction:column; flex:1; }
.ot-who { font-size:13px; color:var(--teal-d); font-weight:500; }
.ot .ot-card h3 { font:400 23px/1.25 Prata, Georgia, serif; margin:6px 0 8px; }
.ot .ot-card h3 a { text-decoration:none; color:var(--ink); }
.ot-lead { color:#666; font-size:14px; line-height:1.65; margin:0 0 14px; display:-webkit-box; -webkit-line-clamp:3;
           -webkit-box-orient:vertical; overflow:hidden; }
.ot-meta { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:14px; }
.ot-meta span { font-size:12px; font-weight:500; background:var(--bg); border-radius:12px; padding:4px 10px; color:#555; }
.ot-next { margin-top:auto; border-top:1px solid var(--line); padding-top:12px; display:flex; align-items:center; gap:10px;
           flex-wrap:wrap; }
.ot-when { font-size:13px; line-height:1.4; flex:1 1 150px; min-width:0; }
.ot-when small { display:block; color:var(--muted); font-size:12px; }
.ot-when .ot-more { min-height:44px; }
.ot-next .ot-btn { margin-left:auto; }
.ot-note { max-width:1180px; margin:6px auto 0; padding:0 30px; color:var(--muted); font-size:13px; }
.ot-note a, .ot-empty a { color:var(--teal-d); }
.ot-empty { color:var(--muted); }

/* ------------------------------------------------------------------ one class type */
.ot-crumb { max-width:1180px; margin:0 auto; padding:16px 30px 0; font-size:12px; color:var(--muted); }
.ot-crumb a { text-decoration:none; }
.ot-crumb a:hover { color:var(--teal-d); }
.ot-top { max-width:1180px; margin:0 auto; padding:14px 30px 10px; display:grid; grid-template-columns:1.55fr 1fr; gap:30px;
          align-items:start; }
.ot-hero-pic { border-radius:16px; overflow:hidden; aspect-ratio:16/10; background:#ddd; }
.ot-hero-pic img { width:100%; height:100%; object-fit:cover; }
.ot-side { display:flex; flex-direction:column; gap:20px; position:sticky; top:20px; }
.ot-facts { border-radius:16px; background:#fff; box-shadow:0 2px 18px rgba(0,0,0,.08); padding:22px 24px;
            border-top:4px solid var(--c); }
.ot-fwho { display:flex; gap:12px; align-items:center; margin-bottom:6px; }
.ot-fwho img, .ot-initial { width:48px; height:48px; border-radius:50%; object-fit:cover; flex:none; }
.ot-initial { display:flex; align-items:center; justify-content:center; background:var(--tint); color:var(--teal-d);
              font:400 22px Prata, Georgia, serif; }
.ot-initial.big { width:84px; height:84px; font-size:34px; }
.ot-fwho b { display:block; font-weight:500; }
.ot-fwho small { color:var(--muted); font-size:12px; line-height:1.4; display:block; }
.ot .ot-facts h1 { font:400 30px/1.2 Prata, Georgia, serif; margin:10px 0 4px; color:var(--ink); }
.ot-sub { color:#666; font-size:14px; margin-bottom:14px; }
.ot-facts dl { display:grid; grid-template-columns:90px 1fr; gap:8px 10px; margin:0 0 16px; font-size:14px; }
.ot-facts dt { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.5px; padding-top:2px; font-weight:400; }
.ot-facts dd { margin:0; font-weight:500; }
.ot-facts dd small { color:var(--muted); font-weight:400; }
.ot .ot-dates h4 { margin:0 0 8px; font:600 13px Poppins, Arial, sans-serif; text-transform:uppercase; letter-spacing:.5px;
                   color:var(--muted); }
.ot-date { display:flex; align-items:center; gap:10px; border:1px solid var(--line); border-radius:10px; padding:8px 10px;
           margin-bottom:8px; font-size:14px; }
.ot-d { width:46px; text-align:center; line-height:1.1; flex:none; }
.ot-d b { display:block; font:400 20px Prata, Georgia, serif; }
.ot-d small { color:var(--muted); font-size:11px; text-transform:uppercase; }
.ot-t { flex:1; line-height:1.4; }
.ot-t small { display:block; color:var(--muted); font-size:12px; }
.ot-date .ot-btn { padding:0 14px; font-size:13px; }
.ot-date.full { opacity:.65; }
.ot-date.sub [data-substitute] { color:var(--purple); font-weight:500; }
.ot-none { color:var(--muted); font-size:14px; margin:0 0 8px; }
.ot .ot-all { display:flex; justify-content:center; align-items:center; min-height:44px; font-size:13px; font-weight:500;
              color:var(--teal-d); text-decoration:none; }
.ot-teacher { border-radius:16px; background:var(--bg); padding:20px; display:flex; gap:14px; align-items:flex-start; }
.ot-teacher > img { width:84px; height:84px; border-radius:50%; object-fit:cover; flex:none; }
.ot-teacher b { font:400 20px Prata, Georgia, serif; display:block; }
.ot-teacher small { color:var(--muted); font-size:13px; display:block; margin:2px 0 2px; line-height:1.5; }
.ot-text { padding:24px 0 0; }
.ot-desc { font-size:15px; line-height:1.8; color:#555; }
/* The theme hides a line break inside a paragraph up to 1280 px (responsive.css): a description's lines stay lines. */
.ot-desc p br, .ev-bio p br { display:inline; }
.ot-desc h6 { font:500 17px Poppins, Arial, sans-serif; color:var(--purple); margin:24px 0 8px; }
.ot-desc iframe { max-width:100%; }
.ot-related { max-width:1180px; margin:10px auto 0; padding:0 30px; }
.ot .ot-related h3 { font:400 24px Prata, Georgia, serif; margin:10px 0 14px; color:var(--ink); }
.ot-mini { display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; }
.ot-mini a { text-decoration:none; border-radius:12px; overflow:hidden; background:#fff; box-shadow:0 2px 10px rgba(0,0,0,.06);
             border-top:3px solid var(--c); }
.ot-mp { aspect-ratio:16/9; background:#ddd; overflow:hidden; }
.ot-mp img { width:100%; height:100%; object-fit:cover; }
.ot-mini span { display:block; padding:10px 12px; font-size:14px; font-weight:500; min-height:44px; }
.ot-stickybar { display:none; }

/* ------------------------------------------------------------------ narrow */
@container (max-width:700px) {
  .ot-hero { padding:26px 16px 14px; }
  .ot .ot-hero h1 { font-size:32px; }
  .ot-grid { padding:6px 16px 10px; grid-template-columns:1fr; gap:18px; }
  .ot-note { padding:0 16px; }

  .ot-crumb { padding:12px 16px 0; }
  .ot-top { grid-template-columns:1fr; padding:10px 16px; gap:16px; }
  .ot-main { display:contents; }
  .ot-hero-pic { border-radius:12px; order:1; }
  .ot-side { order:2; position:static; }
  .ot-text { order:3; padding:0; }
  .ot-facts { padding:18px; }
  .ot .ot-facts h1 { font-size:26px; }
  .ot-related { padding:0 16px; }
  .ot-mini { grid-template-columns:1fr 1fr; }
  .ot-stickybar { display:flex; position:sticky; bottom:0; margin-top:20px; background:rgba(255,255,255,.97);
                  box-shadow:0 -4px 14px rgba(0,0,0,.08); padding:10px 16px; gap:10px; align-items:center; z-index:40; }
  .ot-stickybar .ot-when { flex:1; }
}

/* ------------------------------------------------------------------ events (/esemenyek, /esemeny/<nice_url>) */
/* The event picture is 1.91 : 1 (Facebook's event cover and link preview), on the card and on the page alike. */
.ot.ev .ev-pic { aspect-ratio:1.91 / 1; }
.ev-date { position:absolute; left:12px; top:12px; background:#fff; border-radius:8px; padding:6px 10px; text-align:center;
           line-height:1.05; box-shadow:0 2px 8px rgba(0,0,0,.15); }
.ev-date b { display:block; font:400 22px Prata, Georgia, serif; }
.ev-date small { font-size:11px; text-transform:uppercase; color:var(--purple); font-weight:600; }
.ev-teachers { font-size:13px; color:#666; margin:-4px 0 10px; }
.ot.ev .ot-facts .ot-pre { margin-bottom:-4px; }
.ot .ev-book { width:100%; }
.ev-note { color:var(--muted); font-size:12px; line-height:1.5; margin:10px 0 0; text-align:center; }
.ev-state { background:var(--tint); border-radius:10px; padding:12px 14px; font-size:14px; margin:0; }
.ev-state.off { background:var(--bg); color:#666; }
.ev-bio { font-size:14px; line-height:1.7; color:#555; margin-top:6px; }
