/* Ashfall branding over the supplied Metin2CMS 2.12 layout. */
:root {
    --ashfall-ink: #34251d;
    --ashfall-paper: #f1e8d8;
    --ashfall-red: #712b21;
    --ashfall-red-hover: #8c3825;
    --ashfall-gold: #deb975;
    --ashfall-night: #140d0a;
}
html { background: var(--ashfall-night); }
body.ashfall-theme {
    margin: 0;
    min-width: 320px;
    color: var(--ashfall-ink);
    background-color: var(--ashfall-night);
    background-image: linear-gradient(to bottom, transparent 45%, var(--ashfall-night) 100%), url('../images/ashfall-background.png');
    background-position: center top;
    background-size: 100% auto;
    background-repeat: no-repeat;
    overflow-wrap: anywhere;
}
.ashfall-theme .page-width { width: min(1100px, calc(100% - 48px)); }
.ashfall-theme .main-hd .page-width { min-height: 470px; }
.ashfall-theme .main-hd .ashfall-brand {
    top: 74px;
    left: 50%;
    width: min(650px, 72%);
    height: auto;
    margin: 0;
    transform: translateX(-50%);
    background: none;
}
.ashfall-theme .ashfall-brand a { display: block; width: 100%; height: auto; }
.ashfall-theme .ashfall-brand img { display: block; width: 100%; height: auto; }
.ashfall-theme .main-hd .main {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 64px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 28px;
    margin: 0;
    padding: 6px 20px;
    background: #24150fe8;
    border-block: 1px solid #96764b;
    font-size: 21px;
}
.ashfall-theme .main-hd .main > .menu-item { margin: 0; }
.ashfall-theme .main-hd .main a { display: block; padding: 12px 2px; color: #fff0cd; }
.ashfall-theme .main-hd .main a:hover { color: #f5c978; }
.ashfall-theme .main-hd .external {
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0 18px;
    width: 100%;
    height: auto;
    margin: 0;
}
.ashfall-theme .main-hd .external li,
.ashfall-theme .main-hd .external li:first-child,
.ashfall-theme .main-hd .external li:last-child {
    padding: 0;
    height: auto;
    background: none;
}
.ashfall-theme .main-hd .external a { min-height: 44px; padding: 14px 0 8px; background: none; color: #ffe3b1; }
.ashfall-theme .main-hd .sub-menu {
    top: 100%;
    left: -20px;
    padding: 8px 18px;
    width: max-content;
    min-width: 170px;
    background: #2b1a12;
    border: 1px solid #96764b;
    z-index: 20;
}
.ashfall-theme .main-hd .sub-menu:after { content: none; }
.ashfall-theme .main-hd .sub-menu a { margin: 0; padding: 10px 4px; font-size: 17px; }
.ashfall-theme .main-hd .menu-item:focus-within > .sub-menu { display: block; }
.ashfall-theme #content:after { content: none; }
.ashfall-theme .article .page-bd {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 278px;
    gap: 38px;
    min-height: 500px;
    padding: 34px 38px 42px;
    margin: 0;
    overflow: visible;
    background: var(--ashfall-paper);
    box-shadow: 0 18px 52px #0009;
}
.ashfall-theme .article .mt2cms2-c-l,
.ashfall-theme .article .mt2cms2-c-s { float: none; width: auto; min-width: 0; margin-top: 0; }
.ashfall-theme .article .mt2cms2-c-l .bd-c,
.ashfall-theme .article .mt2cms2-c-s .bd-c { margin-inline: 0; }
.ashfall-theme .article .page-bd .page-hd { padding-top: 0; min-height: 130px; background-size: cover; background-position: center; }
.ashfall-theme .article h2 { width: auto; max-width: 100%; font-size: 40px; padding-top: 24px; }
.ashfall-theme .article .mt2cms2-c-l .blog-title { font-size: 30px; }
.ashfall-theme .article p { max-width: 70ch; }
.ashfall-theme .article .blog-attribution { color: #6b523b; }
.ashfall-theme .article a { color: var(--ashfall-red); }
.ashfall-theme .article a:hover { color: #983717; }
.ashfall-theme .widget .bd { border: 1px solid #bba685; border-radius: 0; box-shadow: none; background: #e7dac1; }
.ashfall-theme .mod-main { background: none; }
.ashfall-theme .top-sidebar { padding: 12px 8px; background: var(--ashfall-red); color: #fff0d5; }
.ashfall-theme .article .mt2cms2-c-s h4 { margin: 0; white-space: normal; font-size: 23px; }
.ashfall-theme .form-control { height: 44px; border-color: #a18c6a; border-radius: 1px; background: #fffaf0; color: #34251d; }
.ashfall-theme .form-control::placeholder { color: #716048; opacity: 1; }
.ashfall-theme .btn { min-height: 44px; padding: 10px 18px; border-radius: 1px; }
.ashfall-theme .btn-success,
.ashfall-theme .btn-primary { background: var(--ashfall-red); border-color: var(--ashfall-red); color: #fff0d5; }
.ashfall-theme .article .btn-success,
.ashfall-theme .article .btn-primary { color: #fff0d5; }
.ashfall-theme .btn-success:hover,
.ashfall-theme .btn-primary:hover { background: var(--ashfall-red-hover); border-color: var(--ashfall-red-hover); }
.ashfall-theme .btn:disabled { opacity: .65; cursor: not-allowed; }
.ashfall-theme .widget hr { margin: 14px 12px; border-color: #baa98d; }
.ashfall-theme .nav-tabs .nav-link { min-width: 48px; min-height: 44px; }
.ashfall-theme .footer-nav { margin-top: 0; padding-block: 30px; color: #d6bd99; background: #140d0a; }
.ashfall-theme .footer-nav:before { content: none; }
.ashfall-theme .footer-nav a { color: #e6c58d; }
.ashfall-theme .footer-nav .page-padding { margin: 0; }
.ashfall-theme .footer-nav .row { margin-inline: 0; }
.ashfall-theme ::selection { background: #712b21; color: #fff0d5; }
.ashfall-theme input { caret-color: var(--ashfall-red); }
.ashfall-theme :focus-visible { outline: 2px solid #b15816; outline-offset: 3px; }
.ashfall-theme table { font-variant-numeric: tabular-nums; }
@media (max-width: 800px) {
    body.ashfall-theme { background-size: auto 780px; }
    .ashfall-theme .page-width { width: calc(100% - 24px); }
    .ashfall-theme .main-hd .page-width { min-height: 390px; }
    .ashfall-theme .main-hd .ashfall-brand { top: 92px; width: min(580px, 94%); }
    .ashfall-theme .main-hd .main { gap: 0 18px; font-size: 18px; padding-inline: 8px; }
    .ashfall-theme .article .page-bd { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 26px; }
    .ashfall-theme .article .mt2cms2-c-s { display: grid; grid-template-columns: minmax(0, 1fr); }
    .ashfall-theme .article h2 { font-size: 34px; }
    .ashfall-theme .article .mt2cms2-c-l .blog-title { font-size: 27px; }
    .ashfall-theme .main-hd .sub-menu { left: auto; right: 0; }
    .ashfall-theme .footer-nav .col-md-4 p { text-align: left !important; }
}
@media (max-width: 420px) {
    .ashfall-theme .main-hd .page-width { min-height: 355px; }
    .ashfall-theme .main-hd .ashfall-brand { top: 96px; }
    .ashfall-theme .main-hd .main { gap: 0 14px; font-size: 17px; }
    .ashfall-theme .article .page-bd { padding: 18px; }
}
