/* Site layout: centered title + left tree nav + main */
.site-header {
  position: relative;
  text-align: center;
  padding: 1.5rem 1rem;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.theme-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  background: #fff;
  color: #363636;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.theme-toggle:hover {
  border-color: #3273dc;
  color: #3273dc;
}

.site-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
}

.site-title a {
  color: #363636;
  text-decoration: none;
}

.site-title a:hover {
  color: #3273dc;
}

.site-tagline {
  margin: 0.25rem 0 0 0;
  font-size: 0.95rem;
  color: #7a7a7a;
  font-weight: 400;
}

.site-layout {
  display: flex;
  min-height: calc(100vh - 140px);
}

/* Left tree navigation (Roadmap) */
.tree-nav {
  width: 220px;
  flex-shrink: 0;
  padding: 1.5rem 1rem 1.5rem 1rem;
  border-right: 1px solid #eee;
  background: #fafafa;
}

/* Right tree navigation (Paid Service) — mirrored */
.tree-nav--right {
  border-right: none;
  border-left: 1px solid #eee;
  padding: 1.5rem 1rem 1.5rem 1rem;
}

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

.tree-nav__item {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.15rem;
}

.tree-nav__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  bottom: -0.25rem;
  width: 1px;
  background: #ddd;
}

.tree-nav__item:last-child::before {
  height: 0.6em;
  bottom: auto;
}

.tree-nav__item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 1px;
  background: #ddd;
}

.tree-nav__link {
  display: block;
  padding: 0.35rem 0.5rem 0.35rem 0.25rem;
  font-size: 0.9rem;
  color: #4a4a4a;
  text-decoration: none;
  border-radius: 4px;
}

.tree-nav__link:hover {
  background: #eee;
  color: #3273dc;
}

.tree-nav__link.is-active {
  font-weight: 600;
  color: #3273dc;
  background: #e8f0fe;
}

.tree-nav__label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  padding: 0.5rem 0.5rem 0.25rem 0.25rem;
  margin-bottom: 0.25rem;
}

.tree-nav__list + .tree-nav__label {
  margin-top: 1.25rem;
}

/* Nested subsections under a nav item */
.tree-nav__sublist {
  margin: 0.2rem 0 0.5rem 0;
  padding-left: 0.75rem;
  border-left: 1px solid #e0e0e0;
}

.tree-nav__item--has-children > .tree-nav__link {
  margin-bottom: 0;
}

.tree-nav__sublist .tree-nav__item {
  padding-left: 0.5rem;
  margin-bottom: 0.1rem;
}

.tree-nav__sublist .tree-nav__item::before {
  display: none;
}

.tree-nav__sublist .tree-nav__item::after {
  display: none;
}

.tree-nav__sublist .tree-nav__link {
  font-size: 0.85rem;
}

/* Main content area */
.site-main {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 2rem 2rem;
}

@media screen and (max-width: 1024px) {
  .tree-nav--right {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .site-layout {
    flex-direction: column;
  }

  .tree-nav {
    width: 100%;
    border-right: none;
    border-left: none;
    border-bottom: 1px solid #eee;
    padding: 1rem;
  }

  .tree-nav--right {
    display: block;
    border-left: none;
    border-top: 1px solid #eee;
  }

  .tree-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .tree-nav__item {
    padding-left: 0;
    margin-bottom: 0;
  }

  .tree-nav__item::before,
  .tree-nav__item::after {
    display: none;
  }

  .site-main {
    padding: 1rem;
  }
}

/* How to use this site — sidebar on homepage */
.how-to-use {
  position: sticky;
  top: 1.5rem;
}
@media screen and (max-width: 1023px) {
  .how-to-use {
    position: static;
    margin-top: 2rem;
  }
}

/* Intro content: readable width and spacing */
.intro-content {
  max-width: none;
  margin-top: 2rem;
}

.intro-block {
  padding: 1.5rem 0 1.5rem 1.25rem;
  border-left: 3px solid #3273dc;
  margin-bottom: 0.5rem;
  padding-right: 0;
}

.intro-block:last-child {
  margin-bottom: 0;
}

.intro-block__title {
  font-size: 1rem;
  font-weight: 600;
  color: #363636;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.intro-block__text {
  font-size: 1rem;
  line-height: 1.65;
  color: #4a4a4a;
  margin: 0 0 0.75rem 0;
}

.intro-block__text:last-of-type {
  margin-bottom: 0;
}

.intro-block__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #363636;
  margin: 1rem 0 0.5rem 0;
}

