/* Theme Name: vannverket
Theme URI: http://beisfjordvannverk.no
Author: Soverein - Runar Ingebrigtsen
Author URI: http://soverein.it/
Description: Tilpasset Wordpress tema for Beisfjord vannverk
Version: 1.0.286
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vannverket
*/
/* Custom styles extracted from css/tailwind.css */
@import url('https://fonts.googleapis.com/css2?family=Tillana:wght@400;500;600;700;800&display=swap');

/* ! tailwindcss v2.1.1 | MIT License | https://tailwindcss.com */
/* ! modern-normalize v1.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
/* Document
======== */
/* *
Use a better box model (opinionated). */
#post-content p {
    margin-bottom: 1em;
}

:root {
    --background: 0 0% 100%;
    --card-foreground: 215 25% 15%;
    --popover: 0 0% 100%;
    --popover-foreground: 215 25% 15%;
    --secondary-foreground: 205 87% 21%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --input: 214 32% 88%;
    --ring: 205 87% 21%;
    --water-deep: 205 87% 21%;
    --water-mist: 205 30% 94%;
    --technical-gray: 215 15% 40%;
    --gradient-water: linear-gradient(135deg, hsl(205 87% 21%), hsl(199 89% 48%));
    --shadow-soft: 0 2px 8px hsl(205 87% 21% / 0.08);
    --shadow-card: 0 4px 16px hsl(205 87% 21% / 0.12);
    --radius: 0.5rem;
    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 240 5.3% 26.1%;
    --sidebar-primary: 240 5.9% 10%;
    --sidebar-primary-foreground: 0 0% 98%;
    --sidebar-accent: 240 4.8% 95.9%;
    --sidebar-accent-foreground: 240 5.9% 10%;
    --sidebar-border: 220 13% 91%;
    --sidebar-ring: 217.2 91.2% 59.8%;
    --primary: rgb(66, 109, 140);
    --primary-foreground: hsl(0, 0%, 100%);
    --accent: hsl(203, 89%, 53%);
    --water-light: hsl(199, 89%, 48%);
    --muted: hsl(210, 20%, 96%);
    --muted-foreground: hsl(215, 16%, 47%);
    --border: hsl(214, 32%, 88%);
    --card: hsl(0, 0%, 100%);
    --foreground: hsl(215, 25%, 15%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #6b7280;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Utilities missing from pre-built tailwind.css */
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-8 { margin-top: 2rem; }
.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.h-2 { height: 0.5rem; }
.flex-shrink-0 { flex-shrink: 0; }
.items-start { align-items: flex-start; }
.leading-relaxed { line-height: 1.625; }
.max-w-2xl { max-width: 42rem; }
.max-w-6xl { max-width: 72rem; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.rounded-lg { border-radius: 0.5rem; }
.z-10 { z-index: 10; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.opacity-10 { opacity: 0.1; }
.opacity-90 { opacity: 0.9; }
.bg-gray-100 { --tw-bg-opacity: 1; background-color: rgba(243, 244, 246, var(--tw-bg-opacity)); }
.bg-gray-200 { --tw-bg-opacity: 1; background-color: rgba(229, 231, 235, var(--tw-bg-opacity)); }
.bg-black { --tw-bg-opacity: 1; background-color: rgba(0, 0, 0, var(--tw-bg-opacity)); }
.bg-green-500 { --tw-bg-opacity: 1; background-color: rgba(16, 185, 129, var(--tw-bg-opacity)); }
.bg-opacity-10 { --tw-bg-opacity: 0.1; }
.bg-opacity-75 { --tw-bg-opacity: 0.75; }
.border-gray-200 { --tw-border-opacity: 1; border-color: rgba(229, 231, 235, var(--tw-border-opacity)); }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); }
@media (min-width: 768px) { .md\:text-7xl { font-size: 4.5rem; line-height: 1; } }

/* Grid utilities (not in pre-built tailwind.css) */
.grid { display: grid; }
.gap-6 { gap: 1.5rem; }
.gap-4 { gap: 1rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Header & Navigation */
header {
    background: white;
}

nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 1.25rem 1rem;
}

.logo {
    display: flex;
    align-items: center;
    color: #374151;
    font-size: 1.25rem;
    text-decoration: none;
    margin-right: auto;
}

.logo:hover {
    color: #111827;
}

.logo img {
    width: 3rem;
    margin-right: 0.5rem;
}

.logo span {
    text-transform: uppercase;
}

.nav-toggler {
    display: none;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    background: white;
    cursor: pointer;
}

.nav-toggler span {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: currentColor;
    margin: 0.25rem 0;
}

.nav-menu {
    display: flex;
    gap: 1rem;
}

.nav-menu a {
    color: #6b7280;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.nav-menu a:hover {
    color: #111827;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggler {
        display: block;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }
}

.tillana-font {
    font-family: Tillana;
}

.vannpost .font-semibold a {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(55, 90, 116, 1);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.25rem;
}

.vannpost .font-semibold a:hover {
    color: rgba(33, 55, 70, 1);
    text-decoration: underline;
}

.vannpost .avatar {
    height: 3rem;
    width: 3rem;
    border-radius: 9999px;
    flex-shrink: 0;
    object-fit: cover;
}

.widgettitle {
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    line-height: 2rem;
    text-transform: uppercase;
    color: rgba(66, 109, 140, 1);
}

.post-categories {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-categories li {
    display: inline;
}

/* Page content (Gutenberg output inside .prose wrapper) */
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    font-weight: 700;
    line-height: 1.3;
    color: rgb(45 70 111);
    margin-top: 1.75em;
    margin-bottom: 0.5em;
}

.prose h1 { font-size: 2.25rem; }
.prose h2 { font-size: 1.75rem; }
.prose h3 { font-size: 1.375rem; }
.prose h4 { font-size: 1.125rem; }
.prose h5,
.prose h6 { font-size: 1rem; }

.prose > h1:first-child,
.prose > h2:first-child,
.prose > h3:first-child,
.prose > h4:first-child {
    margin-top: 0;
}

.prose p {
    margin-bottom: 1em;
    line-height: 1.75;
}

.prose a {
    color: rgb(60 108 152);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose a:hover {
    color: rgb(45 70 111);
}

.prose ul,
.prose ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}

.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }

