/*
Theme Name: Linea
Description: A fast, minimalist theme made for the OpenLink deep-link plugin. Paste a link on the front page, get a link that opens the app. Light and dark modes, RTL-ready, no web fonts, no jQuery.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Tested up to: 6.8
Author: Smart World
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: linea
Tags: blog, one-column, custom-logo, custom-menu, custom-colors, editor-style, featured-images, rtl-language-support, translation-ready, accessibility-ready
*/

/* ---------- tokens */
:root {
	--paper: #f6f7fa;
	--surface: #ffffff;
	--ink: #0f1218;
	--graphite: #59616f;
	--line: #e1e4ea;
	--line-strong: #cdd2db;
	--blue-base: #2d5bff;
	--blue: var(--blue-base);
	--on-blue: #ffffff;
	--blue-soft: color-mix(in srgb, var(--blue) 10%, transparent);

	--f-display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Kufi Arabic", "Noto Sans Arabic", sans-serif;
	--f-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", sans-serif;

	--s-1: 0.875rem;
	--s0: 1rem;
	--s1: 1.125rem;
	--s2: 1.375rem;
	--s3: 1.75rem;
	--s4: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
	--s5: clamp(2.5rem, 1.6rem + 4.2vw, 4.6rem);

	--r-control: 12px;
	--r-panel: 22px;
	--gutter: clamp(1.1rem, 4vw, 2rem);
	--band: clamp(4rem, 9vw, 7.5rem);
	color-scheme: light;
}

