/* Only companion cards are affected; existing AI Obits styling is unchanged. */
.aiobits-card.obes-card{border-color:#78b9fa!important;background:#f8fbff!important}
.obes-card .aiobits-card-photo{background:#e9eff7}
.obes-card .aiobits-card-photo img{width:100%;height:100%;object-fit:cover;object-position:center top}
.obes-card .obes-status{background:#335269!important;color:#fff!important;display:inline-flex!important;position:absolute;top:0;left:0;z-index:2;margin:14px 0 0 14px;padding:8px 13px;font-size:11px;font-weight:700;border-radius:99px}
.obes-card .aiobits-card-body{display:flex;flex-direction:column}
.obes-card .aiobits-card-body h3{white-space:normal;overflow-wrap:anywhere;color:#052650}
.obes-card .obes-description{display:flex;gap:10px;align-items:center;margin:0 0 14px;padding:11px 12px;line-height:1.4;font-size:14px;color:#093c6d;font-style:italic;font-weight:600;background:#e1edff;border-radius:12px}.obes-info-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 22px;width:22px;height:22px;border:2px solid #2373d7;border-radius:50%;font-style:normal;color:#2373d7;font-weight:800}
.obes-card .obes-home{margin:auto 0 5px;font-size:15px;line-height:1.3;color:#15345a;font-weight:700;font-style:italic;text-align:center}
.obes-card .aiobits-card-actions{margin-top:7px}
.obes-card .aiobits-view.obes-view{background:#edba4d!important;border-radius:11px;color:#111!important;font-weight:700;font-size:13px;min-height:43px}
@media(max-width:640px){.obes-card .obes-description{font-size:14px}.obes-card .obes-home{margin-top:14px}}

/* Clyde image preview only; no styling changes to AI Obits or Fern's existing popup. */
body.obes-preview-open{overflow:hidden}
.obes-preview-shade{position:fixed;inset:0;background:rgba(0,0,0,.82);z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:26px;box-sizing:border-box}
.obes-preview-panel{position:relative;display:flex;flex-direction:column;align-items:center;gap:9px;max-width:min(900px,95vw);max-height:93vh;min-width:min(360px,90vw);box-sizing:border-box}
.obes-preview-content{display:flex;align-items:center;justify-content:center;min-height:90px;max-height:82vh;color:#fff;font:600 15px/1.5 Arial,sans-serif;text-align:center;overflow:auto}
.obes-preview-content img{display:block;width:auto;height:auto;max-width:min(900px,93vw);max-height:80vh;object-fit:contain;background:white}
.obes-preview-close{position:absolute;right:-16px;top:-18px;z-index:2;background:#fff!important;color:#111!important;border:0;border-radius:50%;font:normal 28px/1 Arial,sans-serif;width:38px;height:38px;padding:0;cursor:pointer;box-shadow:0 2px 9px #2228}
.obes-preview-original{display:inline-flex;align-items:center;justify-content:center;max-width:100%;padding:8px 13px;background:#edba4d;color:#111!important;text-align:center;text-decoration:none!important;border-radius:8px;font:700 13px/1.3 Arial,sans-serif}
@media(max-width:640px){.obes-preview-shade{padding:16px}.obes-preview-close{right:-7px;top:-20px}}


/* Return-visitor discovery: separate from the existing AI Obits results/filter design. */
.obes-recent-widget{margin:18px 0 22px;max-width:100%;display:flex;flex-direction:column;align-items:center}
.obes-recent-toggle{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;max-width:100%;padding:11px 18px;border:0;border-radius:10px;background:#e71120!important;color:#fff!important;font-size:15px;font-weight:500!important;line-height:1.4;text-align:center;cursor:pointer;box-shadow:0 3px 10px rgba(19,60,90,.16)}
.obes-recent-toggle:hover,.obes-recent-toggle:active,.obes-recent-toggle:focus-visible,.obes-recent-toggle[aria-expanded="true"]{background:#000!important;color:#fff!important}
.obes-recent-toggle:disabled{opacity:.75;cursor:default}
/* Button icons only: keep the existing centered sizing and red/black states. */
.obes-recent-toggle{gap:11px}
.obes-recent-toggle .obes-recent-icon{display:block;flex:0 0 auto;width:18px;height:18px;color:#fff!important;stroke:#fff!important}
.obes-recent-toggle .obes-recent-chevron{width:17px;height:17px}
.obes-recent-toggle .obes-recent-label{color:inherit;font:inherit;line-height:inherit}
.obes-recent-today{margin:5px 0 0;text-align:center;color:#355571;font-size:12px;font-weight:400;line-height:1.3}
.obes-recent-today[hidden]{display:none!important}
.obes-recent-hint{margin:6px 0 0;text-align:center;color:#355571;font-size:12px;font-weight:400;line-height:1.4}
.obes-recent-hint[hidden]{display:none!important}
.obes-recent-panel{width:100%;align-self:stretch;box-sizing:border-box;margin-top:13px;padding:15px;border:1px solid #b8d5ee;border-radius:12px;background:#f7fbff}
.obes-recent-panel[hidden],.obes-recent-more[hidden]{display:none!important}
.obes-recent-grid{margin:0 0 16px}
.obes-recent-bottom{display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap}
.obes-recent-progress{font-size:13px;color:#39516c}
.obes-recent-more{background:#edba4d!important;color:#131313!important;border:0;border-radius:9px;font-weight:700;font-size:14px;padding:11px 24px;cursor:pointer}
.obes-recent-more:hover,.obes-recent-more:focus-visible{background:#dbab42!important}
@media(max-width:640px){.obes-recent-toggle{padding:13px 12px;font-size:14px}.obes-recent-panel{padding:10px}.obes-recent-bottom{flex-direction:column}}

/* Recently Added is a separate view: never mix ordinary obituary listings into that view. */
#aiobits-results-target.obes-recent-hidden{display:none!important}

/* Homepage: external cards are normal grid items, sharing the 20-card maximum.
   No separate section heading or nested grid is generated. */
