/* LWVlife #41 round 12 (2026-10-30 PT, owner directive 02:19 UTC): no words broken in the middle.
   Loaded LAST (after topstrip41.css). Layout-only: no text, links or behavior changed.
   1) Korean keeps whole words (keep-all); a word longer than the line still wraps (break-word), so no sideways scroll.
   2) Events: Public / Personal buttons stack when the text is large (A+), and a red Emergency 911 row sits at the top.
   3) Diary bottom tabs: 3 per row when the text is large or the screen is very narrow (200% zoom).
   4) Marketplace title and Lounge greeting shrink / stack on very narrow screens instead of splitting words.
   5) Events links on very narrow screens (200% zoom): one per row. */

/* 1 Korean */
html[lang="ko"] body{word-break:keep-all;overflow-wrap:break-word}
html[lang="ko"] #hdr-inner.ts-compact h1{word-break:keep-all!important}
html[lang="ko"] .aimee-banner .aimee-txt b{word-break:keep-all!important;overflow-wrap:break-word!important}

/* 2 Events */
@media (max-width:480px){
  html.bigfs .ev-mode{flex-direction:column}
  html.bigfs .ev-mode button{width:100%;flex:none;height:auto}
}
.ev-911{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;margin:8px 12px 0;padding:6px 12px;
  border-radius:12px;background:#b71c1c;color:#fff!important;font-weight:800;text-decoration:none;text-align:center;line-height:1.2}
.ev-911:focus-visible{outline:3px solid #ffb300;outline-offset:2px}

/* 3 Diary tabs */
html.bigfs .dy-nav{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:300px){
  .dy-nav{grid-template-columns:repeat(3,minmax(0,1fr))}
  .dy-nav button{min-height:48px;font-size:.74rem}
}
.dy-nav button{overflow-wrap:break-word}

/* 4 Marketplace title, Lounge greeting */
.mkp-top h2{font-size:min(1.4rem,10.5vw)}
#mkp-h{overflow-wrap:break-word}
html.bigfs .mkp-btn{padding-left:8px;padding-right:8px}
@media (max-width:300px){
  .lg-now{flex-wrap:wrap}
  .lg-now .t{flex:1 1 100%}
}

/* 5 Events links on very narrow screens (200% zoom): one button per row, link text on its own line */
@media (max-width:300px){
  #s-events .grid2{grid-template-columns:minmax(0,1fr)}
  #s-events .grid2>.btn{flex-wrap:wrap;justify-content:center;row-gap:2px}
  #s-events .grid2>.btn>span:not(.ic){flex:1 1 100%;min-width:0;text-align:center;overflow-wrap:break-word}
  .ev-911{margin:8px 8px 0;padding:6px 8px;gap:6px}
  #s-events .row-link{flex-wrap:wrap;row-gap:4px}
  #s-events .row-link>span:not(.ic):not(.chev):not(.num){order:3;flex:1 1 100%;min-width:0;overflow-wrap:break-word}
}
