.cgj-share {
    container: cgj-sharing / inline-size;
    --cgj-wine: #67143f;
    box-sizing: border-box;
    width: 100%;
    max-width: 48rem;
    margin: 2.5rem auto 1.5rem;
    padding: clamp(.85rem, 3vw, 1.65rem);
    border-block: 1px solid #c3aaae;
    background: #fff9f0;
    color: #3c2530;
    font: 1rem/1.45 "Source Sans 3", system-ui, sans-serif;
    text-align: start;
}
.cgj-share *, .cgj-share *::before { box-sizing: border-box; }
.cgj-share [hidden] { display: none !important; }
.cgj-share h2 {
    display: flex; align-items: center; gap: .55rem;
    margin: 0 0 1rem; color: var(--cgj-wine);
    font: 500 clamp(1.45rem, 4vw, 1.9rem)/1.2 Lora, Georgia, serif;
}
.cgj-share h2::before {
    content: ""; display: block; width: .8em; height: .48em; flex: none;
    border: 1.5px solid #647446; border-radius: 85% 0 85% 0;
    background: linear-gradient(150deg, transparent 46%, #647446 48% 52%, transparent 54%);
    transform: rotate(-13deg);
}
.cgj-share .cgj-share-choices {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem;
}
.cgj-share .cgj-share-choices a {
    display: flex; align-items: center; gap: .58rem; min-width: 0; min-height: 48px;
    padding: .42em .74em; border: 1px solid #c4acae; border-radius: .55rem;
    color: var(--cgj-wine); background: #fffcf9; text-decoration: none;
    font: 600 1rem/1.2 "Source Sans 3", system-ui, sans-serif; overflow-wrap: anywhere;
}
.cgj-share .cgj-share-choices small { display: block; font-size: .75rem; font-weight: 400; color: #624c56; }
.cgj-share .cgj-share-choices .ahfb-svg-iconset { display: inline-flex; flex: none; }
.cgj-share .cgj-share-choices svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.cgj-share .cgj-share-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .75rem; margin-top: .65rem; }
.cgj-share .cgj-share-tools :is(a,button) {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .35em .85em;
    border: 1px solid var(--cgj-wine); border-radius: 2rem; color: var(--cgj-wine); background: transparent;
    text-decoration: none; font: 600 .95rem/1.25 "Source Sans 3", system-ui, sans-serif; cursor: pointer;
}
.cgj-share .cgj-share-tools a { color: #fff9f0; background: var(--cgj-wine); }
.cgj-share .cgj-share-choices a:hover, .cgj-share .cgj-share-tools :is(a,button):hover { background: #f2e4e5; color: #501030; text-decoration: underline; }
.cgj-share :is(a,button,textarea,input):focus-visible { outline: 3px solid var(--cgj-wine); outline-offset: 2px; }
.cgj-share .cgj-share-fallback { display: none; margin-top: .65rem; }
.cgj-share .cgj-share-fallback:target, .cgj-share .cgj-share-fallback.is-active { display: block; }
.cgj-share label { display: block; font-weight: 600; margin-bottom: .25rem; }
.cgj-share input, .cgj-share textarea { width: 100%; max-width: 100%; padding: .5rem; color: #34272e; background: white; border: 1px solid #866e79; font: inherit; }
.cgj-share .cgj-share-fallback p, .cgj-share .cgj-share-status { margin: .4rem 0 0; }
.cgj-share .cgj-share-status:empty { display: none; }
@container cgj-sharing (min-width: 31rem) {
    .cgj-share .cgj-share-choices { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@container cgj-sharing (min-width: 39rem) {
    .cgj-share .cgj-share-choices { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@container cgj-sharing (max-width: 20rem) {
    .cgj-share .cgj-share-choices a { font-size: .91rem; gap: .35rem; padding-inline: .4em; }
}
@container cgj-sharing (max-width: 14rem) {
    .cgj-share .cgj-share-choices { grid-template-columns: minmax(0,1fr); }
}
@media print { .cgj-share { display: none; } }
