/* The search desk and registers use the same mounted print as a visual landmark. */
.fv-lookup-spread,
.fv-records-page .fv-records-hero {
  --register-art: url("art/forever-home-landscape-mobile.webp");
}
.fv-mode-guild .fv-lookup-spread { --register-art: url("art/guilds-banner.webp"); }
.fv-lookup-spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-bottom: clamp(24px, 4vw, 48px);
  border: 1px solid #625840;
  border-radius: 6px;
  background: #19221c;
}
.forever-era .fv-lookup-spread > .fv-tabs { display: none; }
.fv-lookup-spread > .fv-hero,
.fv-records-page .fv-records-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(22px, 3.5vw, 48px);
  background:
    linear-gradient(0deg, #0d1715 0%, #101a17d9 35%, #101a1738 100%),
    var(--register-art) center 52% / cover;
  box-shadow: none;
}
.forever-era .fv-lookup-spread > .fv-hero {
  min-height: 16rem;
  border: 0;
  border-radius: 5px 0 0 5px;
}
.fv-lookup-spread .fv-hero h1,
.fv-records-page .fv-records-hero h1 {
  max-width: 22ch;
  margin: 0;
  color: #fff1d2;
  font: 500 clamp(2rem,4vw,3.8rem)/1.04 Georgia,serif;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.forever-era .fv-lookup-spread .fv-hero p,
.fv-records-page .fv-records-hero p { margin: 12px 0 0; color: #d3d9cd; }
.forever-era .fv-lookup-spread > .fv-search-panel {
  min-width: 0;
  margin: 0;
  padding: clamp(20px,3vw,42px);
  border: 0;
  border-inline-start: 1px solid #9c895743;
  border-radius: 0 5px 5px 0;
  background: #1b251e;
}
.fv-lookup-spread .fv-search-panel h2 { margin: 0 0 20px; }
.fv-lookup-spread .fv-search-panel .fv-form { grid-template-columns: minmax(7rem,.7fr) minmax(0,1.3fr); gap: 12px; }
.fv-lookup-spread .fv-form .primary { grid-column: 1 / -1; }
.fv-lookup-spread .fv-search-panel .fv-muted { max-width: 60ch; margin-block: 12px; }
.fv-lookup-spread .fv-form :is(input,select) { width: 100%; min-width: 0; }
.fv-lookup-spread .fv-autocomplete .fv-suggestions { min-width: 100%; }
.fv-records-page .fv-records-hero {
  min-height: clamp(150px,17vw,205px);
  border: 1px solid #625840;
  border-radius: 6px 6px 0 0;
  background-position: center, center 58%;
}
.fv-records-page .fv-directory-tabs { margin-top: 0; border-top: 0; }
.fv-records-page .fv-records-list { border-radius: 4px; background: #131b16; }
.fv-records-page .fv-recent-card:focus-within,
.fv-records-page .fv-recent-card:hover { box-shadow: inset 3px 0 #c6a567; }
.fv-records-page .fv-record-portrait { border-radius: 3px; }

/* Character sheets open on the identity and keep all lookup tools within reach. */
.fv-character-header { --identity-trim: #b6a170; --identity-tint: #333d2b; }
.fv-character-header[data-faction="alliance"] { --identity-trim: #87aec6; --identity-tint: #243a49; }
.fv-character-header[data-faction="horde"] { --identity-trim: #c28d70; --identity-tint: #492d28; }
.fv-character .fv-character-header {
  align-items: center;
  gap: clamp(14px,2.4vw,30px);
  padding: clamp(18px,3.1vw,38px);
  border: 1px solid #bca77b3f;
  border-inline-start: 4px solid var(--identity-trim);
  border-radius: 5px 5px 0 0;
  background: linear-gradient(110deg, var(--identity-tint), #17211d 65%, #101a17);
}
.fv-character-header > img {
  flex: none;
  border-color: var(--identity-trim);
  box-shadow: 0 0 0 3px #101714, 0 0 0 4px #bca77b4f;
}
.fv-character .fv-character-header h1 { margin: .25em 0; font: 500 clamp(1.9rem,4vw,3.5rem)/1.08 Georgia,serif; color: #fff0d4; overflow-wrap: anywhere; }
.fv-character-header > div, .fv-guild-identity { min-width: 0; }
.fv-character .fv-character-traits { font-size: .9375rem; color: #d6dacd; }
.fv-profile-tools { border: 1px solid #bca77b32; border-top: 0; background: #161e19; }
.fv-profile-tools > .fv-search-again { margin: 0; }
.fv-profile-tools .fv-search-again > summary { padding: .8rem 1.15rem; border: 0; font-size: .9375rem; }
.fv-profile-tools .fv-search-again[open] > .fv-panel { margin: 0; border: 0; border-top: 1px solid #bca77b32; }
.fv-profile-tools .fv-public-meta {
  margin: 0;
  padding: .85rem 1.15rem;
  gap: .55rem 1.25rem;
  border-top: 1px solid #bca77b26;
}
.fv-character > .fv-tabs { margin-block: 16px; }
.fv-character .paperdoll-topline { color: #e6d3ad; background: #19231e; border-bottom: 1px solid #a4915f39; }
.fv-character .paperdoll-topline > span:last-child { color: #b1bdb5; }
.fv-character .paper-slot .item { background: #0c1511a8; border-color: #bca77b28; }
.fv-character .paper-slot .item:is(:hover,:focus-within,[open]) { background: #19231dea; border-color: var(--quality); }
.fv-character .paper-empty { opacity: .8; }

.fv-guild-standard {
  display: grid;
  flex: none;
  place-items: center;
  width: 2rem;
  height: 2.45rem;
  padding-bottom: .35rem;
  clip-path: polygon(0 0,100% 0,100% 78%,50% 100%,0 78%);
  border-top: 2px solid #c5aa72;
  background: linear-gradient(90deg, #2c443b, #3c5447 48%, #30463a 49%);
  color: #f0dfb8;
  font: 500 1.15rem/1 Georgia,serif;
}
.fv-guild-profile .fv-guild-banner {
  display: flex;
  align-items: center;
  gap: clamp(14px,2.6vw,32px);
  border: 1px solid #9b875750;
  border-bottom: 2px solid #ad925e;
  border-radius: 5px 5px 0 0;
}
.fv-guild-banner .fv-guild-standard { width: clamp(42px,6.5vw,84px); height: clamp(55px,8.2vw,106px); font-size: clamp(1.7rem,4vw,3.4rem); }
.fv-guild-profile .fv-guild-facts { background: #1b251e; }
.fv-guild-profile .fv-guild-facts > div { flex: 1 1 8rem; min-width: 0; }
.fv-guild-profile .fv-guild-facts dt { color: #c1cbbf; font-size: .75rem; }
.fv-guild-profile .fv-guild-facts dd { color: #efdfbc; overflow-wrap: anywhere; }
.fv-guild-profile .fv-guild-roster { border-top: 2px solid #a79162; }
.fv-guild-profile .fv-roster-table thead th { background: #15221b; color: #c8caba; }
.fv-guild-profile .fv-roster-table td { border-color: #c1ae8126; }
.fv-guild-profile .fv-roster-table tbody tr { background: #1b241e; }
.fv-guild-profile .fv-roster-table tbody tr:nth-child(even) { background: #172019; }
.fv-guild-profile .fv-roster-table tbody tr:is(:hover,:focus-within) { background: #283126; }

@media (max-width: 800px) {
  .fv-lookup-spread { grid-template-columns: minmax(0,1fr); }
  .forever-era .fv-lookup-spread > .fv-hero { min-height: 10rem; border-radius: 5px 5px 0 0; }
  .forever-era .fv-lookup-spread > .fv-search-panel { border-inline-start: 0; border-top: 1px solid #9c895743; border-radius: 0 0 5px 5px; }
}
@media (max-width: 510px) {
  .fv-lookup-spread .fv-search-panel .fv-form { grid-template-columns: minmax(0,1fr); }
  .fv-character .fv-character-header { align-items: flex-start; }
  .fv-character-header > img { width: 52px; height: 52px; }
}
