/* assets/css/style.css */

/* Self-hosted fonts: Roboto + Nunito (sitewide). Lora: fonts-lora.css on posts/notes. */

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/roboto-normal-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/roboto-normal-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/roboto-normal-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/roboto-normal-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/nunito-sans-normal-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/nunito-sans-normal-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}







.icon {
  display: inline-block;
  height: 1em;
  width: auto;
  vertical-align: -0.125em;
  flex-shrink: 0;
  overflow: visible;
}

html {
  scroll-behavior: smooth;
}

body, header, footer {
  background-color: #fdfdfd; 
}

body {
  font-family: 'Georgia', serif;
  line-height: 1.6;
}

main {
  max-width: 700px; 
  margin: 10px auto;
  padding: 0 10px;
}


h1, h2, h3, h4, h5, h6 {
  font-family: Arial, Helvetica, sans-serif;
  /* text-transform: uppercase; */
  color: #403f3f;
  margin-bottom: 10px;
}
h1 {
  font-size: 2.7em;
}
h2 {
  font-size: 1.9em;
}
h3 {
  font-size: 1.5em;
}
h4 {
  font-size: 1.2em;
}

footer {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin-top: 60px;
  padding: 20px 0;
  font-size: 14px; 
  text-align: center;

}

footer .lang-switch {
  display: inline-block;
  text-decoration: none;
  color: #556a9a;
  opacity: 0.85;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  vertical-align: middle;
}

footer .lang-switch .icon {
  height: 1em;
  width: auto;
  display: block;
  font-size: 1.05em;
}

footer .lang-switch:hover {
  text-decoration: none;
  color: #3d4f78;
  opacity: 1;
  transform: scale(1.12);
}

footer .privacy-notice-trigger {
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  font: inherit;
  color: #556a9a;
  cursor: pointer;
  text-decoration: none;
}

footer .privacy-notice-trigger:hover {
  text-decoration: underline;
  color: #3d4f78;
}

.privacy-notice-dialog {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0;
  max-width: min(28rem, calc(100vw - 2rem));
  color: #1f2937;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.privacy-notice-dialog::backdrop {
  background: rgba(17, 24, 39, 0.35);
}

.privacy-notice-panel {
  position: relative;
  padding: 1.15rem 1.35rem 1.2rem;
  text-align: left;
}

.privacy-notice-close-form {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  margin: 0;
}

.privacy-notice-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.privacy-notice-close:hover {
  color: #111827;
  background: #f3f4f6;
}

.privacy-notice-panel h2 {
  margin: 0 1.75rem 0.55rem 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.privacy-notice-panel p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #374151;
}

p a {
  text-decoration: none;
  color: #556a9a;
}
p a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%; 
  height: auto; 
}


p, li, ol li, .table {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1em;
}

/* Hide manual "Footnotes" headings; separator is the rule on .footnotes */
h3#footnotes,
br:has(+ h3#footnotes) {
  display: none;
}

.footnotes {
  margin: 2.25em 0 0;
  padding: 1.1em 0 0;
  border-top: 1px solid #e4e4e4;
  color: #8a8a8a;
  font-size: 0.82em;
}

.footnotes ol {
  margin: 0;
  padding-left: 1.4em;
}

.footnotes li {
  margin: 0.35em 0;
}

.footnotes li,
.footnotes p {
  font-family: 'Roboto', sans-serif;
  font-size: 1em;
  line-height: 1.5;
  color: inherit;
}

.footnotes a {
  color: #8a96b0;
}

.footnotes a:hover {
  color: #6275a0;
}

.footnotes .reversefootnote {
  margin-left: 0.15em;
  text-decoration: none;
  color: #b0b0b0;
}

.footnotes .reversefootnote:hover {
  color: #6275a0;
}

.logo a {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  text-align: center;
  font-size: 1.75em;
  text-decoration: none;
  color: #6e6e6e;
  transition: 0.3s ease-in-out;
}
.logo a:hover {
  color: #333333;
  text-decoration: none;
}

p.logo {
  margin: 0;
  line-height: 1;
}

