/* HHC 2026 - Main Stylesheet (responsive) */

/* Web Fonts */
@font-face {
  font-family: 'HPSimplified';
  src: url('../fonts/hps-euro-w01-regular-eot_2026.eot');
  src: url('../fonts/hps-euro-w01-regular-eot_2026.eot?#iefix') format('embedded-opentype'),
       url('../fonts/hps-euro-w01-regular-woff_2026.woff') format('woff'),
       url('../fonts/hps-euro-w01-regular-ttf_2026.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HPSimplified';
  src: url('../fonts/hps-euro-w01-bold-eot_2026.eot');
  src: url('../fonts/hps-euro-w01-bold-eot_2026.eot?#iefix') format('embedded-opentype'),
       url('../fonts/hps-euro-w01-bold-woff_2026.woff') format('woff'),
       url('../fonts/hps-euro-w01-bold-ttf_2026.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HPSimplifiedLight';
  src: url('../fonts/hps-euro-w01-light-eot_2026.eot');
  src: url('../fonts/hps-euro-w01-light-eot_2026.eot?#iefix') format('embedded-opentype'),
       url('../fonts/hps-euro-w01-light-woff_2026.woff') format('woff'),
       url('../fonts/hps-euro-w01-light-ttf_2026.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HPSimplifiedLightIt';
  src: url('../fonts/hps-euro-w01-light-italic-eot_2026.eot');
  src: url('../fonts/hps-euro-w01-light-italic-eot_2026.eot?#iefix') format('embedded-opentype'),
       url('../fonts/hps-euro-w01-light-italic-woff_2026.woff') format('woff'),
       url('../fonts/hps-euro-w01-light-italic-ttf_2026.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'HPSimplified', Georgia, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  border: none;
  background-image: url('../images/misc/bg_hptile_2026.png');
  /* Prevent horizontal overflow on mobile */
  overflow-x: hidden;
}

img {
  border: 0;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Links */
a {
  text-decoration: none;
  line-height: 153%;
  color: #000;
  background: #87cefa;
  border: 1px dotted #000;
  white-space: nowrap;
  border-radius: 8px;
  padding: 0 4px;
  transition: background-color 0.15s, color 0.15s;
}

a:visited {
  color: #600060;
  background: #dcdcdc;
}

a:hover {
  color: #000;
  background: #ff6;
  position: relative;
  top: 1px;
}

a:active {
  color: #fff;
  background: #7b68ee;
}

a.dead {
  background: silver;
}

/* Headings */
h1 {
  line-height: 1.2;
}

/* Layout */
.site-header {
  text-align: center;
}

.logo-link {
  background: transparent;
  border: none;
  display: inline-block;
}

.logo-link:hover {
  background: transparent;
}

.page-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
  /* Prevent content from overflowing */
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Tables - base */
table {
  border-collapse: collapse;
}

/* Responsive Images */
.responsive-img {
  max-width: 100%;
  height: auto;
}

/* Schedule tables */
.schedule-table {
  width: 100%;
  border: 4px solid;
  border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
  padding: 0.5rem;
  text-align: left;
  vertical-align: top;
}

.schedule-table caption {
  border: 2px solid #000;
  border-radius: 30px;
  background-color: #dcdcdc;
  box-shadow: 2px 2px 6px #000;
  padding: 0.5rem;
}

/* Fieldset styling */
fieldset.schedule-block {
  border: none;
  border-radius: 12px;
  box-shadow: 3px 3px 10px #666;
  padding: 1rem;
  margin-bottom: 1rem;
}

fieldset.schedule-block legend {
  border-radius: 12px;
  box-shadow: 3px 3px 10px #666;
  padding: 0.25rem 0.75rem;
  background: #fff;
}

/* Conference list tables */
.conflist-table th {
  border: 1px solid #000;
  border-radius: 20px;
  box-shadow: 2px 2px 6px #000;
}

.conflist-table tr:nth-child(2n+2) {
  background: #9f9;
}

/* Attendee table */
.attendee-table {
  width: 100%;
  border: 1px solid;
}

.attendee-table td {
  border: 1px solid;
  padding: 0.25rem 0.5rem;
}

.attendee-table tr:nth-child(2n+2) {
  background: #ded;
}

.attendee-table tr:nth-child(2n+3) {
  background: #efe;
}

/* Form styling */
.reg-form {
  border: medium double #ff0;
  border-radius: 10px;
  box-shadow: 10px 10px 25px #666;
  background: #d3d3d3;
  padding: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.reg-form input[type="text"],
.reg-form input[type="email"],
.reg-form textarea {
  background: #fff;
  border: double;
  box-shadow: 2px 2px 8px #000;
  padding: 0.25rem;
  max-width: 100%;
}

.reg-form input[type="submit"] {
  background: lime;
  box-shadow: 2px 2px 8px #000;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border: 1px solid #000;
  font-size: 1rem;
}

.reg-form input[type="reset"] {
  background: red;
  box-shadow: 2px 2px 8px #000;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border: 1px solid #000;
  font-size: 1rem;
}

/* Meals table */
.meals-table {
  border: 1px solid #000;
  border-collapse: collapse;
}

.meals-table th,
.meals-table td {
  padding: 0.25rem 0.5rem;
  border: 1px solid #000;
}

/* Utility classes */
.text-center { text-align: center; }
.no-border { border: none; }
.email-img { cursor: not-allowed; }

/* ================================================================
   RESPONSIVE: TABLETS (max 768px)
   ================================================================ */
@media (max-width: 768px) {
  body {
    font-size: 1rem;
  }

  .page-content {
    padding: 0 0.75rem;
  }

  blockquote {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }

  /* Force ALL tables to be scrollable on smaller screens.
     This handles inline-styled tables, schedule tables, 
     conf-tables, expense-tables, meals-tables, etc. */
  table {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Keep thead/tbody/tr/td behaving like a table inside the scrollable block */
  table thead,
  table tbody,
  table tfoot {
    display: table;
    width: 100%;
  }

  table tr {
    display: table-row;
  }

  table th,
  table td {
    display: table-cell;
  }

  fieldset {
    margin-left: 0;
    margin-right: 0;
    padding: 0.75rem;
  }

  /* Form inputs: full width */
  input[type="text"],
  input[type="email"],
  textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  input[type="submit"],
  input[type="reset"] {
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.5rem;
  }
}

#hotel_details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px; /* adjust spacing as needed */
}

/* ================================================================
   RESPONSIVE: PHONES (max 480px)
   ================================================================ */
@media (max-width: 480px) {
  body {
    font-size: 0.95rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .page-content {
    padding: 0 0.5rem;
  }

  blockquote {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
  }

  /* Tighten table cells */
  td, th {
    padding: 0.3rem !important;
    font-size: 0.85rem;
  }

  /* Make email contact images fit on small screens */
  img[style*="cursor: not-allowed"] {
    max-width: 100%;
    height: auto !important;
    display: inline-block;
    margin-top: 0.25rem;
  }

  /* Stack list items more tightly */
  ul, ol {
    padding-left: 1.25rem;
  }
}
