/* =========================
   GH Shared Theme
========================= */

:root {
  --gh-bg: #fbfaef;
  --gh-surface: #ffffff;
  --gh-border: rgba(0, 0, 0, 0.08);
  --gh-border-strong: rgba(0, 0, 0, 0.14);
  --gh-text: #222;
  --gh-text-soft: #666;
  --gh-text-meta: #777;
  --gh-primary: #01696f;
  --gh-primary-hover: #0c5c61;
  --gh-primary-focus: rgba(1, 105, 111, 0.14);
  --gh-success-bg: #eef7ee;
  --gh-success-border: #a8cfa8;
  --gh-success-text: #2f6b2f;
  --gh-error-bg: #fff1e8;
  --gh-error-border: #f0b48a;
  --gh-error-text: #9a4b16;
  --gh-muted-bg: #f7f7f7;
  --gh-radius-sm: 8px;
  --gh-radius-md: 10px;
  --gh-radius-lg: 12px;
  --gh-shadow: 0 1px 2px rgba(0,0,0,.02);
}

/* =========================
   Page Background
========================= */

.page-id-34,
.page-id-19,
.page-id-151,
.page-id-166 {
  background: var(--gh-bg);
}

/* =========================
   Hide WordPress Page Titles
========================= */

.page-id-34 .entry-title,
.page-id-34 .page-title,
.page-id-34 h1,
.page-id-19 .entry-title,
.page-id-19 .page-title,
.page-id-19 h1,
.page-id-166 .entry-title,
.page-id-166 .page-title,
.page-id-166 h1,
.page-id-151 .entry-title,
.page-id-151 .page-title,
.page-id-151 h1 {
  display: none !important;
}

/* =========================
   Shared Wrap
========================= */

.gh-login-wrap,
.gh-registration-form-wrap,
.gh-password-wrap,
.gh-notice-wrap {
  max-width: 760px;
  margin: 0 auto;
  box-sizing: border-box;
}

.gh-login-wrap,
.gh-registration-form-wrap,
.gh-password-wrap {
  max-width: 520px;
}

.gh-login-title,
.gh-login-subtitle,
.gh-notice-title,
.gh-notice-subtitle {
  text-align: center;
}

.gh-login-title,
.gh-notice-title {
  margin: 0 0 10px;
  color: var(--gh-text);
}

.gh-login-subtitle,
.gh-notice-subtitle {
  margin: 0 0 20px;
  color: var(--gh-text-soft);
  font-size: 16px;
  line-height: 1.5;
}

/* =========================
   Shared Card / Forms
========================= */

#gh-loginform,
.gh-registration-form,
.gh-password-form,
.gh-notice-board {
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-lg);
  background: var(--gh-surface);
  box-sizing: border-box;
  box-shadow: var(--gh-shadow);
}

#gh-loginform p,
.gh-registration-form p,
.gh-password-form p,
.gh-notice-board p {
  margin-bottom: 16px;
}

#gh-loginform p:last-child,
.gh-registration-form p:last-child,
.gh-password-form p:last-child,
.gh-notice-board p:last-child {
  margin-bottom: 0;
}

/* =========================
   Labels
========================= */

#gh-loginform label,
.gh-registration-form label,
.gh-password-form label,
.gh-terms-check label {
  display: block !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  font-weight: 600;
  line-height: 1.5;
  color: #4c4540;
  overflow: visible !important;
  text-indent: 0 !important;
  white-space: normal !important;
  position: static !important;
  clip: auto !important;
  clip-path: none !important;
  transform: none !important;
  left: auto !important;
  background: transparent !important;
}

.gh-terms-check label {
  margin-bottom: 0 !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}

/* =========================
   Inputs / Textareas / Selects
========================= */

#gh-loginform input[type="text"],
#gh-loginform input[type="password"],
.gh-registration-form input[type="text"],
.gh-registration-form input[type="password"],
.gh-registration-form input[type="email"],
.gh-registration-form input[type="number"],
.gh-registration-form textarea,
.gh-registration-form select,
.gh-password-form input[type="password"],
.gh-password-form input[type="text"],
.gh-password-form input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: var(--gh-radius-sm);
  box-sizing: border-box;
  background: #fff;
  font-size: 16px;
  line-height: 1.5;
  appearance: none;
}

