/*
Theme Name: Skynet 2009 Wide
Theme URI: https://fallout.czech-games.net/
Author: Fallout Skynet / OpenAI adaptation
Description: WordPressová rekonstrukce oblíbeného vzhledu Fallout Skynetu z let 2008–2009. Původní grafika, třísloupcové rozvržení a oranžovo-šedý styl, roztažené pro dnešní obsah. Horní banner zachovává původní poměr 845:184.
Version: 1.0.8
Text Domain: skynet-2009-wide
*/

:root {
    --sk09-bg: #000;
    --sk09-panel: #333;
    --sk09-panel-alt: #373737;
    --sk09-border: #666;
    --sk09-orange: #DB9200;
    --sk09-link: #CC9933;
    --sk09-text: #CCCCCC;
    --sk09-white: #FFF;
    --sk09-max: 1280px;
    --sk09-left: 190px;
    --sk09-right: 190px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    padding: 0;
    background: var(--sk09-bg) url('assets/images/stripe2.png') repeat;
    color: var(--sk09-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--sk09-link); text-decoration: none; }
a:visited { color: var(--sk09-link); }
a:hover, a:focus { color: #fff; text-decoration: none; }

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.screen-reader-text:focus {
    width: auto;
    height: auto;
    clip: auto;
    margin: 0;
    padding: 8px 12px;
    left: 10px;
    top: 10px;
    background: #111;
    color: #fff;
    z-index: 10000;
}

.sk09-shell {
    width: min(calc(100% - 24px), var(--sk09-max));
    margin: 0 auto;
    background: var(--sk09-panel);
    border: 3px double var(--sk09-border);
}

/* The archived banner is 845x184. It is deliberately enlarged only by CSS,
   with width:100% and height:auto, so the original aspect ratio is never changed. */
.sk09-banner {
    display: block;
    width: 100%;
    line-height: 0;
    overflow: hidden;
    background: #333;
}
.sk09-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
}
.sk09-banner { position: relative; }
.sk09-banner-link {
    position: absolute;
    z-index: 3;
    display: block;
    background: transparent;
    text-indent: -9999px;
    overflow: hidden;
    white-space: nowrap;
}
.sk09-banner-link:focus {
    outline: 1px dotted #FFCC00;
    outline-offset: -2px;
}
/* Coordinates are percentages converted from the original 845x184 image map. */
.sk09-banner-home     { left: 6%; top: 4%; width: 58%; height: 78%; }
.sk09-banner-forum    { left: 68.88%; top: 86.95%; width: 5.0%; height: 7.1%; }
.sk09-banner-gallery  { left: 76.45%; top: 86.95%; width: 4.5%; height: 7.1%; }
.sk09-banner-guestbook{ left: 83.67%; top: 86.95%; width: 7.58%; height: 7.1%; }
.sk09-banner-email    { left: 93.60%; top: 86.95%; width: 4.3%; height: 7.1%; }
.sk09-banner-cz       { left: .95%; top: 90.75%; width: 2.0%; height: 5.4%; }
.sk09-banner-en       { left: 3.78%; top: 90.75%; width: 2.2%; height: 5.4%; }
.sk09-header-gap {
    height: 17px;
    background: #333;
}

.sk09-layout {
    display: grid;
    grid-template-columns: var(--sk09-left) minmax(0, 1fr) var(--sk09-right);
    align-items: stretch;
}
.sk09-left,
.sk09-right,
.sk09-content {
    min-width: 0;
    background: var(--sk09-panel);
}
.sk09-left,
.sk09-right {
    padding: 0 15px 30px;
}
.sk09-content {
    padding: 0 28px 30px;
    border-left: 3px double var(--sk09-border);
    border-right: 3px double var(--sk09-border);
    border-bottom: 3px double var(--sk09-border);
}

