* { box-sizing: border-box; }
/* Google Fonts - PT Sans & PT Serif */
@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  --accent-color: #b33a3a;
  --accent-color-border: rgba(179, 58, 58, 0.2);
  --accent-color-hover: #c44536;
  --ro-id-color: #8b0000;
  --extra-light-grey: #F8F6F6;
  --light-gray: rgba(0, 0, 0, 0.15);
  --mid-gray: #9E8B89;
  --gray: #666666;
  --dark-gray: #393636;
  --body-bg-color: #FFF;
  --body-text-color: #262626;
  --code-color: #55413F;
  --code-bg-color: var(--extra-light-grey);
  --callout-code-color: #FFF;

  --wrapper-width: 1200px;
  --aside-width: 340px;
  --callout-width: 370px;
  --space-1x: 0.8rem;
  --space-2x: 1.6rem;
  --space-3x: 2.4rem;
  --space-4x: 3.2rem;

  --font-size: 1.5rem;
  --lh: 1.4;
  --header-spacing: 0.6rem;
  --paragraph-spacing: var(--space-3x);
  --post-subtitle-size: 2rem;
  --post-body-font-size: 1.8rem;
  --post-body-lh: 1.5;
  --footnotes-font-size: 1.6rem;
  --blockquote-font-size: 1.7rem;
  --callout-font-size: 1.5rem;
  --dateline-font-size: 1.5rem;
  --post-tag-font-size: 1.3rem;
  --article-right-margin: 8rem;

  --mono: Menlo, Monaco, "Andale Mono", "lucida console", "Courier New", monospace;
  --sans-serif: "PT Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "PT Serif", Georgia, Times, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent-color: #cd5c5c;
    --accent-color-border: rgba(205, 92, 92, 0.5);
    --ro-id-color: #cd5c5c;
    --body-bg-color: #2b2a34;
    --body-text-color: #FFF;
    --code-color: #FFF;
    --code-bg-color: #1d1c22;
    --light-gray: rgba(255, 255, 255, 0.15);
    --extra-light-grey: rgba(255, 255, 255, 0.1);
    --mid-gray: #bdbdbd;
    --gray: #bdbdbd;
    --dark-gray: #dbdbdb;
    --callout-code-color: #1d1c22;
  }

  :root:not([data-theme="light"]) img {
    background-color: #FFF;
  }

  :root:not([data-theme="light"]) code[class*="language-"],
  :root:not([data-theme="light"]) pre[class*="language-"] {
    background-color: #1d1c22;
  }
}

/* Manual dark theme override */
[data-theme="dark"] {
  --accent-color: #cd5c5c;
  --accent-color-border: rgba(205, 92, 92, 0.5);
  --ro-id-color: #cd5c5c;
  --body-bg-color: #2b2a34;
  --body-text-color: #FFF;
  --code-color: #FFF;
  --code-bg-color: #1d1c22;
  --light-gray: rgba(255, 255, 255, 0.15);
  --extra-light-grey: rgba(255, 255, 255, 0.1);
  --mid-gray: #bdbdbd;
  --gray: #bdbdbd;
  --dark-gray: #dbdbdb;
  --callout-code-color: #1d1c22;
}

[data-theme="dark"] img {
  background-color: #FFF;
}

[data-theme="dark"] code[class*="language-"],
[data-theme="dark"] pre[class*="language-"] {
  background-color: #1d1c22;
}

* {
  box-sizing: border-box;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

html {
  font-size: 62.5%;
  /* For rem-based font sizes */
  line-height: 1.15;
  /* Correct the line height in all browsers. */
  -webkit-text-size-adjust: 100%;
  /* Prevent adjustments of font size after orientation changes in iOS. */
  overflow-y: scroll;
  /* Prevent layout shift when scrollbar appears/disappears */
}

body {
  margin: 0;
  font-family: var(--sans-serif);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body-text-color);
  background-color: var(--body-bg-color);
}

/* Grid */
.wrapper {
  margin: 0 auto;
  padding: 0 var(--space-2x);
  max-width: var(--wrapper-width);
}

@media only screen and (min-width: 576px) {
  .wrapper {
    padding: 0 var(--space-3x);
  }
}

