.s2base-history-ais{margin:28px 0;border:1px solid #dbe5e9;border-radius:16px;background:#fff;color:#153c49;overflow:hidden;box-shadow:0 4px 18px #153c4908}
.s2base-history-ais *{box-sizing:border-box}
.s2base-history-ais [hidden]{display:none!important}
.s2base-history-ais__heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;background:#fff}
.s2base-history-ais__eyebrow{font-size:10px;font-weight:750;letter-spacing:.12em;color:#587881}
.s2base-history-ais__heading h3{margin:4px 0 0;font-size:21px;line-height:1.3;color:#153c49}
.s2base-history-ais__status{font-size:11px;line-height:1.5;color:#657982;text-align:right}
.s2base-history-ais__status:not(:empty)::before{content:'';display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:#87959c}
.s2base-history-ais__status.is-recent::before{background:#278263}
.s2base-history-ais__empty{padding:38px 22px;background:#f3f7f8;border-top:1px solid #e1e9ed;color:#526b76;font-size:14px;line-height:1.7}
.s2base-history-ais__empty a{display:block;width:fit-content;margin-top:12px;color:#153c49;font-weight:650}
.s2base-history-ais__stage{display:grid;grid-template-columns:minmax(0,1fr);border-top:1px solid #e1e9ed}
.s2base-history-ais__stage.is-open{grid-template-columns:minmax(0,1fr) 340px}
.s2base-history-ais__map{height:100%;min-height:400px;min-width:0;background:#e7eef0;z-index:0}
.s2base-history-ais__card{min-width:0;padding:14px;background:#fff;border-left:1px solid #dbe5e9}
.s2base-history-ais__card-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}
.s2base-history-ais__card h4{font-size:19px;line-height:1.3;margin:0;color:#153c49;overflow-wrap:anywhere}
.s2base-history-ais__card-heading button{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;padding:0;border:1px solid #dbe5e9;border-radius:50%;background:#fff;color:#153c49;font-size:23px;line-height:1;cursor:pointer}
.s2base-history-ais__photo{position:relative;margin:0 0 12px;border-radius:8px;overflow:hidden;background:#edf3f5}
.s2base-history-ais__photo>img:not(.s2base-history-ais__watermark){display:block;width:100%;height:94px;object-fit:cover}
.s2base-history-ais__photo figcaption{padding:4px 6px;font-size:9px;line-height:1.4;background:#f3f7f8;color:#526b76;overflow-wrap:anywhere}
.s2base-history-ais__watermark{position:absolute;right:6px;top:66px;width:34px;max-height:24px;object-fit:contain}
.s2base-history-ais__facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;margin:0}
.s2base-history-ais__facts dt{font-size:10px;line-height:1.4;font-weight:500;color:#687e87}
.s2base-history-ais__facts dd{margin:1px 0 0;font-size:12px;line-height:1.4;font-weight:600;color:#153c49;overflow-wrap:anywhere}
.s2base-history-ais__received{margin:12px 0 0;font-size:10px;line-height:1.5;color:#687e87}
.s2base-history-ais__actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:8px;margin-top:12px}
body .s2base-history-ais .s2base-history-ais__actions a{display:flex;justify-content:center;align-items:center;min-height:40px;padding:8px;border-radius:7px;background:#153c49;color:#fff;text-decoration:none;text-align:center;font-size:11px;line-height:1.4;font-weight:650}
body .s2base-history-ais .s2base-history-ais__actions a[data-ais-action=sale]{background:#edf3f5;color:#153c49}
.s2base-history-ais :is(a,button,[role=button]):focus-visible{outline:3px solid #3c91aa;outline-offset:2px}
@media(max-width:767px){
 .s2base-history-ais{margin:22px 0;border-radius:12px}
 .s2base-history-ais__heading{align-items:flex-start;flex-direction:column;gap:7px;padding:15px}
 .s2base-history-ais__heading h3{font-size:19px}
 .s2base-history-ais__status{text-align:left}
 .s2base-history-ais__stage.is-open{grid-template-columns:minmax(0,1fr)}
 .s2base-history-ais__map{height:280px;min-height:280px}
 .s2base-history-ais__card{border-left:0;border-top:1px solid #dbe5e9;padding:15px}
 .s2base-history-ais__photo>img:not(.s2base-history-ais__watermark){height:120px}
 .s2base-history-ais__watermark{top:90px}
 .s2base-history-ais__facts{gap:11px 12px}
 .s2base-history-ais__facts dt{font-size:11px}
 .s2base-history-ais__facts dd{font-size:13px}
 body .s2base-history-ais .s2base-history-ais__actions a{min-height:44px;font-size:12px}
}

.s2base-history-ais__status-label,.s2base-history-ais__status time,.s2base-history-ais__age{display:block}
.s2base-history-ais__age.is-stale{color:#87531f;font-weight:650}
.s2base-history-ais__facts small{display:block;margin-top:4px;font-size:10px;line-height:1.5;font-weight:400;color:#687e87}
.s2base-history-ais__received time,.s2base-history-ais__received [data-ais-age]{display:block}

/* The mobile Ship2Buy profile stack centers its children. Keep the AIS section
   at the available content width, independent of the hidden/open details card. */
@media (max-width: 767px) {
  body.page-route-entity-node-canonical.page-node-type-schepen-scr-feed:not(.s2b-base):not(.s2b-work) .s2b-profile-stack > .s2base-history-ais {
    width: 100%;
    min-width: 0;
  }
}