.logo a {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header {
  box-sizing: border-box;
  max-width: 700px;
  margin: 40px auto 1.5rem;
  padding: 0 10px;
  text-align: center;
}

.site-header p.logo a {
  display: inline-block;
  text-align: center;
}

blockquote {
  margin: 1.6em 0;
  padding: 0.1em 0 0.1em 1.15em;
  border-left: 2px solid #c8c8c8;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  color: #444;
}

blockquote p {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: 1.05em;
  font-style: italic;
  font-weight: 400;
  line-height: 1.7;
  margin: 0.55em 0;
  color: #3f3f3f;
}

blockquote p:first-child {
  margin-top: 0;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Footnote marks must not stretch individual poem lines inside quotes */
blockquote sup,
sup[role="doc-noteref"] {
  font-size: 0.72em;
  font-style: normal;
  font-weight: 500;
  line-height: 0;
  vertical-align: super;
}

blockquote a.footnote,
a.footnote {
  text-decoration: none;
  color: #6275a0;
}

blockquote a.footnote:hover,
a.footnote:hover {
  color: #35425f;
}

blockquote .blockquote-footnote-refs {
  white-space: nowrap;
}

/* MkDocs-style footnote hover tooltips */
.footnote-tooltip {
  position: fixed;
  z-index: 40;
  box-sizing: border-box;
  max-width: min(20rem, calc(100vw - 1.5rem));
  padding: 0.45em 0.65em;
  font-family: 'Roboto', sans-serif;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
  color: #7a7a7a;
  text-align: left;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.footnote-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.footnote-tooltip p {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.footnote-tooltip p + p {
  margin-top: 0.4em;
}

.footnote-tooltip a {
  color: #8a96b0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footnote-tooltip a:hover {
  color: #6275a0;
}

.footnote-tooltip .reversefootnote {
  display: none;
}

.footnote-tooltip em {
  font-style: italic;
}

sup[role="doc-noteref"] a.footnote:focus-visible {
  outline: 2px solid #a0a8b8;
  outline-offset: 2px;
  border-radius: 2px;
}


figure {
  margin: 0;
  text-align: center;
}

figcaption {
  font-style: italic;
  font-size: 0.8em;
  color: #888;
  margin-top: 5px;
}

.inline-figure {
  max-width:300px; 
  margin: 0 auto;
  float:left; 
  padding: 1em 1em 1em 0px;
}

#scroll-btn {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 100;
  transform: translateX(-50%);
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.95);
  color: #222;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#scroll-btn.is-visible {
  display: inline-flex;
}

#scroll-btn .scroll-btn-icon {
  height: 0.9em;
  width: auto;
  display: block;
  flex-shrink: 0;
  font-size: 0.9em;
}

#scroll-btn.is-visible:hover {
  opacity: 1;
  border-color: rgba(85, 106, 154, 0.35);
  color: #556a9a;
  transform: translateX(-50%) translateY(-2px);
}

table {
  font-family: 'Courier New', Courier, monospace;
  border-collapse: collapse;
  width: 100%;
  border: 1px solid #ddd;
}
th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}
th {
  background-color: #f2f2f2;
}


a, button {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}









@media screen and (max-width: 568px) {
  .inline-figure {
    float: none;
  }
}

@media screen and (max-width: 768px) {
  .site-header {
    margin-top: 40px;
    margin-bottom: 1.25rem;
  }

  h1 {
    font-size: 2.1em;
  }
  h2 {
    font-size: 1.6em;
  }
  h3 {
    font-size: 1.3em;
  }
  h4 {
    font-size: 1.1em;
  }
}


#homepage-content {
  --home-gap: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.writings-hub--home .writings-page-h1 {
  margin-top: 0.75rem;
}

.writings-hub--home {
  width: 100%;
  margin-top: 0.5rem;
  padding-top: 0.25rem;
}

.home-intro {
  display: grid;
  grid-template-columns: 1fr 220px;
  grid-template-areas:
    "copy copy"
    "timeline sidebar";
  column-gap: 1.5rem;
  row-gap: 1.15rem;
  align-items: start;
}

.home-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}

.home-bio {
  margin: 0;
  text-align: left;
  line-height: 1.65;
}

.home-sidebar {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--home-gap);
  width: 220px;
}

