.outer {
    width: 100%;
    max-width: 100%;
    padding-top: 20px;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.outer-right {
    padding-left: 20px;
    box-sizing: border-box;
}

#articles-container {
    padding-bottom: 60px;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.empty-state-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    width: 100%;
}

.empty-state-message {
    text-align: center;
    margin: 0 !important;
    padding: 0 !important;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2196F3;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-message {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.inner {
    position: relative;
}

p {
    margin: 0 0 0 42px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

/* Override default p margin when button is on right */
p.p_right {
    margin: 0 60px 0 0 !important;
}

p.p_left {
    margin: 0 0 0 42px !important;
}

.x_icon {
    position: absolute;
    height: 32px;
    width: 32px;
    cursor: pointer;
}

.x_icon_left {
    left: 0;
    right: auto;
    margin: 0 0 0 5px;
}

.x_icon_right {
    left: auto;
    right: 30px;
    margin: 0;
}

.p_left {
    margin: 0 0 0 42px;
}

.p_right {
    margin: 0 42px 0 0;
}

.top_spacer {
    vertical-align: top;
}

.title-container {
    padding-left: 5px;
}

.title-container[onclick],
.title-container a {
    cursor: pointer;
    transition: opacity 0.2s;
}

.title-container[onclick]:hover,
.title-container a:hover {
    opacity: 0.7;
}

/* Desktop padding handled inlined headers (will be overridden by CSS) */
@media screen and (min-width: 769px) {
    .title-container {
        display: inline-block;
    }
}

.header-right {
    overflow: visible !important;
    position: relative;
}

.profile-icon-container {
    position: relative;
    height: 35px;
    display: flex;
    align-items: center;
    overflow: visible;
    z-index: 1001;
}

.profile-icon {
    font-size: 1.2em;
    text-decoration: none;
    color: black;
    cursor: pointer;
    padding: 2px 8px;
    display: inline-block;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none;
    user-select: none;
    background-color: transparent !important;
}

.profile-icon:hover,
.profile-icon:focus,
.profile-icon:active,
.profile-icon:focus-visible,
.profile-icon:visited,
.profile-icon:focus-visible:focus,
.profile-icon:active:focus {
    outline: none !important;
    background-color: transparent !important;
    -webkit-tap-highlight-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.profile-icon.menu-open {
    background-color: white !important;
}

.profile-menu {
    position: absolute;
    top: 35px;
    right: 0;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    min-width: 240px;
    padding: 5px 0;
    overflow: visible;
}

.profile-menu a {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 0.5em;
}

.profile-menu a:hover {
    background-color: #f0f0f0;
}

html {
    font-family: monospace;
    font-size: larger;
    font-weight: bold;
    color: Black;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    margin: 0px;
    padding: 0px;
    overflow-x: hidden;
    max-width: 100%;
}

.header {
    margin: 0px;
    padding: 0px;
    padding-top: 27.5px;
    padding-bottom: 22.5px;
    position: sticky;
    top: 0px;
    z-index: 100;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
}

/* Mobile-specific header padding (iPhone vertical format) */
@media screen and (max-width: 768px) {
    .header {
        padding-top: 24.5px;
        padding-bottom: 21px;
    }
}

a:link { color: #000000; }
a:visited { color: #000000; }
a:active { color: #000000; }
a:hover { background-color: white; }
a {
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
}

.media-container {
}

.button-container {
    float: left;
    margin: 0 5px 5px 0;
}

.button-container + p {
    overflow: hidden;
}

.clear {
    clear: left;
}

.subscriptions-panel {
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
}

/* Page title styling for secondary pages - must override any other h2 styles */
.page-title {
    font-family: Courier, monospace !important;
    font-weight: bold !important;
    font-size: 1.8em !important;
    margin: 20px 0 15px 0 !important;
    padding: 0 !important;
    padding-left: 10px !important; /* Match subscriptions-panel padding to align with logotype */
    color: #333 !important;
}

/* Override subscriptions-panel h2 for page-title */
/* Subscriptions panel already has padding: 10px, so the title inherits that padding */
.subscriptions-panel h2.page-title {
    margin-top: 0 !important;
    padding-left: 10px !important; /* Match the panel's padding */
}

.subscription-item {
    margin: 5px 0;
}

.subscription-item label {
    font-weight: normal;
    cursor: pointer;
}

.subscription-item input[type="checkbox"] {
    margin-right: 8px;
}

.save-subscriptions {
    margin-top: 10px;
    padding: 5px 15px;
    font-size: 1em;
    cursor: pointer;
}

/* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #2196F3;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 1px #2196F3;
}

