/* Scoped sharing layouts and brand CTA. The site shell and typography use moji/base.html. */
.share-main .share-card {
    border: 1px solid #eee;
    border-radius: 3px;
    padding: 30px;
    overflow-wrap: anywhere;
}
.share-main h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.5; margin: 14px 0 24px; }
.share-main .eyebrow { font-weight: 600; }
.share-main .share-body { margin: 28px 0; line-height: 1.93; overflow-wrap: anywhere; }
/* Same scale as blog articles (post/base.html): 1.2em body text and bold 1.7/1.5/1.3rem headings. */
.share-main .share-body p, .share-main .share-body table { font-size: 1.2em; margin: 0 0 1.2em; }
.share-main .share-body > ul, .share-main .share-body > ol { font-size: 1.2em; margin: 0 0 1.2em; padding-left: 1.6em; }
.share-main .share-body li { margin-bottom: .2em; }
.share-main .share-body li p, .share-main .share-body li ul, .share-main .share-body li ol { font-size: 1em; margin: .2em 0; }
.share-main .share-body h1 { font-size: 1.9rem; font-weight: bold; margin: 0 0 1em; }
.share-main .share-body h2 { font-size: 1.7rem; font-weight: bold; padding: .5em; margin: 1.6em 0 1em; border-bottom: 2px solid #a5d9d2; }
.share-main .share-body h3 { font-size: 1.5rem; font-weight: bold; padding: .5em; margin: 1.4em 0 .9em; border-left: 4px solid #a5d9d2; }
.share-main .share-body h4 { font-size: 1.3rem; font-weight: bold; padding-bottom: .3em; margin: 1.2em 0 .8em; border-bottom: 1px solid #ccc; }
.share-main .share-body > :first-child { margin-top: 0; }
.share-main .share-body pre { overflow: auto; background: #f7f7f7; padding: 16px; }
.share-main .share-body blockquote { border-left: 3px solid #ddd; margin-left: 0; padding-left: 20px; }

.share-main .thumbnail { display: block; width: 100%; height: auto; border-radius: 3px; margin: 20px 0; }
.share-main .share-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.share-main .share-grid .share-card { padding: 24px; }
.share-main .share-grid h2 { font-size: 22px; }
.share-main .pagination { display: flex; justify-content: center; gap: 20px; margin: 32px; }
.share-main .title-row { display: flex; align-items: center; gap: 15px; }
.share-main .title-row h2 { flex: 1; }
.share-main #edit-title { font-size: 15px; white-space: nowrap; }
.share-main #edit-title .fa { font-size: 20px; vertical-align: -2px; margin-right: 4px; }
.share-main #title-fields, .share-main #body-fields { margin-bottom: 20px; }
.share-main #edit-body { margin-top: 8px; }
.share-main label { display: block; font-weight: 600; margin-top: 20px; }
.share-main input, .share-main textarea, .share-main select {
    width: 100%; font: inherit; padding: 10px; border: 1px solid #ccc;
    border-radius: 3px; margin: 8px 0 14px;
}
.share-main textarea { resize: vertical; }
.share-main .editor-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.share-main #share-error { color: #a52323; }
.share-main #published-links { border-top: 1px solid #eee; margin-top: 24px; padding-top: 16px; }
.share-main [hidden] { display: none !important; }
@media (max-width: 600px) {
    .share-main .share-card { padding: 24px 18px; }
    .share-main .share-grid { grid-template-columns: 1fr; }
    .share-main .editor-actions button { flex: 1; }
    .share-main .title-row h2 { font-size: 22px; }
}

.share-main .share-copy { border-top: 1px solid #eee; padding-top: 24px; margin-top: 32px; }
.share-main .share-copy button { white-space: normal; }
.share-main .share-cta { margin-top: 40px; padding: 44px 36px; border: 1px solid #d3e8e5; border-top: 4px solid #74b8af; background: #f3faf9; border-radius: 4px; }
.share-main .share-cta-intro { text-align: center; }
.share-main .share-cta-brand { color: #377d74; font-weight: 700; letter-spacing: .12em; }
.share-main .share-cta h2 { font-size: clamp(25px, 3vw, 34px); line-height: 1.65; font-weight: 600; margin: 12px 0 18px; }
.share-main .share-cta-lead { font-size: 16px; line-height: 1.9; }
.share-main .share-cta-features { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 30px 0; }
.share-main .share-cta-features li { padding: 24px; background: #fff; border: 1px solid #e0eeeb; border-radius: 4px; }
.share-main .share-cta-icon { display: inline-block; color: #377d74; font-weight: 700; font-size: 22px; margin-bottom: 14px; }
.share-main .share-cta h3 { font-size: 17px; font-weight: 600; line-height: 1.6; }
.share-main .share-cta-features p { line-height: 1.8; margin-bottom: 0; }
.share-main .share-cta-action { text-align: center; }
.share-main .share-cta-button { padding: 16px 30px; font-size: 18px; white-space: normal; font-weight: 600; }
.share-main .share-cta-action p { font-size: 13px; margin: 14px 0 0; line-height: 1.8; }
@media (max-width: 600px) {
    .share-main .share-cta { padding: 30px 18px; }
    .share-main .share-cta-features { grid-template-columns: 1fr; gap: 12px; }
    .share-main .share-cta-features li { padding: 20px; }
    .share-main .share-cta-button { width: 100%; padding: 16px 12px; font-size: 17px; }
}

.share-main .share-cta-button { background-color: #377d74; border-color: #377d74; }
.share-main .share-cta-button:hover, .share-main .share-cta-button:focus { background-color: #286359; border-color: #286359; }

@media (max-width: 600px) { .share-main .share-cta h2 { font-size: 22px; } }

.share-main .share-secondary { background: #fff; color: #237578; border: 1px solid #8ab8b9; }
.share-main .share-secondary:hover, .share-main .share-secondary:focus { background: #effafa; color: #19585a; }
.share-main .share-danger { color: #a52323; border-color: #cc9292; }
.share-main .share-danger:hover, .share-main .share-danger:focus { color: #861b1b; background: #fff0f0; }
.share-main .share-owner-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; background: #effafa; border: 1px solid #d3e8e5; border-radius: 3px; padding: 16px; margin-bottom: 20px; }
.share-main .share-owner-bar span { flex: 1; }
.share-main #stop-confirm { border: 1px solid #cc9292; border-radius: 3px; padding: 16px; margin: 16px 0; }

/* Manage list: compact rows, pill badges, tappable actions. */
.share-main .manage-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 8px; }
.share-main .manage-head h1 { font-size: 1.5rem; font-weight: 600; line-height: 1.4; margin: 0; color: #000; }
.share-main .manage-count { font-size: .9rem; color: #777; }
.share-main .manage-lead { color: #555; margin: 0 0 20px; }
.share-main .manage-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.share-main .manage-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border: 1px solid #e3ebea; border-radius: 8px; background: #fff; }
.share-main .manage-info { flex: 1; min-width: 0; }
.share-main .manage-title { font-size: 1.1rem; font-weight: 700; line-height: 1.5; margin: 0 0 8px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.share-main .manage-title a { color: #333; text-decoration: none; }
.share-main .manage-title a:hover, .share-main .manage-title a:focus { color: #377d74; }
.share-main .manage-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.share-main .manage-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; line-height: 1.6; background: #eef0f0; color: #5f6868; }
.share-main .manage-badge-published { background: #e1f4f4; color: #1f6b6b; }
.share-main .manage-badge-visibility { background: #fff; color: #5f6868; border: 1px solid #d6dcdc; }
.share-main .manage-badge-blocked { background: #fde8e8; color: #a52323; }
.share-main .manage-actions { display: flex; gap: 8px; flex-shrink: 0; }
.share-main .manage-actions .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 84px; padding: 0 20px; font-weight: 600; border-radius: 6px; }
.share-main .manage-empty { padding: 32px 20px; text-align: center; color: #555; border: 1px dashed #cfe0de; border-radius: 8px; background: #f7fbfb; margin: 0; }
@media (max-width: 576px) {
    .share-main .manage-item { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
    .share-main .manage-actions { flex-shrink: 1; }
    .share-main .manage-actions .btn { flex: 1; }
}
