/* Copperquill 7.1 — mobile-first, retro directory portal */

:root {
  --cq-sky: #7ec8e8;
  --cq-sky-deep: #5bb0d6;
  --cq-panel: #8fd0ee;
  --cq-btn: #1e4f9c;
  --cq-btn-hover: #163d7a;
  --cq-yellow: #fff200;
  --cq-purple: #6b1f9a;
  --cq-ink: #111111;
  --cq-white: #ffffff;
  --cq-community: #ffe566;
  --cq-community-text: #c41212;
  --cq-shell: 780px;
  --cq-side: 158px;
  --cq-font: "Cabin", Arial, Helvetica, sans-serif;
  --cq-display: "Libre Baskerville", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--cq-font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--cq-ink);
  background-color: #2a1838;
  background-image: url("../images/bg-stage.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: scroll;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

a {
  color: #0000ee;
}

a:visited {
  color: #551a8b;
}

.cq-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.cq-skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.cq-page {
  min-height: 100vh;
  padding: 0.5rem 0.4rem 1.5rem;
}

.cq-shell {
  width: 100%;
  max-width: var(--cq-shell);
  margin: 0 auto;
  background: var(--cq-sky);
  border: 2px solid #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* Header */
.cq-header {
  background: #b8e4f7;
  border-bottom: 2px solid #000;
}

.cq-header-banner {
  line-height: 0;
  background: #a6daf2;
}

.cq-header-banner img,
.cq-header-banner .custom-logo {
  display: block;
  width: 100%;
  height: auto;
}

.cq-header-link {
  display: block;
}

.cq-marquee {
  margin: 0;
  padding: 0.35rem 0.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0a2f6b;
  background: linear-gradient(90deg, #9fd8f2, #c9ecfb, #9fd8f2);
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  animation: cq-pulse 2.8s ease-in-out infinite;
}

@keyframes cq-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.82;
  }
}

.cq-nav-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-bottom: 2px solid #000;
  background: var(--cq-btn);
  color: var(--cq-white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.cq-nav-toggle::before {
  content: "";
  width: 1.1rem;
  height: 2px;
  box-shadow: 0 -5px 0 #fff, 0 5px 0 #fff;
  background: #fff;
}

/* Layout — mobile stack */
.cq-layout {
  display: flex;
  flex-direction: column;
}

.cq-sidebar {
  display: none;
  background: #6eb9db;
  border-bottom: 2px solid #000;
  padding: 0.4rem;
}

.cq-sidebar.is-open {
  display: block;
}

.cq-btn-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cq-btn-menu li {
  margin: 0;
}

.cq-btn-menu a {
  display: block;
  padding: 0.42rem 0.35rem;
  background: var(--cq-btn);
  color: var(--cq-white) !important;
  text-align: center;
  text-decoration: none !important;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid #fff;
  outline: 1px solid #000;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.35), inset -1px -1px 0 rgba(0, 0, 0, 0.35);
  transition: background 0.15s ease, transform 0.12s ease;
}

.cq-btn-menu a:hover,
.cq-btn-menu a:focus {
  background: var(--cq-btn-hover);
  transform: translateY(-1px);
}

.cq-side-nav--network {
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px dashed #0a3a5c;
}

.cq-sidebar-widgets {
  margin-top: 0.6rem;
}

.cq-main {
  min-width: 0;
  background: var(--cq-panel);
}

/* Panels */
.cq-panel {
  padding: 0.75rem 0.65rem 1rem;
  border-bottom: 1px solid #000;
  text-align: center;
}

.cq-welcome-text {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.cq-invite-row {
  margin: 0.5rem auto 0.75rem;
  max-width: 280px;
}

.cq-invite-img {
  border: 2px solid #000;
  background: #fff;
}

.cq-whether {
  margin: 0.4rem 0;
  font-style: italic;
  font-weight: 700;
}

.cq-occasion-list {
  list-style: none;
  margin: 0 auto 0.85rem;
  padding: 0;
  max-width: 22rem;
  color: var(--cq-purple);
  font-style: italic;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.55;
}

.cq-body-note {
  margin: 0 auto;
  max-width: 36rem;
  text-align: left;
  font-size: 0.92rem;
}

.cq-steps-title {
  margin: 0 0 0.85rem;
  font-family: var(--cq-display);
  font-size: clamp(1.15rem, 4.5vw, 1.55rem);
  line-height: 1.25;
  color: var(--cq-yellow);
  text-shadow: 1px 1px 0 #000, -1px 0 0 #123;
  letter-spacing: 0.02em;
}

.cq-step {
  margin: 0.55rem auto;
  max-width: 36rem;
  text-align: left;
  font-size: 0.9rem;
}

.cq-step-label {
  display: inline;
  color: var(--cq-yellow);
  font-weight: 700;
  text-shadow: 1px 1px 0 #000;
  margin-right: 0.25rem;
}

.cq-step-text {
  color: var(--cq-ink);
}

.cq-step--with-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
}

.cq-step--with-media img {
  width: 130px;
  border: 2px solid #000;
  background: #fff;
  animation: cq-float 3.2s ease-in-out infinite;
}

@keyframes cq-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.cq-official {
  margin: 1rem 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0a2f6b;
  text-transform: uppercase;
}

.cq-community-box {
  margin: 0 auto;
  max-width: 36rem;
  padding: 0.75rem 0.85rem;
  background: var(--cq-community);
  border: 2px solid #000;
  color: var(--cq-community-text);
  font-weight: 700;
  font-size: 0.92rem;
  text-align: left;
}

.cq-community-box p {
  margin: 0;
}

.cq-banner {
  margin: 0.65rem auto;
  max-width: 100%;
  line-height: 0;
}

.cq-banner img {
  display: block;
  width: 100%;
  border: 2px solid #000;
  background: #111;
}

/* Inner pages */
.cq-page-title {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  color: #0a2f6b;
  text-align: center;
}

.cq-entry,
.cq-excerpt {
  text-align: left;
  max-width: 40rem;
  margin: 0 auto;
}

.cq-card-post {
  margin: 0 auto 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed #0a3a5c;
  max-width: 40rem;
  text-align: left;
}

.cq-card-title {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.cq-meta {
  font-size: 0.82rem;
  opacity: 0.85;
  margin-bottom: 0.4rem;
}

.cq-inline-btn,
.cq-search-submit {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  background: var(--cq-btn);
  color: #fff !important;
  text-decoration: none !important;
  border: 1px solid #fff;
  outline: 1px solid #000;
  font-weight: 700;
  cursor: pointer;
}

.cq-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 0.75rem 0;
}

.cq-search-field {
  flex: 1 1 10rem;
  min-width: 0;
  padding: 0.45rem 0.55rem;
  border: 2px solid #000;
  font: inherit;
}

.cq-comments {
  margin-top: 1.25rem;
  text-align: left;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.cq-pagination {
  margin-top: 1rem;
}

/* Footer link row — horizontal, no friendship label */
.cq-footer {
  background: #6eb9db;
  border-top: 2px solid #000;
  padding: 0.65rem 0.5rem 0.85rem;
  text-align: center;
}

.cq-link-row {
  margin: 0 0 0.65rem;
}

.cq-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.85rem;
}

.cq-link-list a {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0a2f6b !important;
  text-decoration: underline;
  white-space: nowrap;
}

.cq-link-list a:hover {
  color: #000 !important;
}

.cq-utility-menu {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.85rem;
}

.cq-copy {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #111;
}

.cq-copy--small {
  font-size: 0.68rem;
}

/* Tablet+ */
@media (min-width: 640px) {
  .cq-page {
    padding: 0.75rem 0.75rem 2rem;
  }

  .cq-panel {
    padding: 0.9rem 1rem 1.15rem;
  }

  .cq-step--with-media {
    flex-direction: row;
    justify-content: center;
    text-align: left;
  }

  .cq-step--with-media > div {
    flex: 1 1 auto;
    max-width: 24rem;
  }
}

/* Desktop: classic left-nav + content */
@media (min-width: 768px) {
  .cq-nav-toggle {
    display: none;
  }

  .cq-layout {
    flex-direction: row;
    align-items: stretch;
  }

  .cq-sidebar {
    display: block;
    width: var(--cq-side);
    flex: 0 0 var(--cq-side);
    border-bottom: 0;
    border-right: 2px solid #000;
    padding: 0.45rem 0.35rem;
  }

  .cq-main {
    flex: 1 1 auto;
  }

  .cq-btn-menu a {
    font-size: 0.72rem;
    padding: 0.38rem 0.25rem;
  }

  .cq-marquee {
    font-size: 1.05rem;
  }

  .cq-steps-title {
    font-size: 1.65rem;
  }
}

@media (min-width: 900px) {
  .cq-page {
    padding-top: 1rem;
  }

  .cq-shell {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

body.cq-nav-open {
  overflow: hidden;
}
