/* cspell:disable-file */

/* ===== Base ===== */
html { -webkit-print-color-adjust: exact; }
* {
  box-sizing: border-box;
  -webkit-print-color-adjust: exact;
}

html,
body {
  margin: 0;
  padding: 0;
}

@media only screen {
  body {
    margin: 2em auto;
    padding: 0 30px;
    max-width: 900px;
    color: rgb(55, 53, 47);
  }
}

body {
  line-height: 1.5;
  white-space: normal;
}

a,
a.visited {
  color: inherit;
  text-decoration: underline;
}

img {
  max-width: 100%;
}

@media only print {
  img {
    max-height: 100vh;
    object-fit: contain;
  }
}

@page {
  margin: 1in;
}

/* ===== Type ===== */
h1,
h2,
h3 {
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 0;
}

h1 strong,
h2 strong,
h3 strong {
  font-weight: 600;
}

.page-title {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 10px 0 28px;
}

h1 {
  font-size: 1.875rem;
  margin-top: 1.35rem;
  margin-bottom: 0.45rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.05rem;
  margin-bottom: 0.35rem;
}

p {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* ===== Common Notion bits kept ===== */
table,
th,
td {
  border: 1px solid rgba(55, 53, 47, 0.09);
  border-collapse: collapse;
}

table {
  border-left: none;
  border-right: none;
}

th,
td {
  font-weight: normal;
  padding: 0.25em 0.5em;
  line-height: 1.5;
  min-height: 1.5em;
  text-align: left;
}

th {
  color: rgba(55, 53, 47, 0.6);
}

ol,
ul {
  margin: 0.55em 0;
}

ul {
  padding-inline-start: 1.7em;
}

ol {
  padding-inline-start: 1.6em;
}

ul > li {
  list-style: disc;
  padding-left: 0.1em;
}

ol > li {
  padding-left: 0.2em;
}

blockquote {
  font-size: 1em;
  margin: 1em 0;
  padding-left: 1em;
  border-left: 3px solid rgb(55, 53, 47);
}

code,
.code {
  background: rgba(135, 131, 120, 0.15);
  border-radius: 3px;
  font-size: 85%;
  tab-size: 2;
}

code {
  color: #eb5757;
  padding: 0.2em 0.4em;
}

.code {
  padding: 1.5em 1em;
}

.code > code {
  background: none;
  padding: 0;
  font-size: 100%;
  color: inherit;
}

hr {
  background: transparent;
  display: block;
  width: 100%;
  height: 1px;
  border: none;
  border-bottom: 1px solid rgba(55, 53, 47, 0.09);
}

mark {
  background-color: transparent;
}

time {
  opacity: 0.5;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 1.2em;
  max-height: 1.2em;
  vertical-align: text-bottom;
  margin-right: 0.5em;
}

.page-header-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.page-header-icon img,
img.icon {
  border-radius: 3px;
}

.page-description {
  margin: 0;
}

.page-description:empty {
  display: none;
}

.sans {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display",
    "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
.code {
  font-family: "SFMono-Regular", Menlo, Consolas, "PT Mono", "Liberation Mono", Courier, monospace;
}
.serif {
  font-family: Lyon-Text, Georgia, ui-serif, serif;
}
.mono {
  font-family: iawriter-mono, Nitti, Menlo, Courier, monospace;
}

/* ===== Header ===== */
header {
  margin: 0;
  padding: 20px 0 10px;
}

.properties {
  margin-left: auto;
  margin-right: auto;
}

/* ===== Page body rhythm ===== */
.page-body {
  font-size: 1rem;
  line-height: 1.7;
  white-space: normal;
}

.page-body p {
  margin: 0.65em 0;
}

.page-body ul,
.page-body ol {
  margin-block-start: 0.55em;
  margin-block-end: 0.55em;
}

.page-body li {
  margin: 0.28em 0;
}

.page-body p + h1,
.page-body ul + h1,
.page-body ol + h1 {
  margin-top: 1.15rem;
}

/* ===== Back button ===== */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(58, 112, 145, 0.22);
  background: #fff;
  color: #3a7091;
  text-decoration: none;
  font: 600 0.95rem/1.1 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.back-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.09);
  background: #3a7091;
  color: #fff;
}

/* ===== File cards ===== */
.file-card {
  margin: 1.5rem auto 2rem;
  max-width: 780px;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid rgba(58, 112, 145, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.06);
}