.intro-block__list {
  margin: 0 0 0 1.25rem;
  padding: 0;
  color: #4a4a4a;
  line-height: 1.6;
  font-size: 0.95rem;
}

.intro-block__list li {
  margin-bottom: 0.35rem;
}

.intro-block__list li:last-child {
  margin-bottom: 0;
}

/* Article page: resume and other content pages (no boxes, article-style) */
.article-content {
  max-width: 42rem;
  margin-top: 1.5rem;
}

.article-content .key {
  font-weight: 600;
  color: #2563eb;
}

.tip-section {
  margin-bottom: 2.5rem;
}

.tip-section:last-child {
  margin-bottom: 0;
}

.tip-section__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #363636;
  margin: 0 0 0.6rem 0;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #e5e5e0;
}

.tip-section__text {
  font-size: 1rem;
  line-height: 1.7;
  color: #4a4a4a;
  margin: 0 0 0.75rem 0;
}

.tip-section__text:last-of-type {
  margin-bottom: 0;
}

.tip-section__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #363636;
  margin: 1rem 0 0.4rem 0;
}

.tip-section__list {
  margin: 0.5rem 0 0 1.25rem;
  padding: 0;
  color: #4a4a4a;
  line-height: 1.65;
  font-size: 1rem;
}

.tip-section__list li {
  margin-bottom: 0.4rem;
}

.tip-section__list li:last-child {
  margin-bottom: 0;
}

.tip-section__list--numbered {
  list-style: decimal;
  padding-left: 1.5rem;
}

.tip-section__list--numbered li {
  margin-bottom: 0.5rem;
}

.tip-section__list--sublist {
  margin-top: 0.4rem;
  margin-bottom: 0;
  list-style: disc;
}

.tip-section__list--sublist li {
  margin-bottom: 0.35rem;
}

.tip-section__code {
  margin: 0.75rem 0 0 0;
  padding: 1rem 1.25rem;
  background: #f5f5f5;
  border: 1px solid #e5e5e0;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.5;
  overflow-x: auto;
}

.tip-section__code code {
  background: none;
  padding: 0;
  color: #363636;
  font-family: ui-monospace, monospace;
}

/* Offering cards (All offerings page) */
.offering-card {
  display: block;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e5e5e0;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.offering-card:hover {
  border-color: #3273dc;
  box-shadow: 0 4px 12px rgba(50, 115, 220, 0.1);
}

.offering-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #363636;
  margin: 0 0 0.5rem 0;
}

.offering-card__desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4a4a4a;
  margin: 0 0 0.75rem 0;
}

.offering-card__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #3273dc;
}

/* Paid service pages: intro + plan tiles */
.paid-intro {
  max-width: 36rem;
  margin-top: 1rem;
}

.paid-intro p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #4a4a4a;
}

.plan-tiles {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 40rem;
}

.plan-tile {
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  border: 1px solid #e5e5e0;
}

.plan-tile__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.plan-tile__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #363636;
  margin: 0;
}

.plan-tile__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #3273dc;
}

.plan-tile__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a4a4a;
  margin: 0 0 0.5rem 0;
}

.plan-tile__note {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #7a7a7a;
  margin: 0.5rem 0 0 0;
  padding-top: 0.5rem;
  border-top: 1px dashed #e5e5e0;
}

.plan-tile__list {
  margin: 0.25rem 0 0 1.25rem;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #5c5c5c;
  list-style: disc;
}

.plan-tile__list li {
  margin-bottom: 0.35rem;
  color: #5c5c5c;
}

.plan-tile__list li:last-child {
  margin-bottom: 0;
}

.paid-disclaimer {
  max-width: 40rem;
  padding: 0.75rem 1rem 0.75rem 1rem;
  border-left: 3px solid #dbdbdb;
  background: #f9f9f9;
  border-radius: 0 4px 4px 0;
}

.paid-disclaimer__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a7a7a;
  margin: 0 0 0.25rem 0;
}

.paid-disclaimer__text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #5c5c5c;
  margin: 0;
}

