/* =========================================================
   Entrepreneurship One Magazine -- inner pages
   Single article and category archive.
   Design tokens come from header.css / home.css.
   ========================================================= */

/* content + sidebar shell, shared by single.php and category.php */
.eo-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
  padding-bottom: 54px;
}

/* ---------------------------------------------------------
   Breadcrumbs
   --------------------------------------------------------- */
.eo-crumbs { margin-bottom: 16px; }

.eo-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: var(--eo-muted);
}

.eo-crumbs li { display: flex; align-items: center; gap: 8px; }

.eo-crumbs li + li::before {
  content: "\203A";            /* › */
  color: var(--eo-line-strong);
}

.eo-crumbs a { color: var(--eo-muted); transition: color .2s ease; }
.eo-crumbs a:hover { color: var(--eo-accent); }

.eo-crumbs span[aria-current] {
  color: var(--eo-ink-soft);
  max-width: 46ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------------------------------------------------
   Single article
   --------------------------------------------------------- */
.eo-article__head { margin-bottom: 22px; }

/* inline badge (the one in header.css is absolutely positioned on a thumb) */
.eo-badge--inline {
  position: static;
  display: inline-block;
  margin-bottom: 12px;
}

.eo-badge--inline:hover { background: var(--eo-accent-dark); color: #fff; }

.eo-article__title {
  margin: 0 0 14px;
  font-family: var(--eo-font-serif);
  font-size: clamp(27px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.18;
  color: var(--eo-ink-soft);
}

.eo-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  font-size: 13px;
  color: var(--eo-muted);
}

.eo-article__meta time { font-style: italic; }
.eo-article__meta a { color: var(--eo-ink-soft); }
.eo-article__meta a:hover { color: var(--eo-accent); }
.eo-article__meta i { margin-right: 4px; opacity: .8; }

/* share row */
.eo-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--eo-line);
  border-bottom: 1px solid var(--eo-line);
}

.eo-share__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--eo-muted);
}

.eo-share__label i { margin-right: 5px; }

.eo-share ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }

.eo-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 34px;
  border-radius: 3px;
  color: #fff;
  font-size: 14px;
  transition: filter .2s ease, transform .2s ease;
}

.eo-share a:hover { filter: brightness(1.12); transform: translateY(-1px); color: #fff; }

.eo-share .is-fb   { background: #3b5998; }
.eo-share .is-x    { background: #111; }
.eo-share .is-pin  { background: #cb2027; }
.eo-share .is-wa   { background: #25d366; }
.eo-share .is-copy { background: #8a8a8a; }

/* figures */
.eo-figure { margin: 0 0 22px; }

.eo-figure img {
  width: 100%;
  height: auto;
  display: block;
  background: #f2f2f2;
}

.eo-figure--hero { margin-top: 22px; }

.eo-figure figcaption {
  margin-top: 9px;
  font-size: 12px;
  font-style: italic;
  color: var(--eo-muted);
}

/* article body */
.eo-prose {
  font-size: 16px;
  line-height: 1.8;
  color: #3d3d3d;
}

.eo-prose p { margin: 0 0 20px; }

/* Six levels, one scale. The article title is already the page h1, so an h1
   inside the body sits just under it rather than competing with it. */
.eo-prose h1,
.eo-prose h2,
.eo-prose h3,
.eo-prose h4,
.eo-prose h5,
.eo-prose h6 {
  margin: 34px 0 14px;
  font-family: var(--eo-font-serif);
  font-weight: 700;
  line-height: 1.3;
  color: var(--eo-ink-soft);
}

.eo-prose h1 { font-size: clamp(25px, 2.7vw, 31px); }
.eo-prose h2 { font-size: clamp(21px, 2.2vw, 26px); }
.eo-prose h3 { font-size: clamp(19px, 1.8vw, 22px); margin-top: 30px; }
.eo-prose h4 { font-size: 18px; margin-top: 26px; }
.eo-prose h5 { font-size: 16px; margin-top: 24px; }

.eo-prose h6 {
  font-size: 13px;
  margin-top: 24px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--eo-muted);
}

.eo-prose :is(h1, h2, h3, h4, h5, h6):first-child { margin-top: 0; }

.eo-prose a { color: var(--eo-accent); border-bottom: 1px solid rgba(232, 35, 43, .35); }
.eo-prose a:hover { border-bottom-color: var(--eo-accent); }

.eo-bullets { margin: 0 0 22px; padding: 0; list-style: none; }

.eo-bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}

.eo-bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 7px;
  height: 7px;
  background: var(--eo-accent);
  border-radius: 50%;
}

.eo-quote {
  margin: 30px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--eo-accent);
}

.eo-quote p {
  margin: 0 0 10px;
  font-family: var(--eo-font-serif);
  font-size: clamp(20px, 2.3vw, 26px);
  font-style: italic;
  line-height: 1.4;
  color: var(--eo-ink-soft);
}

.eo-quote cite {
  font-size: 12px;
  font-style: normal;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--eo-muted);
}

/* tags */
.eo-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}

