/* The event detail markup's styles (T-E25/T-E28).

   WHY THIS IS A FILE AND NOT A `<style>` BLOCK: the same detail markup is rendered by TWO pages — the
   template (`event.html`, the share/crawl target) and the enlarged card on the events list. When the
   rules lived inline in the template only, the list page's enlarged card rendered them UNSTYLED: the
   owner saw it immediately ("调整到合适美观的尺度") and the cause was structural, not cosmetic.

   HORIZONTAL OVERFLOW IS FORBIDDEN: the enlarged card scrolls VERTICALLY only. A horizontal scrollbar
   inside a modal is how a title or a URL turns a card into a wobbly box — long words and links are
   wrapped instead (`overflow-wrap: anywhere`). */

  .evd-nav { margin: 0; padding: 10px clamp(20px,5vw,60px); background: #1c1530; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 13.5px; }
  .evd-nav a { color: rgba(255,255,255,.82); text-decoration: none; font-weight: 600; }
  .evd-wrap { max-width: 860px; margin: 0 auto; padding: 18px 20px 64px; }
  .evd { background: #fff; border-radius: var(--mp-radius-lg, 16px); overflow: hidden; box-shadow: var(--mp-shadow-card, 0 10px 30px rgba(36,31,54,.08)); }
  .evd-hero { position: relative; height: clamp(180px, 32vh, 280px); overflow: hidden; background: var(--mp-gray-100, #efeaf7); }
  .evd-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .evd-hero-plain { background: linear-gradient(135deg, var(--mp-purple-600, #5b3fa8), var(--mp-teal, #2aa79b)); }
  .evd-body { padding: 26px clamp(20px, 4vw, 34px) 34px; }
  .evd-pill { display: inline-flex; align-items: center; padding: 4px 12px; background: var(--mp-gray-50, #f7f6fb); border: 1px solid var(--mp-border-soft, #e3ddf0); border-radius: var(--mp-radius-pill, 999px); font-size: 12px; font-weight: 700; color: rgb(196, 90, 20); }
  .evd h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: clamp(22px, 3.4vw, 32px); line-height: 1.2; margin: 14px 0 18px; }
  /* The favourite toggle (owner: 「加一个爱心的标志，就是表示点击以后收藏这个活动」). A round outline
     button next to the title, filled solid once favourited — the same red the community/city 收藏
     button already uses site-wide (interactions.js's dockBtnCss), so "favourited" reads the same
     colour everywhere. */
  .evd-fav-btn { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--mp-border-soft, #e3ddf0); background: #fff; color: var(--mp-gray-400, #9a94ab); font-size: 19px; line-height: 1; cursor: pointer; transition: all .2s ease; }
  .evd-fav-btn:hover { border-color: #f5576c; color: #f5576c; }
  .evd-fav-btn[data-evd-fav-on="1"] { background: #f5576c; border-color: #f5576c; color: #fff; }
  /* 分享, beside the heart: the same height, the share panel's green. Shown only where detail-share.js
     runs (it marks <html> .ns-share-ready): the events page's zoomed card renders the same detail
     without that script, and a button there would do nothing. */
  .evd-share-btn { display: none; }
  .ns-share-ready .evd-share-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: #17675f; color: #fff; font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1; cursor: pointer; }
  .evd-share-btn:hover, .evd-share-btn:focus-visible { background: #12524c; }
  .evd h2 { font-size: 16px; margin: 26px 0 10px; }
  /* The condensed sentence: bigger than body text, so it is the second thing read after the title. */
  .evd-summary { margin: 0 0 20px; font-size: 16.5px; line-height: 1.7; font-weight: 600; color: var(--mp-gray-900, #241f36); }
  .evd-rows { margin: 0; display: grid; gap: 10px; }
  .evd-rows > div { display: flex; gap: 12px; align-items: baseline; }
  .evd-rows dt { flex: 0 0 62px; color: var(--mp-gray-500, #6b6480); font-size: 13px; }
  .evd-rows dd { margin: 0; font-size: 14.5px; font-weight: 600; }
  .evd-desc { margin: 22px 0 0; font-size: 14.5px; line-height: 1.85; color: var(--mp-gray-700, #403a55); white-space: pre-wrap; }
  .evd-day { font-size: 18px; margin: 28px 0 8px; }
  .evd-session { margin: 0 0 22px; }
  .evd-session h3 { font-size: 16px; margin: 14px 0 6px; }
  .evd-session p { margin: 0 0 6px; font-size: 14.5px; line-height: 1.7; overflow-wrap: anywhere; }
  .evd-poster { display: block; width: 100%; height: auto; margin-top: 8px; border-radius: 12px; }
  /* The signup code sits on its own panel so it is the thing a reader acts on, larger than the body text. */
  .evd-qr { margin: 26px 0 4px; padding: 22px 16px 18px; text-align: center; background: #fffaf3; border: 1px solid #e4d2a8; border-radius: 18px; }
  .evd-qr figcaption { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: .06em; color: #c45a14; }
  .evd-qr img { box-sizing: border-box; width: min(320px, 100%); height: auto; margin: 14px auto 0; display: block; background: #fff; padding: 12px; border-radius: 16px; border: 2px solid #d7b56a; box-shadow: 0 10px 28px rgba(120, 86, 24, .12); }
  .evd-qr p { margin: 12px auto 0; max-width: 28em; font-size: 13.5px; line-height: 1.6; color: var(--mp-gray-500, #6b6480); }
  /* 报名 → code: the same panel, holding the button and the in-place email/code steps until the code is earned. */
  .evd-signup-title { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: .06em; color: #c45a14; }
  .evd-signup > .evd-btn { margin-top: 14px; border: 0; cursor: pointer; }
  .evd-signup-form { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 14px auto 0; max-width: 320px; }
  .evd-signup-form[hidden], .evd-signup [hidden] { display: none; }
  .evd-signup-form label { display: flex; flex-direction: column; gap: 6px; width: 100%; font-size: 13.5px; font-weight: 600; text-align: left; color: var(--mp-gray-700, #403a55); }
  .evd-signup-form input { box-sizing: border-box; width: 100%; padding: 10px 12px; font-size: 16px; border: 1px solid #e4d2a8; border-radius: 10px; background: #fff; }
  .evd-signup-form .evd-btn { border: 0; cursor: pointer; }
  .evd-signup-form .evd-btn:disabled { opacity: .6; cursor: default; }
  .evd-signup-form small { font-size: 12px; line-height: 1.5; color: var(--mp-gray-500, #6b6480); }
  .evd-signup-msg:empty { display: none; }
  .evd-signup .evd-qr { margin: 14px 0 0; border: 0; padding: 0; background: transparent; }
  .evd-signup .evd-contacts { margin: 16px auto 0; max-width: 28em; text-align: left; }
  .evd-signup .evd-contacts dd { overflow-wrap: anywhere; }
  .evd-signup [data-evd-signup-qr] > .evd-btn { margin-top: 14px; }
  .evd-list { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.9; color: var(--mp-gray-700, #403a55); }
  .evd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
  .evd-btn { display: inline-flex; align-items: center; padding: 11px 20px; border-radius: var(--mp-radius-pill, 999px); background: var(--mp-purple-700, #4b2fa8); color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; }
  .evd-btn-ghost { background: transparent; color: var(--mp-purple-700, #4b2fa8); border: 1px solid var(--mp-border-soft, #e3ddf0); }
  .evd-note { margin-top: 26px; font-size: 12px; color: var(--mp-gray-400, #9a94ab); }
  .evd-msg { padding: 34px; background: #fff; border-radius: var(--mp-radius-lg, 16px); box-shadow: var(--mp-shadow-card, 0 10px 30px rgba(36,31,54,.08)); font-size: 14.5px; }

/* The enlarged card itself: vertical scrolling only, and a scale that reads well on a laptop and a
   phone alike. */
.ev-zoom-card { overflow-x: hidden !important; overflow-y: auto !important; width: min(720px, 92vw) !important; max-height: min(86vh, 900px) !important; }
.ev-zoom-body { padding: 0; }
.ev-zoom .evd h1 { font-size: clamp(20px, 3vw, 28px); overflow-wrap: anywhere; }
.ev-zoom .evd-body { padding: 22px 24px 28px; }
.ev-zoom .evd-desc, .ev-zoom .evd-list, .ev-zoom .evd-rows dd { overflow-wrap: anywhere; }
.ev-zoom .evd-hero { height: clamp(150px, 26vh, 240px); }
.ev-zoom .evd-qr img { width: min(280px, 100%); }

/* External source link rows inside event description (guiding text format) */
.evd-ext-link { display: inline-flex; align-items: center; gap: 6px; color: var(--mp-gray-800, #2c2543); text-decoration: none; font-size: 14px; font-weight: 500; margin: 4px 0 2px; vertical-align: middle; transition: color .2s ease; cursor: pointer; }
.evd-ext-link:hover { color: var(--mp-purple-700, #4b2fa8); }
.evd-ext-link .evd-ext-icon { flex-shrink: 0; opacity: .78; stroke: currentColor; }
.evd-ext-link:hover .evd-ext-icon { opacity: 1; }
.evd-ext-link .evd-ext-text { text-decoration: underline dotted 1.5px currentColor; text-underline-offset: 4px; }
.evd-ext-link:hover .evd-ext-text { text-decoration: underline solid 1.5px currentColor; }
.evd-ext-link .evd-ext-arrow { font-size: 13px; font-weight: 600; opacity: .8; margin-left: 1px; }
