/**
 * EBF Scholarly — componenti e tipografia
 */

/* ── TIPOGRAFIA BASE ─────────────────────────────────────────── */
body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  color: #333;
  background-color: #fff;
}
a {
  color: var(--ebf-red);
}
a:hover {
  color: var(--ebf-red-dark);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  color: var(--ebf-dark);
  font-weight: 700;
}
h1,
h1.page-title {
  font-size: 1.75rem;
}
h2.block-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── NODI / ARTICOLI ─────────────────────────────────────────── */
.node--type-article .node__title a,
.node--type-blog .node__title a,
.node--type-page .node__title a {
  color: var(--ebf-dark);
  text-decoration: none;
}
.node--type-article .node__title a:hover,
.node--type-blog .node__title a:hover {
  color: var(--ebf-red);
}
.node__submitted {
  font-size: 11px;
  color: #888;
  margin: 3px 0 8px;
}
.node__content {
  line-height: 1.7;
}

/* ── TEASER (Latest Topics) ─────────────────────────────────── */
.node--view-mode-teaser {
  border-bottom: 1px solid #e0e0e0;
  padding: 16px 0 18px;
  margin: 0;
}
.node--view-mode-teaser:first-child {
  padding-top: 0;
}
.node--view-mode-teaser .node__title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 4px;
}
.node--view-mode-teaser .node__submitted {
  font-size: 11px;
  color: #999;
  margin-bottom: 10px;
}
.node--view-mode-teaser .node__content p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #444;
  line-height: 1.6;
}
.node--view-mode-teaser .node__content .field--name-field-tags {
  font-size: 11px;
  color: #888;
  margin-top: 6px;
}
.node--view-mode-teaser .node__content .field--name-field-tags .field__label {
  font-weight: 600;
  text-transform: uppercase;
}
.node--view-mode-teaser .links {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.node--view-mode-teaser .links li a {
  color: var(--ebf-red);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-decoration: none;
}
.node--view-mode-teaser .links li a:hover {
  color: var(--ebf-dark);
}

/* ── LATEST NEWS (sidebar) ──────────────────────────────────── */
#block-ebf-scholarly-latest-news .views-row {
  padding: 5px 0;
  border-bottom: 1px solid #e8e8e8;
  font-size: 12px;
}
#block-ebf-scholarly-latest-news .views-row:last-child {
  border-bottom: none;
}
#block-ebf-scholarly-latest-news .views-field-title a {
  color: var(--ebf-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  display: block;
  margin-bottom: 2px;
}
#block-ebf-scholarly-latest-news .views-field-title a:hover {
  color: var(--ebf-red);
}
#block-ebf-scholarly-latest-news .views-field-created {
  color: #999;
  font-size: 10px;
  text-transform: uppercase;
}

/* ── PULSANTI ────────────────────────────────────────────────── */
.button,
input[type="submit"],
button {
  background-color: var(--ebf-red);
  color: var(--ebf-white);
  border: none;
  padding: 8px 20px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.button:hover,
input[type="submit"]:hover,
button:hover {
  background-color: var(--ebf-red-dark);
  color: var(--ebf-white);
}

/* ── FORM ────────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  border: 1px solid #ddd;
  padding: 8px 12px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--ebf-red);
  outline: none;
  box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.15);
}

/* ── TABELLE ─────────────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
}
thead th {
  background-color: var(--ebf-dark);
  color: var(--ebf-white);
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
}
tbody tr:nth-child(even) {
  background-color: var(--ebf-gray-light);
}
tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

/* ── STATUS MESSAGES — gestiti da basecore (close button incluso) */

/* ── PAGER ───────────────────────────────────────────────────── */
.pager__item a {
  color: var(--ebf-red);
  border: 1px solid #ddd;
  padding: 5px 10px;
  font-size: 13px;
}
.pager__item a:hover,
.pager__item--current a,
.pager__item--current .pager__link {
  background-color: var(--ebf-red);
  color: var(--ebf-white);
  border-color: var(--ebf-red);
}

/* ── ADMIN TABS ──────────────────────────────────────────────── */
.tabs--primary .tabs__tab a {
  color: var(--ebf-gray);
  border-bottom: 2px solid transparent;
}
.tabs--primary .tabs__tab.is-active a,
.tabs--primary .tabs__tab a:hover {
  color: var(--ebf-red);
  border-bottom-color: var(--ebf-red);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar .menu a,
  .header .menu a {
    padding: 10px 14px;
    font-size: 12px;
  }
  .site-branding__name a {
    font-size: 20px;
  }
}
