/* Libenest content works: 旅遊指南, 旅人故事 and stay stories. Scoped to .work-*. */
.work-index, .work-page { width: min(100% - 2 * var(--gutter), 1100px); margin: 0 auto; padding-block: clamp(24px, 5vw, 56px); }
.work-page { width: min(100% - 2 * var(--gutter), 760px); }
.work-index-head h1, .work-head h1 { margin: 6px 0 10px; font-size: clamp(30px, 5vw, 46px); line-height: 1.2; text-wrap: balance; }
.work-index-head > p:not(.eyebrow) { max-width: 62ch; color: var(--muted); line-height: 1.8; }
.work-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.work-filters a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: inherit; text-decoration: none; font-size: 14px; }
.work-filters a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--paper); font-weight: 700; }
.work-section-title { margin: 32px 0 14px; font-size: 22px; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; margin-top: 20px; }
.work-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.work-card-media img, .work-card-placeholder { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--paper-deep); }
.work-card-placeholder { display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.work-card-copy { display: grid; align-content: start; gap: 6px; padding: 16px 18px 18px; }
.work-card-copy h3 { margin: 0; font-size: 18px; line-height: 1.4; }
.work-card-copy h3 a { color: inherit; text-decoration: none; }
.work-card-copy p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.work-card-kicker { font-size: 12px !important; letter-spacing: .04em; }
.work-card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px !important; }
.work-card-meta span { color: var(--ink); font-weight: 700; }
.work-empty { margin-top: 20px; color: var(--muted); }
.work-crumbs { margin: 0 0 8px; font-size: 14px; }
.work-crumbs a { color: var(--muted); }
.work-summary { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.75; }
.work-byline { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 0; font-size: 14px; font-weight: 700; }
.work-byline a { color: inherit; }
.work-byline span { color: var(--muted); font-weight: 400; }
.work-disclosure { margin: 22px 0 0; padding: 12px 16px; border-left: 4px solid #d9a636; border-radius: 4px 14px 14px 4px; background: var(--lb-surface,#fbf4e4); }
.work-disclosure strong { font-size: 13px; }
.work-disclosure p { margin: 4px 0 0; font-size: 14px; line-height: 1.7; }
.work-cover { margin: 24px 0 0; }
.work-cover img, .work-gallery img { display: block; width: 100%; max-width: 100%; border-radius: 18px; object-fit: cover; }
.work-cover figcaption, .work-gallery figcaption { margin-top: 6px; color: var(--muted); font-size: 13px; }
.work-video { margin: 24px 0 0; }
.work-video button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 18px; background: #2f2a24; color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.work-video-play { width: 0; height: 0; border-top: 14px solid transparent; border-bottom: 14px solid transparent; border-left: 22px solid currentColor; }
.work-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 18px; }
.work-video p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.work-video p a { color: inherit; }
.work-body { margin-top: 24px; font-size: 17px; line-height: 1.95; }
.work-body h2 { margin: 32px 0 8px; font-size: 22px; }
.work-body p { margin: 0 0 18px; white-space: pre-line; }
.work-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: 24px; }
.work-gallery figure { margin: 0; }
.work-places, .work-stay { margin-top: 32px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper-deep); }
.work-places h2 { margin: 0 0 10px; font-size: 18px; }
.work-places ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.work-places li { display: grid; gap: 2px; }
.work-places li span { color: var(--muted); font-size: 13px; }
.work-stay p { margin: 0 0 8px; }
.work-link { display: inline-block; margin-top: 10px; color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
.work-credits { margin-top: 24px; color: var(--muted); font-size: 13px; }

/* Self-published posts: the creator's photo, their own links, and a quiet way to report the post. */
.work-byline--creator { align-items: center; }
/* 貼文只給泡泡看: the green mark above the title, with the reader's own bubble (post-audience.mjs). */
.ag-work-bubble { display: inline-block; max-width: 100%; margin: 12px 0 0; padding: 2px 10px; overflow: hidden; border-radius: 999px; background: #13853a; color: #fff; font-size: 13px; font-weight: 700; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
[data-post-bubble] .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.work-byline--creator p { display: flex; gap: 12px; margin: 0; }
.work-avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--lb-surface,#f1f1f4); color: var(--muted); font-weight: 700; object-fit: cover; }
.work-avatar--small { width: 40px; height: 40px; }
.work-avatar--large { width: 96px; height: 96px; font-size: 36px; }
.work-social { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.work-social a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--lb-line,#e2e7ee); border-radius: 50%; color: var(--lb-text-2,#425271); }
.work-social a:hover { border-color: var(--lb-link,#006bff); color: var(--lb-link,#006bff); }
.work-self-published { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--lb-line,#e5e5ea); color: var(--muted); font-size: 13px; }
.work-report summary { cursor: pointer; }
.work-report form { display: grid; gap: 10px; margin-top: 10px; }
.work-report fieldset { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.work-report textarea { width: 100%; }
.work-report button { justify-self: start; color: var(--lb-text, inherit); }
.work-creator-head { display: flex; align-items: center; gap: 24px; margin-bottom: 32px; }
.work-creator-head h1 { margin: 4px 0; }
.work-creator-bio { margin: 0 0 8px; }
.work-creator-join { margin-top: 32px; }

@media (width <= 640px) {
  .work-creator-head { align-items: flex-start; flex-direction: column; gap: 12px; }
}
.work-clip { display: block; width: 100%; max-height: 80vh; aspect-ratio: 9 / 16; border-radius: 18px; background: #000; object-fit: contain; }
/* 編輯 and 刪除 under the author's name, for the author. */
.work-own { display:flex; gap:8px; margin:8px 0 0; }
.work-own[hidden] { display:none; }
.work-own a, .work-own button { display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:0 14px; border:1px solid var(--lb-line,#d8dee8); border-radius:999px; background:var(--lb-bg,#fff); color:var(--lb-text,#101113); font:inherit; font-size:14px; font-weight:600; text-decoration:none; cursor:pointer; }
.work-own button { color:var(--lb-red-text,#b72c2c); }

