/* PHPpot single/singular content styles: articles, code blocks, comments, continue learning. */

/* Singular layout helpers */
.content-shell .post-body a {
    text-decoration: none;
    color: #2f20d1;
}

.content-shell .post-body a:visited {
    color: #4132ea;
}

.two-column-content {
    width: 905px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.two-column-content #tutorial-body {
    width: 570px;
}

.wrapper {
    width: 100%;
    float: left;
    margin-bottom: 60px;
}

#article {
    width: 570px;
    float: left;
    margin-top: 20px;
    margin-bottom: 5px;
}

#aside {
    width: 320px;
    float: right;
    font-size: .95em;
    margin-top: 20px;
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
}

/* Article content and legacy post utilities */
.modified-on {
    color: #565656;
    margin-bottom: 25px;
    font-size: .9em;
}

code {
    padding: 2px 6px;
    border-radius: 6px;
    background: #f3f4f6;
    border: 1px solid var(--line);
    color: #1f2937;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

a.download {
    padding: 8px 18px;
    margin: 20px 40px 20px 0;
    color: #2f2f2f;
    display: inline-block;
    text-align: center;
    border-radius: 50px;
    border: 1px solid #d5d9d9;
    position: relative;
}

#tutorial a.download:hover {
    background-color: #fffaec;
    text-decoration: none;
}

a.demo {
    padding: 8px 18px;
    margin: 20px 30px 20px 0;
    color: #000;
    display: inline-block;
    width: 130px;
    text-align: center;
    border-radius: 50px;
    border: 1px solid;
    text-transform: lowercase;
    background-color: #FFC72C;
    border-color: #ffd98e #ffbe3d #de9300;
    position: relative;
}

#tutorial a.demo:hover {
    background-color: #f7ae47;
    text-decoration: none;
}

.wp-caption {
    max-width: 100%;
    width: auto !important;
}

