@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Manrope:wght@400;600;700&display=swap");

/* Gothia Cup hjälpcenter. Ladda upp i Help Scout: Settings → Docs Sites → Custom Code. */

:root {
  --navy: #006298;
  --navy-deep: #004e78;
  --amber: #f2a900;
  --on-amber: #003d5c;
  --ink: #0b1220;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --paper: #f4f6f8;
  --white: #ffffff;
  --radius: 4px;
  --radius-lg: 12px;
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: Manrope, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body,
input,
textarea,
select,
button {
  font-family: var(--font-body);
  color: var(--ink);
}

body,
#main-content:after {
  background: var(--paper);
}

a,
a span {
  color: var(--navy);
  transition: color 0.15s ease, background-color 0.15s ease;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--ink);
}

/* Sidhuvud */
.navbar-inner {
  min-height: 72px;
  background: var(--navy-deep);
  border: 0;
  box-shadow: none;
}

.navbar .brand {
  padding: 8px 20px 8px 0;
}

#mainNav .brand span {
  display: inline-block;
  width: 165px;
  height: 55px;
  background: url("https://www.gothiacup.se/images/gc_liggande_neg.svg") no-repeat 0 0;
  background-size: 100%;
  text-indent: -9000px;
}

.navbar .nav li a,
.navbar .icon-private-w {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navbar .nav li a:hover,
.navbar .nav li a:focus {
  color: var(--amber);
  background: transparent;
}

.navbar .btn-navbar {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.navbar .btn-navbar .icon-bar {
  background: var(--white);
  box-shadow: none;
}

/* Sök på startsidan */
#docsSearch {
  margin-top: 0;
  padding: 2.75rem 1.25rem 4.25rem;
  background: var(--navy);
  border-bottom: 0;
  text-align: center;
}

#docsSearch::before {
  content: "Hjälpcenter";
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 1.6rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.88;
  text-transform: uppercase;
}

#docsSearch h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4rem);
}

#docsSearch #searchBar {
  display: flex;
  align-items: stretch;
  width: min(100%, 40rem);
  margin: 0 auto;
}

#docsSearch #searchBar .search-query {
  flex: 1;
  width: auto;
  min-width: 0;
  margin: 0;
  border-radius: var(--radius) 0 0 var(--radius);
}

#docsSearch #searchBar button {
  margin: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

#searchBar .search-query {
  height: 3.25rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: none;
}

#searchBar .search-query:focus,
#sidebar #searchBar .search-query:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(242, 169, 0, 0.35);
}

#searchBar button {
  height: 3.25rem;
  padding: 0 1.15rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--amber);
  color: var(--on-amber);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: none;
}

#searchBar button .icon-search,
#searchBar button .icon-search:before {
  color: var(--on-amber) !important;
}

#searchBar button:hover,
#searchBar button:focus {
  background: #ffb800;
  border-color: #ffb800;
  color: var(--on-amber);
}

#serp-dd,
#serp-dd.sb {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(0, 78, 120, 0.14);
}

#serp-dd .result a:hover,
#serp-dd .result > li.active {
  background: var(--paper);
}

/* Kategorikort */
.category-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  float: none;
  width: auto;
  margin: 0;
  padding: 2.75rem 0 3.5rem;
}

.category-list:before,
.category-list:after {
  content: none !important;
  display: none !important;
}

