/*
 * Cyberduck theme for listmonk public pages.
 * Paste into: listmonk Admin → Settings → Appearance → Public → Custom CSS
 * (subscription form, opt-in, manage subscription, unsubscribe, archive).
 * Palette and typography mirror themes/bootstrap/static/css/custom.css.
 */

@import url(https://fonts.googleapis.com/css?family=Droid+Sans:400,700);

:root {
    --cd-yellow: #ffd54f;
    --cd-text: #2c2c2c;
    --cd-muted: #5a5a5a;
    --cd-link: #428bca;
    --cd-bg: #eeeeee;
    --cd-card: #ffffff;
    --cd-border: #cccccc;
    --cd-btn: #5a5a5a;
    --cd-btn-border: #3c404b;
    --cd-danger: #ba3900;
}

html, body {
    background: var(--cd-card);
    color: var(--cd-text);
    font-family: -apple-system, "Droid Sans", sans-serif;
    font-size: 18px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, "Droid Sans", sans-serif;
    font-weight: bold;
    color: var(--cd-text);
    line-height: 1.2;
}

h2 {
    font-weight: normal;
    font-size: 32px;
}

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

a:hover, a:focus {
    color: var(--cd-text);
    text-decoration: none;
}

/*
 * Layout mirrors the Cyberduck site header used by the documentation
 * (iterate-ch/docs: _templates/partials/site-head.html + documentation.css):
 * grey 90px navbar, yellow product bar, 1170px container with 15px gutters.
 */
.cd-header { font-family: -apple-system, "Droid Sans", sans-serif; position: relative; }
.cd-container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }

.cd-navbar { background: #eee; }
.cd-navbar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; min-height: 90px; }
.cd-brand img { display: block; width: 64px; height: 64px; }

