
/*
	featured post marker for archive pages
*/
.featured_post {
  background-color: #fb0;
  color: #fff;
}


/* Wikipedia-style About Page */
.wiki-article {
  text-align: left;
}

.wiki-title {
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.25rem;
  margin-bottom: 0.5rem;
}

.wiki-body {
  max-width: 36rem;
  margin: 0 auto;
}

.wiki-infobox {
  float: right;
  width: 260px;
  border: 1px solid #ccc;
  background: #f8f8f8;
  margin: 0 0 1.5rem 1.5rem;
  font-size: 0.75rem;
  line-height: 1.3;
}

.wiki-infobox .infobox-image {
  padding: 0.5rem;
  text-align: center;
  background: #f8f8f8;
}

.wiki-infobox .infobox-image img {
  width: 100%;
  height: auto;
}

.wiki-infobox table {
  width: 100%;
  border-collapse: collapse;
}

.wiki-infobox .infobox-header {
  background: #ddd;
  text-align: center;
  padding: 0.5rem;
  font-weight: 900;
  font-size: 0.85rem;
}

.wiki-infobox td {
  padding: 0.35rem 0.5rem;
  border-top: 1px solid #e0e0e0;
  vertical-align: top;
  color: #555;
}

.wiki-infobox .infobox-label {
  font-weight: 900;
  width: 80px;
  color: #333;
}

.wiki-toc {
  background: #f8f8f8;
  border: 1px solid #ccc;
  padding: 0.75rem 1rem;
  display: inline-block;
  margin: 1rem 0;
}

.wiki-toc .toc-title {
  margin: 0 0 0.5rem 0;
  text-align: center;
}

.wiki-toc ol {
  margin: 0;
  padding-left: 1.5rem;
  list-style-type: decimal;
}

#container #content .wiki-toc ol li {
  list-style-type: decimal;
  margin-left: 0;
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
}

.wiki-table {
  max-width: 36rem;
  width: 100%;
  border-collapse: collapse;
  margin: 1.395rem 0;
  font-size: 0.78rem;
}

.wiki-table th,
.wiki-table td {
  border: 1px solid #ccc;
  padding: 0.4rem 0.6rem;
  text-align: left;
  color: #555;
}

.wiki-table th {
  background: #eee;
  font-weight: 900;
}

.wiki-table tr:nth-child(even) {
  background: #f8f8f8;
}

@media screen and (max-width: 540px) {
  .wiki-infobox {
    float: none;
    width: 100%;
    margin: 0 auto 1.5rem;
  }
}

/* Contact Page Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  max-width: 36rem;
  margin: 1rem auto;
  text-align: left;
  color: #555;
}

.contact-card {
  border: 1px solid #ddd;
  padding: 1rem;
  background: #f8f8f8;
  text-align: left;
  transition: border-color 0.3s;
}

.contact-card:hover {
  border-color: #999;
}

.contact-card h3 {
  margin: 0 0 0.4rem 0;
  margin-top: 0;
  font-size: 0.81rem;
  font-weight: 900;
  font-style: normal;
  max-width: none;
}

.contact-card p {
  margin: 0 0 0.5rem 0;
  font-size: 0.72rem;
  color: #777;
  line-height: 1.3;
}

.contact-card a {
  font-size: 0.75rem;
}

@media screen and (max-width: 540px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {

  #container.about-page #content,
  #container.contact-page #content {
    margin-left: 0;
    margin-right: 0;
  }

  #container.about-page .wiki-body,
  #container.contact-page .contact-content,
  #container.contact-page #content ul,
  #container.contact-page #content ol {
    max-width: 100%;
  }

  #container.about-page .wiki-toc {
    display: block;
    width: auto;
  }

  #container.about-page .wiki-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #container.about-page .wiki-table th,
  #container.about-page .wiki-table td {
    white-space: nowrap;
  }

  #container.contact-page .contact-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  #container.contact-page #content a,
  #container.contact-page #content li {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media screen and (max-width: 540px) {

  #container.about-page #header nav ul,
  #container.contact-page #header nav ul,
  #container.about-page #footer nav ul,
  #container.contact-page #footer nav ul {
    gap: 0.35rem 0.6rem;
  }

  #container.about-page .wiki-infobox {
    float: none;
    width: 100%;
    margin: 0 auto 1rem;
  }

  #container.about-page .wiki-toc ol {
    padding-left: 1.1rem;
  }

  #container.contact-page .contact-card {
    padding: 0.85rem;
  }
}

/* Portfolio Timeline Styles - extends main.css */