#gh-loginform input[type="text"]:focus,
#gh-loginform input[type="password"]:focus,
.gh-registration-form input[type="text"]:focus,
.gh-registration-form input[type="password"]:focus,
.gh-registration-form input[type="email"]:focus,
.gh-registration-form input[type="number"]:focus,
.gh-registration-form textarea:focus,
.gh-registration-form select:focus,
.gh-password-form input[type="password"]:focus,
.gh-password-form input[type="text"]:focus,
.gh-password-form input[type="email"]:focus {
  outline: none;
  border-color: var(--gh-primary);
  box-shadow: 0 0 0 3px var(--gh-primary-focus);
}

/* =========================
   Buttons
========================= */

#gh-loginform input[type="submit"],
.gh-registration-form button,
.gh-password-form button,
.gh-notice-board .button,
.gh-notice-board button,
.gh-password-submit {
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-radius: var(--gh-radius-sm);
  background: var(--gh-primary);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  cursor: pointer;
  box-sizing: border-box;
  appearance: none;
}

#gh-loginform input[type="submit"]:hover,
.gh-registration-form button:hover,
.gh-password-form button:hover,
.gh-notice-board .button:hover,
.gh-notice-board button:hover,
.gh-password-submit:hover {
  background: var(--gh-primary-hover);
}

/* =========================
   Shared Messages
========================= */

.gh-login-error,
.gh-login-message,
.gh-registration-message,
.gh-notice-message,
.gh-form-error,
.gh-form-success {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 16px;
  padding: 12px 14px;
  border-radius: var(--gh-radius-sm);
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
  box-sizing: border-box;
}

.gh-form-error,
.gh-login-error,
.gh-registration-message.is-error {
  background: var(--gh-error-bg);
  border: 1px solid var(--gh-error-border);
  color: var(--gh-error-text);
}

.gh-form-success,
.gh-login-message,
.gh-notice-message.is-success {
  background: var(--gh-success-bg);
  border: 1px solid var(--gh-success-border);
  color: var(--gh-success-text);
}

.gh-registration-message {
  background: var(--gh-error-bg);
  border: 1px solid var(--gh-error-border);
  color: var(--gh-error-text);
}

.gh-registration-message p,
.gh-login-error p,
.gh-login-message p,
.gh-notice-message p,
.gh-form-error p,
.gh-form-success p {
  margin: 0;
}

/* =========================
   Shared Notes / Links
========================= */

.gh-register-note,
.gh-login-help,
.gh-registration-help,
.gh-notice-help,
.gh-password-note {
  max-width: 420px;
  margin: 12px auto 0;
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gh-text-soft);
  box-sizing: border-box;
}

.gh-register-note {
  text-align: center !important;
  line-height: 1.5;
}

.gh-register-note a,
.gh-notice-board a,
.gh-login-already-logged-in a {
  color: var(--gh-primary);
  text-decoration: underline;
}

.gh-registration-help,
.gh-notice-help {
  padding: 12px 14px;
  border-radius: var(--gh-radius-sm);
  background: var(--gh-muted-bg);
  border: 1px solid var(--gh-border);
  margin-top: 16px;
}

.gh-password-note {
  margin: 4px 0 20px;
}

/* =========================
   Terms Box
========================= */

.gh-terms-box {
  max-width: 100%;
  margin: 8px 0 16px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: var(--gh-radius-md);
  background: #fafafa;
  overflow: hidden;
}

.gh-terms-box-title {
  padding: 12px 14px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px solid var(--gh-border);
  background: #f4f4f4;
}

.gh-terms-content {
  max-height: 220px;
  overflow-y: auto;
  padding: 14px;
  font-size: 13px;
  line-height: 1.65;
}

.gh-terms-content p {
  margin: 0 0 12px;
}

.gh-terms-content p:last-child {
  margin-bottom: 0;
}

.gh-terms-check input[type="checkbox"] {
  margin-right: 8px;
  vertical-align: middle;
}

/* =========================
   Logout Link
========================= */

.gh-logout-link {
  display: inline-block;
  padding: 10px 14px;
  border-radius: var(--gh-radius-sm);
  background: #f2f2f2;
  color: var(--gh-text);
  text-decoration: none;
}

/* =========================
   Notice Board
========================= */

.gh-notice-wrap {
  max-width: 760px;
}

.gh-notice-board {
  max-width: 760px;
}

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