.category-list .category,
.category-list.two-col .category {
  --icon: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  float: none;
  box-sizing: border-box;
  width: auto;
  min-height: 100%;
  margin: 0;
  padding: 6rem 1.2rem 1.3rem;
  background-color: var(--white);
  background-image: none !important;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(0, 78, 120, 0.08);
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-list .category:hover {
  background-color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 18px 50px rgba(0, 78, 120, 0.16);
}

.category-list .category:before,
.category-list .category:after {
  content: "";
  position: absolute;
  left: 50%;
  display: block;
  transform: translateX(-50%);
}

.category-list .category:before {
  top: 1.25rem;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: var(--radius);
  background: #fff4d6;
  background: color-mix(in srgb, var(--amber) 24%, white);
}

.category-list .category:after {
  top: 2.25rem;
  width: 1.7rem;
  height: 1.7rem;
  background-color: var(--navy);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.category-list .category:hover:before {
  background: var(--amber);
}

.category-list .category:hover:after {
  background-color: var(--on-amber);
}

.category-list h3,
.category-list .category h2 {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 0.95;
}

.category-list .category:hover h3 {
  color: var(--navy);
}

.category-list .category p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

a.category p.article-count,
a.category p.article-count span {
  margin-top: auto;
  padding-top: 0.9rem;
  color: var(--amber) !important;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

/* Linjeikoner, samma uppsättning för svenska, engelska och övriga samlingar. */
:root {
  --icon-clipboard: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='2' width='8' height='4' rx='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='m9 14 2 2 4-4'/%3E%3C/svg%3E");
  --icon-ticket: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16v3a2.5 2.5 0 0 0 0 4v3H4v-3a2.5 2.5 0 0 0 0-4V7z'/%3E%3Cpath d='M12 8v8'/%3E%3C/svg%3E");
  --icon-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 10 9-7 9 7v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpath d='M9 22V12h6v10'/%3E%3C/svg%3E");
  --icon-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='3'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a3 3 0 0 1 0 5.75'/%3E%3C/svg%3E");
  --icon-badge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='3'/%3E%3Cpath d='m16 11 2 2 4-4'/%3E%3C/svg%3E");
  --icon-food: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 3v7a3 3 0 0 0 6 0V3'/%3E%3Cpath d='M7 3v18'/%3E%3Cpath d='M16 3v8c2 0 4-2 4-5s-2-3-4-3z'/%3E%3Cpath d='M16 11v10'/%3E%3C/svg%3E");
  --icon-ball: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='m12 8 2.2 1.6-.8 2.5h-2.8L9.8 9.6z'/%3E%3Cpath d='M12 4.2V8M7 7.2 9.8 9.6M17 7.2 14.2 9.6M8.2 16.6 9.2 12.1M15.8 16.6 14.8 12.1'/%3E%3C/svg%3E");
  --icon-bus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='14' rx='2'/%3E%3Cpath d='M4 10h16M8 20v-3M16 20v-3'/%3E%3Cpath d='M7 14h.01M17 14h.01'/%3E%3C/svg%3E");
  --icon-sun: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6l1.5 1.5M16.9 16.9l1.5 1.5M18.4 5.6l-1.5 1.5M7.1 16.9l-1.5 1.5'/%3E%3C/svg%3E");
  --icon-whistle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13h4l2-4h5'/%3E%3Ccircle cx='16' cy='14' r='5'/%3E%3Cpath d='M14 9V5h3'/%3E%3C/svg%3E");
}

#category-5,
#category-53,
#category-90,
#category-116 {
  --icon: var(--icon-clipboard);
}

#category-27,
#category-54,
#category-91,
#category-117,
#category-361,
#category-367 {
  --icon: var(--icon-ticket);
}

#category-32,
#category-48,
#category-85,
#category-111 {
  --icon: var(--icon-home);
}

#category-23,
#category-51,
#category-88,
#category-114 {
  --icon: var(--icon-users);
}

#category-164 {
  --icon: var(--icon-badge);
}

#category-38,
#category-50,
#category-87,
#category-113 {
  --icon: var(--icon-food);
}

#category-35,
#category-52,
#category-89,
#category-115 {
  --icon: var(--icon-ball);
}

#category-156,
#category-193 {
  --icon: var(--icon-bus);
}

#category-162,
#category-178 {
  --icon: var(--icon-sun);
}

#category-15,
#category-49,
#category-86,
#category-112 {
  --icon: var(--icon-whistle);
}

/* Kategori och artikel */
#main-content {
  background: none;
}

#main-content:after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: var(--paper);
}

.contentWrapper {
  border: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.75rem 1.35rem;
  box-shadow: 0 18px 50px rgba(0, 78, 120, 0.06);
}

#categoryHead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.35rem;
}

#categoryHead h1 {
  grid-column: 1 / -1;
  margin-bottom: 0.45rem;
  padding-right: 0;
}

#categoryHead .descrip {
  margin: 0;
}

#categoryHead .sort {
  position: static !important;
  float: none;
  width: auto !important;
  margin: 0;
  justify-self: end;
  align-self: center;
}

#categoryHead h1,
#fullArticle h1.title {
  margin-bottom: 1.15rem;
  padding-right: 2.25rem;
  color: var(--ink);
  font-size: clamp(2.2rem, 4.5vw, 3.15rem);
  line-height: 0.96;
}

#categoryHead h1 {
  margin-bottom: 0.45rem;
  padding-right: 0;
}

#categoryHead .descrip,
.contentWrapper p.descrip {
  max-width: 40rem;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
  text-transform: none;
  letter-spacing: 0;
}

#categoryHead #sortBy {
  width: 15.5rem !important;
  max-width: none;
  height: 2.5rem;
  padding: 0 2.1rem 0 0.8rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: var(--radius);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23334155' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 0.7rem;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.875rem;
  -webkit-appearance: none;
  appearance: none;
}

.icon-article-doc {
  display: none;
}

.articleList a,
.articleList li {
  margin-left: 0;
  padding-left: 0;
}

.articleList li + li {
  margin-top: 0.45rem;
}

.articleList li a,
.articleList li a span,
.related li a,
.related li a span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.65rem 0.95rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.articleList li a span,
.related li a span {
  display: block;
  min-height: 0;
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink) !important;
}

.related li a::after,
.articleList li a::after {
  content: "→";
  margin-left: auto;
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.articleList li a:hover,
.articleList li a:hover span,
.related li a:hover,
.related li a:hover span,
.articleList li a:focus,
.related li a:focus {
  background: var(--white);
  border-color: var(--navy);
  color: var(--navy);
  text-decoration: none;
}

#fullArticle,
#fullArticle p,
#fullArticle ul,
#fullArticle ol,
#fullArticle li,
#fullArticle div,
#fullArticle blockquote,
#fullArticle dd,
#fullArticle table {
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
}

