/* Uzoria skin for AoWoW. Loaded last on every page, including the homepage. */
@font-face {
    font-family: "Uzoria Sans";
    src: url("../fonts/OpenSans-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --uz-bg: #140906;
    --uz-panel: #24110d;
    --uz-panel-alt: #351910;
    --uz-panel-deep: #1a0b08;
    --uz-line: #704026;
    --uz-line-bright: #a45d2a;
    --uz-gold: #f2b550;
    --uz-gold-soft: #edbe81;
    --uz-text: #f4e8d7;
    --uz-muted: #c2a993;
}

html { background: var(--uz-bg); }
body {
    min-height: 100vh;
    color: var(--uz-text);
    font-family: "Uzoria Sans", Arial, sans-serif;
    background: radial-gradient(circle at 50% 0, rgba(102, 35, 13, .42), transparent 47rem),
                linear-gradient(#1d0c08, #130805 58%, #210d08);
}
body a { color: var(--uz-gold-soft); }
body a:hover, body a:focus { color: #fff2d6; }
body :focus-visible { outline: 2px solid var(--uz-gold); outline-offset: 2px; }
body h1, body h2, body h3, body h4 { color: #ffe1b0; }

.uzoria-sitebar {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 44px;
    padding: 7px max(24px, calc((100vw - 1320px) / 2));
    border-bottom: 1px solid rgba(255, 139, 48, .25);
    background: rgba(17, 6, 5, .94);
    color: #f5d4a6;
    font: 700 12px Georgia, serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.uzoria-sitebar nav { display: flex; flex-wrap: wrap; gap: 20px; }
.uzoria-sitebar a { color: #deb082; text-decoration: none; }
.uzoria-sitebar a:hover { color: #fff2d6; }

.layout { box-sizing: border-box; width: min(1320px, calc(100% - 32px)); min-width: 0; }
.layout-inner { padding: 0; }
.header {
    height: 182px;
    margin: 16px 0 0;
    border: 1px solid var(--uz-line);
    border-bottom: 0;
    background: linear-gradient(0deg, rgba(19, 7, 5, .92), rgba(19, 7, 5, .24)),
                url("../images/uzoria/portal-masthead.webp") center 44% / cover no-repeat;
}
.header a.header-logo, body.premium-logo .header a.header-logo {
    top: 26px !important;
    left: 33px;
    width: 336px !important;
    height: 126px !important;
    background: url("../images/uzoria/uzoria-centered-logo.webp") left center / contain no-repeat !important;
    filter: drop-shadow(0 9px 18px #070201);
}
.header a.header-logo:hover { filter: brightness(1.12) drop-shadow(0 9px 18px #070201); }
.wrapper { margin-right: 0; }
.toplinks {
    top: -43px;
    right: 18px;
    height: auto;
    padding: 3px 10px;
    border: 1px solid rgba(219, 155, 94, .32);
    background: rgba(25, 10, 7, .9);
    color: var(--uz-muted);
}
.toplinks a { color: #e7b87b; }
.toptabs, .toptabs a { height: 39px; background: none; }
.toptabs {
    min-height: 39px;
    height: auto;
    border: 1px solid var(--uz-line);
    background: linear-gradient(180deg, #38190f, #25100b);
}
.toptabs dl { display: flex; flex-wrap: wrap; }
.toptabs dt { float: none; margin: 0; }
.toptabs a {
    height: 39px;
    box-sizing: border-box;
    padding: 4px 18px 3px;
    border-right: 1px solid rgba(173, 102, 49, .35);
    color: #e9c08b;
    font: 700 13px/32px Georgia, serif;
    background: none !important;
}
.toptabs a:hover, .toptabs a.open, .toptabs a.active {
    top: 0;
    color: #fff1d8 !important;
    background: linear-gradient(180deg, #6f3515, #4b1f11) !important;
}
.toptabs a span { display: none; }
.topbar {
    height: 39px;
    border: 1px solid var(--uz-line);
    border-top: 0;
    border-radius: 0;
    background: #1d0c08;
}
.topbar-buttons { line-height: 38px; }
.topbar-search { top: 7px; }
.topbar-search input, .home-search input, .listview-quicksearch input,
input[type="text"], input[type="password"], input[type="email"], textarea, select {
    box-sizing: border-box;
    border: 1px solid #87502d;
    border-radius: 2px;
    background: #1b0c09;
    color: var(--uz-text);
    font-family: "Uzoria Sans", Arial, sans-serif;
}
.topbar-search input { height: 25px; padding: 3px 26px 3px 8px; }
.main-precontents { border-color: var(--uz-line); background: #1a0b08; }
.main-contents {
    min-height: 520px;
    padding: 22px;
    border: 1px solid var(--uz-line);
    border-radius: 0;
    background: linear-gradient(145deg, #32170f, #1e0b08);
    box-shadow: 0 18px 36px #0008;
}
.breadcrumb { color: #f0cc96; }
.footer, .footer-copy { color: #b28b70; }
.footer { padding: 34px 12px 46px; }

.listview { border: 1px solid var(--uz-line); background: var(--uz-panel-deep); }
.listview-band-top, .listview-band-bottom { padding: 9px 10px; background: #35190f; color: var(--uz-text); }
.listview-mode-default, .listview-mode-div, .listview-mode-tiled, .listview-mode-calendar { background: #200e0a; }
.listview thead div { border-color: #8a4a28 #452214 #452214 #8a4a28; }
.listview thead a, .listview th a.static { background: #4a2516; color: #ffdcaa; }
.listview thead a:hover, .listview th a.static:hover { background: #673219; }
.listview-mode-default td { border-color: #57301d; background: #29120c; color: #f0dfca; }
.listview-mode-default tr:nth-child(even) td { background: #32170f; }
.listview-mode-default tbody tr:hover td { background: #4a2414; }
.grid, .infobox, .inputbox { border: 1px solid var(--uz-line); background: var(--uz-panel); }
.grid td, .grid th, .infobox td, .infobox th { border-color: #57301d; color: var(--uz-text); }
.grid tr:hover { background: #4a2414; }
.inputbox { box-sizing: border-box; max-width: 100%; padding: 22px; }
.inputbox h1 { color: #ffe1b0; font: 700 25px Georgia, serif; }
.comment, .comment0, .comment1, .comment2 { border-color: var(--uz-line); background: #2c140e; }
.comment-header { color: #e7b87b; }
.tabs, .text ul.tabs, ul.tabs { border-color: var(--uz-line); }
.tabs a, .tabs a.selected { color: #f0c895; }
.menu .menu-outer, .menu .menu-inner { border-color: var(--uz-line); background: #29120d; }
.menu a, .menu a span { color: #efc692; background-color: #29120d; }
.menu a.open, .menu a:hover, .menu a.open span, .menu a:hover span { color: #fff2d6; background-color: #57301c; }
.lightbox-overlay { background: #080201; }

body.home { min-height: 100vh; }
body.home .home-wrapper {
    box-sizing: border-box;
    width: min(1100px, calc(100% - 32px));
    min-height: 570px;
    margin: 26px auto 0;
    padding: 42px 28px 55px;
    border: 1px solid #804526;
    background: linear-gradient(180deg, rgba(19, 7, 5, .48), rgba(19, 7, 5, .96) 57%),
                url("../images/uzoria/portal-masthead.webp") center top / cover no-repeat;
    box-shadow: 0 20px 45px #0009;
}
body.home .home-logo {
    width: min(650px, 100%) !important;
    height: clamp(120px, 23vw, 236px) !important;
    margin: 8px auto 0 !important;
    background: url("../images/uzoria/uzoria-centered-logo.webp") center / contain no-repeat !important;
    filter: drop-shadow(0 12px 25px #070201);
}
.uzoria-home-intro { margin: 2px 0 24px; color: #f1d2a7; font: 17px/1.5 Georgia, serif; }
body.home .home-search form { width: min(560px, 100%); }
body.home .home-search input { height: 47px; padding: 8px 14px; color: #f4e8d7; font-size: 17px; }
body.home .home-menu { padding: 25px 0 10px; }
body.home .toplinks { top: 50px; right: 24px; }
body.home .home-oneliner { color: #e8c9a3; font-size: 14px; }
body.home .home-featuredbox { max-width: 100%; }
body.home .footer-links a { color: #edbe81; }

@media (max-width: 760px) {
    .uzoria-sitebar { align-items: flex-start; flex-direction: column; gap: 6px; padding: 10px 16px; }
    .uzoria-sitebar nav { gap: 12px; }
    .layout { width: calc(100% - 18px); }
    .header { height: 127px; margin-top: 8px; }
    .header a.header-logo, body.premium-logo .header a.header-logo { top: 14px !important; left: 12px; width: min(310px, 75%) !important; height: 98px !important; }
    .toplinks { position: static; margin: 0; border-top: 0; }
    .toptabs a { padding: 4px 10px; font-size: 12px; }
    .topbar { height: 43px; }
    .topbar-search { right: 6px; }
    .topbar-search input { width: min(43vw, 220px); }
    .main-contents { padding: 12px; overflow-x: auto; }
    .listview { overflow-x: auto; }
    .listview table { min-width: 650px; }
    body.home .home-wrapper { margin-top: 9px; padding: 28px 15px 35px; }
    body.home .toplinks { top: auto; right: auto; margin: 0 9px; }
    .uzoria-home-intro { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
