/* TOPhbl.sk — clean Bootstrap-based magazine theme */

:root {
  --thbl-primary: #c8102e;      /* hockey red */
  --thbl-dark: #14181f;         /* near-black navy */
  --thbl-accent: #f5a623;       /* highlight */
  --thbl-muted: #6b7280;
  --thbl-bg: #f4f2ef;
  --bs-primary: var(--thbl-primary);
  --bs-primary-rgb: 200, 16, 46;
}

body {
  font-family: "Inter", "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  color: #1f2530;
  background: var(--thbl-bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, .site-name {
  font-family: "Georgia", "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

a { color: var(--thbl-primary); text-decoration: none; }
a:hover { color: #8f0a20; text-decoration: underline; }

/* Buttons: recolor Bootstrap primary to the hockey red */
.btn-primary {
  --bs-btn-bg: var(--thbl-primary);
  --bs-btn-border-color: var(--thbl-primary);
  --bs-btn-hover-bg: #a50d26;
  --bs-btn-hover-border-color: #a50d26;
  --bs-btn-active-bg: #8f0a20;
  --bs-btn-active-border-color: #8f0a20;
  --bs-btn-disabled-bg: var(--thbl-primary);
  --bs-btn-disabled-border-color: var(--thbl-primary);
}
.btn { text-decoration: none; }

/* ---- Top bar / masthead ------------------------------------------------ */
.thbl-topbar {
  background: var(--thbl-dark);
  color: #cbd2dc;
  font-size: .82rem;
}
.thbl-topbar a { color: #cbd2dc; }
.thbl-topbar-right { display: flex; align-items: center; gap: 0; }
.thbl-topbar-right .thbl-date { padding-right: 14px; margin-right: 2px; border-right: 1px solid rgba(255,255,255,.18); }
.thbl-account { display: inline-flex; }
.thbl-account nav, .thbl-account ul { display: flex; align-items: center; gap: 14px; list-style: none; margin: 0; padding: 0 0 0 14px; }
.thbl-account li { margin: 0; }
.thbl-account h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.thbl-account a { color: #e6e8ec; text-decoration: none; font-weight: 600; }
.thbl-account a:hover { color: var(--thbl-orange, #f5a623); }
@media (max-width: 575.98px) { .thbl-topbar-right .thbl-date { display: none; } }

.thbl-masthead {
  background: #fff;
  border-bottom: 3px solid var(--thbl-primary);
}
.thbl-logo-link { display: inline-block; line-height: 0; }
.thbl-logo { height: 58px; width: auto; display: block; }
@media (max-width: 575.98px) { .thbl-logo { height: 44px; } }

/* ---- Search box -------------------------------------------------------- */
.thbl-search { display: flex; align-items: stretch; max-width: 340px; width: 100%; flex: 0 1 340px; }
.thbl-search input {
  flex: 1 1 auto; min-width: 0;
  border: 1px solid #d7dbe0; border-right: 0;
  border-radius: 999px 0 0 999px;
  padding: .5rem .95rem; font-size: .9rem; color: #1f2530; background: #fff;
}
.thbl-search input:focus { outline: none; border-color: var(--thbl-primary); box-shadow: -1px 0 0 var(--thbl-primary); }
.thbl-search button {
  flex: 0 0 auto; border: 0; cursor: pointer;
  background: var(--thbl-primary); color: #fff;
  border-radius: 0 999px 999px 0; padding: 0 1rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.thbl-search button:hover { background: #a50d26; }
.thbl-search--page { max-width: 480px; flex-basis: 480px; margin-bottom: 1.4rem; }
.thbl-search-summary { color: var(--thbl-muted); margin-bottom: 1rem; }
.thbl-search-hint { color: var(--thbl-muted); }
@media (max-width: 575.98px) { .thbl-search { order: 3; flex-basis: 100%; max-width: 100%; } }

/* ---- Navbar ------------------------------------------------------------ */
.thbl-nav {
  background: var(--thbl-primary);
}
.thbl-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.thbl-nav ul li { margin: 0; list-style: none; }
.thbl-nav ul li a {
  display: block;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: .03em;
  padding: .9rem 1rem;
  text-decoration: none;
}
.thbl-nav ul li a:hover,
.thbl-nav ul li a.is-active,
.thbl-nav ul li a[aria-current="page"] {
  background: rgba(0, 0, 0, .18);
  color: #fff;
}
@media (max-width: 991.98px) {
  .thbl-nav ul { flex-direction: column; }
}

/* ---- Article cards ----------------------------------------------------- */
.thbl-card {
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  transition: box-shadow .2s ease, transform .2s ease;
}
.thbl-card:hover { box-shadow: 0 10px 28px rgba(20, 24, 31, .12); transform: translateY(-3px); }
.thbl-card .thbl-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  background: #e9ecf1 center/cover no-repeat;
}
.thbl-card .card-body { padding: 1rem 1.1rem 1.2rem; }
.thbl-card .thbl-title { font-size: 1.12rem; line-height: 1.3; margin: .35rem 0 .5rem; }
.thbl-card .thbl-title a { color: var(--thbl-dark); }
.thbl-card .thbl-title a:hover { color: var(--thbl-primary); text-decoration: none; }
.thbl-card .thbl-title a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.thbl-card .thbl-excerpt {
  color: #4b5563;
  font-size: .92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.thbl-card .card-body { display: flex; flex-direction: column; }
.thbl-card .thbl-meta { margin-top: auto; padding-top: .6rem; }

.thbl-badge {
  display: inline-block;
  background: var(--thbl-primary);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .2rem .55rem;
  border-radius: 4px;
}
.thbl-meta { color: var(--thbl-muted); font-size: .78rem; }
.thbl-meta .dot { margin: 0 .4rem; }

/* ---- Lead / hero ------------------------------------------------------- */
.thbl-lead {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 360px;
  background: var(--thbl-dark) center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: flex-end;
}
.thbl-lead::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.85) 100%);
}
.thbl-lead .thbl-lead-body { position: relative; z-index: 2; padding: 1.8rem; }
.thbl-lead h2 { color: #fff; font-size: 1.9rem; }
.thbl-lead h2 a { color: #fff; }

/* ---- Section headings -------------------------------------------------- */
.thbl-section-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 1.8rem 0 1rem;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.thbl-section-title::before {
  content: "";
  width: 6px; height: 1.35rem;
  background: var(--thbl-primary);
  border-radius: 3px;
}

/* ---- Full article ------------------------------------------------------ */
.thbl-article { background: #fff; border-radius: 12px; padding: 2rem; }
.thbl-article h1 { font-size: 2.1rem; margin-bottom: .6rem; }
.thbl-article .thbl-content { font-size: 1.05rem; overflow-wrap: break-word; }
.thbl-article .thbl-content img { max-width: 100%; height: auto; border-radius: 6px; }
.thbl-article .thbl-content p { margin-bottom: 1rem; }
/* Wide tables scroll inside their own box instead of breaking the layout */
.thbl-article .thbl-content table {
  max-width: 100%;
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
}
.thbl-article .thbl-content table td,
.thbl-article .thbl-content table th { padding: .3rem .5rem; }

/* ---- TOP hero carousel (sticky articles) ------------------------------ */
.thbl-carousel { border-radius: 12px; overflow: hidden; margin-bottom: 2rem; background: var(--thbl-dark); }
.thbl-carousel-slide {
  display: block; position: relative;
  min-height: 470px;
  background: var(--thbl-dark) center/cover no-repeat;
  text-decoration: none;
}
.thbl-carousel-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 25%, rgba(0,0,0,.86) 100%);
}
.thbl-carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 2.2rem 2.6rem 3rem; max-width: 880px;
}
.thbl-carousel-title { color: #fff; font-size: 2.2rem; line-height: 1.15; margin: .55rem 0 .55rem; }
.thbl-carousel-slide:hover .thbl-carousel-title { color: #ffd7dd; }
.thbl-carousel-excerpt { color: #e6e8ec; font-size: 1.05rem; margin-bottom: .4rem; }
.thbl-carousel .thbl-meta { color: #cfd4db; }
.thbl-carousel .carousel-indicators { z-index: 3; margin-bottom: .8rem; }
.thbl-carousel .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; border: 0; }
.thbl-carousel .carousel-control-prev, .thbl-carousel .carousel-control-next { width: 8%; z-index: 3; }
@media (max-width: 575.98px) {
  .thbl-carousel-slide { min-height: 300px; }
  .thbl-carousel-title { font-size: 1.4rem; }
  .thbl-carousel-caption { padding: 1.3rem 1.4rem 2.2rem; }
  .thbl-carousel-excerpt { display: none; }
}

/* ---- Magazine section module (1 lead + smaller) ----------------------- */
.thbl-module { margin-bottom: 2.6rem; }
.thbl-section-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}
/* Lead article: full-width with overlaid title */
.thbl-section-grid > .thbl-card:first-child {
  grid-column: 1 / -1;
  position: relative;
  min-height: 380px;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--thbl-dark);
}
.thbl-section-grid > .thbl-card:first-child:hover { transform: none; box-shadow: 0 14px 40px rgba(20,24,31,.22); }
.thbl-section-grid > .thbl-card:first-child .thbl-thumb {
  position: absolute; inset: 0;
  height: 100%; aspect-ratio: auto; border-radius: 0;
  background-color: var(--thbl-dark);
}
.thbl-section-grid > .thbl-card:first-child::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.86) 100%);
}
.thbl-section-grid > .thbl-card:first-child .card-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.8rem 2rem; max-width: 820px;
}
.thbl-section-grid > .thbl-card:first-child .thbl-title { font-size: 1.85rem; line-height: 1.18; }
.thbl-section-grid > .thbl-card:first-child .thbl-title a { color: #fff; }
.thbl-section-grid > .thbl-card:first-child .thbl-title a:hover { color: #ffd7dd; }
.thbl-section-grid > .thbl-card:first-child .thbl-excerpt { color: #e5e7eb; font-size: 1rem; }
.thbl-section-grid > .thbl-card:first-child .thbl-meta { color: #cfd4db; }
@media (max-width: 991.98px) {
  .thbl-section-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
  .thbl-section-grid { grid-template-columns: 1fr; }
  .thbl-section-grid > .thbl-card:first-child { grid-column: auto; min-height: 260px; }
  .thbl-section-grid > .thbl-card:first-child .thbl-title { font-size: 1.3rem; }
}

/* ---- Sidebar widgets (compact lists) ---------------------------------- */
.thbl-widget-list { list-style: none; margin: 0; padding: 0; }
.thbl-widget-item {
  display: flex;
  gap: .75rem;
  padding: .7rem 0;
  border-bottom: 1px solid #eef0f3;
  position: relative;
}
.thbl-widget-item:last-child { border-bottom: 0; padding-bottom: 0; }
.thbl-widget-thumb {
  flex: 0 0 76px;
  width: 76px; height: 58px;
  border-radius: 6px;
  background: #e9ecf1 center/cover no-repeat;
}
.thbl-widget-body { display: flex; flex-direction: column; min-width: 0; }
.thbl-widget-title {
  font-weight: 600; font-size: .9rem; line-height: 1.25;
  color: var(--thbl-dark);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.thbl-widget-title:hover { color: var(--thbl-primary); text-decoration: none; }
.thbl-widget-meta { font-size: .72rem; color: var(--thbl-muted); margin-top: .3rem; }
.thbl-widget-meta .dot { margin: 0 .35rem; }
.thbl-widget-reads { color: var(--thbl-primary); font-weight: 700; margin-left: .4rem; }
/* Ranked list (Najčítanejšie): numbered badges */
.thbl-widget--ranked .thbl-widget-list { counter-reset: rank; }
.thbl-widget--ranked .thbl-widget-item { counter-increment: rank; }
.thbl-widget--ranked .thbl-widget-thumb::after {
  content: counter(rank);
  position: absolute; left: 0; top: .7rem;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--thbl-primary); color: #fff;
  font-weight: 700; font-size: .85rem;
  border-radius: 0 6px 6px 0;
}

/* ---- Poll (anketa) widget --------------------------------------------- */
#block-tophbl-poll {
  background: #fff; border: 1px solid #e6e8ec; border-radius: 10px;
  padding: 1.1rem 1.2rem 1.3rem; margin-bottom: 1.5rem;
}
#block-tophbl-poll > h2 {
  font-family: Georgia, serif; font-size: 1rem; text-transform: uppercase;
  border-bottom: 2px solid var(--thbl-primary); padding-bottom: .5rem; margin: 0 0 .9rem;
}
#block-tophbl-poll .poll { font-size: .92rem; }
#block-tophbl-poll .fieldset-wrapper, #block-tophbl-poll fieldset { border: 0; padding: 0; margin: 0; }
#block-tophbl-poll .form-item-choice { margin: .35rem 0; display: flex; align-items: center; gap: .5rem; }
#block-tophbl-poll label.option { margin: 0; font-weight: 500; cursor: pointer; }
#block-tophbl-poll .form-actions { margin-top: 1rem; display: flex; gap: .5rem; }
#block-tophbl-poll .form-actions .btn { flex: 1 1 auto; }
/* results bars */
#block-tophbl-poll .poll-results, #block-tophbl-poll .vote-results { font-size: .85rem; }
#block-tophbl-poll .poll-bar, #block-tophbl-poll .bar {
  background: #eef0f3; height: 9px; border-radius: 5px; overflow: hidden; margin: .25rem 0 .6rem;
}
#block-tophbl-poll .poll-bar .foreground, #block-tophbl-poll .bar .foreground { background: var(--thbl-primary); height: 100%; }
#block-tophbl-poll .choice-title, #block-tophbl-poll .poll-choice { font-weight: 500; }
#block-tophbl-poll .percent { color: var(--thbl-muted); }

/* ---- Facebook widget --------------------------------------------------- */
.thbl-fb-embed { border-radius: 6px; overflow: hidden; background: #fff; }
.thbl-fb-embed iframe { display: block; width: 100%; }

/* ---- Advertisement slot ----------------------------------------------- */
.thbl-ad { margin-bottom: 1.6rem; text-align: center; }
.thbl-ad-label { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: #9aa1ab; margin-bottom: .35rem; }
.thbl-ad img { max-width: 100%; height: auto; border-radius: 6px; }
.thbl-ad-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
  background: repeating-linear-gradient(45deg, #eef0f3, #eef0f3 12px, #e7eaef 12px, #e7eaef 24px);
  border: 1px dashed #cbd2dc; border-radius: 8px;
  color: #9aa1ab; font-size: .85rem;
}
.thbl-ad-size { font-size: .72rem; opacity: .8; }

/* ---- Sidebar ----------------------------------------------------------- */
.thbl-widget { background: #fff; border: 1px solid #e6e8ec; border-radius: 10px; padding: 1.1rem 1.2rem; margin-bottom: 1.5rem; }
.thbl-widget h3 { font-size: 1rem; text-transform: uppercase; border-bottom: 2px solid var(--thbl-primary); padding-bottom: .5rem; margin-bottom: .8rem; }

/* ---- Footer ------------------------------------------------------------ */
.thbl-footer { background: var(--thbl-dark); color: #aab2bd; padding: 2.5rem 0 1rem; margin-top: 3rem; }
.thbl-footer a { color: #cbd2dc; }
.thbl-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; }
.thbl-footer-legal p { font-size: .82rem; color: #8b93a0; line-height: 1.65; margin-bottom: .8rem; }
.thbl-footer-partner { margin-top: .4rem; }
.thbl-footer-partner a { color: #fff; font-weight: 600; }
.thbl-social { margin-top: .9rem; display: flex; gap: .5rem; }
.thbl-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.09); color: #cbd2dc;
  transition: background .15s ease, color .15s ease;
}
.thbl-social-fb:hover { background: #1877f2; color: #fff; }
.thbl-social-yt:hover { background: #ff0000; color: #fff; }
.thbl-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; color: #7b8592; padding-top: 1rem; margin-top: 1.5rem; }
.thbl-footer-bottom a { color: #cbd2dc; }

/* ---- Breadcrumb -------------------------------------------------------- */
#block-tophbl-breadcrumbs nav { margin: 1rem 0 .25rem; }
#block-tophbl-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .82rem;
  color: var(--thbl-muted);
}
#block-tophbl-breadcrumbs ol li { list-style: none; display: inline-flex; align-items: center; }
#block-tophbl-breadcrumbs ol li + li::before {
  content: "›";
  margin: 0 .5rem;
  color: #b7bdc7;
}
#block-tophbl-breadcrumbs ol li a { color: var(--thbl-muted); text-decoration: none; }
#block-tophbl-breadcrumbs ol li a:hover { color: var(--thbl-primary); }

/* ---- Article listing grid (frontpage / taxonomy) ---------------------- */
main .views-element-container > div,
main .views-element-container > div,
.thbl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
main .views-element-container .views-row,
main .views-element-container .views-row { height: 100%; }
/* Only article rows (and the pager) are grid items; drop empty wrappers */
main .views-element-container > div > *:not(.views-row):not(.pager) { display: none; }

/* ---- Big TOP lead article (first item on the front page) --------------- */
.thbl-front .views-element-container .views-row:first-child { grid-column: 1 / -1; }
.thbl-front .views-element-container .views-row:first-child .thbl-card {
  position: relative;
  min-height: 480px;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--thbl-dark);
}
.thbl-front .views-element-container .views-row:first-child .thbl-card:hover {
  transform: none;
  box-shadow: 0 14px 40px rgba(20, 24, 31, .25);
}
.thbl-front .views-element-container .views-row:first-child .thbl-thumb {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  background-color: var(--thbl-dark);
}
.thbl-front .views-element-container .views-row:first-child .thbl-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 25%, rgba(0,0,0,.88) 100%);
  z-index: 1;
}
.thbl-front .views-element-container .views-row:first-child .card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 2.2rem 2.4rem;
  max-width: 900px;
}
.thbl-front .views-element-container .views-row:first-child .thbl-title { font-size: 2.3rem; line-height: 1.15; margin: .5rem 0 .6rem; }
.thbl-front .views-element-container .views-row:first-child .thbl-title a { color: #fff; }
.thbl-front .views-element-container .views-row:first-child .thbl-title a:hover { color: #ffd7dd; }
.thbl-front .views-element-container .views-row:first-child .thbl-excerpt { color: #e5e7eb; font-size: 1.08rem; max-width: 720px; }
.thbl-front .views-element-container .views-row:first-child .thbl-meta { color: #cfd4db; font-size: .85rem; }
/* "TOP" corner ribbon */
.thbl-front .views-element-container .views-row:first-child .thbl-card::before {
  content: "TOP";
  position: absolute;
  top: 1.1rem; left: 1.1rem;
  z-index: 3;
  background: var(--thbl-primary);
  color: #fff;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .05em;
  padding: .25rem .8rem;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
}
@media (max-width: 575.98px) {
  .thbl-front .views-element-container .views-row:first-child .thbl-title { font-size: 1.5rem; }
  .thbl-front .views-element-container .views-row:first-child .card-body { padding: 1.3rem; }
  .thbl-front .views-element-container .views-row:first-child .thbl-card { min-height: 340px; }
}
main .views-element-container .pager,
main .views-element-container .pager { grid-column: 1 / -1; }
.pager__items { display: flex; gap: .4rem; list-style: none; padding: 0; margin-top: 1.5rem; flex-wrap: wrap; }
.pager__item a, .pager__item.is-active a { display: inline-block; padding: .35rem .7rem; border: 1px solid #d7dbe0; border-radius: 6px; background: #fff; }
.pager__item.is-active a { background: var(--thbl-primary); color: #fff; border-color: var(--thbl-primary); }

/* Comments */
.comment { border-top: 1px solid #e6e8ec; padding: 1rem 0; }
.comment .field--name-comment-body { margin-top: .35rem; }

/* ---- Auth pages (login / register / password) -------------------------- */
.thbl-auth main.container { max-width: 480px; }
.thbl-auth .region-highlighted { text-align: center; }
.thbl-auth h1.page-title,
.thbl-auth h1 {
  text-align: center;
  font-size: 1.9rem;
  margin: 1rem 0 0;
}
.thbl-auth #block-tophbl-breadcrumbs { display: none; }

/* Local task tabs -> pill nav, centered on auth pages */
.thbl-auth #block-tophbl-primary-local-tasks ul,
.thbl-auth #block-tophbl-secondary-local-tasks ul {
  display: flex;
  justify-content: center;
  gap: .5rem;
  list-style: none;
  padding: 0;
  margin: .5rem 0 1.5rem;
  border: 0;
}
.thbl-auth #block-tophbl-primary-local-tasks li,
.thbl-auth #block-tophbl-secondary-local-tasks li { list-style: none; }
.thbl-auth #block-tophbl-primary-local-tasks li a,
.thbl-auth #block-tophbl-secondary-local-tasks li a {
  display: inline-block;
  padding: .4rem .9rem;
  border: 1px solid #d7dbe0;
  border-radius: 999px;
  background: #fff;
  color: var(--thbl-dark);
  font-size: .85rem;
  text-decoration: none;
}
.thbl-auth #block-tophbl-primary-local-tasks li a.is-active,
.thbl-auth #block-tophbl-primary-local-tasks li a[aria-current="page"] {
  background: var(--thbl-primary);
  border-color: var(--thbl-primary);
  color: #fff;
}

/* The auth form itself as a card */
.user-login-form,
.user-pass,
.user-register-form,
.user-form {
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 14px;
  padding: 2rem 1.9rem;
  box-shadow: 0 12px 30px rgba(20, 24, 31, .08);
}
.user-login-form .form-item,
.user-pass .form-item,
.user-register-form .form-item { margin-bottom: 1rem; }
.user-login-form label,
.user-pass label,
.user-register-form label {
  display: block;
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: .35rem;
  color: #374151;
}
.user-login-form .form-actions,
.user-pass .form-actions,
.user-register-form .form-actions { margin-top: 1.4rem; }
.user-login-form .btn,
.user-pass .btn,
.user-register-form .btn { width: 100%; padding: .6rem; font-weight: 600; }
.user-login-form .description,
.user-pass .description { font-size: .8rem; color: var(--thbl-muted); margin-top: .3rem; }

/* Generic form control sizing (Bootstrap classes added via hook_form_alter) */
.form-control, .form-select { max-width: 100%; }
main .form-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .thbl-masthead .site-name a { font-size: 1.5rem; }
  .thbl-lead { min-height: 260px; }
  .thbl-article { padding: 1.2rem; }
}