#fullArticle h1,
#fullArticle h2,
#fullArticle h3,
#fullArticle h4,
#fullArticle h5 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

#fullArticle h1.title {
  margin-top: 0;
}

#fullArticle h2,
#fullArticle h3,
#fullArticle h4,
#fullArticle h5 {
  margin: 2rem 0 0.5rem;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

#fullArticle h3:first-of-type {
  margin-top: 0.35rem;
}

#fullArticle h2,
#fullArticle h3 {
  font-size: 1.28rem;
}

#fullArticle h4,
#fullArticle h5 {
  font-size: 1.12rem;
}

#fullArticle p {
  margin: 0 0 0.85rem;
}

#fullArticle strong {
  color: var(--ink);
  font-weight: 700;
}

#fullArticle a {
  color: var(--navy);
  font-weight: 700;
}

#fullArticle a:hover {
  color: var(--amber);
}

#fullArticle img {
  margin: 1.5rem 0;
  border-radius: var(--radius-lg);
}

#fullArticle dt {
  background: var(--navy);
}

#fullArticle .callout-yellow,
#fullArticle .callout {
  background: color-mix(in srgb, var(--amber) 16%, white);
  border-color: var(--amber);
  color: var(--on-amber);
}

.printArticle {
  top: 0.15rem;
  right: 0.15rem;
  color: var(--muted);
  opacity: 0.7;
}

.articleFoot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.articleFoot p,
.articleFoot time,
.icon-contact {
  margin: 0;
  color: var(--muted);
  font-style: normal;
}

.articleFoot p {
  margin-right: auto;
}

#sbContact {
  color: var(--navy);
  font-weight: 700;
}

#sbContact:hover {
  color: var(--amber);
}

#main-content .related {
  box-sizing: border-box;
  margin-top: 0.5rem;
  padding: 1.75rem 1.75rem 0.5rem;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--white);
}

#main-content .related ul {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

#main-content .related li {
  margin: 0 0 0.65rem;
  padding: 0;
}

#main-content .related li a {
  box-sizing: border-box;
  width: auto;
  margin: 0;
}
.related h3,
#sidebar h3 {
  margin: 0.25rem 0 0.7rem;
  color: var(--navy);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

/* Sidospalt */
#sidebar #searchBar.sm {
  display: flex;
  margin: 0 0 1.5rem;
}

#sidebar #searchBar .search-query {
  flex: 1;
  width: auto;
  height: 2.75rem;
  margin: 0;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  border-radius: var(--radius) 0 0 var(--radius);
}

#sidebar #searchBar button {
  position: static;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--amber);
  color: var(--on-amber);
}

#sidebar #searchBar button .icon-search,
#sidebar #searchBar button .icon-search:before {
  color: var(--on-amber) !important;
  font-size: 1rem;
}

#sidebar .nav-list li {
  margin: 0 0 0.25rem;
}

#sidebar .nav-list a,
#sidebar .nav-list .active a,
#sidebar .nav-list .active a:hover,
#sidebar .nav-list .active a:focus {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
}

#sidebar .nav-list .icon-arrow {
  margin-left: auto;
}

#sidebar .nav-list .active a .icon-arrow:before,
#sidebar .nav-list a:hover .icon-arrow:before {
  color: var(--on-amber);
}

#sidebar .nav-list li a:hover,
#sidebar .nav-list li.active a,
#sidebar .nav-list li.active a:hover,
#sidebar .nav-list li.active a:focus {
  background: var(--amber);
  color: var(--on-amber);
}

/* Kontakt */
#contactModal {
  border: 0;
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--amber);
}

#contactModal h2,
#contactForm:before {
  color: var(--ink);
  font-family: var(--font-display);
  text-transform: uppercase;
}

#contactModal .form-actions input,
#contactForm .form-actions input {
  border: 0;
  border-radius: var(--radius);
  background: var(--amber);
  color: var(--on-amber);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-shadow: none;
  text-transform: uppercase;
}

/* Sidfot */
footer.center {
  padding: 1.75rem 1.25rem 2.5rem;
  text-align: center;
}

footer.center,
footer.center p,
footer p,
footer p a {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

footer.center a,
footer p a {
  color: var(--navy);
}

@media (max-width: 1105px) {
  .category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .navbar .btn-navbar {
    margin-top: 16px;
  }
}

@media (max-width: 760px) {
  .category-list,
  .category-list.two-col {
    grid-template-columns: 1fr;
  }

  #docsSearch::before {
    font-size: 2.8rem;
  }

  #categoryHead {
    grid-template-columns: 1fr;
  }

  #categoryHead .sort {
    justify-self: start;
    margin-top: 0.75rem;
  }
}

@media (max-width: 480px) {
  #docsSearch #searchBar button,
  #searchBar button {
    background: var(--amber);
    color: var(--on-amber);
  }
}
