/*
 * Nordkapp reskin (V3.1): loaded after aft.css.
 *
 * The AFT layout, markup and interactive UIs are unchanged. This file and the
 * colour swaps in aft.css (pink #f77/#ffe4e4/#fff1f1 -> black/gray) give the
 * site the Nordkapp web style from the nordkapp-web skill: APK Protocol type,
 * gray #f5f5f5 page, black rgb(10,10,10) ink, pill buttons, Nordkapp logos.
 *
 * The phase category colours (blue, green and pale pink for phases 1-3, and
 * the method canvases) are kept on purpose.
 */

@font-face { font-family: "APK Protocol"; src: url("../fonts/apk/APKProtocol-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "APK Protocol"; src: url("../fonts/apk/APKProtocol-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "APK Protocol"; src: url("../fonts/apk/APKProtocol-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
	--nk-black: rgb(10, 10, 10);
	--nk-white: rgb(255, 255, 255);
	--nk-gray: rgb(245, 245, 245);
	--nk-muted: rgba(10, 10, 10, 0.6);
	--nk-font: "APK Protocol", "Helvetica Neue", Arial, sans-serif;
	--nk-radius-pill: 50px;
	--nk-radius-card: 18px;
}

/* ---------- Type ---------- */
body,
input,
button,
select,
textarea,
.hero h1.hero-label,
.hero h2.hero-label,
.hero-subtitle,
.figure-num {
	font-family: var(--nk-font);
}
body {
	color: var(--nk-black);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, .h1, .h2, .h3,
.n-large-header {
	letter-spacing: -0.04em;
}
::selection {
	background: var(--nk-black);
	color: var(--nk-white);
}

/* Text links were pink; now black, so they get an underline (.nk-link).
   Links with an arrow are already recognisable and stay plain. */
a.n-theme-color:not(:has(.n-link-arrow)) {
	text-decoration: underline;
	text-underline-offset: 2px;
}
a.n-theme-color:not(:has(.n-link-arrow)):hover {
	color: rgba(10, 10, 10, 0.8);
	text-decoration: none;
}
.cc {
	border-top-width: 1px;
}

/* Section labels ("INTERESTED?", "START HERE"): Nordkapp uses a quiet label and a thin line */
.n-section-header {
	letter-spacing: 0;
}
.n-section-header::after {
	border-top-width: 1px;
}

/* ---------- Navigation ---------- */
.n-nav {
	background: var(--nk-gray);
}
.n-nav-list a {
	color: var(--nk-muted);
	font-weight: 400;
	text-transform: none;
	transition: color 0.2s;
}
.n-nav-list a:hover,
.n-nav-list a:focus,
.n-nav-list li.active > a {
	color: var(--nk-black);
	text-decoration: none;
}
.n-nav-logo svg,
.n-nav-logo img {
	width: 50px;
	height: 50px;
	display: block;
}

/* ---------- Buttons ---------- */
.btn {
	background: var(--nk-black);
	color: var(--nk-white);
	border-radius: var(--nk-radius-pill);
	padding: 22px 32px 20px;
}
.btn:hover,
.btn:focus,
.btn:active {
	background: rgba(10, 10, 10, 0.8);
	color: var(--nk-white);
}
.btn-white,
.aft-contact .btn {
	background: var(--nk-white);
	color: var(--nk-black);
}
.btn-white:hover,
.btn-white:focus,
.aft-contact .btn:hover,
.aft-contact .btn:focus {
	background: rgba(255, 255, 255, 0.85);
	color: var(--nk-black);
}
/* "Visit nordkapp.fi" on the front page: a secondary white button that
   turns black on hover (the white-on-gray hover would be invisible). */
.btn-nordkapp:hover,
.btn-nordkapp:focus {
	background: var(--nk-black);
	color: var(--nk-white);
}
/* Front page button row: when the three buttons wrap on narrow screens, keep
   the rows close (aft.css gives each button a 60px bottom margin) and move
   the 60px space below the whole row instead. */
.n-intro-action .btn-download {
	margin-bottom: 8px;
}
.n-intro-action p:first-child {
	margin-bottom: 52px;
}
/* Buttons placed side by side keep a small gap, as on nordkapp.fi */
.btn + .btn {
	margin-left: 4px;
}
/* Process / Methods switch: a white pill with the active half in black */
.n-tab-wrapper {
	border: 0;
	border-radius: var(--nk-radius-pill);
	padding: 4px;
	background: var(--nk-white);
}
.n-tab {
	border-radius: var(--nk-radius-pill);
	transition: background-color 0.2s, color 0.2s;
}

/* ---------- Process phases ---------- */
/* Cards are tiles with rounded corners and no borders (Nordkapp style).
   Phases 1-3 keep their category colours (aft.css, slightly deepened so they
   read on the gray page); Setting up and Follow-up are white tiles. */
.phase-content {
	border-radius: var(--nk-radius-card);
}
.phase-1 .phase-content,
.phase-5 .phase-content {
	border: 0;
	background: var(--nk-white);
}
.phase-1 .phase-content::before,
.phase-5 .phase-content::before,
.phase-1 .phase-content::after,
.phase-5 .phase-content::after {
	border-bottom-color: var(--nk-white);
}
.phase-1 .phase-name,
.phase-5 .phase-name {
	border-bottom-color: rgba(0, 0, 0, 0.05);
}
.phase .btn {
	border-radius: 0 0 var(--nk-radius-card) var(--nk-radius-card);
}

/* Methods tab cards: rounded tiles */
.method-link {
	border-radius: var(--nk-radius-card);
	overflow: hidden;
}

/* ---------- Forms (workshop, download): Nordkapp box fields ---------- */
/* White boxes on the gray page (nk-input--box in the skill uses gray on white). */
.input-group .input,
.input,
textarea.input {
	border: 0;
	border-radius: 12px;
	background: var(--nk-white);
	color: var(--nk-black);
	outline: 1px solid transparent;
	transition: outline-color 0.2s;
}
.input:focus,
textarea.input:focus {
	outline: 1px solid var(--nk-black);
}
.input::placeholder {
	color: var(--nk-muted);
}
.checkbox-label::before {
	border-width: 1px;
	border-radius: 8px;
}

/* ---------- Black contact section ---------- */
.aft-contact .n-theme-color,
.aft-contact .n-section-header {
	color: var(--nk-white);
}
.aft-contact .n-link-arrow svg path {
	fill: var(--nk-white);
}

/* Footer: the Nordkapp footer has its own stylesheet, nk-footer.css. */
