/*
	Corporació Deportiva Nexo
*/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

mark {
  background-color: transparent;
  color: inherit;
}

input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

input,
select,
textarea {
  appearance: none;
}

@media screen and (max-width: 480px) {
  html,
  body {
    min-width: 320px;
  }
}

html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  background: #ffffff;
}
body.is-preload *,
body.is-preload *:before,
body.is-preload *:after,
body.is-resizing *,
body.is-resizing *:before,
body.is-resizing *:after {
  animation: none !important;
  transition: none !important;
}

/* List */
ol {
  list-style: decimal;
  margin: 0 0 var(--space-element) 0;
  padding-left: 1.25em;
}
ol li {
  padding-left: 0.25em;
  text-align: justify;
}

ul {
  list-style: disc;
  margin: 0 0 var(--space-element) 0;
  padding-left: 1em;
}
ul li {
  padding-left: 0.5em;
  text-align: justify;
}
ul.alt {
  list-style: none;
  padding-left: 0;
}
ul.alt li {
  border-top: solid 1px var(--color-border);
  padding: 0.5em 0;
}
ul.alt li:first-child {
  border-top: 0;
  padding-top: 0;
}

dl {
  margin: 0 0 var(--space-element) 0;
}
dl dt {
  display: block;
  font-weight: var(--font-weight-bold);
  margin: 0 0 1em 0;
}
dl dd {
  margin-left: var(--space-element);
  text-align: justify;
}

/* Type */
body,
input,
select,
textarea {
  color: var(--color-text);
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-body);
}
@media screen and (max-width: 1680px) {
  body,
  input,
  select,
  textarea {
    font-size: 11pt;
  }
}
@media screen and (max-width: 1280px) {
  body,
  input,
  select,
  textarea {
    font-size: 10pt;
  }
}
@media screen and (max-width: 360px) {
  body,
  input,
  select,
  textarea {
    font-size: 9pt;
  }
}

a {
  transition:
    color var(--transition-duration) var(--transition-easing),
    border-bottom-color var(--transition-duration) var(--transition-easing);
  border-bottom: dotted 1px;
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  border-bottom-color: var(--color-primary);
  color: var(--color-primary) !important;
}
a:hover strong {
  color: inherit;
}

strong,
b {
  color: var(--color-text-bold);
  font-weight: var(--font-weight-bold);
}

em,
i {
  font-style: italic;
}

p {
  margin: 0 0 var(--space-element) 0;
  text-align: justify;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-heading);
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-heavy);
  line-height: var(--line-height-heading);
  margin: 0 0 1em 0;
}
h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 0;
}

h1 {
  font-size: var(--font-size-h1);
  margin: 0 0 0.5em 0;
  line-height: 1.3;
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

h4 {
  font-size: var(--font-size-h4);
}

h5 {
  font-size: var(--font-size-h5);
}

h6 {
  font-size: var(--font-size-h6);
}

@media screen and (max-width: 1680px) {
  h1 {
    font-size: 3.5em;
  }
}

@media screen and (max-width: 980px) {
  h1 {
    font-size: 3.25em;
  }
}

@media screen and (max-width: 736px) {
  h1 {
    font-size: 2em;
    line-height: 1.4;
  }
  h2 {
    font-size: 1.5em;
  }
}

sub {
  font-size: 0.8em;
  position: relative;
  top: 0.5em;
}

sup {
  font-size: 0.8em;
  position: relative;
  top: -0.5em;
}

blockquote {
  border-left: solid 3px var(--color-border);
  font-style: italic;
  margin: 0 0 var(--space-element) 0;
  padding: 0.5em 0 0.5em var(--space-element);
  text-align: justify;
}

code {
  background: var(--color-accent-bg);
  border-radius: var(--radius);
  border: solid 1px var(--color-border);
  font-family: var(--font-family-mono);
  font-size: var(--font-size-h5);
  margin: 0 0.25em;
  padding: 0.25em 0.65em;
}

pre {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-h5);
  margin: 0 0 var(--space-element) 0;
}
pre code {
  display: block;
  line-height: 1.75;
  padding: 1em 1.5em;
  overflow-x: auto;
}

hr {
  border: 0;
  border-bottom: solid 1px var(--color-border);
  margin: var(--space-element) 0;
}
hr.major {
  margin: 3em 0;
}

/* Form */
form {
  margin: 0 0 var(--space-element) 0;
}

label {
  color: var(--color-text-bold);
  display: block;
  font-size: 0.9em;
  font-weight: var(--font-weight-bold);
  margin: 0 0 1em 0;
}