/* Contact: footer, sidebar, and paid-page CTA */
.site-footer__tagline {
  font-size: 0.9rem;
  color: #7a7a7a;
  margin: 0 0 0.35rem 0;
}

.site-footer__contact {
  font-size: 0.9rem;
  color: #5c5c5c;
  margin: 0;
}

.site-footer__contact a {
  font-weight: 600;
  color: #3273dc;
  text-decoration: none;
}

.site-footer__contact a:hover {
  text-decoration: underline;
}

.nav-contact {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e5e0;
}

.nav-contact__text {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #7a7a7a;
  margin: 0 0 0.5rem 0;
  padding: 0 0.25rem;
}

.nav-contact__link {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #3273dc;
  text-decoration: none;
  padding: 0.35rem 0.25rem;
  word-break: break-all;
  border-radius: 4px;
}

.nav-contact__link:hover {
  background: #eee;
  color: #2366d1;
}

.contact-box__title {
  font-size: 1rem;
  font-weight: 600;
  color: #363636;
  margin: 0 0 0.5rem 0;
}

.contact-box__text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4a4a4a;
  margin: 0 0 0.75rem 0;
}

.contact-cta {
  max-width: 40rem;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  border: 1px solid #c5d9f7;
  background: #f0f6ff;
}

.contact-cta__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #363636;
  margin: 0 0 0.5rem 0;
}

.contact-cta__text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a4a4a;
  margin: 0 0 1rem 0;
}

.contact-cta__email {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: #3273dc;
  padding: 0.55rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.contact-cta__email:hover {
  background: #2366d1;
  color: #fff;
}

/* ========== Dark mode (custom; Bulma 0.9 has no built-in dark) ========== */
html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background: #1a1a1a;
  color: #e4e4e4;
}

html[data-theme="dark"] .site-header {
  background: #242424;
  border-bottom-color: #333;
}

html[data-theme="dark"] .theme-toggle {
  background: #363636;
  border-color: #4a4a4a;
  color: #e4e4e4;
}

html[data-theme="dark"] .theme-toggle:hover {
  border-color: #5b9bd5;
  color: #5b9bd5;
}

html[data-theme="dark"] .site-title a {
  color: #e4e4e4;
}

html[data-theme="dark"] .site-title a:hover {
  color: #5b9bd5;
}

html[data-theme="dark"] .site-tagline {
  color: #a0a0a0;
}

html[data-theme="dark"] .site-layout {
  background: #1a1a1a;
}

html[data-theme="dark"] .tree-nav,
html[data-theme="dark"] .tree-nav--right {
  background: #242424;
  border-color: #333;
}

html[data-theme="dark"] .tree-nav__item::before,
html[data-theme="dark"] .tree-nav__item::after {
  background: #444;
}

html[data-theme="dark"] .tree-nav__link {
  color: #b5b5b5;
}

html[data-theme="dark"] .tree-nav__link:hover {
  background: #333;
  color: #5b9bd5;
}

html[data-theme="dark"] .tree-nav__link.is-active {
  color: #5b9bd5;
  background: #2d3748;
}

html[data-theme="dark"] .tree-nav__label {
  color: #808080;
}

html[data-theme="dark"] .tree-nav__sublist {
  border-left-color: #444;
}

html[data-theme="dark"] .site-main {
  background: #1a1a1a;
}

html[data-theme="dark"] .footer {
  background: #242424;
  border-top-color: #333;
}

html[data-theme="dark"] .footer p,
html[data-theme="dark"] .content.has-text-centered p {
  color: #a0a0a0;
}

/* Bulma overrides in dark mode */
html[data-theme="dark"] .title,
html[data-theme="dark"] .subtitle {
  color: #e4e4e4 !important;
}

html[data-theme="dark"] .subtitle {
  color: #a0a0a0 !important;
}

html[data-theme="dark"] .box {
  background: #242424;
  border-color: #333;
}

html[data-theme="dark"] .box.has-background-light {
  background: #2d2d2d;
}

html[data-theme="dark"] .content p,
html[data-theme="dark"] .content li {
  color: #c4c4c4;
}

html[data-theme="dark"] .content a {
  color: #5b9bd5;
}

/* Intro blocks (index) */
html[data-theme="dark"] .intro-block {
  border-left-color: #5b9bd5;
}

