/* DUR artwork gallery.  One frame, five looks (body.skin-*), each with the
   feeling of an artwork site of its time, not a copy of one:
   graphite  grey bars, black-grey box heads (2006–2008)
   cobalt    grey head, blue bars and box heads (2003–2008)
   ochre     grey head, ochre box heads (2004–2005)
   dawn      blue head with a white logo plate (2001–2002)
   horizon   dark blue head with tabs, light boxes, star labels (2009–2016)
   No images: gradients and borders only. */

body {
    --page: #c9c9d0;
    --head: linear-gradient(#f4f4f6, #d8d8de);
    --head-fg: #111;
    --nav: linear-gradient(#8a8a8f, #5c5c62);
    --nav-fg: #fff;
    --boxhead: linear-gradient(#9a9aa0, #6e6e74);
    --boxhead-fg: #fff;
    --box: #fff;
    --main: #fff;
    --line: #b8b8c0;
    --link: #2a5a8a;
    --title: #1d4f80;
    --tab: #dcdce2;
    --tab-sel: #fff;
    --label: #e8453c;
    --bar: linear-gradient(#5d8fc4, #2f629c);
    --sel: #dfe6ee;
    --emblem: #222;
    margin: 0;
    background: #c9c9d0;
    background: var(--page);
    color: #222;
    font: 12px/1.35 Verdana, "DejaVu Sans", "Bitstream Vera Sans", sans-serif;
}
body.skin-cobalt {
    --nav: linear-gradient(#5f8fc8, #2b5c97);
    --boxhead: linear-gradient(#6f9ccf, #34679f);
    --sel: #cfe0f3;
    --emblem: #2b5c97;
}
body.skin-ochre {
    --nav: linear-gradient(#9b9b9b, #6d6d6d);
    --boxhead: linear-gradient(#c79a45, #9a6f22);
    --label: #d24a2a;
    --sel: #f3e6c9;
    --bar: linear-gradient(#c9a050, #9a6f22);
    --emblem: #9a6f22;
}
body.skin-dawn {
    --page: #e8ecf2;
    --head: linear-gradient(#4b84c4, #2d63a3);
    --head-fg: #fff;
    --nav: linear-gradient(#2d63a3, #24548c);
    --boxhead: linear-gradient(#4b84c4, #2d63a3);
    --tab: #c9d8ea;
    --sel: #d6e4f4;
    --emblem: #2d63a3;
    font-size: 11px;
}
body.skin-horizon {
    --page: #fff;
    --head: linear-gradient(#4c6e96, #3b5b80);
    --head-fg: #fff;
    --nav: #3b5b80;
    --boxhead: linear-gradient(#fdfdfd, #e9ecf0);
    --boxhead-fg: #333;
    --line: #d2d6dc;
    --tab: #eef0f3;
    --sel: #eef2f7;
    --emblem: #fff;
}

a { color: #2a5a8a; color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }

#g-top { background: #eee; border-bottom: 1px solid #ccc; padding: 2px 8px; font-size: 10px; }
#g-top a { margin-right: 1.5em; }

#g-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    min-height: 82px; padding: 8px 12px 6px; background: #e6e6ea; background: var(--head); color: #111; color: var(--head-fg);
    border-bottom: 1px solid #b8b8c0; border-bottom: 1px solid var(--line);
}
#g-logo { display: flex; align-items: center; color: #111; color: var(--head-fg); text-decoration: none; }
#g-logo:hover { text-decoration: none; }
#g-words { display: inline-block; vertical-align: middle; }
#g-name { display: block; margin-bottom: 3px; }
#g-slogan { display: block; }
#g-emblem {
    display: inline-block; vertical-align: middle;
    width: 64px; height: 64px; border-radius: 50% 50% 46% 54%;
    background: #222; background: radial-gradient(circle at 35% 35%, #fff 0 9%, transparent 10%), var(--emblem);
    box-shadow: inset -6px -6px 0 rgba(0,0,0,.25);
    margin-right: 8px;
}
#g-name { font: bold 26px/1 "Trebuchet MS", "DejaVu Sans", sans-serif; letter-spacing: 1px; text-transform: uppercase; }
#g-slogan { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; }
#g-status { float: right; text-align: right; font-weight: bold; font-size: 11px; }
body.skin-dawn #g-logo { background: #fff; color: #2d63a3; padding: 6px 12px; border: 1px solid #1f4b7f; }
body.skin-dawn #g-slogan { color: #2d63a3; }
body.skin-horizon #g-emblem { background: radial-gradient(circle at 35% 35%, #3b5b80 0 9%, transparent 10%), #fff; box-shadow: none; }
body.skin-horizon #g-head { min-height: 70px; border: 0; }

#g-nav {
    display: flex; justify-content: flex-end; flex-wrap: wrap; text-align: right;
    margin: 0; padding: 3px 12px; list-style: none; background: #737378; background: var(--nav);
}
#g-nav a, #g-nav button { color: #fff; color: var(--nav-fg); font-weight: bold; background: none; border: 0; padding: 0; cursor: pointer; }
#g-nav li { display: inline-block; margin-left: 1.6em; }
#g-nav form { margin: 0; }
body.skin-horizon #g-nav { justify-content: flex-start; text-align: left; padding: 0 12px; }
body.skin-horizon #g-nav li { margin: 0 4px 0 0; }
body.skin-horizon #g-nav li { background: #4d6e94; border: 1px solid #6f8fb4; border-bottom: 0; border-radius: 3px 3px 0 0; padding: 3px 14px; }
body.skin-horizon #g-nav li:first-child { background: #fff; }
body.skin-horizon #g-nav li:first-child a { color: #3b5b80; }

/* The content comes first in the page (text browsers show it first);
   the grid puts the menus left and right.  Without grid (Dillo, NetSurf)
   everything stands one below the other. */
#g-cols { display: grid; grid-template-columns: 170px minmax(0, 1fr) 170px;
    grid-template-areas: "left main right"; gap: 10px; padding: 10px 6px; align-items: start; }
#g-left { grid-area: left; }
#g-main { grid-area: main; }
#g-right { grid-area: right; }
@media (max-width: 760px) {
    #g-cols { grid-template-columns: 1fr; grid-template-areas: "main" "left" "right"; }
}
.g-skip { position: absolute; left: -10000px; }
.g-skip a:focus { position: static; }
.g-cats .g-group { margin-top: .4em; font-weight: bold; color: #555; font-size: 10px; text-transform: uppercase; }
.g-cats .g-group ul { margin: 0; padding: 0 0 0 .4em; list-style: none; text-transform: none; font-size: 12px; }

.g-box { background: #fff; background: var(--box); margin-bottom: 10px; border: 1px solid #b8b8c0; border: 1px solid var(--line); }
.g-box-head {
    display: flex; justify-content: space-between; padding: 2px 6px;
    background: #848489; background: var(--boxhead); color: #fff; color: var(--boxhead-fg);
    font-weight: bold; font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
}
body.skin-horizon .g-box-head { text-transform: none; font-size: 12px; border-bottom: 1px solid #b8b8c0; border-bottom: 1px solid var(--line); }
.g-min { font-weight: normal; opacity: .8; }
.g-box-body { margin: 0; padding: 4px 6px; list-style: none; }
.g-cats li a { display: block; padding: 1px 2px; font-weight: bold; }
body.skin-horizon .g-cats li a { font-weight: normal; }
.g-cats li.sel { background: #dfe6ee; background: var(--sel); }
.g-links li::before { content: "▪ "; color: #888; }
.g-small { font-size: 10px; }
.g-skin { display: block; }

#g-main { background: #fff; background: var(--main); border: 1px solid #b8b8c0; border: 1px solid var(--line); padding: 0 8px 8px; min-height: 30em; }
.g-tabs { display: flex; margin: 0 -8px 6px; padding: 6px 8px 0; list-style: none; background: #c9c9d0; background: var(--page); }
.g-tabs li { display: inline-block; margin-right: 2px; }
.g-tabs li a { display: inline-block; padding: 3px 18px 3px 10px; background: #dcdce2; background: var(--tab); color: #2a5a8a; color: var(--link);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%); }
.g-tabs li.sel a { background: #fff; background: var(--tab-sel); font-weight: bold; color: #111; }
body.skin-dawn .g-tabs li a, body.skin-horizon .g-tabs li a { clip-path: none; padding: 2px 12px; border: 1px solid #b8b8c0; border: 1px solid var(--line); border-bottom: 0; }

.g-row { display: grid; grid-template-columns: 124px minmax(0, 1fr) 190px; gap: 8px; align-items: center;
    padding: 5px 0; border-bottom: 1px solid #e3e3e8; }
.g-thumb img { display: block; border: 1px solid #aaa; max-width: 120px; height: auto; }
.g-title { color: #1d4f80; color: var(--title); font-weight: bold; font-size: 13px; }
.g-version { margin-left: .3em; }
.g-cat { color: #666; }
.g-label { display: inline-block; margin-left: .6em; padding: 0 4px; background: #e8453c; background: var(--label); color: #fff;
    font-size: 9px; font-style: italic; font-weight: bold; line-height: 13px; vertical-align: middle; }
body.skin-horizon .g-label { background: #444; border-radius: 7px; font-style: normal; text-transform: uppercase; padding: 0 6px 0 3px; }
body.skin-horizon .g-label::before { content: "★ "; color: #fc3; }
.g-score { font-size: 11px; }
.g-bar { display: inline-block; width: 54px; height: 7px; border: 1px solid #567; background: #fff; vertical-align: middle; }
.g-bar span { display: block; height: 100%; background: #4677b0; background: var(--bar); }
.g-more::before { content: "»"; display: inline-block; width: 9px; height: 9px; margin-right: 3px; border: 1px solid #2a5a8a; border: 1px solid var(--link);
    font-size: 8px; line-height: 8px; text-align: center; }
.g-pages { text-align: center; }
.g-pages a, .g-pages strong { margin: 0 .4em; }
.g-filter { margin-top: 12px; padding: 6px; border: 1px solid #b8b8c0; border: 1px solid var(--line); background: #f6f6f8; }
.g-filter label { margin-right: 1em; }
.g-empty { padding: 2em 0; text-align: center; color: #666; }

.g-item h1 { font-size: 20px; margin: .4em 0 .6em; }
.g-item h2, .g-comments-head { font-size: 12px; margin: 1.2em 0 .3em; }
.g-item-top { display: grid; grid-template-columns: 130px minmax(0, 1fr) 170px; gap: 10px; align-items: start; }
@media (max-width: 760px) { .g-item-top, .g-row { grid-template-columns: 1fr; } }
.g-shots img { display: block; border: 1px solid #aaa; }
.g-zoom { display: block; margin-bottom: 6px; font-size: 9px; }
.g-zoom::before { content: "⚲ "; }
.g-facts th { text-align: left; font-weight: normal; padding: 1px 1em 1px 0; vertical-align: top; }
.g-type { font-size: 15px; font-weight: bold; }
.g-vote { display: inline; margin-left: .5em; }
.g-vote button { background: none; border: 0; color: #2a5a8a; color: var(--link); cursor: pointer; padding: 0 .3em; }
.g-vote button::before { content: "» "; }
.g-vote button.sel { font-weight: bold; text-decoration: underline; }
.g-author { border: 1px solid #aaa; padding: 6px; font-size: 11px; }
.g-avatar { float: left; width: 40px; height: 40px; margin-right: 6px; background: linear-gradient(#ddd, #999); }
.g-install { margin-top: 1em; padding: 8px; background: #f3f3f6; border: 1px solid #b8b8c0; border: 1px solid var(--line); }
.g-apt, .g-ocs { display: inline-flex; align-items: center; margin: 0 8px 6px 0; padding: 4px 10px;
    border: 1px solid #7a7a7a; border-radius: 3px; background: linear-gradient(#fff, #ddd); color: #222; font-weight: bold; }
.g-apt-icon { width: 18px; height: 18px; margin-right: 6px; background: linear-gradient(135deg, #e0a030, #b06010); border-radius: 2px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.g-downloads { margin: .3em 0; padding: 0; list-style: none; }
.g-comment { margin: 8px 0; padding: 6px 8px; background: #eef0f3; border: 1px solid #b8b8c0; border: 1px solid var(--line); }
.g-reply { margin-left: 2em; background: #f7f8fa; }
.g-comment-head { font-size: 11px; }
.g-comment-form textarea, .g-comment-form input { width: 100%; max-width: 40em; box-sizing: border-box; }
.g-error { color: #b22; font-weight: bold; }
.g-shot-edit { display: inline-block; margin-right: 1em; }

#g-foot { padding: 1em; text-align: center; color: #666; font-size: 10px; }

/* comment actions (report, hide) and notices */
.g-inline { display: inline; margin: 0; }
.g-comment-actions { text-align: right; }
.g-comment-actions button { font-size: 0.9em; }
.g-messages { list-style: none; padding: 4px 8px; margin: 0 0 8px; border: 1px solid #9c9; background: #eef8ee; }