.home-sidebar-actions {
  --home-icons-row: calc(3 * 2.25rem + 2 * 0.25rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}

.home-timeline-block {
  grid-area: timeline;
  margin: 0;
  padding: 0.85rem 0.9rem 0.85rem 0.75rem;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  background: #fafbfc;
  box-sizing: border-box;
}

.profile-figure {
  margin: 0;
  position: relative;
  width: 100%;
}

#profile-image {
  border: 1px solid #e8eaed;
  border-radius: 10px;
  overflow: hidden;
  background: #fafbfc;
  box-sizing: border-box;
}

#profile-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
  border: 0;
}

.home-sidebar .home-pill-link--resume {
  width: var(--home-icons-row);
  justify-content: center;
  border-radius: 8px;
  box-sizing: border-box;
}

.profile-credit {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  margin: 0;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
  color: #fff;
  background: rgba(20, 24, 28, 0.82);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.profile-credit.is-visible {
  opacity: 1;
  visibility: visible;
}

.social-icons {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  border-radius: 8px;
  font-size: 1.35em;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.social-icons a:hover {
  background: #f3f4f6;
  transform: none;
}

.social-icons .icon {
  height: 1em;
  width: auto;
  display: block;
  color: rgb(106, 106, 123);
}

.social-icons a:hover .icon {
  color: #4a5560;
}

.social-icons a:hover .icon--github {
  color: #282623d8;
}

.social-icons a:hover .icon--graduation-cap {
  color: #1a73e8;
}

.social-icons a:hover .icon--rss {
  color: #d05a0cca;
}

.home-nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin: 0;
}

#homepage-content .home-pill-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  text-decoration: none;
  color: #222;
  opacity: 0.85;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  box-sizing: border-box;
}

#homepage-content .home-pill-link:hover {
  opacity: 1;
  border-color: rgba(85, 106, 154, 0.35);
  color: #556a9a;
  text-decoration: none;
}

#homepage-content .home-pill-link--resume {
  background: #f3f4f6;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  color: #4a5560;
  opacity: 1;
  font-weight: 700;
  transition: opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

#homepage-content .home-pill-link--resume:hover {
  background: #e8eaed;
  border-color: #e8eaed;
  color: #2c3e50;
}

#homepage-content .home-pill-link--writings {
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid #2c3e50;
  color: #2c3e50;
  opacity: 1;
  font-weight: 600;
}

#homepage-content .home-pill-link--writings:hover {
  background: rgba(44, 62, 80, 0.08);
  border-color: #2c3e50;
  color: #2c3e50;
}

#homepage-content .home-pill-link--notes {
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid #2e7d4a;
  color: #2e7d4a;
  opacity: 1;
  font-weight: 600;
}

#homepage-content .home-pill-link--notes:hover {
  background: rgba(46, 125, 74, 0.08);
  border-color: #2e7d4a;
  color: #2e7d4a;
}