.wp-caption img {
    max-width: 100%;
    height: auto;
    display: block;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

.wp-caption-text {
    text-align: center;
    font-size: 14px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.full-width {
    width: 100%;
}

.tutorial-table {
    width: 100%;
    font-size: 13px;
    border-top: #e5e5e5 1px solid;
    border-spacing: initial;
    margin: 20px 0px;
    word-break: break-word;
    table-layout: fixed;
}

.tutorial-table th {
    background-color: #f5f5f5;
    padding: 5px;
    text-align: left;
}

.tutorial-table td {
    border-bottom: #f2f2f2 1px solid;
    background-color: #ffffff;
    padding: 5px;
}

.tutorial-table ul {
    padding: 0;
    list-style-type: none;
    margin: 0px;
}

.tutorial-table li:before {
    content: " - ";
    position: relative;
    margin-left: -10px;
    left: -5px;
}

a.demo-download-icon {
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-right: 18px;
    color: #212121;
    padding-left: 32px;
    padding-right: 8px;
}

#tutorial-body #tutorial imga.demo-download-icon:hover,
a.testimonial-icon:hover {
    color: #1a73e7;
}

.notice {
    background: #f9b7b8;
    padding: 20px;
    margin: 5px;
    border-radius: 4px;
    font-size: 1.2em;
    border: 1px solid #e2a4a4;
    line-height: 1.45;
}

.post-section-highlight {
    background-color: #d3ffdb;
    padding: 19px 19px 1px 19px;
    border-radius: 15px;
}

.post-section-highlight h2 {
    font-size: 1em;
    margin-top: 0px;
}

pre {
    overflow: auto;
    margin: 0 0 18px 0;
    tab-size: 4;
    line-height: 1.6;
    background: transparent;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.95em;
}

pre code {
    font-size: 0.95em;
    padding: 0;
    background: transparent;
    border: 0;
    color: inherit;
    box-shadow: none;
}

blockquote {
    margin: 0 0 18px 0;
    padding: 14px 18px;
    border-left: 5px solid #ffb000;
    background: #fff8e6;
    color: #3b2b00;
    border-radius: 12px;
}

blockquote p:last-child {
    margin-bottom: 0;
}

blockquote p {
    margin-top: 0;
    margin-bottom: 0.8em;
}

blockquote cite {
    display: block;
    margin-top: 8px;
    font-size: 0.9em;
    color: var(--muted);
}

.prettyprint,
pre.prettyprint {
    font-size: 0.9em;
    line-height: 1.6;
    border-radius: 14px;
    max-height: 600px;
    border: 1px solid var(--line);
    background-color: #ffffff;
    padding: 12px 14px;
    overflow: auto;
}

pre.prettyprint code {
    padding: 0;
    background: transparent;
}

pre code.hljs {
    display: block;
    overflow-x: auto;
    padding: 12px 14px;
}

pre.prettyprint code.hljs {
    padding: 0;
}

code.hljs {
    padding: 3px 5px;
}

/*!
  Theme: StackOverflow Light
  Description: Light theme as used on stackoverflow.com
  Author: stackoverflow.com
  Maintainer: @Hirse
  Website: https://github.com/StackExchange/Stacks
  License: MIT
  Updated: 2021-05-15

  Updated for @stackoverflow/stacks v0.64.0
  Code Blocks: /blob/v0.64.0/lib/css/components/_stacks-code-blocks.less
  Colors: /blob/v0.64.0/lib/css/exports/_stacks-constants-colors.less
*/
.hljs {
    color: #2f3337;
}

.hljs-subst {
    color: #2f3337
}

.hljs-comment {
    color: #656e77
}

.hljs-attr,
.hljs-doctag,
.hljs-keyword,
.hljs-meta .hljs-keyword,
.hljs-section,
.hljs-selector-tag {
    color: #015692
}

.hljs-attribute {
    color: #803378
}

.hljs-name,
.hljs-number,
.hljs-quote,
.hljs-selector-id,
.hljs-template-tag,
.hljs-type {
    color: #b75501
}

.hljs-selector-class {
    color: #015692
}

.hljs-link,
.hljs-regexp,
.hljs-selector-attr,
.hljs-string,
.hljs-symbol,
.hljs-template-variable,
.hljs-variable {
    color: #54790d
}

.hljs-meta,
.hljs-selector-pseudo {
    color: #015692
}

.hljs-built_in,
.hljs-literal,
.hljs-title {
    color: #b75501
}

.hljs-bullet,
.hljs-code {
    color: #535a60
}

.hljs-meta .hljs-string {
    color: #54790d
}

.hljs-deletion {
    color: #c02d2e
}

.hljs-addition {
    color: #2f6f44
}

.hljs-emphasis {
    font-style: italic
}

.hljs-strong {
    font-weight: 700
}

/* Body of the article ends */

.code-heading {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1.2em;
}

.recent-posts {
    max-width: 660px;
}

/* Author box and continue learning */
/* Style for the container holding the author details */
.written-by {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    background-color: #f9f8f3;
    padding: 20px 20px 20px 20px;
    border-radius: 15px;
    line-height: 1.6;
    font-size: .95em;
}

.author-photo {
    margin-right: 20px;
}

.author-photo img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    border: 2px solid #ccc;
}

/* Style for the author description */
.written-by-desc {
    flex: 1;
    /* Takes remaining space */
}

@media (max-width: 500px) {
    .written-by {
        flex-direction: column;
        /* Change direction to column */
        align-items: flex-start;
        /* Align items to the start */
    }

    .author-photo {
        margin-bottom: 20px;
    }
}

/* Continue Learning starts here - only for single post page */
.continue-learning {
    margin-bottom: 40px;
}

.continue-learning h3 {
    margin: 0 0 8px;
}

.continue-learning>p {
    margin: 0 0 20px;
    color: var(--muted);
    max-width: 60ch;
}

.learning-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.learning-item {
    position: relative;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 14px;
    background-color: #fff;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.learning-item:hover {
    background: #f8f8f8;
    border-color: rgba(15, 23, 42, .14);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.learning-item a,
.learning-item a:visited {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #122033;
    text-decoration: none;
    padding: 12px;
}

.learning-item img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #ece7db;
    flex-shrink: 0;
}

.learning-item-number {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.learning-text {
    min-width: 0;
}

.learning-text h4 {
    margin: 0;
    line-height: 1.35;
    font-size: 15px;
}

.learning-item a:hover h4 {
    color: #1a73e7;
}

/* Continue Learning ends here - only for single post page */

/* Comments */
/* Comment starts */
#comment {
    width: 525px;
    padding: 10px;
}

div#respond {
    padding: 18px;
    border: 1px #ececec solid;
    background-color: white;
    border-radius: 15px;
    box-sizing: border-box;
    line-height: 19px;
    color: #333;
    margin-bottom: 20px;
    overflow: auto;
}