/* Dark palette: by device setting (auto), by the header toggle, or always. */
@media (prefers-color-scheme: dark) {
	html[data-mode="auto"]:not([data-theme="light"]) {
	--paper: #0d1017; --surface: #151a23; --ink: #eef1f6; --graphite: #9aa3b4; --line: #232a37; --line-strong: #323b4b;
	--blue: color-mix(in srgb, var(--blue-base) 86%, #fff); color-scheme: dark;
	}
}
html[data-mode="auto"][data-theme="dark"], html[data-mode="dark"] {
	--paper: #0d1017; --surface: #151a23; --ink: #eef1f6; --graphite: #9aa3b4; --line: #232a37; --line-strong: #323b4b;
	--blue: color-mix(in srgb, var(--blue-base) 86%, #fff); color-scheme: dark;
}

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: var(--s0)/1.6 var(--f-text);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; letter-spacing: -0.025em; margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--blue); color: var(--on-blue); }
.sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 99; padding: .6rem 1rem; background: var(--ink); color: var(--paper); border-radius: var(--r-control); text-decoration: none; }
.skip:focus { top: 1rem; }
.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-text { width: 100%; max-width: calc(44rem + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { width: 100%; max-width: calc(64rem + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 44px; padding: 0 1.15rem; border-radius: var(--r-control);
	border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
	font: 600 var(--s-1)/1 var(--f-text); text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.btn-primary:hover { background: color-mix(in srgb, var(--blue) 85%, #000); border-color: transparent; color: var(--on-blue); }
.btn-ghost { border-color: transparent; padding-inline: .6rem; text-decoration: underline; text-underline-offset: 4px; }
.btn-lg { min-height: 54px; padding: 0 1.6rem; font-size: var(--s0); }

/* ---------- header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.is-scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font: 700 1.08rem/1 var(--f-display); letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--blue); display: grid; place-items: center; }
.brand-mark svg { width: 18px; height: 18px; fill: none; stroke: var(--on-blue); stroke-width: 2.3; stroke-linecap: round; }
.brand-logo { width: auto; height: 32px; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.main-nav a { display: block; padding: .55rem .8rem; border-radius: 10px; text-decoration: none; font-weight: 550; font-size: var(--s-1); color: var(--graphite); }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.main-nav .sub-menu { display: none; }
.head-tools { display: flex; gap: .25rem; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--graphite); cursor: pointer; }
.icon-btn:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.icon-btn .i:nth-child(2) { display: none; }
html[data-theme="dark"] [data-theme-toggle] .i:first-child { display: none; }
html[data-theme="dark"] [data-theme-toggle] .i:nth-child(2) { display: block; }
@media (prefers-color-scheme: dark) {
	html:not([data-theme]) [data-theme-toggle] .i:first-child { display: none; }
	html:not([data-theme]) [data-theme-toggle] .i:nth-child(2) { display: block; }
}
.menu-btn { display: none; }
.menu-btn[aria-expanded="true"] .i:first-child { display: none; }
.menu-btn[aria-expanded="true"] .i:nth-child(2) { display: block; }

/* ---------- hero */
.hero { padding: clamp(2.5rem, 7vw, 6rem) 0 var(--band); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero-title { font-size: var(--s5); letter-spacing: -0.045em; line-height: 1.02; max-width: 12ch; }
.lead { font-size: var(--s1); color: var(--graphite); margin-top: 1.25rem; max-width: 34rem; line-height: 1.55; }
.maker { margin-top: 2rem; max-width: 36rem; }
.note { margin-top: .9rem; font-size: var(--s-1); color: var(--graphite); }

/* the route: a tap travels from the link sticker to the app */
.route { position: relative; aspect-ratio: 1 / 1.05; max-width: 440px; width: 100%; justify-self: end; }
.route-feed {
	position: absolute; inset-inline-start: 0; top: 0; width: 64%; aspect-ratio: 9 / 13;
	border-radius: 28px; padding: 18px 14px; display: flex; flex-direction: column; justify-content: center;
	background: linear-gradient(160deg, color-mix(in srgb, var(--app) 26%, var(--surface)), color-mix(in srgb, var(--app) 8%, var(--surface)));
	border: 1px solid var(--line); transition: background .6s;
}
.feed-bar { position: absolute; top: 14px; inset-inline: 14px; display: flex; gap: 4px; }
.feed-bar span { flex: 1; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.feed-bar span:first-child { background: var(--ink); }
.sticker {
	position: relative; align-self: center; display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
	padding: 9px 13px; border-radius: 12px; background: #fff; color: #10131a;
	font: 650 12.5px/1.2 var(--f-text); box-shadow: 0 8px 24px -10px rgba(15, 18, 24, .35);
}
.sticker svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; }
.sticker span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tap { position: absolute; inset-inline-end: 18%; top: 50%; width: 30px; height: 30px; margin: -15px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 30%, transparent); opacity: 0; }
.route-path { position: absolute; inset-inline-start: 18%; top: 44%; width: 66%; height: 44%; overflow: visible; }
.route-path path { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.route-app { position: absolute; inset-inline-end: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.route .tile { --size: clamp(84px, 11vw, 112px); font-size: calc(var(--size) * .42); transition: none; }
.route-label { text-align: end; font-size: var(--s-1); color: var(--graphite); line-height: 1.35; }
.route-label strong { display: block; color: var(--ink); font: 700 var(--s1)/1.2 var(--f-display); }
[dir="rtl"] .route-path { transform: scaleX(-1); }

.route.is-tapping .sticker { animation: press .5s ease; }
.route.is-tapping .tap { animation: ripple .7s ease-out; }
.route.is-tapping .route-path path { animation: flow .9s ease-in-out; }
.route.is-tapping .route-app .tile { animation: land .5s .55s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes press { 40% { transform: scale(.94); } }
@keyframes ripple { 0% { opacity: .55; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes flow { from { stroke-dashoffset: 40; stroke: var(--app); } to { stroke-dashoffset: 0; stroke: var(--line-strong); } }
@keyframes land { from { transform: scale(.82); } to { transform: scale(1); } }

/* app tiles — shaped like home-screen icons */
.tile {
	--size: 64px;
	width: var(--size); height: var(--size); border-radius: 23%;
	display: grid; place-items: center; flex: none;
	background: var(--app); color: #fff;
	font: 700 calc(var(--size) * .4)/1 var(--f-display);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
	transition: background-color .4s;
}

/* ---------- bands */
.band { padding: var(--band) 0; border-top: 1px solid var(--line); }
.band-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.band-head h2 { font-size: var(--s4); }
.band-head p { margin-top: .8rem; color: var(--graphite); font-size: var(--s1); }
.band-head-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }

.app-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 1.8rem 1rem; }
.app-wall li { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; }
.app-name { font-size: 12.5px; font-weight: 550; color: var(--graphite); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.steps li::before { content: counter(step); display: block; font: 700 var(--s4)/1 var(--f-display); color: var(--blue); margin-bottom: 1.1rem; }
.steps h3 { font-size: var(--s2); }
.steps p { margin-top: .5rem; color: var(--graphite); max-width: 22rem; }

.compare { width: 100%; max-width: 52rem; border-collapse: collapse; font-size: var(--s1); }
.compare th { text-align: start; font: 650 var(--s-1)/1.3 var(--f-text); color: var(--graphite); padding: 0 0 .9rem; width: 50%; }
.compare th + th { color: var(--blue); }
.compare td { padding: 1rem 1.5rem 1rem 0; border-top: 1px solid var(--line); vertical-align: top; }
.compare td .i { width: 18px; height: 18px; margin-inline-end: .6rem; vertical-align: -3px; }
.compare td:first-child { color: var(--graphite); }
.compare td:first-child .i { color: var(--graphite); opacity: .7; }
.compare td + td { font-weight: 600; }
.compare td + td .i { color: var(--blue); }

.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem; }
.faq-grid h2 { font-size: var(--s4); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 0; font: 650 var(--s1)/1.4 var(--f-text); display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 6px; border-inline-end: 2px solid var(--graphite); border-bottom: 2px solid var(--graphite); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.faq details p { padding: 0 0 1.3rem; color: var(--graphite); max-width: 40rem; }

.band-cta { padding-bottom: calc(var(--band) * 1.1); }
.cta-title { font-size: var(--s5); letter-spacing: -0.045em; margin-bottom: 2rem; }
.cta-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.panel { display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; min-height: 220px; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--r-panel); border: 1px solid var(--line-strong); text-decoration: none; transition: border-color .2s, background-color .2s; }
.panel h3 { font-size: var(--s3); }
.panel p { color: var(--graphite); max-width: 22rem; }
.panel:hover { border-color: var(--ink); color: inherit; }
.panel-accent { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.panel-accent p { color: color-mix(in srgb, var(--on-blue) 80%, transparent); }
.panel-accent:hover { background: color-mix(in srgb, var(--blue) 88%, #000); color: var(--on-blue); border-color: transparent; }

/* ---------- posts */
.post-list { display: grid; }
.post-row { display: grid; grid-template-columns: 11rem minmax(0, 1fr) auto; gap: 1rem 2rem; padding: 1.6rem 0; border-top: 1px solid var(--line); align-items: start; }
.post-row:last-child { border-bottom: 1px solid var(--line); }
.post-meta { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: var(--s-1); color: var(--graphite); }
.post-row .post-meta { flex-direction: column; padding-top: .3rem; }
.post-meta a { text-decoration: none; color: var(--blue); }
.post-title { font-size: var(--s2); }
.post-title a { text-decoration: none; }
.post-body p { margin-top: .5rem; color: var(--graphite); max-width: 38rem; }
.post-thumb img { width: 180px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; display: block; }

.page-head { padding: clamp(2.5rem, 7vw, 5rem) 0 2.5rem; }
.page-head h1 { font-size: var(--s5); letter-spacing: -0.04em; max-width: 18ch; }
.head-search { margin-top: 1.6rem; max-width: 30rem; }
.big-code { font: 700 clamp(4rem, 14vw, 9rem)/1 var(--f-display); letter-spacing: -0.06em; color: var(--blue); margin-bottom: 1rem; }
.page-404 .btn { margin-top: 1.5rem; }
.empty { padding: 3rem 0 5rem; color: var(--graphite); }
.navigation.pagination { margin: 2.5rem 0 4rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .8rem; border-radius: var(--r-control); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: var(--s-1); }
.page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.search-form { position: relative; display: flex; gap: .5rem; }
.search-form .i { position: absolute; inset-inline-start: 14px; top: 13px; color: var(--graphite); pointer-events: none; }
.search-form input { flex: 1; min-width: 0; height: 46px; padding-inline: 44px 14px; border-radius: var(--r-control); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; }
.search-form input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.search-form .btn { min-height: 46px; }

/* ---------- single */
.entry { padding-bottom: 4rem; }
.entry-head { padding-top: clamp(2.5rem, 7vw, 5rem); padding-bottom: 2rem; }
.entry-head .post-meta { margin-bottom: 1.1rem; }
.entry-title { font-size: clamp(2rem, 1.5rem + 2.6vw, 3.3rem); letter-spacing: -0.035em; }
.entry-cover { margin-block: 0 2.5rem; }
.entry-cover img { width: 100%; border-radius: var(--r-panel); display: block; }
.entry-foot { margin-top: 3rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 2rem; }
.tags a { padding: .35rem .75rem; border-radius: 99px; background: color-mix(in srgb, var(--ink) 6%, transparent); text-decoration: none; font-size: var(--s-1); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-navigation a { display: block; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; font-weight: 650; height: 100%; }
.post-navigation a span { display: block; font-weight: 500; font-size: var(--s-1); color: var(--graphite); margin-bottom: .2rem; }
.post-navigation .nav-next { text-align: end; }

.prose { font-size: 1.0625rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: var(--s3); margin-top: 2.2em; }
.prose h3 { font-size: var(--s2); margin-top: 1.8em; }
.prose a { color: var(--blue); }
.prose img { border-radius: 14px; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-inline: 0; padding-inline-start: 1.2rem; border-inline-start: 3px solid var(--blue); font-size: var(--s1); }
.prose code { font-size: .9em; padding: .15em .4em; border-radius: 6px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.prose pre { overflow-x: auto; padding: 1.1rem 1.2rem; border-radius: 14px; background: #0f1218; color: #e8ecf3; font-size: .9rem; line-height: 1.6; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: .65rem .5rem; border-bottom: 1px solid var(--line); text-align: start; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose figcaption, .wp-element-caption { font-size: var(--s-1); color: var(--graphite); margin-top: .6rem; }
.prose .alignwide { margin-inline: calc(-1 * min(10rem, (100vw - 44rem) / 2 - var(--gutter))); max-width: none; }
.prose .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.prose .alignfull img { border-radius: 0; }
.aligncenter { margin-inline: auto; display: block; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.wp-block-button__link { border-radius: var(--r-control); background: var(--blue); color: var(--on-blue); text-decoration: none; padding: .8rem 1.3rem; font-weight: 600; }
.wp-block-embed iframe { width: 100%; border-radius: 14px; }
.page-links { margin-top: 2rem; display: flex; gap: .4rem; }

/* comments */
.comments { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.comments h2 { font-size: var(--s2); margin-bottom: 1.5rem; }
.comment-list, .comment-list .children { list-style: none; padding: 0; margin: 0; }
.comment-list .children { padding-inline-start: 1.5rem; border-inline-start: 2px solid var(--line); }
.comment-body { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: .6rem; font-weight: 650; }
.comment-author img { border-radius: 50%; }
.comment-meta { font-size: var(--s-1); color: var(--graphite); }
.comment-metadata a { color: inherit; text-decoration: none; }
.comment-content { margin-top: .6rem; }
.reply a { font-size: var(--s-1); font-weight: 600; }
.comment-form { display: grid; gap: 1rem; }
.comment-form label { display: block; font-weight: 600; font-size: var(--s-1); margin-bottom: .35rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: .75rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--r-control); background: var(--surface); color: var(--ink); font: inherit; }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: start; font-size: var(--s-1); }
.comment-form-cookies-consent label { font-weight: 400; }

/* ---------- footer */
.site-foot { border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: var(--s-1); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.foot-brand p { margin-top: 1rem; color: var(--graphite); max-width: 18rem; }
.foot-col h2 { font: 650 var(--s-1)/1.3 var(--f-text); letter-spacing: 0; margin-bottom: .9rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot-col a { color: var(--graphite); text-decoration: none; }
.foot-col a:hover { color: var(--ink); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--graphite); }
.foot-base a { color: inherit; }

/* ---------- OpenLink link maker ([openlink] shortcode), restyled for this theme */
.olp { margin: 0; max-width: none; font: inherit; scroll-margin-top: 90px; }
[id] { scroll-margin-top: 80px; }
.olp .olp-form { display: flex; gap: .5rem; padding: .5rem; border-radius: calc(var(--r-control) + 6px); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 1px 2px rgba(15, 18, 24, .04), 0 18px 40px -22px rgba(15, 18, 24, .3); }
.olp .olp-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft), 0 18px 40px -22px rgba(15, 18, 24, .3); }
.olp .olp-in { flex: 1; min-width: 0; height: 52px; margin: 0; padding: 0 .9rem; border: 0; border-radius: var(--r-control); background: transparent; color: var(--ink); font: 500 var(--s0) var(--f-text); box-shadow: none; }
.olp .olp-in:focus { outline: 0; box-shadow: none; }
.olp .olp-in::placeholder { color: var(--graphite); }
.olp .olp-btn { height: 52px; margin: 0; padding: 0 1.4rem; border: 0; border-radius: var(--r-control); background: var(--blue); color: var(--on-blue); font: 650 var(--s0)/1 var(--f-text); cursor: pointer; white-space: nowrap; }
.olp .olp-btn:hover { background: color-mix(in srgb, var(--blue) 85%, #000); }
.olp .olp-btn-sm { height: 38px; padding: 0 1rem; font-size: var(--s-1); }
.olp .olp-hp, .olp .olp-sr { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.olp .olp-err { margin-top: .8rem; padding: .75rem 1rem; border-radius: var(--r-control); background: color-mix(in srgb, #dc2626 10%, var(--surface)); color: #c42020; font-size: var(--s-1); font-weight: 600; }
.olp .olp-result { display: flex; gap: 1.2rem; align-items: center; margin-top: .9rem; padding: 1rem; border-radius: calc(var(--r-control) + 6px); background: var(--surface); border: 1px solid var(--line); }
.olp .olp-qr { flex: none; background: #fff; padding: 6px; border-radius: 12px; line-height: 0; }
.olp .olp-qr svg { width: 96px; height: 96px; }
.olp .olp-res-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .6rem; }
.olp .olp-app { display: flex; align-items: center; gap: .5rem; font-size: var(--s-1); color: var(--graphite); }
.olp .olp-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.olp .olp-copy { display: flex; align-items: center; gap: .5rem; padding: .3rem .3rem .3rem .9rem; border-radius: var(--r-control); background: var(--paper); }
.olp .olp-copy a { flex: 1; min-width: 0; font-weight: 700; color: var(--blue); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.olp .olp-link { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--graphite); font: 500 var(--s-1) var(--f-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- responsive */
@media (max-width: 960px) {
	.hero-grid { grid-template-columns: 1fr; }
	.route { justify-self: center; max-width: 320px; }
	.hero-title { max-width: 14ch; }
	.foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
	.menu-btn { display: grid; }
	.main-nav { position: fixed; inset: 68px 0 auto 0; margin: 0; padding: .5rem var(--gutter) 1.2rem; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; }
	.main-nav a { padding: .9rem .6rem; font-size: var(--s0); color: var(--ink); }
	.main-nav .sub-menu { display: block; padding-inline-start: 1rem; }
	.head-tools { margin-inline-start: auto; }
	.steps { grid-template-columns: 1fr; }
	.faq-grid { grid-template-columns: 1fr; gap: 1rem; }
	.cta-panels { grid-template-columns: 1fr; }
	.panel { min-height: 0; gap: 1.5rem; }
	.post-row { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
	.post-row .post-meta { flex-direction: row; padding: 0; order: -1; }
	.post-thumb { order: -2; }
	.post-thumb img { width: 100%; }
	.compare { font-size: var(--s0); }
	.compare td { padding-inline-end: .8rem; }
	.compare td .i { display: block; margin-bottom: .4rem; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.app-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem .5rem; }
	.app-wall .tile { --size: 56px; }
	.app-name { font-size: 11.5px; }
}
@media (max-width: 520px) {
	.olp .olp-form { flex-direction: column; }
	.olp .olp-btn { width: 100%; }
	.olp .olp-result { flex-direction: column; align-items: stretch; text-align: center; }
	.olp .olp-qr { align-self: center; }
	.olp .olp-app { justify-content: center; }
	.olp .olp-link { align-self: center; }
	.band-head-row { flex-direction: column; align-items: start; }
	.search-form .btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
	.site-head, .site-foot, .comments, .post-navigation { display: none; }
	body { background: #fff; color: #000; }
}
