/* Site tokens: a cool desk, white paper, navy ink, cobalt action, highlighter yellow. */
:root {
  --desk: #eef1f6; --paper: #ffffff; --ink: #10213f; --ink-2: #4c5a70;
  --line: #d9dfe7; --line-strong: #b9c3d0; --cobalt: #1e46c8; --cobalt-d: #16359c; --marker: #ffc93c; --coral: #ff6b4a;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Schibsted Grotesk', 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 400 17px/1.6 var(--body); }
a { color: var(--cobalt); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.logo { font: 700 21px/1 var(--display); color: var(--ink); text-decoration: none; letter-spacing: -.025em; }

.ui-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 15px; font: 600 14.5px/1.2 var(--body); color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 6px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--desk); }
.btn-primary { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-d); }
.btn-quiet { border-color: transparent; background: var(--desk); }
.btn-quiet:hover { background: var(--line); }
.btn-big { padding: 14px 24px; font-size: 17px; }

.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 16px 20px; }
.site-head nav { display: flex; gap: 18px; align-items: center; font-size: 15px; }
.site-head nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.site-head nav a:not(.btn):hover { text-decoration: underline; }

/* Home. Cut-paper world: every block takes the paper colour of its artwork, and
   blocks overlap with wavy cut edges, like the layered hills in the illustrations. */