.commentlist li ul li {
    background-color: #f3f2f1;
    border: 1px solid #e5e4e2;
    padding-bottom: 10px;
    margin-bottom: 10px;
    margin-top: 13px;
}

.commentlist li ul li ul li {
    background-color: white;
}

ul.comment-list,
.comment-list ul {
    list-style-type: none;
}

ul.comment-list {
    padding-left: 0;
}

.comment-body {
    padding: 20px 0 20px 0;
}

.comment-list li .says {
    display: none;
}

.comment-meta,
.comment-meta a {
    color: #565656;
    font-size: .9em;
}

.reply a {
    border: 1px solid #D5D9D9;
    border-radius: 25px;
    display: inline-block;
    padding: 6px 35px;
    color: #2f2f2f;
}

#tutorial .reply a:hover {
    text-decoration: none;
    background-color: #fffaec;
}

div#respond label {
    display: block;
    width: auto;
}

div#respond input {
    padding: 8px;
    border-radius: 3px;
    border: 1px solid #ccc;
    width: 185px;
}

div#respond textarea {
    padding: 8px;
    border-radius: 3px;
    border: 1px solid #ccc;
}

div#respond textarea {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
}

div#respond input#submit {
    background-color: #32bbff;
    width: 203px;
    color: #0c0c0c;
    border: 1px solid #30b2f3;
    border-radius: 3px;
    padding: 8px 30px;
    cursor: pointer;
}

div#respond input#submit:hover {
    background-color: #2bb0f3;
}

div#respond p {
    margin: 10px 0;
}

p.comment-notes {
    display: none;
}

/* Comment ends */

/* Single post content shell refinements */
.content-shell .post-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 18px;
}

.content-shell .page-body {
    color: rgba(15, 23, 42, .85);
    line-height: 1.65;
}

.content-shell .page-body> :first-child {
    margin-top: 0;
}

.content-shell .meta-line,
.content-shell .post-meta-line {
    color: rgba(15, 23, 42, .6);
    font-size: 13px;
}

.content-shell .post-head .section-title {
    font-size: clamp(28px, 3.2vw, 36px);
    line-height: 1.15;
    letter-spacing: -.4px;
    font-weight: 700;
}

.content-shell .post-body h1 {
    font-size: var(--h1-size);
}

.content-shell .post-body h2 {
    font-size: var(--h2-size);
}

.content-shell .post-body h3 {
    font-size: var(--h3-size);
}

.content-shell .post-body h4 {
    font-size: var(--h4-size);
}

.content-shell .post-body h5 {
    font-size: var(--h5-size);
}

.content-shell .post-body h6 {
    font-size: var(--h6-size);
}

.content-shell .divider--soft {
    background: rgba(15, 23, 42, .08);
}

.content-shell .post-footer {
    margin: 16px 0 0;
}

.content-shell .written-by {
    margin: 0 0 24px;
    align-items: flex-start;
}

.content-shell .author-photo {
    margin-right: 16px;
}

.content-shell .author-photo img {
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, .12);
    width: 88px;
    height: 88px;
    object-fit: cover;
}

.content-shell .written-by-desc {
    line-height: 1.65;
    color: rgba(15, 23, 42, .82);
}

.content-shell .author-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 8px;
    font-size: 12.5px;
    color: rgba(15, 23, 42, .62);
}

