/*
Theme Name: AdsKeyHub Block
Theme URI: https://adskeyhub.com/
Author: AdsKeyHub
Description: Lightweight block theme for AdsKeyHub public pages. Service tool and service admin are separate.
Version: 1.0.1
Text Domain: adskeyhub-block
*/

:root {
  --akh-blue: #2563eb;
  --akh-text: #111827;
  --akh-muted: #4b5563;
  --akh-border: #e5e7eb;
  --akh-bg: #ffffff;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--akh-bg);
  color: var(--akh-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--akh-blue); }

.akh-shell {
  max-width: 1006px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.akh-site-header {
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--akh-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.akh-logo {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--akh-text) !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.akh-logo-key { color: var(--akh-blue); }

.akh-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  font-size: 14px;
}
.akh-nav a {
  color: var(--akh-blue) !important;
  text-decoration: none !important;
}
.akh-nav a:hover { text-decoration: underline !important; }

.akh-page {
  padding-top: 54px;
  padding-bottom: 44px;
}
.akh-page h1 {
  margin: 0 0 24px;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.akh-page h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.25;
}
.akh-page p { max-width: 820px; }
.akh-page ul { max-width: 820px; }

.akh-site-footer {
  border-top: 1px solid var(--akh-border);
  padding: 22px 20px;
  color: #374151;
  font-size: 13px;
  line-height: 1.5;
}
.akh-site-footer .akh-shell { padding-left: 0; padding-right: 0; }

@media (max-width: 760px) {
  .akh-site-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .akh-nav {
    justify-content: flex-start;
    gap: 12px;
  }
  .akh-page h1 { font-size: 34px; }
}

/* AKH_HIDE_TEST_TITLE_START */
body.page-id-31 .wp-block-post-title,
body.page-id-31 h1.wp-block-post-title,
body.page-id-31 .entry-title {
  display: none !important;
}
/* AKH_HIDE_TEST_TITLE_END */





/* AKH_HIDE_TEST_LOWER_FOOTER_START */
body.page-id-31 .akh-site-footer {
  display: none !important;
}
/* AKH_HIDE_TEST_LOWER_FOOTER_END */


/* AKH_TEST_PAGE_TWEAKS_START */
body.page-id-31 {
  overflow-x: hidden;
}

body.page-id-31 .akh-test-learn-more {
  max-width: 1006px;
  margin: 58px auto 0;
  padding: 0 24px;
}

body.page-id-31 .akh-test-learn-more h2 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #111827;
}

body.page-id-31 .akh-test-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.page-id-31 .akh-test-link-grid a {
  display: block;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px 18px;
  background: #ffffff;
  text-decoration: none !important;
  color: #111827 !important;
}

body.page-id-31 .akh-test-link-grid a:hover {
  border-color: #2563eb;
}

body.page-id-31 .akh-test-link-grid strong {
  display: block;
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.25;
  color: #2563eb;
}

body.page-id-31 .akh-test-link-grid span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: #4b5563;
}

body.page-id-31 .akh-test-footer {
  max-width: 1006px;
  margin: 56px auto 0;
  padding: 20px 24px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: #374151;
}

body.page-id-31 .akh-test-footer p {
  max-width: 760px;
  margin: 0 auto;
}

@media (max-width: 760px) {
  body.page-id-31 .akh-test-learn-more {
    margin-top: 48px;
    padding-left: 18px;
    padding-right: 18px;
  }

  body.page-id-31 .akh-test-learn-more h2 {
    font-size: 22px;
  }

  body.page-id-31 .akh-test-link-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.page-id-31 .akh-test-footer {
    margin-top: 44px;
    padding-left: 10px;
    padding-right: 10px;
  }

  body.page-id-31 .akh-test-footer p {
    max-width: none;
  }
}
/* AKH_TEST_PAGE_TWEAKS_END */


/* AKH_TEST_SPACING_ONLY_START */
body.page-id-31 {
  overflow-x: hidden;
}