.grid-main {
  margin: 0 auto;
  max-width: 720px;
  min-width: 0;
  /* pre will expand flex containers otherwise */
}

@media only screen and (min-width: 992px) {
  .grid {
    display: flex;
  }

  .grid-main {
    max-width: 100%;
    margin: 0;
    flex-grow: 1;
    padding-right: 3rem;
  }

  .grid-sidebar {
    flex-shrink: 0;
    top: var(--space-3x);
    position: sticky;
    width: var(--aside-width);
    padding-bottom: var(--space-3x);
    max-height: calc(100vh - var(--space-3x));
    overflow: visible;
  }
}

main {
  display: block;
  padding-top: var(--space-3x);
}

section {
  margin-bottom: var(--space-3x);
}

section.box {
  background-color: var(--extra-light-grey);
  padding: var(--space-3x);
}

@media (prefers-color-scheme: dark) {
  section.box {
    border: 1px solid var(--light-gray);
  }
}

section.header-line {
  border-top: 1px solid var(--light-gray);
  padding-top: var(--space-3x);
}

/* Article Content Typography - parsiya.net style */
article {
  font-family: var(--sans-serif);
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--body-text-color);
}

article p {
  margin-bottom: 1.5em;
  text-align: justify;
}

article h1,
article h2,
article h3,
article h4 {
  font-family: var(--sans-serif);
}

article h2 {
  font-size: 1.5em;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 0.3em;
}

article h3 {
  font-size: 1.3em;
  font-weight: 700;
  margin-top: 1.3em;
  margin-bottom: 0.5em;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
p,
hr,
ol,
ul {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--sans-serif);
  line-height: 1.2;
  margin-bottom: 0.8em;
}

article p,
article hr,
article ol,
article ul,
article dl {
  margin-bottom: var(--paragraph-spacing);
}

article ol li p,
article ul li p {
  margin: 0;
}

article h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

@media only screen and (min-width: 576px) {
  article h1 {
    font-size: 3.6rem;
  }
}

@media only screen and (min-width: 1200px) {
  article h1 {
    font-size: 4rem;
  }
}

.dateline {
  margin-bottom: 3rem;
}

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

.dateline,
.subtitle {
  font-family: var(--sans-serif);
  font-size: var(--dateline-font-size);
  color: var(--gray);
}

.subtitle {
  font-size: var(--post-subtitle-size);
}


article h2 {
  font-size: 2.4rem;
  margin-bottom: var(--header-spacing);
}

article h3 {
  font-size: 2rem;
  margin-bottom: var(--header-spacing);
}

article h4,
article h5 {
  font-size: inherit;
  margin-bottom: var(--header-spacing);
}

article h5 {
  color: var(--gray);
  font-weight: 400;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  color: var(--accent-color-hover);
  text-decoration: underline;
}

blockquote {
  font-size: var(--blockquote-font-size);
  color: var(--dark-gray);
  border-left: 1px solid var(--light-gray);
  margin: var(--space-3x) 0;
  padding: 0 var(--space-3x);
  /* This is to clear the call-out floats */
  overflow: hidden;
}

blockquote blockquote {
  border-left: 0;
}

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

hr {
  border: 0;
  background-color: var(--light-gray);
  height: 1px;
}

