/* Reset */
* {
    box-sizing: border-box;
}

:root {
  --link-color:#005bbf;
  --primary-color:#dfce63;
  --secondary-color:#efefef;
  /* oppaan värit */
  --step-0-color: #fdf2e2;
  --step-1-color: #ff7e87;
  --step-2-color: #f6d7cb;
  --step-3-color: #c0d0bc;
  --step-4-color: #5f99c8;
  --step-5-color: #f6babe;
  --step-6-color: #6fbc84;
  --step-7-color: #1d123b;
}
html, body {
    height: 100%;
    margin: 0;
}
body {
    display: flex;
    flex-direction: column;
    font-family: 'Overpass', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


h1 {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
}
/* Tablet (>=768px) */
@media (min-width: 768px) {
    h1 { 
        font-size: 44px;
    }
}

h1.ptitle {
    position: relative;
    display: inline-block;
    padding-bottom: 0;
    margin-bottom: 0;
    margin-top: 20px;
}

h1.ptitle:after {
    content: '';
    display: block;
    position: relative;
    bottom: 0;
    width: 90px;
    left: 0;
    border-top: 8px solid #efefef;
    border-image: url('/images/gold-line-bg.jpg') 100 stretch;
    margin: 20px 0
}

h2 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 2px;
    line-height: 1.1;
}
h2:after {
    content: '';
    display: block;
    position: relative;
    bottom: 0;
    width: 130px;
    left: 0;
    border-top: 8px solid #000;
    margin: 6px 0
}

.logo {
    margin: 2px;
    height: 50px;
    width: auto;
}
@media (min-width: 768px) {
    .logo-liitto {
        height: 120px;
        display: flex;
        align-items: center; 
    }
}

/* Yläosa */
.topblock {
    padding: 14px 0px 6px 0px;
    background: #fff;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 40px 40px rgba(0,0,0,0.02);
}
.topblock a {
    color: #000
}
.top-link {
    font-weight: 500;
    margin-left: 20px;
}

.breadcrumb {
    font-size: 12px;
}

.breadcrumb a, .toggle-link {
    color: var(--link-color);
    text-decoration: underline
}

.toggle-link {
    font-size: 16px;
    font-family: 'Overpass', sans-serif;
    background-color: #fff;
    padding: 0px;
    border: 0px;
}

.breadcrumb a:hover, .toggle-link:hover {
    color: #000
}

/* Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}
[class*="col-"] {
    padding: 0 15px;
    width: 100%;
}
.col-12 { width: 100%; }
.col-8 { width: 66.666%; }
.col-7 { width: 58.333%; }
.col-6 { width: 50%; }
.col-5 { width: 41.666%; }
.col-4 { width: 33.333%; }
.col-3 { width: 25%; }

/* Tablet (>=768px) */
@media (min-width: 768px) {
    .col-md-12 { width: 100%; }
    .col-md-8 { width: 66.666%; }
    .col-md-7 { width: 58.333%; }
    .col-md-6 { width: 50%; }
    .col-md-5 { width: 41.666%; }
    .col-md-4 { width: 33.333%; }
    .col-md-3 { width: 25%; }
}

.content {
    flex: 1;
    padding: 55px 0;
}
.content img {
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 15px;
}
header .container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Tablet (>=768px) */
@media (min-width: 768px) {
    .sidemenu {
        background: url('/images/bg_contour.gif') no-repeat left 100px top 40px / 500px auto;
    }
    .sidemenu-md {
        background: url('/images/bg_contour.gif') no-repeat left 20px top 40px / 500px auto;
    }
    .opasmenu {
        padding: 30px 10px 10px 80px;
    }
}

.card {
    margin-bottom: 40px;
}

/* infoblokki */
@media (min-width: 768px) {
    .infoblock {
        margin-top: 100px;
        margin-left: 50px;
    }
}
.infoblock-bottom {
    position: relative;
    width: 220px;
    padding: 20px;
    top: -10px;
    background-color: #000;
    text-align: center;
    color: #a0a0a0;
}
.infoblock a {
    color: #fff;
    font-size: .85rem;
    line-height: 1.2;
}
.infoblock a:hover {
    text-decoration: underline;
}

/* toggle contnet */
.toggle-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    cursor: pointer;
    user-select: none;
}
.toggle-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}
.toggle-link.active .toggle-icon {
    transform: rotate(90deg);
}
.toggle-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
 }
.toggle-content.open {
    padding-top: 20px;
}

/* Footer */
.footer {
    background: black;
    color: white;
    padding: 20px 0px 40px 0px;
    font-size: .9rem;
}
.footer a {
    color: #fff;
}
.footer a:hover {
    text-decoration: underline;
}

/* perusmuotoiluja */
.text-end {
    text-align: right;
}
.me-2 { margin-right: 2rem; }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.gold_u_sm {
    margin-top: 10px;
    width: 50px;
    height: 3px;
    background-color: #a78b2f;
}