body.page-id-31 .wp-block-post-title,
body.page-id-31 h1.wp-block-post-title,
body.page-id-31 .entry-title {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page-id-31 main,
body.page-id-31 .wp-site-blocks main,
body.page-id-31 .wp-block-post-content,
body.page-id-31 .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.page-id-31 .wp-block-post-content > *:first-child,
body.page-id-31 .entry-content > *:first-child {
  margin-top: 0 !important;
}

body.page-id-31 .akh-home,
body.page-id-31 .akh-home-test,
body.page-id-31 .akh-test-page,
body.page-id-31 .akh-hero,
body.page-id-31 .akh-test-hero {
  margin-top: 34px !important;
  padding-top: 0 !important;
}

body.page-id-31 .akh-test-learn-more {
  margin-top: 34px !important;
}

body.page-id-31 .akh-test-learn-more h2 {
  margin-bottom: 8px !important;
}

body.page-id-31 .akh-test-link-grid {
  margin-top: 0 !important;
}

body.page-id-31 .akh-test-footer {
  margin-top: 30px !important;
  margin-bottom: 0 !important;
  padding-top: 16px !important;
  padding-bottom: 0 !important;
}

body.page-id-31 .akh-test-footer p {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.page-id-31 .wp-site-blocks,
body.page-id-31 .wp-block-group,
body.page-id-31 .wp-block-post-content,
body.page-id-31 .entry-content {
  padding-bottom: 0 !important;
}

@media (max-width: 760px) {
  body.page-id-31 .akh-home,
  body.page-id-31 .akh-home-test,
  body.page-id-31 .akh-test-page,
  body.page-id-31 .akh-hero,
  body.page-id-31 .akh-test-hero {
    margin-top: 24px !important;
  }

  body.page-id-31 .akh-test-learn-more {
    margin-top: 28px !important;
  }

  body.page-id-31 .akh-test-learn-more h2 {
    margin-bottom: 6px !important;
  }

  body.page-id-31 .akh-test-footer {
    margin-top: 24px !important;
    padding-top: 14px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    padding-bottom: 0 !important;
  }
}
/* AKH_TEST_SPACING_ONLY_END */


/* AKH_TEST_SPACING_STRONG_START */
body.page-id-31 {
  overflow-x: hidden;
}

body.page-id-31 .wp-block-post-title,
body.page-id-31 h1.wp-block-post-title,
body.page-id-31 .entry-title {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Pull the whole test content up only on this private test page. */
body.page-id-31 .wp-block-post-content,
body.page-id-31 .entry-content {
  margin-top: -34px !important;
  padding-top: 0 !important;
}

/* Keep the first visible hero section close to the header. */
body.page-id-31 .wp-block-post-content > *:first-child,
body.page-id-31 .entry-content > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Pull Learn more closer to the cards above. */
body.page-id-31 .akh-test-learn-more {
  margin-top: 8px !important;
  position: relative;
  top: -28px;
  margin-bottom: -28px;
}

body.page-id-31 .akh-test-learn-more h2 {
  margin-bottom: 6px !important;
}

/* Keep bottom compact. */
body.page-id-31 .akh-test-footer {
  margin-top: 24px !important;
  margin-bottom: 0 !important;
  padding-top: 14px !important;
  padding-bottom: 0 !important;
}

body.page-id-31 .akh-test-footer p {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

@media (max-width: 760px) {
  body.page-id-31 .wp-block-post-content,
  body.page-id-31 .entry-content {
    margin-top: -42px !important;
  }

  body.page-id-31 .akh-test-learn-more {
    margin-top: 4px !important;
    top: -34px;
    margin-bottom: -34px;
  }

  body.page-id-31 .akh-test-footer {
    margin-top: 18px !important;
    padding-bottom: 0 !important;
  }
}
/* AKH_TEST_SPACING_STRONG_END */


/* AKH_GLOBAL_HEADER_FOOTER_START */
:root {
  --akh-blue: #2563eb;
  --akh-text: #111827;
  --akh-muted: #4b5563;
  --akh-line: #e5e7eb;
  --akh-max: 1006px;
}

.akh-shell {
  max-width: var(--akh-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.akh-site-header {
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--akh-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.akh-logo,
.akh-logo:visited {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--akh-text) !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.akh-logo-key {
  color: var(--akh-blue);
}

.akh-nav {
  display: flex;
  gap: 18px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  font-size: 14px;
  line-height: 1.2;
}

.akh-nav a,
.akh-nav a:visited {
  color: var(--akh-blue) !important;
  text-decoration: none !important;
}

.akh-nav a:hover {
  text-decoration: underline !important;
}

.akh-site-footer {
  max-width: var(--akh-max);
  margin: 56px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid var(--akh-line);
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: #374151;
}

.akh-site-footer p {
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
}

@media (max-width: 760px) {
  .akh-shell {
    padding-left: 22px;
    padding-right: 22px;
  }

  .akh-site-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 22px 0 18px;
    gap: 10px;
  }

  .akh-logo,
  .akh-logo:visited {
    font-size: 22px;
  }

  .akh-nav {
    justify-content: center;
    gap: 16px;
    font-size: 14px;
  }

  .akh-site-footer {
    margin-top: 44px;
    padding-left: 8px;
    padding-right: 8px;
    padding-bottom: 0;
  }

  .akh-site-footer p {
    max-width: none;
  }
}

@media (max-width: 390px) {
  .akh-nav {
    gap: 12px;
    font-size: 13px;
  }
}
/* AKH_GLOBAL_HEADER_FOOTER_END */





/* AKH_LEARN_MORE_TEMPLATE_CSS_START */
.akh-page-learn-more {
  max-width: 1006px;
  margin: 56px auto 0;
  padding: 0 24px;
}

.akh-page-learn-more h2,
.akh-test-learn-more h2 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #111827;
}

.akh-page-link-grid,
.akh-test-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.akh-page-link-grid a,
.akh-test-link-grid a {
  display: block;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px 18px;
  background: #ffffff;
  text-decoration: none !important;
  color: #111827 !important;
}

.akh-page-link-grid a:hover,
.akh-test-link-grid a:hover {
  border-color: #2563eb;
}

.akh-page-link-grid strong,
.akh-test-link-grid strong {
  display: block;
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.25;
  color: #2563eb;
}

.akh-page-link-grid span,
.akh-test-link-grid span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: #4b5563;
}

@media (max-width: 760px) {
  .akh-page-learn-more {
    margin-top: 44px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .akh-page-learn-more h2,
  .akh-test-learn-more h2 {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .akh-page-link-grid,
  .akh-test-link-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
/* AKH_LEARN_MORE_TEMPLATE_CSS_END */






/* AKH_LIVE_HOME_FROM_TEST_START */
/* Live Home styling copied from the approved mobile test layout. */
/* Safety: Home does NOT receive the test page-id class. */
body.home,
body.page-id-82 {
  overflow-x: hidden;
}

body.home .wp-block-post-title,
body.home h1.wp-block-post-title,
body.home .entry-title,
body.page-id-82 .wp-block-post-title,
body.page-id-82 h1.wp-block-post-title,
body.page-id-82 .entry-title {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.home .wp-block-post-content,
body.home .entry-content,
body.page-id-82 .wp-block-post-content,
body.page-id-82 .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.home .wp-block-post-content > *:first-child,
body.home .entry-content > *:first-child,
body.page-id-82 .wp-block-post-content > *:first-child,
body.page-id-82 .entry-content > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.home .akh-test-learn-more,
body.page-id-82 .akh-test-learn-more {
  margin-top: 8px !important;
  position: relative;
  top: -28px;
  margin-bottom: -28px;
}

body.home .akh-test-learn-more h2,
body.page-id-82 .akh-test-learn-more h2 {
  margin-bottom: 6px !important;
}

body.home .akh-test-footer,
body.page-id-82 .akh-test-footer {
  margin-top: 24px !important;
  margin-bottom: 0 !important;
  padding-top: 14px !important;
  padding-bottom: 0 !important;
}

body.home .akh-test-footer p,
body.page-id-82 .akh-test-footer p {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.home .akh-site-footer,
body.page-id-82 .akh-site-footer {
  display: none !important;
}

@media (max-width: 760px) {
  body.home .wp-block-post-content,
  body.home .entry-content,
  body.page-id-82 .wp-block-post-content,
  body.page-id-82 .entry-content {
    margin-top: -42px !important;
  }

  body.home .akh-test-learn-more,
  body.page-id-82 .akh-test-learn-more {
    margin-top: 4px !important;
    top: -34px;
    margin-bottom: -34px;
  }

  body.home .akh-test-footer,
  body.page-id-82 .akh-test-footer {
    margin-top: 18px !important;
    padding-bottom: 0 !important;
  }
}
/* AKH_LIVE_HOME_FROM_TEST_END */
