/* Basic styling for the converted document */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  line-height: 1.6;
  color: #222;
  margin: 0;
  padding: 0;
  /* subtle two-tone gradient background */
  background-color: #f5f7fa; /* fallback */
  background-repeat: no-repeat;
  /* make the background scroll with content */
  background-attachment: scroll;
  /* background image only; no overlay */
  background-image: url("images/bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
}
.container {
  width: calc(100% - 2rem);
  max-width: 1100px;
  margin: 1rem auto;
  /* slightly transparent panel so background shows through */
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  box-shadow: 0 8px 26px rgba(15,30,40,0.08);
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

/* Keep all text within the single panel (no per-cell backgrounds) */
.table-responsive th, .table-responsive td { background: transparent; }


h1, h2, h3 { color: #111; }
img { max-width: 100%; height: auto; }
code { background: #eee; padding: .1rem .3rem; border-radius: 3px; }

/* Table improvements: add clear horizontal spacing between columns (10pt) */
table { width: 100%; border-collapse: separate; border-spacing: 10pt 0; margin-bottom: 1rem; }
th, td { padding: 10pt; text-align: left; vertical-align: top; }
thead th { background: rgba(250, 250, 250, 0.9); font-weight: 700; }
tbody tr + tr { border-top: 1px solid #efefef; }

/* Responsive behavior: ensure container stays as background to text on all devices */
.table-responsive { overflow-x: visible; -webkit-overflow-scrolling: touch; }
/* Allow wrapping inside Website and Info columns; keep the URL on one line. */
.table-responsive table { width: 100%; table-layout: fixed; min-width: 0; }
.table-responsive th, .table-responsive td { overflow-wrap: normal; word-break: normal; white-space: normal; }
.table-responsive td:nth-child(1), .table-responsive th:nth-child(1) { width: 35%; }
.table-responsive td:nth-child(2), .table-responsive th:nth-child(2) { width: 45%; }
.table-responsive td:nth-child(3), .table-responsive th:nth-child(3) { width: 20%; white-space: normal; }

/* Responsive font-sizing so the table content scales to fit available width */
.table-responsive { font-size: clamp(0.75rem, 1.1vw, 1rem); }

/* Mid-size adjustments: slightly increase font for tablets/desktops */
@media (min-width: 700px) and (max-width: 1100px) {
  .table-responsive { font-size: 0.95rem; }
}

/* Narrow widths where 'goto' is shown (phones) */
@media (max-width: 520px) and (hover: none) {
  .table-responsive { font-size: 0.85rem; }
  th, td { padding: 6pt; }
  .container { font-size: 0.85rem; }
  .goto-link { font-size: 0.85rem; }
  .goto-link .short-link { display: inline-block; white-space: nowrap; margin-left: 0.25rem; }
  .goto-link .full-url { display: none; }
}

/* Make container fluid on small screens so text always sits on the semi-transparent panel */
.container { box-sizing: border-box; width: calc(100% - 2rem); padding: 2rem; }

/* Larger screens: add extra spacing so the white container feels spacious */
@media (min-width: 900px) {
  .container { padding: 2.5rem; }
  th, td { padding: 12pt; }
}

@media (max-width: 700px) {
  .table-responsive table { width: auto; table-layout: auto; }
  .table-responsive td:nth-child(1), .table-responsive th:nth-child(1) { width: 35%; }
  .table-responsive td:nth-child(2), .table-responsive th:nth-child(2) { width: 45%; }
  .table-responsive td:nth-child(3), .table-responsive th:nth-child(3) { width: 20%; white-space: nowrap; }

  .container {
    width: calc(100% - 2rem);
    margin: 1rem auto;
    padding: 1rem;
    border-radius: 6px;
  }

  /* On small devices avoid fixed background-attachment for performance */
  body::before { background-attachment: scroll; }
}

/* Link styling for clarity (default: show full URL on larger screens) */
.goto-link { color: #1a73e8; text-decoration: underline; font-weight: 600; display: inline-block; white-space: normal; }
.goto-link .short-link { display: none; white-space: nowrap; }
.goto-link .full-url { display: inline-block; white-space: normal; overflow: visible; }

/* Responsive mode: show short 'goto' on narrow screens */
@media (max-width: 700px) {
  .goto-link .short-link { display: inline-block; white-space: nowrap; margin-left: 0.25rem; }
  .goto-link .full-url { display: none; }
}

/* Phone-specific: show short 'goto' on touch phones with narrow width */
@media (max-width: 520px) and (hover: none) {
  .table-responsive { font-size: 0.85rem; }
  th, td { padding: 6pt; }
  .container { font-size: 0.85rem; }
  .goto-link { font-size: 0.85rem; }
  .goto-link .short-link { display: inline-block; white-space: nowrap; margin-left: 0.25rem; }
  .goto-link .full-url { display: none; }
}

/* Fallback for very narrow viewports (older devices / edge cases) */
@media (max-width: 480px) {
  .table-responsive { font-size: 0.85rem; }
  th, td { padding: 6pt; }
  .container { font-size: 0.85rem; }
  .goto-link { font-size: 0.85rem; }
  .goto-link .short-link { display: inline-block; white-space: nowrap; margin-left: 0.25rem; }
  .goto-link .full-url { display: none; }
}

/* Tablet & medium-width screens: increase font-size slightly for readability */
@media (min-width: 700px) and (max-width: 1100px) {
  .table-responsive { font-size: 0.95rem; }
  .container { font-size: 0.95rem; }
}

/* Landscape tablets: boost font-size a touch more */
@media (min-width: 768px) and (orientation: landscape) and (max-width: 1200px) {
  .table-responsive { font-size: 1rem; }
  .container { font-size: 1rem; }
}


