:root {
  --bg: #f3efe7;
  --bg-accent: #ddd2bf;
  --surface: rgba(255, 252, 247, 0.84);
  --surface-strong: #fffaf2;
  --paper: #fbfaf7;
  --text: #1b1a17;
  --muted: #5f584d;
  --line: rgba(27, 26, 23, 0.1);
  --gain: #147a52;
  --loss: #b5412e;
  --shadow: 0 20px 50px rgba(77, 55, 24, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(202, 175, 125, 0.22), transparent 28%),
    linear-gradient(180deg, #f9f5ef 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(27, 26, 23, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 26, 23, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 90%);
}

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.panel {
  backdrop-filter: blur(12px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
}

.eyebrow,
.panel-kicker,
.metric-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.77rem;
  color: var(--muted);
}

h1,
h2 {
  font-family: "Space Grotesk", sans-serif;
}

h2 {
  margin: 0;
  font-size: 1.7rem;
}

.content {
  margin-top: 24px;
  display: grid;
  gap: 24px;
}

.panel {
  padding: 28px;
  border-radius: var(--radius-lg);
}


.panel-heading {
  margin-bottom: 20px;
}

.intro-copy {
  display: grid;
  gap: 16px;
  color: #3b3126;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.78;
}

.intro-copy p {
  margin: 0;
  max-width: 72ch;
}

.berkshire-section {
  display: block;
}


.section-actions {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 18px;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(62, 52, 39, 0.16);
  background: rgba(255, 252, 247, 0.9);
  color: #2f2920;
  text-decoration: none;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.nav-button:hover {
  transform: translateY(-1px);
  background: #fffdf8;
  box-shadow: 0 10px 24px rgba(71, 55, 31, 0.08);
}

.page-nav-center {
  display: flex;
  justify-content: flex-start;
  margin-top: -2px;
}



.berkshire-sheet {
  width: 100%;
  padding: 30px 34px 28px;
  background: var(--paper);
  border: 1px solid rgba(62, 52, 39, 0.16);
  box-shadow: 0 18px 40px rgba(71, 55, 31, 0.09);
  font-family: Georgia, "Times New Roman", serif;
  color: #2f2920;
}

.berkshire-title {
  margin: 0 0 20px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
}

.berkshire-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: end;
  margin-bottom: 8px;
}

.berkshire-head-copy {
  width: 28%;
}

.berkshire-head-label {
  margin: 0 0 6px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
}

.berkshire-head-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 8px;
  border-top: 2px solid rgba(47, 41, 32, 0.7);
  font-size: 0.82rem;
  line-height: 1.1;
  text-align: center;
}

.berkshire-head-columns span {
  white-space: nowrap;
}

.berkshire-col-year {
  width: 64%;
}

.berkshire-col-value {
  width: 18%;
}

.berkshire-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.96rem;
}

.berkshire-table thead {
  display: none;
}

.berkshire-table td {
  padding: 3px 0;
  vertical-align: baseline;
  border: 0;
}

.berkshire-year {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 16px;
}

.berkshire-year::after {
  content: "";
  flex: 1;
  border-bottom: 2px dotted rgba(47, 41, 32, 0.35);
  transform: translateY(1px);
}

.berkshire-year-label {
  white-space: nowrap;
}

.berkshire-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.berkshire-table tfoot td {
  padding-top: 10px;
}

.berkshire-table tfoot::before {
  content: "";
  display: block;
  height: 28px;
}

.berkshire-summary .berkshire-year::after {
  border-bottom-color: rgba(47, 41, 32, 0.28);
}

.berkshire-note {
  margin: 20px 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
}

.disclaimer {
  margin: 4px 0 0;
  color: var(--muted);
}

.contact-line {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.55;
}

.contact-line a {
  color: inherit;
}

.disclaimer-line {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}


.table-wrap {
  overflow-x: auto;
}

.table-note {
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

tbody tr {
  transition: transform 180ms ease, background-color 180ms ease;
}

tbody tr:hover {
  transform: translateY(-1px);
  background: rgba(255, 250, 242, 0.85);
}

.asset-name {
  font-weight: 700;
}

.asset-country {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(27, 26, 23, 0.05);
}

.is-gain {
  color: var(--gain);
}

.is-loss {
  color: var(--loss);
}

@media (max-width: 920px) {
  .berkshire-sheet {
    padding: 24px 20px;
  }

  .berkshire-head {
    grid-template-columns: 1fr;
  }

  .berkshire-head-spacer {
    display: none;
  }

  .donut-chart {
    width: min(220px, 100%);
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1160px);
    margin-top: 10px;
  }

  .panel,
  .berkshire-sheet {
    padding: 20px;
  }

  .intro-copy {
    font-size: 1.08rem;
  }

  .berkshire-table {
    font-size: 0.88rem;
  }
}