.content-shell .author-line {
    font-weight: 700;
    color: rgba(15, 23, 42, .86);
}

.content-shell .author-line a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(15, 23, 42, .24);
}

.content-shell .author-line a:hover {
    text-decoration-color: rgba(15, 23, 42, .45);
}

.content-shell .post-updated {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    font-weight: 500;
    color: rgba(15, 23, 42, .58);
    white-space: nowrap;
}

.content-shell .comments-area {
    margin: 0;
}

.content-shell .comments-title {
    margin: 0 0 14px;
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: -.2px;
}

.content-shell .comment-list,
.content-shell .comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.content-shell .comment-list>li {
    margin: 0 0 14px;
}

.content-shell .comment-list .children {
    margin-top: 12px;
    margin-left: 20px;
    padding-left: 14px;
    border-left: 2px solid rgba(15, 23, 42, .1);
}

.content-shell .comment-body {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.content-shell .comment-list .bypostauthor>.comment-body {
    border-color: rgba(255, 176, 0, .5);
    background: linear-gradient(0deg, rgba(255, 176, 0, .08), rgba(255, 176, 0, .08)), #fff;
}

.content-shell .comment-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.content-shell .comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-style: normal;
    line-height: 1.35;
}

.content-shell .comment-author .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, .14);
}

.content-shell .comment-author .fn {
    font-weight: 700;
    color: rgba(15, 23, 42, .9);
}

.content-shell .comment-list .bypostauthor>.comment-body .comment-author .fn::after {
    content: "Author";
    display: inline-block;
    margin-left: 8px;
    padding: 1px 7px;
    border-radius: 999px;
    border: 1px solid rgba(255, 176, 0, .5);
    background: rgba(255, 176, 0, .18);
    color: #6b3f00;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    vertical-align: middle;
}

.content-shell .comment-author .says {
    display: none;
}

.content-shell .comment-metadata {
    font-size: 12px;
    color: rgba(15, 23, 42, .58);
}

.content-shell .comment-metadata a {
    color: rgba(15, 23, 42, .58);
}

.content-shell .comment-metadata a:hover {
    color: rgba(15, 23, 42, .88);
}

.content-shell .comment-content {
    color: rgba(15, 23, 42, .84);
    line-height: 1.7;
}

.content-shell .comment-content p {
    margin: 0 0 10px;
}

.content-shell .comment-content p:last-child {
    margin-bottom: 0;
}

.content-shell .reply {
    margin-top: 12px;
}

.content-shell .reply a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, .15);
    background: rgba(15, 23, 42, .03);
    padding: 5px 12px;
    color: rgba(15, 23, 42, .8);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.content-shell .reply a:hover {
    background: rgba(255, 176, 0, .12);
    border-color: rgba(255, 176, 0, .5);
    color: rgba(15, 23, 42, .95);
    text-decoration: none;
}

#tutorial .content-shell .reply a:hover {
    background: rgba(255, 176, 0, .12);
    border-color: rgba(255, 176, 0, .5);
}

.content-shell .no-comments {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
}

.content-shell #respond {
    margin: 18px 0 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 18px;
}

.content-shell #respond .comment-reply-title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.3;
}

.content-shell #respond p {
    margin: 10px 0;
}

.content-shell #respond label {
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: rgba(15, 23, 42, .78);
}

.content-shell #respond input,
.content-shell #respond textarea {
    box-sizing: border-box;
    max-width: 100%;
}

.content-shell #respond input[type="text"],
.content-shell #respond input[type="email"],
.content-shell #respond input[type="url"],
.content-shell #respond textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, .2);
    background: #fff;
    color: rgba(15, 23, 42, .92);
    padding: 10px 12px;
}

.content-shell #respond textarea {
    min-height: 150px;
    resize: vertical;
}

.content-shell #respond input#submit {
    width: auto;
    min-width: 180px;
    border-radius: 10px;
    border: 1px solid #e2a348;
    background: #ffb000;
    color: #2a1a00;
    font-weight: 700;
    padding: 10px 16px;
}

