/*
Theme Name: Sten
Theme URI: 
Author: Automattic
Author URI: https://automattic.com
Description: Sten is a simple blogging theme with a functional design. It is ideal for taking notes, writing short or long text, and includes a post sidebar and comment section.
Requires at least: 5.8
Tested up to: 5.9
Requires PHP: 5.7
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sten
Tags: blog, news, one-column, right-sidebar, wide-blocks, block-patterns, custom-colors, custom-logo, custom-menu, editor-style, full-site-editing, rtl-language-support, theme-options, threaded-comments, translation-ready, notes, sidebar

/*
 * Control the hover stylings of outline block style.
 * Unnecessary once block styles are configurable via theme.json
 * https://github.com/WordPress/gutenberg/issues/42794
 */
.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background):hover {
	background-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--background);
	border-color: var(--wp--preset--color--secondary);
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: .0625em !important;
	text-underline-offset: .15em;
}


/*
 * Footer
 */
.site-footer {
    margin-top: 2rem;
    border-top: 1px solid #e5e7eb;
    font-family: Inter, sans-serif;
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.site-footer__copyright,
.site-footer__links {
    font-size: 0.95rem;
    line-height: 1.5;
}

.site-footer__copyright {
    color: #000;
}

.site-footer__links {
    display: flex;
    gap: 1rem;
    font-weight: 400;
}

.site-footer__links a {
    color: inherit;
    text-decoration: none;
}

.site-footer__links a:hover {
    text-decoration: underline;
}

/*
 * Card
 */
.site-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.site-card {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 1.5rem;
    background: #fff;
    border: 2px solid #000000;
    border-radius: 1rem;
    transition: transform .2s ease, box-shadow .2s ease;
}

.site-card__title {
    margin-top: 0;
    font-size: 1.35rem;
}

.site-card__title a,
.site-card__link-wrapper {
    color: inherit;
    text-decoration: none;
}

.site-card__content {
    flex-grow: 1;
    color: #4b5563;
    line-height: 1.6;
}

.site-card__link {
    margin-top: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.site-card__link-wrapper:hover,
.site-card__link-wrapper:hover .site-card__title {
    text-decoration: underline;
}

/* Mobil */
@media (max-width: 600px) {
    .site-card-grid {
        grid-template-columns: 1fr;
    }
}

/*
 * Dagens ord
 */
/* ===========================
   WordPress
=========================== */

.wp-site-blocks,
.entry-content,
.is-layout-constrained {
    overflow: visible !important;
}

/* ===========================
   Dagens ord
=========================== */

.dagens-ord-wrapper {
    position: relative;
    padding: 20px 0 60px;
    overflow: visible;
}

.dagens-ord-section {
    position: relative;
    isolation: isolate;
    padding: 60px 20px;
    overflow: hidden;
    background: transparent !important;
}

.dagens-ord-section::before {
    content: "";
    position: absolute;
    inset: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background:
        #edf4f4
        url("https://www.robin.ax/wp-content/uploads/trygghet.svg")
        no-repeat
        left -250px top -80px / 800px 800px;
    z-index: -1;
}

.dagens-ord-section > *:not(.dagens-ord-bg) {
    position: relative;
    z-index: 1;
}

.dagens-ord-header {
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
    padding: 6px 0;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: .3px;
}

.dagens-ord-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    max-width: 900px;
    height: 400px;
    margin: 0 60px;
    padding: 20px;
    box-sizing: border-box;
    background: #111112;
    border-radius: 0px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    border: 2px solid #262526;
}

.dagens-ord-title {
    margin: 0;
    padding-bottom: 15px;
    text-align: center;
    font-family: Georgia, serif;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    border-bottom: 1px solid #dadce0;
    color: #ffffff;
}

.dagens-ord-content {
    flex: 1;
    overflow: auto;
}

.dagens-ord-date {
    margin-top: 10px;
    text-align: right;
    font-size: .75rem;
    color: #ffffff;
}

.dagens-ord-article h2 {
    margin-top: 20px;
    font-size: 2rem;
    color: #ffffff;
}

.definition {
    line-height: 1.6;
    color: #ffffff;
}

.dagens-ord-link {
    align-self: flex-end;
    margin-top: 15px;
    padding: 8px 14px;
    border: 1px solid rgba(160, 130, 70, .5);
    border-radius: 6px;
    text-decoration: none;
    color: #000;
    background-color:#fbc12c;
}

.dagens-ord-background {
    position: absolute;
    inset: 0;
    left: 50%;
    width: 200vw;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(-50%);
    overflow: hidden;
    background: #000000;
    z-index: 0;
}

.dagens-ord-bg {
    position: absolute;
    top: 10%;
    width: 80vw;
    height: 90%;
    pointer-events: none;
    z-index: 0;
    
background-image:
  linear-gradient(to right, #262526 0, #262526 2px, transparent 2px),
  linear-gradient(to bottom, #262526 0, #262526 2px, transparent 2px);

background-size: calc(1296px / 14) 98px;
background-position: top center;
}

.dagens-ord {
    position: relative;
    overflow: hidden;
}

.dagens-ord img {
    position: absolute;
}

.dagens-ord-background img {
    position: relative;
    top: 200px;
    left: 100px;
    pointer-events: none;
    z-index: 0;
}

/* ===========================
   Kort
=========================== */

.site-card--desktop-only {
    display: none;
}

@media (min-width: 1200px) {
    .site-card--desktop-only {
        display: flex;
    }
}

/* ===========================
   Layout
=========================== */

.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 50px;
    align-items: start;
}

.page-content {
    min-width: 0;
}

.page-sidebar {
    position: sticky;
    top: 30px;
}

.page-sidebar iframe {
    width: 100% !important;
}

@media (max-width: 1100px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .page-sidebar {
        position: static;
        margin-top: 40px;
    }
}

/* =========================
   X FEED - STABILT SYSTEM
   ENHETLIG VISUELL STANDARD
   ========================= */

/* =========================
   KONTROLL - CONTAINER
   ========================= */

#ctf {
    overflow: visible !important;
}

/* sidebar nivå */
.x-sidebar {
    position: relative;
    z-index: 2;
    overflow: visible;
}

/* responsiv */
@media (max-width: 900px) {
    .x-sidebar {
        display: none;
    }
}

/* =========================
   KORT - REN STRUKTUR
   ========================= */

.x-bar{
    border: 1px solid #a2a9b1;
    border-radius: 6px;
    background: #fff;
    padding:10px;
}

.ctf-feed-1.ctf-boxed-style .ctf-item {
    background: transparent !important;
}

/* Wiki-style Twitter feed */
.ctf-tweets {
    border: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: transparent !important;
}

/* Varje tweet */
.ctf-tweets .ctf-item {
    display: block !important;
    width: 100%;
    margin: 0 !important;
    padding: 22px 0 24px;
    background: transparent !important;
    box-shadow: none !important;
}

/* Första posten */
.ctf-tweets .ctf-item:first-child {
    padding-top: 0;
}

/* Senaste posten längst ned om HTML-ordningen är äldst → nyast */
.ctf-tweets .ctf-item:last-child {
    border-bottom: 0 !important;
}

/* Retweet-rad */
.ctf-tweets .ctf-context {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
    font-size: 13px;
    line-height: 1.4;
    color: #54595d;
}

/* Retweet-symbol */
.ctf-tweets .ctf-retweet-icon {
    display: inline-flex;
    width: 14px;
    height: 14px;
    color: #54595d !important;
}

.ctf-tweets .ctf-retweet-icon svg {
    width: 14px;
    height: 14px;
}

/* "Robin Wåge Retweeted" */
.ctf-tweets .ctf-retweet-text {
    color: #54595d !important;
    text-decoration: none;
}

/* Avsändare + datum */
.ctf-tweets .ctf-author-box {
    padding: 0 !important;
}

.ctf-tweets .ctf-author-box-link {
    color: #202122 !important;
    font-size: 14px;
    line-height: 1.5;
}

/* Namn */
.ctf-tweets .ctf-author-name {
    color: #202122 !important;
    font-weight: 600;
    text-decoration: none;
}

.ctf-tweets .ctf-author-name:hover {
    text-decoration: underline;
}

/* @namn */
.ctf-tweets .ctf-author-screenname {
    color: #54595d !important;
    text-decoration: none;
    margin-left: 4px;
}

/* Punkt mellan användare och datum */
.ctf-tweets .ctf-screename-sep {
    color: #72777d;
    margin: 0 4px;
}

/* Datum */
.ctf-tweets .ctf-tweet-meta {
    display: inline;
}

.ctf-tweets .ctf-tweet-date {
    color: #54595d !important;
    text-decoration: none;
}

.ctf-tweets .ctf-tweet-date:hover {
    text-decoration: underline;
}

/* Själva texten */
.ctf-tweets .ctf-tweet-content {
    margin: 0 !important;
    padding: 0 !important;
}

.ctf-tweets .ctf-tweet-text {
    margin: 0 !important;
    color: #202122 !important;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.65;
}

/* Länkar i tweeten */
.ctf-tweets a {
    transition: none;
}

/* Dölj onödigt tomrum från Twitter-pluginet */
.ctf-tweets .ctf-item::before,
.ctf-tweets .ctf-item::after {
    display: none !important;
}

/* Mobil */
@media (max-width: 600px) {
    .ctf-tweets .ctf-item {
        padding: 18px 0 20px;
    }

    .ctf-tweets .ctf-tweet-text {
        font-size: 15px;
        line-height: 1.6;
    }

    .ctf-tweets .ctf-author-box-link {
        font-size: 13px;
    }
}


/* Datum ovanför källan */
.ctf-tweets .ctf-author-box {
    padding: 0 !important;
}

.ctf-tweets .ctf-tweet-meta {
    display: block !important;
    margin: 0 0 3px !important;
    line-height: 1.3 !important;
}

.ctf-tweets .ctf-tweet-date {
    color: #b32424 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}
.ctf-screename-sep{display:none;}
.ctf-context{
    padding-left:15px;
}
.ctf-author-box{
    padding-left:15px !important;    
}
.ctf-tweets .ctf-author-box {
    padding-left:15px !important;    
}
/* Källa under datumet */
.ctf-tweets .ctf-author-box-link {
    color: #202122 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}
.ctf-tweets .ctf-author-box-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.ctf-tweets .ctf-tweet-meta {
    order: -1 !important;
}

.ctf-context{display:none;}
#ctf.ctf-super-narrow .ctf-context {
    display:none;
}

.ctf-tweet-content {
    border-left: 1px solid #000;
    padding-left: 12px;
}
.ctf-tweet-text{padding-left:12px;}
#ctf .ctf-item {
    padding: 0px 0px !important;
}
.ctf-author-box {
    position: relative;
}
.ctf-author-box::before {
    content: "";
    position: absolute;
    left: -3px;
    top: 6px;
    width: 8px;
    height: 8px;
    background: #b32424;
    border-radius: 50%;
    z-index: 9999;
}

//
//
footer{
    border-top:1px solid #dadce0;
}
footer {
    border-top: 1px solid #dadce0;
}
header .is-layout-constrained > .alignwide {
    border-bottom: 1px solid #dadce0;
    padding-bottom:20px;
}


.wp-block-search__inside-wrapper {
    max-width: 600px;
}

.wp-block-search__input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #c9d2da;
    border-radius: 6px;
    background: #fff;
    font-size: 16px;
    transition: border-color .2s, box-shadow .2s;
}

