/* Scope every selector: never style host headings, buttons or links globally.
   Colours: --hs-accent / --hs-ink / --hs-paper come from the plugin options (set per city); fonts are inherited. */
.helin-share { --helin-share-accent: var(--hs-accent, #344054); --helin-share-ink: var(--hs-ink, #172b27); --helin-share-paper: var(--hs-paper, #fffdf7); --helin-share-line: color-mix(in srgb, var(--helin-share-ink) 16%, var(--helin-share-paper)); --helin-share-soft: color-mix(in srgb, var(--helin-share-accent) 7%, var(--helin-share-paper)); --helin-share-radius: var(--hs-radius, 12px); color: var(--helin-share-ink); font-family: inherit; font-size: 16px; line-height: 1.6; max-width: 100%; margin-block: 2rem; clear: both; }
.helin-share *, .helin-share *::before, .helin-share *::after { box-sizing: border-box; }
.helin-share [hidden] { display: none !important; }
.helin-share .helin-share-fallback { margin: 0; font-size: 16px; }
.helin-share .helin-share-controls { background: var(--helin-share-paper); border: 1px solid var(--helin-share-line); border-top: 3px solid var(--helin-share-accent); border-radius: var(--helin-share-radius); padding: 1.1rem 1.25rem 1.2rem; }
.helin-share .helin-share-head { margin-bottom: .9rem; }
.helin-share .helin-share-label { margin: 0; font-size: 20px; line-height: 1.35; font-weight: 800; color: var(--helin-share-ink); }
.helin-share .helin-share-sub { margin: .25rem 0 0; font-size: 15px; line-height: 1.55; color: color-mix(in srgb, var(--helin-share-ink) 72%, var(--helin-share-paper)); }
.helin-share .helin-share-row, .helin-share .helin-share-poster-tools { display: flex; gap: .65rem; flex-wrap: wrap; align-items: stretch; }
.helin-share .helin-share-button { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; flex: 1 1 140px; min-height: 48px; padding: .55em 1em; border: 1.5px solid var(--helin-share-accent); border-radius: var(--helin-share-radius); background: var(--helin-share-paper); color: var(--helin-share-accent); font: inherit; font-size: 16px; font-weight: 700; line-height: 1.4; text-decoration: none; cursor: pointer; max-width: 100%; white-space: normal; transition: background-color .15s ease, color .15s ease; }
.helin-share .helin-share-button:hover { background: var(--helin-share-soft); text-decoration: none; }
.helin-share .helin-share-button[aria-expanded="true"] { background: var(--helin-share-accent); color: #fff; }
.helin-share .helin-share-button:disabled { cursor: progress; opacity: .6; }
.helin-share .helin-share-download, .helin-share .helin-share-retry { background: var(--helin-share-accent); color: #fff; }
.helin-share .helin-share-download:hover, .helin-share .helin-share-retry:hover { background: color-mix(in srgb, var(--helin-share-accent) 85%, #000); }
.helin-share .helin-share-icon { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.helin-share .helin-share-button:focus-visible, .helin-share input:focus-visible { outline: 3px solid color-mix(in srgb, var(--helin-share-accent) 55%, #fff); outline-offset: 2px; }
.helin-share .helin-share-panel { margin-top: 1rem; padding: 1rem; border: 1px solid var(--helin-share-line); border-radius: var(--helin-share-radius); background: #fff; text-align: center; }
.helin-share .helin-share-qr canvas { display: block; margin: 0 auto; width: 224px; max-width: 100%; height: auto; image-rendering: pixelated; background: #fff; }
.helin-share .helin-share-note, .helin-share .helin-share-status, .helin-share .helin-share-qr-url { font: inherit; font-size: 14px; line-height: 1.6; margin: .6rem 0 0; overflow-wrap: anywhere; color: color-mix(in srgb, var(--helin-share-ink) 72%, var(--helin-share-paper)); }
.helin-share .helin-share-status { text-align: left; }
.helin-share .helin-share-status:empty { display: none; }
.helin-share .helin-share-status[data-tone="ok"] { color: #1d6b43; background: #e8f5ec; border-radius: 8px; padding: .4rem .7rem; font-weight: 600; }
.helin-share .helin-share-status[data-tone="warn"] { color: #8a3b12; background: #fdf1e6; border-radius: 8px; padding: .4rem .7rem; }
.helin-share .helin-share-link { width: 100%; max-width: 100%; padding: .65rem; margin-top: .75rem; border: 1px solid var(--helin-share-line); border-radius: var(--helin-share-radius); color: inherit; background: #fff; font: inherit; font-size: 15px; }
.helin-share .helin-share-poster-preview { display: block; width: min(100%, 360px); height: auto; margin: 0 auto; border: 1px solid var(--helin-share-line); border-radius: 10px; box-shadow: 0 4px 16px rgb(0 0 0 / .1); }
.helin-share .helin-share-poster-tools { margin-top: .9rem; }
.helin-share .helin-share-busy { padding: 1.4rem 0; }
.helin-share .helin-share-spinner { display: block; width: 44px; height: 44px; margin: 0 auto; border: 5px solid var(--helin-share-soft); border-top-color: var(--helin-share-accent); border-radius: 50%; animation: helin-share-spin .9s linear infinite; }
.helin-share .helin-share-fail { padding: .8rem 0 .2rem; }
.helin-share .helin-share-failmark { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; background: var(--helin-share-soft); color: var(--helin-share-accent); }
.helin-share .helin-share-failmark .helin-share-icon { width: 30px; height: 30px; stroke-width: 2.4; }
.helin-share .helin-share-fail-title { margin: .7rem 0 0; font-size: 18px; font-weight: 800; }
.helin-share .helin-share-fail .helin-share-row { margin-top: .9rem; }
@keyframes helin-share-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .helin-share *, .helin-share *::before { scroll-behavior: auto; animation-duration: 3s !important; transition: none !important; } }
@media (max-width: 520px) { .helin-share .helin-share-controls { padding: 1rem; } .helin-share .helin-share-row { display: grid; grid-template-columns: 1fr 1fr; } .helin-share .helin-share-button { flex: none; padding: .5em .6em; } }

.helin-share.helin-share-dialog { position: fixed; inset: 0; margin: auto; width: min(94vw, 560px); max-width: calc(100vw - 24px); height: fit-content; max-height: min(90vh, 900px); max-height: min(90dvh, 900px); overflow: auto; overscroll-behavior: contain; padding: 0; background: var(--helin-share-paper); color: var(--helin-share-ink); border: 2px solid var(--helin-share-accent); border-radius: calc(var(--helin-share-radius) + 6px); z-index: 2147483000; }
.helin-share.helin-share-dialog::backdrop { background: rgb(16 35 62 / .55); }
.helin-share.helin-share-dialog .helin-share-controls { border: 0; border-radius: 0; padding: 1rem 1.1rem 1.2rem; background: transparent; }
.helin-share.helin-share-dialog .helin-share-head { padding-right: 5.5rem; }
.helin-share.helin-share-dialog > .helin-share-close { position: absolute; top: .55rem; right: .6rem; z-index: 2; flex: none; min-height: 44px; min-width: 76px; border-color: transparent; background: transparent; color: var(--helin-share-ink); font-weight: 600; }
.helin-share.helin-share-dialog > .helin-share-close::after { content: '✕'; font-size: 16px; margin-left: .3rem; }
.helin-share.helin-share-dialog > .helin-share-close:hover { background: var(--helin-share-soft); }
/* festival iframe host: inline share band under the embedded page */
.helin-share-festival-host { display: block; }
.helin-share-festival-host > .helin-share-festival-inline { margin-block: 1.75rem 0; }

/* hi-test polish: keep theme link/input focus styles from re-colouring share controls */
.helin-share a.helin-share-button, .helin-share a.helin-share-button:hover, .helin-share a.helin-share-button:focus { text-decoration: none; }
.helin-share input.helin-share-link { border: 1px solid var(--helin-share-accent); box-shadow: none; background: #fff; color: var(--helin-share-ink); font-size: 1rem; }
.helin-share input.helin-share-link:focus, .helin-share input.helin-share-link:focus-visible { border-color: var(--helin-share-accent); box-shadow: none; outline: 3px solid color-mix(in srgb, var(--helin-share-accent) 40%, #fff); outline-offset: 2px; }

/* Editorial refinement; scoped to the share component, never the host theme. */
.helin-share { --hs-editorial: "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", Georgia, serif; }
.helin-share .helin-share-label { font-family: var(--hs-editorial); letter-spacing: .025em; }
.helin-share .helin-share-controls { border-top-width: 1px; border-radius: 18px; box-shadow: 0 7px 24px rgba(16,35,62,.045); }
.helin-share .helin-share-button { border-radius: 10px; min-height: 48px; box-shadow: none; }
.helin-share .helin-share-panel { border-radius: 14px; }
.helin-share-dialog[open] { display: flex; flex-direction: column; overflow: hidden; max-height: min(90dvh,900px); }
.helin-share-dialog .helin-share-dialog-rail { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex: 0 0 auto; padding: .65rem 1rem; background: var(--hs-paper); border-bottom: 1px solid rgba(16,35,62,.12); z-index: 3; }
.helin-share-dialog .helin-share-dialog-brand { font-weight: 700; color: var(--hs-ink); font-size: .9rem; overflow-wrap: anywhere; }
.helin-share-dialog .helin-share-close { position: static; flex: 0 0 auto; min-width: 64px; min-height: 44px; margin: 0; }
.helin-share-dialog .helin-share-dialog-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.helin-share-dialog .helin-share-head { padding-right: 0; }
.helin-share-dialog .helin-share-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.helin-share-dialog .helin-share-row > [hidden] { display: none !important; }
.helin-share-dialog .helin-share-button { min-width: 0; overflow-wrap: anywhere; }
.helin-share-dialog .helin-share-poster-preview { max-width: 380px; border-radius: 8px; }
@media (max-width: 360px) { .helin-share-dialog .helin-share-row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .helin-share .helin-share-spinner { animation: none; } }
.helin-share.helin-share-dialog .helin-share-head { padding-right: 0; }
.helin-share-dialog .helin-share-dialog-rail { background: var(--helin-share-paper); }

/* Compact actions remain local to this component; native share stays capability-gated. */
.helin-share .helin-share-controls > .helin-share-row { gap: .55rem; align-items: center; }
.helin-share .helin-share-controls > .helin-share-row > .helin-share-button { flex: 0 0 auto; min-height: 46px; padding: .55rem 1rem; border: 1px solid var(--helin-share-line); border-radius: 9px; color: var(--helin-share-ink); background: var(--helin-share-paper); font-weight: 600; }
.helin-share .helin-share-controls > .helin-share-row > .helin-share-button:hover { background: var(--helin-share-soft); border-color: var(--helin-share-accent); }
.helin-share .helin-share-controls > .helin-share-row > .helin-share-native { background: var(--helin-share-accent); color: #fff; border-color: var(--helin-share-accent); }
.helin-share .helin-share-controls > .helin-share-row > .helin-share-native:hover { background: color-mix(in srgb, var(--helin-share-accent) 85%, #000); color: #fff; }
.helin-share .helin-share-controls > .helin-share-row > .helin-share-button[aria-expanded="true"] { background: var(--helin-share-soft); color: var(--helin-share-ink); border-color: var(--helin-share-accent); }
.helin-share .helin-share-controls > .helin-share-row .helin-share-icon { width: 19px; height: 19px; flex-basis: 19px; }
@media (max-width: 520px) { .helin-share .helin-share-controls > .helin-share-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); } .helin-share .helin-share-controls > .helin-share-row > .helin-share-button { min-width: 0; width: 100%; } }

/* Inline share strip: two fine rules, text on the left, outlined actions on the right. */
.helin-share:not(.helin-share-dialog-content):not(.helin-share-dialog) > .helin-share-controls { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; column-gap:1.5rem; row-gap:.9rem; padding:.35rem 0; background:transparent; border:0; border-top:1px solid var(--helin-share-line); border-bottom:1px solid var(--helin-share-line); border-radius:0; box-shadow:none; }
.helin-share:not(.helin-share-dialog-content):not(.helin-share-dialog) > .helin-share-controls > .helin-share-head { margin:0; flex:1 1 240px; }
.helin-share:not(.helin-share-dialog-content):not(.helin-share-dialog) > .helin-share-controls .helin-share-label { font-size:27px; line-height:1.3; }
.helin-share:not(.helin-share-dialog-content):not(.helin-share-dialog) > .helin-share-controls .helin-share-sub { font-size:15px; line-height:1.5; margin-top:4px; }
.helin-share:not(.helin-share-dialog-content):not(.helin-share-dialog) > .helin-share-controls > .helin-share-row { display:flex; flex:0 1 auto; flex-wrap:wrap; gap:.55rem; }
.helin-share:not(.helin-share-dialog-content):not(.helin-share-dialog) > .helin-share-controls > .helin-share-row > .helin-share-button { flex:0 0 auto; min-height:44px; border:1px solid var(--helin-share-accent); border-radius:5px; background:transparent; color:var(--helin-share-accent); padding:.5rem .9rem; font-weight:600; }
.helin-share:not(.helin-share-dialog-content):not(.helin-share-dialog) > .helin-share-controls > .helin-share-row > .helin-share-button:hover,
.helin-share:not(.helin-share-dialog-content):not(.helin-share-dialog) > .helin-share-controls > .helin-share-row > .helin-share-button[aria-expanded="true"] { background:var(--helin-share-soft); color:var(--helin-share-accent); }
.helin-share:not(.helin-share-dialog-content):not(.helin-share-dialog) > .helin-share-controls > :not(.helin-share-head):not(.helin-share-row) { flex-basis:100%; }
@media (max-width: 700px) {
  .helin-share:not(.helin-share-dialog-content):not(.helin-share-dialog) > .helin-share-controls { display:block; padding:.85rem 0; }
  .helin-share:not(.helin-share-dialog-content):not(.helin-share-dialog) > .helin-share-controls .helin-share-label { font-size:22px; }
  .helin-share:not(.helin-share-dialog-content):not(.helin-share-dialog) > .helin-share-controls > .helin-share-head { margin-bottom:.8rem; }
  .helin-share:not(.helin-share-dialog-content):not(.helin-share-dialog) > .helin-share-controls > .helin-share-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .helin-share:not(.helin-share-dialog-content):not(.helin-share-dialog) > .helin-share-controls > .helin-share-row > .helin-share-button { width:100%; min-width:0; }
}
.helin-share-dialog .helin-share-dialog-brand { color: var(--helin-share-ink); }
.helin-share-dialog .helin-share-close::after { content: '×'; font-size: 20px; margin-left: .25rem; }

/* Article UI follows the host sans-serif; the modal uses the same outlined actions. */
.helin-share .helin-share-label { font-family:inherit; letter-spacing:normal; font-size:22px; }
.helin-share-dialog .helin-share-controls > .helin-share-row > .helin-share-button { border:1px solid var(--helin-share-accent); border-radius:6px; color:var(--helin-share-accent); background:transparent; min-height:46px; }
.helin-share-dialog .helin-share-controls > .helin-share-row > .helin-share-button:hover,
.helin-share-dialog .helin-share-controls > .helin-share-row > .helin-share-button[aria-expanded="true"] { background:var(--helin-share-soft); color:var(--helin-share-accent); }
.helin-share-dialog .helin-share-label { display:none; }
.helin-share-dialog .helin-share-dialog-content { margin:0; }
.helin-share-dialog .helin-share-dialog-brand { flex:1 1 auto; min-width:0; font-size:28px; line-height:1.3; font-weight:700; white-space:normal; overflow-wrap:anywhere; outline:none; }
.helin-share.helin-share-dialog .helin-share-sub { font-size:16px; line-height:1.55; }
@media (max-width:359px) { .helin-share-dialog .helin-share-dialog-brand { font-size:25px; } }
.helin-share-dialog .helin-share-dialog-rail .helin-share-close { min-width:64px; min-height:44px; padding:.4rem .55rem; border:1px solid transparent; border-radius:6px; background:transparent; color:var(--helin-share-ink); font-size:14px; font-weight:600; box-shadow:none; }
.helin-share-dialog .helin-share-dialog-rail .helin-share-close:hover { background:var(--helin-share-soft); }
.helin-share-dialog .helin-share-dialog-rail .helin-share-close:focus-visible { outline:3px solid var(--helin-share-accent); outline-offset:2px; }

/* Keep the filled download link legible against host link-colour rules. */
.helin-share a.helin-share-download,
.helin-share a.helin-share-download:visited,
.helin-share a.helin-share-download:hover,
.helin-share a.helin-share-download:focus { color:#fff !important; }

/* ===== Article bottom (t325u): share strip under its title, compact author box, tighter spacing =====
   Colours come from the site theme variables (--helin-primary / --helin-primary-dark) with the share accent as fallback. */
.helin-share:not(.helin-share-dialog-content):not(.helin-share-dialog) > .helin-share-controls { display:block; padding:.9rem 0 1rem; }
.helin-share:not(.helin-share-dialog-content):not(.helin-share-dialog) > .helin-share-controls > .helin-share-head { margin:0 0 .75rem; }
.helin-share:not(.helin-share-dialog-content):not(.helin-share-dialog) > .helin-share-controls > .helin-share-row { display:flex; flex-wrap:wrap; justify-content:flex-start; gap:.6rem; }
.helin-share:not(.helin-share-dialog-content):not(.helin-share-dialog) > .helin-share-controls > .helin-share-row > .helin-share-button { flex:0 0 auto; min-height:44px; font-size:15px; }
@media (max-width: 700px) {
  .helin-share:not(.helin-share-dialog-content):not(.helin-share-dialog) > .helin-share-controls > .helin-share-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; }
}
.author-box { --hs-prim: var(--helin-primary, var(--helin-share-accent, #0B6E79)); --hs-prim-dark: var(--helin-primary-dark, #074950); padding:16px 22px; margin:18px 0 10px; align-items:center; }
.author-box .author-box-avatar:not(:has(img)) { display:none; }
.author-box .author-box-meta { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:0 18px; flex:1 1 auto; min-width:0; }
.author-box .author-box-title { margin:0; font-size:22px; line-height:1.4; }
.author-box .author-box-title a { color:var(--hs-prim-dark); font-weight:700; text-decoration:underline; text-decoration-color:var(--hs-prim); text-decoration-thickness:2px; text-underline-offset:5px; }
.author-box .author-box-title a:hover { color:var(--hs-prim); }
.author-box .author-box-content { grid-column:1 / -1; grid-row:2; margin:0; }
.author-box .more-posts-button { margin:0; grid-column:2; grid-row:1; }
/* the theme forces .btn-text-1 to a bare text link with !important; this button is meant to look like a button */
.author-box .more-posts-button a.bloglo-btn { display:inline-flex !important; align-items:center; justify-content:center; box-sizing:border-box; min-height:44px; padding:8px 20px !important; border:1.5px solid var(--hs-prim) !important; border-radius:6px; background:var(--hs-prim) !important; color:#fff; font-size:15px; font-weight:700; line-height:1.3; text-decoration:none; box-shadow:none !important; white-space:nowrap; }
.author-box .more-posts-button a.bloglo-btn span { color:inherit; padding:0; }
.author-box .more-posts-button a.bloglo-btn span::before { display:none; }
.author-box .more-posts-button a.bloglo-btn:hover, .author-box .more-posts-button a.bloglo-btn:focus-visible { background:var(--hs-prim-dark) !important; border-color:var(--hs-prim-dark) !important; color:#fff; text-decoration:none; }
.single .post-nav { margin-top:12px; }
.single #comments.comments-area { margin-top:30px; }
@media (max-width: 700px) {
  .author-box { padding:14px 16px; margin:14px 0 8px; }
  .author-box .author-box-title { font-size:16px; }
  /* long author names: keep the name on one line and drop the button underneath instead of breaking the name */
  .author-box .author-box-meta { display:flex; flex-wrap:wrap; align-items:center; gap:0 12px; }
  .author-box .author-box-title { order:1; flex:1 0 auto; max-width:100%; }
  .author-box .more-posts-button { order:2; flex:0 0 auto; margin:3px 0; }
  .author-box .author-box-content { order:3; flex:0 0 100%; }
  .author-box .more-posts-button a.bloglo-btn { padding:8px 12px !important; }
  .single #comments.comments-area { margin-top:24px; }
}