.timeline {
  max-width: 800px;
  margin: 2em auto;
  /* Change from "2em 0" to "2em auto" */
  position: relative;
}

/* Timeline Sections */
.timeline-section {
  margin-bottom: 4em;
}

.timeline-section h2 {
  font-size: 1.2em;
  font-weight: normal;
  margin-bottom: 2em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #000;
}

/* Timeline Items */
.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2em;
  margin-bottom: 2.5em;
  margin-left: auto;
  /* Add this */
  margin-right: auto;
  /* Add this */
  position: relative;
}

.timeline-item .year {
  font-family: monospace;
  font-size: 0.9em;
  color: #777;
  text-align: right;
  padding-top: 0.2em;
}

.timeline-content h3 {
  font-size: 1em;
  font-weight: bold;
  margin: 0 0 0.3em 0;
}

.timeline-content p {
  margin: 0.5em 0;
  line-height: 1.6;
}

.timeline-content p.detail {
  color: #555;
  font-size: 0.95em;
}

.timeline-content a {
  text-decoration: underline;
}

/* Featured Items */
.timeline-item.featured {
  background: #f8f8f8;
  padding: 1.5em;
  margin-left: auto;
  /* Change from "-1.5em" */
  margin-right: auto;
  /* Change from "-1.5em" */
  width: calc(100% + 3em);
  /* Add this to maintain width */
}

.timeline-item.featured .year {
  padding-right: 0;
}

/* Achievements List */
.timeline-content ul.achievements {
  list-style: none;
  padding: 0;
  margin: 1em 0 0 0;
}

.timeline-content ul.achievements li {
  padding-left: 1.5em;
  margin-bottom: 0.5em;
  position: relative;
  font-size: 0.9em;
  line-height: 1.5;
}

.timeline-content ul.achievements li:before {
  content: '→';
  position: absolute;
  left: 0;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
  margin-top: 1.5em;
}

.skill-category h3 {
  font-size: 0.9em;
  font-weight: bold;
  margin: 0 0 0.5em 0;
}

.skill-category p {
  margin: 0;
  font-size: 0.9em;
  line-height: 1.6;
  color: #555;
}

/* Tooltips from disclaimer style */
.timeline-content span[title] {
  text-decoration: none;
  border-bottom: 1px dotted #999;
  cursor: help;
}

/* Responsive */
@media (max-width: 600px) {
  .timeline-item {
    grid-template-columns: 80px 1fr;
    gap: 1em;
  }

  .timeline-item .year {
    font-size: 0.85em;
  }

  .timeline-item.featured {
    margin-left: -1em;
    margin-right: -1em;
    padding: 1em;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5em;
  }
}

/* Print Styles */
@media print {
  .timeline-item.featured {
    background: none;
    border-left: 3px solid #000;
    padding-left: 1em;
  }
}

/* ==================================================
   project page components — shared by /projects/*.html
   greyscale only · border-radius 0 · no shadow · minimal motion
   ================================================== */
.project-hero {
  max-width: 36rem;
  margin: 0 auto 2.1rem;
  text-align: left;
}

.project-hero .kicker {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: #888;
  border: 1px solid #ddd;
  padding: 0.15rem 0.5rem;
  margin-bottom: 1rem;
}

.project-hero h1 {
  font-size: 1.5rem;
  line-height: 2rem;
  margin: 0.4rem 0;
  max-width: 100%;
}

.project-hero .tagline {
  opacity: 0.7;
  margin-top: 0;
}

