:root {
    /* Septima colours (septima.dk) */
    --brand: #107E65;
    --brand-dark: #234a5d;
    --brand-light: #F0F5EF;
    --brand-grey: #C9D5C8;
    --accent: #107E65;
    --text: #3f3f3f;
    --heading: #1D1E1F;
    --muted: #5f6b66;
    --bg: #f3f3f3;
    --card: #ffffff;
    --radius: 4px;
    --shadow: 0 1px 4px rgba(29, 30, 31, 0.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a { color: var(--brand); }
h1, h2, h3 { color: var(--heading); }
img { max-width: 100%; height: auto; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 2.5rem); }

/* Header */
.site-header { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; flex-wrap: wrap; }
.logo { text-decoration: none; color: #fff; display: flex; align-items: center; gap: .75rem; font-weight: 700; }
.logo img { height: 34px; width: auto; display: block; }
.logo .logo-text { font-size: 1rem; border-left: 1px solid rgba(255,255,255,.45); padding-left: .75rem; font-weight: 400; }
.main-nav ul { list-style: none; display: flex; gap: .1rem; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a { display: block; padding: .5rem .7rem; text-decoration: none; color: #fff; font-size: .95rem; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a.active { border-bottom-color: #fff; }
.demo-banner { background: var(--brand-dark); color: #fff; font-size: .9rem; padding: .45rem 0; }
.demo-banner a { color: #fff; }

/* Hero */
.hero { background: var(--brand-light); color: var(--text); padding: 4.5rem 0 5.5rem; border-bottom: 1px solid var(--brand-grey); }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 1rem; max-width: 20ch; line-height: 1.15; color: var(--heading); }
.hero .lead { font-size: 1.2rem; max-width: 60ch; color: var(--text); margin-bottom: 1.75rem; }

.button { display: inline-block; background: var(--brand); color: #fff; padding: .75rem 1.6rem; border-radius: 2px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; text-transform: uppercase; letter-spacing: .03em; }
.button:hover { background: #0c6551; }

/* Page header */
.page-header { background: var(--brand-light); padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--brand-grey); }
.page-header h1 { margin: .25rem 0 .5rem; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0; }
.breadcrumb { font-size: .9rem; color: var(--muted); display: flex; gap: .4rem; flex-wrap: wrap; }
.breadcrumb a { text-decoration: none; }
time { color: var(--muted); font-size: .9rem; }

main { padding: 2.5rem 0 4rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin: 0 0 2.5rem; }
main > .cards:first-child { margin-top: -4.5rem; }
.card { background: var(--card); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .15s; border-top: 4px solid var(--brand); }
.card:hover { transform: translateY(-3px); }
.card h3 { margin-top: 0; color: var(--heading); }
.card .more { color: var(--brand); font-weight: 600; }

/* Content layout */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .content-grid { grid-template-columns: 1fr; } }
.content-grid > article, .narrow .rte { background: var(--card); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.sidebar { background: var(--card); padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.sidebar h3 { margin-top: 0; }
.subnav { list-style: none; padding: 0; margin: 0 0 1rem; }
.subnav li { padding: .5rem 0; border-bottom: 1px solid var(--brand-light); }
.subnav a { text-decoration: none; }
.subnav a.active { font-weight: 700; }

/* Rich text */
.rte > :first-child { margin-top: 0; }
.rte h2 { color: var(--heading); margin-top: 2rem; }
.rte img { border: 1px solid var(--brand-grey); border-radius: var(--radius); box-shadow: var(--shadow); }
.rte table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .95rem; }
.rte th, .rte td { text-align: left; padding: .5rem .65rem; border-bottom: 1px solid var(--brand-grey); vertical-align: top; }
.rte th { background: var(--brand-light); }
.rte code { background: var(--bg); padding: .1rem .3rem; border-radius: 3px; font-size: .9em; }
.rte pre { background: var(--heading); color: #f3f3f3; padding: 1rem; border-radius: var(--radius); overflow-x: auto; }
.rte pre code { background: none; padding: 0; }
.rte blockquote { margin: 1rem 0; padding: .75rem 1rem; background: var(--brand-light); border-left: 4px solid var(--brand); }
/* Septima widgets inserted through the RTE */
.rte [data-widget-url], .septima-widget { margin: 1.5rem 0; min-height: 300px; border-radius: var(--radius); overflow: hidden; }

/* Footer */
.site-footer { background: var(--brand-dark); color: #e2ebee; padding: 3rem 0; }
.site-footer .footer-logo { height: 30px; width: auto; margin-bottom: .75rem; }
.site-footer a { color: #fff; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.site-footer ul { list-style: none; padding: 0; margin: .5rem 0 0; }