.gh-notice-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--gh-border);
}

.gh-notice-item:last-child {
  border-bottom: 0;
}

.gh-notice-item-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--gh-text);
}

.gh-notice-item-meta {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--gh-text-meta);
  line-height: 1.5;
}

.gh-notice-item-content {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

.gh-notice-item-content p:last-child {
  margin-bottom: 0;
}

.gh-notice-empty {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gh-text-soft);
  text-align: left;
}

.gh-notice-help {
  max-width: 760px;
}

.gh-notice-links {
  max-width: 760px;
  margin: 24px auto 0;
  display: grid;
  gap: 12px;
}

.gh-notice-link-card {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-md);
  background: #fff;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.5;
}

.gh-notice-link-card:hover {
  border-color: rgba(1, 105, 111, .25);
  background: #fcfcfa;
}

/* =========================
   Logged In / Required Messages
========================= */

.gh-login-required,
.gh-login-already-logged-in {
  max-width: 420px;
  margin: 0 auto 16px;
  padding: 16px 18px;
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius-lg);
  background: #fff;
  color: #6b625c;
  text-align: center;
  box-sizing: border-box;
  line-height: 1.6;
}

/* =========================
   Password Form Helpers
========================= */

.gh-form-row {
  margin: 0 0 16px;
}

.gh-form-actions {
  margin: 0;
}

/* =========================
   Mobile
========================= */

@media (max-width: 640px) {
  .gh-login-wrap,
  .gh-registration-form-wrap,
  .gh-password-wrap,
  .gh-notice-wrap {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  #gh-loginform,
  .gh-registration-form,
  .gh-password-form,
  .gh-notice-board,
  .gh-login-error,
  .gh-login-message,
  .gh-registration-message,
  .gh-form-error,
  .gh-form-success,
  .gh-register-note,
  .gh-login-help,
  .gh-registration-help,
  .gh-password-note,
  .gh-notice-help,
  .gh-login-required,
  .gh-login-already-logged-in {
    max-width: 100%;
  }

  .gh-login-title,
  .gh-notice-title {
    font-size: 28px;
    line-height: 1.25;
  }

  .gh-login-subtitle,
  .gh-notice-subtitle {
    font-size: 15px;
  }

  #gh-loginform,
  .gh-registration-form,
  .gh-password-form,
  .gh-notice-board {
    padding: 20px 16px;
  }
}

/* =========================
   Bare 404 Page
========================= */

body.gh-404-page {
  margin: 0;
  background: #fbfaef;
}

body.gh-404-page::before,
body.gh-404-page::after {
  display: none !important;
}

.gh-404-shell {
  min-height: 100vh;
  padding: 56px 16px 40px;
  background: #fbfaef;
}

.gh-404-wrap {
  max-width: 520px;
  margin: 0 auto;
}

.gh-404-wrap .gh-login-title {
  margin: 0 0 28px;
  text-align: center;
}

.gh-404-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 32px 24px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
}

.gh-404-message {
  margin: 0;
  color: #666;
  font-size: 16px;
  line-height: 1.9;
  text-align: center;
}

.gh-404-link-wrap {
  max-width: 420px;
  margin: 28px auto 0;
  text-align: center;
}

.gh-404-link {
  color: #01696f;
  text-decoration: underline;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 700;
}

.gh-404-link:hover {
  color: #0c5c61;
}

body.gh-404-page header,
body.gh-404-page footer,
body.gh-404-page .site-header,
body.gh-404-page .site-footer,
body.gh-404-page #header,
body.gh-404-page #footer,
body.gh-404-page .footer,
body.gh-404-page .entry-header,
body.gh-404-page .entry-footer,
body.gh-404-page .site-info,
body.gh-404-page .powered-by,
body.gh-404-page .copyright,
body.gh-404-page .wp-block-template-part,
body.gh-404-page .post-navigation,
body.gh-404-page .navigation,
body.gh-404-page hr {
  display: none !important;
}

@media (max-width: 640px) {
  .gh-404-shell {
    padding: 44px 16px 32px;
  }

  .gh-404-wrap .gh-login-title {
    margin-bottom: 24px;
  }

  .gh-404-card {
    padding: 28px 18px;
  }

  .gh-404-message {
    font-size: 15px;
    line-height: 1.85;
  }

  .gh-404-link {
    font-size: 18px;
  }
}