.sk09-box { margin: 0 0 22px; }
.sk09-box-title {
    margin: 0 0 5px;
    min-height: 21px;
    padding: 4px 8px 3px;
    color: #000;
    background: linear-gradient(#9a9a9a, #777);
    font: bold 10px/14px Verdana, Arial, sans-serif;
}

.sk09-nav,
.sk09-hotlinks,
.sk09-recent {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sk09-nav li,
.sk09-hotlinks li,
.sk09-recent li {
    margin: 0;
    padding: 0;
    border-bottom: 1px dotted var(--sk09-border);
}
.sk09-nav li:last-child,
.sk09-hotlinks li:last-child,
.sk09-recent li:last-child { border-bottom: 0; }
.sk09-nav a,
.sk09-hotlinks a,
.sk09-recent a {
    position: relative;
    display: block;
    min-height: 21px;
    padding: 4px 2px 4px 18px;
    color: #fff;
    font: 11px/14px Verdana, Arial, sans-serif;
}
.sk09-nav a::before,
.sk09-hotlinks a::before,
.sk09-recent a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 13px;
    height: 12px;
    background: url('assets/images/index.gif') center/13px 12px no-repeat;
}
.sk09-nav a:hover,
.sk09-hotlinks a:hover,
.sk09-recent a:hover,
.sk09-nav .current-menu-item > a,
.sk09-nav .current_page_item > a,
.sk09-nav .current_page_ancestor > a { color: #FFCC00; }
.sk09-nav .sub-menu,
.sk09-nav .children {
    list-style: none;
    margin: 0 0 0 10px;
    padding: 0;
}
.sk09-nav .sub-menu a,
.sk09-nav .children a { font-size: 11px; }

/* 1.0.4: top-level pages that contain submenu items behave like the old section headers. */
.sk09-nav > li.menu-item-has-children,
.sk09-nav > li.page_item_has_children {
    border-bottom: 0;
    margin-top: 8px;
}
.sk09-nav > li.menu-item-has-children:first-child,
.sk09-nav > li.page_item_has_children:first-child { margin-top: 0; }
.sk09-nav > li.menu-item-has-children > a,
.sk09-nav > li.page_item_has_children > a {
    min-height: 21px;
    padding: 4px 8px 3px;
    color: #000;
    background: linear-gradient(#9a9a9a, #777);
    font: bold 10px/14px Verdana, Arial, sans-serif;
}
.sk09-nav > li.menu-item-has-children > a::before,
.sk09-nav > li.page_item_has_children > a::before { display: none; }
.sk09-nav > li.menu-item-has-children > a:hover,
.sk09-nav > li.page_item_has_children > a:hover,
.sk09-nav > li.menu-item-has-children.current-menu-item > a,
.sk09-nav > li.menu-item-has-children.current-menu-ancestor > a,
.sk09-nav > li.menu-item-has-children.current_page_item > a,
.sk09-nav > li.menu-item-has-children.current_page_ancestor > a,
.sk09-nav > li.page_item_has_children.current_page_item > a,
.sk09-nav > li.page_item_has_children.current_page_ancestor > a {
    color: #000;
    text-decoration: none;
}
.sk09-nav > li.menu-item-has-children > .sub-menu,
.sk09-nav > li.menu-item-has-children > .children,
.sk09-nav > li.page_item_has_children > .children {
    margin-left: 0;
}

.sk09-double-divider {
    width: 90%;
    margin: 14px auto 18px;
}
.sk09-double-divider .sk09-divider {
    width: 100%;
    margin: 0;
}
.sk09-double-divider .sk09-divider + .sk09-divider {
    margin-top: 2px;
}

.sk09-divider {
    width: 90%;
    height: 5px;
    margin: 14px auto 18px;
    border: 0;
    background: url('assets/images/line.bmp') center repeat-x;
}

.sk09-post,
.sk09-entry { color: var(--sk09-text); }
.sk09-post-title,
.sk09-entry-title {
    margin: 0;
    color: var(--sk09-text);
    font: bold 14px/1.35 Arial, Helvetica, sans-serif;
}
.sk09-entry-title { font-size: 22px; margin-bottom: 6px; }
.sk09-post-title a,
.sk09-entry-title a { color: var(--sk09-text); }
.sk09-post-date { color: var(--sk09-orange); }
.sk09-meta {
    margin: 2px 0 14px;
    color: #fff;
    font: 10px/1.35 Verdana, Arial, sans-serif;
}
.sk09-meta a { color: var(--sk09-link); }
.sk09-body,
.sk09-entry-content {
    color: var(--sk09-text);
    font: 14px/1.58 Arial, Helvetica, sans-serif;
}
.sk09-body p,
.sk09-entry-content p {
    margin: 0 0 1em;
    text-align: justify;
    text-justify: inter-word;
}
.sk09-body a,
.sk09-entry-content a { color: var(--sk09-link); }
.sk09-body a:hover,
.sk09-entry-content a:hover { color: #fff; }
.sk09-more { font-weight: bold; }

.sk09-entry-content h2,
.sk09-entry-content h3,
.sk09-entry-content h4 {
    color: var(--sk09-orange);
    font-family: Arial, Helvetica, sans-serif;
}
.sk09-entry-content h2 { font-size: 19px; }
.sk09-entry-content h3 { font-size: 17px; }
.sk09-entry-content h4 { font-size: 15px; }
.sk09-entry-content img,
.sk09-body img {
    max-width: 100%;
    height: auto;
}
.sk09-entry-content .alignleft,
.sk09-body .alignleft { float: left; margin: 5px 18px 12px 0; }
.sk09-entry-content .alignright,
.sk09-body .alignright { float: right; margin: 5px 0 12px 18px; }
.sk09-entry-content .aligncenter,
.sk09-body .aligncenter { display: block; margin: 14px auto; }
.sk09-entry-content table,
.sk09-body table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
}
.sk09-entry-content th,
.sk09-entry-content td,
.sk09-body th,
.sk09-body td {
    padding: 7px 8px;
    border: 1px solid #666;
    vertical-align: top;
}
.sk09-entry-content th,
.sk09-body th { background: #3d3d3d; color: #fff; }
.sk09-entry-content iframe,
.sk09-entry-content video,
.sk09-entry-content embed,
.sk09-entry-content object { max-width: 100%; }

.sk09-search-form { margin: 8px 0 0; }
.sk09-search-input {
    width: 100%;
    padding: 6px;
    color: #fff;
    background: var(--sk09-panel-alt);
    border: 1px dashed #FF9900;
    font: 10px Verdana, Arial, sans-serif;
}
.sk09-search-submit {
    margin-top: 8px;
    padding: 5px 10px;
    color: #fff;
    background: var(--sk09-panel-alt);
    border: 1px solid #FF9900;
    font: 10px Verdana, Arial, sans-serif;
    cursor: pointer;
}
.sk09-search-submit:hover { color: #FFCC00; }

.sk09-hotlinks .flag {
    display: inline-block;
    width: 10px;
    height: 8px;
    margin-left: 4px;
    vertical-align: baseline;
}

.sk09-widget {
    color: var(--sk09-text);
    font: 10px/1.45 Verdana, Arial, sans-serif;
}
.sk09-widget ul { margin: 0; padding-left: 16px; }
.sk09-widget-title { margin: 0 0 6px; }

.sk09-pagination { margin: 20px 0 0; }
.sk09-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.sk09-pagination a,
.sk09-pagination span {
    padding: 5px 8px;
    border: 1px solid #666;
    background: #373737;
    color: #fff;
    font: 10px Verdana, Arial, sans-serif;
}
.sk09-pagination .current { color: #FFCC00; border-color: #DB9200; }

.sk09-comments { margin-top: 30px; }
.sk09-comments .comment-list { padding-left: 24px; }

.sk09-footer {
    padding: 16px 20px 18px;
    color: #999;
    text-align: center;
    font: 10px/1.4 Verdana, Arial, sans-serif;
}

@media (max-width: 1200px) {
    :root { --sk09-left: 180px; --sk09-right: 180px; }
    .sk09-content { padding-left: 22px; padding-right: 22px; }
}

@media (max-width: 900px) {
    .sk09-shell { width: min(calc(100% - 12px), var(--sk09-max)); }
    .sk09-layout { grid-template-columns: 1fr; }
    .sk09-left,
    .sk09-right { padding: 14px 16px 20px; }
    .sk09-content {
        border-left: 0;
        border-right: 0;
        border-top: 3px double var(--sk09-border);
        border-bottom: 3px double var(--sk09-border);
        padding: 18px 20px 24px;
    }
    .sk09-left { border-bottom: 3px double var(--sk09-border); }
    .sk09-right { border-top: 3px double var(--sk09-border); }
    .sk09-nav { columns: 2; column-gap: 24px; }
    .sk09-nav li { break-inside: avoid; }
}

@media (max-width: 600px) {
    .sk09-header-gap { height: 10px; }
    .sk09-nav { columns: 1; }
    .sk09-home-summary { grid-template-columns: 1fr; gap: 14px; }
    .sk09-content { padding: 15px 13px 20px; }
    .sk09-entry-title { font-size: 20px; }
    .sk09-body,
    .sk09-entry-content { font-size: 14px; }
}

/* 1.0.2: first archived-news separator mirrors aktuality.htm */
.sk09-divider-first {
    margin-top: 0;
}


/* 1.0.5: keep visited/current/plugin-generated links in the original 2009 palette.
   This intentionally uses !important because some content plugins (including
   automatic wiki-linkers) ship their own more specific or inline link colors. */

/* Ordinary menu items never stay yellow after navigation. Yellow is hover/focus only. */
.sk09-nav li:not(.menu-item-has-children):not(.page_item_has_children) > a,
.sk09-nav li:not(.menu-item-has-children):not(.page_item_has_children) > a:link,
.sk09-nav li:not(.menu-item-has-children):not(.page_item_has_children) > a:visited,
.sk09-nav li:not(.menu-item-has-children):not(.page_item_has_children).current-menu-item > a,
.sk09-nav li:not(.menu-item-has-children):not(.page_item_has_children).current_page_item > a,
.sk09-nav li:not(.menu-item-has-children):not(.page_item_has_children).current-menu-ancestor > a,
.sk09-nav li:not(.menu-item-has-children):not(.page_item_has_children).current_page_ancestor > a {
    color: #FFF !important;
}
.sk09-nav li:not(.menu-item-has-children):not(.page_item_has_children) > a:hover,
.sk09-nav li:not(.menu-item-has-children):not(.page_item_has_children) > a:focus {
    color: #FFCC00 !important;
}

/* Section-heading menu items stay black like the original grey menu headers. */
.sk09-nav > li.menu-item-has-children > a,
.sk09-nav > li.page_item_has_children > a,
.sk09-nav > li.menu-item-has-children > a:link,
.sk09-nav > li.page_item_has_children > a:link,
.sk09-nav > li.menu-item-has-children > a:visited,
.sk09-nav > li.page_item_has_children > a:visited,
.sk09-nav > li.menu-item-has-children.current-menu-item > a,
.sk09-nav > li.menu-item-has-children.current-menu-ancestor > a,
.sk09-nav > li.menu-item-has-children.current_page_item > a,
.sk09-nav > li.menu-item-has-children.current_page_ancestor > a,
.sk09-nav > li.page_item_has_children.current_page_item > a,
.sk09-nav > li.page_item_has_children.current_page_ancestor > a {
    color: #000 !important;
}

/* Article/page links, including links injected later by Wiki Links. */
.sk09-body a,
.sk09-body a:link,
.sk09-body a:visited,
.sk09-entry-content a,
.sk09-entry-content a:link,
.sk09-entry-content a:visited,
.sk09-body a[style],
.sk09-entry-content a[style],
.sk09-body a[class],
.sk09-entry-content a[class] {
    color: #CC9933 !important;
}
.sk09-body a:hover,
.sk09-body a:focus,
.sk09-entry-content a:hover,
.sk09-entry-content a:focus {
    color: #FFF !important;
}


/* 1.0.6: Fallout Skynet Wiki Links should look like ordinary 2009 links.
   FSWL can decorate Lore links with a yellow dotted underline independently
   of the anchor color, so explicitly reset every common decoration channel. */
.sk09-body a.fswl-wiki-link,
.sk09-body a.fswl-wiki-link:link,
.sk09-body a.fswl-wiki-link:visited,
.sk09-entry-content a.fswl-wiki-link,
.sk09-entry-content a.fswl-wiki-link:link,
.sk09-entry-content a.fswl-wiki-link:visited,
a.fswl-wiki-link.fswl-type-Lore,
a.fswl-wiki-link.fswl-type-Lore:link,
a.fswl-wiki-link.fswl-type-Lore:visited {
    color: #CC9933 !important;
    border-bottom: 0 !important;
    border-bottom-color: transparent !important;
    border-bottom-style: none !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-color: transparent !important;
    text-decoration-style: solid !important;
    box-shadow: none !important;
    background-image: none !important;
}

.sk09-body a.fswl-wiki-link:hover,
.sk09-body a.fswl-wiki-link:focus,
.sk09-entry-content a.fswl-wiki-link:hover,
.sk09-entry-content a.fswl-wiki-link:focus,
a.fswl-wiki-link.fswl-type-Lore:hover,
a.fswl-wiki-link.fswl-type-Lore:focus {
    color: #FFF !important;
    border-bottom: 0 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    background-image: none !important;
}


/* 1.0.7: wp_list_pages() fallback compatibility for retro section headers. */
.sk09-nav > li.page_item_has_children {
    border-bottom: 0 !important;
    margin-top: 8px;
}
.sk09-nav > li.page_item_has_children:first-child { margin-top: 0; }
.sk09-nav > li.page_item_has_children > a,
.sk09-nav > li.page_item_has_children > a:link,
.sk09-nav > li.page_item_has_children > a:visited,
.sk09-nav > li.page_item_has_children.current_page_item > a,
.sk09-nav > li.page_item_has_children.current_page_ancestor > a {
    min-height: 21px !important;
    padding: 4px 8px 3px !important;
    color: #000 !important;
    background: linear-gradient(#9a9a9a, #777) !important;
    font: bold 10px/14px Verdana, Arial, sans-serif !important;
    text-decoration: none !important;
}
.sk09-nav > li.page_item_has_children > a::before { display: none !important; }
.sk09-nav > li.page_item_has_children > .children { margin-left: 0 !important; }
