body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    margin: 0 auto;
    max-width: 900px;
    padding: 20px;
    color: #333;
    background: #f9f9f9
}

h1,
h2,
h3,
h4 {
    color: #1a1a1a;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    margin-top: 2em
}

h1 {
    font-size: 2.2em;
    border-bottom-width: 2px
}

h2 {
    font-size: 1.8em
}

h3 {
    font-size: 1.4em;
    border-bottom: none
}

code {
    background: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: "Courier New", Courier, monospace
}

.tool-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .05)
}

ul,
ol {
    padding-left: 20px
}

li {
    margin-bottom: 8px
}

strong {
    color: #0056b3
}

.toc {
    background: #eef5ff;
    border: 1px solid #b3d4fc;
    border-radius: 8px;
    padding: 15px 25px;
    margin-bottom: 2em
}

.toc ul {
    list-style-type: none;
    padding-left: 0
}

.toc>ul>li {
    font-weight: bold;
    margin-top: 10px
}

.toc ul ul li {
    font-weight: normal
}

a {
    color: #0066cc;
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

/* Kielivalitsin */
.lang-switcher {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin: 10px 0 20px
}

.lang-switcher button {
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer
}

.lang-switcher button.active {
    border-color: #0056b3
}

/* Back-links riville (etusivu • opetusvideot) */
.back-to-landing .sep {
    margin: 0 10px;
    opacity: .6;
}

/* Responsiivinen video-embed */
.video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 12px 0 24px;
}

.video iframe,
.video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Hakupalkki */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1em;
}

#ohjeet-search {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    outline: none;
    background: #fff;
}

#ohjeet-search:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
}

#search-count {
    font-size: 0.85em;
    color: #777;
    white-space: nowrap;
}

.tool-section.search-match {
    border-left: 3px solid #0056b3;
}

.search-no-results {
    padding: 12px 16px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    margin-bottom: 1em;
}

[data-search-hidden] {
    display: none !important;
}