/* The Charleston Calendar — layout and colors modeled on a classic
   city-events calendar (960px three-column, dark header, teal accents).
   Original CSS; no third-party artwork or webfonts were copied. */

* { margin: 0; padding: 0; border: none; outline: none; box-sizing: border-box; }

html, body { background-color: #fafafa; }
body {
  font-family: "PT Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #222;
  font-size: 16px;
  line-height: 1.45;
}

a { color: #199ab1; }
a:hover { text-decoration: underline; }

.clear { clear: both; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #434343;
  color: #fff;
  padding: 0.4rem 0.8rem;
  z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

h1 {
  font-family: "Source Sans 3", "PT Sans", sans-serif;
  font-weight: 300;
  font-size: 32px;
  color: #4e4e4e;
  margin: 0 0 12px;
}

h2, h3 {
  font-family: "Source Sans 3", "PT Sans", sans-serif;
  font-weight: 300;
}

/* Header */
#header { background-color: #434343; }
#header .content {
  width: 960px;
  margin: 0 auto;
  padding: 0 0 13px;
  position: relative;
  min-height: 72px;
}
#header .brand {
  float: left;
  font-family: "Source Sans 3", "PT Sans", sans-serif;
  font-weight: 300;
  color: #ffffff;
  font-size: 32px;
  line-height: 1.05;
  text-decoration: none;
  display: block;
  padding: 18px 0 0;
  letter-spacing: -0.03em;
  max-width: 420px;
}
#header .brand:hover { text-decoration: none; color: #fff; }
#header .tag {
  position: absolute;
  top: 52px;
  left: 2px;
  font-size: 13px;
  font-style: italic;
  color: #9adbe3;
  margin: 0;
}
#header .right { float: right; padding-top: 0; }
#header .right .button { float: right; }
#header .right form {
  float: right;
  position: relative;
  margin-left: 10px;
}

.top_links {
  text-align: center;
  margin-bottom: 10px;
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
  background: #000;
  padding: 0 5px 5px;
  width: 70px;
  float: right;
}
.top_links a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding-top: 4px;
}
.top_links a:hover { text-decoration: underline; }

#search {
  width: 177px;
  height: 38px;
  padding: 0 45px 0 15px;
  background-color: #ffffff;
  border-radius: 3px;
  font-family: "PT Sans", sans-serif;
  font-size: 16px;
  color: #777777;
}
#header .right form input[type="submit"] {
  position: absolute;
  width: 45px;
  height: 38px;
  top: 0;
  right: 0;
  text-indent: -9999px;
  background-color: transparent;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23777777' stroke-width='2.2'><circle cx='10.5' cy='10.5' r='6.5'/><path d='M15.5 15.5L21 21'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

.button,
button.button,
input[type="submit"].button {
  display: block;
  height: 38px;
  line-height: 38px;
  padding: 0 15px 0 10px;
  background-color: #36c37f;
  border-radius: 3px;
  text-decoration: none;
  color: #ffffff;
  font-size: 16px;
  font-family: "PT Sans", sans-serif;
  cursor: pointer;
  border: 0;
}
.button:hover,
button.button:hover,
input[type="submit"].button:hover {
  background-color: #30a76e;
  text-decoration: none;
  color: #fff;
}
.button span {
  padding-left: 22px;
  background-repeat: no-repeat;
  background-position: left center;
}
.button.add-event span {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><path fill='%23ffffff' d='M6 0h2v14H6z'/><path fill='%23ffffff' d='M0 6h14v2H0z'/></svg>");
  background-size: 12px 12px;
}

.button.filter span { padding-left: 22px; }
.button.clearf {
  background-color: #d14653;
  width: 139px;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
  display: inline-block;
  margin-top: 10px;
  margin-left: 8px;
}
.button.clearf:hover { background-color: #bb313e; color: #fff; }

#topbar {
  background: linear-gradient(to right, #3bc4dd, #34c7ab);
  height: 40px;
  width: 100%;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #16323a;
}
#topbar .topbar-inner {
  width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}