/* Code Blocks */
pre {
  max-width: 100%;
  font-size: 1em;
  border-radius: 8px;
  background-color: #1e1e1e;
  color: #d4d4d4;
  padding: 1.5rem;
  line-height: 1.6;
  margin: 1.5rem 0;
  position: relative;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

pre,
code {
  font-family: var(--mono);
}

/* Inline code */
:not(pre):not(h1):not(h2):not(h3):not(h4):not(h5)>code {
  font-size: 0.9em;
  font-weight: 400;
  color: var(--code-color);
  padding: .2em .4em;
  border-radius: 4px;
  background-color: var(--code-bg-color);
}

/* Syntax highlighted code blocks */
pre[class*="language-"] {
  border-radius: 8px;
  font-size: 1em;
  line-height: 1.6;
  direction: ltr;
  text-align: left;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-spacing: normal;
  tab-size: 2;
  margin: 1.5rem 0;
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  background-color: #1e1e1e;
}

/* Language label */
pre[class*="language-"]::before {
  content: attr(class);
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-family: var(--sans-serif);
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px 0 8px 0;
  letter-spacing: 0.05em;
  font-weight: 600;
}

pre.language-javascript::before,
pre.language-js::before {
  content: "JavaScript";
  background: #f7df1e;
  color: #000;
}

pre.language-typescript::before,
pre.language-ts::before {
  content: "TypeScript";
  background: #3178c6;
}

pre.language-python::before,
pre.language-py::before {
  content: "Python";
  background: #3572a5;
}

pre.language-bash::before,
pre.language-shell::before,
pre.language-sh::before {
  content: "Bash";
  background: #4eaa25;
}

pre.language-html::before {
  content: "HTML";
  background: #e34c26;
}

pre.language-css::before {
  content: "CSS";
  background: #264de4;
}

pre.language-json::before {
  content: "JSON";
  background: #f5a623;
  color: #000;
}

pre.language-sql::before {
  content: "SQL";
  background: #e38c00;
}

pre.language-php::before {
  content: "PHP";
  background: #777bb4;
}

pre.language-go::before {
  content: "Go";
  background: #00add8;
}

pre.language-rust::before {
  content: "Rust";
  background: #dea584;
  color: #000;
}

pre.language-java::before {
  content: "Java";
  background: #b07219;
}

pre.language-c::before {
  content: "C";
  background: #555555;
}

pre.language-cpp::before {
  content: "C++";
  background: #f34b7d;
}

pre.language-ruby::before,
pre.language-rb::before {
  content: "Ruby";
  background: #cc342d;
}

pre.language-yaml::before,
pre.language-yml::before {
  content: "YAML";
  background: #cb171e;
}

pre.language-markdown::before,
pre.language-md::before {
  content: "Markdown";
  background: #083fa1;
}

pre.language-http::before {
  content: "HTTP";
  background: #005c9c;
}

pre.language-xml::before {
  content: "XML";
  background: #0060ac;
}

pre.language-diff::before {
  content: "Diff";
  background: #41b883;
}

pre.language-text::before,
pre.language-plaintext::before {
  content: "Text";
  background: #555;
}

article ol,
article ul {
  padding: 0;
  list-style: none;
  counter-reset: li;
  position: relative;
}

article ol li,
article ul li {
  margin-bottom: 0;
}

article ol li:last-child,
article ul li:last-child {
  margin-bottom: 0;
}

article ol li {
  counter-increment: li;
  padding-left: 1.5em;
}

article ul li {
  padding-left: 1em;
}

article ol li::before,
article ul li::before {
  position: absolute;
  left: 0;
  color: var(--mid-gray);
}

article ol li::before {
  content: counter(li) ".";

}

article ul li::before {
  content: "•";
}

table {
  font-family: var(--sans-serif);
  font-size: 1.6rem;
  margin-bottom: 1em;
  border-collapse: collapse;
  width: 100%;
}

.callout table {
  font-size: inherit;
}

td,
th {
  border: 1px solid var(--light-gray);
  padding: 3px 6px;
  text-align: left;
}

/* Special row colors for tables */
tr.row-blue {
  background: rgb(199, 235, 255);
  color: rgb(0, 85, 133);
}

tr.row-green {
  background: rgb(217, 251, 208);
  color: rgb(28, 108, 9);
}

tr.row-red {
  background: rgb(255, 224, 219);
  color: rgb(184, 24, 0);
}

@media (prefers-color-scheme: dark) {
  tr.row-blue {
    background: rgba(96, 198, 255, 0.08);
    color: rgb(96, 198, 255);
  }

  tr.row-green {
    color: rgb(144, 214, 127);
    background: rgba(144, 214, 127, 0.08);
  }

  tr.row-red {
    background: rgb(75, 47, 54);
    color: rgb(255, 179, 210);
  }
}



/* Forms */
button,
input {
  font-family: var(--sans-serif);
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 3px;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

input[type="submit"],
button {
  cursor: pointer;
  -webkit-appearance: none;
}

.subscribe-button {
  background-color: var(--accent-color);
  color: #fff;
  border-color: transparent;
}

.subscribe-button:hover,
.subscribe-button:active,
.subscribe-button:focus {
  background-color: var(--accent-color-hover);
}

.inline-form {
  display: flex;
  width: 100%;
}

footer .inline-form {
  display: inline-flex;
  width: auto;
}

.inline-form input {
  flex-grow: 1;
  width: 100%;
  margin-right: 3px;
}

/* Direct Links / Markdown Headers */
.direct-link {
  text-decoration: none;
  color: transparent;
}

.direct-link:focus,
:hover>.direct-link {
  color: var(--accent-color);
}

/* Header */
header {
  padding: 1.2rem 0;
  border-bottom: 1px dashed var(--light-gray);
  font-size: 1.4rem;
}

@media only screen and (min-width: 576px) {
  header {
    padding: var(--space-2x) 0;
    font-size: inherit;
  }
}

header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--wrapper-width);
  margin: 0 auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: flex-end;
}