/* action buttons — github / live site */
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 36rem;
  margin: 1.2rem auto 2.1rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  color: #555;
  border: 1px solid #555;
  padding: 0.4rem 0.9rem;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.btn-ghost:hover {
  background: #555;
  color: #fff;
  border-bottom-style: solid;
}

.btn-ghost svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* tag row */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: 36rem;
  margin: 1.2rem auto;
}

.tag {
  font-size: 0.7rem;
  border: 1px solid #ccc;
  padding: 0.18rem 0.5rem;
  color: #666;
  letter-spacing: 0.02em;
}

/* spec / fact grid */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  max-width: 36rem;
  margin: 1.8rem auto;
  text-align: left;
}

.spec {
  border: 1px solid #e0e0e0;
  padding: 0.9rem;
}

.spec .spec-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 900;
  color: #333;
  line-height: 1.2;
}

.spec .spec-label {
  display: block;
  font-size: 0.68rem;
  color: #888;
  margin-top: 0.3rem;
  letter-spacing: 0.03em;
}

/* feature list */
.feat-list {
  max-width: 36rem;
  margin: 1.5rem auto;
  text-align: left;
}

.feat-list .feat {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  align-items: baseline;
}

.feat-list .feat .marker {
  color: #555;
  flex-shrink: 0;
}

.feat-list .feat .feat-text {
  opacity: 0.85;
}

.feat-list .feat .feat-text strong {
  font-weight: 900;
  opacity: 1;
}

/* quiet callout — reuses the blockquote rule (1px left border) */
.callout {
  max-width: 36rem;
  margin: 1.8rem auto;
  border-left: 1px solid #ccc;
  padding: 0.2rem 0 0.2rem 1rem;
  font-style: italic;
  color: #666;
  text-align: left;
}

/* Secret Lock Icon */
#secret-lock {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 9999;
  opacity: 0.18;
  transition: opacity 0.3s;
  cursor: pointer;
  text-decoration: none;
  line-height: 0;
}

#secret-lock:hover {
  opacity: 0.6;
}

/* Vault Page Styles */
.vault-container {
  max-width: 40rem;
  margin: 2rem auto;
  padding: 2rem;
  text-align: left;
}

.vault-container h2 {
  font-size: 1rem;
  font-weight: 900;
  color: #333;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid #333;
  padding-bottom: 0.5rem;
}

.vault-links {
  list-style: none;
  padding: 0;
}

.vault-links li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.vault-links li:last-child {
  border-bottom: none;
}

.vault-links a {
  color: #555;
  text-decoration: none;
  font-size: 0.81rem;
  display: block;
}

.vault-links a:hover {
  color: #000;
}

.vault-links .link-label {
  font-weight: 900;
  display: block;
  margin-bottom: 0.2rem;
}

.vault-links .link-url {
  font-size: 0.7rem;
  color: #999;
  word-break: break-all;
}

.vault-back {
  margin-top: 2rem;
  font-size: 0.81rem;
}

.vault-back a {
  color: #999;
}

.vault-back a:hover {
  color: #333;
}

/* start here (home) */
.start-here {
  max-width: 36rem;
  margin: 1.6rem auto;
  padding: 1rem 1.2rem;
  border: 1px solid #ddd;
  text-align: left;
  box-sizing: border-box;
}

.start-here h2 {
  margin: 0 0 0.4rem;
  max-width: none;
  font-size: 0.95rem;
}

.start-here ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#container #content .start-here ul:not(.archive) li,
.start-here li {
  list-style: none;
  margin: 0 0 0.55rem;
  line-height: 1.5;
}

.start-here li:last-child {
  margin-bottom: 0;
}

.start-here .sh-note {
  color: #777;
}

/* reflections index list */
.reflect-list {
  list-style: none;
  margin: 1.4rem auto 0;
  padding: 0;
  max-width: 42rem;
}