/* Buttonit */
.btn {
    display: inline-flex;
    align-items: center;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.2;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: background-color 0.3s ease, border-color 0.3s ease,color 0.3s ease;
}
.btn-primary {
    color: #00000F;
    text-decoration: underline;
    border: 1px solid transparent;
    background: var(--primary-color) url('/images/ico-arrow-right.svg') no-repeat right 16px center;
    background-size: 16px 16px;
    padding: 12px 40px 12px 16px;
}
.btn-primary:hover,
.btn-back:hover {
    background-color: #E9EAE8;
    border-color: #E9EAE8;
    color: #00000F;
    text-decoration: none;
}
.btn-back {
    color: #00000F;
    text-decoration: underline;
    border: 1px solid transparent;
    background: #d6d6d6 url('/images/ico-arrow-left.svg') no-repeat left 11px center;
    background-size: 16px 16px;
    padding: 12px 18px 12px 34px;
}
.btn-multiline { width: 280px;}

button:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.arrow-link {
    background: transparent url('/images/ico-arrow-right.svg') no-repeat left 0px center;
    background-size: 16px 16px;
    padding: 0px 0px 0px 26px;
    text-decoration: underline;
}
.arrow-link:hover {
    color: #000;
}

hr {
  border: none; height: 2px; background: #e7e7e7; margin-top: 20px; margin-bottom:30px;
}

.table {
  background-color: #f7f7f7;
  border-collapse: collapse;
}
.table td {
    padding: 4px 4px 4px 8px;
    vertical-align: top;
    border: 1px solid #cfcfcf;
}

/* higlight boksi */
.highlight {
    margin-top: 20px; 
    padding: 30px 15px;
    box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.2), 0 8px 26px 0 rgba(0, 0, 0, 0.19); 
    max-width: 700px;
    /* line-height: 1.1;  */ 
    /* background-color: #efefef; */
}

/* ------ Opas --------- */
/* sisällysluettelon pallot */
.step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}
.step-circle {
    margin-bottom: 4px;
    width: 40px;
    height: 40px;
    border: 1px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.bg-step-0 { background-color: var(--step-0-color); }
.bg-step-1 { background-color: var(--step-1-color); }
.bg-step-2 { background-color: var(--step-2-color); }
.bg-step-3 { background-color: var(--step-3-color); }
.bg-step-4 { background-color: var(--step-4-color); }
.bg-step-5 { background-color: var(--step-5-color); }
.bg-step-6 { background-color: var(--step-6-color); }
.bg-step-7 { background-color: var(--step-7-color); }
/* --------------- */
/* otsikoiden ympyrät  */
.optit {
    display: flex;
    align-items: center;
    gap: 20px;
    /* font-weight: bold; */
    font-size: 44px;
}
.optit h1 {
    margin-top: 32px;
}
.optit-circle {
    width: 80px;
    height: 80px;
    border-width: 10px;
    border-style: solid;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding-top: 5px;
}
.optit-1 { border-color: var(--step-1-color); }
.optit-2 { border-color: var(--step-2-color); }
.optit-3 { border-color: var(--step-3-color); }
.optit-4 { border-color: var(--step-4-color); }
.optit-5 { border-color: var(--step-5-color); }
.optit-6 { border-color: var(--step-6-color); }
.optit-7 { border-color: var(--step-7-color); }
/* --------------- */

.op-body h2::after {
    all: unset; 
}
/* harjouitus: ikonoi + otsikko */
h2.harj {
  font-size: 24px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
h2.harj img {
  width: 60px;
  height: auto;
  max-width: 100%;
}
h3 { margin-bottom: 0px; margin-top: 1.2em; }

/* infolaatikko */
.info-box { min-height: 190px;  padding: 20px 0px 0px 100px; margin-top: 1.5em; margin-bottom: 1.5em;}
.info-box h3 {  margin: 10px 0px 0px 0px; }
.info-box p {  margin: 8px 0px; font-weight: 500; }
.info-box-0 { background: #fff url("/images/ring-0.svg") no-repeat; background-position: -104px -7px; }
.info-box-1 { background: #fff url("/images/ring-1.svg") no-repeat; background-position: -104px -7px; }
.info-box-2 { background: #fff url("/images/ring-2.svg") no-repeat; background-position: -104px -7px; }
.info-box-3 { background: #fff url("/images/ring-3.svg") no-repeat; background-position: -104px -7px; }
.info-box-4 { background: #fff url("/images/ring-4.svg") no-repeat; background-position: -104px -7px; }
.info-box-5 { background: #fff url("/images/ring-5.svg") no-repeat; background-position: -104px -7px; }
.info-box-6 { background: #fff url("/images/ring-6.svg") no-repeat; background-position: -104px -7px; }

/* navibuttonit */
.btn-opas {
    color: #00000F;
    text-decoration: underline;
    border: 1px solid transparent;
    background: #fbead0 url('/images/ico-arrow-right.svg') no-repeat right 16px center;
    background-size: 16px 16px;
    padding: 12px 40px 12px 16px;
}
.btn-opas:hover {
    background-color: #E9EAE8;
    border-color: #E9EAE8;
    color: #00000F;
    text-decoration: none;
}

/* iso taustaympyrä */
.bgcircle {
    border: 1px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
 }
 .bgcircle-lg {
    width: 305px;
    height: 305px;
    padding: 0px 37px;
 }
  .bgcircle-xl {
    width: 345px;
    height: 345px;
    padding: 20px 35px 0px 35px;
 }

ol li::marker {  font-weight: bold; }

ol.sub { margin-bottom: 0px;}
ul.sub { margin-top: 0px; margin-left: 1em;}
li.mt { margin-top: 10px;}