#topbar a { color: #16323a; text-decoration: none; }
#topbar a:hover { text-decoration: underline; }

/* Page shell */
#container {
  width: 960px;
  margin: 0 auto;
  padding: 40px 0 20px;
}

#content-left {
  float: left;
  width: 170px;
}

/* Calendar */
#calendar .head {
  background-color: #3bc4dd;
  color: #ffffff;
  border-radius: 3px 3px 0 0;
  text-align: center;
}
#calendar .head span { line-height: 44px; }
#calendar .head span.prev,
#calendar .head span.next { margin-top: 13px; }
#calendar .head span.prev {
  float: left;
  margin-left: 10px;
}
#calendar .head span.next {
  float: right;
  margin-right: 10px;
}
#calendar .head span.prev a,
#calendar .head span.next a {
  display: block;
  width: 18px;
  height: 18px;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  line-height: 16px;
  text-align: center;
}
#calendar .head span.prev a:hover,
#calendar .head span.next a:hover { text-decoration: none; opacity: 0.85; }
#calendar .head span.month {
  font-family: "Source Sans 3", "PT Sans", sans-serif;
  font-weight: 300;
  font-size: 23px;
}
#calendar table {
  border-collapse: collapse;
  width: 100%;
  background-color: #434343;
  border-radius: 0 0 3px 3px;
}
#calendar table th,
#calendar table td {
  padding: 3px 0;
  text-align: center;
}
#calendar table th {
  color: #434343;
  background-color: #d7d7d7;
  font-weight: normal;
  font-size: 13px;
}
#calendar table td {
  font-size: 14px;
  border-top: solid 1px #676767;
  color: #6bdcf0;
}
#calendar table td a {
  color: #6bdcf0;
  text-decoration: none;
}
#calendar table td a:hover { text-decoration: underline; }
#calendar table td .current a { color: #ffffff; }
#calendar table td.notmonth,
#calendar table td.notmonth a { color: #b9b9b9; }
#calendar table td.notmonth .current a { color: #fff; }

#time-filters {
  margin-top: 25px;
  padding-bottom: 15px;
  border-bottom: solid 1px #a6a6a6;
  list-style: none;
}
#time-filters li {
  color: #525252;
  font-size: 13px;
  margin-top: 5px;
}
#time-filters li span,
#time-filters li a {
  padding-left: 16px;
  background-repeat: no-repeat;
  background-position: 0 center;
  display: inline-block;
}
#time-filters li span {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='10' viewBox='0 0 8 10'><path fill='%23525252' d='M0 0l8 5-8 5z'/></svg>");
}
#time-filters li a {
  color: #0090aa;
  text-decoration: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='10' viewBox='0 0 8 10'><path fill='%233bc4dd' d='M0 0l8 5-8 5z'/></svg>");
}
#time-filters li a:hover { text-decoration: underline; }

#filters { color: #525252; }
#filters h2 {
  font-family: "Source Sans 3", "PT Sans", sans-serif;
  font-weight: 300;
  color: #4e4e4e;
  font-size: 30px;
  line-height: 30px;
  margin: 15px 0;
}
#filters h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
#filters .filter_form ul { padding-left: 5px; list-style: none; }
#filters .filter_form li { font-size: 13px; margin-top: 5px; }
#filters .filter_form li input[type="checkbox"] {
  margin-right: 5px;
  margin-top: -2px;
  vertical-align: middle;
}
#filters .filter_form .button { margin-top: 15px; display: inline-block; }

#content-main {
  float: left;
  width: 330px;
  margin-left: 30px;
}

