/* Critical Northwest - mid-2000s web style (c. 2005)
   Inspired by early YouTube / Google Video: sharp corners, blue links,
   thin borders, classic form controls. Admin pages are not styled here. */

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0 !important;
}

html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #000000;
  font-family: Arial, Helvetica, Verdana, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

img,
svg,
input,
textarea,
select,
button {
  border-radius: 0 !important;
}

/* Classic always-underlined hyperlinks */
a {
  color: #0000cc;
  text-decoration: underline;
}

a:visited {
  color: #551a8b;
}

a:hover {
  color: #0000ee;
}

a:active {
  color: #ff0000;
}

/* Thin top strip */
.top-bar {
  background: #d7e8de;
  border-bottom: 1px solid #8eb29c;
  height: 8px;
}

.wrap {
  width: 700px;
  max-width: 100%;
  margin: 0 auto;
  padding: 12px 16px 40px;
}

/* --- Header --- */

.site-header {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #cccccc;
}

a.brand,
a.brand:visited,
a.brand:hover,
a.brand:active {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #000;
  text-decoration: none;
}

a.brand h1,
a.brand .tagline {
  color: #000;
  text-decoration: none;
}

.logo {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  margin-top: 0;
}

.brand-text h1 {
  margin: 0;
  padding: 0;
  font-size: 28px;
  font-weight: bold;
  line-height: 1.1;
  color: #000;
}

.brand-text .tagline {
  margin: 3px 0 0;
  padding: 0;
  font-size: 12px;
  font-style: italic;
  font-weight: normal;
  color: #333;
}

/* Pipe-separated nav */
.nav {
  margin: 10px 0 0;
  padding: 6px 8px;
  font-size: 13px;
  background: #eef6f1;
  border: 1px solid #8eb29c;
}

.nav a {
  margin: 0;
  padding: 0 2px;
}

.nav .sep {
  color: #666;
  margin: 0 6px;
  text-decoration: none;
}

/* --- Main content panel --- */

main {
  min-height: 180px;
  border: 1px solid #cccccc;
  background: #ffffff;
}

.panel-head {
  margin: 0;
  padding: 5px 8px;
  font-size: 13px;
  font-weight: bold;
  color: #ffffff;
  background: #5b8f71;
  background: linear-gradient(to bottom, #6fa384 0%, #4b7d60 100%);
  border-bottom: 1px solid #3b654d;
}

.panel-body {
  padding: 12px 14px 16px;
}

.post-title {
  margin: 0 0 4px;
  padding: 0;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.25;
  color: #000;
}

.post-date {
  margin: 0 0 14px;
  padding: 0;
  font-size: 12px;
  font-style: italic;
  color: #444;
}

.post-body {
  font-size: 13px;
}

.post-body p {
  margin: 0 0 0.9em;
}

.post-body ul,
.post-body ol {
  margin: 0 0 0.9em 1.4em;
  padding: 0;
}

.post-body blockquote {
  margin: 0 0 0.9em 1em;
  padding: 0 0 0 10px;
  border-left: 2px solid #cccccc;
  font-style: italic;
  color: #222;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border: 1px solid #000;
}

.post-body table {
  border-collapse: collapse;
  margin: 0 0 1em;
}

.post-body th,
.post-body td {
  border: 1px solid #999;
  padding: 3px 6px;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  margin: 18px 0 6px;
  clear: both;
  font-size: 13px;
}

.post-nav .next {
  margin-left: auto;
  text-align: right;
}

.comment-invite {
  margin: 16px 0 0;
  padding: 8px;
  border: 1px solid #cccccc;
  background: #f7f7f7;
  font-size: 13px;
}

/* --- Archive --- */

.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.archive-list li {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px dotted #cccccc;
}

.archive-list li:last-child {
  border-bottom: 0;
}

.archive-list .date {
  display: block;
  font-style: italic;
  font-size: 12px;
  color: #444;
  margin: 2px 0 4px;
}

.archive-list .excerpt {
  margin: 0;
  font-size: 12px;
  color: #222;
}

.pagination {
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px dotted #cccccc;
  font-size: 13px;
}

.pagination .prev {
  margin-right: 1.5em;
}

/* --- Comments guestbook --- */

.comment-entry {
  margin: 0;
  padding: 12px 0;
  border-bottom: 0;
}

/* Divider between comments only - avoids stacking with pagination / CTA borders */
.comment-entry + .comment-entry {
  border-top: 1px dotted #cccccc;
}

.comment-entry .comment-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.comment-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: #333;
}