.home-timeline {
  --timeline-role-size: 0.92rem;
  --timeline-role-lh: 1.35;
  --timeline-line-h: calc(var(--timeline-role-size) * var(--timeline-role-lh));
  --timeline-meta-h: calc(0.78rem * 1.35);
  --timeline-note-h: calc(0.72rem * 1.35);
  --timeline-body-gap: 0.12rem;
  --timeline-dot: 10px;
  --timeline-body-pad: 0.5rem;
  --timeline-body-min-h: calc(
    var(--timeline-line-h) + var(--timeline-meta-h) + var(--timeline-note-h) +
      (2 * var(--timeline-body-gap))
  );
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-timeline-item {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.home-timeline-rail {
  position: relative;
  flex: 0 0 12px;
  width: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.home-timeline-rail::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: #d0d7de;
}

.home-timeline-item:first-child .home-timeline-rail::before {
  top: calc(var(--timeline-line-h) / 2);
}

.home-timeline-item:last-child .home-timeline-rail::before {
  bottom: calc(100% - var(--timeline-body-pad) - var(--timeline-line-h) / 2);
}

.home-timeline-marker {
  position: relative;
  z-index: 1;
  width: var(--timeline-dot);
  height: var(--timeline-dot);
  margin-top: calc(var(--timeline-body-pad) + (var(--timeline-line-h) - var(--timeline-dot)) / 2);
  border-radius: 50%;
  background: #fff;
  border: 2px solid #3d7aab;
  box-sizing: border-box;
  flex-shrink: 0;
}

.home-timeline-item:first-child .home-timeline-marker {
  margin-top: calc((var(--timeline-line-h) - var(--timeline-dot)) / 2);
}

.home-timeline-body {
  display: flex;
  flex-direction: column;
  gap: var(--timeline-body-gap);
  flex: 1;
  min-width: 0;
  min-height: var(--timeline-body-min-h);
  padding: var(--timeline-body-pad) 0;
  box-sizing: content-box;
}

.home-timeline-item:first-child .home-timeline-body {
  padding-top: 0;
}

.home-timeline-item:last-child .home-timeline-body {
  padding-bottom: 0;
}

.home-timeline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.home-timeline-role {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--timeline-role-size);
  font-weight: 600;
  line-height: var(--timeline-role-lh);
  color: #2c3e50;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-timeline-role--sub {
  font-size: 0.82rem;
  font-weight: 500;
  color: #4a5560;
}

.home-timeline-note-inline {
  font-weight: 400;
  color: #8b949e;
}

.home-timeline-period {
  flex-shrink: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: var(--timeline-role-lh);
  color: #6b7280;
  white-space: nowrap;
}

.home-timeline-note {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.35;
  color: #8b949e;
}

.home-timeline-meta {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #6b7280;
}

.home-timeline-meta a {
  color: inherit;
  text-decoration: none;
}

.home-timeline-meta a:hover {
  color: #556a9a;
  text-decoration: underline;
}

@media (max-width: 520px) {
  .home-timeline-head {
    flex-wrap: wrap;
    gap: 0.15rem 0.75rem;
  }

  .home-timeline-period {
    font-size: 0.72rem;
  }

  .home-timeline-meta,
  .home-timeline-note {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

#homepage-content p {
  line-height: 1.65;
}

.home-page main {
  max-width: 820px;
  margin-top: 0;
}

.home-page .site-header {
  max-width: 820px;
}

@media (max-width: 768px) {
  .home-intro {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "sidebar"
      "timeline";
    justify-items: stretch;
  }

  .home-copy,
  .home-timeline-block,
  .home-sidebar {
    width: 100%;
    max-width: none;
    min-width: 0;
    justify-self: stretch;
  }

  .home-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    column-gap: 1rem;
    row-gap: 0.65rem;
  }

  .home-sidebar-actions {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: stretch;
    gap: 0.4rem;
  }

  .home-sidebar .home-pill-link--resume {
    width: var(--home-icons-row);
    min-width: 0;
  }

  .home-sidebar .social-icons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .home-sidebar .profile-figure {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }
}

/* Writings list (from post_list; home does not load post.css) */
.writings-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0.75em 0 0.5em;
}

.writings-nav-btn {
  flex: 0 0 auto;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #495057;
  background: #f1f3f4;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.writings-nav-btn:hover {
  background: #e8eaed;
  color: #1a1a1a;
}

.writings-nav-btn.active {
  background: #2c3e50;
  color: #fff;
  border-color: #2c3e50;
}

.writings-list {
  list-style: none;
  padding: 0;
  margin: 0.5em 0 0;
}

.writings-item {
  display: flex;
  align-items: baseline;
  gap: 0.75em;
  padding: 0.35em 0;
  font-size: 1rem;
  line-height: 1.35;
  border-bottom: 1px solid #eee;
}

.writings-item:last-child {
  border-bottom: none;
}

.writings-date {
  flex-shrink: 0;
  width: 11ch;
  font-size: 0.8rem;
  color: #6c757d;
  font-variant-numeric: tabular-nums;
}

.writings-link {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  transition: color 0.15s;
}

.writings-link:hover {
  color: #556a9a;
}

@media screen and (max-width: 700px) {
  .writings-nav {
    flex-direction: row;
  }

  .writings-item {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5em;
    min-width: 0;
  }

  .writings-date {
    font-size: 0.75rem;
    width: 11ch;
    flex-shrink: 0;
  }

  .writings-link {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

