/* De offentlige verktøysidene og personvern (site/build.py). Bygger på landing.css og styles.css. */
.t-main { background: #F6F7FC; }
.t-hero { padding: 36px 0 28px; background: linear-gradient(180deg, #fff, #F6F7FC); border-bottom: 1px solid #ECEEF5; }
.t-crumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13.5px; color: #6B7286; margin-bottom: 14px; }
.t-crumbs a { color: #4F46E5; text-decoration: none; } .t-crumbs a:hover { text-decoration: underline; }
.t-hero h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 10px; color: #0D1528; }
.t-lead { font-size: 18px; line-height: 1.55; color: #3D4354; max-width: 760px; margin: 0 0 22px; }
.t-updated { font-size: 14px; color: #6B7286; margin: -10px 0 0; }
.t-tool { background: #fff; border: 1px solid #E3E6EF; border-radius: 18px; padding: 18px; box-shadow: 0 1px 2px rgba(16, 24, 58, .04), 0 10px 30px rgba(16, 24, 58, .06); }
.t-form { display: flex; gap: 10px; flex-wrap: wrap; }
.t-in { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; border: 1.5px solid #D6DAE6; border-radius: 12px; padding: 0 12px; background: #fff; min-height: 50px; }
.t-in:focus-within { border-color: #5B4FE9; box-shadow: 0 0 0 3px rgba(91, 79, 233, .14); }
.t-in input, .t-in select { border: 0; outline: 0; font: inherit; font-size: 16px; width: 100%; background: transparent; color: #0D1528; }
.t-in.small { flex: 0 1 200px; } .t-in select { cursor: pointer; align-self: stretch; min-height: 24px; }
.t-in .ms { color: #666D82; }
.t-form .x-btn { min-height: 50px; }
/* minmax(0, 1fr): a grid item's min-width is its content by default, so a wide table or long record would stretch the
   column past the screen (and landing.css clips it). With 0 the column keeps the container width and .t-table scrolls. */
.t-out { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.t-out > *, .t-out2 > *, .t-gen > * { min-width: 0; }
.t-out:empty { display: none; }
.t-loading { display: flex; align-items: center; gap: 10px; color: #5B6275; padding: 8px 4px; }
.t-status { display: flex; gap: 12px; align-items: flex-start; border-radius: 14px; padding: 14px 16px; border: 1px solid; }
.t-status > div { min-width: 0; overflow-wrap: anywhere; }
.t-status > .ms { font-size: 26px; }
.t-status b { font-size: 17px; color: #0D1528; } .t-status p { margin: 4px 0 0; color: #3D4354; line-height: 1.5; }
.t-status.ok { background: #ECFDF3; border-color: #ABEFC6; } .t-status.ok > .ms { color: #12A150; }
.t-status.warn { background: #FFF8EB; border-color: #FEDF89; } .t-status.warn > .ms { color: #DC6803; }
.t-status.bad { background: #FEF3F2; border-color: #FECDCA; } .t-status.bad > .ms { color: #D92D20; }
.t-status.info { background: #F2F4FF; border-color: #D9DCFF; } .t-status.info > .ms { color: #5B4FE9; }
.t-block { background: #fff; border: 1px solid #E3E6EF; border-radius: 14px; padding: 16px 18px; }
.t-block h3 { margin: 0 0 10px; font-size: 15px; color: #0D1528; }
.t-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; background: #F6F7FC; border: 1px solid #E3E6EF; border-radius: 10px; padding: 10px 12px; margin: 6px 0; }
.t-copy small { grid-column: 1 / -1; color: #6B7286; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.t-copy code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; color: #0D1528; word-break: break-all; }
.t-copy-b { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 600; border: 1px solid #D6DAE6; background: #fff; border-radius: 8px; padding: 6px 10px; cursor: pointer; color: #3D4354; }
.t-copy-b.done { border-color: #ABEFC6; color: #12A150; }
.t-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: #F2F3F8; border-radius: 6px; padding: 2px 6px; color: #0D1528; word-break: break-all; }
.t-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 6px 0 0; font-size: 14.5px; }
.t-kv dt { color: #6B7286; } .t-kv dd { min-width: 0; overflow-wrap: anywhere; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.t-table { overflow-x: auto; } .t-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.t-table th { text-align: left; font-weight: 600; color: #6B7286; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; padding: 8px 10px; border-bottom: 1px solid #ECEEF5; }
.t-table td { padding: 10px; border-bottom: 1px solid #F0F1F6; vertical-align: top; }
.t-table tr:last-child td { border-bottom: 0; }
.t-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; } .t-break { word-break: break-all; } .t-muted { color: #666D82; font-size: 12.5px; }
.t-note { font-size: 13.5px; color: #5B6275; margin: 8px 0 0; line-height: 1.5; }
.t-issues, .t-mech, .t-checks, .t-lists { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.t-issues li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; } .t-issues small { display: block; color: #5B6275; margin-top: 2px; } .t-issues li > div { min-width: 0; overflow-wrap: anywhere; }
.t-mech li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .t-mech li small { margin-left: auto; }
.t-checks li, .t-lists li { display: flex; align-items: center; gap: 8px; }
.t-checks li > span:not(.ms), .t-lists li > span:not(.ms), .t-mech li > span:not(.ms) { min-width: 0; overflow-wrap: anywhere; } .t-checks li > .ms, .t-lists li > .ms { flex: none; }
.ms.ok { color: #12A150; } .ms.bad { color: #D92D20; } .ms.warn { color: #DC6803; }
.t-meter { height: 8px; background: #ECEEF5; border-radius: 99px; overflow: hidden; margin: 0 0 12px; }
.t-meter i { display: block; height: 100%; background: #12A150; border-radius: 99px; } .t-meter i.warn { background: #DC6803; } .t-meter i.bad { background: #D92D20; }
.t-tree, .t-tree ul { list-style: none; margin: 0; padding-left: 18px; border-left: 1px dashed #D6DAE6; } .t-tree { padding-left: 0; border: 0; }
.t-tree li { margin: 6px 0; } .t-tree-n { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; } .t-tree-n small { color: #6B7286; }
.t-raw summary { cursor: pointer; color: #4F46E5; font-weight: 600; margin-top: 10px; } .t-raw pre { background: #F6F7FC; border: 1px solid #E3E6EF; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; overflow-x: auto; }
.t-next { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; background: #F2F4FF; border: 1px solid #D9DCFF; border-radius: 14px; padding: 14px 16px; }
.t-next > .ms { color: #5B4FE9; font-size: 26px; } .t-next b { color: #0D1528; } .t-next p { margin: 2px 0 0; color: #3D4354; font-size: 14px; }
.t-bimi { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; } .t-bimi img { border: 1px solid #E3E6EF; border-radius: 12px; background: #fff; } .t-bimi img.round { border-radius: 50%; }
.t-gen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.t-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; } .t-field > span { font-weight: 600; font-size: 14px; color: #0D1528; }
.t-field input, .t-in input { text-overflow: ellipsis; } /* a long value or example ends in … instead of being cut */
.t-field input, .t-field select { font: inherit; font-size: 15px; border: 1.5px solid #D6DAE6; border-radius: 10px; padding: 10px 12px; background: #fff; color: #0D1528; }
.t-field input:focus, .t-field select:focus { outline: 0; border-color: #5B4FE9; box-shadow: 0 0 0 3px rgba(91, 79, 233, .14); }
.dk-svc.on { border-color: #5B4FE9; background: #F7F7FF; box-shadow: 0 0 0 3px rgba(91, 91, 214, .12); }
/* Tekst, sidekolonne og spørsmål */
.t-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; padding-top: 40px; padding-bottom: 20px; }
.t-text h2 { font-size: 22px; margin: 28px 0 10px; color: #0D1528; letter-spacing: -.01em; } .t-text h2:first-child { margin-top: 0; }
.t-text p, .t-text li { font-size: 16px; line-height: 1.65; color: #3D4354; } .t-text ul, .t-text ol { padding-left: 22px; }
.t-side { display: grid; gap: 16px; align-content: start; }
.t-card { background: #fff; border: 1px solid #E3E6EF; border-radius: 16px; padding: 18px; }
/* Links standing alone in a side card: at least 24 px high to hit on a phone */
.t-card > a.x-link { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; }
.t-card h3 { margin: 0 0 8px; font-size: 16px; color: #0D1528; } .t-card p { margin: 0 0 14px; color: #3D4354; font-size: 14.5px; line-height: 1.55; }
.t-rel a { display: flex; align-items: center; gap: 8px; padding: 8px 0; color: #10183A; text-decoration: none; font-weight: 600; border-top: 1px solid #F0F1F6; } .t-rel a:first-of-type { border-top: 0; }
.t-rel a .ms { color: #5B4FE9; } .t-rel a:hover { color: #4F46E5; }
.t-faq { padding-top: 10px; padding-bottom: 56px; } .t-faq h2 { font-size: 22px; margin: 0 0 12px; color: #0D1528; }
.t-faq details { background: #fff; border: 1px solid #E3E6EF; border-radius: 14px; padding: 4px 16px; margin: 0 0 10px; }
.t-faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; color: #0D1528; } .t-faq details p { margin: 0 0 14px; color: #3D4354; line-height: 1.6; }
/* Oversikten over verktøy */
.t-groups { display: grid; gap: 28px; padding-top: 36px; padding-bottom: 56px; }
.t-group h2 { font-size: 18px; margin: 0 0 12px; color: #0D1528; }
.t-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.t-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; background: #fff; border: 1px solid #E3E6EF; border-radius: 16px; padding: 16px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.t-tile:hover { border-color: #C7C2FF; box-shadow: 0 8px 24px rgba(91, 79, 233, .1); }
.t-tile > .ms { grid-row: span 2; color: #5B4FE9; background: #F2F4FF; border-radius: 10px; padding: 8px; font-size: 22px; height: fit-content; }
.t-tile b { color: #0D1528; font-size: 15.5px; } .t-tile span { color: #5B6275; font-size: 14px; line-height: 1.5; }
/* Personvern */
.t-legal { max-width: 820px; } .t-legal h2 { scroll-margin-top: 90px; }
.x-links a.on { color: #4F46E5; }
@media (max-width: 900px) { .t-grid { grid-template-columns: minmax(0, 1fr); } .t-next { grid-template-columns: minmax(0, 1fr); } }
.t-group h2 { display: flex; align-items: center; gap: 8px; scroll-margin-top: 90px; } .t-group h2 .ms { color: #5B4FE9; } .t-group h2 small { font-size: 13px; color: #666D82; font-weight: 600; }
.t-group { scroll-margin-top: 90px; }
.t-tile b .x-new { margin-left: 6px; }
/* Nye verktøy (js/verktoy2.js) */
.t-gen textarea { font: inherit; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; border: 1.5px solid #D6DAE6; border-radius: 10px; padding: 10px 12px; background: #fff; color: #0D1528; width: 100%; box-sizing: border-box; resize: vertical; min-height: 80px; }
.t-gen textarea:focus { outline: 0; border-color: #5B4FE9; box-shadow: 0 0 0 3px rgba(91, 79, 233, .14); }
.t-field.small { max-width: 260px; }
.t-drop input[type=file] { border-style: dashed; padding: 14px 12px; background: #FAFBFF; cursor: pointer; }
.t-out2 { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; } .t-out2:empty { display: none; }
.t-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
/* A long file name on a download button wraps on a phone instead of running out of the card */
.t-actions .x-btn { max-width: 100%; height: auto; min-height: 40px; padding-top: 8px; padding-bottom: 8px; white-space: normal; overflow-wrap: anywhere; text-align: left; }
.t-pre { background: #F6F7FC; border: 1px solid #E3E6EF; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; margin: 6px 0; }
.t-checks li a { margin-left: auto; }
.t-lists li small { margin-left: 4px; }
.t-human { margin-top: 12px; } .t-human p { margin: 0 0 8px; font-size: 14px; color: #3D4354; }
.t-inboxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.t-inbox { border: 1px solid #E3E6EF; border-radius: 12px; overflow: hidden; background: #fff; }
.t-inbox-h { font-size: 12.5px; font-weight: 700; color: #6B7286; padding: 8px 12px; background: #F6F7FC; border-bottom: 1px solid #ECEEF5; }
.t-inbox-r { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #F0F1F6; }
.t-inbox-r:last-child { border-bottom: 0; } .t-inbox-r.dim { opacity: .6; }
.t-inbox-r img { width: 40px; height: 40px; object-fit: cover; background: #fff; border: 1px solid #ECEEF5; } .t-inbox-r img.round { border-radius: 50%; } .t-inbox-r img.sq { border-radius: 9px; }
.t-inbox-r b { display: block; font-size: 14px; color: #0D1528; } .t-inbox-r span { display: block; font-size: 13px; color: #3D4354; } .t-inbox-r small { display: block; font-size: 12px; color: #666D82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-inbox-r time { font-size: 12px; color: #666D82; align-self: start; }
.t-ava { width: 40px; height: 40px; border-radius: 50%; background: #E7E9F5; color: #3D4354; display: flex !important; align-items: center; justify-content: center; font-weight: 700; }
.apple .t-inbox-r img { border-radius: 9px; }
/* Kort svar under H1 (sitatvennlig for AI-søk, speakable i JSON-LD) */
.t-answer { background: #F2F4FF; border: 1px solid #D9DCFF; border-left: 4px solid #5B4FE9; border-radius: 14px; padding: 14px 18px 16px; margin: 4px 0 18px; }
.t-answer-k { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #5B4FE9; }
.t-answer h2 { margin: 0 0 6px; font-size: 19px; line-height: 1.3; color: #0D1528; letter-spacing: -.01em; }
.t-answer p:last-child { margin: 0; font-size: 16.5px; line-height: 1.6; color: #2A3042; }
.t-intro { padding-top: 32px; } .t-intro .t-text { max-width: 820px; }
@media (max-width: 640px) { .t-answer { padding: 12px 14px 14px; border-radius: 12px; } .t-answer h2 { font-size: 17.5px; } .t-answer p:last-child { font-size: 16px; } }
/* Phone: key/value lists stack, so a long label does not squeeze the value */
@media (max-width: 480px) { .t-kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; } .t-kv dd { margin-bottom: 8px; } .t-copy { grid-template-columns: minmax(0, 1fr); } .t-copy-b { justify-self: start; } }
/* A record that is not usable yet (generator before the fields are filled in) */
.t-copy-off { opacity: .6; grid-template-columns: minmax(0, 1fr); } .t-copy-off code { color: #6B7286; }
/* Guider, ordliste og «Om tjenesten» (site/build.py, innhold i site/guides*.py) */
.g-by { margin: -2px 0 16px; }
.g-text h2 { scroll-margin-top: 90px; }
.g-text h3 { font-size: 18px; margin: 22px 0 8px; color: #0D1528; }
.g-text a, .t-answer a, .t-faq details p a, .t-lead a, .g-facts a { color: #4F46E5; text-decoration: underline; text-underline-offset: 2px; }
.g-text a:hover, .t-answer a:hover, .t-faq details p a:hover, .t-lead a:hover, .g-facts a:hover { color: #3730A3; }
.g-text .g-rec, .g-text .g-table, .g-text .g-pre, .g-text .g-note { margin: 14px 0 18px; }
.g-text .g-rec { background: #fff; }
.g-text .g-table { background: #fff; border: 1px solid #E3E6EF; border-radius: 14px; }
.g-text .g-table th { padding: 10px 14px; }
.g-text .g-table td { padding: 12px 14px; font-size: 15px; line-height: 1.55; color: #3D4354; }
.g-text .g-table td:first-child { color: #0D1528; font-weight: 600; }
.g-pre { background: #fff; white-space: pre; word-break: normal; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; padding: 14px 16px; border-radius: 12px; }
.g-note { background: #FFF8EB; border: 1px solid #FEDF89; border-radius: 12px; padding: 12px 16px; }
.g-toc a { display: block; padding: 7px 0; color: #10183A; text-decoration: none; font-size: 14.5px; font-weight: 500; border-top: 1px solid #F0F1F6; }
.g-toc a:first-of-type { border-top: 0; } .g-toc a:hover { color: #4F46E5; }
.g-scan { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.g-scan input { font: inherit; font-size: 15px; border: 1.5px solid #D6DAE6; border-radius: 10px; padding: 10px 12px; background: #fff; color: #0D1528; min-width: 0; text-overflow: ellipsis; }
.g-scan input:focus { outline: 0; border-color: #5B4FE9; box-shadow: 0 0 0 3px rgba(91, 79, 233, .14); }
.g-sources { margin-top: 34px; padding-top: 20px; border-top: 1px solid #E3E6EF; scroll-margin-top: 90px; }
.g-sources h2 { font-size: 18px; margin: 0 0 8px; } .g-sources li { font-size: 14.5px; line-height: 1.6; }
.g-az { display: flex; flex-wrap: wrap; gap: 6px; }
.g-az a { min-width: 36px; height: 36px; padding: 0 8px; display: inline-grid; place-items: center; border: 1px solid #E3E6EF; border-radius: 9px; background: #fff; color: #10183A; font-weight: 600; text-decoration: none; }
.g-az a:hover { border-color: #5B4FE9; color: #4F46E5; }
.g-terms { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.g-term { background: #fff; border: 1px solid #E3E6EF; border-radius: 14px; padding: 14px 18px; scroll-margin-top: 90px; }
.g-term dt { font-weight: 700; color: #0D1528; font-size: 17px; margin: 0 0 4px; }
.g-term dd { margin: 0; font-size: 16px; line-height: 1.6; color: #3D4354; }
.g-term:target { border-color: #5B4FE9; box-shadow: 0 0 0 3px rgba(91, 79, 233, .12); }
.g-facts { font-size: 14.5px; } .g-facts dd { color: #0D1528; }
@media (max-width: 640px) { .g-text .g-table td, .g-text .g-table th { padding: 10px; } .g-pre { font-size: 12px; } }
/* Guide tables hold sentences, not numbers: the cells wrap (styles.css keeps table cells on one line for the portal lists).
   On a phone a table with several columns keeps a readable width and scrolls sideways inside its frame. */
.g-text .g-table th, .g-text .g-table td { white-space: normal; vertical-align: top; overflow-wrap: break-word; }
.g-text .g-table table { min-width: 520px; }
/* A record or a tag inside a sentence breaks between words first, and inside the value only when it has to */
.g-text .t-code, .t-answer .t-code, .t-faq .t-code, .t-lead .t-code { word-break: normal; overflow-wrap: anywhere; }