.embeddable-buttondown-form {
  display: flex;
  gap: 0.5rem;
}

.embeddable-buttondown-form input[type="email"] {
  padding: 6px 12px;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-size: 1.4rem;
  background: var(--extra-light-grey);
  color: var(--black);
  width: 200px;
}

.embeddable-buttondown-form input[type="submit"] {
  padding: 6px 12px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.embeddable-buttondown-form input[type="submit"]:hover {
  opacity: 0.9;
}

#theme-toggle {
  background: none;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

#theme-toggle:hover {
  background: var(--extra-light-grey);
}

@media (max-width: 768px) {
  header .wrapper {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .embeddable-buttondown-form input[type="email"] {
    width: 150px;
  }
}


.nav-title {
  line-height: 1;
  display: flex;
  align-items: center;
  font-size: 2.4rem !important;
  font-weight: 200 !important;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0;
  flex: 0 0 auto;
}

.nav-tilde {
  font-size: 1.8rem;
  color: var(--accent-color);
  margin-right: 2rem;
  margin-left: -0.5rem;
  opacity: 0.6;
  font-weight: 300;
}

.nav-title a {
  text-decoration: none !important;
  color: inherit;
}

.nav-title a:hover {
  text-decoration: none !important;
}

.nav-title .ro-accent {
  color: var(--accent-color);
}

.nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
  flex: 1;
}

.nav-item {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  position: relative;
}

.nav-item a {
  text-decoration: none !important;
  color: var(--gray);
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  display: block;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  box-shadow: 0 0 8px var(--accent-color-border);
}

.nav-item a:hover {
  color: var(--body-text-color);
}

.nav-item a:hover::after,
.nav-item a[aria-current="page"]::after {
  width: 100%;
}

.nav-item a[aria-current="page"] {
  color: var(--body-text-color);
}

@media only screen and (max-width: 575px) {
  .nav-item.highlight a {
    color: white;
    background-color: var(--accent-color);
    border-radius: 3px;
    padding: 2px 6px;
  }

  .nav-item.highlight a:hover {
    color: white;
    text-decoration: none;
    background-color: var(--accent-color-hover);
  }
}

@media only screen and (min-width: 576px) {
  .nav {
    font-size: inherit;
  }

  .nav-title {
    font-size: 1.6rem;
    margin-right: var(--space-3x);
  }

  .nav-item.desktop-only {
    display: inline-block;
  }
}

header a {
  text-decoration: none;
  color: inherit;
}

header a:hover,
header a.active {
  text-decoration: underline;
}

/* Footer */
footer {
  padding: calc(var(--space-2x) * 2) 0;
  border-top: 1px dashed var(--light-gray);
}

article {
  line-height: var(--post-body-lh);
  font-size: var(--post-body-font-size);
  font-family: var(--sans-serif);
}

article img,
article iframe {
  max-width: 100%;
}

/* Footnotes */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

sup a {
  text-decoration: dotted;
}

.footnotes {
  font-size: var(--footnotes-font-size);
}

/* Sidebar adjustments */
aside {
  border-top: 1px solid var(--light-gray);
  padding-top: var(--space-3x);
}

