/* Fyrirtæki Grunnsíða (Fyrirtæki Grunnsíða.dc.html; mobile: Farsími.dc.html M3). */

.gs-co-top {
	padding-top: 24px;
}

/* ---------- Heading ---------- */

.gs-co-head {
	padding-top: 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.gs-co-head__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	padding-bottom: 18px;
	border-bottom: var(--gs-frame) solid var(--gs-ink);
}

.gs-co-head__main {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.gs-co-head__kicker {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
}

.gs-co-head__title {
	font-size: 64px;
	font-weight: 800;
	line-height: .92;
	font-stretch: 62%;
	text-transform: uppercase;
	text-wrap: balance;
	overflow-wrap: anywhere;
}

.gs-co-head__line {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 15px;
	color: var(--gs-body);
}

.gs-co-head__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.gs-badge--lg {
	font-size: 11px;
	padding: 2px 7px;
}

.gs-badge--surface {
	background: var(--gs-surface);
}

.gs-badge--live.gs-badge--lg .gs-dot {
	width: 8px;
	height: 8px;
}

.gs-co-head__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.gs-btn--co {
	height: 44px;
	padding: 0 18px;
	font-size: 15px;
}

.gs-btn--co[aria-pressed="true"] {
	background: var(--gs-btn-bg);
	border-color: var(--gs-btn-bg);
	color: var(--gs-btn-fg);
}

/* ---------- Body ---------- */

.gs-co-body {
	padding-top: 28px;
	padding-bottom: 56px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 40px;
}

.gs-co-main {
	flex: 1 1 580px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.gs-co-side {
	flex: 0 1 var(--gs-sidebar);
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.gs-co-block {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.gs-co-h2 {
	padding-top: 10px;
	border-top: var(--gs-frame) solid var(--gs-ink);
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
	font-stretch: 65%;
	text-transform: uppercase;
}

.gs-co-h2row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding-top: 10px;
	border-top: var(--gs-frame) solid var(--gs-ink);
}

.gs-co-h2row .gs-co-h2 {
	padding-top: 0;
	border-top: 0;
}

.gs-co-h2row__meta {
	font-size: 13px;
	font-weight: 500;
	color: var(--gs-muted);
}

.gs-co-h3 {
	padding: 10px 0;
	font-size: 22px;
	font-weight: 800;
	font-stretch: 65%;
	text-transform: uppercase;
}

/* Summary */

.gs-co-summary {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.gs-co-summary__text {
	max-width: 720px;
	font-size: 18px;
	line-height: 1.6;
	text-wrap: pretty;
}

.gs-co-summary__text a {
	font-weight: 700;
	text-underline-offset: 3px;
}

/* Um fyrirtækið placeholder */

.gs-co-about {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 24px;
	border: 2px dashed var(--gs-ink);
	background: var(--gs-surface);
}

.gs-co-about p {
	max-width: 480px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--gs-muted);
}

.gs-co-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	align-items: start;
	gap: 32px;
}

/* Key facts */

.gs-facts {
	display: flex;
	flex-direction: column;
}

.gs-facts__row {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr);
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid var(--gs-line);
	font-size: 14px;
}

.gs-facts__row dt {
	color: var(--gs-muted);
}

.gs-facts__row dd {
	font-weight: 500;
	overflow-wrap: anywhere;
}

.gs-facts--split .gs-facts__row {
	display: flex;
	justify-content: space-between;
}

.gs-claimnote {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	padding: 16px;
	border: 2px solid var(--gs-ink);
	background: var(--gs-yellow-soft);
}

.gs-claimnote__title {
	font-size: 15px;
	font-weight: 700;
}

.gs-claimnote__text {
	font-size: 14px;
	line-height: 1.5;
}

/* ---------- Timeline: 640ms draw on enter ---------- */

.gs-timeline {
	display: flex;
	flex-direction: column;
	padding-top: 8px;
}

.gs-timeline__item {
	display: grid;
	grid-template-columns: 72px 24px minmax(0, 1fr);
	column-gap: 14px;
}

.gs-timeline__year {
	padding-top: 2px;
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
	font-stretch: 62%;
	text-align: right;
}

.gs-timeline__rail {
	position: relative;
	display: flex;
	justify-content: center;
}

.gs-timeline__rail::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--gs-ink);
	transform-origin: top;
	animation: gs-draw var(--gs-narrative) var(--gs-ease) both;
}

.gs-timeline__item.is-last .gs-timeline__rail::before {
	bottom: calc(100% - 22px);
}

.gs-timeline__dot {
	position: relative;
	width: 16px;
	height: 16px;
	margin-top: 6px;
	border: 3px solid var(--gs-ink);
	background: var(--gs-surface);
}

.gs-timeline__item.is-latest .gs-timeline__dot {
	background: var(--gs-yellow);
}

.gs-timeline__body {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
	padding-bottom: 26px;
}