.cd-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 4px; margin-left: auto; }
.cd-nav > a:not(.cd-btn) { color: #999; font-size: 18px; padding: 10px 8px; text-decoration: none; }
.cd-nav > a:not(.cd-btn):hover { color: #333; }

.cd-btn { display: inline-block; padding: 6px 12px; font-size: 14px; line-height: 1.43; border: 1px solid transparent; border-radius: 4px; text-decoration: none; cursor: pointer; list-style: none; }
.cd-btn::-webkit-details-marker { display: none; }
.cd-btn-default { background: #fff; color: #333; border-color: #ccc; }
.cd-btn-default:hover { background: #e6e6e6; }
.cd-btn-primary { background: #5a5a5a; color: #fff; border-color: #4a4a4a; margin-left: 6px; }
.cd-btn-primary:hover { background: #444; color: #fff; }
.cd-btn-success { background: #5cb85c; color: #fff; border-color: #4cae4c; margin-left: 6px; }
.cd-btn-success:hover { background: #449d44; color: #fff; }
.cd-caret { display: inline-block; border-top: 4px solid; border-left: 4px solid transparent; border-right: 4px solid transparent; vertical-align: middle; margin-left: 2px; }

.cd-dropdown { position: relative; margin-left: 6px; }
.cd-dropdown ul { position: absolute; top: 100%; left: 0; z-index: 1000; min-width: 200px; margin: 2px 0 0; padding: 5px 0; list-style: none; background: #fff; border: 1px solid #ccc; border-radius: 4px; box-shadow: 0 6px 12px rgba(0,0,0,.175); }
.cd-dropdown li { padding: 0; margin: 0; background: none; }
.cd-dropdown li a { display: block; padding: 3px 20px; color: #333; font-size: 14px; line-height: 1.43; white-space: nowrap; text-decoration: none; }
.cd-dropdown li a:hover { background: #f5f5f5; }
.cd-dropdown li.divider { height: 1px; margin: 9px 0; background: #e5e5e5; }

.cd-products { background: #ffd54f; border-bottom: 2px solid #ccc; }
.cd-products .cd-container { padding-top: 10px; padding-bottom: 10px; }
.cd-products a { text-decoration: none; margin-right: 4px; }
.cd-label { display: inline-block; background: #777; color: #fff; font-size: 13.5px; font-weight: 400; line-height: 1; padding: .2em .6em .3em; border-radius: .25em; white-space: nowrap; }
.cd-label img { display: inline-block; height: 16px; width: auto; max-width: none; margin: 0 2px 0 0; vertical-align: text-bottom; }
.cd-products-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.cd-product-links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.cd-product-links a { margin-right: 0; }
.cd-products a:hover .cd-label { background: #5e5e5e; }

/* Hamburger menu: collapses the navigation below 992px (see static/public/static/cyberduck.js) */
.cd-toggle { display: none; padding: 9px 10px; background: transparent; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; }
.cd-toggle .cd-bar { display: block; width: 22px; height: 2px; border-radius: 1px; background: #888; }
.cd-toggle .cd-bar + .cd-bar { margin-top: 4px; }
.cd-toggle:hover { background: rgba(128, 128, 128, .15); }
.cd-header .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

@media (max-width: 991px) {
  .cd-navbar-inner { min-height: 0; padding-top: 12px; padding-bottom: 12px; }
  .cd-toggle { display: block; }
  .cd-nav { display: none; flex-direction: column; align-items: stretch; width: 100%; margin-left: 0; gap: 0; }
  .cd-nav.cd-nav-open { display: flex; }
  .cd-nav > a:not(.cd-btn) { display: block; padding: 6px 12px; margin-top: 6px; font-size: 14px; line-height: 1.43; text-align: center; color: #333; background: #fff; border: 1px solid #ccc; border-radius: 4px; }
  .cd-nav > a:not(.cd-btn):hover { color: #333; background: #e6e6e6; }
  .cd-nav .cd-btn { display: block; margin: 6px 0 0; text-align: center; }
  .cd-dropdown { display: block; width: 100%; margin: 6px 0 0; }
  .cd-dropdown summary { margin: 0; text-align: center; }
  .cd-dropdown ul { position: static; width: 100%; box-shadow: none; margin-top: 6px; }
  .cd-dropdown li a { text-align: center; }
}

/* Page content and footer: same 1170px container as the header */
body {
    margin: 0;
}

.container,
.wrap {
    box-sizing: border-box;
    width: auto;
    max-width: 1170px;
    margin: 0 auto;
    padding: 30px 15px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

form input[type="text"],
form input[type="email"],
form select,
form textarea {
    max-width: 500px;
}

/* Forms */
label {
    font-weight: bold;
    color: var(--cd-text);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
select,
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 16px;
    color: var(--cd-text);
    background: #fff;
    border: 1px solid var(--cd-border);
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: var(--cd-link);
    box-shadow: 0 0 0 3px rgba(66, 139, 202, .25);
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--cd-btn);
}

/* Buttons */
button,
.button,
input[type="submit"],
a.button {
    display: inline-block;
    padding: 10px 24px;
    font-family: inherit;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
    color: #fff !important;
    background: var(--cd-btn);
    border: 1px solid var(--cd-btn-border);
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: none;
}

button:hover,
.button:hover,
input[type="submit"]:hover,
a.button:hover {
    background: #484848;
    color: #fff !important;
}

button:focus-visible,
.button:focus-visible,
input[type="submit"]:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(66, 139, 202, .4);
}

.button.button-outline,
.button-outline {
    background: transparent;
    color: var(--cd-btn) !important;
}

.button.button-danger,
.button-danger,
.unsub,
a.button.unsub {
    background: var(--cd-danger);
    border-color: var(--cd-danger);
}

/* Messages */
.error,
.alert-error {
    color: var(--cd-danger);
}

.success {
    color: #3c763d;
}

/* Lists (subscription form checkboxes, archive) */
ul.lists,
ul.archive,
.archive ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.lists li,
.archive li {
    padding: 8px 12px;
    border: 0;
}

.lists li:nth-child(odd),
.archive li:nth-child(odd) {
    background: #f5f5f5;
}

.archive .date,
.date {
    color: var(--cd-muted);
    font-size: 80%;
}

hr {
    border: 0;
    border-top: 1px solid var(--cd-border);
}

.small,
small {
    font-size: 80%;
    color: var(--cd-muted);
}

code {
    font-family: Menlo, Consolas, monospace;
    font-size: 90%;
    background: #f5f5f5;
    padding: 1px 4px;
    border-radius: 3px;
}

/* Footer */
footer.container {
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: left;
    font-size: 70%;
    color: var(--cd-muted);
}

footer.container p {
    margin: 0;
}

footer.container a {
    color: var(--cd-muted);
    text-decoration: underline;
}