.home { background: #fff; --hero: #123bb8; --sun: #fcb625; --coral: #f95e40; --navy: #0d2247; --cob: #103bba; overflow-x: hidden; }
.home h1, .home h2 { font-family: var(--display); font-weight: 600; font-variation-settings: 'SOFT' 100, 'WONK' 0; letter-spacing: -.018em; text-wrap: balance; }
.home h2 { font-size: clamp(30px, 3.5vw, 46px); line-height: 1.08; margin: 0; }
.wrap { max-width: 1184px; margin: 0 auto; }

.masthead { position: relative; background: var(--hero); color: #fff; }
.home .site-head { position: relative; z-index: 3; max-width: 1240px; padding: 18px 28px; }
.home .masthead .logo { color: #fff; }
.home .masthead .logo b { color: var(--marker); }
.home .masthead .logo-mark path:first-of-type, .home .site-foot .logo-mark path:first-of-type { fill: var(--marker); }
.home .masthead .site-head nav a:not(.btn) { color: #e7edfb; }
.home .masthead .site-head nav a:not(.btn):hover { color: #fff; }
.home .masthead .btn-primary { background: #fff; border-color: #fff; color: var(--ink); }
.home .masthead .btn-primary:hover { background: var(--marker); border-color: var(--marker); }

.hero { position: relative; min-height: clamp(560px, 56.25vw, 1080px); display: flex; align-items: center; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right bottom; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 4%); mask-image: linear-gradient(to bottom, transparent, #000 4%); }
.hero-copy { position: relative; z-index: 2; box-sizing: border-box; width: 100%; max-width: 1240px; margin: 0 auto; padding: 20px 28px 110px; }
.hero h1 { font-size: clamp(42px, 4.9vw, 74px); line-height: 1.03; margin: 0; max-width: 11.5em; max-width: min(11.5em, 46vw); }
.hero-sub { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: #e7edfb; margin: 20px 0 28px; max-width: min(30em, 40vw); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.hero-link { color: #fff; font-weight: 500; font-size: 15.5px; text-underline-offset: 3px; }
.btn-sun { background: var(--marker); border-color: var(--marker); color: var(--ink); }
.btn-sun:hover { background: #fff; border-color: #fff; }
.btn-big { box-shadow: 0 2px 0 rgba(16, 33, 63, .28), 0 10px 22px rgba(16, 33, 63, .22); }

.block { position: relative; }
.cut { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); width: 100%; height: clamp(34px, 5vw, 70px); display: block; z-index: 2; fill: currentColor; filter: drop-shadow(0 -5px 7px rgba(16, 33, 63, .2)); clip-path: inset(-24px 0 0 0); pointer-events: none; }
.block-paper { background: #fff; color: var(--ink); padding: 40px 28px 88px; }
.block-paper .cut { color: #fff; }
.block-desk { background: var(--desk); padding: 56px 28px 96px; }
.block-desk .cut { color: var(--desk); }

.center-h { text-align: center; }
.center-p { text-align: center; color: var(--ink-2); font-size: 18px; margin: 12px auto 36px; max-width: 34em; }
.product { margin: 0; }
.product img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid rgba(16, 33, 63, .14); box-shadow: 0 2px 4px rgba(16, 33, 63, .1), 0 28px 60px rgba(16, 33, 63, .2); background: #fff; }
.facts { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.facts strong { display: block; font-family: var(--display); font-variation-settings: 'SOFT' 100; font-weight: 600; font-size: 21px; line-height: 1.2; }
.facts span { display: block; margin-top: 4px; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; margin-bottom: 36px; }
.filter { display: inline-flex; background: #fff; border-radius: 99px; padding: 4px; box-shadow: 0 1px 3px rgba(16, 33, 63, .14); }
.filter button { background: none; border: 0; border-radius: 99px; padding: 7px 15px; font: 500 14.5px var(--body); color: var(--ink-2); cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.tpl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 32px 24px; }
.tpl { display: block; color: var(--ink); text-decoration: none; }
.tpl img { display: block; width: 100%; height: auto; background: #fff; box-shadow: 0 0 0 1px rgba(16, 33, 63, .08), 0 8px 22px rgba(16, 33, 63, .12); transition: transform .18s ease-out, box-shadow .18s ease-out; }
.tpl:hover img { box-shadow: 0 0 0 2px var(--cobalt), 0 14px 30px rgba(16, 33, 63, .18); }
.tpl strong { display: block; font-weight: 600; font-size: 16.5px; margin-top: 14px; }
.tpl span { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.4; margin-top: 1px; }
/* Template strip on an arc. home.js sets each card's transform per frame. */
.arc { list-style: none; position: relative; margin: 0 calc(-1 * 28px); padding: 0; overflow: hidden; --card-w: 240px; }
.arc-card { position: absolute; top: 18px; left: 50%; width: var(--card-w); margin-left: calc(var(--card-w) / -2); transform-origin: 50% 50%; will-change: transform; }
.arc .tpl img { aspect-ratio: 600 / 849; }
.arc .tpl:hover img { transform: translateY(-6px); }
.arc .tpl img { box-shadow: 0 0 0 1px rgba(16, 33, 63, .1), 0 14px 32px rgba(16, 33, 63, .17); }
.arc .tpl strong { text-align: center; }
#sablonlar .section-more { position: relative; z-index: 1; margin-top: calc(var(--arc-dip, 0px) * -1); }
@media (prefers-reduced-motion: reduce) {
  .arc { display: flex; gap: 24px; overflow-x: auto; padding: 18px 28px 8px; }
  .arc-card { position: static; flex: none; margin: 0; }
}
.section-more { margin: 44px 0 0; text-align: center; }

.block-art { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; min-height: 37.5vw; padding-bottom: clamp(18px, 3.2vw, 56px); }
.art-text { box-sizing: border-box; padding: 64px 56px 64px max(28px, calc((100vw - 1184px) / 2)); }
.art-text p { margin: 16px 0 0; font-size: 18px; line-height: 1.5; max-width: 30em; }
.art-text a { color: inherit; font-weight: 600; text-underline-offset: 3px; }
.art-img { align-self: stretch; position: relative; min-height: 360px; }
.art-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to right, transparent, #000 4%); mask-image: linear-gradient(to right, transparent, #000 4%); }
.flip .art-text { order: 2; padding: 64px max(28px, calc((100vw - 1184px) / 2)) 64px 56px; }
.flip .art-img img { -webkit-mask-image: linear-gradient(to left, transparent, #000 4%); mask-image: linear-gradient(to left, transparent, #000 4%); }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; }
.ticks li { position: relative; padding: 6px 0 6px 26px; font-size: 16.5px; font-weight: 500; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 12px; height: 6px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); }
.block-sun { background: var(--sun); color: var(--ink); }
.block-sun .cut { color: var(--sun); }
.block-coral { background: var(--coral); color: var(--ink); }
.block-coral .cut { color: var(--coral); }
.block-navy { background: var(--navy); color: #fff; }
.block-navy .cut { color: var(--navy); }
.block-cobalt { background: var(--cob); color: #fff; }
.block-cobalt .cut { color: var(--cob); }

.compare-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 60px; align-items: start; }
.muted { color: var(--ink-2); margin: 14px 0 0; }
.table-wrap { overflow-x: auto; }
.compare { width: 100%; min-width: 500px; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.compare thead th { font-weight: 600; border-bottom: 2px solid var(--ink); }
.compare tbody th { font-weight: 500; }
.compare td { color: var(--ink-2); }
.compare td:last-child, .compare thead th:last-child { color: var(--cobalt); font-weight: 600; }

.learn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 88px; }
.learn h2 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 16px; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { border-top: 1px solid var(--line); }
.link-list a { display: block; padding: 11px 0; color: var(--ink); text-decoration: none; }
.link-list a:hover { color: var(--cobalt); }
.link-list a.all { color: var(--cobalt); font-weight: 500; }

.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 60px; margin-top: 88px; }
.faq details { border-top: 1px solid var(--line); padding: 15px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 500; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--ink-2); max-width: 66ch; }

.closing { background: #fcb61e; color: var(--ink); min-height: clamp(420px, 56.25vw, 1080px); display: flex; align-items: center; }
.closing .cut { color: #fcb61e; }
.closing-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right bottom; }
.closing-copy { position: relative; box-sizing: border-box; width: 100%; max-width: 1240px; margin: 0 auto; padding: 56px 28px 120px; }
.closing h2 { max-width: 9.5em; margin-bottom: 26px; font-size: clamp(36px, 4.4vw, 64px); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--cobalt); border-color: var(--cobalt); }

.home .site-foot { background: var(--ink); color: #fff; border-top: 0; }
.home .site-foot .logo { color: #fff; }
.home .site-foot .logo b { color: var(--marker); }
.home .foot-grid p, .home .foot-grid div > a:not(.logo) { color: #c8d2e6; }
.home .foot-grid div > a:not(.logo):hover { color: #fff; }

@media (max-width: 980px) {
  .hero { display: block; min-height: 0; margin-top: 0; }
  .hero-copy { padding: 24px 24px 12px; }
  .hero h1, .hero-sub { max-width: none; }
  .hero-art img { position: static; display: block; width: 100%; height: auto; -webkit-mask-image: none; mask-image: none; }
  .block-art, .flip { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-bottom: 28px; }
  .art-img { order: -1; aspect-ratio: 4 / 3; min-height: 0; }
  .art-img img, .flip .art-img img { -webkit-mask-image: none; mask-image: none; }
  .art-text, .flip .art-text { order: 0; padding: 32px 24px 56px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .compare-grid, .learn, .faq { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .learn, .faq { margin-top: 56px; }
  .home .site-head { padding: 14px 20px; }
}
@media (max-width: 760px) {
  .block-paper, .block-desk { padding-left: 20px; padding-right: 20px; }
  .product { padding: 0 20px; }
  .arc { margin: 0 -20px; }
  .closing { display: block; min-height: 0; }
  .closing-copy { padding: 44px 24px 18px; text-align: left; }
  .closing-art img { position: static; display: block; width: 100%; height: auto; }
  .closing { display: flex; flex-direction: column-reverse; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { .tpl img { transition: none; } }

/* Theme thumbnails rendered live in the editor */
.thumb { position: relative; aspect-ratio: 210 / 297; overflow: hidden; background: #fff; }
.thumb-scaler { transform-origin: top left; width: 210mm; pointer-events: none; }

/* Header and footer */
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo-mark { height: 30px; width: auto; flex: none; }
.logo b { color: var(--cobalt); font-weight: 700; }
.site-foot { display: block; background: var(--paper); border-top: 1px solid var(--line); padding: 44px 28px 36px; font-size: 14.5px; }
.foot-grid { max-width: 1184px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid p { color: var(--ink-2); margin: 10px 0 0; max-width: 34ch; }
.foot-grid h2 { font: 600 14.5px var(--body); margin: 0 0 8px; }
.foot-grid div > a:not(.logo) { display: block; padding: 3px 0; color: var(--ink-2); text-decoration: none; }
.foot-grid div > a:not(.logo):hover { color: var(--cobalt); text-decoration: underline; }

/* Example pages */
.article.article-wide { max-width: 1184px; }
.crumbs { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); }
.hint-line { font-size: 14.5px; color: var(--ink-2); margin-top: 8px; }
.ex-layout { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 36px; align-items: start; margin-top: 28px; }
.ex-sheet { background: #fff; box-shadow: 0 1px 2px rgba(16, 33, 63, .22), 0 10px 28px rgba(16, 33, 63, .12); padding: 34px 32px; font-size: 14.5px; line-height: 1.45; }
.ex-sheet header h2 { font: 700 30px/1.1 var(--display); margin: 0; }
.ex-sheet header p { margin: 4px 0 0; color: var(--cobalt); font-weight: 600; }
.ex-sheet h3 { font: 700 15px var(--display); margin: 18px 0 6px; padding-bottom: 3px; border-bottom: 1px solid var(--line-strong); }
.ex-sheet p { margin: 0; }
.ex-entry { margin-bottom: 9px; }
.ex-entry-head { display: flex; justify-content: space-between; gap: 12px; }
.ex-entry-head span, .ex-sub { color: var(--ink-2); font-size: 13.5px; }
.ex-entry-head span { white-space: nowrap; }
.ex-sheet ul { margin: 3px 0 0; padding-left: 17px; }
.ex-sheet li { margin: 1px 0; }
.ex-tips h2 { margin-top: 0; }
.ex-tips p { margin-top: 0; }
.link-cloud { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ex-index { list-style: none; padding: 0; margin: 22px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.ex-index a { display: block; padding: 13px 15px; background: #fff; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); text-decoration: none; }
.ex-index a:hover { border-color: var(--cobalt); }
.ex-index strong { display: block; }
.ex-index span { font-size: 14px; color: var(--ink-2); }

/* Ads */
.ad-slot { margin: 28px auto; max-width: 970px; }
.ad-debug { display: grid; place-items: center; min-height: 250px; background: repeating-linear-gradient(45deg, #fff6c9, #fff6c9 10px, #fff 10px, #fff 20px); border: 1px dashed #b29600; font-size: 13px; color: #6e5c00; }
.ad-on::before { content: 'Reklam'; display: block; font-size: 11px; color: var(--ink-2); margin-bottom: 3px; }
.ad-on { min-height: 120px; }

/* Articles and legal pages */
.article { max-width: 70ch; margin: 0 auto; padding: 22px 20px 40px; }
.article h1 { font: 700 clamp(32px, 5vw, 50px)/1.06 var(--display); letter-spacing: -.025em; margin: 0 0 14px; }
.article h2 { font: 700 26px/1.2 var(--display); margin: 36px 0 8px; letter-spacing: -.01em; }
.article h3 { font: 600 18px/1.3 var(--body); margin: 24px 0 4px; }
.article .lead { font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.article li { margin: 5px 0; }
.article table { border-collapse: collapse; width: 100%; font-size: 15.5px; margin: 14px 0; }
.article th, .article td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.article .try { background: var(--desk); padding: 16px 18px; border-radius: 6px; margin: 28px 0; }
.article .try p { margin: 0 0 10px; }
.todo { background: var(--marker); padding: 0 3px; }
.guide-list { list-style: none; padding: 0; }
.guide-list li { border-top: 1px solid var(--line); padding: 14px 0; }
.guide-list a { font: 700 21px/1.2 var(--display); color: var(--ink); }
.guide-list p { margin: 4px 0 0; color: var(--ink-2); font-size: 16px; }

.article { background: transparent; }
@media (max-width: 860px) {
  .ex-layout { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .site-head nav a:not(.btn) { display: none; }
  .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
}
@media (prefers-reduced-motion: reduce) { .tpl img { transition: none; } }