.eo-tags__label {
  padding: 5px 10px;
  background: var(--eo-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  border-radius: 3px;
}

.eo-tags ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }

.eo-tags a {
  display: inline-block;
  padding: 5px 11px;
  border: 1px solid var(--eo-line-strong);
  border-radius: 3px;
  font-size: 12px;
  color: var(--eo-ink-soft);
  transition: border-color .2s ease, color .2s ease;
}

.eo-tags a:hover { border-color: var(--eo-accent); color: var(--eo-accent); }

.eo-tags + .eo-share { margin-top: 20px; }

/* previous / next */
.eo-adjacent {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 34px 0 0;
  padding: 22px 0;
  border-top: 1px solid var(--eo-line);
  border-bottom: 1px solid var(--eo-line);
}

.eo-adjacent__item { display: block; }
.eo-adjacent__item--next { text-align: right; }

.eo-adjacent__label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--eo-muted);
}

.eo-adjacent__title {
  display: block;
  font-family: var(--eo-font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--eo-ink-soft);
  transition: color .2s ease;
}

.eo-adjacent__item:hover .eo-adjacent__title { color: var(--eo-accent); }

/* related + comments */
.eo-related { margin-top: 38px; }

.eo-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.eo-related__grid .eo-post--md { margin-bottom: 0; }

/* status notices (comment posted, subscribed) */
.eo-notice {
  margin: 0 0 18px;
  padding: 12px 15px;
  font-size: 14px;
  border-left: 3px solid var(--eo-accent);
  background: #fbfbfb;
  color: var(--eo-ink-soft);
}

.eo-notice.is-ok    { border-left-color: #1a9c53; }
.eo-notice.is-error { border-left-color: var(--eo-accent); }


/* ---------------------------------------------------------
   Category archive
   --------------------------------------------------------- */
.eo-main--archive { padding-top: 20px; }

.eo-leaderboard { text-align: center; margin-bottom: 30px; }
.eo-leaderboard img { width: 100%; height: auto; display: block; }

.eo-archhead {
  text-align: center;
  padding: 6px 0 30px;
  border-bottom: 1px solid var(--eo-line);
  margin-bottom: 34px;
}

.eo-archhead .eo-crumbs ol { justify-content: center; }

.eo-archhead__kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--eo-muted);
}

.eo-archhead__title {
  margin: 0 0 12px;
  font-family: var(--eo-font-serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--eo-ink-soft);
}

.eo-archhead__desc {
  max-width: 62ch;
  margin: 0 auto 20px;
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
  color: var(--eo-muted);
}

.eo-subcats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.eo-subcats a {
  display: inline-block;
  padding: 6px 13px;
  background: #f3f3f3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--eo-ink-soft);
  border-radius: 3px;
  transition: background .2s ease, color .2s ease;
}

.eo-subcats a:hover { background: var(--eo-line-strong); }
.eo-subcats a.is-active { background: var(--eo-accent); color: #fff; }

/* archive rows */
.eo-arch {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--eo-line);
}

.eo-arch:first-child { padding-top: 0; }

.eo-arch__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f2f2f2;
  aspect-ratio: 3 / 2;
}

.eo-arch__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.eo-arch:hover .eo-arch__thumb img { transform: scale(1.04); }

.eo-arch__title {
  margin: 0 0 8px;
  font-family: var(--eo-font-serif);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 700;
  line-height: 1.25;
}

.eo-arch__title a { color: var(--eo-ink-soft); transition: color .2s ease; }
.eo-arch__title a:hover { color: var(--eo-accent); }

.eo-arch__excerpt {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #5a5a5a;
}

/* empty archive */
.eo-empty {
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed var(--eo-line-strong);
}

.eo-empty i { font-size: 34px; color: var(--eo-line-strong); }

.eo-empty h2 {
  margin: 16px 0 8px;
  font-family: var(--eo-font-serif);
  font-size: 23px;
  font-weight: 700;
  color: var(--eo-ink-soft);
}

.eo-empty p { margin: 0 0 18px; font-size: 14px; color: var(--eo-muted); }
.eo-empty .eo-more { margin-top: 0; }

/* pagination */
.eo-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 30px;
}

.eo-pager__page,
.eo-pager__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--eo-line-strong);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  color: var(--eo-ink-soft);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.eo-pager__page:hover,
.eo-pager__arrow:hover { border-color: var(--eo-accent); color: var(--eo-accent); }

.eo-pager__page.is-current {
  background: var(--eo-accent);
  border-color: var(--eo-accent);
  color: #fff;
}