.file-title-link {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: #3a7091;
}

.file-title-link:hover {
  color: #2d5d7b;
}

.file-meta {
  margin-bottom: 0.9rem;
  color: rgba(55, 53, 47, 0.65);
  font-size: 0.92rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.file-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.62rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(58, 112, 145, 0.18);
  background: #fff;
  color: #3a7091;
  text-decoration: none;
  font: 600 0.9rem/1 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.file-pill:hover {
  background: #3a7091;
  color: #fff;
  transform: translateY(-1px);
}

/* ===== Presentation / PDF embeds ===== */
.file-embed {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 14px;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f5f5;
}

.file-embed iframe {
  display: block;
  width: 100%;
  max-width: 960px;
  min-height: 980px;
  height: min(75vh, 1100px);
  border: 0;
}

/* Optional helpers if you add these classes in HTML */
.figma-embed iframe {
  min-height: 640px;
  height: min(70vh, 900px);
}

.pdf-embed iframe {
  min-height: 980px;
  height: min(75vh, 1100px);
}

/* Mobile PDF behavior */
.pdf-fallback {
  display: none;
}

@media (max-width: 900px) {
  .file-embed iframe {
    min-height: 620px;
    height: 72vh;
  }
}

@media (max-width: 768px) {
  .file-embed {
    display: none;
  }

  .pdf-fallback {
    display: block;
  }
}

/* ===== Selected tags / color helpers you actually use ===== */
.selected-value {
  display: inline-block;
  padding: 0 0.5em;
  margin: 0.3em 0.5em 0.3em 0;
  white-space: nowrap;
  border-radius: 3px;
  background: rgba(206, 205, 202, 0.5);
}

.highlight-blue,
.block-color-blue {
  color: rgba(56, 125, 201, 1);
  fill: rgba(56, 125, 201, 1);
}

.highlight-blue_background,
.block-color-blue_background {
  background: rgba(229, 242, 252, 1);
}

.select-value-color-blue {
  background-color: rgba(0, 118, 217, 0.203);
}


/* ===== Keep Notion bookmark / LinkedIn card styling ===== */
.source {
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 1.5em;
  word-break: break-all;
}

.bookmark {
  text-decoration: none;
  max-height: 8em;
  padding: 0;
  display: flex;
  width: 100%;
  align-items: stretch;
  max-width: 100%;
  flex-wrap: wrap;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(55,53,47,0.10);
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  background: #fafafa;
}

.bookmark-info {
  flex: 4 1 180px;
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bookmark-text {
  display: flex;
  flex-direction: column;
}

.bookmark-title {
  font-size: 0.85em;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 1.75em;
  white-space: nowrap;
}

.bookmark-description {
  color: rgba(55, 53, 47, 0.6);
  font-size: 0.75em;
  overflow: hidden;
  max-height: 4.5em;
  word-break: break-word;
}

.bookmark-href {
  font-size: 0.75em;
  margin-top: 0.25em;
}

.bookmark-image {
  width: 33%;
  flex: 1 1 180px;
  display: block;
  position: relative;
  object-fit: cover;
  border-radius: 1px;
}

.bookmark-icon {
  margin-right: 0.5em;
}

.bookmark,
.bookmark * {
  max-width: 100%;
  box-sizing: border-box;
}

/* ===== Keep image/gallery styling ===== */
figure {
  margin: 1.25em 0;
  page-break-inside: avoid;
}

.image {
  border: none;
  margin: 1.5em 0;
  padding: 0;
  border-radius: 0;
  text-align: center;
}

.page-cover-image {
  display: block;
  object-fit: cover;
  width: 100%;
  max-height: 30vh;
}

.callout img.notion-static-icon {
  width: 1em;
  height: 1em;
}

.image img {
  width: 100% !important;
  height: auto !important;
  border-radius: 14px;
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

figure.image {
  margin: 0 0 18px 0;
}

.column-list {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.column {
  flex: 1;
}

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

@media (max-width: 768px) {
  .column-list {
    flex-direction: column;
  }

  .column {
    width: 100% !important;
  }

  figure.image {
    margin-bottom: 20px;
  }

  .bookmark {
    flex-direction: column;
    max-height: none;
  }

  .bookmark-image {
    width: 100%;
    max-height: 220px;
  }

  .bookmark-info {
    padding: 12px;
  }
}