.prose li {
    margin-bottom: 0.35em;
    line-height: 1.7;
}

.prose li > ul,
.prose li > ol {
    margin-top: 0.35em;
    margin-bottom: 0;
}

.prose figure {
    margin: 1.5em 0;
}

.prose figure.aligncenter {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.prose figure.alignleft  { float: left;  margin-right: 1.5em; }
.prose figure.alignright { float: right; margin-left: 1.5em; }

.prose img {
    max-width: 100%;
    height: auto;
    display: block;
}

.prose figure.aligncenter img {
    margin: 0 auto;
}

.prose figcaption {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 0.5em;
    text-align: center;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.prose th,
.prose td {
    padding: 0.6em 0.85em;
    border: 1px solid #d1d5db;
    text-align: left;
    vertical-align: top;
}

.prose th {
    font-weight: 600;
    background-color: #f3f4f6;
    color: rgb(45 70 111);
}

.prose tr:nth-child(even) td {
    background-color: #f9fafb;
}

.prose hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2em 0;
}

.prose blockquote {
    border-left: 4px solid rgb(60 108 152);
    padding: 0.5em 1.25em;
    margin: 1.5em 0;
    color: #6b7280;
    font-style: italic;
}

.prose blockquote p:last-child {
    margin-bottom: 0;
}

.prose .wp-block-image,
.prose .wp-block-image figure,
.prose .wp-block-image img {
    max-width: 100%;
    height: auto;
}

.prose .wp-block-image.alignfull,
.prose .wp-block-image.alignwide {
    max-width: 100%;
}

/* KPI contrast fallback: this build lacks responsive text utility variants like sm:text-white. */
#kpi .kpi-mobile-panel {
    background-color: rgba(243, 244, 246, 0.9);
    color: #374151;
    border-radius: 0.5rem;
}

@media (min-width: 640px) {
    #kpi .kpi-mobile-panel {
        background-color: transparent;
        color: #ffffff;
        border-radius: 0;
    }
}