/* ---------------------------------------------------------
   Breakpoints
   --------------------------------------------------------- */
@media (max-width: 1000px) {
  .eo-page { grid-template-columns: minmax(0, 1fr) 280px; gap: 30px; }
  .eo-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .eo-page { grid-template-columns: 1fr; }
  .eo-page .eo-sidebar__inner { position: static; top: auto; }
}

@media (max-width: 620px) {
  .eo-arch { grid-template-columns: 1fr; gap: 14px; }
  .eo-adjacent { grid-template-columns: 1fr; gap: 18px; }
  .eo-adjacent__item--next { text-align: left; }
  .eo-related__grid { grid-template-columns: 1fr; }
  .eo-crumbs span[aria-current] { max-width: 24ch; }
}

/* A numbered list keeps the same rhythm as the bulleted one, with the
   marker drawn as a figure rather than a dot. */
.eo-bullets--numbered { counter-reset: eo-step; }

.eo-bullets--numbered li { counter-increment: eo-step; padding-left: 30px; }

.eo-bullets--numbered li::before {
  content: counter(eo-step) ".";
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  font-weight: 700;
  color: var(--eo-accent);
}

/* ---------------------------------------------------------
   Standing pages: about, advertise, privacy, terms
   --------------------------------------------------------- */

/* Nothing but words, so one readable column and no sidebar beside it. */
.eo-static {
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: 54px;
}

.eo-static .eo-prose > h2:first-child { margin-top: 0; }

/* A list that reads as prose rather than as a menu. */
.eo-prose ul.eo-plain {
  margin: 0 0 20px;
  padding-left: 20px;
  list-style: disc;
}

.eo-prose ul.eo-plain li { margin-bottom: 8px; }

.eo-static__note {
  margin: 0 0 26px;
  padding: 12px 16px;
  border-left: 3px solid var(--eo-accent);
  background: #fafafa;
  font-size: 14px;
  color: var(--eo-muted);
}

/* The embedded form: full width of the column, tall enough not to scroll
   inside itself on a normal screen. */
.eo-formwrap { margin-top: 8px; }

.eo-formwrap iframe {
  display: block;
  width: 100%;
  min-height: 1150px;
  border: 0;
}

/* ---------------------------------------------------------
   Contact Us
   --------------------------------------------------------- */

.eo-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 20px;
}

/* The honeypot. Off-screen rather than display:none, because some form
   fillers skip anything the browser reports as hidden. */
.eo-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.eo-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0 0 26px;
  padding: 14px 18px;
  border-radius: 4px;
  border-left: 3px solid;
  font-size: 15px;
  line-height: 1.6;
}

.eo-note.is-ok    { background: #eef8f1; border-color: #2e9e5b; color: #1d6b3d; }
.eo-note.is-error { background: #fdeeee; border-color: #cf3b3b; color: #9d2626; }
.eo-note i { margin-top: 3px; }

.eo-field { display: block; margin-bottom: 20px; }

.eo-field > span {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--eo-ink, #111);
}

.eo-field > span i { color: #cf3b3b; font-style: normal; }
.eo-field > span small {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--eo-muted);
}

.eo-field input,
.eo-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: inherit;
}

.eo-field textarea { resize: vertical; min-height: 120px; }

.eo-field input:focus,
.eo-field textarea:focus {
  outline: none;
  border-color: var(--eo-accent);
  box-shadow: 0 0 0 3px rgba(207, 59, 59, .12);
}

.eo-field.is-error input,
.eo-field.is-error textarea { border-color: #cf3b3b; }

.eo-field em {
  display: block;
  margin-top: 7px;
  font-style: normal;
  font-size: 13px;
  color: #9d2626;
}

.eo-field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }

.eo-submit {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 13px 26px;
  border: 0;
  border-radius: 3px;
  background: var(--eo-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s ease;
}

.eo-submit:hover { background: #111; }

.eo-contact__aside {
  padding: 26px 24px;
  background: #f6f6f6;
  border-radius: 4px;
}

.eo-contact__aside h2 {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.eo-contact__list { list-style: none; margin: 0 0 22px; padding: 0; }

.eo-contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 13px;
  font-size: 15px;
  line-height: 1.5;
}

.eo-contact__list i { margin-top: 4px; color: var(--eo-accent); width: 16px; text-align: center; flex: none; }
.eo-contact__list a { color: inherit; text-decoration: none; word-break: break-word; }
.eo-contact__list a:hover { color: var(--eo-accent); }

.eo-contact__note {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid #e2e2e2;
  font-size: 14px;
  line-height: 1.7;
  color: var(--eo-muted);
}

@media (max-width: 860px) {
  .eo-contact { grid-template-columns: 1fr; gap: 30px; }
  .eo-field__row { grid-template-columns: 1fr; gap: 0; }
}