input[type='text'],
input[type='password'],
input[type='email'],
input[type='tel'],
input[type='search'],
input[type='url'],
select,
textarea {
  appearance: none;
  background: #ffffff;
  border-radius: var(--radius);
  border: none;
  border: solid 1px var(--color-border);
  color: inherit;
  display: block;
  outline: 0;
  padding: 0 1em;
  text-decoration: none;
  width: 100%;
}
input[type='text']:invalid,
input[type='password']:invalid,
input[type='email']:invalid,
input[type='tel']:invalid,
input[type='search']:invalid,
input[type='url']:invalid,
select:invalid,
textarea:invalid {
  box-shadow: none;
}
input[type='text']:focus,
input[type='password']:focus,
input[type='email']:focus,
input[type='tel']:focus,
input[type='search']:focus,
input[type='url']:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' preserveAspectRatio='none' viewBox='0 0 40 40'%3E%3Cpath d='M9.4,12.3l10.4,10.4l10.4-10.4c0.2-0.2,0.5-0.4,0.9-0.4c0.3,0,0.6,0.1,0.9,0.4l3.3,3.3c0.2,0.2,0.4,0.5,0.4,0.9 c0,0.4-0.1,0.6-0.4,0.9L20.7,31.9c-0.2,0.2-0.5,0.4-0.9,0.4c-0.3,0-0.6-0.1-0.9-0.4L4.3,17.3c-0.2-0.2-0.4-0.5-0.4-0.9 c0-0.4,0.1-0.6,0.4-0.9l3.3-3.3c0.2-0.2,0.5-0.4,0.9-0.4S9.1,12.1,9.4,12.3z' fill='rgba(210, 215, 217, 0.75)' /%3E%3C/svg%3E");
  background-size: 1.25em;
  background-repeat: no-repeat;
  background-position: calc(100% - 1em) center;
  height: 2.75em;
  padding-right: 2.75em;
  text-overflow: ellipsis;
}
select option {
  color: var(--color-text-bold);
  background: #ffffff;
}

input[type='text'],
input[type='password'],
input[type='email'],
input[type='tel'],
input[type='search'],
input[type='url'],
select {
  height: 2.75em;
}

textarea {
  padding: 0.75em 1em;
}

input[type='checkbox'],
input[type='radio'] {
  appearance: none;
  display: block;
  float: left;
  margin-right: -2em;
  opacity: 0;
  width: 1em;
  z-index: -1;
}
input[type='checkbox'] + label,
input[type='radio'] + label {
  text-decoration: none;
  color: var(--color-text);
  cursor: pointer;
  display: inline-block;
  font-size: 1em;
  font-weight: var(--font-weight-normal);
  padding-left: 2.4em;
  padding-right: 0.75em;
  position: relative;
}
input[type='checkbox'] + label:before,
input[type='radio'] + label:before {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  text-transform: none !important;
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
}
input[type='checkbox'] + label:before,
input[type='radio'] + label:before {
  background: #ffffff;
  border-radius: var(--radius);
  border: solid 1px var(--color-border);
  content: '';
  display: inline-block;
  font-size: 0.8em;
  height: 2.0625em;
  left: 0;
  line-height: 2.0625em;
  position: absolute;
  text-align: center;
  top: 0;
  width: 2.0625em;
}
input[type='checkbox']:checked + label:before,
input[type='radio']:checked + label:before {
  background: var(--color-text-bold);
  border-color: var(--color-text-bold);
  color: #ffffff;
  content: '\f00c';
}
input[type='checkbox']:focus + label:before,
input[type='radio']:focus + label:before {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

input[type='checkbox'] + label:before {
  border-radius: var(--radius);
}

input[type='radio'] + label:before {
  border-radius: 100%;
}

::placeholder {
  color: var(--color-meta) !important;
  opacity: 1;
}

.align-left {
  text-align: left;
}

.align-center {
  text-align: center;
}

.align-right {
  text-align: right;
}

/* Section/Article */
section.special,
article.special {
  text-align: center;
}
@media screen and (max-width: 736px) {
  section.special .content {
    text-align: left;
  }
  section.special .row {
    gap: 1.5em;
  }
}

header p {
  font-family: var(--font-family-heading);
  font-size: 1em;
  font-weight: var(--font-weight-normal);
  letter-spacing: 0.075em;
  margin-top: -0.5em;
  text-transform: uppercase;
}

header.major > :last-child {
  border-bottom: solid 3px var(--color-primary);
  display: inline-block;
  margin: 0 0 var(--space-element) 0;
  padding: 0 0.75em 0.5em 0;
  max-width: 100%;
  word-break: break-word;
}

header.main > :last-child {
  margin: 0 0 1em 0;
}

/* Focus visible — keyboard navigation indicator */
:focus-visible {
  outline: 2px solid var(--color-primary, #602571);
  outline-offset: 2px;
}

/* ── Mobile text fixes ─────────────────────────────── */
@media screen and (max-width: 736px) {
  p,
  blockquote,
  li {
    text-align: left;
  }
  section.special p.lead {
    font-size: 1.1em;
  }
}
@media screen and (max-width: 480px) {
  p,
  blockquote,
  li {
    overflow-wrap: break-word;
    word-break: break-word;
  }
  section.special blockquote,
  section.special p.lead {
    margin-left: 0;
    margin-right: 0;
  }
}
