/* ============================================================
   Layout & Design Fix — vevlnach.cz web-archive restoration
   Structure:
     #all > #h_area, #top_menu, #main_bg, #f_area, p#power_by
     #main_bg > #sub_main_bg, #rightcolumn
     #sub_main_bg > #top_news, #leftcolumn, #maincolumn
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
body, html { margin: 0; padding: 0; }

body {
    background-color: #c8b48a;
    background-image: url('/templates/teamagazine/images/Bottom_texture.jpg');
    background-repeat: repeat;
    background-attachment: fixed;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 13px;
    color: #3a2a1a;
    line-height: 1.5;
}

/* ---- Outer wrapper ---- */
#all {
    max-width: 980px;
    margin: 0 auto;
    background: #faf6ee;
    box-shadow: 0 0 22px rgba(0, 0, 0, 0.45);
}

#all > a#up       { display: none; }
#all > div#user4  { display: none; }
#all > br         { display: none; }

/* ---- Header ---- */
#h_area {
    background: linear-gradient(135deg, #1a3a0a 0%, #2e5c18 45%, #1a3a0a 100%);
    padding: 22px 30px 20px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #5a9030;
}

#h_area::before {
    content: '茶';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 88px;
    color: rgba(255, 255, 255, 0.07);
    line-height: 1;
    font-family: serif;
    pointer-events: none;
    user-select: none;
}

a.logo {
    display: block;
    font-size: 28px;
    font-family: Georgia, serif;
    color: #e8d4a0;
    text-decoration: none;
    letter-spacing: 4px;
    text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.7);
    text-transform: uppercase;
}

a.logo:hover { color: #fff; }

/* ---- Navigation bar ---- */
#top_menu {
    background: #231a0e;
    border-bottom: 2px solid #4a7a28;
}

ul.menuhor {
    list-style: none;
    margin: 0;
    padding: 0 6px;
    display: flex;
    flex-wrap: wrap;
}

ul.menuhor > li { position: relative; }

ul.menuhor > li > a {
    display: block;
    padding: 10px 13px;
    color: #c8b080;
    text-decoration: none;
    font-size: 11px;
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.2s, color 0.2s;
}

ul.menuhor > li > a:hover,
ul.menuhor > li > a.active {
    background: #4a7a28;
    color: #fff;
}

ul.menuhor > li > ul { display: none !important; }

/* ---- #main_bg: flex row — sub_main_bg + rightcolumn ---- */
#main_bg {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 500px;
}

/* #sub_main_bg: flex row — leftcolumn + maincolumn */
#sub_main_bg {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: #faf6ee;
}

#top_news { display: none; }

/* ---- Left sidebar ---- */
#leftcolumn {
    flex: 0 0 185px;
    width: 185px;
    background: #ede4d4;
    border-right: 1px solid #d4c0a0;
    padding: 12px 8px;
    align-self: stretch;
}

.module_menu,
.module {
    margin-bottom: 14px;
}

/* module titles (deeply nested in Joomla 1.5 structure) */
.module_menu h3,
.module h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 9px;
    margin: 0 0 5px;
    background: #4a7a28;
    border: none;
}

ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.menu li { border-bottom: 1px solid #d4c0a0; }

ul.menu li a {
    display: block;
    padding: 5px 9px;
    color: #3a2a1a;
    text-decoration: none;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    transition: background 0.15s;
}

ul.menu li a:hover {
    background: #d4c0a0;
    color: #1a3a0a;
}

/* Login form */
#form-login fieldset.input { border: none; padding: 0; margin: 0; }

#form-login label {
    display: block;
    font-size: 11px;
    font-family: Arial, sans-serif;
    color: #666;
    margin: 5px 0 2px;
}

#form-login p { margin: 3px 0; }

#form-login input.inputbox {
    width: 100%;
    border: 1px solid #c4b4a0;
    padding: 4px 5px;
    background: #fff;
    font-size: 11px;
    font-family: Arial, sans-serif;
}

#form-login input[name="Submit"] {
    display: block;
    width: 100%;
    margin-top: 7px;
    background: #4a7a28;
    color: #fff;
    border: none;
    padding: 6px 5px;
    cursor: pointer;
    font-size: 11px;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
}

#form-login input[name="Submit"]:hover { background: #1a3a0a; }

#form-login p#form-login-remember {
    display: flex;
    align-items: center;
    gap: 5px;
}

#form-login p#form-login-remember label { margin: 0; }
#form-login p#form-login-remember input { width: auto; }

#form-login ul { list-style: none; margin: 6px 0 0; padding: 0; }
#form-login ul li { border: none; padding: 0; }
#form-login ul li a { font-size: 10px; color: #7a5030; padding: 2px 0; }

/* ---- Main content column ---- */
#maincolumn {
    flex: 1;
    padding: 15px 18px;
    overflow: hidden;
    min-width: 0;
    background: #faf6ee;
}

div.path { display: none; }

