/* normalize.css 2012-03-11T12:53 UTC - http://github.com/necolas/normalize.css */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section,
summary {
    display: block
}
audio,
canvas,
video {
    display: inline-block;*display:inline;*zoom:1
}
audio:not([controls]) {
    display: none;height:0
}
[hidden] {
    display: none
}
html {
    font-size: 100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%
}
html,
button,
input,
select,
textarea {
    font-family: sans-serif
}
body {
    margin: 0
}
a:focus {
    outline: thin dotted
}
a:hover,
a:active {
    outline: 0
}
h1 {
    font-size: 2em;margin:0.67em 0
}
h2 {
    font-size: 1.5em;margin:0.83em 0
}
h3 {
    font-size: 1.4em;margin:1em 0
}
h4 {
    font-size: 1em;margin:1.33em 0
}
h5 {
    font-size: 0.83em;margin:1.67em 0
}
h6 {
    font-size: 0.75em;margin:2.33em 0
}
abbr[title] {
    border-bottom: 1px dotted
}
b,
strong {
    font-weight: bold
}
blockquote {
    margin: 1em;padding:0 30px;border-left:8px solid #FFB380
}
dfn {
    font-style: italic
}
mark {
    background: #ff0;color:#000
}
p,
pre {
    margin: 1em 0
}
pre,
code,
kbd,
samp {
    font-family: monospace, serif;_font-family:'courier new', monospace;font-size:1em
}
pre {
    white-space: pre;white-space:pre-wrap;word-wrap:break-word
}
q {
    quotes: none
}
q:before,
q:after {
    content: '';content:none
}
small {
    font-size: 75%
}
sub,
sup {
    font-size: 75%;line-height:0;position:relative;vertical-align:baseline
}
sup {
    top: -0.5em
}
sub {
    bottom: -0.25em
}
dl,
menu,
ol,
ul {
    margin: 1em 0
}
dd {
    margin: 0 0 0 40px
}
menu,
ol,
ul {
    padding: 0 0 0 40px
}
nav ul,
nav ol {
    list-style: none;list-style-image:none
}
img {
    border: 0;-ms-interpolation-mode:bicubic
}
svg:not(:root) {
    overflow: hidden
}
figure {
    margin: 0
}
form {
    margin: 0
}
fieldset {
    border: 1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em
}
legend {
    border: 0;padding:0;white-space:normal;*margin-left:-7px
}
button,
input,
select,
textarea {
    font-size: 100%;margin:0;vertical-align:baseline;*vertical-align:middle
}
button,
input {
    line-height: normal
}
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    cursor: pointer;-webkit-appearance:button;*overflow:visible
}
button[disabled],
input[disabled] {
    cursor: default
}
input[type="checkbox"],
input[type="radio"] {
    box-sizing: border-box;padding:0;*height:13px;*width:13px
}
input[type="search"] {
    -webkit-appearance: textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none
}
button::-moz-focus-inner,
input::-moz-focus-inner {
    border: 0;padding:0
}
textarea {
    overflow: auto;vertical-align:top
}
table {
    border-collapse: collapse;border-spacing:0
}
aside {
    position: relative;display:block
}

/* Remove list styles only for navigation, not content */
nav ul,
nav ol,
#admin ul {
    list-style-type: none
}

/* Content lists should have bullets/numbers */
.post ul {
    list-style-type: disc;
    padding-left: 30px;
    margin: 1em 0;
}

.post ol {
    list-style-type: decimal;
    padding-left: 30px;
    margin: 1em 0;
}

.post li {
    margin: 0.25em 0;  /* Reduced from 0.5em to 0.25em */
    line-height: 1.6;
}