aside .box {
  display: none;
  /* don't show on small screens */
}

aside .box h2 {
  margin-bottom: 1rem;
}

@media only screen and (min-width: 992px) {
  aside {
    border-top: 0;
    padding-top: 0;
  }

  aside .box {
    display: block;
  }
}

/* Callout */
.callout {
  padding: var(--space-3x) var(--space-2x);
  margin-bottom: var(--space-2x);
  margin-left: calc(var(--space-2x) * -1);

  width: calc(100% + var(--space-2x) * 2);
  background: var(--extra-light-grey);

  font-family: var(--sans-serif);
  font-size: var(--callout-font-size);
  line-height: 1.6;
}

.callout h4 {
  color: var(--body-text-color);
}

.callout p {
  margin-top: 0;
  margin-bottom: 1em;
}

.callout ul,
.callout ol,
.callout p:last-child {
  margin-bottom: 0;
}

.callout code,
.callout pre {
  background-color: var(--callout-code-color);
}

@media only screen and (min-width: 1240px) {
  .callout {
    background: var(--extra-light-grey);
    padding: var(--space-3x);
    float: left;
    width: var(--callout-width);
    margin-right: var(--paragraph-spacing);
    margin-bottom: var(--space-1x);
    margin-left: -50px;
  }

  /* because floats */
  article ol,
  article ul {
    overflow: hidden;
  }
}


/* Post List */
.postlist {
  padding: 0;
  list-style: none;
  margin: 0 0 1em;
  font-size: var(--post-body-font-size);
}

aside .postlist {
  font-size: inherit;
}

aside .postlist-item,
.postlist-item {
  margin-bottom: var(--space-2x);
}

.postlist-link {
  color: inherit;
  margin-right: 0.5rem;
  font-family: var(--sans-serif);
}

aside .postlist-link {
  font-family: inherit;
}

.postlist-date {
  margin-right: 0.5rem;
  display: inline-block;
  font-weight: bold;
  color: var(--gray);
}

.postlist-date,
.post-tag {
  font-size: var(--post-tag-font-size);
  font-family: var(--sans-serif);
}

aside .postlist-date {
  display: none;
}

aside .post-tags {
  display: block;
}

:not(aside) .post-tag {
  display: inline-block;
  margin-top: 4px;
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--accent-color);
  border: 1px solid var(--accent-color-border);
}

a.post-tag:hover {
  background: var(--accent-color);
  color: white;
  text-decoration: none;
}

/* Various image styles */
.img-center {
  display: block;
  margin: 0 auto;
  margin-bottom: var(--space-2x);
}

.img-float {
  display: block;
  margin: 0 auto;
  margin-bottom: var(--space-2x);
}

@media only screen and (min-width: 576px) {
  .img-float {
    float: left;
    margin-right: var(--space-2x);
    margin-bottom: 0;
  }
}

/* Side-by-side images */
.img-flex-equal {
  display: flex;
  margin-bottom: var(--paragraph-spacing);
}

.img-flex-equal>div {
  margin-right: var(--space-2x);
}

.img-flex-equal>div:last-child {
  margin-right: 0;
}

figure,
figure.img-center {
  margin: 0 0 var(--paragraph-spacing) 0;
  display: table;
}

figure.img-center {
  margin: 0 auto var(--paragraph-spacing);
}

figcaption {
  width: 0;
  min-width: 100%;
  font-size: 0.8em;
  font-family: var(--sans-serif);
}

figure p {
  margin: 0;
}

/* Featured section on Archive */
.featured {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-3x);
}

.featured-header,
.featured-subtitle {
  margin-bottom: var(--space-1x);
}

.featured-subtitle {
  font-size: 1.1em;
}

.featured-content {
  max-width: 700px;
}

.featured-item a {
  display: block;
  margin-bottom: var(--space-2x);

  text-decoration: none;
  color: inherit;
}

.featured-item img {
  display: none;

}

@media only screen and (min-width: 576px) {
  .featured {
    margin-bottom: 0;
  }

  .featured-item a {
    display: flex;
    padding: var(--space-2x);
    margin-bottom: 0;
  }

  .featured-item a:hover {
    background-color: var(--extra-light-grey);
  }

  .featured-item img {
    display: block;
    width: 168px;
    height: 121px;
    object-fit: cover;
    margin-right: var(--space-2x);
  }
}