.content-shell #respond input#submit:hover {
    background: #ffa400;
}

.content-shell .continue-learning {
    margin: 0;
}

.content-shell .continue-learning h3 {
    margin-top: 0;
}

/* Sidebar help CTA */
.help-cta {
    float: right;
    text-align: left;
    position: -webkit-sticky;
    position: sticky;
    box-sizing: border-box;
    top: 0;
    margin-right: 20px;
    border-radius: var(--radius);
}

.help-cta.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.help-cta.card--padded {
    padding: 18px 20px;
    border-radius: var(--radius);
}

.help-cta__title {
    font-size: 0.95em;
    font-weight: 700;
    margin-bottom: 12px;
    color: #8a4f00;
    text-align: center;
}

.help-cta .cta-link {
    display: flex;
}

.help-cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 12px;
    font-weight: 650;
    letter-spacing: .2px;
    border: 1px solid transparent;
    transition: transform .08s ease, background .12s ease, border-color .12s ease, opacity .12s ease;
    user-select: none;
}

.help-cta .btn:active {
    transform: translateY(1px);
}

.help-cta .btn-primary {
    background: var(--brand);
    color: #2a1a00;
    border-color: rgba(255, 176, 0, .55);
}

.help-cta .btn-primary:hover {
    opacity: .95;
}

.help-cta .btn-secondary {
    background: rgba(15, 23, 42, .05);
    border-color: rgba(15, 23, 42, .12);
    color: rgba(15, 23, 42, .92);
}

.help-cta .btn-secondary:hover {
    background: rgba(15, 23, 42, .08);
}

.sidebar-enquiry {
    margin-bottom: 20px;
}

.comment-form-url {
    display: none;
}

@media screen and (min-width: 756px) and (max-width: 965px) {
    #article {
        width: 460px;
    }

    #aside {
        width: 250px;
    }

    .two-column-content {
        width: 725px;
    }
}

@media screen and (max-width: 755px) {
    .two-column-content {
        width: 570px;
    }

    #aside {
        float: none;
        clear: both;
    }

    #article {
        margin-top: 50px;
    }

    .single .content,
    .single #tutorial-body,
    .single #tutorial,
    .single #tutorial-menu,
    .single .two-column-content {
        width: 100%;
    }

    .single #tutorial-body,
    .single #tutorial,
    .single #tutorial-menu {
        float: none;
    }

    .single #tutorial-menu {
        max-width: none;
    }

    .single #sidebar {
        width: 100%;
        max-width: none;
        float: none;
        clear: both;
    }

    .single #tutorial {
        padding-top: 10px;
    }

    .single .content-shell .written-by {
        flex-direction: column;
        align-items: flex-start;
    }

    .single .content-shell .author-photo {
        margin-bottom: 12px;
    }
}

@media screen and (max-width: 600px) {
    .prettyprint {
        max-height: 500px;
        font-size: 1.1em;
    }

    .code-heading {
        font-size: 1.1em;
    }

    .two-column-content {
        width: auto;
    }

    #article {
        width: auto;
        max-width: 570px;
    }

    #aside {
        width: auto;
        max-width: 350px;
        float: none;
        clear: both;
    }

    .single .content-shell .card--padded-lg {
        padding: 16px;
    }
}

@media screen and (max-width: 1014px) {
    .hide-md {
        display: none !important;
    }
}

@media (max-width: 500px) {
    .continue-learning {
        margin-bottom: 32px;
    }

    .learning-item a,
    .learning-item a:visited {
        align-items: flex-start;
    }

    .learning-item img {
        width: 84px;
        height: 64px;
    }

    .content-shell .written-by {
        align-items: flex-start;
    }

    .content-shell .author-photo {
        margin-bottom: 12px;
    }

    .content-shell .author-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .content-shell .comment-list .children {
        margin-left: 12px;
        padding-left: 10px;
    }

    .content-shell .comment-body {
        padding: 14px;
    }

    .content-shell .comment-meta {
        flex-direction: column;
    }
}
