/* Corner V5.1: mobile layout repair. Loaded after all legacy and editorial styles.
   Layout only: no private data, marketing, or reaction behavior changes. */
body.corner-comfort .story .v5-card-actions,
body.corner-comfort .corner-home-shell .corner-journal-feed .story .v5-card-actions{
  order:2!important;display:flex!important;align-items:center!important;
  justify-content:space-between!important;flex-wrap:nowrap!important;
  gap:clamp(5px,1.6vw,13px)!important;min-width:0;width:100%;
  margin-top:10px;padding:10px 14px 1px!important;border-top:1px solid #ece6e0;
}
body.corner-comfort .story .v5-card-actions .reactions{
  display:inline-flex!important;align-items:center!important;gap:0!important;
  flex:0 0 auto;min-width:0;
}
body.corner-comfort .story .v5-card-actions .reactions button[data-v5-like]{
  display:inline-flex!important;justify-content:center!important;align-items:center!important;
  gap:7px!important;flex-wrap:nowrap!important;min-width:62px!important;
  min-height:44px!important;max-width:100%;padding:7px 9px!important;
  border:1px solid #e4dcd5!important;border-radius:999px!important;
  background:#fff!important;color:#39312f!important;
  font:700 .76rem/1.2 system-ui,sans-serif!important;
  box-shadow:none!important;white-space:nowrap!important;
}
body.corner-comfort .story .v5-card-actions .reactions button[data-v5-like][aria-pressed="true"]{
  border-color:#edc5c9!important;background:#fff1f3!important;
}
body.corner-comfort .story .v5-card-actions :is(a,button[data-v5-share-post]){
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:1 1 0;min-width:0;min-height:44px!important;padding:7px 5px!important;
  border:0!important;border-radius:10px!important;background:transparent!important;
  color:#403835!important;font:650 clamp(.7rem,2.4vw,.81rem)/1.3 system-ui,sans-serif!important;
  text-align:center;text-decoration:none;white-space:nowrap;
}
body.corner-comfort .story .v5-card-actions :is(a,button[data-v5-share-post]):is(:hover,:focus-visible){
  background:#f2eeea!important;color:#161312!important;
}
body.corner-comfort .v5-card-actions :is(a,button):focus-visible,
body.corner-comfort .post-actions button:focus-visible{outline:3px solid #325da7;outline-offset:2px}
body.corner-comfort .v5-card-actions .v5-like-icon,
body.corner-comfort .post-actions .reactions .v5-like-icon{
  display:block!important;flex:0 0 20px!important;width:20px!important;
  height:20px!important;max-width:20px!important;max-height:20px!important;
  object-fit:contain!important;margin:0!important;vertical-align:middle!important;
}
body.corner-comfort .v5-card-actions .reactions button span,
body.corner-comfort .post-actions .reactions button span,
body.corner-comfort .v5-comment-like span{
  display:inline-block;min-width:1ch;flex:none;margin:0!important;
  font:650 .78rem/1.2 system-ui,sans-serif!important;
  font-variant-numeric:tabular-nums;color:#514843!important;
}
body.corner-comfort .v5-card-actions button[aria-pressed="true"] span,
body.corner-comfort .post-actions button[aria-pressed="true"] span{
  color:#a22c43!important;
}
/* One stable heart; the uploaded particle SVG is masked in the centre,
   preventing a second heart from obscuring the icon/count during a tap. */
body.corner-comfort .v5-heart-burst{isolation:isolate}
body.corner-comfort img.v5-heart-particles{
  position:absolute;z-index:3;pointer-events:none;
  top:50%;left:50%;width:76px!important;height:76px!important;
  max-width:none!important;max-height:none!important;
  transform:translate(-50%,-50%)!important;
  -webkit-mask-image:radial-gradient(circle at center,transparent 0 27%,#000 40%);
  mask-image:radial-gradient(circle at center,transparent 0 27%,#000 40%);
  object-fit:contain!important;filter:none!important;
}
body.corner-comfort .v5-heart-burst:after{display:none!important}

/* The story body now moves directly into compact reactions and conversation. */
body.corner-comfort .post-article .post-body{
  margin:clamp(18px,3vw,28px) auto 0!important;
  font-size:clamp(.99rem,1.65vw,1.14rem);line-height:1.75;
}
body.corner-comfort .post-article .post-body>*:last-child{margin-bottom:0!important}
body.corner-comfort .post-article .post-actions{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;
  align-items:start!important;margin:23px 0 0!important;
  padding:18px 0 17px!important;border-top:1px solid #e3ded8;
  border-bottom:1px solid #e3ded8;
}
body.corner-comfort .post-article .post-actions .eyebrow{
  margin:0 0 10px!important;font-size:.69rem!important;line-height:1.45;
}
body.corner-comfort .post-article .post-actions .reactions{
  display:flex!important;align-items:center!important;
  flex-wrap:wrap!important;gap:8px!important;
}
body.corner-comfort .post-article .post-actions .reactions button{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 auto;gap:7px!important;min-height:44px!important;
  min-width:58px!important;max-width:none;padding:8px 11px!important;
  border-radius:999px!important;font-size:1rem!important;
  background:#fff;border:1px solid #e1dbd6;
}
body.corner-comfort .post-article .post-actions .reactions button[aria-pressed="true"]{
  background:#fff0f2!important;border-color:#efc3ca!important;
}
body.corner-comfort .post-article .post-share{
  display:flex!important;flex-wrap:wrap!important;gap:9px 16px!important;
  align-items:center!important;justify-content:flex-start!important;
  padding:0!important;margin:0!important;
}
body.corner-comfort .post-article .post-share button{
  min-height:44px!important;max-width:100%;padding:8px 2px!important;
  font-size:.8rem!important;
}
body.corner-comfort .post-article .comments{
  margin:22px 0 28px!important;padding-top:20px!important;
  border-top:0!important;scroll-margin-top:90px;
}
body.corner-comfort .post-article .comments-title{margin:0 0 13px!important}
body.corner-comfort .post-article .v5-comments-head{
  display:flex;align-items:center;justify-content:space-between;gap:7px 12px;
}
body.corner-comfort .post-article .v5-comments-head h2{
  margin:5px 0 0!important;line-height:1.2!important;
  font-size:clamp(1.25rem,3.2vw,1.65rem)!important;
}
body.corner-comfort .post-article .v5-comments-head button{
  margin:0;flex:0 0 auto;min-height:44px;padding:7px 9px;
  font-size:.75rem;
}
body.corner-comfort .v5-comment-status:empty{display:none!important}
body.corner-comfort .post-article .v5-threads{
  display:grid;gap:12px;min-height:0!important;
  padding:0!important;margin:12px 0!important;
}
body.corner-comfort .post-article .empty-comments{
  margin:8px 0 13px;color:#716961;font-size:.89rem;line-height:1.55;
}
body.corner-comfort .post-article .comment-gate{
  padding:16px!important;margin-top:12px!important;
  border-radius:14px!important;scroll-margin-bottom:155px;
}
body.corner-comfort .post-article .comment-gate p{line-height:1.55}
body.corner-comfort .post-article #comment-form{
  scroll-margin-top:110px;scroll-margin-bottom:155px;
}
body.corner-comfort .post-article #comment-form textarea{
  min-height:106px;font-size:16px;
}
body.corner-comfort .v5-comment-actions button{
  min-height:44px!important;padding:9px 8px!important;
}

/* Latest remains one hero card; do not reserve a second empty column/placeholder. */
body.corner-comfort .corner-home-shell .corner-journal-layout:not(.has-spotlight){
  grid-template-columns:minmax(0,1fr)!important;
}
body.corner-comfort .corner-home-shell .corner-journal-feed .story .story-top{
  margin-top:12px!important;margin-bottom:8px!important;
}
body.corner-comfort .corner-home-shell .corner-journal-feed .story .story-copy{
  padding-inline:clamp(15px,3vw,22px)!important;
}
body.corner-comfort .corner-home-shell .corner-journal-feed .story .story-count{
  margin:9px 0 0!important;
}
body.corner-comfort .corner-home-shell .corner-journal-feed .story .story-bottom{
  margin-top:9px!important;padding:0!important;border:0!important;
}
body.corner-comfort .corner-home-shell .corner-journal-feed .story .card-media{
  display:block!important;padding:0!important;overflow:hidden!important;
  width:100%!important;min-height:0!important;margin:0!important;
  border:0!important;border-radius:0!important;
  background:#252525!important;
}
body.corner-comfort .corner-home-shell .corner-journal-feed .story .card-media :is(img,video){
  display:block!important;width:100%!important;height:100%!important;
  object-fit:cover!important;max-height:none!important;background:transparent!important;
}
@media(max-width:650px){
 body.corner-comfort .corner-home-shell .corner-journal-feed .stories>.story:nth-child(n){
   width:calc(100% + 20px)!important;max-width:calc(100% + 20px)!important;
   margin-inline:-10px!important;border-radius:17px!important;
 }
 body.corner-comfort .corner-home-shell .corner-journal-feed .story .card-media{
   aspect-ratio:16/10!important;border-radius:16px 16px 0 0!important;
 }
 body.corner-comfort .corner-home-shell .corner-journal-feed .story .story-excerpt{
   font-size:.82rem!important;line-height:1.55!important;
 }
 body.corner-comfort .post-article .post-actions .reactions{gap:7px!important}
 body.corner-comfort .post-article .post-actions .reactions button{
   min-height:44px!important;padding:8px 10px!important;
 }
}
@media(max-width:355px){
 body.corner-comfort .story .v5-card-actions,
 body.corner-comfort .corner-home-shell .corner-journal-feed .story .v5-card-actions{
   gap:3px!important;padding-inline:9px!important;
 }
 body.corner-comfort .story .v5-card-actions :is(a,button[data-v5-share-post]){
   font-size:.7rem!important;padding-inline:2px!important;
 }
 body.corner-comfort .post-article .post-actions .reactions{gap:5px!important}
 body.corner-comfort .post-article .post-actions .reactions button{
   min-width:54px!important;padding-inline:8px!important;
 }
}
/* Allow every comment input to scroll above the floating dock and iPhone toolbar. */
@media(max-width:900px){
 html{scroll-padding-bottom:175px}
 /* Main content must not reserve a second dock-height after About.
    The dock retreats at the footer, and safe-area space belongs to the footer. */
 body.corner-comfort:has(.corner-public-header) #content.shell{
   padding-bottom:clamp(8px,2vw,16px)!important;
 }
 body.corner-comfort:has(.corner-public-header) .site-footer{
   padding-bottom:calc(40px + env(safe-area-inset-bottom,0px))!important;
 }
 body.corner-comfort .post-article :is(#conversation,#comment-form,.comment-gate,.v5-reply-form){
   scroll-margin-bottom:175px;
 }
 body.corner-comfort .corner-public-header .category-tabs.corner-rail.v51-dock-hidden,
 body.corner-comfort .corner-public-header .category-tabs.corner-rail.v51-dock-hidden:is(:hover,:focus-within){
   transform:translate(-50%,calc(100% + 55px))!important;
   opacity:0!important;visibility:hidden!important;pointer-events:none!important;
 }
 body.corner-comfort .corner-public-header .category-tabs.corner-rail{
   transition:transform .2s ease,opacity .2s ease!important;
 }
}
@media(prefers-reduced-motion:reduce){
 body.corner-comfort .corner-public-header .category-tabs.corner-rail{
   transition:none!important;
 }
 body.corner-comfort img.v5-heart-particles{display:none!important}
}
@media(forced-colors:active){
 body.corner-comfort .v5-card-actions .reactions button[data-v5-like],
 body.corner-comfort .post-article .post-actions .reactions button{
   border:1px solid ButtonText!important;background:ButtonFace!important;color:ButtonText!important;
 }
}