.comment-meta {
  flex: 1 1 auto;
}

.comment-subject {
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: bold;
}

.comment-date {
  margin: 2px 0 6px;
  padding: 0;
  font-style: italic;
  font-size: 12px;
  color: #444;
}

.comment-body {
  margin: 0 0 6px;
  padding: 0;
  font-size: 13px;
}

.comment-author {
  margin: 0;
  padding: 0;
  font-weight: bold;
  font-size: 13px;
}

.comment-author .role {
  font-weight: normal;
}

.feedback-cta {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #cccccc;
}

/* --- Forms --- */

.messages {
  margin: 0 0 12px;
  padding: 6px 8px;
  list-style: none;
  border: 1px solid #cccccc;
  background: #ffffcc;
  font-size: 13px;
}

.messages li {
  margin: 0;
}

form.feedback-form p,
form.subscribe-standalone p {
  margin: 0 0 0.75em;
}

form.feedback-form label {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

form.feedback-form input[type="text"],
form.feedback-form input[type="email"],
form.feedback-form textarea,
form.feedback-form select {
  display: block;
  margin-left: 0;
  max-width: 100%;
  font-family: Arial, Helvetica, Verdana, sans-serif;
  font-size: 13px;
  color: #000;
  background: #fff;
  border: 1px solid #7ca38b;
  padding: 2px 3px;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

form.feedback-form input[type="text"],
form.feedback-form input[type="email"] {
  width: 280px;
}

form.feedback-form textarea {
  width: 100%;
  max-width: 480px;
  resize: vertical;
}

form.feedback-form select {
  width: 280px;
  padding-right: 1.5em;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpolygon points='0,0 10,0 5,6' fill='%23333'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}

form.feedback-form button {
  display: block;
  margin-left: 0;
}

.errorlist {
  color: #900;
  margin: 0 0 0.4em;
  padding-left: 1.2em;
  font-size: 12px;
}

.hp-wrap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Classic bevelled buttons */
button,
input[type="submit"] {
  font-family: Arial, Helvetica, Verdana, sans-serif;
  font-size: 12px;
  padding: 2px 12px;
  margin: 0;
  vertical-align: middle;
  color: #000;
  cursor: pointer;
  background: #f0f0f0;
  background: linear-gradient(to bottom, #ffffff 0%, #e0e0e0 100%);
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #555;
  border-bottom: 1px solid #555;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

button:active,
input[type="submit"]:active {
  border-top: 1px solid #555;
  border-left: 1px solid #555;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  background: #e0e0e0;
}

/* --- Footer subscribe box --- */

.site-footer {
  margin-top: 16px;
  border: 1px solid #cccccc;
  text-align: center;
  background: #ffffff;
}

.site-footer .panel-head {
  text-align: left;
}

.site-footer .footer-inner {
  padding: 12px 10px 14px;
}

.subscribe-form {
  display: inline-block;
  text-align: left;
}

.subscribe-form input[type="email"] {
  font-family: Arial, Helvetica, Verdana, sans-serif;
  font-size: 13px;
  color: #000;
  background: #fff;
  padding: 2px 3px;
  border: 1px solid #7ca38b;
  box-shadow: none;
  width: 200px;
  vertical-align: middle;
  -webkit-appearance: none;
  appearance: none;
}

.subscribe-form button,
.subscribe-form input[type="submit"] {
  margin-left: 4px;
}

.footer-links {
  margin: 12px 0 0;
  font-size: 12px;
}

/* --- Mobile --- */

@media (max-width: 740px) {
  .wrap {
    width: 100%;
    padding: 8px 12px 24px;
  }

  .brand-text h1 {
    font-size: 22px;
  }

  form.feedback-form input[type="text"],
  form.feedback-form input[type="email"],
  form.feedback-form select {
    width: 100%;
  }

  form.feedback-form textarea {
    max-width: 100%;
  }

  .subscribe-form input[type="email"] {
    width: 140px;
  }
}
