@charset "UTF-8";
/*
Theme Name: Åkare i Sverige 2025
Theme URI: https://github.com/Ratt-Grafiska/akare-i-sverige-2025
Update URI: https://github.com/Ratt-Grafiska/akare-i-sverige-2025/
Author: Johan Wistbacka
Author URI: https://rattgrafiska.se
Description: 
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.2
Version: 2025.09.29.02
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: akare-i-sverige-2025
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news */
html {
  scroll-behavior: smooth;
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
h1 a,
h2 a,
h3 a,
h4 a,
h5 a {
  text-decoration: none;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 0.1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
  outline-width: 2px;
  outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
  margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
  outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
blockquote,
caption,
figcaption,
p {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
  display: block;
}

.wp-form-control {
  width: 90%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.wp-block-button {
  text-align: center;
  margin-top: 20px;
}

.wp-block-acceptance {
  margin-top: 15px;
  font-size: 14px;
}

label {
  font-size: 0.8rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

form#loginform p {
  margin-bottom: 20px;
}
form#loginform label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 14px;
  color: #555;
}
form#loginform input.input {
  width: 100%;
  padding: 8px;
  font-size: 16px;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  box-sizing: border-box;
  background: #fff;
  transition: border-color 0.2s;
}
form#loginform input.input:focus {
  border-color: #007cba;
  outline: none;
  box-shadow: 0 0 2px rgba(0, 124, 186, 0.8);
}
form#loginform .login-remember label {
  font-size: 14px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 5px;
}
form#loginform input[type=checkbox] {
  margin: 0;
}
form#loginform .login-submit input.button {
  display: block;
  width: 100%;
  padding: 10px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background-color: var(--wp--preset--color--accent-2);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s;
}
form#loginform .login-submit input.button:hover {
  background-color: var(--wp--preset--color--accent-3);
}
form#loginform .login-submit input.button:active {
  background-color: #003f73;
}

.wp-block-post-template.is-layout-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* så det funkar på mobil också */
  gap: 2rem; /* mellanrum mellan loggorna */
  padding: 1rem 0;
}
.wp-block-post-template.is-layout-grid li {
  list-style: none;
  margin: 0;
}

.ais-buttons li {
  background-color: var(--wp--preset--color--accent-5);
  border-radius: 0.5em;
  padding: 0.75rem;
  transition: all 0.3s ease-in-out;
  box-shadow: 0.1em 0.1em 0.5em rgba(0, 0, 0, 0.2);
}
.ais-buttons li:hover {
  background-color: var(--wp--preset--color--accent-6);
  border-radius: 0.25em;
  transition: all 0.3s ease-in-out;
  box-shadow: 0em 0em 0.1em rgba(0, 0, 0, 0.3);
}

#sidebar .current-menu-item {
  font-weight: 600;
  color: var(--wp--preset--color--accent-1);
}

.sidebar {
  min-width: 250px;
}

@media (max-width: 782px) {
  #sidebar {
    display: none;
  }
}
.wp-block-post-featured-image a {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}
.wp-block-post-featured-image a img {
  transform: scale(0.8);
  transition: transform 0.3s ease;
}
.wp-block-post-featured-image a:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}
.wp-block-post-featured-image a:hover img {
  transform: scale(0.7);
  transition: transform 0.3s ease;
}
