/* History of Portugal — overrides loaded after core/css/style.css, the
   rulers-groups module CSS and css/map.css. */

/* Dynasties & Periods: slightly wider portrait tiles, and tabs in the
   Rulers tab styling. */
.rpp-grid { grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); }
.rpp-tab { font-family:var(--f-ui); font-size:12.5px; font-weight:600; letter-spacing:0.8px; padding:10px 18px; }

/* Rulers with no portrait: the Portugal mark stays small and centred. */
#rp-avatars .rp-avatar-portrait img[src$="portugal-mark.svg"],
.rpp-grid .rp-avatar-portrait img[src$="portugal-mark.svg"] { object-fit:contain; padding:22% 22% 45%; opacity:0.6; }

/* "Portugal in YEAR" map thumbnails: before the kingdom, the period's
   ruling powers are drawn in a dimmer gold than Portuguese territory. */
.em-map-thumb path.lin { fill:rgba(201,168,68,0.42); }