.hide {
    visibility: hidden;height:1px;clip:rect(0 0 0 0);position:absolute
}
input,
textarea {
    outline: none;background:none
}
body {
    background: #fff;color:#222
}
body,
textarea,
pre,
input {
    font-family: "Lato", "Helvetica Neue", sans-serif;line-height:1.8em;font-size:16px;font-weight:200
}
h1,
h2,
h3,
h4,
h5 {
    font-weight: 900;word-wrap:break-word;line-height:1.3em
}
h1 {
    font-weight: 900;font-size:26px
}
#text-title input,
#text-title textarea,
#text-title pre {
    font-size:35px;
    font-weight: 900;
}
p {
    color: #555
}
a,
a:visited a:active {
    color: #000;text-decoration:none;border-bottom:1px solid #ddd
}
a:hover {
    color: #F77E2D
}
header {
    width: 162px;border-right:1px solid #DDD;position:fixed;top:0;bottom:0;padding:20px 40px
}
header span {
    color: #888;
}
header span.powered-by {
    position: absolute;bottom:20px;font-size:11px
}
header ul {
    padding: 0;margin:50px 0
}
header ul.social-links {
    display: block;
    margin: 25px 0;
}
header ul.social-links li {
    margin: 0 0 8px 0;
    display: block;
}
header ul.social-links li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 14px;
    font-weight: 400;
    padding: 2px 0;
    border-bottom: 2px solid #eee;
    transition: all 0.3s ease;
    text-decoration: none;
}
header ul.social-links li a:hover {
    border-color: #F77E2D;
    color: #F77E2D;
}
header ul.social-links li a i {
    font-size: 14px;
}
header ul.social-links li a .link-text {
    display: inline;
}
header li {
    margin: 0 0 3px 0
}
header li a {
    padding: 2px 0;color:#888;border-bottom:2px solid #eee;transition: all 0.3s ease;
}
header li a:hover {
    border-color: #F77E2D;color:#F77E2D
}
#container {
    margin-left: 243px;position:relative
}
#container time {
    display: block;padding:20px 0 20px 50px;text-transform:uppercase;font-weight:900;font-size:12px;border-bottom:1px solid #ddd
}
#content section {
    padding: 26px 0 40px 50px;border-bottom:1px solid #ddd;position:relative
}
#content section time {
    display: block;
    padding: 0;
    margin: 0 0 2px 0;
    font-size: 9px;
    color: #999;
    text-transform: uppercase;
    font-weight: 700;
    border: none;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#content section:hover time {
    opacity: 1;
}
#content h1.aside {
    font-size: 24px;
    margin: 0;
    padding: 0;
}
#content h1.aside a {
    color: #000;
    border-bottom: 1px solid #ddd;
    transition: all 0.3s ease;
}
#content h1.aside a:hover {
    color: #F77E2D !important;
    border-bottom-color: #F77E2D !important;
}
#content h1.aside a p {
    margin: 0;
    color: inherit;
}
#content h1.aside a:hover p {
    color: #F77E2D !important;
}
.show #content h1.aside a {
    color: #000;
    border-bottom: 1px solid #ddd;
    transition: all 0.3s ease;
}
.show #content h1.aside a:hover {
    color: #F77E2D !important;
    border-bottom-color: #F77E2D !important;
}
.show #content h1.aside a p {
    margin: 0;
    color: inherit;
}
.show #content h1.aside a:hover p {
    color: #F77E2D !important;
}
.show #content section {
    border-bottom: none
}
.show #content .post a,
.show #content .post a:visited {
    color: #000;
    border-bottom: 1px solid #ddd;
    transition: all 0.3s ease;
}
.show #content .post a:hover {
    color: #F77E2D;
    border-bottom-color: #F77E2D;
}

/* Inline code */
code {
    font-size: 13px;
    background: #F2F2F2;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    display: inline; /* Keep inline */
}

/* Code blocks (inside <pre>) */
pre code {
    display: block;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
}

