/* Clinton Ferry Schedule. Hand-written replacement for the GeneratePress theme, Ninja Tables
   (Semantic UI) and Schema Pro FAQ styles the WordPress site used; values match the old site. */

:root {
  --contrast: #222222;
  --base-2: #f7f8f9;
  --base-3: #ffffff;
  --accent: #1e73be;
  --ferry-blue: #0a94e4;
  --faq-text: #313131;
  --faq-border: #d2d2d2;
  --table-border: rgba(34, 36, 38, 0.15);
  --table-rule: rgba(34, 36, 38, 0.1);
  --table-text: rgba(0, 0, 0, 0.87);
}

*, *::before, *::after { box-sizing: border-box; }

html, body, h1, h2, h3, h4, p, ul, li, figure { margin: 0; padding: 0; border: 0; }

body {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 17px;
  line-height: 1.5;
  color: var(--contrast);
  background-color: var(--base-2);
}

a { color: var(--accent); text-decoration: underline; }
a:hover, a:focus, a:active { color: var(--contrast); }

img { height: auto; max-width: 100%; }

h1, h2, h3, h4 { font-weight: 400; margin-bottom: 20px; }
h1 { font-size: 42px; line-height: 1.2em; }
h2 { font-size: 35px; line-height: 1.2em; }
h3 { font-size: 29px; line-height: 1.2em; }
h4 { font-size: 24px; }

p { margin-bottom: 1.5em; }
ul { margin: 0 0 1.5em 3em; }

sup { font-size: 75%; height: 0; line-height: 0; position: relative; vertical-align: baseline; bottom: 1ex; }

.skip-link {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); border: 0;
}
.skip-link:focus {
  clip: auto !important; clip-path: none;
  width: auto; height: auto; left: 5px; top: 5px; z-index: 100000;
  display: block; padding: 15px 23px 14px;
  background-color: #f1f1f1; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  color: #21759b; font-size: 0.875rem; font-weight: 700; line-height: normal; text-decoration: none;
}

.container { max-width: 1100px; margin-left: auto; margin-right: auto; }

/* Header and navigation */

.site-header { background-color: var(--base-3); }
.site-header .container { padding: 20px 40px; text-align: center; }
.site-title { margin: 0; font-size: 25px; font-weight: 700; line-height: 1.2em; }
.site-title a { color: var(--contrast); text-decoration: none; }

.main-nav { background-color: var(--base-3); }
.main-nav .container { display: flex; justify-content: center; padding: 0 20px; }
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 0 20px;
  font-size: 15px; line-height: 60px;
  color: var(--contrast); text-decoration: none;
}
.main-nav a:hover, .main-nav a:focus, .main-nav a[aria-current="page"] { color: var(--accent); }

.menu-toggle {
  display: none;
  margin: 0; padding: 0 20px; border: 0;
  background: transparent; color: var(--contrast);
  font: inherit; font-size: 15px; line-height: 60px; cursor: pointer;
}
.menu-toggle svg { width: 1em; height: 1em; position: relative; top: 0.125em; fill: currentColor; }
.menu-toggle .icon-close { display: none; }
.menu-toggle span { padding-left: 9px; }

/* Page layout */

.featured-image { margin-top: 20px; line-height: 0; }
.featured-image img { width: 100%; }

.site-main { margin-top: 20px; margin-bottom: 20px; overflow-wrap: break-word; }
.page-content { background-color: var(--base-3); padding: 40px; }
.page-content h1 { margin-bottom: 0; }
.page-content h1 + * { margin-top: 2em; }
.entry-content > p:last-child { margin-bottom: 0; }

figure img { vertical-align: bottom; }
figcaption { margin: 0.5em 0 1em; font-size: 13px; text-align: center; }

/* "Next ferry" box */

.next-ferry {
  cursor: pointer;
  display: block;
  padding: 12px;
  min-width: 270px;
  border: 4px solid var(--ferry-blue);
  border-radius: 10px;
}

/* Tables (formerly Ninja Tables, Semantic UI theme: celled, striped, compact, selectable) */

.table-wrap { overflow-x: auto; width: 100%; }

.table {
  width: 100%;
  margin: 0;
  border: 1px solid var(--table-border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0.28571429rem;
  background: #fff;
  color: var(--table-text);
  font-size: 14px;
  text-align: left;
}
.table.fixed { table-layout: fixed; }
.table.single-line td, .table.single-line th { white-space: nowrap; }
.table th, .table td { padding: 0.5em 0.7em; line-height: 1.42857143; vertical-align: middle; }
.table th {
  padding-top: 0.92857143em; padding-bottom: 0.92857143em;
  background: #f9fafb;
  border-bottom: 1px solid var(--table-rule);
  font-weight: 700;
}
.table thead th:first-child { border-radius: 0.28571429rem 0 0 0; }
.table thead th:last-child { border-radius: 0 0.28571429rem 0 0; }
.table thead th:only-child { border-radius: 0.28571429rem 0.28571429rem 0 0; }
.table th + th, .table td + td { border-left: 1px solid var(--table-rule); }
.table tbody tr + tr td { border-top: 1px solid var(--table-rule); }
.table tbody tr:nth-child(2n) { background-color: rgba(0, 0, 50, 0.02); }
.table tbody tr:hover { background: rgba(0, 0, 0, 0.05); color: rgba(0, 0, 0, 0.95); }
.table tbody tr.closest-row { color: white; font-weight: bold; background-color: var(--ferry-blue); }

/* FAQ accordion (formerly Schema Pro FAQ block). <details name="faq"> keeps one answer open at a time. */

.faq { margin-bottom: 10px; background-color: #fff; border: 1px solid var(--faq-border); border-radius: 2px; }
.faq summary {
  display: flex; align-items: center;
  padding: 10px;
  color: var(--faq-text);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 15px; height: 15px; margin-right: 10px; fill: var(--faq-text); }
.faq .icon-minus, .faq[open] .icon-plus { display: none; }
.faq[open] .icon-minus { display: block; }
.faq .answer { display: inline-block; margin: 10px; }
.faq .answer p { margin: 0; color: var(--faq-text); }

/* Footer */

.site-footer { background-color: var(--base-3); }
.footer-links { padding: 40px; }
.footer-links ul { margin: 0; padding: 0; }
.footer-links li { list-style: none; margin-bottom: 0.5em; }
.footer-links li:last-child { margin-bottom: 0; }
.site-info { padding: 20px 40px; font-size: 15px; text-align: center; }

/* Mobile */

@media (max-width: 768px) {
  .site-header .container { padding: 20px 30px; }
  .main-nav .container { display: block; }
  .menu-toggle { display: block; }
  .main-nav ul { display: none; }
  .main-nav.toggled ul { display: block; }
  .main-nav.toggled .icon-bars { display: none; }
  .main-nav.toggled .icon-close { display: inline; }
  .page-content { padding: 30px; }
  .footer-links { padding: 30px; }
  .site-info { padding: 20px 30px; }
}
