/*
 * Artiklarna om Öland (/Artikel/...). Används som: <article class="story-article"> och
 * <link href="/Content/Article.css" rel="stylesheet" /> i sidans head-sektion.
 * Färgerna gäller bara inne i artikeln.
 */
.story-article {
    --primary-color: #3f241a;
    --accent-color: #a0522d;
    --text-color: #333333;
    --border-color: #e8e2d9;
    --card-bg: #faf8f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    padding: 20px 0 40px;
}

.story-article h1 {
    font-family: inherit;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 2.25rem;
    line-height: 1.2;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
}

.story-article h2 {
    font-family: inherit;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 30px 0 15px;
}

.story-article h3 {
    font-family: inherit;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 24px 0 10px;
}

.story-article p { margin-bottom: 1.2em; }
.story-article .lead { font-size: 1.15rem; color: #4a4038; font-style: italic; }
.story-article hr { border: 0; border-top: 1px solid var(--border-color); margin: 30px 0; }
.story-article a { color: var(--accent-color); text-decoration: underline; }

/* Materialize tar bort punkterna i listor; här ska de synas. */
.story-article ul { margin: 0 0 1.5em; padding-left: 22px; }
.story-article ul li { list-style-type: disc; margin-bottom: 0.6em; }
.story-article ol { margin: 0 0 1.5em; padding-left: 22px; }
.story-article ol li { margin-bottom: 0.6em; }

.story-article .table-wrap { overflow-x: auto; margin: 25px 0; }
.story-article table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.story-article th, .story-article td { padding: 12px 15px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-color); border-radius: 0; }
.story-article th { background-color: var(--primary-color); color: #ffffff; }
.story-article tr:nth-child(even) td { background-color: var(--card-bg); }

/* Framhävd ruta, t.ex. avslutningen eller ett tips. */
.story-article .highlight {
    background-color: var(--card-bg);
    border-left: 4px solid var(--accent-color);
    padding: 20px 24px 8px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.story-article .highlight h2,
.story-article .highlight h3 { margin-top: 0; }
.story-article .highlight.center { text-align: center; padding-bottom: 20px; }

/* Ämnet ovanför rubriken, samma namn som på kortet på förstasidan. */
.story-article .kicker {
    margin: 0 0 6px;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Citat som lyfts fram. */
.story-article .pull-quote {
    margin: 30px 0;
    padding: 6px 0 6px 22px;
    border-left: 4px solid var(--accent-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
}

/* Bildrad, t.ex. tre bilder bredvid varandra. */
.story-article .gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 30px 0;
}
.story-article .gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
}

/* Bild till höger om texten. */
.story-article .figure-right {
    float: right;
    width: 40%;
    margin: 6px 0 16px 24px;
    border-radius: 8px;
}
.story-article section::after { content: ""; display: table; clear: both; }

/* Siffror som lyfts fram. */
.story-article .stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
}
.story-article .stat {
    flex: 1 1 160px;
    padding: 18px;
    text-align: center;
    background-color: var(--card-bg);
    border-radius: 8px;
}
.story-article .stat .value {
    display: block;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}
.story-article .stat .label { color: #6d6156; font-size: 0.9rem; }

/* Kort i rutnät, t.ex. regler eller tips. */
.story-article .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 20px 0 30px;
}
.story-article .cards > div {
    padding: 18px 20px 6px;
    background-color: var(--card-bg);
    border-top: 3px solid var(--accent-color);
    border-radius: 0 0 8px 8px;
}
.story-article .cards h3 { margin-top: 0; font-size: 1.05rem; }

/* Avslutande rad. */
.story-article .closing { margin-top: 26px; text-align: center; font-style: italic; }

@media (max-width: 600px) {
    .story-article h1 { font-size: 1.7rem; }
    .story-article th, .story-article td { padding: 10px 8px; }
    .story-article .gallery { grid-template-columns: 1fr; }
    .story-article .figure-right { float: none; display: block; width: 100%; margin: 10px 0 16px; }
}