.gs-timeline__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.gs-timeline__tag {
	padding: 2px 6px;
	border: 1px solid var(--gs-ink);
	background: var(--gs-surface);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.gs-timeline__tag.is-key {
	background: var(--gs-yellow);
	color: var(--gs-on-yellow);
}

.gs-timeline__date {
	font-size: 12px;
	font-weight: 500;
	color: var(--gs-muted);
}

.gs-timeline__text {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

@keyframes gs-draw {
	from { transform: scaleY(0); }
	to { transform: scaleY(1); }
}

/* ---------- Board ---------- */

.gs-table__inner--board {
	min-width: 0;
}

.gs-table__head--board,
.gs-table__row--board {
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
}

.gs-table__row--board:hover {
	background: none;
}

/* ---------- Lists: owners, same address, similar ---------- */

.gs-plainlist {
	display: flex;
	flex-direction: column;
}

.gs-plainlist__row {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 11px 0;
	border-bottom: 1px solid var(--gs-line);
}

.gs-plainlist__name {
	font-size: 15px;
	font-weight: 700;
	color: var(--gs-ink);
	text-decoration: none;
}

.gs-plainlist a.gs-plainlist__name:hover,
.gs-plainlist__name a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.gs-plainlist__name a {
	color: inherit;
	text-decoration: none;
}

.gs-plainlist__meta {
	font-size: 13px;
	color: var(--gs-body);
}

.gs-plainlist__row.is-former .gs-plainlist__name,
.gs-plainlist__row.is-former .gs-plainlist__meta {
	color: var(--gs-muted);
}

.gs-co-ad {
	display: flex;
}

/* ---------- Sidebar ---------- */

.gs-co-sidebox {
	display: flex;
	flex-direction: column;
	border-top: var(--gs-frame) solid var(--gs-ink);
}

.gs-minimap {
	display: flex;
	flex-direction: column;
	border: 2px solid var(--gs-ink);
	background: var(--gs-surface);
}

.gs-minimap__map {
	position: relative;
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background:
		linear-gradient(var(--gs-line) 1px, transparent 1px) 0 0 / 28px 28px,
		linear-gradient(90deg, var(--gs-line) 1px, transparent 1px) 0 0 / 28px 28px,
		var(--gs-surface-2);
}

.gs-minimap__pin {
	width: 20px;
	height: 20px;
	border: 3px solid var(--gs-ink);
	background: var(--gs-yellow);
	transform: rotate(45deg);
}

.gs-minimap__map[data-gs-minimap] {
	cursor: grab;
}

.gs-minimap.is-live .gs-minimap__map > .gs-minimap__pin {
	display: none;
}

.gs-minimap__approx {
	padding: 8px 12px 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--gs-muted);
}

.gs-minimap__note {
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 8px;
	padding: 3px 6px;
	background: var(--gs-bg);
	color: var(--gs-muted);
	font-size: 11px;
	font-weight: 500;
}

.gs-minimap__foot {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 12px;
	border-top: 2px solid var(--gs-ink);
	font-size: 13px;
	font-weight: 600;
}

.gs-minimap__foot a {
	color: var(--gs-ink);
	flex: none;
}

.gs-sidelink {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 9px 0;
	border-bottom: 1px solid var(--gs-line);
	color: var(--gs-ink);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.gs-sidelink:hover {
	background: var(--gs-yellow-soft);
}

.gs-sidelink .gs-num {
	color: var(--gs-muted);
	font-weight: 500;
}

.gs-sidelink__all {
	padding-top: 10px;
	font-size: 13px;
}

/* ---------- Related band ---------- */

.gs-co-related {
	border-top: var(--gs-frame) solid var(--gs-ink);
	background: var(--gs-surface);
}

.gs-co-related__inner {
	max-width: var(--gs-max);
	margin: 0 auto;
	padding: 48px var(--gs-gutter) 56px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
	align-items: start;
	gap: 40px;
}

.gs-ownergroup {
	display: flex;
	flex-direction: column;
	border: 2px solid var(--gs-ink);
}

.gs-ownergroup + .gs-ownergroup {
	margin-top: 12px;
}

.gs-ownergroup__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	padding: 10px 12px;
	background: var(--gs-inverse-bg);
	color: var(--gs-inverse-fg);
}

.gs-ownergroup__owner {
	font-size: 15px;
	font-weight: 700;
}

.gs-ownergroup__note {
	font-size: 12px;
	font-weight: 500;
	color: var(--gs-yellow);
}

.gs-ownergroup__row {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	border-top: 1px solid var(--gs-line);
	color: var(--gs-ink);
	text-decoration: none;
}

.gs-ownergroup__row:hover {
	background: var(--gs-yellow-soft);
}

.gs-ownergroup__name {
	font-size: 15px;
	font-weight: 700;
}

.gs-ownergroup__role {
	font-size: 13px;
}

.gs-ownergroup__row.is-former {
	color: var(--gs-muted);
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
	.gs-co-top {
		padding-top: 12px;
	}

	.gs-co-head {
		padding-top: 16px;
	}

	.gs-co-head .gs-crumbs {
		display: none;
	}

	.gs-co-head__title {
		font-size: 44px;
	}

	.gs-co-head__actions,
	.gs-co-head__actions .gs-btn {
		width: 100%;
	}

	.gs-co-body {
		padding-top: 20px;
		gap: 32px;
	}

	.gs-co-main {
		gap: 32px;
	}

	.gs-co-side {
		flex-basis: 100%;
	}

	.gs-co-summary__text {
		font-size: 16px;
	}

	.gs-facts__row {
		grid-template-columns: 120px minmax(0, 1fr);
	}

	.gs-timeline__item {
		grid-template-columns: 48px 20px minmax(0, 1fr);
		column-gap: 10px;
	}

	.gs-timeline__year {
		font-size: 24px;
	}

	.gs-co-related__inner {
		grid-template-columns: minmax(0, 1fr);
		padding-top: 32px;
		padding-bottom: 40px;
	}
}
