MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| (12 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* ========================================================= | /* ========================================================= | ||
1. WIKI BASIC SETTINGS | |||
========================================================= */ | ========================================================= */ | ||
.clean-new-articles li { font-size: 0; } | .clean-new-articles li { font-size: 0; } | ||
| Line 8: | Line 7: | ||
/* ========================================================= | /* ========================================================= | ||
2. | 2. UNIFIED FINNISH DESIGN (MAIN PAGE) | ||
========================================================= */ | ========================================================= */ | ||
/* Hero Section & Search */ | |||
.fin-hero { text-align: center; padding: 40px 20px; background: #ffffff; margin-bottom: 30px; border-bottom: 1px solid #e2e8f0; } | .fin-hero { text-align: center; padding: 40px 20px; background: #ffffff; margin-bottom: 30px; border-bottom: 1px solid #e2e8f0; } | ||
.fin-hero-title { font-size: 2.5em; font-weight: 700; color: #003b7e; margin-bottom: 10px; } | .fin-hero-title { font-size: 2.5em; font-weight: 700; color: #003b7e; margin-bottom: 10px; } | ||
| Line 15: | Line 15: | ||
.fin-searchbox { max-width: 600px; margin: 0 auto; } | .fin-searchbox { max-width: 600px; margin: 0 auto; } | ||
/* | /* Hide burger button and empty panel for guests (Citizen) */ | ||
body.user-logged-out label[for="mw-drawer-toggle"], | |||
body.user-logged-out #mw-drawer-toggle, | |||
body.user-logged-out #mw-drawer { | |||
body | |||
body | |||
body | |||
display: none !important; | display: none !important; | ||
} | } | ||
/* Block Grids (Translation-resistant) */ | |||
.fin-grid-2 { | |||
/* | display: flex; | ||
.fin-grid-2 | flex-wrap: wrap; | ||
gap: 20px; | |||
display: flex; | margin-bottom: 40px; | ||
flex-wrap: wrap; | align-items: stretch; | ||
gap: 20px; | |||
margin-bottom: 40px; | |||
align-items: stretch; | |||
} | } | ||
.fin-grid-2 > * { | .fin-grid-2 > * { | ||
flex: 1 1 calc(50% - 10px); | flex: 1 1 calc(50% - 10px); | ||
min-width: 300px; | min-width: 300px; | ||
} | } | ||
.fin-grid-3 | .fin-grid-3 { | ||
display: grid; | |||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); | |||
gap: 20px; | |||
margin-bottom: 40px; | |||
align-items: stretch; | |||
} | } | ||
/* | /* Strictly ignore system garbage from MediaWiki translations */ | ||
.fin-grid-2 > br, .fin-grid-3 > br, | .fin-grid-2 > br, .fin-grid-3 > br, | ||
.fin-grid-2 > p:empty, .fin-grid-3 > p:empty, | .fin-grid-2 > p:empty, .fin-grid-3 > p:empty, | ||
.fin-grid-2 > .mw-empty-elt, .fin-grid-3 > .mw-empty-elt { | .fin-grid-2 > .mw-empty-elt, .fin-grid-3 > .mw-empty-elt { | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* Strict categories (Dark blue) */ | |||
/* | |||
.fin-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; margin-bottom: 40px; } | .fin-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; margin-bottom: 40px; } | ||
.fin-cat-btn { background: #003b7e; border-radius: 4px; padding: 16px 20px; text-align: center; transition: background 0.2s; } | .fin-cat-btn { background: #003b7e; border-radius: 4px; padding: 16px 20px; text-align: center; transition: background 0.2s; } | ||
| Line 71: | Line 56: | ||
.fin-cat-btn:hover { background: #002855; } | .fin-cat-btn:hover { background: #002855; } | ||
/* | /* White cards (Vero style) */ | ||
.fin-card-vero { background: #ffffff; border: 1px solid #d1d5db; border-radius: 6px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; } | .fin-card-vero { background: #ffffff; border: 1px solid #d1d5db; border-radius: 6px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; } | ||
.fin-card-vero h3 { margin: 0 0 15px 0; font-size: 1.4em; font-weight: 700; color: #111827; border: none; padding: 0; } | .fin-card-vero h3 { margin: 0 0 15px 0; font-size: 1.4em; font-weight: 700; color: #111827; border: none; padding: 0; } | ||
.fin-card-vero p { | .fin-card-vero p { | ||
color: #374151; | color: #374151; | ||
| Line 80: | Line 64: | ||
line-height: 1.6; | line-height: 1.6; | ||
margin-bottom: 25px; | margin-bottom: 25px; | ||
/* | /* Force line breaks for long words */ | ||
overflow-wrap: break-word; | overflow-wrap: break-word; | ||
word-wrap: break-word; | word-wrap: break-word; | ||
| Line 90: | Line 74: | ||
.fin-btn-green:hover { background: #005c26; text-decoration: none; } | .fin-btn-green:hover { background: #005c26; text-decoration: none; } | ||
/* | /* Dark blue and pink cards (Suomi.fi style) */ | ||
.fin-card-suomi-blue { background: #003b7e; color: #ffffff; border-radius: 6px; padding: 24px; } | .fin-card-suomi-blue { background: #003b7e; color: #ffffff; border-radius: 6px; padding: 24px; } | ||
.fin-card-suomi-pink { background: #ffcce6; color: #111827; border-radius: 6px; padding: 24px; } | .fin-card-suomi-pink { background: #ffcce6; color: #111827; border-radius: 6px; padding: 24px; } | ||
.fin-card-suomi-blue h3, .fin-card-suomi-pink h3 { margin: 0 0 15px 0; font-size: 1.4em; font-weight: 700; border: none; padding: 0; display: flex; justify-content: space-between; align-items: center; } | .fin-card-suomi-blue h3, .fin-card-suomi-pink h3 { margin: 0 0 15px 0; font-size: 1.4em; font-weight: 700; border: none; padding: 0; display: flex; justify-content: space-between; align-items: center; } | ||
.fin-card-suomi-pink h3 { color: #111827; } | .fin-card-suomi-pink h3 { color: #111827; } | ||
/* Merged overrides for Suomi blue cards */ | |||
.fin-card-suomi-blue h3 { color: #ffffff !important; text-align: left !important; } | |||
.fin-card-suomi-blue p { text-align: left !important; color: #ffffff !important; } | |||
/* Image cards (TE-Palvelut / Join the Crew style) */ | |||
.fin-card-img { background: #ffffff; border: 1px solid #d1d5db; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; } | |||
.fin-card-img-wrapper { height: 200px; width: 100%; background: #e5e7eb; overflow: hidden; } | |||
.fin-card-img-content { padding: 30px; text-align: center; } | |||
.fin-card-img-content h3 { margin: 0 0 15px 0; font-size: 1.6em; font-weight: 700; color: #111827; border: none; } | |||
.fin-card-img-content p { color: #4b5563; font-size: 16px; line-height: 1.6; max-width: 600px; margin: 0 auto 25px auto; } | |||
.fin-btn-blue { display: inline-block; background: #005eb8; color: #ffffff !important; padding: 12px 28px; border-radius: 4px; font-weight: 700; font-size: 16px; text-decoration: none; transition: background 0.2s; } | |||
.fin-btn-blue:hover { background: #004a94; text-decoration: none; } | |||
/* ========================================================= | /* ========================================================= | ||
3. | 3. VOLUNTEER BOARD (About Page) | ||
========================================================= */ | ========================================================= */ | ||
.volunteer-grid { display: flex; flex-wrap: wrap; gap: 25px; justify-content: center; margin: 40px 0; } | .volunteer-grid { display: flex; flex-wrap: wrap; gap: 25px; justify-content: center; margin: 40px 0; } | ||
| Line 113: | Line 109: | ||
/* ========================================================= | /* ========================================================= | ||
4. | 4. JOIN THE CREW BLOCKS (UPDATED) | ||
========================================================= */ | ========================================================= */ | ||
.crew-banner-wrapper { position: relative; border-radius: 12px; margin: 40px auto; max-width: 100%; min-height: 380px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.1); background: #0f172a; | /* Option B: Wiki image integration */ | ||
.crew-banner-wrapper { | |||
position: relative; | |||
border-radius: 12px; | |||
margin: 40px auto; | |||
max-width: 100%; | |||
min-height: 380px; | |||
overflow: hidden; | |||
box-shadow: 0 4px 12px rgba(0,0,0,0.1); | |||
background: #0f172a; | |||
} | |||
.crew-content-layer { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 2; background: rgba(15, 23, 42, 0.4) | .crew-bg-layer { | ||
position: absolute; | |||
top: 0; left: 0; right: 0; bottom: 0; | |||
z-index: 1; | |||
} | |||
/* 1. MAKE IMAGE INITIALLY BLURRED */ | |||
.crew-bg-layer .mw-halign-center, | |||
.crew-bg-layer a, | |||
.crew-bg-layer img { | |||
width: 100% !important; | |||
height: 100% !important; | |||
object-fit: cover !important; | |||
display: block !important; | |||
transition: filter 0.5s ease, transform 0.5s ease; | |||
filter: blur(6px); /* Initially blurred */ | |||
transform: scale(1.05); /* Scaled slightly to hide blurred edges */ | |||
} | |||
/* 2. MAKE OVERLAY INITIALLY DARKENED */ | |||
.crew-content-layer { | |||
position: absolute; | |||
top: 0; left: 0; right: 0; bottom: 0; | |||
z-index: 2; | |||
background: rgba(15, 23, 42, 0.65); /* Initially darkened (was 0.4) */ | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
padding: 20px; | |||
transition: background 0.5s ease; | |||
} | |||
.crew-text-box { max-width: 650px; text-align: center; } | .crew-text-box { max-width: 650px; text-align: center; } | ||
| Line 125: | Line 159: | ||
.crew-text-box p { font-size: 16px; color: #f8fafc !important; margin: 0 auto; line-height: 1.6; } | .crew-text-box p { font-size: 16px; color: #f8fafc !important; margin: 0 auto; line-height: 1.6; } | ||
/* | /* 3. HOVER EFFECTS */ | ||
/* You can unblur it on hover, or keep it blurred. Here it unblurs slightly and darkens further */ | |||
.crew-banner-wrapper:hover .crew-bg-layer img { | |||
filter: blur(2px); /* Unblurs slightly on hover */ | |||
transform: scale(1.1); | |||
} | |||
.crew-banner-wrapper:hover .crew-content-layer { | |||
background: rgba(4, 11, 16, 0.85); /* Gets even darker on hover */ | |||
} | |||
/* 4. BUTTON FIX (Removing the conflicting 'transparent' rule) */ | |||
.crew-btn-container { margin-top: 25px; } | .crew-btn-container { margin-top: 25px; } | ||
/* | /* Strip basic wiki styles safely without breaking our own button background */ | ||
. | .mw-parser-output .crew-btn-container a { | ||
box-shadow: none !important; | |||
text-decoration: none !important; | |||
} | |||
/* Style the button properly */ | |||
.mw-parser-output .crew-btn-container a.external, | |||
.crew-btn-container a.external { | |||
display: inline-block !important; | |||
background: #005eb8 !important; | |||
color: #ffffff !important; | |||
font-size: 16px !important; | |||
font-weight: bold !important; | |||
padding: 12px 30px !important; | |||
border-radius: 8px !important; | |||
text-decoration: none !important; | |||
border: none !important; | |||
transition: background 0.2s !important; | |||
} | |||
.mw-parser-output .crew-btn-container a.external:hover, | |||
.crew-btn-container a.external:hover { | |||
background: #004a94 !important; | |||
} | |||
.crew-btn-container a.external::after { display: none !important; } | |||
/* ========================================================= | |||
5. MAIN PAGE DESIGN (SC WIKI STYLE) | |||
/* | ========================================================= */ | ||
.mp-hero { text-align: center; margin: 40px 0 30px; } | .mp-hero { text-align: center; margin: 40px 0 30px; } | ||
.mp-title { font-size: 2.5em; font-weight: 800; margin-bottom: 10px; color: #0f172a; } | .mp-title { font-size: 2.5em; font-weight: 800; margin-bottom: 10px; color: #0f172a; } | ||
.mp-subtitle { font-size: 1.1em; color: #64748b; margin-bottom: 30px; } | .mp-subtitle { font-size: 1.1em; color: #64748b; margin-bottom: 30px; } | ||
/* | /* Search */ | ||
.mp-search { max-width: 600px; margin: 0 auto 40px auto; } | .mp-search { max-width: 600px; margin: 0 auto 40px auto; } | ||
/* | /* Categories (Dark buttons) */ | ||
.mp-cat-grid { | .mp-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; margin-bottom: 40px; } | ||
.mp-cat-btn { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); border-radius: 8px; padding: 15px 20px; text-align: center; transition: all 0.2s ease; border: 1px solid #334155; box-shadow: 0 4px 6px rgba(0,0,0,0.2); } | |||
} | |||
.mp-cat-btn { | |||
} | |||
.mp-cat-btn a { color: #f8fafc !important; font-weight: 600; text-decoration: none; display: block; font-size: 15px;} | .mp-cat-btn a { color: #f8fafc !important; font-weight: 600; text-decoration: none; display: block; font-size: 15px;} | ||
.mp-cat-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.3); border-color: #38bdf8; } | .mp-cat-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.3); border-color: #38bdf8; } | ||
/* | /* Info panels (Cards) */ | ||
.mp-panels { | .mp-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 40px; } | ||
.mp-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 25px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); } | |||
.mp-card-title { font-size: 1.2em; font-weight: 700; color: #0f172a; margin-bottom: 15px; border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; } | |||
.mp-card-links a { display: block; padding: 12px; background: #f8fafc; border-radius: 6px; margin-bottom: 8px; color: #334155; text-decoration: none; font-weight: 600; transition: background 0.2s; text-align: center; border: 1px solid #e2e8f0; } | |||
} | |||
.mp-card { | |||
} | |||
.mp-card-title { | |||
} | |||
.mp-card-links a { | |||
} | |||
.mp-card-links a:hover { background: #e2e8f0; color: #0f172a; } | .mp-card-links a:hover { background: #e2e8f0; color: #0f172a; } | ||
/* | /* Service buttons (Patreon/Discord Style) */ | ||
.mp-services { display: flex; flex-direction: column; gap: 12px; } | .mp-services { display: flex; flex-direction: column; gap: 12px; } | ||
.mp-srv-btn { | .mp-srv-btn { display: block; text-align: center; padding: 15px; border-radius: 8px; font-weight: bold; font-size: 1.1em; color: #ffffff !important; text-decoration: none; transition: opacity 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.1); } | ||
} | |||
.mp-srv-btn:hover { text-decoration: none; opacity: 0.85; } | .mp-srv-btn:hover { text-decoration: none; opacity: 0.85; } | ||
.btn-vero { background: #005eb8; } /* | .btn-vero { background: #005eb8; } /* Tax office blue */ | ||
.btn-ytj { background: #2c3e50; } /* | .btn-ytj { background: #2c3e50; } /* Registry dark */ | ||
.btn-migri { background: #007A5E; } /* | .btn-migri { background: #007A5E; } /* Migration green */ | ||
/* | /* Deadlines Widget */ | ||
.mp-deadlines { display: flex; flex-direction: column; gap: 10px; } | .mp-deadlines { display: flex; flex-direction: column; gap: 10px; } | ||
.deadline-card { | .deadline-card { display: flex; align-items: center; background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid #ef4444; border-radius: 6px; padding: 10px 15px; transition: transform 0.2s; } | ||
} | |||
.deadline-card:hover { transform: translateX(5px); border-left-color: #dc2626; } | .deadline-card:hover { transform: translateX(5px); border-left-color: #dc2626; } | ||
.deadline-date { font-weight: 800; color: #ef4444; font-size: 1.2em; min-width: 50px; text-align: center; } | .deadline-date { font-weight: 800; color: #ef4444; font-size: 1.2em; min-width: 50px; text-align: center; } | ||
| Line 219: | Line 240: | ||
.deadline-desc { margin-left: 15px; font-weight: 600; font-size: 0.95em; color: #334155; line-height: 1.3; } | .deadline-desc { margin-left: 15px; font-weight: 600; font-size: 0.95em; color: #334155; line-height: 1.3; } | ||
.deadline-desc span { display: block; font-size: 0.8em; color: #64748b; font-weight: normal; } | .deadline-desc span { display: block; font-size: 0.8em; color: #64748b; font-weight: normal; } | ||
/* ========================================================= | /* ========================================================= | ||
6. MISCELLANEOUS (COOKIES & LANGUAGES) | |||
========================================================= */ | ========================================================= */ | ||
/* Cookie Consent Banner */ | |||
/* | #cookie-consent-banner { | ||
position: fixed; | |||
bottom: 32px; | |||
left: 5%; | |||
max-width: 320px; | |||
/* Glass effect working in both light and dark themes */ | |||
background: rgba(127, 127, 127, 0.15); | |||
backdrop-filter: blur(16px); | |||
-webkit-backdrop-filter: blur(16px); | |||
border: 1px solid rgba(127, 127, 127, 0.25); | |||
position: | |||
left: | |||
/* | |||
background: rgba( | |||
border | |||
padding: 20px; | padding: 20px; | ||
border-radius: 16px; | |||
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); | |||
z-index: 9999; | |||
color: var(--color-base); | |||
font-size: 0.9em; | |||
line-height: 1.4; | |||
font-size | |||
} | } | ||
#cookie-consent-banner a { color: var(--color-primary); font-weight: bold; } | |||
#cookie-consent-banner button { margin-top: 16px; width: 100%; background: var(--color-primary); color: #000000; border: none; padding: 10px; border-radius: 8px; cursor: pointer; font-weight: bold; transition: transform 0.1s; } | |||
#cookie-consent-banner button:active { transform: scale(0.97); } | |||
/* Hide language subpage links */ | |||
/* | |||
.mw-category a[href*="/en"], | .mw-category a[href*="/en"], | ||
.mw-category a[href*="/ru"], | .mw-category a[href*="/ru"], | ||
| Line 445: | Line 276: | ||
} | } | ||
/* | /* Safely hide empty list items without :has() */ | ||
.mw-category li { | .mw-category li { | ||
list-style: none !important; | list-style: none !important; | ||
} | } | ||
.mw-category li > a:not([href*="/en"]):not([href*="/ru"]):not([href*="/fi"]):not([href*="/uk"]):not([href*="/su"])::before { | .mw-category li > a:not([href*="/en"]):not([href*="/ru"]):not([href*="/fi"]):not([href*="/uk"]):not([href*="/su"])::before { | ||
content: "• "; | content: "• "; | ||
} | } | ||
Latest revision as of 07:10, 22 October 2026
/* =========================================================
1. WIKI BASIC SETTINGS
========================================================= */
.clean-new-articles li { font-size: 0; }
.clean-new-articles li a.mw-newpages-pagename { font-size: 15px; }
.mw-pt-translate-header, .mw-tpt-sp-top { display: none !important; }
/* =========================================================
2. UNIFIED FINNISH DESIGN (MAIN PAGE)
========================================================= */
/* Hero Section & Search */
.fin-hero { text-align: center; padding: 40px 20px; background: #ffffff; margin-bottom: 30px; border-bottom: 1px solid #e2e8f0; }
.fin-hero-title { font-size: 2.5em; font-weight: 700; color: #003b7e; margin-bottom: 10px; }
.fin-hero-subtitle { font-size: 1.2em; color: #475569; margin-bottom: 30px; }
.fin-searchbox { max-width: 600px; margin: 0 auto; }
/* Hide burger button and empty panel for guests (Citizen) */
body.user-logged-out label[for="mw-drawer-toggle"],
body.user-logged-out #mw-drawer-toggle,
body.user-logged-out #mw-drawer {
display: none !important;
}
/* Block Grids (Translation-resistant) */
.fin-grid-2 {
display: flex;
flex-wrap: wrap;
gap: 20px;
margin-bottom: 40px;
align-items: stretch;
}
.fin-grid-2 > * {
flex: 1 1 calc(50% - 10px);
min-width: 300px;
}
.fin-grid-3 {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin-bottom: 40px;
align-items: stretch;
}
/* Strictly ignore system garbage from MediaWiki translations */
.fin-grid-2 > br, .fin-grid-3 > br,
.fin-grid-2 > p:empty, .fin-grid-3 > p:empty,
.fin-grid-2 > .mw-empty-elt, .fin-grid-3 > .mw-empty-elt {
display: none !important;
}
/* Strict categories (Dark blue) */
.fin-categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; margin-bottom: 40px; }
.fin-cat-btn { background: #003b7e; border-radius: 4px; padding: 16px 20px; text-align: center; transition: background 0.2s; }
.fin-cat-btn a { color: #ffffff !important; font-weight: 600; font-size: 16px; text-decoration: none; display: block; }
.fin-cat-btn:hover { background: #002855; }
/* White cards (Vero style) */
.fin-card-vero { background: #ffffff; border: 1px solid #d1d5db; border-radius: 6px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.fin-card-vero h3 { margin: 0 0 15px 0; font-size: 1.4em; font-weight: 700; color: #111827; border: none; padding: 0; }
.fin-card-vero p {
color: #374151;
font-size: 15px;
line-height: 1.6;
margin-bottom: 25px;
/* Force line breaks for long words */
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
hyphens: auto;
}
.fin-btn-green { display: inline-block; background: #007a33; color: #ffffff !important; padding: 10px 20px; border-radius: 4px; font-weight: 700; font-size: 14px; text-decoration: none; transition: background 0.2s; align-self: flex-start; }
.fin-btn-green:hover { background: #005c26; text-decoration: none; }
/* Dark blue and pink cards (Suomi.fi style) */
.fin-card-suomi-blue { background: #003b7e; color: #ffffff; border-radius: 6px; padding: 24px; }
.fin-card-suomi-pink { background: #ffcce6; color: #111827; border-radius: 6px; padding: 24px; }
.fin-card-suomi-blue h3, .fin-card-suomi-pink h3 { margin: 0 0 15px 0; font-size: 1.4em; font-weight: 700; border: none; padding: 0; display: flex; justify-content: space-between; align-items: center; }
.fin-card-suomi-pink h3 { color: #111827; }
/* Merged overrides for Suomi blue cards */
.fin-card-suomi-blue h3 { color: #ffffff !important; text-align: left !important; }
.fin-card-suomi-blue p { text-align: left !important; color: #ffffff !important; }
/* Image cards (TE-Palvelut / Join the Crew style) */
.fin-card-img { background: #ffffff; border: 1px solid #d1d5db; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.fin-card-img-wrapper { height: 200px; width: 100%; background: #e5e7eb; overflow: hidden; }
.fin-card-img-content { padding: 30px; text-align: center; }
.fin-card-img-content h3 { margin: 0 0 15px 0; font-size: 1.6em; font-weight: 700; color: #111827; border: none; }
.fin-card-img-content p { color: #4b5563; font-size: 16px; line-height: 1.6; max-width: 600px; margin: 0 auto 25px auto; }
.fin-btn-blue { display: inline-block; background: #005eb8; color: #ffffff !important; padding: 12px 28px; border-radius: 4px; font-weight: 700; font-size: 16px; text-decoration: none; transition: background 0.2s; }
.fin-btn-blue:hover { background: #004a94; text-decoration: none; }
/* =========================================================
3. VOLUNTEER BOARD (About Page)
========================================================= */
.volunteer-grid { display: flex; flex-wrap: wrap; gap: 25px; justify-content: center; margin: 40px 0; }
@keyframes goldPulse { 0%, 100% { box-shadow: 0 4px 15px rgba(218, 165, 32, 0.15), 0 0 10px rgba(255, 215, 0, 0.1); border-color: rgba(212, 175, 55, 0.3); } 50% { box-shadow: 0 12px 25px rgba(218, 165, 32, 0.4), 0 0 25px rgba(255, 215, 0, 0.3); border-color: rgba(212, 175, 55, 0.8); } }
@keyframes shimmerMove { 0% { left: -150%; } 100%, 200% { left: 200%; } }
.volunteer-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 35px 20px 25px 20px; text-align: center; width: 280px; position: relative; overflow: hidden; transition: all 1.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); animation: goldPulse 5s infinite ease-in-out; }
.volunteer-card:hover { transform: translateY(-10px) perspective(600px) rotateX(3deg) rotateY(-3deg) scale(1.02); box-shadow: 0 20px 30px -5px rgba(218, 165, 32, 0.5), 0 0 35px rgba(255, 215, 0, 0.5) !important; border-color: #d4af37 !important; animation-play-state: paused; }
.volunteer-card::before { content: ""; position: absolute; top: 0; left: -150%; width: 50%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255, 215, 0, 0.4) 50%, rgba(255,255,255,0) 100%); transform: skewX(-25deg); pointer-events: none; animation: shimmerMove 5s infinite; }
.volunteer-avatar { width: 80px; height: 80px; margin: 0 auto 15px auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #f8fafc; color: #94a3b8; transition: all 0.4s ease; }
.volunteer-card:hover .volunteer-avatar { background: #fef08a; color: #ca8a04; transform: scale(1.1); }
.volunteer-links { display: flex; flex-direction: column; gap: 8px; margin-top: 15px; }
.volunteer-links a { color: #64748b; text-decoration: none; font-weight: 600; font-size: 14px; transition: color 0.3s; }
.volunteer-links a:hover { color: #d4af37; }
/* =========================================================
4. JOIN THE CREW BLOCKS (UPDATED)
========================================================= */
/* Option B: Wiki image integration */
.crew-banner-wrapper {
position: relative;
border-radius: 12px;
margin: 40px auto;
max-width: 100%;
min-height: 380px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
background: #0f172a;
}
.crew-bg-layer {
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
z-index: 1;
}
/* 1. MAKE IMAGE INITIALLY BLURRED */
.crew-bg-layer .mw-halign-center,
.crew-bg-layer a,
.crew-bg-layer img {
width: 100% !important;
height: 100% !important;
object-fit: cover !important;
display: block !important;
transition: filter 0.5s ease, transform 0.5s ease;
filter: blur(6px); /* Initially blurred */
transform: scale(1.05); /* Scaled slightly to hide blurred edges */
}
/* 2. MAKE OVERLAY INITIALLY DARKENED */
.crew-content-layer {
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
z-index: 2;
background: rgba(15, 23, 42, 0.65); /* Initially darkened (was 0.4) */
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
transition: background 0.5s ease;
}
.crew-text-box { max-width: 650px; text-align: center; }
.crew-text-box h3 { font-size: 28px; font-weight: 800; color: #ffffff !important; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; border: none !important; }
.crew-text-box p { font-size: 16px; color: #f8fafc !important; margin: 0 auto; line-height: 1.6; }
/* 3. HOVER EFFECTS */
/* You can unblur it on hover, or keep it blurred. Here it unblurs slightly and darkens further */
.crew-banner-wrapper:hover .crew-bg-layer img {
filter: blur(2px); /* Unblurs slightly on hover */
transform: scale(1.1);
}
.crew-banner-wrapper:hover .crew-content-layer {
background: rgba(4, 11, 16, 0.85); /* Gets even darker on hover */
}
/* 4. BUTTON FIX (Removing the conflicting 'transparent' rule) */
.crew-btn-container { margin-top: 25px; }
/* Strip basic wiki styles safely without breaking our own button background */
.mw-parser-output .crew-btn-container a {
box-shadow: none !important;
text-decoration: none !important;
}
/* Style the button properly */
.mw-parser-output .crew-btn-container a.external,
.crew-btn-container a.external {
display: inline-block !important;
background: #005eb8 !important;
color: #ffffff !important;
font-size: 16px !important;
font-weight: bold !important;
padding: 12px 30px !important;
border-radius: 8px !important;
text-decoration: none !important;
border: none !important;
transition: background 0.2s !important;
}
.mw-parser-output .crew-btn-container a.external:hover,
.crew-btn-container a.external:hover {
background: #004a94 !important;
}
.crew-btn-container a.external::after { display: none !important; }
/* =========================================================
5. MAIN PAGE DESIGN (SC WIKI STYLE)
========================================================= */
.mp-hero { text-align: center; margin: 40px 0 30px; }
.mp-title { font-size: 2.5em; font-weight: 800; margin-bottom: 10px; color: #0f172a; }
.mp-subtitle { font-size: 1.1em; color: #64748b; margin-bottom: 30px; }
/* Search */
.mp-search { max-width: 600px; margin: 0 auto 40px auto; }
/* Categories (Dark buttons) */
.mp-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; margin-bottom: 40px; }
.mp-cat-btn { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); border-radius: 8px; padding: 15px 20px; text-align: center; transition: all 0.2s ease; border: 1px solid #334155; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }
.mp-cat-btn a { color: #f8fafc !important; font-weight: 600; text-decoration: none; display: block; font-size: 15px;}
.mp-cat-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0,0,0,0.3); border-color: #38bdf8; }
/* Info panels (Cards) */
.mp-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 40px; }
.mp-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 25px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.mp-card-title { font-size: 1.2em; font-weight: 700; color: #0f172a; margin-bottom: 15px; border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; }
.mp-card-links a { display: block; padding: 12px; background: #f8fafc; border-radius: 6px; margin-bottom: 8px; color: #334155; text-decoration: none; font-weight: 600; transition: background 0.2s; text-align: center; border: 1px solid #e2e8f0; }
.mp-card-links a:hover { background: #e2e8f0; color: #0f172a; }
/* Service buttons (Patreon/Discord Style) */
.mp-services { display: flex; flex-direction: column; gap: 12px; }
.mp-srv-btn { display: block; text-align: center; padding: 15px; border-radius: 8px; font-weight: bold; font-size: 1.1em; color: #ffffff !important; text-decoration: none; transition: opacity 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.mp-srv-btn:hover { text-decoration: none; opacity: 0.85; }
.btn-vero { background: #005eb8; } /* Tax office blue */
.btn-ytj { background: #2c3e50; } /* Registry dark */
.btn-migri { background: #007A5E; } /* Migration green */
/* Deadlines Widget */
.mp-deadlines { display: flex; flex-direction: column; gap: 10px; }
.deadline-card { display: flex; align-items: center; background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid #ef4444; border-radius: 6px; padding: 10px 15px; transition: transform 0.2s; }
.deadline-card:hover { transform: translateX(5px); border-left-color: #dc2626; }
.deadline-date { font-weight: 800; color: #ef4444; font-size: 1.2em; min-width: 50px; text-align: center; }
.deadline-card.yel { border-left-color: #f59e0b; }
.deadline-card.yel .deadline-date { color: #f59e0b; font-size: 1em; }
.deadline-desc { margin-left: 15px; font-weight: 600; font-size: 0.95em; color: #334155; line-height: 1.3; }
.deadline-desc span { display: block; font-size: 0.8em; color: #64748b; font-weight: normal; }
/* =========================================================
6. MISCELLANEOUS (COOKIES & LANGUAGES)
========================================================= */
/* Cookie Consent Banner */
#cookie-consent-banner {
position: fixed;
bottom: 32px;
left: 5%;
max-width: 320px;
/* Glass effect working in both light and dark themes */
background: rgba(127, 127, 127, 0.15);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid rgba(127, 127, 127, 0.25);
padding: 20px;
border-radius: 16px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
z-index: 9999;
color: var(--color-base);
font-size: 0.9em;
line-height: 1.4;
}
#cookie-consent-banner a { color: var(--color-primary); font-weight: bold; }
#cookie-consent-banner button { margin-top: 16px; width: 100%; background: var(--color-primary); color: #000000; border: none; padding: 10px; border-radius: 8px; cursor: pointer; font-weight: bold; transition: transform 0.1s; }
#cookie-consent-banner button:active { transform: scale(0.97); }
/* Hide language subpage links */
.mw-category a[href*="/en"],
.mw-category a[href*="/ru"],
.mw-category a[href*="/fi"],
.mw-category a[href*="/uk"],
.mw-category a[href*="/su"] {
display: none !important;
}
/* Safely hide empty list items without :has() */
.mw-category li {
list-style: none !important;
}
.mw-category li > a:not([href*="/en"]):not([href*="/ru"]):not([href*="/fi"]):not([href*="/uk"]):not([href*="/su"])::before {
content: "• ";
}