#events { list-style: none; }
#events .event {
  padding: 15px 0;
  border-bottom: solid 1px #a6a6a6;
}
#events .event:last-child { border-bottom: none; }
#events .event .img-link,
#events .event .thumb-ph {
  display: block;
  float: left;
  width: 50px;
  height: 50px;
}
#events .event img {
  width: 50px;
  height: 50px;
  max-width: 50px;
  min-width: 50px;
  object-fit: cover;
  display: block;
  background: #e8e8e8;
}
#events .event .info {
  float: right;
  width: 265px;
}
#events .event .info h3 {
  font-weight: normal;
  font-size: 15px;
  margin: 0;
  font-family: "PT Sans", sans-serif;
}
#events .event .info h3 a {
  color: #199ab1;
  text-decoration: none;
  font-size: 15px;
  line-height: 16px;
}
#events .event .info h3 a:hover { text-decoration: underline; }
#events .event .info p {
  font-size: 12px;
  color: #707070;
  padding-left: 18px;
  margin-top: 5px;
  line-height: 14px;
  background-repeat: no-repeat;
  background-position: left 1px;
}
#events .event .info p.time {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23999999' stroke-width='1.2'><circle cx='6' cy='6' r='5'/><path d='M6 3.2V6l2 1.3'/></svg>");
}
#events .event .info p.location {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%23999999'><path d='M6 0a4.2 4.2 0 00-4.2 4.2C1.8 7.1 6 12 6 12s4.2-4.9 4.2-7.8A4.2 4.2 0 006 0zm0 5.7A1.5 1.5 0 116 2.7a1.5 1.5 0 010 3z'/></svg>");
}

.thumb-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #e4eef0;
  color: #199ab1;
  font-family: "Source Sans 3", "PT Sans", sans-serif;
  font-weight: 300;
  font-size: 22px;
  line-height: 50px;
  text-align: center;
}

.empty {
  padding: 20px 0 40px;
  color: #707070;
  font-size: 14px;
}
.empty p { margin: 8px 0 14px; }

#content-right {
  float: right;
  width: 400px;
}
#content-right .side-box {
  border: 1px solid #d3d3d3;
  border-radius: 8px;
  padding: 16px 18px 18px;
  background: #fff;
  margin-bottom: 16px;
}
#content-right .side-box h2 {
  font-size: 22px;
  color: #4e4e4e;
  margin-bottom: 8px;
}
#content-right .side-box p {
  font-size: 14px;
  color: #707070;
  margin-bottom: 12px;
}
#content-right .side-box .button { display: inline-block; }

#footer {
  margin-top: 40px;
  border-top: solid 1px #a6a6a6;
  padding-top: 20px;
  padding-bottom: 40px;
}
#footer p {
  font-size: 12px !important;
  color: #707070;
  line-height: 16px;
  text-align: center;
}
#footer p a {
  color: #707070;
  text-decoration: none;
  font-size: 12px !important;
}
#footer p a:hover { text-decoration: underline; }

/* Event detail */
.event-page h1 { margin-bottom: 8px; }
.event-page .back {
  font-size: 13px;
  margin-bottom: 12px;
  display: inline-block;
}
#content-event-left {
  float: left;
  width: 220px;
  min-width: 210px;
}
#event_photo { margin: 10px 15px 5px 0; }
#event_photo img {
  max-width: 205px;
  width: 100%;
  height: auto;
  padding: 6px;
  border: 1px solid #ccc;
  border-bottom-color: #999;
  box-shadow: rgba(64, 64, 64, 0.1) 0 2px 5px;
  background: #fff;
  display: block;
}
#event_photo .thumb-ph {
  width: 205px;
  height: 140px;
  font-size: 48px;
  line-height: 140px;
  margin: 10px 15px 5px 0;
  border: 1px solid #ccc;
}
#event_info { padding-top: 10px; }
#event_info p,
#event_info .fact {
  margin-bottom: 10px;
  font-size: 14px;
  word-wrap: break-word;
}
#event_info b { font-weight: 700; }
#event_info .red { color: #c00; font-weight: 700; }
#event_description {
  float: left;
  font-size: 14px;
  width: 320px;
  margin-left: 30px;
  word-wrap: break-word;
  padding: 10px 0;
}
#event_description p { margin-bottom: 1em; white-space: pre-wrap; }
#map_event_show { margin-top: 8px; }
#map_event_show iframe,
#map_event_show .map_container {
  width: 350px;
  height: 350px;
  max-width: 100%;
  border: 1px solid #ccc;
  background: #eee;
}
#share {
  margin-top: 16px;
  clear: left;
}
#share h3 {
  border-bottom: 1px solid #a6a6a6;
  font-family: "Source Sans 3", "PT Sans", sans-serif;
  font-weight: 300;
  font-size: 25px;
  margin-bottom: 10px;
  padding-bottom: 5px;
  color: #4e4e4e;
}
#share .button { display: inline-block; }