.reflect-list li {
  position: relative;
  margin: 0 0 1.6rem;
  padding: 1rem 2.4rem 1.4rem 1.2rem;
  border: 1px dotted #ccc;
  border-radius: 8px;
  text-align: left;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.reflect-list li:hover {
  background-color: #fafafa;
  border-color: #999;
}

.reflect-list li:hover .title {
  color: #000;
}

.reflect-list li:hover .reflect-arrow {
  color: #000;
  transform: translate(2px, -2px);
}

.reflect-list li:last-child {
  border-bottom: 1px dotted #ccc;
}

.reflect-list li a {
  text-decoration: none;
}

.reflect-list .title {
  display: block;
  font-size: 1.05rem;
}

.reflect-list .inline-meta {
  display: block;
  margin: 0.25rem 0 0.5rem;
}

.reflect-list p {
  margin: 0;
}

.reflect-list .reflect-arrow {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  font-size: 1rem;
  color: #999;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* ==================================================
   project page: setup blocks, diagrams, key/value tables
   greyscale only · border-radius 0 · no shadow · no motion
   code keeps its own case — the global lowercase must not touch it
   ================================================== */
.term {
  max-width: 36rem;
  margin: 1.2rem auto;
  border: 1px solid #e0e0e0;
  background: #f8f9fa;
  text-align: left;
}

.term .term-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid #e0e0e0;
  padding: 0.35rem 0.8rem;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: #888;
}

.term .term-bar .term-host {
  text-transform: none;
  color: #999;
}

.term pre {
  margin: 0;
  padding: 0.8rem;
  overflow-x: auto;
  font-family: monospace;
  font-size: 0.72rem;
  line-height: 1.25rem;
  color: #333;
  text-transform: none;
  white-space: pre;
  -moz-tab-size: 2;
  tab-size: 2;
}

.term pre .cmt {
  color: #999;
}

p code,
li code,
td code,
.feat-text code {
  font-family: monospace;
  font-size: 0.74rem;
  text-transform: none;
  background: #f8f9fa;
  border: 1px solid #eee;
  padding: 0 0.22rem;
  color: #333;
}

/* numbered setup ladder */
.setup-steps {
  max-width: 36rem;
  margin: 1.5rem auto;
  padding: 0;
  list-style: none;
  counter-reset: setup;
  text-align: left;
}

.setup-steps > li {
  counter-increment: setup;
  position: relative;
  padding-left: 2.1rem;
  margin-bottom: 1.4rem;
}

.setup-steps > li::before {
  content: counter(setup);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.4rem;
  height: 1.4rem;
  line-height: 1.4rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 900;
  color: #666;
  border: 1px solid #ccc;
}

.setup-steps > li .step-title {
  display: block;
  font-weight: 900;
  color: #333;
}

.setup-steps > li .term {
  margin: 0.6rem 0 0;
  max-width: 100%;
}

.setup-steps > li p {
  margin: 0.3rem 0 0;
  max-width: 100%;
}

/* architecture figure */
.arch {
  max-width: 36rem;
  margin: 1.8rem auto;
  text-align: left;
}

.arch svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e0e0e0;
}

/* what is authored in the diagram is what renders — the global
   lowercase must not rewrite a path or an env var drawn in it */
.arch svg text {
  text-transform: none;
}

.arch figcaption {
  font-size: 0.7425rem;
  color: #888;
  margin-top: 0.5rem;
}

/* key/value + reference tables */
.spec-table {
  max-width: 36rem;
  margin: 1.5rem auto;
  overflow-x: auto;
}

.spec-table table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.7425rem;
}

.spec-table th,
.spec-table td {
  border-bottom: 1px solid #e0e0e0;
  padding: 0.45rem 0.6rem;
  vertical-align: top;
}

.spec-table th {
  font-weight: 900;
  color: #333;
  border-bottom: 1px solid #ccc;
  white-space: nowrap;
}

.spec-table td:first-child {
  white-space: nowrap;
  color: #333;
}

.spec-table .mono {
  font-family: monospace;
  text-transform: none;
  color: #333;
}

@media screen and (max-width: 700px) {
  .term pre {
    font-size: 0.68rem;
  }
}
