/* Sundborns bär – gemensam, minimal stilmall.
   Innehåller endast de element som faktiskt används i sidorna. */

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Albert sans", sans-serif;
	font-optical-sizing: auto;
	font-weight: 300;
	font-style: normal;
    color: #2b2b2b;
    background: #fff;
    line-height: 1.6;
}

.site-inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px;
}

a { color: #a02c2c; text-decoration: underline; }
a:hover { color: #7a1f1f; }

/* --- Sidhuvud --- */
.site-header {
    border-bottom: 1px solid #e5e0da;
    padding: 30px 0;
    text-align: center;
}
.site-header .logo {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #a02c2c;
    text-decoration: none;
}
.site-header .tagline {
    margin: 6px 0 18px;
    color: #990000; 
	font-family: "Dancing Script"; 
	font-size: 24px; 
	font-style: normal; 
	font-weight: 400;
}
.site-header nav .menu-label {
	font-family: "Albert sans", sans-serif;
	font-optical-sizing: auto;
	font-weight: 300;
	font-style: normal;
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 6px;
}
.site-header nav ul {
    font-family: "Albert sans", sans-serif;
	font-optical-sizing: auto;
	font-weight: 300;
	font-style: normal;
	text-transform: uppercase;
	display: flex;
    justify-content: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.site-header nav a.active { font-weight: bold; text-decoration: none; }

/* --- Innehåll --- */
.site-main { padding: 40px 0; }
.page-content h1 { font-family: "Bitter"; font-style: normal; font-weight: 700; margin-top: 0; color: #666; text-transform: uppercase; font-size: 1.8em; letter-spacing:0.03em; text-align:center;}
.page-content h2 { font-family: "Bitter"; font-style: normal; font-weight: 700; color: #666; margin-top: 2em; }
.page-content h3 { font-family: "Bitter"; font-style: normal; font-weight: 700; color: #666; margin-top: 1.6em; }
.page-content p { margin: 0 0 1em; }
.page-content ul { margin: 0 0 1em; padding-left: 1.4em; }
.page-content li { margin-bottom: 0.4em; }
.page-content img {
    max-width: 100%;
    height: auto;
	clear: both;
    display: block;
    margin: 0.5em 0 1em;
}
.page-content img.left {
    max-width: 33%;
	float:left;
    margin: 0 1em 1em -2em;
}

.page-content img.right {
    max-width: 33%;
	float:right;
    margin: 0 -2em 1em 1em;
}

strong  {font-weight:700;}
.page-content iframe { max-width: 100%; }

/* --- Sidfot --- */
.site-footer {
    border-top: 1px solid #e5e0da;
    padding: 20px 0;
    color: #888;
    font-size: 0.85rem;
    text-align: center;
}

/* ==========================================================================
   Admin (inloggning och redigeringspanel) – egen, enkel stil
   ========================================================================== */
.admin-body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f0f2f5; color: #222; }

.login-box {
    max-width: 340px;
    margin: 80px auto;
    background: #fff;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.login-box label { display: block; margin-bottom: 14px; font-size: 0.9rem; }
.login-box input {
    width: 100%;
    padding: 8px 10px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.error { color: #c53030; }

.admin-wrap { max-width: 860px; margin: 0 auto; padding: 30px 20px 80px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.admin-header nav a { margin-left: 16px; }
.admin-section {
    background: #fff;
    border-radius: 6px;
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab { padding: 6px 14px; border-radius: 20px; background: #eee; color: #333; text-decoration: none; }
.tab.active { background: #a02c2c; color: #fff; }

.admin-section textarea {
    width: 100%;
    font-family: "SFMono-Regular", Consolas, Menlo, monospace;
    font-size: 0.9rem;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 6px;
}
.admin-section .hint { color: #666; font-size: 0.85rem; }

.login-box button, .admin-section button {
    background: #a02c2c;
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
}
.login-box button:hover, .admin-section button:hover { background: #7a1f1f; }

.flash { padding: 10px 16px; border-radius: 6px; margin-bottom: 16px; }
.flash.success { background: #e6fff4; color: #276749; border: 1px solid #b2f5ea; }
.flash.error { background: #fff5f5; color: #c53030; border: 1px solid #feb2b2; }

.upload-form { margin-bottom: 20px; }
.upload-form input[type="file"] { display: block; margin: 6px 0 12px; }

.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.image-card { border: 1px solid #eee; border-radius: 6px; padding: 8px; text-align: center; font-size: 0.75rem; }
.image-card img { max-width: 100%; height: 90px; object-fit: cover; border-radius: 4px; margin-bottom: 6px; }
.image-card code { display: block; word-break: break-all; margin-bottom: 6px; color: #555; }
.copy-btn { background: #edf2f7; color: #2d3748; border: 1px solid #cbd5e0; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; cursor: pointer; }
.copy-btn:hover { background: #e2e8f0; }
