/* WEB-1204-nation-emblem 12/04：放遊戲定版國徽（洛恩＝藍底銀白立獅、卡隆＝紅底金龍；遊戲正式圓徽 b256，透明底）。
   國徽是裝飾，國名都已是文字，圖一律 alt 留空。 */

/* 首頁國家區「兩大國度」：大國徽壓在國家圖右下緣（桌機 128px、手機 88px），下緣伸進文字區 44px；
   標題前放 24px 小國徽。標題只在大國徽實際佔到的高度讓位（浮動墊塊），寬螢幕英文標題可一行放下。 */
.countries .nation figure { position: relative; overflow: visible; }
.nation-emblem { position: absolute; z-index: 2; right: clamp(18px, 2.4vw, 40px); bottom: -44px; width: 128px; height: 128px;
  filter: drop-shadow(0 6px 14px #000000b3) drop-shadow(0 0 1px #000); pointer-events: none; }
.nation-emblem picture, .countries .nation .nation-emblem img { display: block; width: 100%; height: 100%; }
/* 墊塊高＝國徽伸進文字區的 44px，減掉文字區上內距（story.css .nation-copy 的 clamp）與標題行高上方留白約 14px；
   寬螢幕算出來是 0，標題不讓位；窄的時候只讓第一行。寬＝國徽寬＋間隔 */
.countries .nation-copy::before { content: ""; float: right; width: 136px; height: max(0px, calc(30px - clamp(20px, 2.6vw, 44px))); }
/* story.css 的 .nation picture 是滿版（寬高 100%），小國徽要蓋掉；行內排在國名第一行 */
.countries .nation .nation-mark-wrap { display: inline-block; width: 24px; height: 24px; margin-right: 10px; vertical-align: -0.08em; line-height: 0; }
.nation-mark { display: block; width: 24px; height: 24px; filter: drop-shadow(0 1px 2px #000c); }
/* 761～1023px 兩欄卡片窄，英文標題第一行讓位後放不下：文字區上內距加到 44px，標題整個落在國徽下方，不讓位 */
@media (min-width: 761px) and (max-width: 1023px) {
  .countries .nation-copy { padding-top: 44px; }
  .countries .nation-copy::before { content: none; }
}
@media (max-width: 760px) {
  .nation-emblem { width: 88px; height: 88px; right: 16px; }
  .countries .nation-copy::before { width: 92px; }
  .countries .nation .nation-mark-wrap, .nation-mark { width: 22px; height: 22px; }
  .countries .nation .nation-mark-wrap { margin-right: 8px; }
}

/* MKT-1204 國家卡修正（製作人 12/04 深夜答 board1204_nation_banner：N1 A 純城景；頁上「直接修」細項）。附加在 css/dv-nation.css 檔尾。 */
/* 1. 圖上方約 18px 空白暗帶：site.css:282 舊版 .nation{margin-top:20px;padding-top:18px} 殘留到首頁國家卡 */
section.countries .nation { margin-top: 0; padding-top: 0; }
/* 2. 國徽只留一個：拿掉國名前的小國徽；圖上大國徽縮小（桌機 128→104、手機 88→64），伸進文字區也縮短 */
section.countries .nation .nation-mark-wrap { display: none; }
section.countries .nation-emblem { width: 104px; height: 104px; bottom: -32px; }
section.countries .nation-copy::before { width: 112px; height: 0; }
@media (max-width: 760px) {
  section.countries .nation-emblem { width: 64px; height: 64px; right: 14px; bottom: -22px; }
  section.countries .nation-copy::before { width: 72px; height: 8px; }
}
/* 3. 「立場」文字一兩個字落單：中文只在標點後換行（例「守住王權與騎士傳統，／誓言由王國來扛」）；單段放不下時才在字間斷 */
section.countries .nation dd { word-break: keep-all; overflow-wrap: anywhere; }

/* 製作人 12/04 答 N2：手機國家圖改 16:9（營銷線 fix_nation_169.css，加 section.countries 前綴以免輸權重） */
@media (max-width: 760px) { section.countries .nation figure { aspect-ratio: 16 / 9; } }
/* 協調線 12/04：英文「立場」最後一行單字落單（412 寬 oath.） */
html:lang(en) section.countries .nation dd { text-wrap: pretty; }