html[data-theme="dark"] .intro-block__title,
html[data-theme="dark"] .intro-block__label {
  color: #e4e4e4;
}

html[data-theme="dark"] .intro-block__text,
html[data-theme="dark"] .intro-block__list {
  color: #c4c4c4;
}

/* Tip sections (resume etc.) */
html[data-theme="dark"] .tip-section__title {
  color: #e4e4e4;
  border-bottom-color: #444;
}

html[data-theme="dark"] .tip-section__text,
html[data-theme="dark"] .tip-section__list {
  color: #c4c4c4;
}

html[data-theme="dark"] .tip-section__label {
  color: #e4e4e4;
}

/* Bold text in dark mode: soft blue tint so it stands out and feels less dull */
html[data-theme="dark"] .tip-section__text strong,
html[data-theme="dark"] .tip-section__list strong,
html[data-theme="dark"] .intro-block__text strong,
html[data-theme="dark"] .intro-block__list strong,
html[data-theme="dark"] .content strong,
html[data-theme="dark"] .article-content .key {
  color: #93c5ed;
}

html[data-theme="dark"] .tip-section__code {
  background: #2d2d2d;
  border-color: #444;
}

html[data-theme="dark"] .tip-section__code code {
  color: #c4c4c4;
}

/* Offering cards */
html[data-theme="dark"] .offering-card {
  background: #242424;
  border-color: #333;
}

html[data-theme="dark"] .offering-card:hover {
  border-color: #5b9bd5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .offering-card__title {
  color: #e4e4e4;
}

html[data-theme="dark"] .offering-card__desc {
  color: #c4c4c4;
}

html[data-theme="dark"] .offering-card__link {
  color: #5b9bd5;
}

/* Paid service pages in dark mode */
html[data-theme="dark"] .paid-intro p {
  color: #c4c4c4;
}

html[data-theme="dark"] .plan-tile {
  background: #242424;
  border-color: #333;
}

html[data-theme="dark"] .plan-tile__title {
  color: #e4e4e4;
}

html[data-theme="dark"] .plan-tile__price {
  color: #5b9bd5;
}

html[data-theme="dark"] .plan-tile__desc {
  color: #c4c4c4;
}

html[data-theme="dark"] .plan-tile__note {
  color: #a0a0a0;
  border-top-color: #444;
}

html[data-theme="dark"] .plan-tile__note strong {
  color: #c9b896;
}

html[data-theme="dark"] .plan-tile__list,
html[data-theme="dark"] .plan-tile__list li {
  color: #b0b0b0;
}

html[data-theme="dark"] .paid-disclaimer {
  background: #2d2d2d;
  border-left-color: #555;
}

html[data-theme="dark"] .paid-disclaimer__label {
  color: #808080;
}

html[data-theme="dark"] .paid-disclaimer__text {
  color: #b5b5b5;
}

html[data-theme="dark"] .site-footer__tagline {
  color: #808080;
}

html[data-theme="dark"] .site-footer__contact {
  color: #b5b5b5;
}

html[data-theme="dark"] .site-footer__contact a {
  color: #5b9bd5;
}

html[data-theme="dark"] .nav-contact {
  border-top-color: #444;
}

html[data-theme="dark"] .nav-contact__text {
  color: #a0a0a0;
}

html[data-theme="dark"] .nav-contact__link {
  color: #5b9bd5;
}

html[data-theme="dark"] .nav-contact__link:hover {
  background: #333;
  color: #7eb8e8;
}

html[data-theme="dark"] .contact-box__title {
  color: #e4e4e4;
}

html[data-theme="dark"] .contact-box__text {
  color: #c4c4c4;
}

html[data-theme="dark"] .contact-cta {
  background: #1e2a3a;
  border-color: #3d5a80;
}

html[data-theme="dark"] .contact-cta__title {
  color: #e4e4e4;
}

html[data-theme="dark"] .contact-cta__text {
  color: #c4c4c4;
}

html[data-theme="dark"] .contact-cta__email {
  background: #3273dc;
}

html[data-theme="dark"] .contact-cta__email:hover {
  background: #2366d1;
}

/* Buttons */
html[data-theme="dark"] .button.is-primary {
  background: #3273dc;
  border-color: transparent;
  color: #fff;
}

html[data-theme="dark"] .button.is-primary:hover {
  background: #2366d1;
}