.wp-block-search__input:focus {
    outline: none;
    border-color: #005293;
    box-shadow: 0 0 0 3px rgba(0,82,147,.15);
}

.wp-block-search__input::placeholder {
    color: #6c757d;
}

/* Behållare */
.wp-block-search__inside-wrapper {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    display: flex;
}

/* Sökfält */
.wp-block-search__input {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border: 1px solid #c8d1d8;
    border-radius: 64px;
    background: #fff;
    color: #1d2a38;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}

/* Placeholder */
.wp-block-search__input::placeholder {
    color: #6f7d8a;
    opacity: 1;
}

/* Fokus */
.wp-block-search__input:focus {
    outline: none;
    border-color: #005293;
    box-shadow: 0 0 0 3px rgba(0,82,147,.15);
}

//


/* WRAPPER */
.ki-search-wrapper {
    position: relative;
    width: 100%;
}

/* BOX (centrerad + stabil layout) */
.ki-search-box {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    min-width: 320px;
    max-width: 700px;
    padding: 0 12px;
    background: #fff;
    height: 48px;
}

/* VÄNSTER SÖK */
.ki-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    border: 1px solid #dadce0;
    border-radius: 100px;
    height:48px;
}

.ki-search-input-wrap:hover {
    border: 1px solid #000000;
}

.ki-search-input-wrap:focus-within {
    border: 2px solid #1a73e8;
}

/* SÖK-IKON I INPUT */
.ki-search-icon {
    position: absolute;
    left: 12px;
    width: 20px;
    height: 20px;
    color: #6b7280;
    pointer-events: none;
}

/* INPUT */
.ki-search-input-wrap input {
    width: 100%;
    padding: 0 12px 0 40px;
    height: 60px;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: inherit;
    background: transparent;
}

/* HÖGER: SÖKHJÄLP */
.ki-search-help {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    justify-self: end;
    white-space: nowrap;

    text-decoration: none;
    color: #005293;
    flex-shrink: 0;
}

/* HÖGER IKON */
.ki-search-help svg {
    width: 28px;
    height: 28px;
    top:0px;
    position:relative;
}

/* TEXT */
.ki-help-text {
    font-size: 14px;
}

.ki-search-help span{
    position:relative;
    top:-2px;
}