
/*
 * WEBoracle offentlig design V1B
 * Hero-alignment-fix V1C: full bredde HERO, realistisk laptop-visual, bedre headline-brytning og mykere bildekanter.
 */
:root {
    --wo-bg: #f4f6f8;
    --wo-ink: #111827;
    --wo-muted: #6b7280;
    --wo-line: #dbe1e8;
    --wo-dark: #07111c;
    --wo-dark-2: #0b1521;
    --wo-panel: #ffffff;
    --wo-copper: #df7902;
    --wo-copper-2: #f09a5b;
    --wo-blue: #2f5ca8;
    --wo-green: #43925a;
    --wo-shadow: 0 18px 45px rgba(10, 20, 30, 0.12);
    --wo-radius: 14px;
    --wo-max: 1560px;
}

html { scroll-behavior: smooth; }
body {
    background: var(--wo-bg) !important;
    color: var(--wo-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.site-wrapper { background: var(--wo-bg); min-height: 100vh; }
#main-content-container { background: var(--wo-bg); }
a { color: inherit; }

.wo-modern-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 12, 20, 0.96) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.22);
}
.wo-modern-header__inner {
    max-width: var(--wo-max);
    margin: 0 auto;
    min-height: 76px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 30px;
}
.wo-modern-logo {
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    letter-spacing: -0.04em;
    white-space: nowrap;
    font-weight: 800;
    font-size: 29px;
    line-height: 1;
}
.wo-modern-logo__web { color: #fff; }
.wo-modern-logo__oracle { color: var(--wo-copper-2); font-weight: 650; }
.wo-modern-logo__no { color: #e8edf4; font-size: .76em; font-weight: 650; letter-spacing: -0.03em; }
.wo-modern-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1 1 auto;
}
.wo-modern-nav a {
    color: rgba(255,255,255,0.86) !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
    line-height: 1;
    transition: color .18s ease, transform .18s ease;
}
.wo-modern-nav a:hover { color: #fff !important; transform: translateY(-1px); }
.wo-modern-nav__locked { display: inline-flex; align-items: center; gap: 6px; }
.wo-modern-header__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.wo-modern-search {
    width: 250px;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 9px;
    padding: 0 13px;
    color: rgba(255,255,255,0.7);
}
.wo-modern-search input {
    width: 100%;
    border: 0;
    background: transparent;
    outline: 0;
    color: #fff;
    font: inherit;
    font-size: 13px;
}
.wo-modern-search input::placeholder { color: rgba(255,255,255,0.55); }
.wo-modern-btn {
    min-height: 42px;
    border-radius: 9px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    border: 1px solid rgba(255,255,255,0.14);
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    font-size: 13px;
}
.wo-modern-btn--ghost { background: rgba(255,255,255,0.03); color: #fff !important; }
.wo-modern-btn--primary {
    color: #fff !important;
    background: linear-gradient(135deg, var(--wo-copper), #ef8c45);
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 10px 22px rgba(223,121,2,0.22);
}
.wo-modern-user { display: inline-flex; align-items: center; gap: 9px; color:#fff; text-decoration:none; font-size:13px; font-weight:700; }
.wo-modern-user img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(223,121,2,.8); }
.wo-modern-mobile-btn { display:none; }

.wo-home-modern {
    background: var(--wo-bg);
    color: var(--wo-ink);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: -2rem;
    overflow: hidden;
}
.wo-home-hero {
    margin-top: -1px;
    min-height: 455px;
    background:
        radial-gradient(circle at 88% 56%, rgba(223,121,2,0.28), transparent 0.45%),
        radial-gradient(circle at 82% 52%, rgba(223,121,2,0.12), transparent 16%),
        linear-gradient(105deg, #07111c 0%, #0b1521 52%, #060d15 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.wo-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,.025), transparent 24%),
        repeating-linear-gradient(24deg, transparent 0 48%, rgba(223,121,2,0.055) 48.1% 48.3%, transparent 48.4%),
        repeating-linear-gradient(155deg, transparent 0 48%, rgba(255,255,255,.038) 48.1% 48.3%, transparent 48.4%);
    background-size: auto, 150px 150px, 210px 210px;
    opacity: .58;
}
.wo-home-hero__inner {
    max-width: 1560px;
    margin: 0 auto;
    padding: 54px 56px 92px;
    display: grid;
    grid-template-columns: minmax(760px, 1.08fr) minmax(560px, .92fr);
    gap: 44px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.wo-home-copy {
    max-width: 860px;
    padding-top: 8px;
}
.wo-home-kicker {
    color: var(--wo-copper-2);
    font-weight: 850;
    letter-spacing: .12em;
    font-size: 15px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.wo-home-hero h1 {
    max-width: 880px;
    font-size: clamp(46px, 3.35vw, 62px);
    line-height: 1.06;
    letter-spacing: -.058em;
    margin: 0 0 20px;
    color: #fff;
}
.wo-home-hero h1 span {
    display:block;
    white-space: nowrap;
}
.wo-home-hero p {
    max-width: 720px;
    color: rgba(255,255,255,.84);
    font-size: 18px;
    line-height: 1.62;
    margin: 0 0 30px;
}
.wo-home-actions { display:flex; gap:14px; flex-wrap:wrap; }
.wo-home-cta {
    height: 50px;
    padding: 0 32px;
    border-radius: 9px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none !important;
    font-weight:850;
    font-size:15px;
}
.wo-home-cta--primary { color:#fff !important; background:linear-gradient(135deg,var(--wo-copper),#ef8d45); box-shadow:0 12px 25px rgba(223,121,2,.24); }
.wo-home-cta--ghost { color:#fff !important; border:1px solid rgba(223,121,2,.82); background:rgba(255,255,255,.02); }
.wo-home-visual {
    min-height: 318px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    margin-right: -18px;
}
.wo-home-visual::before {
    content: "";
    position: absolute;
    inset: 6% 6% 8% 6%;
    background: radial-gradient(circle at 55% 55%, rgba(255,255,255,.06), transparent 58%);
    border-radius: 50%;
    opacity: .5;
    filter: blur(10px);
}
.wo-home-visual img {
    position: relative;
    display: block;
    width: min(100%, 690px);
    max-width: 690px;
    height: auto;
    margin-left: auto;
    filter: drop-shadow(0 24px 32px rgba(0, 0, 0, .42));
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, #000 7%, #000 94%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, #000 8%, #000 94%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent 0%, #000 7%, #000 94%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, #000 8%, #000 94%, transparent 100%);
    mask-composite: intersect;
}

.wo-home-stats {
    max-width: 1560px;
    margin: -36px auto 0;
    padding: 0 56px;
    position: relative;
    z-index: 2;
}
.wo-home-stats__panel {
    background:#fff;
    border:1px solid var(--wo-line);
    border-radius:10px;
    box-shadow:0 14px 30px rgba(10,20,30,.11);
    display:grid;
    grid-template-columns:repeat(5,1fr);
    overflow: hidden;
}
.wo-stat { min-height:88px; display:flex; align-items:center; justify-content:center; gap:15px; border-right:1px solid var(--wo-line); }
.wo-stat:last-child { border-right:0; }
.wo-stat__icon { color:#111827; font-weight:900; font-size:25px; }
.wo-stat__number { font-weight:900; font-size:21px; letter-spacing:.02em; }
.wo-stat__label { font-size:13px; color:#4b5563; }

.wo-section {
    max-width: 1360px;
    margin: 0 auto;
    padding: 32px 40px 0;
}
.wo-section__head { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-bottom:16px; }
.wo-section__head h2 { margin:0; font-size:18px; letter-spacing:-.02em; }
.wo-section__link { font-size:13px; font-weight:750; color:#111827; text-decoration:none; }
.wo-feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.wo-feature-card { background:#fff; border:1px solid var(--wo-line); border-radius:9px; padding:18px; min-height:130px; display:grid; grid-template-columns:70px 1fr; gap:14px; box-shadow:0 10px 25px rgba(15,23,42,.04); transition:transform .18s ease, box-shadow .18s ease; }
.wo-feature-card:hover { transform:translateY(-3px); box-shadow:0 16px 30px rgba(15,23,42,.09); }
.wo-feature-card__icon { width:58px; height:58px; border-radius:10px; display:grid; place-items:center; color:#fff; font-size:25px; font-weight:900; box-shadow:0 12px 24px rgba(0,0,0,.14); }
.wo-feature-card__icon--script { background:linear-gradient(135deg,#2f5ca8,#3d76d8); }
.wo-feature-card__icon--tutorial { background:linear-gradient(135deg,#3d8f56,#5bb673); }
.wo-feature-card__icon--article { background:linear-gradient(135deg,#df7902,#f28d46); }
.wo-feature-card__type { font-size:11px; text-transform:uppercase; font-weight:900; letter-spacing:.08em; color:var(--wo-blue); }
.wo-feature-card__type--tutorial { color:var(--wo-green); }
.wo-feature-card__type--article { color:var(--wo-copper); }
.wo-feature-card h3 { margin:3px 0 5px; font-size:16px; line-height:1.2; letter-spacing:-.02em; }
.wo-feature-card h3 a { text-decoration:none; color:#111827; }
.wo-feature-card p { margin:0 0 12px; color:#4b5563; font-size:13px; line-height:1.45; }
.wo-chips { display:flex; gap:6px; flex-wrap:wrap; }
.wo-chip { background:#edf1f5; color:#4b5563; border-radius:5px; padding:4px 9px; font-size:11px; font-weight:700; }
.wo-card-meta { grid-column:1 / -1; display:flex; justify-content:space-between; color:#6b7280; font-size:12px; padding-top:3px; }

.wo-forum-box { background:#fff; border:1px solid var(--wo-line); border-radius:9px; padding:16px; box-shadow:0 10px 25px rgba(15,23,42,.04); }
.wo-forum-box__head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.wo-forum-box__head h2 { margin:0; font-size:18px; display:flex; align-items:center; gap:8px; }
.wo-forum-list { display:grid; grid-template-columns:1fr 1fr; gap:8px 28px; }
.wo-forum-item { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:center; border-top:1px solid #edf1f5; padding-top:8px; }
.wo-forum-item h3 { margin:0 0 4px; font-size:13px; line-height:1.25; }
.wo-forum-item p { margin:0; color:#6b7280; font-size:12px; }
.wo-forum-item__badge { justify-self:end; color:#fff; background:#1f3b5a; border-radius:5px; padding:4px 8px; font-size:11px; font-weight:800; }

.wo-topics { display:flex; gap:8px; flex-wrap:wrap; }
.wo-topic { min-height:34px; display:inline-flex; align-items:center; gap:8px; border:1px solid var(--wo-line); background:#fff; color:#374151; border-radius:7px; padding:0 13px; text-decoration:none; font-size:12px; font-weight:750; box-shadow:0 8px 16px rgba(15,23,42,.03); }
.wo-topic span { color:var(--wo-copper); font-weight:900; }

.wo-modern-footer { margin-top:0; background:#07111c !important; color:#fff; padding:28px 24px 0; }
.wo-modern-footer__inner { max-width:1280px; margin:0 auto; display:grid; grid-template-columns:1.55fr .8fr .8fr .9fr 1.5fr; gap:40px; padding:0 16px 32px; }
.wo-modern-logo--footer { font-size:26px; margin-bottom:14px; }
.wo-modern-footer p { color:rgba(255,255,255,.72); line-height:1.55; font-size:14px; margin:0 0 16px; }
.wo-modern-footer__social { display:flex; gap:10px; }
.wo-modern-footer__social span { width:32px; height:32px; display:grid; place-items:center; border-radius:50%; background:rgba(255,255,255,.09); color:#fff; font-size:12px; font-weight:800; }
.wo-modern-footer h2 { margin:0 0 14px; font-size:15px; color:#fff; }
.wo-modern-footer__col a { display:block; color:rgba(255,255,255,.76); text-decoration:none; margin:0 0 9px; font-size:14px; }
.wo-modern-footer__newsletter form { display:flex; margin-top:13px; }
.wo-modern-footer__newsletter input { min-width:0; flex:1; height:38px; border:1px solid rgba(255,255,255,.12); border-right:0; border-radius:7px 0 0 7px; background:rgba(255,255,255,.05); color:#fff; padding:0 12px; outline:0; }
.wo-modern-footer__newsletter button { width:42px; border:0; border-radius:0 7px 7px 0; background:var(--wo-copper); color:#fff; font-size:21px; cursor:pointer; }
.wo-modern-footer__newsletter small { color:rgba(255,255,255,.58); }
.wo-modern-footer__bottom { max-width:1280px; margin:0 auto; border-top:1px solid rgba(255,255,255,.1); padding:18px 16px; display:flex; justify-content:space-between; gap:20px; color:rgba(255,255,255,.6); font-size:12px; }
.wo-modern-footer__bottom p { margin:0; font-size:12px; }
.wo-modern-footer__bottom nav { display:flex; gap:24px; align-items:center; flex-wrap:wrap; }
.wo-modern-footer__bottom a, .wo-modern-footer__bottom button { color:rgba(255,255,255,.72); text-decoration:none; background:transparent; border:0; padding:0; font:inherit; cursor:pointer; }

@media (max-width: 1100px) {
    .wo-modern-nav { display:none; }
    .wo-modern-search { display:none; }
    .wo-modern-mobile-btn { display:inline-flex; color:#fff; background:transparent; border:1px solid rgba(255,255,255,.18); border-radius:8px; height:40px; width:44px; align-items:center; justify-content:center; }
    .wo-home-modern { margin-top: -2rem; }
    .wo-home-hero__inner { grid-template-columns:1fr; padding:52px 24px 88px; }
    .wo-home-copy { max-width: 100%; }
    .wo-home-hero h1 span { white-space: normal; }
    .wo-home-visual { min-height: 250px; justify-content: center; }
    .wo-home-visual img { max-width: 620px; margin: 0 auto; }
    .wo-home-stats, .wo-section { padding-left:24px; padding-right:24px; }
    .wo-feature-grid, .wo-forum-list { grid-template-columns:1fr; }
    .wo-modern-footer__inner { grid-template-columns:1fr 1fr; }
}
@media (max-width: 720px) {
    .wo-modern-header__inner { padding:0 16px; gap:14px; }
    .wo-modern-btn--ghost { display:none; }
    .wo-home-modern { margin-top:-2rem; }
    .wo-home-hero { min-height: auto; }
    .wo-home-hero__inner { padding:40px 18px 76px; gap:24px; }
    .wo-home-kicker { font-size: 12px; }
    .wo-home-hero h1 { font-size: clamp(36px, 11vw, 48px); }
    .wo-home-hero h1 span { white-space: normal; }
    .wo-home-hero p { font-size: 16px; }
    .wo-home-visual { min-height: 180px; }
    .wo-home-stats { margin-top:-24px; padding:0 16px; }
    .wo-home-stats__panel { grid-template-columns:1fr; }
    .wo-stat { border-right:0; border-bottom:1px solid var(--wo-line); justify-content:flex-start; padding-left:24px; }
    .wo-stat:last-child { border-bottom:0; }
    .wo-section { padding:26px 16px 0; }
    .wo-feature-card { grid-template-columns:1fr; }
    .wo-modern-footer__inner { grid-template-columns:1fr; padding:0 0 28px; }
    .wo-modern-footer__bottom { flex-direction:column; padding-left:0; padding-right:0; }
}


/* ===== Public subpages redesign V1 ===== */
.wo-modern-nav a.is-active,
.wo-modern-nav a[aria-current="page"] { color:#fff !important; position:relative; }
.wo-modern-nav a.is-active::after,
.wo-modern-nav a[aria-current="page"]::after { content:""; position:absolute; left:0; right:0; bottom:-30px; height:2px; background: linear-gradient(90deg,var(--wo-copper),#f3a15f); border-radius:999px; }
.wo-modern-search button { display:none; }

.wo-public-shell { max-width: 1360px; margin: 0 auto; padding: 0 22px 56px; }
.wo-page-hero { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); background: linear-gradient(105deg,#07111c 0%,#0b1521 52%,#060d15 100%); color:#fff; position:relative; overflow:hidden; }
.wo-page-hero::before { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(255,255,255,.02), transparent 24%), repeating-linear-gradient(24deg, transparent 0 48%, rgba(223,121,2,0.055) 48.1% 48.3%, transparent 48.4%), repeating-linear-gradient(155deg, transparent 0 48%, rgba(255,255,255,.038) 48.1% 48.3%, transparent 48.4%); background-size:auto, 150px 150px, 210px 210px; opacity:.58; }
.wo-page-hero__inner { max-width: 1360px; margin:0 auto; padding: 38px 22px 34px; display:grid; grid-template-columns:minmax(0,1fr) minmax(280px, 420px); gap:32px; align-items:center; position:relative; z-index:1; }
.wo-page-hero__copy h1 { font-size: clamp(34px,3.5vw,58px); line-height:1.03; letter-spacing:-.05em; margin:0 0 10px; color:#fff; }
.wo-page-hero__copy p { margin:0; max-width:760px; font-size:18px; line-height:1.65; color:rgba(255,255,255,.82); }
.wo-breadcrumbs { display:flex; flex-wrap:wrap; gap:9px; align-items:center; margin-bottom:14px; font-size:13px; color:rgba(255,255,255,.72); }
.wo-breadcrumbs a { color:rgba(255,255,255,.78); text-decoration:none; }
.wo-breadcrumbs .sep { opacity:.48; }
.wo-page-hero__kicker { color: var(--wo-copper-2); font-weight: 850; letter-spacing: .12em; font-size: 13px; text-transform: uppercase; margin:0 0 16px; }
.wo-page-hero__actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:24px; }
.wo-pillbar { display:flex; gap:10px; flex-wrap:wrap; margin-top:20px; }
.wo-pill { min-height:42px; display:inline-flex; align-items:center; gap:10px; padding:0 16px; border-radius:12px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.03); color:#fff; text-decoration:none; font-weight:700; font-size:14px; }
.wo-pill.is-active, .wo-pill:hover { border-color: rgba(240,154,91,.75); }
.wo-code-panel { background: linear-gradient(180deg, rgba(19,31,46,.94), rgba(12,21,33,.98)); border:1px solid rgba(255,255,255,.08); border-radius:16px; padding:20px 20px 18px; box-shadow:0 26px 40px rgba(0,0,0,.26); min-height:220px; position:relative; }
.wo-code-panel::after { content:""; position:absolute; inset:-22% -18% auto auto; width:260px; height:260px; background: radial-gradient(circle, rgba(223,121,2,.2), transparent 62%); pointer-events:none; }
.wo-code-panel__dots { display:flex; gap:8px; margin-bottom:18px; }
.wo-code-panel__dots span { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.18); display:block; }
.wo-code-panel pre { margin:0; color:#bac7d8; font: 600 14px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space:pre-wrap; }
.wo-code-panel .kw { color:#7cb8ff; }
.wo-code-panel .fn { color:#f2a55f; }
.wo-code-panel .st { color:#7dcc78; }
.wo-code-panel .cm { color:#6e8299; }
.wo-page-body { padding-top: 20px; }
.wo-grid-main { display:grid; grid-template-columns: 260px minmax(0,1fr); gap:24px; align-items:start; }
.wo-sidebar-card, .wo-panel, .wo-detail-main, .wo-detail-sidecard, .wo-auth-card, .wo-empty, .wo-plain-card, .wo-forum-card, .wo-profile-card { background:#fff; border:1px solid #e4e8ee; border-radius:16px; box-shadow:0 8px 20px rgba(9,15,24,.04); }
.wo-sidebar-card, .wo-panel, .wo-detail-sidecard, .wo-empty, .wo-plain-card, .wo-forum-card, .wo-profile-card { padding:20px; }
.wo-filter-group + .wo-filter-group { margin-top:22px; padding-top:18px; border-top:1px solid #eceff4; }
.wo-filter-group h3 { margin:0 0 12px; font-size:14px; text-transform:uppercase; letter-spacing:.06em; color:#4b5a6c; }
.wo-filter-list { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.wo-filter-link { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 0; font-size:14px; color:#243243; text-decoration:none; }
.wo-filter-link .count { color:#6b7280; font-weight:700; }
.wo-filter-link.is-active { color:#0f172a; font-weight:800; }
.wo-filter-check { display:flex; align-items:center; gap:10px; color:#324254; font-size:14px; }
.wo-filter-check input { margin:0; }
.wo-panel + .wo-panel { margin-top:16px; }
.wo-feature { display:grid; grid-template-columns:84px minmax(0,1fr) auto; gap:18px; align-items:center; }
.wo-feature__icon, .wo-card__icon, .wo-miniicon { width:74px; height:74px; border-radius:18px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:33px; font-weight:800; box-shadow: inset 0 1px 0 rgba(255,255,255,.22); }
.wo-icon--blue { background:linear-gradient(180deg,#497ef0,#3c5fbe); }
.wo-icon--green { background:linear-gradient(180deg,#63ba78,#4a9b5e); }
.wo-icon--orange { background:linear-gradient(180deg,#f5a046,#d17d18); }
.wo-icon--teal { background:linear-gradient(180deg,#48b7c5,#2d8ea9); }
.wo-icon--purple { background:linear-gradient(180deg,#b56ce3,#8b4cd1); }
.wo-feature__meta small { display:block; color:#6ea76d; font-weight:800; letter-spacing:.08em; text-transform:uppercase; margin-bottom:6px; }
.wo-feature__meta h2 { margin:0 0 6px; font-size:38px; line-height:1.05; letter-spacing:-.04em; }
.wo-feature__meta p { margin:0; color:#556477; font-size:15px; line-height:1.55; }
.wo-feature__stats { display:flex; gap:30px; }
.wo-feature__stats div { display:flex; flex-direction:column; gap:4px; text-align:center; color:#6b7280; font-size:13px; }
.wo-feature__stats strong { color:#111827; font-size:25px; }
.wo-toolbar { display:grid; grid-template-columns:minmax(0,1fr) 190px 160px 180px auto; gap:12px; }
.wo-input, .wo-select, .wo-auth-card input, .wo-auth-card textarea, .wo-form-card input, .wo-form-card textarea, .wo-form-card select { width:100%; min-height:46px; border:1px solid #dfe5ec; background:#fff; border-radius:12px; padding:0 14px; font:inherit; color:#111827; }
.wo-auth-card textarea, .wo-form-card textarea { padding:12px 14px; min-height:140px; }
.wo-btn, .btn, .btn-action { min-height:46px; padding:0 18px; border-radius:12px; border:1px solid #d8dde6; background:#fff; color:#111827; text-decoration:none !important; display:inline-flex; align-items:center; justify-content:center; gap:8px; font-weight:800; font-size:14px; cursor:pointer; }
.wo-btn--primary, .btn-primary, .btn-action { color:#fff !important; background: linear-gradient(135deg,var(--wo-copper),#ef8d45); border-color: transparent; box-shadow:0 14px 24px rgba(223,121,2,.18); }
.wo-btn--dark { color:#fff !important; background:#101827; border-color:#101827; }
.wo-btn--ghost, .btn-secondary { background:#fff; color:#111827 !important; }
.wo-btn--full { width:100%; }
.wo-cards { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:18px; }
.wo-card { background:#fff; border:1px solid #e4e8ee; border-radius:16px; padding:18px; box-shadow:0 8px 20px rgba(9,15,24,.04); display:flex; flex-direction:column; min-height:250px; }
.wo-card__top { display:flex; gap:14px; align-items:flex-start; margin-bottom:14px; }
.wo-card__meta { flex:1; }
.wo-label { display:inline-block; color:#5a7fe0; font-weight:800; letter-spacing:.08em; text-transform:uppercase; font-size:12px; margin-bottom:6px; }
.wo-card h3 { margin:0 0 8px; font-size:28px; line-height:1.1; letter-spacing:-.03em; }
.wo-card--list h3 { font-size:26px; }
.wo-card__title { margin:0 0 6px; font-size:28px; line-height:1.08; letter-spacing:-.03em; }
 .wo-card__meta h3, .wo-card__meta .wo-card__title { font-size:26px; }
.wo-card__desc, .wo-card p { margin:0; color:#59697b; font-size:14px; line-height:1.6; }
.wo-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.wo-tag { display:inline-flex; align-items:center; min-height:26px; padding:0 10px; border-radius:999px; background:#f0f3f7; color:#475569; font-size:12px; font-weight:700; }
.wo-card__footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; padding-top:16px; color:#667387; font-size:13px; }
.wo-card__stats { display:flex; gap:12px; flex-wrap:wrap; }
.wo-card__actions { display:flex; gap:10px; }
.wo-pagination { display:flex; align-items:center; justify-content:center; gap:10px; margin-top:18px; }
.wo-pagechip { min-width:42px; height:42px; border-radius:12px; border:1px solid #dfe4eb; background:#fff; color:#111827; display:inline-flex; align-items:center; justify-content:center; text-decoration:none; font-weight:800; }
.wo-pagechip.is-active { background:#101827; color:#fff; border-color:#101827; }
.wo-content-grid { display:grid; grid-template-columns: minmax(0,1fr) 340px; gap:24px; align-items:start; }
.wo-detail-main { padding:0; overflow:hidden; }
.wo-detail-cover { width:100%; aspect-ratio:16/6; object-fit:cover; display:block; background:linear-gradient(120deg,#112033,#0b1521); }
.wo-detail-main__inner { padding:28px 30px 30px; }
.wo-detail-main__inner h1 { margin:0 0 14px; font-size:46px; line-height:1.06; letter-spacing:-.05em; }
.wo-meta-row { display:flex; flex-wrap:wrap; gap:14px; align-items:center; color:#677788; font-size:14px; margin-bottom:16px; }
.wo-authorline { display:flex; align-items:center; gap:12px; }
.wo-avatar { width:42px; height:42px; border-radius:50%; object-fit:cover; background:#e4e8ef; border:2px solid rgba(223,121,2,.32); }
.wo-lead { color:#4c5c70; font-size:18px; line-height:1.75; margin-bottom:22px; }
.wo-prose { color:#29364a; font-size:16px; line-height:1.82; }
.wo-prose h2, .wo-prose h3, .wo-prose h4 { color:#111827; margin-top:1.7em; margin-bottom:.55em; line-height:1.2; }
.wo-prose pre, .wo-prose code, .tutorial-body pre, .article-body pre { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; }
.wo-prose pre, .tutorial-body pre, .article-body pre { background:#0e1726; color:#dce7f5; padding:16px 18px; border-radius:14px; overflow:auto; }
.wo-prose blockquote, .tutorial-body blockquote, .article-body blockquote { margin:1.4em 0; padding:14px 18px; border-left:4px solid #f0a160; background:#fbf7f2; color:#465669; }
.wo-detail-sidecard h3 { margin:0 0 14px; font-size:18px; }
.wo-statlist { display:grid; gap:12px; }
.wo-statlist li { list-style:none; display:flex; justify-content:space-between; gap:10px; color:#556477; font-size:14px; }
.wo-related-list { display:grid; gap:12px; }
.wo-related-item { display:flex; gap:12px; align-items:flex-start; text-decoration:none; color:inherit; }
.wo-related-item h4 { margin:0 0 4px; font-size:15px; }
.wo-related-item p { margin:0; font-size:13px; color:#64748b; line-height:1.5; }
.wo-forum-categories { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:18px; }
.wo-forum-category { background:#fff; border:1px solid #e4e8ee; border-radius:16px; padding:22px; text-decoration:none; color:inherit; box-shadow:0 8px 20px rgba(9,15,24,.04); }
.wo-forum-category h2 { margin:12px 0 8px; font-size:23px; letter-spacing:-.03em; }
.wo-forum-category p { margin:0 0 14px; color:#5b6a7c; line-height:1.6; }
.wo-forum-stats { display:flex; gap:18px; flex-wrap:wrap; color:#64748b; font-size:13px; }
.wo-thread-list { display:grid; gap:14px; }
.wo-thread-row { background:#fff; border:1px solid #e4e8ee; border-radius:16px; padding:20px; display:grid; grid-template-columns:minmax(0,1fr) 190px 190px; gap:18px; align-items:center; }
.wo-thread-row h3 { margin:0 0 6px; font-size:20px; }
.wo-thread-row p { margin:0; color:#677788; line-height:1.5; }
.wo-thread-meta, .wo-thread-last { color:#64748b; font-size:13px; }
.wo-post { background:#fff; border:1px solid #e4e8ee; border-radius:16px; padding:24px; display:grid; grid-template-columns:220px minmax(0,1fr); gap:22px; box-shadow:0 8px 20px rgba(9,15,24,.04); }
.wo-post-user { border-right:1px solid #edf1f5; padding-right:18px; }
.wo-post-user .wo-avatar { width:74px; height:74px; display:block; margin-bottom:12px; }
.wo-rolebadge { display:inline-flex; min-height:28px; padding:0 10px; border-radius:999px; background:#eff4fb; color:#365781; font-size:12px; font-weight:800; }
.wo-replies { display:grid; gap:16px; }
.wo-search-group { display:grid; gap:18px; }
.wo-search-section h2 { margin:0 0 14px; font-size:24px; }
.wo-auth-wrap { max-width: 520px; margin: 40px auto; padding: 0 20px 60px; }
.wo-auth-card { padding:28px; }
.wo-auth-card h1 { margin:0 0 10px; font-size:38px; letter-spacing:-.04em; }
.wo-auth-card p { margin:0 0 20px; color:#64748b; line-height:1.65; }
.wo-auth-card .form-group, .wo-form-group { display:grid; gap:8px; margin-bottom:15px; }
.wo-auth-card label, .wo-form-group label { color:#243243; font-size:14px; font-weight:700; }
.wo-auth-muted { text-align:center; color:#64748b; margin-top:18px; }
.wo-legal { display:grid; gap:18px; }
.wo-legal section, .wo-plain-card section { border-top:1px solid #edf0f4; padding-top:16px; }
.wo-legal section:first-child, .wo-plain-card section:first-child { border-top:0; padding-top:0; }
.wo-legal h2, .wo-plain-card h2 { margin:0 0 10px; font-size:24px; }
.wo-legal p, .wo-plain-card p, .wo-plain-card li { color:#556477; line-height:1.8; }
.wo-profile-hero { display:grid; grid-template-columns:120px minmax(0,1fr); gap:24px; align-items:center; }
.wo-profile-hero .wo-avatar { width:120px; height:120px; }
.wo-profile-links { display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }

@media (max-width: 1200px){
    .wo-page-hero__inner, .wo-content-grid { grid-template-columns:1fr; }
    .wo-grid-main { grid-template-columns:1fr; }
    .wo-cards, .wo-forum-categories { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .wo-thread-row { grid-template-columns:minmax(0,1fr); }
    .wo-toolbar { grid-template-columns: minmax(0,1fr) 1fr 1fr; }
    .wo-feature { grid-template-columns:84px minmax(0,1fr); }
    .wo-feature__stats { grid-column: 1 / -1; justify-content:flex-start; }
}
@media (max-width: 880px){
    .wo-page-hero__copy h1 { font-size: clamp(34px, 11vw, 48px); }
    .wo-cards, .wo-forum-categories { grid-template-columns:1fr; }
    .wo-post { grid-template-columns:1fr; }
    .wo-post-user { border-right:0; border-bottom:1px solid #edf1f5; padding-right:0; padding-bottom:16px; }
    .wo-toolbar { grid-template-columns:1fr; }
}
@media (max-width: 760px){
    .wo-modern-header__inner { gap:18px; }
    .wo-modern-nav { display:none; }
    .wo-modern-search { display:none; }
    .wo-modern-mobile-btn { display:inline-flex; }
    .wo-feature { grid-template-columns:1fr; }
    .wo-feature__icon { width:66px; height:66px; }
    .wo-detail-main__inner h1 { font-size:36px; }
}


/* ===== Public redesign fix V1B ===== */

/* Header role-gated controlpanel remains styled only when present */
.wo-modern-nav__locked { color: rgba(255,255,255,.86) !important; text-decoration:none; }

/* Global contrast fixes */
.wo-home-modern .wo-section__head h2,
.wo-home-modern .wo-forum-box__head h2,
.wo-home-modern .wo-section h2,
.wo-section__head h2,
.wo-forum-box h2,
.wo-forum-box h3,
.wo-topics h2 { color:#111827 !important; }
.wo-home-modern .wo-section__link,
.wo-forum-box a,
.wo-topic,
.wo-feature-card h3 a { color:#111827 !important; }
.wo-forum-box p,
.wo-forum-item p,
.wo-card-meta,
.wo-stat__label,
.wo-feature-card p { color:#5b6677 !important; }
.wo-home-modern .wo-feature-card,
.wo-home-modern .wo-forum-box,
.wo-home-modern .wo-topic,
.wo-home-modern .wo-home-stats__panel { color:#111827; }
.wo-home-modern .wo-section { color:#111827; }
.wo-home-modern .wo-section__head { color:#111827; }
.wo-home-modern .wo-forum-item h3 a { color:#111827 !important; }
.wo-home-modern .wo-forum-box { min-height: 118px; }

/* Script/listing page: closer to approved reference */
.wo-sidebar-card { position: sticky; top: 96px; }
.wo-filter-link:hover { background:#f6f8fb; margin-left:-8px; margin-right:-8px; padding-left:8px; padding-right:8px; border-radius:8px; text-decoration:none; }
.wo-card { border-radius:14px; }
.wo-card__title { font-size:22px !important; }
.wo-card__actions .wo-btn { min-width: 138px; }
.wo-pagination { padding-bottom: 10px; }

/* Footer newsletter button alignment */
.wo-modern-footer__newsletter form {
    display:flex;
    align-items:stretch;
    height:38px;
}
.wo-modern-footer__newsletter input {
    height:38px !important;
    min-height:38px !important;
    line-height:38px;
}
.wo-modern-footer__newsletter button {
    height:38px !important;
    min-height:38px !important;
    line-height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    margin:0;
}

/* Login dropdown: under header, never above it */
.wo-modern-header { z-index: 1000; }
.login-dropdown.wo-login-dropdown {
    position: fixed !important;
    top: 76px !important;
    right: max(28px, calc((100vw - var(--wo-max)) / 2 + 24px)) !important;
    width: 300px;
    background: #334052;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 24px 48px rgba(0,0,0,.32);
    z-index: 999 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    overflow: hidden;
}
.login-dropdown.wo-login-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.wo-login-dropdown__content {
    padding: 20px 20px 16px;
}
.wo-login-dropdown__group { margin:0 0 14px; }
.wo-login-dropdown .dropdown-input {
    width: 100%;
    height: 46px;
    min-height: 46px;
    border: 1px solid rgba(159,190,231,.72);
    background: #2f3032;
    color: #ffffff;
    border-radius: 3px;
    padding: 0 12px;
    font: inherit;
    font-size: 14px;
    outline: 0;
}
.wo-login-dropdown .dropdown-input::placeholder { color: rgba(255,255,255,.45); }
.wo-login-dropdown .dropdown-input:focus {
    border-color: #86a9df;
    box-shadow: 0 0 0 2px rgba(134,169,223,.18);
}
.wo-login-dropdown__actions {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-top: 4px;
}
.wo-login-dropdown__forgot {
    color: rgba(255,255,255,.72) !important;
    text-decoration:none !important;
    font-size: 13px;
}
.wo-login-dropdown__submit {
    min-width: 116px;
    height: 46px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--wo-copper), #ef9a53);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
    cursor:pointer;
}
.wo-login-dropdown__register {
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid rgba(255,255,255,.08);
    text-align:center;
    font-size: 13px;
}
.wo-login-dropdown__register span { color:rgba(255,255,255,.46); }
.wo-login-dropdown__register a { color:#f3a15f !important; font-weight:850; text-decoration:none !important; }
.wo-login-dropdown__status {
    margin-bottom:10px;
    padding:10px;
    border-radius:6px;
    font-size:.9rem;
    text-align:center;
    color:#fff;
    background:rgba(0,0,0,.18);
}

/* Better form/button contrast */
.wo-btn--ghost, .btn-secondary { color:#111827 !important; }
.wo-btn--primary, .btn-primary, .btn-action { color:#fff !important; }

/* Mobile login dropdown */
@media (max-width: 760px) {
    .login-dropdown.wo-login-dropdown {
        left: 16px !important;
        right: 16px !important;
        width: auto;
        top: 76px !important;
    }
}


/* ===== Public design fix V1C ===== */

/* Register checkbox: normal size, left aligned next to text */
.wo-auth-card input[type="checkbox"],
.wo-form-card input[type="checkbox"],
.wo-register-terms input[type="checkbox"] {
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    padding: 0 !important;
    margin: 0 !important;
    accent-color: var(--wo-copper);
}
.wo-register-terms {
    margin: 18px 0 18px !important;
}
.wo-register-terms__label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: auto !important;
    color: #111827 !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    cursor: pointer;
}
.wo-register-terms__label span {
    display: inline-block;
}

/* Logged-in display name must stay visible and orange, also on hover */
.wo-modern-user span,
.wo-modern-user:hover span,
.wo-modern-user:focus span {
    color: var(--wo-copper-2) !important;
}
.wo-modern-user:hover,
.wo-modern-user:focus {
    color: var(--wo-copper-2) !important;
    text-decoration: none !important;
}

/* Tutorials statistic icon: graduation cap */
.wo-stat__icon--cap {
    font-size: 24px;
    line-height: 1;
    color: #111827;
    transform: translateY(-1px);
}

/* Restore richer hero visual composition */
.wo-home-visual {
    min-height: 355px !important;
    justify-content: flex-end !important;
    overflow: visible !important;
}
.wo-home-visual::before {
    content: "";
    position: absolute;
    inset: 0 -12% 0 -18%;
    background:
        radial-gradient(circle at 58% 45%, rgba(223,121,2,.18), transparent 34%),
        radial-gradient(circle at 75% 56%, rgba(255,132,45,.18), transparent 24%);
    filter: blur(12px);
    opacity: .9;
}
.wo-home-visual img {
    width: min(100%, 760px) !important;
    max-width: 760px !important;
    transform: translateX(6px) translateY(0);
    filter: drop-shadow(0 26px 38px rgba(0,0,0,.48)) !important;
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, #000 5%, #000 96%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, #000 5%, #000 94%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent 0%, #000 5%, #000 96%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, #000 5%, #000 94%, transparent 100%);
    mask-composite: intersect;
}
.wo-home-hero__inner {
    grid-template-columns: minmax(640px, 0.98fr) minmax(610px, 1.02fr) !important;
}
@media (max-width: 1100px) {
    .wo-home-hero__inner { grid-template-columns: 1fr !important; }
    .wo-home-visual img { max-width: 680px !important; transform: none; }
}


/* ===== Public design fix V1D ===== */

/* Restore approved hero visual more faithfully */
.wo-home-visual::before {
    display: none !important;
}
.wo-home-visual {
    min-height: 350px !important;
    align-items: center !important;
    justify-content: flex-end !important;
}
.wo-home-visual img {
    width: min(100%, 690px) !important;
    max-width: 690px !important;
    transform: translateX(-6px) translateY(6px) !important;
    filter: drop-shadow(0 22px 36px rgba(0,0,0,.34)) !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

/* Featured scripts / cards: enforce visible headings */
.wo-feature__meta h2,
.wo-feature__meta h3,
.wo-card__title,
.wo-card__meta h3,
.wo-card h3,
.wo-card h4,
.wo-detail-main h1,
.wo-detail-main h2,
.wo-detail-main h3,
.wo-detail-main h4 {
    color: #111827 !important;
}

/* Right sidebar headings + related item text */
.wo-detail-sidecard h3,
.wo-detail-sidecard h4,
.wo-detail-sidecard strong,
.wo-detail-sidecard a,
.wo-related-item,
.wo-related-item h4 {
    color: #111827 !important;
}
.wo-statlist li,
.wo-detail-sidecard p,
.wo-related-item p,
.wo-authorline span,
.wo-card__desc,
.wo-feature__meta p {
    color: #5a697c !important;
}
.wo-related-item {
    text-decoration: none !important;
}

/* Script/tut/article top link line breadcrumbs */
.wo-breadcrumbs,
.wo-breadcrumbs a,
.wo-breadcrumbs span {
    color: rgba(255,255,255,.84) !important;
}

/* Code panel copy button */
.wo-code-panel {
    overflow: hidden;
}
.wo-code-panel__copy {
    position: absolute;
    right: 16px;
    top: 16px;
    z-index: 3;
    min-height: 32px;
    padding: 0 14px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    background: rgba(255,255,255,.10);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0,0,0,.14);
}
.wo-code-panel__copy:hover {
    background: rgba(255,255,255,.16);
}
.wo-code-panel pre {
    margin-top: 16px;
    padding-top: 10px;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Sidebar CTA button stack; prevents overflow */
.wo-side-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
}
.wo-side-actions .wo-btn {
    width: 100%;
}

/* Card footer/button alignment */
.wo-card__footer {
    align-items: flex-end !important;
    flex-wrap: wrap !important;
}
.wo-card__stats {
    flex: 1 1 170px;
}
.wo-card__actions {
    flex: 0 0 auto;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 10px;
}
.wo-card__actions .wo-btn {
    width: 100%;
}
@media (max-width: 980px) {
    .wo-card__actions {
        width: 100%;
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 620px) {
    .wo-card__actions {
        grid-template-columns: 1fr;
    }
}

/* Related items spacing + visibility */
.wo-related-list {
    gap: 14px !important;
}
.wo-related-item > div {
    min-width: 0;
}
.wo-related-item h4 {
    margin: 0 0 4px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
}

/* Stat list contrast */
.wo-statlist li span { color: #59697b !important; }
.wo-statlist li strong { color: #111827 !important; }

/* Maintain orange user name */
.wo-modern-user span,
.wo-modern-user:hover span,
.wo-modern-user:focus span {
    color: var(--wo-copper-2) !important;
}


/* ===== Public design fix V1E ===== */
/* Script cards: stack Vis detaljer / Last ned vertically to prevent overflow on all widths. */
.wo-card .wo-card__actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
}
.wo-card .wo-card__actions .wo-btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}
.wo-card .wo-card__footer {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    align-items: stretch !important;
}
.wo-card .wo-card__stats {
    width: 100% !important;
    justify-content: space-between !important;
}


/* ===== Public design fix V1F ===== */
/* Global public text wrapping guard.
   This prevents long unbroken titles, slugs, labels, URLs and code-like words
   from overflowing cards now and on future public pages using this design CSS. */
.wo-home-modern,
.wo-public-shell,
.wo-page-body,
.wo-grid-main,
.wo-content-grid,
.wo-panel,
.wo-card,
.wo-feature,
.wo-detail-main,
.wo-detail-sidecard,
.wo-sidebar-card,
.wo-forum-card,
.wo-profile-card,
.wo-auth-card,
.wo-plain-card,
.wo-empty {
    min-width: 0 !important;
}

.wo-home-modern h1,
.wo-home-modern h2,
.wo-home-modern h3,
.wo-home-modern h4,
.wo-home-modern p,
.wo-home-modern a,
.wo-public-shell h1,
.wo-public-shell h2,
.wo-public-shell h3,
.wo-public-shell h4,
.wo-public-shell h5,
.wo-public-shell h6,
.wo-public-shell p,
.wo-public-shell a,
.wo-public-shell span,
.wo-public-shell strong,
.wo-public-shell small,
.wo-public-shell li,
.wo-page-body h1,
.wo-page-body h2,
.wo-page-body h3,
.wo-page-body h4,
.wo-page-body p,
.wo-page-body a,
.wo-page-body span,
.wo-card__title,
.wo-card__desc,
.wo-feature__meta h2,
.wo-feature__meta p,
.wo-related-item h4,
.wo-related-item p,
.wo-filter-link,
.wo-tag,
.wo-chip,
.wo-statlist li,
.wo-prose,
.wo-prose * {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    hyphens: auto;
    min-width: 0 !important;
    max-width: 100%;
}

.wo-card__meta,
.wo-feature__meta,
.wo-related-item > div,
.wo-statlist li > *,
.wo-filter-link span,
.wo-tags,
.wo-chips {
    min-width: 0 !important;
    max-width: 100%;
}

.wo-card__title,
.wo-feature__meta h2 {
    line-height: 1.08 !important;
}

.wo-card__desc,
.wo-feature__meta p {
    line-height: 1.55 !important;
}

/* Keep code readable but never wider than its panel. */
.wo-code-panel,
.wo-code-panel pre,
.wo-prose pre,
.wo-prose code {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    white-space: pre-wrap !important;
}


/* ===== Public design fix V1G ===== */
/* Copy button de-duplication guard.
   The page template no longer prints its own extra copy button.
   This CSS also hides a second immediate copy button if both old/template and JS buttons appear. */
.wo-code-panel__copy + .wo-code-panel__copy,
.wo-code-panel button[aria-label*="Kopier"] + .wo-code-panel__copy,
.wo-code-panel .copy-code-btn + .wo-code-panel__copy {
    display: none !important;
}


/* ===== Public header + codepanel fix V1I ===== */

/* Code panel copy button: allow only one visible copy button per panel.
   Some pages already inject a copy button through existing JS; older template code added another.
   Keep the first one and suppress duplicates even when they are not adjacent. */
.wo-code-panel button:nth-of-type(n+2),
.wo-code-panel .wo-code-panel__copy:nth-of-type(n+2),
.wo-code-panel .copy-code-btn:nth-of-type(n+2),
.wo-code-panel [data-copy-button]:nth-of-type(n+2) {
    display: none !important;
}

/* If copy buttons are wrapped in their own small containers, hide duplicate containers too. */
.wo-code-panel .wo-code-panel__copy-wrap:nth-of-type(n+2),
.wo-code-panel .copy-code-wrap:nth-of-type(n+2) {
    display: none !important;
}

/* Keep the remaining copy button correctly placed. */
.wo-code-panel button,
.wo-code-panel .wo-code-panel__copy,
.wo-code-panel .copy-code-btn {
    z-index: 5;
}

/* Header safety: Webstatistics must never appear as a visible public top-nav item.
   The PHP header removes it, this CSS is only a defensive fallback against stale cache. */
.wo-modern-nav a[data-page="webstatistics"],
.wo-modern-nav a[href$="/webstatistics"],
.wo-modern-nav a[href$="webstatistics"] {
    display: none !important;
}


/* ===== WEBoracle forum contrast fix ===== */
.wo-forum-category,
.wo-forum-category:visited,
.wo-forum-category:hover,
.wo-forum-category:focus,
.wo-forum-card,
.wo-forum-card:visited,
.wo-forum-card:hover,
.wo-forum-card:focus {
    color: #111827 !important;
    text-decoration: none !important;
}
.wo-forum-category h1,
.wo-forum-category h2,
.wo-forum-category h3,
.wo-forum-category h4,
.wo-forum-category strong,
.wo-forum-card h1,
.wo-forum-card h2,
.wo-forum-card h3,
.wo-forum-card h4,
.wo-forum-card strong {
    color: #111827 !important;
}
.wo-forum-category p,
.wo-forum-category span,
.wo-forum-category small,
.wo-forum-card p,
.wo-forum-card span,
.wo-forum-card small,
.wo-forum-meta,
.wo-forum-desc {
    color: #556477 !important;
}
.wo-forum-category *,
.wo-forum-card * {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
}