/* Definition lists that have inline terms */
dl {
  padding: 0;
  margin-top: 0;
}

dt {
  font-weight: bold;
}

/* Seclog Entry Styles */
.seclog-entry {
  font-size: 1.6rem;
  line-height: 1.65;
  font-family: var(--sans-serif);
}

/* Seclog Cards */
.seclog-card {
  display: flex;
  gap: 1.25rem;
  background: var(--extra-light-grey);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  transition: background 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.seclog-card:hover {
  background: rgba(179, 58, 58, 0.03);
}

.seclog-card-image {
  flex: 0 0 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
}

.seclog-card-image svg {
  display: block;
}


.seclog-card-content {
  padding: 1rem 1.5rem 1rem 0;
  flex: 1;
}

.seclog-card-intro {
  margin: 0;
  font-size: 1.45rem;
  color: var(--body-text-color);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


@media (max-width: 768px) {
  .seclog-card {
    gap: 0.75rem;
  }

  .seclog-card-image {
    flex: 0 0 60px;
    height: 60px;
  }

  .seclog-card-title {
    font-size: 1.25rem;
  }
}

/* Social Share Buttons */
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.share-x {
  background: #000000;
  color: #ffffff !important;
}

.share-linkedin {
  background: #0077b5;
  color: #ffffff !important;
}

.share-mastodon {
  background: #6364ff;
  color: #ffffff !important;
}

.share-btn:hover {
  opacity: 0.9;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}



.seclog-entry h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
  font-size: 2rem;
  font-weight: 600;
}

.seclog-entry h2:first-of-type {
  margin-top: 2rem;
}

/* Intro paragraph - first paragraph after header */
.seclog-entry>p:first-of-type {
  background: linear-gradient(135deg, var(--extra-light-grey) 0%, rgba(179, 58, 58, 0.1) 100%);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.seclog-entry p {
  margin-bottom: 1.5rem;
}

.seclog-entry p a strong {
  color: var(--accent-color);
  font-size: 1.1em;
}

.seclog-entry p a strong:hover {
  text-decoration: underline;
}

/* Blockquote style for link descriptions */
.seclog-entry blockquote {
  margin: 0 0 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--extra-light-grey);
  border-left: 3px solid var(--accent-color);
  border-radius: 0 6px 6px 0;
  font-size: 0.95em;
}

.seclog-entry blockquote p {
  margin: 0;
  line-height: 1.6;
}

.seclog-entry blockquote p+p {
  margin-top: 0.5rem;
}

.seclog-entry ul {
  margin-top: -0.5rem;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  background: var(--extra-light-grey);
  padding: 1rem 1rem 1rem 2rem;
  border-radius: 6px;
  border-left: 3px solid var(--accent-color);
}

.seclog-entry ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.seclog-entry ul li:last-child {
  margin-bottom: 0;
}

.seclog-entry em {
  color: var(--gray);
  font-size: 0.9em;
}

dt,
dd {
  display: inline;
  margin: 0;
}

dd:not(:last-child)::after {
  content: "";
  display: block;
  padding: var(--space-1x);
}

/* Seclog Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--extra-light-grey);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.pagination a,
.pagination span {
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 2.5rem;
  text-align: center;
}

.pagination a {
  color: var(--gray);
  background: var(--extra-light-grey);
}

.pagination a:hover {
  background: var(--accent-color);
  color: white;
}

.pagination .pagination-active {
  background: var(--accent-color);
  color: white;
}

.pagination .pagination-disabled {
  color: var(--gray);
  opacity: 0.4;
  cursor: not-allowed;
  background: transparent;
}

.pagination .pagination-dots {
  color: var(--gray);
  background: transparent;
  padding: 0.5rem 0.25rem;
  min-width: auto;
}

.pagination .pagination-prev-next {
  color: var(--accent-color);
  background: transparent;
  font-weight: 700;
}

.pagination .pagination-prev-next:hover {
  background: var(--extra-light-grey);
  color: var(--accent-color);
}