/* Tikkurilan painonnostokerho — recreated faithful replica
   Source: Wayback Machine snapshot 2024-12-30 of www.tikkurilan-painonnosto.fi
   Palette from original theme.css: #1D191A body / #da5802 accent orange
*/

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #1D191A url('kuvat/bg.jpg') top center repeat;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #333;
  line-height: 1.5;
}

a { color: #da5802; text-decoration: none; }
a:hover { text-decoration: underline; }

.sivu {
  width: 980px;
  margin: 0 auto;
  background: rgba(255,255,255,0.94) url('kuvat/tausta_haivepohja.png') top center no-repeat;
  min-height: 100vh;
  box-shadow: 0 0 30px rgba(0,0,0,0.45);
}

/* HEADER */
.ylaosa {
  padding: 15px 20px 0;
  background: transparent;
}

.logo img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

/* NAVIGATION */
nav {
  background: #1D191A;
  border-top: 3px solid #da5802;
  border-bottom: 3px solid #da5802;
}

ul.sf-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

ul.sf-menu li {
  border-right: 1px solid #333;
}

ul.sf-menu li:last-child { border-right: none; }

ul.sf-menu a {
  display: block;
  padding: 12px 14px;
  color: #ffffff;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
  text-decoration: none;
  transition: background .15s;
}

ul.sf-menu a:hover,
ul.sf-menu li.active a {
  background: #da5802;
  color: #fff;
  text-decoration: none;
}

/* BODY LAYOUT */
.sisalto {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  padding: 20px;
  background: transparent;
}

/* SIDEBAR */
.sidebar > div {
  background: #ffffff;
  border: 1px solid #CCCCCC;
  border-top: 3px solid #da5802;
  margin-bottom: 18px;
  padding: 14px 14px 14px;
}

.sidebar h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: #1D191A;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 6px;
}

.sidebar h4 {
  font-size: 13px;
  margin: 6px 0 4px;
  color: #1D191A;
  font-weight: 600;
}