/* Blog articles layout */
table.blog {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

table.contentpaneopen {
    width: 100%;
    border-collapse: collapse;
}

td.contentheading {
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: bold;
    color: #1a3a0a;
    padding: 10px 0 5px;
    border-bottom: 2px solid #5a9030;
}

a.contentpagetitle {
    color: #1a3a0a;
    text-decoration: none;
}

a.contentpagetitle:hover {
    color: #4a7a28;
    text-decoration: underline;
}

/* hide PDF / Print / Email icon cells */
td.buttonheading { display: none !important; }

span.small {
    font-size: 11px;
    color: #aaa;
    font-style: italic;
    font-family: Arial, sans-serif;
}

td.createdate {
    font-size: 11px;
    color: #bbb;
    padding: 2px 0;
    font-family: Arial, sans-serif;
}

td.modifydate {
    font-size: 11px;
    color: #ccc;
    padding: 2px 0;
    font-style: italic;
    font-family: Arial, sans-serif;
}

table.contentpaneopen td[colspan="2"] p {
    margin: 8px 0;
    line-height: 1.65;
    color: #3a2a1a;
}

.article_separator {
    display: block;
    height: 18px;
    border-bottom: 1px dashed #d4c0a0;
    margin-bottom: 12px;
}

td.article_column {
    vertical-align: top;
    padding: 0 10px 0 0;
    width: 50%;
}

td.column_separator {
    border-left: 1px solid #ddd0b8;
    padding: 0 0 0 14px;
}

a.readon {
    display: inline-block;
    padding: 4px 13px;
    background: #4a7a28;
    color: #fff !important;
    text-decoration: none;
    font-size: 11px;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
    border-radius: 2px;
}

a.readon:hover { background: #1a3a0a; }

/* ---- Right sidebar ---- */
#rightcolumn {
    flex: 0 0 210px;
    width: 210px;
    background: #ede4d4;
    border-left: 1px solid #d4c0a0;
    padding: 12px 9px;
    align-self: stretch;
}

/* hide the empty anchor and empty div at bottom of rightcolumn */
#rightcolumn > br,
#rightcolumn > div[align="center"] { display: none; }

.moduletable { margin-bottom: 15px; }

.moduletable > h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 9px;
    margin: 0 0 7px;
    background: #4a7a28;
}

.moduletable > p,
.moduletable > div > p {
    font-size: 12px;
    color: #5a4a3a;
    line-height: 1.6;
    margin: 2px 0;
    font-family: Arial, sans-serif;
}

/* Search module */
div.search {
    display: flex;
    gap: 4px;
    align-items: stretch;
}

div.search input.inputbox {
    flex: 1;
    min-width: 0;
    border: 1px solid #c4b4a0;
    padding: 5px 6px;
    font-size: 11px;
    font-family: Arial, sans-serif;
    background: #fff;
}

div.search input.button {
    background: #4a7a28;
    color: #fff;
    border: none;
    padding: 5px 9px;
    cursor: pointer;
    font-size: 11px;
    font-family: Arial, sans-serif;
    white-space: nowrap;
    text-transform: uppercase;
}

div.search input.button:hover { background: #1a3a0a; }

/* Poll module */
table.poll {
    width: 100%;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

table.poll thead td {
    font-weight: bold;
    color: #3a2a1a;
    padding: 4px 3px 6px;
    font-size: 12px;
}

table.pollstableborder { width: 100%; }

.sectiontableentry1,
.sectiontableentry2 {
    padding: 3px 4px;
    font-size: 12px;
    font-family: Arial, sans-serif;
    color: #3a2a1a;
}

.sectiontableentry1 { background: #f5ede0; }
.sectiontableentry2 { background: #eadfce; }

table.poll input.button {
    background: #4a7a28;
    color: #fff;
    border: none;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 11px;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    margin: 2px;
}

table.poll input.button:hover { background: #1a3a0a; }

/* Flash video fallback — hide */
#mediaspace208217349 { display: none; }

/* ---- Footer ---- */
#f_area {
    background: #1e1608;
    padding: 10px 20px;
    min-height: 20px;
    border-top: 3px solid #4a7a28;
    clear: both;
}

#slideshowbox,
#slideshowboxloading,
#slideshowboxfooter,
#slideshowboxCaption,
#slideshowboxnavigationbar,
.JT-ClearBox,
div[id^="slideshowbox"] { display: none !important; }

/* ---- Copyright bar ---- */
p#power_by {
    background: #120e06;
    color: #6a5040;
    font-size: 10px;
    font-family: Arial, sans-serif;
    padding: 8px 16px;
    margin: 0;
    text-align: center;
}

p#power_by a { color: #8a7060; }

/* ---- Partner ad spam — hide ---- */
div.partner { display: none; }

/* ---- General links ---- */
a         { color: #7a5028; }
a:visited { color: #5a6040; }
a:hover   { color: #4a7a28; }

/* ---- General form elements ---- */
input.inputbox,
input[type="text"],
input[type="password"] {
    border: 1px solid #c4b4a0;
    padding: 4px 6px;
    background: #fff;
    font-size: 12px;
    font-family: Arial, sans-serif;
}

hr {
    border: none;
    border-top: 1px solid #d4c0a0;
    margin: 10px 0;
}

/* Wayback banner stays visible on top */
#wm-ipp-base { z-index: 99999 !important; }
