/* Structure */
.container {
  max-width: 900px;   /* same as your header */
  margin: 0 auto;
  padding: 0 32px;     /* keeps edge breathing room */
}
main {
  padding-bottom:4rem;
}

/* Typography */
body {
	background:#fff;
	font-family: 'Geologica', sans-serif;
	font-weight: 300;
	font-size: 20px;
}
h1, h2, h3 {
}
h1 {
	font-weight: 600;
	font-size: 36px;
	letter-spacing: -.05rem;
	margin:.5rem 0 1.2rem;
}

h2 {
	font-weight: 600;
	font-size: 29px;
	margin-bottom:1.2rem;
	margin-top:1.2rem;
}

h3 {
	font-weight: 600;
	font-size: 26px;
	margin-bottom:1rem;
}
h4, .headline {
  font-weight:600;
  font-size:22px;
  margin:0 0 .75rem;
}
p, li {
	line-height:1.5;
  margin-bottom:10px;
}
.small-text {
  font-size:.85rem;
  line-height:1.5;
}
.link-inline-icon {
  font-size:1.5rem;
  vertical-align: -0.07em;
}
.summary, .comment {
	border-radius:8px;
	color:#333;
  margin: 1.5rem -1rem 1.5rem -1rem;
}
.summary {
  background:#fff;
  border:1px solid #ddd;
  margin: .5rem -1.5rem 1.5rem;
  padding:.5rem 1.5rem 1rem 1.5rem;
}
.comment {
  background:#fff;
  border:1px solid #eee;
  margin: 1.5rem 2rem 1.5rem 1rem;
  padding:1.5rem;
}

.big-break {
	margin-top:3rem;
}
.subtle {
	color:#666;
	font-size:.9rem;
}

/* LINKS */
a {
	text-decoration: none
}
a:hover,
a:active
{
	color:red !important;
	text-decoration: underline !important;
}

.breadcrumb {
  font-size: 20px;
  margin-bottom: 8px;
}

.breadcrumb a {
  color: #999;
  text-decoration: none;
  margin-left:.25rem;
  margin-right:.25rem;
}


/* HEADER */
.header {
  padding: 5px 32px 10px;
  margin-bottom: 5px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

/* Logo */
.logo img {
	height:50px;
	width:238px;
}

/* Nav */
.nav {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

/* Temporarily disable "Home" link */
.nav #nav-home {display:none;}

/* Links */
.nav a {
color:#333;
  padding: 6px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.15s ease;
  font-weight: 500;
  font-size: 25px;
}

.nav a:hover,
body.nav-home .nav #nav-home,
body.nav-insights .nav #nav-insights,
body.nav-drill .nav #nav-drill,
body.nav-live .nav #nav-live
 {
  border-color: #d6d6d6;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}
.nav a.active {
  border-color: #ccc;
  background: #fff;
  font-weight: 600;
}

/* Hover */
.nav a:hover,
a.insight-link:hover,
.insight-actions a
 {
  color: #111 !important;
  text-decoration:none !important;
}


/* Underline system (shared) */
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0%;
  height: 2px;
  background: #111;
  transition: width 0.25s ease;
}

.tooltip {
  position: relative;
  cursor: help;
}

.tooltip-text {
  position: absolute;
  right: 0;
  transform: translateX(-20%);
  width: 260px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 15px;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-weight:200;
}
.tooltip-text p {
	margin:.5rem 0;
}

.tooltip:hover .tooltip-text {
  opacity: 1;
}

.tooltip-text.above {
  bottom: 90%;
  top: auto;
}

.tooltip-text.below {
  top: 90%;
  bottom: auto;
}

.tooltip-text strong {
  display: block;
  margin-bottom: 6px;
}

.panel {
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.move-notation {
	font-family:monospace;
}

.nav-btn {
  display: inline-flex;        /* key */
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;

  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;

  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
}

.nav-btn:hover {
  border-color: #bbb;
}

/* Buttons */
/* =========================================
   INSIGHT ACTION BUTTONS
   ========================================= */

.insight-actions {
  display: flex;
  align-items: center;
  gap: 12px;   /* slightly more separation */

}

/* Base button */
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 18px;
  border-radius: 8px;

  border: 1px solid #d6d6d6;
  background: #fff;

  font-size: 18px;
  font-weight: 500;

  transition: all 0.15s ease;
}

/* Hover */
.action-btn:hover {
  border-color: #bbb;
  background: #fafafa;
}

/* PRIMARY (Review) */
.action-btn--primary {
  background: #fff;
  border-color: #aaa;   /* slightly stronger */
  font-weight: 600;
}
.action-btn--primary:hover {
  background: #f5f5f5;
  border-color: #999;
}