/* Standalone pre blocks without code */
pre {
    font-size: 13px;
    background: #F2F2F2;
    padding: 20px;
    margin: 20px 0;
    display: block;
    overflow-x: auto;
}
.contain,
#new_post,
.edit_post {
    width: 580px
}
.contain img {
    max-width: 100%;height:auto
}
#new_post,
.edit_post {
    padding: 40px 0;margin:0 auto
}
fieldset.markdown {
    position: relative;border:none;margin:0;padding:0
}
.markdown.image:before {
    display: block;content:"";width:39px;height:24px;position:absolute;top:4px;left:-60px;background:url(/images/markdown.png) no-repeat top left
}
#post_title {
    width: 100%;border:none;background:none;line-height:45px;margin:0 0 20px 0
}
#post_content {
    border: none;width:100%;position:relative;margin:0 0 80px 0
}
#publish-bar {
    position: fixed;bottom:0;left:0;background:#222;color:#fff;width:100%;text-align:center;padding:15px 0 15px
}
#publish-bar .contain {
    margin: 0 auto;width:700px
}
#publish-bar input[type=submit],
#publish-bar a,
.button {
    display: inline-block;background:#000;padding:8px 12px;font-weight:bold;border:none;color:#fff;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px
}
.button.secondary {
    padding: 0 5px;background:#aaa;font-size:12px
}
#publish-bar input[type=submit]:hover,
#publish-bar a:hover,
.col h1 a:hover,
.col h2 a:hover,
.button:hover,
.button.secondary:hover {
    background: #F77E2D;color:#fff
}
.button.space-top {
    margin-top: 100px
}
.left {
    float: left
}
.right {
    float: right
}
.actions {
    position: absolute;top:10px;right:10px;font-size:12px;margin:0;padding:0
}
.actions li {
    display: inline-block;margin:0 10px 0 0
}
label {
    font-size: 16px;color:#fff;font-weight:bold;margin:0 4px 0 15px
}
#post_draft {
    position: relative;margin:0 20px 0 0
}
.admin-links {
    position: absolute;text-align:right;top:18px;right:20px;margin:0
}
.admin-links li {
    float: left;margin-left:6px
}
.admin-links a {
    float: left
}
.notice {
    position: absolute;top:0;background:lightYellow;width:100%;display:block;text-align:center;padding:3px 0;font-size:12px
}
#admin {
    width: 808px;margin:0 auto;position:relative
}
#admin #drafts {
    float: left;border:4px solid #000;border-top:none;background:#fff;margin:0 0 20px 0;padding-top:10px
}
#admin #drafts form {
    margin: 20px 0 20px -20px;padding:0 0 0 20px;border-left:4px solid lightblue
}
#admin #drafts #post_title {
    width: 350px;font-size:16px;font-weight:400;margin:0;border-bottom:1px solid #ddd
}
#admin #published {
    float: right
}
#admin #published h2 {
    color: #999
}
#admin #published h2 a {
    margin-top: -2px
}
#admin .col h1,
#admin .col h2 {
    position: relative;text-transform:uppercase
}
#admin .col h1 a,
#admin .col h2 a {
    position: absolute;top:0;right:0;font-size:12px;padding:2px 10px;line-height:2.7em;margin:5px 0 0
}
#admin .col {
    width: 360px;padding:20px
}
#admin .col h2 a {
    background: #999
}
#admin .col h2 a:hover {
    background: #F77E2D
}
#admin .col ul {
    padding: 0
}
#admin .col ul li {
    border-bottom: 1px solid #ddd;padding:15px;position:relative
}
#admin .col ul li:hover .links {
    visibility: visible
}
#admin .col ul li .links {
    position: absolute;right:0;top:14px;background:#fff;padding:1px 8px;visibility:hidden
}
#admin .col ul li .links a {
    color: #999;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px
}
#admin .col ul li .links a:hover {
    color: #F77E2D
}
#admin .col ul li h3 {
    margin: 0;font-size:16px;max-width:100%;text-overflow:ellipsis;overflow:hidden
}
#admin .col ul li h3 a {
    border: none
}
#admin textarea,
#admin pre {
    margin: 0;padding:0;outline:0;border:0
}
#admin #text-content {
    margin: 0 0 100px 0
}
.edit_post #admin #text-content textarea,
.new_post #admin #text-content textarea {
    min-height: 500px;
}
#admin .expandingArea {
    position: relative
}
#admin .expandingArea>textarea,
#admin .expandingArea>input,
#admin .expandingArea>pre {
    background: transparent;white-space:pre-wrap;word-wrap:break-word
}
#admin .expandingArea>input,
#admin .expandingArea>textarea {
    -webkit-box-sizing: border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;width:100%;height:100px
}
#admin #text-title textarea {
    min-height: 80px;
}
.edit_post #admin .expandingArea>textarea,
.new_post #admin .expandingArea>textarea {
    min-height: 300px;
}
#admin .expandingArea.active>input,
#admin .expandingArea.active>textarea {
    overflow: hidden;position:absolute;top:0;left:0;height:100%;resize:none
}
#admin .expandingArea.active>input {
    height:63px;
}
#admin .expandingArea>pre {
    display: none
}
#admin .expandingArea.active>pre {
    display: block;visibility:hidden
}
.admin-view {
    font-size: 11px;margin:0 10px 2px 0;font-weight:900;text-transform:uppercase
}
nav.pagination {
    text-align: right; font-size: 16px; font-weight: 900; text-transform: uppercase; margin: 0; padding: 0;
}

