/* CSS purposefully kept minimal to match Berkshire Hathaway aesthetic */

body {
  font-family: "Times New Roman", Times, serif;
  background: #ffffff;
  color: #000000;
  text-align: center;
  margin: 0;
  padding: 20px 15px;
  font-size: 16px;
  line-height: 1.5;
}

.wrapper {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

/* Center the header block like Berkshire */
.header-block {
  text-align: center;
  margin-bottom: 20px;
}

.header-block h1 {
  font-size: 22px;
  font-weight: bold;
  margin: 0 0 4px 0;
}

.header-block h1 a {
  color: #000000;
  text-decoration: none;
}

.header-block h1 a:visited {
  color: #000000;
}

.header-block .address {
  font-size: 15px;
  margin: 0 0 4px 0;
}

hr {
  border: none;
  border-top: 1px solid #999;
  margin: 20px 0;
  width: 100%;
}

ul {
  padding-left: 20px;
  margin: 10px 0;
}

li {
  margin-bottom: 6px;
}

a {
  color: #0000EE;
  text-decoration: underline;
}

a:visited {
  color: #551A8B;
}

a:hover {
  color: #0000EE;
}

h2 {
  font-size: 18px;
  font-weight: bold;
  margin: 16px 0 8px 0;
  text-align: center;
}

h3 {
  font-size: 16px;
  font-weight: bold;
  margin: 14px 0 6px 0;
}

p {
  margin: 8px 0;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}

table td {
  vertical-align: top;
  padding: 4px 10px;
  width: 50%;
}

table ul {
  padding-left: 16px;
}

.small {
  font-size: 13px;
}

.updated {
  font-size: 13px;
  color: #666;
}

.copyright {
  font-size: 13px;
  text-align: center;
  color: #000;
}

.disclaimer-link {
  text-align: center;
  font-size: 13px;
  margin-top: 8px;
}

/* GEICO-style ad block: repurposed for Workshop KC */
.ad-block {
  text-align: center;
  margin: 10px 0;
}

.ad-block img {
  border: none;
}

.ad-block p {
  font-size: 14px;
  margin: 4px 0;
}

.ad-block .ad-link {
  font-weight: bold;
  font-size: 15px;
}

/* Phone number: plain, like Berkshire's GEICO phone number */
.phone-number {
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  margin: 8px 0;
}

/* Content page: return link */
.return-link {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
}

/* Content page: letter list */
.letter-list {
  list-style: none;
  padding-left: 0;
}

.letter-list li {
  margin-bottom: 10px;
}

.letter-list .letter-date {
  font-size: 13px;
  color: #666;
}

/* Responsive: table becomes stacked on narrow screens */
@media (max-width: 600px) {
  table td {
    display: block;
    width: 100%;
    padding: 4px 0;
  }

  body {
    font-size: 15px;
  }
}

/* Tools and calculators: plain, functional, era-appropriate */
.tool-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.tool-table td {
  padding: 5px 8px;
  vertical-align: middle;
}

.tool-table td.label {
  width: 48%;
  font-size: 15px;
}

.tool-input {
  font-family: inherit;
  font-size: 15px;
  padding: 3px 6px;
  border: 1px solid #999;
  width: 160px;
  background: #fff;
  color: #000;
}

select.tool-input {
  width: 174px;
}

button {
  font-family: inherit;
  font-size: 15px;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.result-table th,
.result-table td {
  border: 1px solid #999;
  padding: 6px 10px;
  font-size: 15px;
  text-align: left;
}

.result-table th {
  background: #f2f2f2;
  font-weight: bold;
}

.pos { color: #006400; font-weight: bold; }
.neg { color: #8b0000; font-weight: bold; }

.tool-note {
  font-size: 13px;
  color: #444;
}

/* Keep bordered result tables as grids on mobile */
@media (max-width: 600px) {
  .result-table td,
  .result-table th {
    display: table-cell;
    width: auto;
    padding: 5px 8px;
  }

  .tool-table td {
    display: block;
    width: 100%;
  }

  .tool-table td.label {
    width: 100%;
    padding-bottom: 0;
  }

  .tool-input,
  select.tool-input {
    width: 95%;
  }
}