/* Forms (submit / admin) share the site chrome */
.page-body { padding-bottom: 10px; }
.form-card { max-width: 680px; }
.form-card p.lede {
  color: #707070;
  margin: 0 0 16px;
  font-size: 15px;
}
.form-row { margin-bottom: 14px; }
.form-row label,
.form-row .lbl {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
  color: #434343;
}
.form-row .hint { font-weight: 400; color: #707070; font-size: 12px; }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="url"],
.form-row input[type="date"],
.form-row input[type="time"],
.form-row input[type="password"],
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: "PT Sans", sans-serif;
  font-size: 16px;
  padding: 0 8px;
  height: 36px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  color: #333;
}
.form-row textarea { height: auto; min-height: 140px; padding: 8px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 6px; font-weight: 400; }
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.flash {
  background: #e7f3ea;
  border: 1px solid #b7d7be;
  color: #1a3d22;
  padding: 10px 12px;
  border-radius: 3px;
  margin-bottom: 14px;
  font-size: 14px;
}
.flash.err {
  background: #fbeaea;
  border-color: #e7b6b6;
  color: #6a1f1f;
}
.tag-list { list-style: none; }
.tag-list li, .tag-list label {
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td {
  text-align: left;
  padding: 10px 6px;
  border-bottom: 1px solid #a6a6a6;
  vertical-align: top;
}
.admin-table form { display: inline; }
.admin-table .button { display: inline-block; height: 30px; line-height: 30px; font-size: 13px; padding: 0 10px; margin: 0 4px 4px 0; }
.button.danger { background-color: #d14653; }
.button.danger:hover { background-color: #bb313e; }
.status { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.status.pending { color: #8a5a00; }
.status.approved { color: #1f4a3a; }
.status.rejected { color: #8b2e2e; }
.prose-page { max-width: 680px; font-size: 15px; color: #434343; }
.prose-page p { margin: 0 0 12px; }

@media screen and (max-width: 960px) {
  #header .content,
  #container,
  #topbar .topbar-inner { width: auto; max-width: 960px; padding-left: 12px; padding-right: 12px; }
  #header .content { padding-bottom: 16px; }
  #header .brand { float: none; max-width: none; font-size: 28px; padding-top: 16px; }
  #header .tag { position: static; margin: 4px 0 10px; }
  #header .right { float: none; }
  .top_links { float: none; margin: 0 0 10px; }
  #header .right form,
  #header .right .button { float: none; display: inline-block; vertical-align: top; margin: 0 8px 8px 0; }
  #content-left,
  #content-main,
  #content-right,
  #content-event-left,
  #event_description { float: none; width: auto; margin-left: 0; }
  #content-left { max-width: 280px; }
  #calendar { max-width: 280px; }
  #events .event .info { float: none; width: auto; margin-left: 65px; }
  #map_event_show iframe { width: 100%; }
  .row-2 { grid-template-columns: 1fr; }
  #topbar { height: auto; padding: 8px 0; }
  #topbar .topbar-inner { flex-wrap: wrap; gap: 6px; }
}