/* Mobile Responsive Styles */
@media only screen and (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.6em;
    }
    
    /* Header becomes horizontal, not sidebar */
    header {
        position: static !important;
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #DDD !important;
        padding: 15px !important;
        text-align: center;
    }
    
    header h1 {
        font-size: 20px !important;
        margin-bottom: 15px;
    }
    
    header p {
        font-size: 13px;
        line-height: 1.6;
    }
    
    header span {
        display: block;
        margin: 10px 0;
    }
    
    header span.powered-by {
        position: static !important;
        display: block;
        margin-top: 15px;
    }
    
    header ul {
        margin: 15px 0 !important;
        padding: 0 !important;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    header ul.social-links {
        gap: 12px !important;
        margin: 20px auto !important;
        justify-content: center !important;
        display: flex !important;
    }
    
    header ul.social-links li {
        display: inline-block !important;
        margin: 0 !important;
    }
    
    header ul.social-links li a {
        display: inline-flex !important;
        width: 36px !important;
        height: 36px !important;
        line-height: 36px !important;
        font-size: 18px !important;
        border: 1px solid #ddd !important;
        border-radius: 50% !important;
        padding: 0 !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    header ul.social-links li a:hover {
        background: rgba(247, 126, 45, 0.05) !important;
    }
    
    header ul.social-links li a .link-text {
        display: none !important;
    }
    
    header ul.social-links li a i {
        line-height: 1 !important;
        font-size: 18px !important;
    }
    
    header ul li {
        margin: 0 10px 5px 0 !important;
        font-size: 13px;
        display: inline-block;
    }
    
    /* Container fills full width */
    #container {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 0 15px !important;
    }
    
    #container time {
        padding: 15px 0 !important;
        font-size: 9px !important;
        text-align: left;
    }
    
    #content section time {
        padding: 0 !important;
        margin: 0 0 2px 0 !important;
        font-size: 8px !important;
        line-height: 1 !important;
        opacity: 0 !important;
        transition: opacity 0.3s ease !important;
    }
    
    #content section:hover time,
    #content section:active time {
        opacity: 1 !important;
    }
    
    #content {
        padding: 0 !important;
    }
    
    #content section {
        padding: 25px 20px !important;
    }
    
    .post.contain {
        padding: 0 !important;
    }
    
    h1 {
        font-size: 22px !important;
    }
    
    h1.aside {
        font-size: 22px !important;
    }
    
    h2 {
        font-size: 20px !important;
    }
    
    h3 {
        font-size: 18px !important;
    }
    
    /* Kudos button responsive */
    .kudos-container {
        margin: 1.5rem 0 !important;
    }
    
    #kudos-button {
        padding: 10px 20px !important;
        font-size: 14px !important;
        width: 100%;
        max-width: 300px;
    }
    
    .kudos-emoji {
        font-size: 18px !important;
    }
    
    .kudos-info {
        font-size: 13px !important;
    }
    
    /* Post excerpt */
    .post-excerpt {
        max-height: 150px !important;
    }
    
    /* Admin styles */
    #drafts.col, #published.col {
        width: 100% !important;
        float: none !important;
        margin: 0 0 20px 0 !important;
    }
    
    #publish-bar {
        position: relative !important;
        padding: 10px 15px !important;
    }
    
    #text-title textarea,
    #text-content textarea {
        font-size: 14px !important;
    }
    
    nav.pagination {
        text-align: center;
        margin: 20px 0;
    }
    
    .button {
        display: inline-block;
        width: auto;
    }
    
    time {
        font-size: 12px !important;
    }
}

/* Small mobile devices */
@media only screen and (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    header {
        padding: 10px !important;
    }
    
    header h1 {
        font-size: 18px !important;
        margin-bottom: 10px;
    }
    
    header ul {
        margin: 10px 0 !important;
    }
    
    header ul li {
        font-size: 12px;
        margin: 0 8px 5px 0 !important;
    }
    
    #container time {
        padding: 12px 0 !important;
        font-size: 9px !important;
    }
    
    #content section time {
        padding: 0 !important;
        margin: 0 0 2px 0 !important;
        font-size: 8px !important;
        line-height: 1 !important;
        opacity: 0 !important;
        transition: opacity 0.3s ease !important;
    }
    
    #content section:hover time,
    #content section:active time {
        opacity: 1 !important;
    }
    
    #content section {
        padding: 20px 15px !important;
    }
    
    h1.aside {
        font-size: 20px !important;
    }
    
    #kudos-button {
        padding: 8px 16px !important;
        font-size: 13px !important;
    }
    
    .kudos-emoji {
        font-size: 16px !important;
    }
    
    .kudos-info {
        font-size: 12px !important;
    }
    
    .post-excerpt {
        max-height: 120px !important;
    }
}