.sidebar p { margin: 0 0 8px; color: #555; }

.sidebar .pvm {
  display: inline-block;
  font-size: 11px;
  color: #da5802;
  font-weight: bold;
  margin-bottom: 2px;
}

.newslift-item {
  padding: 8px 0;
  border-bottom: 1px dashed #e2e2e2;
}

.newslift-item:last-child { border-bottom: none; }

.newslift-item.highlight {
  background: #faf3ec;
  padding: 10px;
  margin: 10px -4px 0;
  border-left: 3px solid #da5802;
}

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

.sidebar-links li { padding: 4px 0; }

.sidebar-links a {
  color: #1D191A;
  font-weight: 600;
}

.sidebar-links a:before {
  content: "»";
  color: #da5802;
  margin-right: 6px;
}

.tiedotteet .muted { color: #999; font-style: italic; }

/* MAIN CONTENT */
.page-content-wrapper {
  background: #ffffff;
  border: 1px solid #CCCCCC;
  border-top: 3px solid #da5802;
  padding: 24px 28px;
  min-height: 400px;
  font-size: 13px;
  line-height: 1.65;
  color: #333;
}

.page-content-wrapper h1 {
  color: #1D191A;
  border-bottom: 2px solid #da5802;
  padding-bottom: 8px;
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
}

.page-content-wrapper h2 {
  color: #1D191A;
  font-size: 16px;
  margin: 22px 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ddd;
}

.page-content-wrapper h3 {
  color: #da5802;
  font-size: 14px;
  margin: 16px 0 6px;
}

.page-content-wrapper p { margin: 0 0 12px; }

.page-content-wrapper .lead {
  font-size: 14px;
  color: #1D191A;
  font-weight: 600;
  padding: 10px 14px;
  background: #f8f1e8;
  border-left: 3px solid #da5802;
  margin-bottom: 16px;
}

.page-content-wrapper .muted { color: #999; font-style: italic; }

.highlight-box {
  background: #1D191A;
  color: #fff;
  padding: 18px 20px;
  margin: 18px 0;
  border-left: 5px solid #da5802;
}

.highlight-box h2 {
  color: #fff;
  border: none;
  margin: 0 0 8px;
}

.highlight-box p { color: #ddd; }

.highlight-box .readmore,
.readmore {
  display: inline-block;
  padding: 6px 12px;
  background: #da5802;
  color: #fff !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .5px;
  margin-top: 6px;
}

.readmore:hover { background: #b84702; text-decoration: none; }

/* CALENDAR */
.calendar-block {
  margin-top: 24px;
  border-top: 1px solid #ddd;
  padding-top: 16px;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-weight: 700;
  font-size: 14px;
  color: #1D191A;
  margin-bottom: 8px;
}

.cal-header a {
  color: #da5802;
  font-size: 18px;
  text-decoration: none;
}

table.calendar {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

table.calendar th {
  background: #1D191A;
  color: #fff;
  padding: 6px;
  font-weight: 600;
  font-size: 11px;
}

table.calendar td {
  padding: 8px 4px;
  border: 1px solid #eee;
  color: #333;
  height: 24px;
}

table.calendar td:empty { background: #fafafa; }

ul.legend {
  list-style: none;
  padding: 10px 0 0;
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 11px;
  border-top: 1px dashed #ddd;
}

ul.legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}

ul.legend .sw {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #da5802;
}

ul.legend .sw.harj { background: #26890f; }
ul.legend .sw.kilp { background: #c40c0c; }
ul.legend .sw.tek  { background: #4c79d5; }
ul.legend .sw.muu  { background: #da5802; }

/* SPONSORS */
.sponsorit {
  background: #ffffff;
  border-top: 3px solid #da5802;
  padding: 14px 20px;
  margin: 0 20px 20px;
}

.sponsorit h3 {
  margin: 0 0 10px;
  font-size: 13px;
  color: #1D191A;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.sponsor-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sponsor-list li {
  border: 1px solid #e5e5e5;
  padding: 6px 10px;
  font-size: 11px;
  color: #555;
  background: #fafafa;
}

/* FOOTER */
.alaosa {
  background: #1D191A;
  color: #ddd;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 3px solid #da5802;
  font-size: 11px;
}

.alaosa .social a {
  color: #fff;
  background: #333;
  padding: 4px 10px;
  margin-right: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.alaosa .social a:hover { background: #da5802; text-decoration: none; }

.alaosa .copyright { color: #999; }

/* SUBPAGE HELPERS */
.breadcrumb {
  font-size: 11px;
  color: #888;
  margin-bottom: 10px;
}

.breadcrumb a { color: #888; }

.coach {
  padding: 12px 14px;
  border-left: 3px solid #da5802;
  background: #fafafa;
  margin-bottom: 10px;
}

.coach h4 {
  margin: 0 0 4px;
  color: #1D191A;
}

.coach .tel {
  color: #da5802;
  font-weight: 700;
  font-size: 12px;
}

ul.achievements {
  padding-left: 20px;
  margin-top: 6px;
}

ul.achievements li { margin-bottom: 4px; }

/* FILE LISTS (Ohjeet / Lomakkeet) */
table.file-list {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 18px;
  font-size: 13px;
}

table.file-list th {
  text-align: left;
  background: #1D191A;
  color: #fff;
  padding: 8px 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
}

table.file-list td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

table.file-list tr:hover td { background: #faf3ec; }

table.file-list .size {
  text-align: right;
  color: #777;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  width: 1%;
}

.file-link {
  font-weight: 600;
  padding-left: 22px;
  background-repeat: no-repeat;
  background-position: 0 center;
  background-size: 16px 16px;
}

.file-link.doc {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><rect x='1' y='1' width='12' height='14' rx='1' fill='%232a5699'/><rect x='2' y='4' width='10' height='1.2' fill='white'/><rect x='2' y='6.5' width='10' height='1.2' fill='white'/><rect x='2' y='9' width='10' height='1.2' fill='white'/><rect x='2' y='11.5' width='7' height='1.2' fill='white'/></svg>");
}

.file-link.xls {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><rect x='1' y='1' width='12' height='14' rx='1' fill='%231d6f42'/><text x='7' y='11' text-anchor='middle' font-size='7' font-weight='bold' fill='white' font-family='Arial'>X</text></svg>");
}

/* GALLERY GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.gallery-grid a {
  display: block;
  overflow: hidden;
  border: 1px solid #ddd;
  background: #fafafa;
  transition: transform .15s, box-shadow .15s;
}

.gallery-grid a:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  border-color: #da5802;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.gallery-grid.featured {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin-bottom: 22px;
}

.gallery-grid.featured img { height: 180px; }

.gallery-section-title {
  color: #1D191A;
  font-size: 15px;
  margin: 24px 0 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 4px;
}

/* Responsive */
@media (max-width: 1000px) {
  .sivu { width: 100%; }
  .sisalto { grid-template-columns: 1fr; }
  ul.sf-menu { flex-direction: column; }
  ul.sf-menu li { border-right: none; border-bottom: 1px solid #333; }
}
